@ankhorage/runtime 4.1.2 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +6 -6
  3. package/dist/RuntimeRenderer.d.ts +7 -7
  4. package/dist/RuntimeRenderer.d.ts.map +1 -1
  5. package/dist/RuntimeRenderer.js +40 -80
  6. package/dist/RuntimeRenderer.js.map +1 -1
  7. package/dist/RuntimeRendererConfig.d.ts +7 -22
  8. package/dist/RuntimeRendererConfig.d.ts.map +1 -1
  9. package/dist/RuntimeRendererConfig.js +5 -8
  10. package/dist/RuntimeRendererConfig.js.map +1 -1
  11. package/dist/RuntimeScreen.d.ts.map +1 -1
  12. package/dist/RuntimeScreen.js +10 -5
  13. package/dist/RuntimeScreen.js.map +1 -1
  14. package/dist/bindings.d.ts +4 -8
  15. package/dist/bindings.d.ts.map +1 -1
  16. package/dist/bindings.js +2 -4
  17. package/dist/bindings.js.map +1 -1
  18. package/dist/index.d.ts +10 -12
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +5 -6
  21. package/dist/index.js.map +1 -1
  22. package/dist/runtimeActionRegistry.d.ts +19 -24
  23. package/dist/runtimeActionRegistry.d.ts.map +1 -1
  24. package/dist/runtimeActionRegistry.js +90 -306
  25. package/dist/runtimeActionRegistry.js.map +1 -1
  26. package/dist/runtimeApiCapabilities.d.ts +11 -0
  27. package/dist/runtimeApiCapabilities.d.ts.map +1 -0
  28. package/dist/runtimeApiCapabilities.js +67 -0
  29. package/dist/runtimeApiCapabilities.js.map +1 -0
  30. package/dist/runtimeBindings.d.ts +28 -17
  31. package/dist/runtimeBindings.d.ts.map +1 -1
  32. package/dist/runtimeBindings.js +157 -197
  33. package/dist/runtimeBindings.js.map +1 -1
  34. package/dist/runtimeCapabilityExecutor.d.ts +8 -0
  35. package/dist/runtimeCapabilityExecutor.d.ts.map +1 -0
  36. package/dist/runtimeCapabilityExecutor.js +21 -0
  37. package/dist/runtimeCapabilityExecutor.js.map +1 -0
  38. package/dist/runtimeEventExecution.d.ts +1 -4
  39. package/dist/runtimeEventExecution.d.ts.map +1 -1
  40. package/dist/runtimeEventExecution.js.map +1 -1
  41. package/dist/runtimeEventOperationLifecycle.d.ts +4 -3
  42. package/dist/runtimeEventOperationLifecycle.d.ts.map +1 -1
  43. package/dist/runtimeEventOperationLifecycle.js +5 -5
  44. package/dist/runtimeEventOperationLifecycle.js.map +1 -1
  45. package/dist/runtimeNodeProps.d.ts +12 -24
  46. package/dist/runtimeNodeProps.d.ts.map +1 -1
  47. package/dist/runtimeNodeProps.js +27 -121
  48. package/dist/runtimeNodeProps.js.map +1 -1
  49. package/dist/runtimeRepeat.d.ts +6 -2
  50. package/dist/runtimeRepeat.d.ts.map +1 -1
  51. package/dist/runtimeRepeat.js +29 -108
  52. package/dist/runtimeRepeat.js.map +1 -1
  53. package/dist/runtimeScreenLoaders.d.ts +27 -42
  54. package/dist/runtimeScreenLoaders.d.ts.map +1 -1
  55. package/dist/runtimeScreenLoaders.js +113 -273
  56. package/dist/runtimeScreenLoaders.js.map +1 -1
  57. package/package.json +9 -3
  58. package/paradox/badges/npm.svg +3 -3
  59. package/paradox/components.md +6 -7
  60. package/paradox/diagrams/architecture-overview.mmd +25 -79
  61. package/paradox/diagrams/export-graph.mmd +67 -105
  62. package/paradox/diagrams/module-relationships.mmd +19 -59
  63. package/paradox/diagrams/sequences/apply-runtime-binding-data-path.mmd +14 -0
  64. package/paradox/diagrams/sequences/create-component-event-from-handler-args.mmd +0 -13
  65. package/paradox/diagrams/sequences/create-runtime-screen-loader-request-key.mmd +5 -0
  66. package/paradox/diagrams/sequences/execute-runtime-binding-invocation.mmd +19 -0
  67. package/paradox/diagrams/sequences/resolve-binding-input-map-sync.mmd +5 -0
  68. package/paradox/diagrams/sequences/resolve-binding-input-map.mmd +5 -0
  69. package/paradox/diagrams/sequences/runtime-screen.mmd +6 -3
  70. package/paradox/diagrams/sequences/use-runtime-screen-operation-loaders.mmd +6 -3
  71. package/paradox/exports.json +610 -848
  72. package/paradox/exports.md +280 -308
  73. package/paradox/index.html +1120 -2266
  74. package/paradox/paradox.json +2724 -5528
  75. package/dist/runtimeApiOperations.d.ts +0 -8
  76. package/dist/runtimeApiOperations.d.ts.map +0 -1
  77. package/dist/runtimeApiOperations.js +0 -38
  78. package/dist/runtimeApiOperations.js.map +0 -1
  79. package/dist/runtimeApiSelection.d.ts +0 -8
  80. package/dist/runtimeApiSelection.d.ts.map +0 -1
  81. package/dist/runtimeApiSelection.js +0 -52
  82. package/dist/runtimeApiSelection.js.map +0 -1
  83. package/dist/runtimeDbPersist.d.ts +0 -34
  84. package/dist/runtimeDbPersist.d.ts.map +0 -1
  85. package/dist/runtimeDbPersist.js +0 -73
  86. package/dist/runtimeDbPersist.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"RuntimeRendererConfig.js","sourceRoot":"","sources":["../src/RuntimeRendererConfig.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AA+DlD,MAAM,6BAA6B,GAA0B,EAAE,CAAC;AAEhE,MAAM,4BAA4B,GAAG,aAAa,CAChD,6BAA6B,CAC9B,CAAC;AAEF,MAAM,UAAU,8BAA8B,CAC5C,aAAiD,EACjD,aAAiD;IAEjD,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,GAAG,IAAI,EAAE,QAAQ,EAAE,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,aAAyD,EACzD,iBAA6D;IAE7D,IAAI,CAAC,aAAa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SAAuD,EACvD,KAAmD;IAEnD,IAAI,CAAC,SAAS,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAE3C,OAAO;QACL,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;QACpB,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC;KACjB,CAAC;AACJ,CAAC","sourcesContent":["import type {\n ApiDefinitionRegistry,\n ComponentDataBindingRegistry,\n ComponentEventDto,\n DataSourceDiagnostic,\n DbAdapter,\n DbRealtimeAdapter,\n MediaAssetRegistry,\n StateAdapter,\n UiNode,\n} from '@ankhorage/contracts';\nimport type { Capability } from '@ankhorage/contracts/capability';\nimport type { RuntimeNodePropsResolver } from '@ankhorage/contracts/runtime';\nimport React, { createContext, use } from 'react';\n\nimport type { ComponentRegistry } from './registry';\nimport type {\n RuntimeBindingOperationExecutor,\n RuntimeBindingOperationResultCache,\n RuntimeBindingOperationResultWriter,\n} from './runtimeBindings';\nimport type {\n RuntimeEventOperationLifecycle,\n RuntimeEventOperationState,\n} from './runtimeEventOperationLifecycle';\nimport type { RuntimeMediaAssetResolver } from './runtimeMedia';\n\nexport type {\n RuntimeNodePropsResolver,\n RuntimeResolveNodePropsArgs,\n} from '@ankhorage/contracts/runtime';\n\nexport interface RuntimeRendererWrapArgs {\n node: UiNode;\n rendered: React.ReactNode;\n isRoot: boolean;\n}\n\nexport interface RuntimeActionHandlerArgs {\n action: RuntimeAction;\n event?: ComponentEventDto<string, object>;\n node?: UiNode;\n resolvedPayload?: object;\n}\n\nexport interface RuntimeAction {\n readonly type: Capability['id'];\n readonly payload?: object;\n}\nexport type RuntimeActionHandler = (args: RuntimeActionHandlerArgs) => Promise<void> | void;\nexport type RuntimeActionHandlers = Partial<Record<Capability['id'], RuntimeActionHandler>>;\nexport type RuntimeActionExecutor = RuntimeActionHandler;\n\nexport interface RuntimeRendererConfig {\n disableActions?: boolean;\n registry?: ComponentRegistry;\n wrapNode?: (args: RuntimeRendererWrapArgs) => React.ReactNode;\n resolveNodeProps?: RuntimeNodePropsResolver;\n resolveMediaAsset?: RuntimeMediaAssetResolver;\n mediaAssets?: MediaAssetRegistry;\n actionHandlers?: RuntimeActionHandlers;\n dbAdapter?: DbAdapter;\n dbRealtimeAdapter?: DbRealtimeAdapter;\n stateAdapter?: StateAdapter;\n bindingContext?: Record<string, unknown>;\n apis?: ApiDefinitionRegistry;\n dataBindings?: ComponentDataBindingRegistry;\n operationResults?: RuntimeBindingOperationResultCache;\n writeOperationResult?: RuntimeBindingOperationResultWriter;\n executeAction?: RuntimeActionExecutor;\n executeOperation?: RuntimeBindingOperationExecutor;\n onDiagnostics?: (diagnostics: readonly DataSourceDiagnostic[]) => void;\n eventOperationLifecycle?: RuntimeEventOperationLifecycle;\n eventOperationState?: RuntimeEventOperationState;\n}\n\nconst EMPTY_RUNTIME_RENDERER_CONFIG: RuntimeRendererConfig = {};\n\nconst RuntimeRendererConfigContext = createContext<RuntimeRendererConfig>(\n EMPTY_RUNTIME_RENDERER_CONFIG,\n);\n\nexport function composeRuntimeRendererWrapNode(\n innerWrapNode?: RuntimeRendererConfig['wrapNode'],\n outerWrapNode?: RuntimeRendererConfig['wrapNode'],\n): RuntimeRendererConfig['wrapNode'] {\n if (!innerWrapNode) {\n return outerWrapNode;\n }\n\n if (!outerWrapNode) {\n return innerWrapNode;\n }\n\n return (args) => outerWrapNode({ ...args, rendered: innerWrapNode(args) });\n}\n\nexport function composeRuntimeNodePropsResolver(\n localResolver?: RuntimeRendererConfig['resolveNodeProps'],\n inheritedResolver?: RuntimeRendererConfig['resolveNodeProps'],\n): RuntimeRendererConfig['resolveNodeProps'] {\n if (!localResolver) {\n return inheritedResolver;\n }\n\n if (!inheritedResolver) {\n return localResolver;\n }\n\n return (args) => {\n const inheritedProps = inheritedResolver(args);\n return localResolver({ ...args, props: inheritedProps });\n };\n}\n\nexport function mergeRuntimeRendererConfig(\n localConfig: RuntimeRendererConfig | undefined,\n inheritedConfig: RuntimeRendererConfig | undefined,\n): RuntimeRendererConfig {\n if (!localConfig && !inheritedConfig) {\n return EMPTY_RUNTIME_RENDERER_CONFIG;\n }\n\n const actionHandlers = mergeRecordConfig(\n inheritedConfig?.actionHandlers,\n localConfig?.actionHandlers,\n );\n const bindingContext = mergeRecordConfig(\n inheritedConfig?.bindingContext,\n localConfig?.bindingContext,\n );\n const operationResults = mergeRecordConfig(\n inheritedConfig?.operationResults,\n localConfig?.operationResults,\n );\n\n return {\n disableActions:\n localConfig?.disableActions === true || inheritedConfig?.disableActions === true,\n registry: localConfig?.registry ?? inheritedConfig?.registry,\n wrapNode: composeRuntimeRendererWrapNode(localConfig?.wrapNode, inheritedConfig?.wrapNode),\n resolveNodeProps: composeRuntimeNodePropsResolver(\n localConfig?.resolveNodeProps,\n inheritedConfig?.resolveNodeProps,\n ),\n resolveMediaAsset: localConfig?.resolveMediaAsset ?? inheritedConfig?.resolveMediaAsset,\n mediaAssets: localConfig?.mediaAssets ?? inheritedConfig?.mediaAssets,\n actionHandlers,\n dbAdapter: localConfig?.dbAdapter ?? inheritedConfig?.dbAdapter,\n dbRealtimeAdapter: localConfig?.dbRealtimeAdapter ?? inheritedConfig?.dbRealtimeAdapter,\n stateAdapter: localConfig?.stateAdapter ?? inheritedConfig?.stateAdapter,\n bindingContext,\n apis: localConfig?.apis ?? inheritedConfig?.apis,\n dataBindings: localConfig?.dataBindings ?? inheritedConfig?.dataBindings,\n operationResults,\n writeOperationResult:\n localConfig?.writeOperationResult ?? inheritedConfig?.writeOperationResult,\n executeAction: localConfig?.executeAction ?? inheritedConfig?.executeAction,\n executeOperation: localConfig?.executeOperation ?? inheritedConfig?.executeOperation,\n onDiagnostics: localConfig?.onDiagnostics ?? inheritedConfig?.onDiagnostics,\n eventOperationLifecycle:\n localConfig?.eventOperationLifecycle ?? inheritedConfig?.eventOperationLifecycle,\n eventOperationState: localConfig?.eventOperationState ?? inheritedConfig?.eventOperationState,\n };\n}\n\nexport function RuntimeRendererConfigProvider(props: {\n value: RuntimeRendererConfig;\n children: React.ReactNode;\n}) {\n const { value, children } = props;\n const inheritedConfig = use(RuntimeRendererConfigContext);\n const mergedConfig = mergeRuntimeRendererConfig(value, inheritedConfig);\n\n return (\n <RuntimeRendererConfigContext value={mergedConfig}>{children}</RuntimeRendererConfigContext>\n );\n}\n\nexport function useRuntimeRendererConfig(): RuntimeRendererConfig {\n return use(RuntimeRendererConfigContext);\n}\n\nfunction mergeRecordConfig<TValue>(\n inherited: Readonly<Record<string, TValue>> | undefined,\n local: Readonly<Record<string, TValue>> | undefined,\n): Record<string, TValue> | undefined {\n if (!inherited && !local) return undefined;\n\n return {\n ...(inherited ?? {}),\n ...(local ?? {}),\n };\n}\n"]}
