diff options
| author | rxliuli <rxliuli@gmail.com> | 2025-11-04 05:03:50 +0800 |
|---|---|---|
| committer | rxliuli <rxliuli@gmail.com> | 2025-11-04 05:03:50 +0800 |
| commit | bce557cc2dc767628bed6aac87301a1be7c5431b (patch) | |
| tree | b51a051228d01fe3306cd7626d4a96768aadb944 /node_modules/@jet-app/app-store/tmp/src/foundation/runtime/action-provider.js | |
init commit
Diffstat (limited to 'node_modules/@jet-app/app-store/tmp/src/foundation/runtime/action-provider.js')
| -rw-r--r-- | node_modules/@jet-app/app-store/tmp/src/foundation/runtime/action-provider.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/@jet-app/app-store/tmp/src/foundation/runtime/action-provider.js b/node_modules/@jet-app/app-store/tmp/src/foundation/runtime/action-provider.js new file mode 100644 index 0000000..e0038da --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/foundation/runtime/action-provider.js @@ -0,0 +1,13 @@ +import { isBaseActionProvider } from "@jet/environment/dispatching"; +/** + * Retrieve an {@linkcode ActionModel} for the given {@linkcode intent} through + * any registered `IntentController`s that implement `ActionProvider` + */ +export function actionFor(intent, objectGraph, options = {}) { + const resolvedController = objectGraph.dispatcher.controller(intent); + if (isBaseActionProvider(resolvedController)) { + return resolvedController.actionFor(intent, objectGraph, options); + } + return null; +} +//# sourceMappingURL=action-provider.js.map
\ No newline at end of file |