1
+ {"version":3,"file":"RuntimeRendererConfig.js","sourceRoot":"","sources":["../src/RuntimeRendererConfig.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AA+ClD,MAAM,6BAA6B,GAA0B,EAAE,CAAC;AAEhE,MAAM,4BAA4B,GAAG,aAAa,CAChD,6BAA6B,CAC9B,CAAC;AAEF,MAAM,UAAU,8BAA8B,CAC5C,aAAiD,EACjD,aAAiD;IAEjD,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,GAAG,IAAI,EAAE,QAAQ,EAAE,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,aAAyD,EACzD,iBAA6D;IAE7D,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,OAAO,aAAa,CAAC;IACvB,CAAC;IA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dapter,\n UiNode,\n} from '@ankhorage/contracts';\nimport type { RuntimeNodePropsResolver } from '@ankhorage/contracts/runtime';\nimport React, { createContext, use } from 'react';\n\nimport type { ComponentRegistry } from './registry';\nimport type { RuntimeEventCapabilityResolver } from './runtimeActionRegistry';\nimport type {\n RuntimeBindingResultCache,\n RuntimeBindingResultWriter,\n RuntimeCapabilityExecutor,\n} from './runtimeBindings';\nimport type {\n RuntimeEventOperationLifecycle,\n RuntimeEventOperationState,\n} from './runtimeEventOperationLifecycle';\nimport type { RuntimeMediaAssetResolver } from './runtimeMedia';\n\nexport type {\n RuntimeNodePropsResolver,\n RuntimeResolveNodePropsArgs,\n} from '@ankhorage/contracts/runtime';\n\nexport interface RuntimeRendererWrapArgs {\n node: UiNode;\n rendered: React.ReactNode;\n isRoot: boolean;\n}\n\nexport interface RuntimeRendererConfig {\n disableActions?: boolean;\n registry?: ComponentRegistry;\n wrapNode?: (args: RuntimeRendererWrapArgs) => React.ReactNode;\n resolveNodeProps?: RuntimeNodePropsResolver;\n resolveMediaAsset?: RuntimeMediaAssetResolver;\n mediaAssets?: MediaAssetRegistry;\n dbAdapter?: DbAdapter;\n dbRealtimeAdapter?: DbRealtimeAdapter;\n stateAdapter?: StateAdapter;\n bindingContext?: Record<string, unknown>;\n dataBindings?: ComponentDataBindingRegistry;\n resultSlots?: RuntimeBindingResultCache;\n writeResultSlot?: RuntimeBindingResultWriter;\n executeCapability?: RuntimeCapabilityExecutor;\n resolveEventCapability?: RuntimeEventCapabilityResolver;\n onDiagnostics?: (diagnostics: readonly DataSourceDiagnostic[]) => void;\n eventOperationLifecycle?: RuntimeEventOperationLifecycle;\n eventOperationState?: RuntimeEventOperationState;\n}\n\nconst EMPTY_RUNTIME_RENDERER_CONFIG: RuntimeRendererConfig = {};\n\nconst RuntimeRendererConfigContext = createContext<RuntimeRendererConfig>(\n EMPTY_RUNTIME_RENDERER_CONFIG,\n);\n\nexport function composeRuntimeRendererWrapNode(\n innerWrapNode?: RuntimeRendererConfig['wrapNode'],\n outerWrapNode?: RuntimeRendererConfig['wrapNode'],\n): RuntimeRendererConfig['wrapNode'] {\n if (!innerWrapNode) {\n return outerWrapNode;\n }\n\n if (!outerWrapNode) {\n return innerWrapNode;\n }\n\n return (args) => outerWrapNode({ ...args, rendered: innerWrapNode(args) });\n}\n\nexport function composeRuntimeNodePropsResolver(\n localResolver?: RuntimeRendererConfig['resolveNodeProps'],\n inheritedResolver?: RuntimeRendererConfig['resolveNodeProps'],\n): RuntimeRendererConfig['resolveNodeProps'] {\n if (!localResolver) {\n return inheritedResolver;\n }\n\n if (!inheritedResolver) {\n return localResolver;\n }\n\n return (args) => {\n const inheritedProps = inheritedResolver(args);\n return localResolver({ ...args, props: inheritedProps });\n };\n}\n\nexport function mergeRuntimeRendererConfig(\n localConfig: RuntimeRendererConfig | undefined,\n inheritedConfig: RuntimeRendererConfig | undefined,\n): RuntimeRendererConfig {\n if (!localConfig && !inheritedConfig) {\n return EMPTY_RUNTIME_RENDERER_CONFIG;\n }\n\n const bindingContext = mergeRecordConfig(\n inheritedConfig?.bindingContext,\n localConfig?.bindingContext,\n );\n const resultSlots = mergeRecordConfig(inheritedConfig?.resultSlots, localConfig?.resultSlots);\n\n return {\n disableActions:\n localConfig?.disableActions === true || inheritedConfig?.disableActions === true,\n registry: localConfig?.registry ?? inheritedConfig?.registry,\n wrapNode: composeRuntimeRendererWrapNode(localConfig?.wrapNode, inheritedConfig?.wrapNode),\n resolveNodeProps: composeRuntimeNodePropsResolver(\n localConfig?.resolveNodeProps,\n inheritedConfig?.resolveNodeProps,\n ),\n resolveMediaAsset: localConfig?.resolveMediaAsset ?? inheritedConfig?.resolveMediaAsset,\n mediaAssets: localConfig?.mediaAssets ?? inheritedConfig?.mediaAssets,\n dbAdapter: localConfig?.dbAdapter ?? inheritedConfig?.dbAdapter,\n dbRealtimeAdapter: localConfig?.dbRealtimeAdapter ?? inheritedConfig?.dbRealtimeAdapter,\n stateAdapter: localConfig?.stateAdapter ?? inheritedConfig?.stateAdapter,\n bindingContext,\n dataBindings: localConfig?.dataBindings ?? inheritedConfig?.dataBindings,\n resultSlots,\n writeResultSlot: localConfig?.writeResultSlot ?? inheritedConfig?.writeResultSlot,\n executeCapability: localConfig?.executeCapability ?? inheritedConfig?.executeCapability,\n resolveEventCapability:\n localConfig?.resolveEventCapability ?? inheritedConfig?.resolveEventCapability,\n onDiagnostics: localConfig?.onDiagnostics ?? inheritedConfig?.onDiagnostics,\n eventOperationLifecycle:\n localConfig?.eventOperationLifecycle ?? inheritedConfig?.eventOperationLifecycle,\n eventOperationState: localConfig?.eventOperationState ?? inheritedConfig?.eventOperationState,\n };\n}\n\nexport function RuntimeRendererConfigProvider(props: {\n value: RuntimeRendererConfig;\n children: React.ReactNode;\n}) {\n const { value, children } = props;\n const inheritedConfig = use(RuntimeRendererConfigContext);\n const mergedConfig = mergeRuntimeRendererConfig(value, inheritedConfig);\n\n return (\n <RuntimeRendererConfigContext value={mergedConfig}>{children}</RuntimeRendererConfigContext>\n );\n}\n\nexport function useRuntimeRendererConfig(): RuntimeRendererConfig {\n return use(RuntimeRendererConfigContext);\n}\n\nfunction mergeRecordConfig<TValue>(\n inherited: Readonly<Record<string, TValue>> | undefined,\n local: Readonly<Record<string, TValue>> | undefined,\n): Record<string, TValue> | undefined {\n if (!inherited && !local) return undefined;\n\n return {\n ...(inherited ?? {}),\n ...(local ?? {}),\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"RuntimeScreen.d.ts","sourceRoot":"","sources":["../src/RuntimeScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAMpD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IACtC,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC;CACtC;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,qBA4BtD"}
1
+ {"version":3,"file":"RuntimeScreen.d.ts","sourceRoot":"","sources":["../src/RuntimeScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAQpD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IACtC,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC;CACtC;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,qBAsCtD"}
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
+ import { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities';
3
+ import { composeRuntimeCapabilityExecutor } from './runtimeCapabilityExecutor';
2
4
  import { RuntimeRenderer } from './RuntimeRenderer';
3
5
  import { useRuntimeRendererConfig } from './RuntimeRendererConfig';
4
6
  import { useRuntimeScreenOperationLoaders } from './runtimeScreenLoaders';
@@ -6,17 +8,20 @@ import { createRuntimeMemoryStateAdapter } from './runtimeStateAdapter';
6
8
  export function RuntimeScreen(props) {
7
9
  const { manifest, screen, registry, stateAdapter: injectedStateAdapter } = props;
8
10
  const runtimeConfig = useRuntimeRendererConfig();
11
+ const apiCapabilityExecutor = React.useMemo(() => createRuntimeApiCapabilityExecutor({ apis: manifest.infra.apis ?? {} }), [manifest.infra.apis]);
12
+ const executeCapability = React.useMemo(() => composeRuntimeCapabilityExecutor({
13
+ apiCapabilityExecutor,
14
+ capabilityExecutor: runtimeConfig.executeCapability,
15
+ }), [apiCapabilityExecutor, runtimeConfig.executeCapability]);
9
16
  const fallbackStateAdapter = React.useMemo(() => createRuntimeMemoryStateAdapter(), []);
10
17
  const stateAdapter = injectedStateAdapter ?? fallbackStateAdapter;
11
- const { apis } = manifest.infra;
12
18
  const screenOperationLoaders = useRuntimeScreenOperationLoaders({
13
- apis,
14
19
  bindingContext: runtimeConfig.bindingContext,
15
- executeOperation: runtimeConfig.executeOperation,
16
- operationResults: runtimeConfig.operationResults,
20
+ executeCapability,
21
+ resultSlots: runtimeConfig.resultSlots,
17
22
  onDiagnostics: runtimeConfig.onDiagnostics,
18
23
  screen,
19
24
  });
20
- return (<RuntimeRenderer key={`${screen.id}:${screenOperationLoaders.renderVersion}`} node={screen.root} isRoot registry={registry} stateAdapter={stateAdapter} apis={apis} dataBindings={manifest.dataBindings} mediaAssets={manifest.media?.assets} operationResults={screenOperationLoaders.operationResults}/>);
25
+ return (<RuntimeRenderer key={`${screen.id}:${screenOperationLoaders.renderVersion}`} node={screen.root} isRoot registry={registry} stateAdapter={stateAdapter} dataBindings={manifest.dataBindings} mediaAssets={manifest.media?.assets} resultSlots={screenOperationLoaders.resultSlots} executeCapability={executeCapability}/>);
21
26
  }
22
27
  //# sourceMappingURL=RuntimeScreen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RuntimeScreen.js","sourceRoot":"","sources":["../src/RuntimeScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AASxE,MAAM,UAAU,aAAa,CAAC,KAAyB;IACrD,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IACjF,MAAM,aAAa,GAAG,wBAAwB,EAAE,CAAC;IACjD,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,+BAA+B,EAAE,EAAE,EAAE,CAAC,CAAC;IACxF,MAAM,YAAY,GAAG,oBAAoB,IAAI,oBAAoB,CAAC;IAClE,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC;IAChC,MAAM,sBAAsB,GAAG,gCAAgC,CAAC;QAC9D,IAAI;QACJ,cAAc,EAAE,aAAa,CAAC,cAAc;QAC5C,gBAAgB,EAAE,aAAa,CAAC,gBAAgB;QAChD,gBAAgB,EAAE,aAAa,CAAC,gBAAgB;QAChD,aAAa,EAAE,aAAa,CAAC,aAAa;QAC1C,MAAM;KACP,CAAC,CAAC;IAEH,OAAO,CACL,CAAC,eAAe,CACd,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,EAAE,IAAI,sBAAsB,CAAC,aAAa,EAAE,CAAC,CAC5D,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAClB,MAAM,CACN,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,YAAY,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CACpC,WAAW,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CACpC,gBAAgB,CAAC,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,EAC1D,CACH,CAAC;AACJ,CAAC","sourcesContent":["import type { AppManifest, ScreenSpec, StateAdapter } from '@ankhorage/contracts';\nimport React from 'react';\n\nimport type { ComponentRegistry } from './registry';\nimport { RuntimeRenderer } from './RuntimeRenderer';\nimport { useRuntimeRendererConfig } from './RuntimeRendererConfig';\nimport { useRuntimeScreenOperationLoaders } from './runtimeScreenLoaders';\nimport { createRuntimeMemoryStateAdapter } from './runtimeStateAdapter';\n\nexport interface RuntimeScreenProps {\n readonly manifest: AppManifest;\n readonly screen: ScreenSpec;\n readonly registry?: ComponentRegistry;\n readonly stateAdapter?: StateAdapter;\n}\n\nexport function RuntimeScreen(props: RuntimeScreenProps) {\n const { manifest, screen, registry, stateAdapter: injectedStateAdapter } = props;\n const runtimeConfig = useRuntimeRendererConfig();\n const fallbackStateAdapter = React.useMemo(() => createRuntimeMemoryStateAdapter(), []);\n const stateAdapter = injectedStateAdapter ?? fallbackStateAdapter;\n const { apis } = manifest.infra;\n const screenOperationLoaders = useRuntimeScreenOperationLoaders({\n apis,\n bindingContext: runtimeConfig.bindingContext,\n executeOperation: runtimeConfig.executeOperation,\n operationResults: runtimeConfig.operationResults,\n onDiagnostics: runtimeConfig.onDiagnostics,\n screen,\n });\n\n return (\n <RuntimeRenderer\n key={`${screen.id}:${screenOperationLoaders.renderVersion}`}\n node={screen.root}\n isRoot\n registry={registry}\n stateAdapter={stateAdapter}\n apis={apis}\n dataBindings={manifest.dataBindings}\n mediaAssets={manifest.media?.assets}\n operationResults={screenOperationLoaders.operationResults}\n />\n );\n}\n"]}
1
+ {"version":3,"file":"RuntimeScreen.js","sourceRoot":"","sources":["../src/RuntimeScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAC1E,O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nB,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,YAAY,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CACpC,WAAW,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CACpC,WAAW,CAAC,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAChD,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,EACrC,CACH,CAAC;AACJ,CAAC","sourcesContent":["import type { AppManifest, ScreenSpec, StateAdapter } from '@ankhorage/contracts';\nimport React from 'react';\n\nimport type { ComponentRegistry } from './registry';\nimport { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities';\nimport { composeRuntimeCapabilityExecutor } from './runtimeCapabilityExecutor';\nimport { RuntimeRenderer } from './RuntimeRenderer';\nimport { useRuntimeRendererConfig } from './RuntimeRendererConfig';\nimport { useRuntimeScreenOperationLoaders } from './runtimeScreenLoaders';\nimport { createRuntimeMemoryStateAdapter } from './runtimeStateAdapter';\n\nexport interface RuntimeScreenProps {\n readonly manifest: AppManifest;\n readonly screen: ScreenSpec;\n readonly registry?: ComponentRegistry;\n readonly stateAdapter?: StateAdapter;\n}\n\nexport function RuntimeScreen(props: RuntimeScreenProps) {\n const { manifest, screen, registry, stateAdapter: injectedStateAdapter } = props;\n const runtimeConfig = useRuntimeRendererConfig();\n const apiCapabilityExecutor = React.useMemo(\n () => createRuntimeApiCapabilityExecutor({ apis: manifest.infra.apis ?? {} }),\n [manifest.infra.apis],\n );\n const executeCapability = React.useMemo(\n () =>\n composeRuntimeCapabilityExecutor({\n apiCapabilityExecutor,\n capabilityExecutor: runtimeConfig.executeCapability,\n }),\n [apiCapabilityExecutor, runtimeConfig.executeCapability],\n );\n const fallbackStateAdapter = React.useMemo(() => createRuntimeMemoryStateAdapter(), []);\n const stateAdapter = injectedStateAdapter ?? fallbackStateAdapter;\n const screenOperationLoaders = useRuntimeScreenOperationLoaders({\n bindingContext: runtimeConfig.bindingContext,\n executeCapability,\n resultSlots: runtimeConfig.resultSlots,\n onDiagnostics: runtimeConfig.onDiagnostics,\n screen,\n });\n\n return (\n <RuntimeRenderer\n key={`${screen.id}:${screenOperationLoaders.renderVersion}`}\n node={screen.root}\n isRoot\n registry={registry}\n stateAdapter={stateAdapter}\n dataBindings={manifest.dataBindings}\n mediaAssets={manifest.media?.assets}\n resultSlots={screenOperationLoaders.resultSlots}\n executeCapability={executeCapability}\n />\n );\n}\n"]}
@@ -1,9 +1,5 @@
1
- export type { RuntimeApiOperationExecutorOptions } from './runtimeApiOperations';
2
- export { createRuntimeApiOperationExecutor } from './runtimeApiOperations';
3
- export type { RuntimeApiOperationSelection } from './runtimeApiSelection';
4
- export { validateRuntimeBindingOperationRef } from './runtimeApiSelection';
5
- export type { RuntimeBindingOperationExecutionArgs, RuntimeBindingOperationExecutionResult, RuntimeBindingOperationExecutor, RuntimeBindingOperationKey, RuntimeBindingOperationResultCache, RuntimeBindingOperationResultWriter, RuntimeBindingResolutionArgs, RuntimeBindingResolutionContext, RuntimeBindingResolutionResult, } from './runtimeBindings';
6
- export { createRuntimeBindingOperationKey, resolveBindingInputMap, resolveRuntimeBindings, resolveRuntimeBindingsAsync, resolveRuntimeBindingValue, resolveRuntimeBindingValueSync, } from './runtimeBindings';
7
- export type { RuntimeEventOperationInvocation, RuntimeEventOperationLifecycle, RuntimeEventOperationState, RuntimeEventOperationStatus, } from './runtimeEventOperationLifecycle';
8
- export { createRuntimeEventOperationBindingContext, createRuntimeEventOperationLifecycle, IDLE_RUNTIME_EVENT_OPERATION_STATE, resolveRuntimeEventOperationErrorMessage, } from './runtimeEventOperationLifecycle';
1
+ export type { RuntimeApiCapabilityExecutorOptions } from './runtimeApiCapabilities';
2
+ export { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities';
3
+ export type { RuntimeBindingResolutionArgs, RuntimeBindingResolutionContext, RuntimeBindingResolutionResult, RuntimeBindingResultCache, RuntimeBindingResultWriter, RuntimeCapabilityExecutionArgs, RuntimeCapabilityExecutionResult, RuntimeCapabilityExecutor, } from './runtimeBindings';
4
+ export { applyRuntimeBindingDataPath, executeRuntimeBindingInvocation, resolveBindingInputMap, resolveBindingInputMapSync, resolveRuntimeBindingExpression, resolveRuntimeBindingExpressionSync, resolveRuntimeBindings, resolveRuntimeBindingsAsync, resolveRuntimeBindingValue, resolveRuntimeBindingValueSync, } from './runtimeBindings';
9
5
  //# sourceMappingURL=bindings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bindings.d.ts","sourceRoot":"","sources":["../src/bindings.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kCAAkC,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAC;AAC3E,YAAY,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,kCAAkC,EAAE,MAAM,uBAAuB,CAAC;AAC3E,YAAY,EACV,oCAAoC,EACpC,sCAAsC,EACtC,+BAA+B,EAC/B,0BAA0B,EAC1B,kCAAkC,EAClC,mCAAmC,EACnC,4BAA4B,EAC5B,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,gCAAgC,EAChC,sBAAsB,EACtB,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,+BAA+B,EAC/B,8BAA8B,EAC9B,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,yCAAyC,EACzC,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,GACzC,MAAM,kCAAkC,CAAC"}
1
+ {"version":3,"file":"bindings.d.ts","sourceRoot":"","sources":["../src/bindings.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mCAAmC,EAAE,MAAM,0BAA0B,CAAC;AACpF,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAC9E,YAAY,EACV,4BAA4B,EAC5B,+BAA+B,EAC/B,8BAA8B,EAC9B,yBAAyB,EACzB,0BAA0B,EAC1B,8BAA8B,EAC9B,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,EAC/B,mCAAmC,EACnC,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC"}
package/dist/bindings.js CHANGED
@@ -1,5 +1,3 @@
1
- export { createRuntimeApiOperationExecutor } from './runtimeApiOperations';
2
- export { validateRuntimeBindingOperationRef } from './runtimeApiSelection';
3
- export { createRuntimeBindingOperationKey, resolveBindingInputMap, resolveRuntimeBindings, resolveRuntimeBindingsAsync, resolveRuntimeBindingValue, resolveRuntimeBindingValueSync, } from './runtimeBindings';
4
- export { createRuntimeEventOperationBindingContext, createRuntimeEventOperationLifecycle, IDLE_RUNTIME_EVENT_OPERATION_STATE, resolveRuntimeEventOperationErrorMessage, } from './runtimeEventOperationLifecycle';
1
+ export { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities';
2
+ export { applyRuntimeBindingDataPath, executeRuntimeBindingInvocation, resolveBindingInputMap, resolveBindingInputMapSync, resolveRuntimeBindingExpression, resolveRuntimeBindingExpressionSync, resolveRuntimeBindings, resolveRuntimeBindingsAsync, resolveRuntimeBindingValue, resolveRuntimeBindingValueSync, } from './runtimeBindings';
5
3
  //# sourceMappingURL=bindings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bindings.js","sourceRoot":"","sources":["../src/bindings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAC;AAE3E,OAAO,EAAE,kCAAkC,EAAE,MAAM,uBAAuB,CAAC;AAY3E,OAAO,EACL,gCAAgC,EAChC,sBAAsB,EACtB,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC;AAO3B,OAAO,EACL,yCAAyC,EACzC,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,GACzC,MAAM,kCAAkC,CAAC","sourcesContent":["export type { RuntimeApiOperationExecutorOptions } from './runtimeApiOperations';\nexport { createRuntimeApiOperationExecutor } from './runtimeApiOperations';\nexport type { RuntimeApiOperationSelection } from './runtimeApiSelection';\nexport { validateRuntimeBindingOperationRef } from './runtimeApiSelection';\nexport type {\n RuntimeBindingOperationExecutionArgs,\n RuntimeBindingOperationExecutionResult,\n RuntimeBindingOperationExecutor,\n RuntimeBindingOperationKey,\n RuntimeBindingOperationResultCache,\n RuntimeBindingOperationResultWriter,\n RuntimeBindingResolutionArgs,\n RuntimeBindingResolutionContext,\n RuntimeBindingResolutionResult,\n} from './runtimeBindings';\nexport {\n createRuntimeBindingOperationKey,\n resolveBindingInputMap,\n resolveRuntimeBindings,\n resolveRuntimeBindingsAsync,\n resolveRuntimeBindingValue,\n resolveRuntimeBindingValueSync,\n} from './runtimeBindings';\nexport type {\n RuntimeEventOperationInvocation,\n RuntimeEventOperationLifecycle,\n RuntimeEventOperationState,\n RuntimeEventOperationStatus,\n} from './runtimeEventOperationLifecycle';\nexport {\n createRuntimeEventOperationBindingContext,\n createRuntimeEventOperationLifecycle,\n IDLE_RUNTIME_EVENT_OPERATION_STATE,\n resolveRuntimeEventOperationErrorMessage,\n} from './runtimeEventOperationLifecycle';\n"]}
1
+ {"version":3,"file":"bindings.js","sourceRoot":"","sources":["../src/bindings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAW9E,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,EAC/B,mCAAmC,EACnC,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC","sourcesContent":["export type { RuntimeApiCapabilityExecutorOptions } from './runtimeApiCapabilities';\nexport { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities';\nexport type {\n RuntimeBindingResolutionArgs,\n RuntimeBindingResolutionContext,\n RuntimeBindingResolutionResult,\n RuntimeBindingResultCache,\n RuntimeBindingResultWriter,\n RuntimeCapabilityExecutionArgs,\n RuntimeCapabilityExecutionResult,\n RuntimeCapabilityExecutor,\n} from './runtimeBindings';\nexport {\n applyRuntimeBindingDataPath,\n executeRuntimeBindingInvocation,\n resolveBindingInputMap,\n resolveBindingInputMapSync,\n resolveRuntimeBindingExpression,\n resolveRuntimeBindingExpressionSync,\n resolveRuntimeBindings,\n resolveRuntimeBindingsAsync,\n resolveRuntimeBindingValue,\n resolveRuntimeBindingValueSync,\n} from './runtimeBindings';\n"]}
package/dist/index.d.ts CHANGED
@@ -3,16 +3,14 @@ export { isRuntimeContextCapabilityOutputPath, resolveRuntimeContextCapability,
3
3
  export { ManifestContext, ManifestProvider, useManifest, useManifestContext, useOptionalManifestContext, } from './ManifestContext';
4
4
  export type { ComponentRegistry } from './registry';
5
5
  export { createComponentRegistry } from './registry';
6
- export type { RuntimeActionRegistry, RuntimeActionResolutionArgs, RuntimeActionResolutionScope, RuntimeComponentEventDispatchArgs, RuntimeEventPropWrapArgs, } from './runtimeActionRegistry';
7
- export { createComponentEventFromHandlerArgs, createRuntimeActionRegistry, dispatchRuntimeComponentEvent, resolveRuntimeActionPayload, resolveRuntimeActionValue, wrapRuntimeEventProps, } from './runtimeActionRegistry';
8
- export type { RuntimeApiOperationExecutorOptions } from './runtimeApiOperations';
9
- export { createRuntimeApiOperationExecutor } from './runtimeApiOperations';
10
- export type { RuntimeApiOperationSelection } from './runtimeApiSelection';
11
- export { validateRuntimeBindingOperationRef } from './runtimeApiSelection';
12
- export type { RuntimeBindingOperationExecutionArgs, RuntimeBindingOperationExecutionResult, RuntimeBindingOperationExecutor, RuntimeBindingOperationKey, RuntimeBindingOperationResultCache, RuntimeBindingOperationResultWriter, RuntimeBindingResolutionArgs, RuntimeBindingResolutionContext, RuntimeBindingResolutionResult, } from './runtimeBindings';
13
- export { createRuntimeBindingOperationKey, resolveBindingInputMap, resolveRuntimeBindings, resolveRuntimeBindingsAsync, resolveRuntimeBindingValue, resolveRuntimeBindingValueSync, } from './runtimeBindings';
14
- export type { RuntimeDbPersistError, RuntimeDbPersistExecutionResult, RuntimeDbPersistResult, } from './runtimeDbPersist';
15
- export { createDbPersistActionHandler, createDbPersistAdapterError, executeDbPersistAction, resolveDbPersistInput, } from './runtimeDbPersist';
6
+ export type { RuntimeActionRegistry, RuntimeActionResolutionArgs, RuntimeActionResolutionScope, RuntimeComponentEventDispatchArgs, RuntimeEventCapabilityResolver, RuntimeEventPropWrapArgs, } from './runtimeActionRegistry';
7
+ export { createComponentEventFromHandlerArgs, createRuntimeActionRegistry, dispatchRuntimeComponentEvent, resolveRuntimeActionValue, wrapRuntimeEventProps, } from './runtimeActionRegistry';
8
+ export type { RuntimeApiCapabilityExecutorOptions } from './runtimeApiCapabilities';
9
+ export { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities';
10
+ export type { RuntimeBindingResolutionArgs, RuntimeBindingResolutionContext, RuntimeBindingResolutionResult, RuntimeBindingResultCache, RuntimeBindingResultWriter, RuntimeCapabilityExecutionArgs, RuntimeCapabilityExecutionResult, RuntimeCapabilityExecutor, } from './runtimeBindings';
11
+ export { applyRuntimeBindingDataPath, executeRuntimeBindingInvocation, resolveBindingInputMap, resolveBindingInputMapSync, resolveRuntimeBindingExpression, resolveRuntimeBindingExpressionSync, resolveRuntimeBindings, resolveRuntimeBindingsAsync, resolveRuntimeBindingValue, resolveRuntimeBindingValueSync, } from './runtimeBindings';
12
+ export type { RuntimeCapabilityExecutorComposition } from './runtimeCapabilityExecutor';
13
+ export { composeRuntimeCapabilityExecutor } from './runtimeCapabilityExecutor';
16
14
  export { dispatchRuntimeComponentEventWithReporting, type RuntimeEventDiagnosticsReporter, } from './runtimeEventExecution';
17
15
  export type { RuntimeEventOperationInvocation, RuntimeEventOperationLifecycle, RuntimeEventOperationState, RuntimeEventOperationStatus, } from './runtimeEventOperationLifecycle';
18
16
  export { createRuntimeEventOperationBindingContext, createRuntimeEventOperationLifecycle, IDLE_RUNTIME_EVENT_OPERATION_STATE, resolveRuntimeEventOperationErrorMessage, } from './runtimeEventOperationLifecycle';
@@ -20,12 +18,12 @@ export type { RuntimeActionDescriptor, RuntimeAdapterDescriptor, RuntimeBindingD
20
18
  export type { RuntimeMediaAssetResolver, RuntimeMediaAssetResolverArgs, RuntimeResolvedMediaValue, } from './runtimeMedia';
21
19
  export type { RuntimeRendererProps } from './RuntimeRenderer';
22
20
  export { RuntimeRenderer } from './RuntimeRenderer';
23
- export { composeRuntimeNodePropsResolver, composeRuntimeRendererWrapNode, mergeRuntimeRendererConfig, type RuntimeAction, type RuntimeActionExecutor, type RuntimeActionHandler, type RuntimeActionHandlerArgs, type RuntimeActionHandlers, type RuntimeNodePropsResolver, type RuntimeRendererConfig, RuntimeRendererConfigProvider, type RuntimeRendererWrapArgs, type RuntimeResolveNodePropsArgs, useRuntimeRendererConfig, } from './RuntimeRendererConfig';
21
+ export { composeRuntimeNodePropsResolver, composeRuntimeRendererWrapNode, mergeRuntimeRendererConfig, type RuntimeNodePropsResolver, type RuntimeRendererConfig, RuntimeRendererConfigProvider, type RuntimeRendererWrapArgs, type RuntimeResolveNodePropsArgs, useRuntimeRendererConfig, } from './RuntimeRendererConfig';
24
22
  export { shouldRenderRuntimeRepeatEmptyState } from './runtimeRepeatEmptyState';
25
23
  export type { RuntimeScreenProps } from './RuntimeScreen';
26
24
  export { RuntimeScreen } from './RuntimeScreen';
27
25
  export type { RuntimeScreenOperationLoaderExecutionResult, RuntimeScreenOperationLoaderState, } from './runtimeScreenLoaders';
28
- export { createPendingRuntimeScreenOperationLoaderState, createRuntimeScreenLoaderRequestKey, executeRuntimeScreenOperationLoaders, resolveScreenOperationLoaders, useRuntimeScreenOperationLoaders, } from './runtimeScreenLoaders';
26
+ export { createPendingRuntimeScreenOperationLoaderState, createRuntimeScreenLoaderRequestKey, createRuntimeScreenOperationLoaderRequestLifecycle, executeRuntimeScreenOperationLoaders, resolveScreenOperationLoaders, useRuntimeScreenOperationLoaders, } from './runtimeScreenLoaders';
29
27
  export type { RuntimeMemoryStateAdapterOptions } from './runtimeStateAdapter';
30
28
  export { createRuntimeMemoryStateAdapter } from './runtimeStateAdapter';
31
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,0BAA0B,EAC1B,kCAAkC,GACnC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,oCAAoC,EACpC,+BAA+B,GAChC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,YAAY,EACV,qBAAqB,EACrB,2BAA2B,EAC3B,4BAA4B,EAC5B,iCAAiC,EACjC,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mCAAmC,EACnC,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,kCAAkC,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAC;AAC3E,YAAY,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,kCAAkC,EAAE,MAAM,uBAAuB,CAAC;AAC3E,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,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,6BAA6B,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,mCAAmC,EAAE,MAAM,2BAA2B,CAAC;AAChF,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EACV,2CAA2C,EAC3C,iCAAiC,GAClC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,8CAA8C,EAC9C,mCAAmC,EACnC,kDAAkD,EAClD,oCAAoC,EACpC,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,gCAAgC,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC"}
package/dist/index.js CHANGED
@@ -1,17 +1,16 @@
1
1
  export { isRuntimeContextCapabilityOutputPath, resolveRuntimeContextCapability, } from './capabilities/resolveRuntimeContextCapability';
2
2
  export { ManifestContext, ManifestProvider, useManifest, useManifestContext, useOptionalManifestContext, } from './ManifestContext';
3
3
  export { createComponentRegistry } from './registry';
4
- export { createComponentEventFromHandlerArgs, createRuntimeActionRegistry, dispatchRuntimeComponentEvent, resolveRuntimeActionPayload, resolveRuntimeActionValue, wrapRuntimeEventProps, } from './runtimeActionRegistry';
5
- export { createRuntimeApiOperationExecutor } from './runtimeApiOperations';
6
- export { validateRuntimeBindingOperationRef } from './runtimeApiSelection';
7
- export { createRuntimeBindingOperationKey, resolveBindingInputMap, resolveRuntimeBindings, resolveRuntimeBindingsAsync, resolveRuntimeBindingValue, resolveRuntimeBindingValueSync, } from './runtimeBindings';
8
- export { createDbPersistActionHandler, createDbPersistAdapterError, executeDbPersistAction, resolveDbPersistInput, } from './runtimeDbPersist';
4
+ export { createComponentEventFromHandlerArgs, createRuntimeActionRegistry, dispatchRuntimeComponentEvent, resolveRuntimeActionValue, wrapRuntimeEventProps, } from './runtimeActionRegistry';
5
+ export { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities';
6
+ export { applyRuntimeBindingDataPath, executeRuntimeBindingInvocation, resolveBindingInputMap, resolveBindingInputMapSync, resolveRuntimeBindingExpression, resolveRuntimeBindingExpressionSync, resolveRuntimeBindings, resolveRuntimeBindingsAsync, resolveRuntimeBindingValue, resolveRuntimeBindingValueSync, } from './runtimeBindings';
7
+ export { composeRuntimeCapabilityExecutor } from './runtimeCapabilityExecutor';
9
8
  export { dispatchRuntimeComponentEventWithReporting, } from './runtimeEventExecution';
10
9
  export { createRuntimeEventOperationBindingContext, createRuntimeEventOperationLifecycle, IDLE_RUNTIME_EVENT_OPERATION_STATE, resolveRuntimeEventOperationErrorMessage, } from './runtimeEventOperationLifecycle';
11
10
  export { RuntimeRenderer } from './RuntimeRenderer';
12
11
  export { composeRuntimeNodePropsResolver, composeRuntimeRendererWrapNode, mergeRuntimeRendererConfig, RuntimeRendererConfigProvider, useRuntimeRendererConfig, } from './RuntimeRendererConfig';
13
12
  export { shouldRenderRuntimeRepeatEmptyState } from './runtimeRepeatEmptyState';
14
13
  export { RuntimeScreen } from './RuntimeScreen';
15
- export { createPendingRuntimeScreenOperationLoaderState, createRuntimeScreenLoaderRequestKey, executeRuntimeScreenOperationLoaders, resolveScreenOperationLoaders, useRuntimeScreenOperationLoaders, } from './runtimeScreenLoaders';
14
+ export { createPendingRuntimeScreenOperationLoaderState, createRuntimeScreenLoaderRequestKey, createRuntimeScreenOperationLoaderRequestLifecycle, executeRuntimeScreenOperationLoaders, resolveScreenOperationLoaders, useRuntimeScreenOperationLoaders, } from './runtimeScreenLoaders';
16
15
  export { createRuntimeMemoryStateAdapter } from './runtimeStateAdapter';
17
16
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["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wBAAwB,CAAC;AAEhC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export type {\n RuntimeContextCapabilityId,\n RuntimeContextCapabilityResolution,\n} from './capabilities/resolveRuntimeContextCapability';\nexport {\n isRuntimeContextCapabilityOutputPath,\n resolveRuntimeContextCapability,\n} from './capabilities/resolveRuntimeContextCapability';\nexport {\n ManifestContext,\n ManifestProvider,\n useManifest,\n useManifestContext,\n useOptionalManifestContext,\n} from './ManifestContext';\nexport type { ComponentRegistry } from './registry';\nexport { createComponentRegistry } from './registry';\nexport type {\n RuntimeActionRegistry,\n RuntimeActionResolutionArgs,\n RuntimeActionResolutionScope,\n RuntimeComponentEventDispatchArgs,\n RuntimeEventPropWrapArgs,\n} from './runtimeActionRegistry';\nexport {\n createComponentEventFromHandlerArgs,\n createRuntimeActionRegistry,\n dispatchRuntimeComponentEvent,\n resolveRuntimeActionPayload,\n resolveRuntimeActionValue,\n wrapRuntimeEventProps,\n} from './runtimeActionRegistry';\nexport type { RuntimeApiOperationExecutorOptions } from './runtimeApiOperations';\nexport { createRuntimeApiOperationExecutor } from './runtimeApiOperations';\nexport type { RuntimeApiOperationSelection } from './runtimeApiSelection';\nexport { validateRuntimeBindingOperationRef } from './runtimeApiSelection';\nexport type {\n RuntimeBindingOperationExecutionArgs,\n RuntimeBindingOperationExecutionResult,\n RuntimeBindingOperationExecutor,\n RuntimeBindingOperationKey,\n RuntimeBindingOperationResultCache,\n RuntimeBindingOperationResultWriter,\n RuntimeBindingResolutionArgs,\n RuntimeBindingResolutionContext,\n RuntimeBindingResolutionResult,\n} from './runtimeBindings';\nexport {\n createRuntimeBindingOperationKey,\n resolveBindingInputMap,\n resolveRuntimeBindings,\n resolveRuntimeBindingsAsync,\n resolveRuntimeBindingValue,\n resolveRuntimeBindingValueSync,\n} from './runtimeBindings';\nexport type {\n RuntimeDbPersistError,\n RuntimeDbPersistExecutionResult,\n RuntimeDbPersistResult,\n} from './runtimeDbPersist';\nexport {\n createDbPersistActionHandler,\n createDbPersistAdapterError,\n executeDbPersistAction,\n resolveDbPersistInput,\n} from './runtimeDbPersist';\nexport {\n dispatchRuntimeComponentEventWithReporting,\n type RuntimeEventDiagnosticsReporter,\n} from './runtimeEventExecution';\nexport type {\n RuntimeEventOperationInvocation,\n RuntimeEventOperationLifecycle,\n RuntimeEventOperationState,\n RuntimeEventOperationStatus,\n} from './runtimeEventOperationLifecycle';\nexport {\n createRuntimeEventOperationBindingContext,\n createRuntimeEventOperationLifecycle,\n IDLE_RUNTIME_EVENT_OPERATION_STATE,\n resolveRuntimeEventOperationErrorMessage,\n} from './runtimeEventOperationLifecycle';\nexport type {\n RuntimeActionDescriptor,\n RuntimeAdapterDescriptor,\n RuntimeBindingDescriptor,\n RuntimeDiagnostic,\n RuntimeManifest,\n RuntimeManifestConfig,\n RuntimeManifestInput,\n} from './runtimeManifest';\nexport type {\n RuntimeMediaAssetResolver,\n RuntimeMediaAssetResolverArgs,\n RuntimeResolvedMediaValue,\n} from './runtimeMedia';\nexport type { RuntimeRendererProps } from './RuntimeRenderer';\nexport { RuntimeRenderer } from './RuntimeRenderer';\nexport {\n composeRuntimeNodePropsResolver,\n composeRuntimeRendererWrapNode,\n mergeRuntimeRendererConfig,\n type RuntimeAction,\n type RuntimeActionExecutor,\n type RuntimeActionHandler,\n type RuntimeActionHandlerArgs,\n type RuntimeActionHandlers,\n type RuntimeNodePropsResolver,\n type RuntimeRendererConfig,\n RuntimeRendererConfigProvider,\n type RuntimeRendererWrapArgs,\n type RuntimeResolveNodePropsArgs,\n useRuntimeRendererConfig,\n} from './RuntimeRendererConfig';\nexport { shouldRenderRuntimeRepeatEmptyState } from './runtimeRepeatEmptyState';\nexport type { RuntimeScreenProps } from './RuntimeScreen';\nexport { RuntimeScreen } from './RuntimeScreen';\nexport type {\n RuntimeScreenOperationLoaderExecutionResult,\n RuntimeScreenOperationLoaderState,\n} from './runtimeScreenLoaders';\nexport {\n createPendingRuntimeScreenOperationLoaderState,\n createRuntimeScreenLoaderRequestKey,\n executeRuntimeScreenOperationLoaders,\n resolveScreenOperationLoaders,\n useRuntimeScreenOperationLoaders,\n} from './runtimeScreenLoaders';\nexport type { RuntimeMemoryStateAdapterOptions } from './runtimeStateAdapter';\nexport { createRuntimeMemoryStateAdapter } from './runtimeStateAdapter';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,+BAA+B,GAChC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AASrD,OAAO,EACL,mCAAmC,EACnC,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAW9E,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,EAC/B,mCAAmC,EACnC,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EACL,0CAA0C,GAE3C,MAAM,yBAAyB,CAAC;AAOjC,OAAO,EACL,yCAAyC,EACzC,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,GACzC,MAAM,kCAAkC,CAAC;AAgB1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EACL,+BAA+B,EAC/B,8BAA8B,EAC9B,0BAA0B,EAG1B,6BAA6B,EAG7B,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,mCAAmC,EAAE,MAAM,2BAA2B,CAAC;AAEhF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKhD,OAAO,EACL,8CAA8C,EAC9C,mCAAmC,EACnC,kDAAkD,EAClD,oCAAoC,EACpC,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export type {\n RuntimeContextCapabilityId,\n RuntimeContextCapabilityResolution,\n} from './capabilities/resolveRuntimeContextCapability';\nexport {\n isRuntimeContextCapabilityOutputPath,\n resolveRuntimeContextCapability,\n} from './capabilities/resolveRuntimeContextCapability';\nexport {\n ManifestContext,\n ManifestProvider,\n useManifest,\n useManifestContext,\n useOptionalManifestContext,\n} from './ManifestContext';\nexport type { ComponentRegistry } from './registry';\nexport { createComponentRegistry } from './registry';\nexport type {\n RuntimeActionRegistry,\n RuntimeActionResolutionArgs,\n RuntimeActionResolutionScope,\n RuntimeComponentEventDispatchArgs,\n RuntimeEventCapabilityResolver,\n RuntimeEventPropWrapArgs,\n} from './runtimeActionRegistry';\nexport {\n createComponentEventFromHandlerArgs,\n createRuntimeActionRegistry,\n dispatchRuntimeComponentEvent,\n resolveRuntimeActionValue,\n wrapRuntimeEventProps,\n} from './runtimeActionRegistry';\nexport type { RuntimeApiCapabilityExecutorOptions } from './runtimeApiCapabilities';\nexport { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities';\nexport type {\n RuntimeBindingResolutionArgs,\n RuntimeBindingResolutionContext,\n RuntimeBindingResolutionResult,\n RuntimeBindingResultCache,\n RuntimeBindingResultWriter,\n RuntimeCapabilityExecutionArgs,\n RuntimeCapabilityExecutionResult,\n RuntimeCapabilityExecutor,\n} from './runtimeBindings';\nexport {\n applyRuntimeBindingDataPath,\n executeRuntimeBindingInvocation,\n resolveBindingInputMap,\n resolveBindingInputMapSync,\n resolveRuntimeBindingExpression,\n resolveRuntimeBindingExpressionSync,\n resolveRuntimeBindings,\n resolveRuntimeBindingsAsync,\n resolveRuntimeBindingValue,\n resolveRuntimeBindingValueSync,\n} from './runtimeBindings';\nexport type { RuntimeCapabilityExecutorComposition } from './runtimeCapabilityExecutor';\nexport { composeRuntimeCapabilityExecutor } from './runtimeCapabilityExecutor';\nexport {\n dispatchRuntimeComponentEventWithReporting,\n type RuntimeEventDiagnosticsReporter,\n} from './runtimeEventExecution';\nexport type {\n RuntimeEventOperationInvocation,\n RuntimeEventOperationLifecycle,\n RuntimeEventOperationState,\n RuntimeEventOperationStatus,\n} from './runtimeEventOperationLifecycle';\nexport {\n createRuntimeEventOperationBindingContext,\n createRuntimeEventOperationLifecycle,\n IDLE_RUNTIME_EVENT_OPERATION_STATE,\n resolveRuntimeEventOperationErrorMessage,\n} from './runtimeEventOperationLifecycle';\nexport type {\n RuntimeActionDescriptor,\n RuntimeAdapterDescriptor,\n RuntimeBindingDescriptor,\n RuntimeDiagnostic,\n RuntimeManifest,\n RuntimeManifestConfig,\n RuntimeManifestInput,\n} from './runtimeManifest';\nexport type {\n RuntimeMediaAssetResolver,\n RuntimeMediaAssetResolverArgs,\n RuntimeResolvedMediaValue,\n} from './runtimeMedia';\nexport type { RuntimeRendererProps } from './RuntimeRenderer';\nexport { RuntimeRenderer } from './RuntimeRenderer';\nexport {\n composeRuntimeNodePropsResolver,\n composeRuntimeRendererWrapNode,\n mergeRuntimeRendererConfig,\n type RuntimeNodePropsResolver,\n type RuntimeRendererConfig,\n RuntimeRendererConfigProvider,\n type RuntimeRendererWrapArgs,\n type RuntimeResolveNodePropsArgs,\n useRuntimeRendererConfig,\n} from './RuntimeRendererConfig';\nexport { shouldRenderRuntimeRepeatEmptyState } from './runtimeRepeatEmptyState';\nexport type { RuntimeScreenProps } from './RuntimeScreen';\nexport { RuntimeScreen } from './RuntimeScreen';\nexport type {\n RuntimeScreenOperationLoaderExecutionResult,\n RuntimeScreenOperationLoaderState,\n} from './runtimeScreenLoaders';\nexport {\n createPendingRuntimeScreenOperationLoaderState,\n createRuntimeScreenLoaderRequestKey,\n createRuntimeScreenOperationLoaderRequestLifecycle,\n executeRuntimeScreenOperationLoaders,\n resolveScreenOperationLoaders,\n useRuntimeScreenOperationLoaders,\n} from './runtimeScreenLoaders';\nexport type { RuntimeMemoryStateAdapterOptions } from './runtimeStateAdapter';\nexport { createRuntimeMemoryStateAdapter } from './runtimeStateAdapter';\n"]}
@@ -1,16 +1,18 @@
1
- import type { ApiDefinitionRegistry, ComponentDataBindingRegistry, ComponentEventDto, DataSourceDiagnostic, UiNode } from '@ankhorage/contracts';
1
+ import type { BindingExpression, BindingValue, ComponentDataBindingRegistry, ComponentEventDto, DataSourceDiagnostic, UiNode } from '@ankhorage/contracts';
2
2
  import type { Capability } from '@ankhorage/contracts/capability';
3
- import { type RuntimeBindingOperationExecutor, type RuntimeBindingOperationResultCache, type RuntimeBindingOperationResultWriter } from './runtimeBindings';
3
+ import { type RuntimeBindingResultCache, type RuntimeBindingResultWriter, type RuntimeCapabilityExecutor } from './runtimeBindings';
4
4
  import { type RuntimeEventOperationLifecycle } from './runtimeEventOperationLifecycle';
5
- import type { RuntimeActionHandler, RuntimeActionHandlers } from './RuntimeRendererConfig';
6
5
  type RuntimeEventPayload = Record<string, unknown>;
6
+ export type RuntimeEventCapabilityResolver = (args: {
7
+ readonly eventName: string;
8
+ readonly node: UiNode;
9
+ }) => Capability['id'] | undefined;
7
10
  export interface RuntimeActionRegistry {
8
11
  dispatchComponentEvent(args: RuntimeComponentEventDispatchArgs): Promise<void>;
9
- registerActionHandler(type: Capability['id'], handler: RuntimeActionHandler): () => void;
10
12
  }
11
13
  export interface RuntimeActionResolutionScope {
12
14
  readonly context?: Record<string, unknown>;
13
- readonly operationResults?: RuntimeBindingOperationResultCache;
15
+ readonly resultSlots?: RuntimeBindingResultCache;
14
16
  readonly state?: Record<string, unknown>;
15
17
  }
16
18
  export interface RuntimeActionResolutionArgs extends RuntimeActionResolutionScope {
@@ -20,11 +22,9 @@ export interface RuntimeComponentEventDispatchArgs extends RuntimeActionResoluti
20
22
  readonly node: UiNode;
21
23
  readonly event: ComponentEventDto<string, object>;
22
24
  readonly eventName?: string;
23
- readonly executeAction?: RuntimeActionHandler;
24
- readonly apis?: ApiDefinitionRegistry;
25
25
  readonly dataBindings?: ComponentDataBindingRegistry;
26
- readonly executeOperation?: RuntimeBindingOperationExecutor;
27
- readonly writeOperationResult?: RuntimeBindingOperationResultWriter;
26
+ readonly executeCapability?: RuntimeCapabilityExecutor;
27
+ readonly writeResultSlot?: RuntimeBindingResultWriter;
28
28
  readonly eventOperationLifecycle?: RuntimeEventOperationLifecycle;
29
29
  }
30
30
  export interface RuntimeEventPropWrapArgs extends RuntimeActionResolutionScope {
@@ -33,27 +33,22 @@ export interface RuntimeEventPropWrapArgs extends RuntimeActionResolutionScope {
33
33
  readonly disableActions: boolean;
34
34
  readonly dataBindings?: ComponentDataBindingRegistry;
35
35
  readonly dispatchComponentEvent: (args: RuntimeComponentEventDispatchArgs) => Promise<void> | void;
36
+ readonly resolveEventCapability?: RuntimeEventCapabilityResolver;
36
37
  }
37
- export declare function createRuntimeActionRegistry(options?: {
38
- actionHandlers?: RuntimeActionHandlers;
39
- apis?: ApiDefinitionRegistry;
40
- dataBindings?: ComponentDataBindingRegistry;
41
- executeAction?: RuntimeActionHandler;
42
- executeOperation?: RuntimeBindingOperationExecutor;
43
- eventOperationLifecycle?: RuntimeEventOperationLifecycle;
44
- operationResults?: RuntimeBindingOperationResultCache;
45
- writeOperationResult?: RuntimeBindingOperationResultWriter;
46
- }): RuntimeActionRegistry;
47
- export declare function dispatchRuntimeComponentEvent(args: RuntimeComponentEventDispatchArgs & {
48
- readonly actionHandlers?: RuntimeActionHandlers;
49
- }): Promise<readonly DataSourceDiagnostic[]>;
38
+ /*** Creates a registry that dispatches every authored event through one capability executor. */
39
+ export declare function createRuntimeActionRegistry(options?: Pick<RuntimeComponentEventDispatchArgs, 'dataBindings' | 'eventOperationLifecycle' | 'executeCapability' | 'resultSlots' | 'writeResultSlot'>): RuntimeActionRegistry;
40
+ /*** Executes every matching event invocation through the canonical capability path. */
41
+ export declare function dispatchRuntimeComponentEvent(args: RuntimeComponentEventDispatchArgs): Promise<readonly DataSourceDiagnostic[]>;
42
+ /*** Wraps component callbacks so manifest event bindings retain the original callback behavior. */
50
43
  export declare function wrapRuntimeEventProps(args: RuntimeEventPropWrapArgs): Record<string, unknown>;
44
+ /*** Maps a platform callback invocation to the portable component event representation. */
51
45
  export declare function createComponentEventFromHandlerArgs(args: {
46
+ readonly capability?: Capability['id'];
52
47
  readonly node: UiNode;
53
48
  readonly eventName: string;
54
49
  readonly handlerArgs: readonly unknown[];
55
50
  }): ComponentEventDto<string, RuntimeEventPayload>;
56
- export declare function resolveRuntimeActionPayload(payload: object | undefined, args: RuntimeActionResolutionArgs): object | undefined;
57
- export declare function resolveRuntimeActionValue(value: unknown, args: RuntimeActionResolutionArgs): object | undefined;
51
+ /*** Resolves an authored expression-shaped payload for imperative consumers. */
52
+ export declare function resolveRuntimeActionValue(value: BindingExpression, args: RuntimeActionResolutionArgs): BindingValue | undefined;
58
53
  export {};
59
54
  //# sourceMappingURL=runtimeActionRegistry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeActionRegistry.d.ts","sourceRoot":"","sources":["../src/runtimeActionRegistry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,qBAAqB,EAIrB,4BAA4B,EAC5B,iBAAiB,EACjB,oBAAoB,EAGpB,MAAM,EACP,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAGlE,OAAO,EAGL,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACzC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAq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