@ankhorage/runtime 0.1.1 → 0.2.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 (117) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +20 -5
  3. package/dist/ManifestContext.d.ts +16 -0
  4. package/dist/ManifestContext.d.ts.map +1 -0
  5. package/dist/ManifestContext.js +26 -0
  6. package/dist/ManifestContext.js.map +1 -0
  7. package/dist/RuntimeRenderer.d.ts +24 -0
  8. package/dist/RuntimeRenderer.d.ts.map +1 -0
  9. package/dist/RuntimeRenderer.js +302 -0
  10. package/dist/RuntimeRenderer.js.map +1 -0
  11. package/dist/RuntimeRendererConfig.d.ts +51 -0
  12. package/dist/RuntimeRendererConfig.d.ts.map +1 -0
  13. package/dist/RuntimeRendererConfig.js +70 -0
  14. package/dist/RuntimeRendererConfig.js.map +1 -0
  15. package/dist/RuntimeScreen.d.ts +11 -0
  16. package/dist/RuntimeScreen.d.ts.map +1 -0
  17. package/dist/RuntimeScreen.js +59 -0
  18. package/dist/RuntimeScreen.js.map +1 -0
  19. package/dist/appExtensionRegistry.d.ts +3 -0
  20. package/dist/appExtensionRegistry.d.ts.map +1 -0
  21. package/dist/appExtensionRegistry.js +2 -0
  22. package/dist/appExtensionRegistry.js.map +1 -0
  23. package/dist/componentRegistry.d.ts +4 -0
  24. package/dist/componentRegistry.d.ts.map +1 -0
  25. package/dist/componentRegistry.js +6 -0
  26. package/dist/componentRegistry.js.map +1 -0
  27. package/dist/index.d.ts +27 -52
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +16 -30
  30. package/dist/index.js.map +1 -1
  31. package/dist/readme-usage.js +4 -4
  32. package/dist/readme-usage.js.map +1 -1
  33. package/dist/registry.d.ts +7 -0
  34. package/dist/registry.d.ts.map +1 -0
  35. package/dist/registry.js +49 -0
  36. package/dist/registry.js.map +1 -0
  37. package/dist/rendering.d.ts +17 -0
  38. package/dist/rendering.d.ts.map +1 -0
  39. package/dist/rendering.js +24 -0
  40. package/dist/rendering.js.map +1 -0
  41. package/dist/runtimeActionRegistry.d.ts +55 -0
  42. package/dist/runtimeActionRegistry.d.ts.map +1 -0
  43. package/dist/runtimeActionRegistry.js +323 -0
  44. package/dist/runtimeActionRegistry.js.map +1 -0
  45. package/dist/runtimeApiLoaders.d.ts +35 -0
  46. package/dist/runtimeApiLoaders.d.ts.map +1 -0
  47. package/dist/runtimeApiLoaders.js +218 -0
  48. package/dist/runtimeApiLoaders.js.map +1 -0
  49. package/dist/runtimeBindings.d.ts +52 -0
  50. package/dist/runtimeBindings.d.ts.map +1 -0
  51. package/dist/runtimeBindings.js +299 -0
  52. package/dist/runtimeBindings.js.map +1 -0
  53. package/dist/runtimeDataSourceOperations.d.ts +8 -0
  54. package/dist/runtimeDataSourceOperations.d.ts.map +1 -0
  55. package/dist/runtimeDataSourceOperations.js +58 -0
  56. package/dist/runtimeDataSourceOperations.js.map +1 -0
  57. package/dist/runtimeDbPersist.d.ts +34 -0
  58. package/dist/runtimeDbPersist.d.ts.map +1 -0
  59. package/dist/runtimeDbPersist.js +73 -0
  60. package/dist/runtimeDbPersist.js.map +1 -0
  61. package/dist/runtimeEventExecution.d.ts +11 -0
  62. package/dist/runtimeEventExecution.d.ts.map +1 -0
  63. package/dist/runtimeEventExecution.js +17 -0
  64. package/dist/runtimeEventExecution.js.map +1 -0
  65. package/dist/runtimeManifest.d.ts +53 -0
  66. package/dist/runtimeManifest.d.ts.map +1 -0
  67. package/dist/runtimeManifest.js +31 -0
  68. package/dist/runtimeManifest.js.map +1 -0
  69. package/dist/runtimeNodeProps.d.ts +22 -0
  70. package/dist/runtimeNodeProps.d.ts.map +1 -0
  71. package/dist/runtimeNodeProps.js +130 -0
  72. package/dist/runtimeNodeProps.js.map +1 -0
  73. package/dist/runtimeRepeat.d.ts +27 -0
  74. package/dist/runtimeRepeat.d.ts.map +1 -0
  75. package/dist/runtimeRepeat.js +129 -0
  76. package/dist/runtimeRepeat.js.map +1 -0
  77. package/dist/runtimeRepeatDiagnostics.d.ts +3 -0
  78. package/dist/runtimeRepeatDiagnostics.d.ts.map +1 -0
  79. package/dist/runtimeRepeatDiagnostics.js +14 -0
  80. package/dist/runtimeRepeatDiagnostics.js.map +1 -0
  81. package/dist/runtimeRepeatEmptyState.d.ts +7 -0
  82. package/dist/runtimeRepeatEmptyState.d.ts.map +1 -0
  83. package/dist/runtimeRepeatEmptyState.js +10 -0
  84. package/dist/runtimeRepeatEmptyState.js.map +1 -0
  85. package/dist/runtimeScreenLoaders.d.ts +71 -0
  86. package/dist/runtimeScreenLoaders.d.ts.map +1 -0
  87. package/dist/runtimeScreenLoaders.js +309 -0
  88. package/dist/runtimeScreenLoaders.js.map +1 -0
  89. package/dist/runtimeStateAdapter.d.ts +6 -0
  90. package/dist/runtimeStateAdapter.d.ts.map +1 -0
  91. package/dist/runtimeStateAdapter.js +162 -0
  92. package/dist/runtimeStateAdapter.js.map +1 -0
  93. package/package.json +19 -2
  94. package/paradox/badges/npm.svg +3 -3
  95. package/paradox/components.md +72 -0
  96. package/paradox/diagrams/architecture-overview.mmd +135 -1
  97. package/paradox/diagrams/export-graph.mmd +303 -18
  98. package/paradox/diagrams/module-relationships.mmd +98 -1
  99. package/paradox/diagrams/sequences/create-component-event-from-handler-args.mmd +24 -0
  100. package/paradox/diagrams/sequences/execute-db-persist-action.mmd +16 -0
  101. package/paradox/diagrams/sequences/merge-runtime-renderer-config.mmd +11 -0
  102. package/paradox/diagrams/sequences/resolve-db-persist-input.mmd +13 -0
  103. package/paradox/diagrams/sequences/resolve-runtime-action-payload.mmd +8 -0
  104. package/paradox/diagrams/sequences/resolve-runtime-action-value.mmd +5 -0
  105. package/paradox/diagrams/sequences/runtime-renderer-config-provider.mmd +17 -0
  106. package/paradox/diagrams/sequences/runtime-screen.mmd +17 -0
  107. package/paradox/diagrams/sequences/use-manifest-context.mmd +5 -0
  108. package/paradox/diagrams/sequences/use-manifest.mmd +5 -0
  109. package/paradox/diagrams/sequences/use-optional-manifest-context.mmd +5 -0
  110. package/paradox/diagrams/sequences/use-runtime-renderer-config.mmd +5 -0
  111. package/paradox/diagrams/sequences/use-runtime-screen-operation-loaders.mmd +5 -0
  112. package/paradox/diagrams/sequences/validate-runtime-binding-operation-ref.mmd +8 -0
  113. package/paradox/diagrams/sequences/wrap-runtime-event-props.mmd +5 -0
  114. package/paradox/exports.json +3385 -330
  115. package/paradox/exports.md +1051 -38
  116. package/paradox/index.html +8291 -450
  117. package/paradox/paradox.json +10013 -511
@@ -1,10 +1,144 @@
1
1
  # Public API
2
2
 
3
+ ## APP_EXTENSION_COMPONENT_REGISTRY
4
+
5
+ Kind: `value`
6
+ Module: `src/appExtensionRegistry.ts`
7
+ Source: `src/appExtensionRegistry.ts:3:14`
8
+
9
+ ## ComponentRegistry
10
+
11
+ Kind: `unknown`
12
+ Module: `src/componentRegistry.ts`
13
+ Source: `src/componentRegistry.ts:3:1`
14
+
15
+ ## composeRuntimeNodePropsResolver
16
+
17
+ Kind: `function`
18
+ Module: `src/RuntimeRendererConfig.tsx`
19
+ Source: `src/RuntimeRendererConfig.tsx:85:1`
20
+
21
+ ### Signatures
22
+
23
+ - `(localResolver?: RuntimeNodePropsResolver | undefined, inheritedResolver?: RuntimeNodePropsResolver | undefined) => RuntimeNodePropsResolver | undefined`
24
+ - inheritedResolver: `RuntimeNodePropsResolver | undefined` (optional)
25
+ - localResolver: `RuntimeNodePropsResolver | undefined` (optional)
26
+ - returns: `RuntimeNodePropsResolver | undefined`
27
+
28
+ ## composeRuntimeRendererWrapNode
29
+
30
+ Kind: `function`
31
+ Module: `src/RuntimeRendererConfig.tsx`
32
+ Source: `src/RuntimeRendererConfig.tsx:70:1`
33
+
34
+ ### Signatures
35
+
36
+ - `(innerWrapNode?: ((args: RuntimeRendererWrapArgs) => React.ReactNode) | undefined, outerWrapNode?: ((args: RuntimeRendererWrapArgs) => React.ReactNode) | undefined) => ((args: RuntimeRendererWrapArgs) => React.ReactNode) | undefined`
37
+ - innerWrapNode: `((args: RuntimeRendererWrapArgs) => React.ReactNode) | undefined` (optional)
38
+ - outerWrapNode: `((args: RuntimeRendererWrapArgs) => React.ReactNode) | undefined` (optional)
39
+ - returns: `((args: RuntimeRendererWrapArgs) => React.ReactNode) | undefined`
40
+
41
+ ## createComponentEventFromHandlerArgs
42
+
43
+ Kind: `function`
44
+ Module: `src/runtimeActionRegistry.ts`
45
+ Source: `src/runtimeActionRegistry.ts:217:1`
46
+
47
+ ### Signatures
48
+
49
+ - `(args: { readonly node: UiNode; readonly eventName: string; readonly handlerArgs: readonly unknown[]; }) => ComponentEventDto<string, RuntimeEventPayload>`
50
+ - args: `{ readonly node: UiNode; readonly eventName: string; readonly handlerArgs: readonly unknown[]; }`
51
+ - returns: `ComponentEventDto<string, RuntimeEventPayload>`
52
+
53
+ ## createComponentRegistry
54
+
55
+ Kind: `function`
56
+ Module: `src/componentRegistry.ts`
57
+ Source: `src/componentRegistry.ts:5:1`
58
+
59
+ ### Signatures
60
+
61
+ - `(registries?: readonly ComponentRegistry[]) => ComponentRegistry`
62
+ - registries: `readonly ComponentRegistry[]` (optional)
63
+ - returns: `ComponentRegistry`
64
+
65
+ ## createDbPersistActionHandler
66
+
67
+ Kind: `function`
68
+ Module: `src/runtimeDbPersist.ts`
69
+ Source: `src/runtimeDbPersist.ts:36:1`
70
+
71
+ ### Signatures
72
+
73
+ - `(args: { readonly dbAdapter: DbAdapter; readonly onResult?: (result: RuntimeDbPersistExecutionResult) => void; }) => RuntimeActionHandler`
74
+ - args: `{ readonly dbAdapter: DbAdapter; readonly onResult?: (result: RuntimeDbPersistExecutionResult) => void; }`
75
+ - returns: `RuntimeActionHandler`
76
+
77
+ ## createDbPersistAdapterError
78
+
79
+ Kind: `function`
80
+ Module: `src/runtimeDbPersist.ts`
81
+ Source: `src/runtimeDbPersist.ts:126:1`
82
+
83
+ ### Signatures
84
+
85
+ - `(error: RuntimeDbPersistError) => DbAdapterError`
86
+ - error: `RuntimeDbPersistError`
87
+ - returns: `DbAdapterError`
88
+
89
+ ## createPendingRuntimeScreenOperationLoaderState
90
+
91
+ Kind: `function`
92
+ Module: `src/runtimeScreenLoaders.ts`
93
+ Source: `src/runtimeScreenLoaders.ts:93:1`
94
+
95
+ ### Signatures
96
+
97
+ - `(args: { readonly dependencyKey: string; readonly previousState?: RuntimeScreenOperationLoaderState; }) => RuntimeScreenOperationLoaderState`
98
+ - args: `{ readonly dependencyKey: string; readonly previousState?: RuntimeScreenOperationLoaderState; }`
99
+ - returns: `RuntimeScreenOperationLoaderState`
100
+
101
+ ## createRuntimeActionRegistry
102
+
103
+ Kind: `function`
104
+ Module: `src/runtimeActionRegistry.ts`
105
+ Source: `src/runtimeActionRegistry.ts:67:1`
106
+
107
+ ### Signatures
108
+
109
+ - `(options?: { actionHandlers?: RuntimeActionHandlers; dataSources?: DataSourceRegistry; dataBindings?: ComponentDataBindingRegistry; executeAction?: RuntimeActionHandler; executeOperation?: RuntimeBindingOperationExecutor; operationResults?: RuntimeBindingOperationResultCache; writeOperationResult?: RuntimeBindingOperationResultWriter; }) => RuntimeActionRegistry`
110
+ - options: `{ actionHandlers?: RuntimeActionHandlers; dataSources?: DataSourceRegistry; dataBindings?: ComponentDataBindingRegistry; executeAction?: RuntimeActionHandler; executeOperation?: RuntimeBindingOperationExecutor; operationResults?: RuntimeBindingOperationResultCache; writeOperationResult?: RuntimeBindingOperationResultWriter; }` (optional)
111
+ - returns: `RuntimeActionRegistry`
112
+
113
+ ## createRuntimeBindingOperationKey
114
+
115
+ Kind: `function`
116
+ Module: `src/runtimeBindings.ts`
117
+ Source: `src/runtimeBindings.ts:163:1`
118
+
119
+ ### Signatures
120
+
121
+ - `(operation: BindingOperationRef) => string`
122
+ - operation: `BindingOperationRef`
123
+ - returns: `string`
124
+
125
+ ## createRuntimeDataSourceOperationExecutor
126
+
127
+ Kind: `function`
128
+ Module: `src/runtimeDataSourceOperations.ts`
129
+ Source: `src/runtimeDataSourceOperations.ts:12:1`
130
+
131
+ ### Signatures
132
+
133
+ - `(options: RuntimeDataSourceOperationExecutorOptions) => RuntimeBindingOperationExecutor`
134
+ - options: `RuntimeDataSourceOperationExecutorOptions`
135
+ - returns: `RuntimeBindingOperationExecutor`
136
+
3
137
  ## createRuntimeManifest
4
138
 
5
139
  Kind: `function`
6
- Module: `src/index.ts`
7
- Source: `src/index.ts:81:1`
140
+ Module: `src/runtimeManifest.ts`
141
+ Source: `src/runtimeManifest.ts:81:1`
8
142
 
9
143
  ### Signatures
10
144
 
@@ -12,11 +146,35 @@ Source: `src/index.ts:81:1`
12
146
  - input: `RuntimeManifestInput`
13
147
  - returns: `RuntimeManifest`
14
148
 
149
+ ## createRuntimeMemoryStateAdapter
150
+
151
+ Kind: `function`
152
+ Module: `src/runtimeStateAdapter.ts`
153
+ Source: `src/runtimeStateAdapter.ts:18:1`
154
+
155
+ ### Signatures
156
+
157
+ - `(options?: RuntimeMemoryStateAdapterOptions) => StateAdapter`
158
+ - options: `RuntimeMemoryStateAdapterOptions` (optional)
159
+ - returns: `StateAdapter`
160
+
161
+ ## createRuntimeScreenLoaderRequestKey
162
+
163
+ Kind: `function`
164
+ Module: `src/runtimeScreenLoaders.ts`
165
+ Source: `src/runtimeScreenLoaders.ts:60:1`
166
+
167
+ ### Signatures
168
+
169
+ - `(args: { readonly screenId: string; readonly loaders: readonly OperationScreenDataLoaderDefinition[]; readonly bindingContext?: Record<string, unknown>; readonly operationResults?: RuntimeBindingOperationResultCache; }) => string`
170
+ - args: `{ readonly screenId: string; readonly loaders: readonly OperationScreenDataLoaderDefinition[]; readonly bindingContext?: Record<string, unknown>; readonly operationResults?: RuntimeBindingOperationResultCache; }`
171
+ - returns: `string`
172
+
15
173
  ## defineRuntimeAction
16
174
 
17
175
  Kind: `function`
18
- Module: `src/index.ts`
19
- Source: `src/index.ts:63:1`
176
+ Module: `src/runtimeManifest.ts`
177
+ Source: `src/runtimeManifest.ts:63:1`
20
178
 
21
179
  ### Signatures
22
180
 
@@ -27,8 +185,8 @@ Source: `src/index.ts:63:1`
27
185
  ## defineRuntimeAdapter
28
186
 
29
187
  Kind: `function`
30
- Module: `src/index.ts`
31
- Source: `src/index.ts:69:1`
188
+ Module: `src/runtimeManifest.ts`
189
+ Source: `src/runtimeManifest.ts:69:1`
32
190
 
33
191
  ### Signatures
34
192
 
@@ -39,8 +197,8 @@ Source: `src/index.ts:69:1`
39
197
  ## defineRuntimeBinding
40
198
 
41
199
  Kind: `function`
42
- Module: `src/index.ts`
43
- Source: `src/index.ts:75:1`
200
+ Module: `src/runtimeManifest.ts`
201
+ Source: `src/runtimeManifest.ts:75:1`
44
202
 
45
203
  ### Signatures
46
204
 
@@ -48,34 +206,271 @@ Source: `src/index.ts:75:1`
48
206
  - binding: `RuntimeBindingDescriptor<Value>`
49
207
  - returns: `RuntimeBindingDescriptor<Value>`
50
208
 
209
+ ## dispatchRuntimeComponentEvent
210
+
211
+ Kind: `function`
212
+ Module: `src/runtimeActionRegistry.ts`
213
+ Source: `src/runtimeActionRegistry.ts:103:1`
214
+
215
+ ### Signatures
216
+
217
+ - `(args: RuntimeComponentEventDispatchArgs & { readonly actionHandlers?: RuntimeActionHandlers; }) => Promise<readonly DataSourceDiagnostic[]>`
218
+ - args: `RuntimeComponentEventDispatchArgs & { readonly actionHandlers?: RuntimeActionHandlers; }`
219
+ - returns: `Promise<readonly DataSourceDiagnostic[]>`
220
+
221
+ ## dispatchRuntimeComponentEventWithReporting
222
+
223
+ Kind: `function`
224
+ Module: `src/runtimeEventExecution.ts`
225
+ Source: `src/runtimeEventExecution.ts:14:1`
226
+
227
+ ### Signatures
228
+
229
+ - `(args: RuntimeComponentEventDispatchArgs & RuntimeEventDiagnosticsReporter & { readonly actionHandlers?: RuntimeActionHandlers; }) => Promise<readonly DataSourceDiagnostic[]>`
230
+ - args: `RuntimeComponentEventDispatchArgs & RuntimeEventDiagnosticsReporter & { readonly actionHandlers?: RuntimeActionHandlers; }`
231
+ - returns: `Promise<readonly DataSourceDiagnostic[]>`
232
+
233
+ ## executeDbPersistAction
234
+
235
+ Kind: `function`
236
+ Module: `src/runtimeDbPersist.ts`
237
+ Source: `src/runtimeDbPersist.ts:48:1`
238
+
239
+ ### Signatures
240
+
241
+ - `(args: { readonly dbAdapter: DbAdapter; readonly handlerArgs: RuntimeActionHandlerArgs; }) => Promise<RuntimeDbPersistExecutionResult>`
242
+ - args: `{ readonly dbAdapter: DbAdapter; readonly handlerArgs: RuntimeActionHandlerArgs; }`
243
+ - returns: `Promise<RuntimeDbPersistExecutionResult>`
244
+
245
+ ## executeRuntimeApiLoaders
246
+
247
+ Kind: `function`
248
+ Module: `src/runtimeApiLoaders.ts`
249
+ Source: `src/runtimeApiLoaders.ts:100:1`
250
+
251
+ ### Signatures
252
+
253
+ - `(args: { readonly data?: AppDataManifest; readonly loaders: readonly RuntimeApiLoaderDefinition[]; readonly stateAdapter: StateAdapter; }) => RuntimeApiLoaderExecutionResult`
254
+ - args: `{ readonly data?: AppDataManifest; readonly loaders: readonly RuntimeApiLoaderDefinition[]; readonly stateAdapter: StateAdapter; }`
255
+ - returns: `RuntimeApiLoaderExecutionResult`
256
+
257
+ ## executeRuntimeScreenOperationLoaders
258
+
259
+ Kind: `function`
260
+ Module: `src/runtimeScreenLoaders.ts`
261
+ Source: `src/runtimeScreenLoaders.ts:189:1`
262
+
263
+ ### Signatures
264
+
265
+ - `(args: { readonly bindingContext?: Record<string, unknown>; readonly dataSources?: RuntimeBindingResolutionContext["dataSources"]; readonly executeOperation?: RuntimeBindingOperationExecutor; readonly operationResults?: RuntimeBindingOperationResultCache; readonly screen: ScreenSpec; readonly loaders: readonly OperationScreenDataLoaderDefinition[]; }) => Promise<RuntimeScreenOperationLoaderExecutionResult>`
266
+ - args: `{ readonly bindingContext?: Record<string, unknown>; readonly dataSources?: RuntimeBindingResolutionContext["dataSources"]; readonly executeOperation?: RuntimeBindingOperationExecutor; readonly operationResults?: RuntimeBindingOperationResultCache; readonly screen: ScreenSpec; readonly loaders: readonly OperationScreenDataLoaderDefinition[]; }`
267
+ - returns: `Promise<RuntimeScreenOperationLoaderExecutionResult>`
268
+
51
269
  ## listRuntimeCapabilities
52
270
 
53
271
  Kind: `function`
54
- Module: `src/index.ts`
55
- Source: `src/index.ts:93:1`
272
+ Module: `src/runtimeManifest.ts`
273
+ Source: `src/runtimeManifest.ts:93:1`
56
274
 
57
275
  ### Signatures
58
276
 
59
277
  - `() => readonly ("runtime.render" | "runtime.actions" | "runtime.bindings" | "runtime.adapters")[]`
60
278
  - returns: `readonly ("runtime.render" | "runtime.actions" | "runtime.bindings" | "runtime.adapters")[]`
61
279
 
280
+ ## ManifestContext
281
+
282
+ Kind: `value`
283
+ Module: `src/ManifestContext.tsx`
284
+ Source: `src/ManifestContext.tsx:10:14`
285
+
286
+ ## ManifestProvider
287
+
288
+ Kind: `function`
289
+ Module: `src/ManifestContext.tsx`
290
+ Source: `src/ManifestContext.tsx:12:1`
291
+
292
+ ### Signatures
293
+
294
+ - `(props: ManifestContextValue & { children: React.ReactNode; }) => React.JSX.Element`
295
+ - props: `ManifestContextValue & { children: React.ReactNode; }`
296
+ - returns: `React.JSX.Element`
297
+
298
+ ## materializeRuntimeApiLoaderState
299
+
300
+ Kind: `function`
301
+ Module: `src/runtimeApiLoaders.ts`
302
+ Source: `src/runtimeApiLoaders.ts:40:1`
303
+
304
+ ### Signatures
305
+
306
+ - `(args: { readonly data?: AppDataManifest; readonly loaders: readonly RuntimeApiLoaderDefinition[]; }) => RuntimeApiLoaderMaterializationResult`
307
+ - args: `{ readonly data?: AppDataManifest; readonly loaders: readonly RuntimeApiLoaderDefinition[]; }`
308
+ - returns: `RuntimeApiLoaderMaterializationResult`
309
+
310
+ ## mergeRuntimeRendererConfig
311
+
312
+ Kind: `function`
313
+ Module: `src/RuntimeRendererConfig.tsx`
314
+ Source: `src/RuntimeRendererConfig.tsx:103:1`
315
+
316
+ ### Signatures
317
+
318
+ - `(localConfig: RuntimeRendererConfig | undefined, inheritedConfig: RuntimeRendererConfig | undefined) => RuntimeRendererConfig`
319
+ - inheritedConfig: `RuntimeRendererConfig | undefined`
320
+ - localConfig: `RuntimeRendererConfig | undefined`
321
+ - returns: `RuntimeRendererConfig`
322
+
323
+ ## resolveBindingInputMap
324
+
325
+ Kind: `function`
326
+ Module: `src/runtimeBindings.ts`
327
+ Source: `src/runtimeBindings.ts:129:1`
328
+
329
+ ### Signatures
330
+
331
+ - `(input: Readonly<Record<string, BindingInputValue>> | undefined, context: RuntimeBindingResolutionContext, diagnostics?: DataSourceDiagnostic[]) => Promise<BindingValue | undefined>`
332
+ - context: `RuntimeBindingResolutionContext`
333
+ - diagnostics: `DataSourceDiagnostic[]` (optional)
334
+ - input: `Readonly<Record<string, BindingInputValue>> | undefined`
335
+ - returns: `Promise<BindingValue | undefined>`
336
+
337
+ ## resolveDbPersistInput
338
+
339
+ Kind: `function`
340
+ Module: `src/runtimeDbPersist.ts`
341
+ Source: `src/runtimeDbPersist.ts:68:1`
342
+
343
+ ### Signatures
344
+
345
+ - `(payload: object | undefined) => { readonly ok: true; readonly data: DbInsertInput; } | { readonly ok: false; readonly error: RuntimeDbPersistError; }`
346
+ - payload: `object | undefined`
347
+ - returns: `{ readonly ok: true; readonly data: DbInsertInput; } | { readonly ok: false; readonly error: RuntimeDbPersistError; }`
348
+
349
+ ## resolveRuntimeActionPayload
350
+
351
+ Kind: `function`
352
+ Module: `src/runtimeActionRegistry.ts`
353
+ Source: `src/runtimeActionRegistry.ts:231:1`
354
+
355
+ ### Signatures
356
+
357
+ - `(payload: object | undefined, args: RuntimeActionResolutionArgs) => object | undefined`
358
+ - args: `RuntimeActionResolutionArgs`
359
+ - payload: `object | undefined`
360
+ - returns: `object | undefined`
361
+
362
+ ## resolveRuntimeActionValue
363
+
364
+ Kind: `function`
365
+ Module: `src/runtimeActionRegistry.ts`
366
+ Source: `src/runtimeActionRegistry.ts:242:1`
367
+
368
+ ### Signatures
369
+
370
+ - `(value: unknown, args: RuntimeActionResolutionArgs) => object | undefined`
371
+ - args: `RuntimeActionResolutionArgs`
372
+ - value: `unknown`
373
+ - returns: `object | undefined`
374
+
375
+ ## resolveRuntimeBindings
376
+
377
+ Kind: `function`
378
+ Module: `src/runtimeBindings.ts`
379
+ Source: `src/runtimeBindings.ts:89:1`
380
+
381
+ ### Signatures
382
+
383
+ - `(args: RuntimeBindingResolutionArgs) => RuntimeBindingResolutionResult`
384
+ - args: `RuntimeBindingResolutionArgs`
385
+ - returns: `RuntimeBindingResolutionResult`
386
+
387
+ ## resolveRuntimeBindingsAsync
388
+
389
+ Kind: `function`
390
+ Module: `src/runtimeBindings.ts`
391
+ Source: `src/runtimeBindings.ts:74:1`
392
+
393
+ ### Signatures
394
+
395
+ - `(args: RuntimeBindingResolutionArgs) => Promise<RuntimeBindingResolutionResult>`
396
+ - args: `RuntimeBindingResolutionArgs`
397
+ - returns: `Promise<RuntimeBindingResolutionResult>`
398
+
399
+ ## resolveRuntimeBindingValue
400
+
401
+ Kind: `function`
402
+ Module: `src/runtimeBindings.ts`
403
+ Source: `src/runtimeBindings.ts:103:1`
404
+
405
+ ### Signatures
406
+
407
+ - `(binding: PropBinding, context: RuntimeBindingResolutionContext, diagnostics?: DataSourceDiagnostic[]) => Promise<unknown>`
408
+ - binding: `PropBinding`
409
+ - context: `RuntimeBindingResolutionContext`
410
+ - diagnostics: `DataSourceDiagnostic[]` (optional)
411
+ - returns: `Promise<unknown>`
412
+
413
+ ## resolveRuntimeBindingValueSync
414
+
415
+ Kind: `function`
416
+ Module: `src/runtimeBindings.ts`
417
+ Source: `src/runtimeBindings.ts:116:1`
418
+
419
+ ### Signatures
420
+
421
+ - `(binding: PropBinding, context: RuntimeBindingResolutionContext, diagnostics?: DataSourceDiagnostic[]) => unknown`
422
+ - binding: `PropBinding`
423
+ - context: `RuntimeBindingResolutionContext`
424
+ - diagnostics: `DataSourceDiagnostic[]` (optional)
425
+ - returns: `unknown`
426
+
427
+ ## resolveScreenApiLoaders
428
+
429
+ Kind: `function`
430
+ Module: `src/runtimeScreenLoaders.ts`
431
+ Source: `src/runtimeScreenLoaders.ts:44:1`
432
+
433
+ ### Signatures
434
+
435
+ - `(screen: ScreenSpec) => readonly ApiScreenDataLoaderDefinition[]`
436
+ - screen: `ScreenSpec`
437
+ - returns: `readonly ApiScreenDataLoaderDefinition[]`
438
+
439
+ ## resolveScreenOperationLoaders
440
+
441
+ Kind: `function`
442
+ Module: `src/runtimeScreenLoaders.ts`
443
+ Source: `src/runtimeScreenLoaders.ts:52:1`
444
+
445
+ ### Signatures
446
+
447
+ - `(screen: ScreenSpec) => readonly OperationScreenDataLoaderDefinition[]`
448
+ - screen: `ScreenSpec`
449
+ - returns: `readonly OperationScreenDataLoaderDefinition[]`
450
+
62
451
  ## RUNTIME_CAPABILITIES
63
452
 
64
453
  Kind: `value`
65
- Module: `src/index.ts`
66
- Source: `src/index.ts:1:14`
454
+ Module: `src/runtimeManifest.ts`
455
+ Source: `src/runtimeManifest.ts:1:14`
67
456
 
68
457
  ## RUNTIME_MANIFEST_KIND
69
458
 
70
459
  Kind: `value`
71
- Module: `src/index.ts`
72
- Source: `src/index.ts:8:14`
460
+ Module: `src/runtimeManifest.ts`
461
+ Source: `src/runtimeManifest.ts:8:14`
462
+
463
+ ## RuntimeAction
464
+
465
+ Kind: `unknown`
466
+ Module: `src/RuntimeRendererConfig.tsx`
467
+ Source: `src/RuntimeRendererConfig.tsx:40:1`
73
468
 
74
469
  ## RuntimeActionDescriptor
75
470
 
76
471
  Kind: `type`
77
- Module: `src/index.ts`
78
- Source: `src/index.ts:24:1`
472
+ Module: `src/runtimeManifest.ts`
473
+ Source: `src/runtimeManifest.ts:24:1`
79
474
 
80
475
  ### Members
81
476
 
@@ -86,11 +481,86 @@ Source: `src/index.ts:24:1`
86
481
  | description | property | `string \| undefined` | no | |
87
482
  | id | property | `string` | yes | |
88
483
 
484
+ ## RuntimeActionExecutor
485
+
486
+ Kind: `unknown`
487
+ Module: `src/RuntimeRendererConfig.tsx`
488
+ Source: `src/RuntimeRendererConfig.tsx:43:1`
489
+
490
+ ## RuntimeActionHandler
491
+
492
+ Kind: `unknown`
493
+ Module: `src/RuntimeRendererConfig.tsx`
494
+ Source: `src/RuntimeRendererConfig.tsx:41:1`
495
+
496
+ ## RuntimeActionHandlerArgs
497
+
498
+ Kind: `type`
499
+ Module: `src/RuntimeRendererConfig.tsx`
500
+ Source: `src/RuntimeRendererConfig.tsx:33:1`
501
+
502
+ ### Members
503
+
504
+ | Name | Kind | Type | Required | Description |
505
+ | --------------- | -------- | ------------------------------------------------ | -------- | ----------- |
506
+ | action | property | `RuntimeAction` | yes | |
507
+ | event | property | `ComponentEventDto<string, object> \| undefined` | no | |
508
+ | node | property | `UiNode \| undefined` | no | |
509
+ | resolvedPayload | property | `object \| undefined` | no | |
510
+
511
+ ## RuntimeActionHandlers
512
+
513
+ Kind: `unknown`
514
+ Module: `src/RuntimeRendererConfig.tsx`
515
+ Source: `src/RuntimeRendererConfig.tsx:42:1`
516
+
517
+ ## RuntimeActionRegistry
518
+
519
+ Kind: `type`
520
+ Module: `src/runtimeActionRegistry.ts`
521
+ Source: `src/runtimeActionRegistry.ts:31:1`
522
+
523
+ ### Members
524
+
525
+ | Name | Kind | Type | Required | Description |
526
+ | ---------------------- | ------ | ------------------------------------------------------------- | -------- | ----------- |
527
+ | dispatchComponentEvent | method | `(args: RuntimeComponentEventDispatchArgs) => Promise<void>` | yes | |
528
+ | registerActionHandler | method | `(type: string, handler: RuntimeActionHandler) => () => void` | yes | |
529
+
530
+ ## RuntimeActionResolutionArgs
531
+
532
+ Kind: `type`
533
+ Module: `src/runtimeActionRegistry.ts`
534
+ Source: `src/runtimeActionRegistry.ts:42:1`
535
+
536
+ ### Members
537
+
538
+ | Name | Kind | Type | Required | Description |
539
+ | ---------------- | -------- | ------------------------------------------------------------------ | -------- | ----------- |
540
+ | context | property | `Record<string, unknown> \| undefined` | no | |
541
+ | event | property | `ComponentEventDto<string, object>` | yes | |
542
+ | operationResults | property | `Readonly<Record<string, BindingValue \| undefined>> \| undefined` | no | |
543
+ | state | property | `Record<string, unknown> \| undefined` | no | |
544
+
545
+ ## RuntimeActionResolutionScope
546
+
547
+ Kind: `type`
548
+ Module: `src/runtimeActionRegistry.ts`
549
+ Source: `src/runtimeActionRegistry.ts:36:1`
550
+
551
+ ### Members
552
+
553
+ | Name | Kind | Type | Required | Description |
554
+ | ---------------- | -------- | ------------------------------------------------------------------ | -------- | ----------- |
555
+ | context | property | `Record<string, unknown> \| undefined` | no | |
556
+ | operationResults | property | `Readonly<Record<string, BindingValue \| undefined>> \| undefined` | no | |
557
+ | state | property | `Record<string, unknown> \| undefined` | no | |
558
+
89
559
  ## RuntimeAdapterDescriptor
90
560
 
91
561
  Kind: `type`
92
- Module: `src/index.ts`
93
- Source: `src/index.ts:39:1`
562
+ Module: `src/runtimeManifest.ts`
563
+ Source: `src/runtimeManifest.ts:39:1`
94
564
 
95
565
  ### Members
96
566
 
@@ -100,11 +570,63 @@ Source: `src/index.ts:39:1`
100
570
  | kind | property | `string` | yes | |
101
571
  | options | property | `Options \| undefined` | no | |
102
572
 
573
+ ## RuntimeApiLoaderDefinition
574
+
575
+ Kind: `unknown`
576
+ Module: `src/runtimeApiLoaders.ts`
577
+ Source: `src/runtimeApiLoaders.ts:17:1`
578
+
579
+ ## RuntimeApiLoaderDiagnostic
580
+
581
+ Kind: `type`
582
+ Module: `src/runtimeApiLoaders.ts`
583
+ Source: `src/runtimeApiLoaders.ts:19:1`
584
+
585
+ ### Members
586
+
587
+ | Name | Kind | Type | Required | Description |
588
+ | ---------- | -------- | ---------------------------------------------------------------------------------------------------------- | -------- | ----------- |
589
+ | apiId | property | `string \| undefined` | no | |
590
+ | code | property | `"invalid-record" \| "missing-api" \| "missing-target-path" \| "state-set-failed" \| "unsupported-loader"` | yes | |
591
+ | message | property | `string` | yes | |
592
+ | targetPath | property | `string \| undefined` | no | |
593
+
594
+ ## RuntimeApiLoaderExecutionResult
595
+
596
+ Kind: `type`
597
+ Module: `src/runtimeApiLoaders.ts`
598
+ Source: `src/runtimeApiLoaders.ts:31:1`
599
+
600
+ ### Members
601
+
602
+ | Name | Kind | Type | Required | Description |
603
+ | ----------- | -------- | --------------------------------------- | -------- | ----------- |
604
+ | diagnostics | property | `readonly RuntimeApiLoaderDiagnostic[]` | yes | |
605
+
606
+ ## RuntimeApiLoaderMaterializationResult
607
+
608
+ Kind: `type`
609
+ Module: `src/runtimeApiLoaders.ts`
610
+ Source: `src/runtimeApiLoaders.ts:35:1`
611
+
612
+ ### Members
613
+
614
+ | Name | Kind | Type | Required | Description |
615
+ | ----------- | -------- | --------------------------------------- | -------- | ----------- |
616
+ | diagnostics | property | `readonly RuntimeApiLoaderDiagnostic[]` | yes | |
617
+ | state | property | `Readonly<Record<string, StateValue>>` | yes | |
618
+
619
+ ## RuntimeApiLoaderMode
620
+
621
+ Kind: `unknown`
622
+ Module: `src/runtimeApiLoaders.ts`
623
+ Source: `src/runtimeApiLoaders.ts:15:1`
624
+
103
625
  ## RuntimeBindingDescriptor
104
626
 
105
627
  Kind: `type`
106
- Module: `src/index.ts`
107
- Source: `src/index.ts:31:1`
628
+ Module: `src/runtimeManifest.ts`
629
+ Source: `src/runtimeManifest.ts:31:1`
108
630
 
109
631
  ### Members
110
632
 
@@ -116,31 +638,181 @@ Source: `src/index.ts:31:1`
116
638
  | target | property | `string` | yes | |
117
639
  | value | property | `Value \| undefined` | no | |
118
640
 
641
+ ## RuntimeBindingOperationExecutionArgs
642
+
643
+ Kind: `type`
644
+ Module: `src/runtimeBindings.ts`
645
+ Source: `src/runtimeBindings.ts:22:1`
646
+
647
+ ### Members
648
+
649
+ | Name | Kind | Type | Required | Description |
650
+ | ---------- | -------- | --------------------------------- | -------- | ----------- |
651
+ | dataSource | property | `DataSourceConfig` | yes | |
652
+ | endpoint | property | `DataEndpointConfig \| undefined` | no | |
653
+ | input | property | `BindingValue \| undefined` | no | |
654
+ | node | property | `UiNode \| undefined` | no | |
655
+ | operation | property | `BindingOperationRef` | yes | |
656
+
657
+ ## RuntimeBindingOperationExecutionResult
658
+
659
+ Kind: `unknown`
660
+ Module: `src/runtimeBindings.ts`
661
+ Source: `src/runtimeBindings.ts:30:1`
662
+
663
+ ## RuntimeBindingOperationExecutor
664
+
665
+ Kind: `unknown`
666
+ Module: `src/runtimeBindings.ts`
667
+ Source: `src/runtimeBindings.ts:41:1`
668
+
669
+ ## RuntimeBindingOperationKey
670
+
671
+ Kind: `unknown`
672
+ Module: `src/runtimeBindings.ts`
673
+ Source: `src/runtimeBindings.ts:20:1`
674
+
675
+ ## RuntimeBindingOperationResultCache
676
+
677
+ Kind: `unknown`
678
+ Module: `src/runtimeBindings.ts`
679
+ Source: `src/runtimeBindings.ts:45:1`
680
+
681
+ ## RuntimeBindingOperationResultWriter
682
+
683
+ Kind: `unknown`
684
+ Module: `src/runtimeBindings.ts`
685
+ Source: `src/runtimeBindings.ts:49:1`
686
+
687
+ ## RuntimeBindingResolutionArgs
688
+
689
+ Kind: `type`
690
+ Module: `src/runtimeBindings.ts`
691
+ Source: `src/runtimeBindings.ts:64:1`
692
+
693
+ ### Members
694
+
695
+ | Name | Kind | Type | Required | Description |
696
+ | ---------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------- |
697
+ | context | property | `Record<string, unknown> \| undefined` | no | |
698
+ | dataBindings | property | `Readonly<Record<string, import("/Users/a_rtiphishl_e/git/runtime/node_modules/@ankhorage/contracts/dist/bindings").ComponentDataBinding>> \| undefined` | no | |
699
+ | dataSources | property | `Readonly<Record<string, DataSourceConfig>> \| undefined` | no | |
700
+ | event | property | `ComponentEventDto<string, object> \| undefined` | no | |
701
+ | executeOperation | property | `RuntimeBindingOperationExecutor \| undefined` | no | |
702
+ | node | property | `UiNode` | yes | |
703
+ | operationResults | property | `Readonly<Record<string, BindingValue \| undefined>> \| undefined` | no | |
704
+ | props | property | `Record<string, unknown>` | yes | |
705
+ | stateAdapter | property | `StateAdapter \| undefined` | no | |
706
+
707
+ ## RuntimeBindingResolutionContext
708
+
709
+ Kind: `type`
710
+ Module: `src/runtimeBindings.ts`
711
+ Source: `src/runtimeBindings.ts:54:1`
712
+
713
+ ### Members
714
+
715
+ | Name | Kind | Type | Required | Description |
716
+ | ---------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------- |
717
+ | context | property | `Record<string, unknown> \| undefined` | no | |
718
+ | dataBindings | property | `Readonly<Record<string, import("/Users/a_rtiphishl_e/git/runtime/node_modules/@ankhorage/contracts/dist/bindings").ComponentDataBinding>> \| undefined` | no | |
719
+ | dataSources | property | `Readonly<Record<string, DataSourceConfig>> \| undefined` | no | |
720
+ | event | property | `ComponentEventDto<string, object> \| undefined` | no | |
721
+ | executeOperation | property | `RuntimeBindingOperationExecutor \| undefined` | no | |
722
+ | operationResults | property | `Readonly<Record<string, BindingValue \| undefined>> \| undefined` | no | |
723
+ | stateAdapter | property | `StateAdapter \| undefined` | no | |
724
+
725
+ ## RuntimeBindingResolutionResult
726
+
727
+ Kind: `type`
728
+ Module: `src/runtimeBindings.ts`
729
+ Source: `src/runtimeBindings.ts:69:1`
730
+
731
+ ### Members
732
+
733
+ | Name | Kind | Type | Required | Description |
734
+ | ----------- | -------- | --------------------------------- | -------- | ----------- |
735
+ | diagnostics | property | `readonly DataSourceDiagnostic[]` | yes | |
736
+ | props | property | `Record<string, unknown>` | yes | |
737
+
119
738
  ## RuntimeCapability
120
739
 
121
740
  Kind: `unknown`
122
- Module: `src/index.ts`
123
- Source: `src/index.ts:10:1`
741
+ Module: `src/runtimeManifest.ts`
742
+ Source: `src/runtimeManifest.ts:10:1`
124
743
 
125
- ## RuntimeConfig
744
+ ## RuntimeComponentEventDispatchArgs
126
745
 
127
746
  Kind: `type`
128
- Module: `src/index.ts`
129
- Source: `src/index.ts:18:1`
747
+ Module: `src/runtimeActionRegistry.ts`
748
+ Source: `src/runtimeActionRegistry.ts:46:1`
130
749
 
131
750
  ### Members
132
751
 
133
- | Name | Kind | Type | Required | Description |
134
- | ----------- | -------- | ------------------------------------------------ | -------- | ----------- |
135
- | appId | property | `string` | yes | |
136
- | environment | property | `string \| undefined` | no | |
137
- | values | property | `Readonly<Record<string, unknown>> \| undefined` | no | |
752
+ | Name | Kind | Type | Required | Description |
753
+ | -------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------- |
754
+ | context | property | `Record<string, unknown> \| undefined` | no | |
755
+ | dataBindings | property | `Readonly<Record<string, import("/Users/a_rtiphishl_e/git/runtime/node_modules/@ankhorage/contracts/dist/bindings").ComponentDataBinding>> \| undefined` | no | |
756
+ | dataSources | property | `Readonly<Record<string, DataSourceConfig>> \| undefined` | no | |
757
+ | event | property | `ComponentEventDto<string, object>` | yes | |
758
+ | eventName | property | `string \| undefined` | no | |
759
+ | executeAction | property | `RuntimeActionHandler \| undefined` | no | |
760
+ | executeOperation | property | `RuntimeBindingOperationExecutor \| undefined` | no | |
761
+ | node | property | `UiNode` | yes | |
762
+ | operationResults | property | `Readonly<Record<string, BindingValue \| undefined>> \| undefined` | no | |
763
+ | state | property | `Record<string, unknown> \| undefined` | no | |
764
+ | writeOperationResult | property | `RuntimeBindingOperationResultWriter \| undefined` | no | |
765
+
766
+ ## RuntimeDataSourceOperationExecutorOptions
767
+
768
+ Kind: `type`
769
+ Module: `src/runtimeDataSourceOperations.ts`
770
+ Source: `src/runtimeDataSourceOperations.ts:7:1`
771
+
772
+ ### Members
773
+
774
+ | Name | Kind | Type | Required | Description |
775
+ | ------------------ | -------- | --------------------------------------------- | -------- | ----------- |
776
+ | credentialResolver | property | `EndpointTestCredentialResolver \| undefined` | no | |
777
+ | fetch | property | `EndpointTestFetch` | yes | |
778
+
779
+ ## RuntimeDbPersistError
780
+
781
+ Kind: `type`
782
+ Module: `src/runtimeDbPersist.ts`
783
+ Source: `src/runtimeDbPersist.ts:16:1`
784
+
785
+ ### Members
786
+
787
+ | Name | Kind | Type | Required | Description |
788
+ | ------- | -------- | -------- | -------- | ----------- |
789
+ | code | property | `string` | yes | |
790
+ | message | property | `string` | yes | |
791
+
792
+ ## RuntimeDbPersistExecutionResult
793
+
794
+ Kind: `unknown`
795
+ Module: `src/runtimeDbPersist.ts`
796
+ Source: `src/runtimeDbPersist.ts:21:1`
797
+
798
+ ## RuntimeDbPersistResult
799
+
800
+ Kind: `type`
801
+ Module: `src/runtimeDbPersist.ts`
802
+ Source: `src/runtimeDbPersist.ts:11:1`
803
+
804
+ ### Members
805
+
806
+ | Name | Kind | Type | Required | Description |
807
+ | ------ | -------- | ------------------------- | -------- | ----------- |
808
+ | input | property | `DbInsertInput<DbRecord>` | yes | |
809
+ | result | property | `DbResult<DbRecord[]>` | yes | |
138
810
 
139
811
  ## RuntimeDiagnostic
140
812
 
141
813
  Kind: `type`
142
- Module: `src/index.ts`
143
- Source: `src/index.ts:12:1`
814
+ Module: `src/runtimeManifest.ts`
815
+ Source: `src/runtimeManifest.ts:12:1`
144
816
 
145
817
  ### Members
146
818
 
@@ -150,11 +822,43 @@ Source: `src/index.ts:12:1`
150
822
  | message | property | `string` | yes | |
151
823
  | severity | property | `"error" \| "info" \| "warning"` | yes | |
152
824
 
825
+ ## RuntimeEventDiagnosticsReporter
826
+
827
+ Kind: `type`
828
+ Module: `src/runtimeEventExecution.ts`
829
+ Source: `src/runtimeEventExecution.ts:9:1`
830
+
831
+ ### Members
832
+
833
+ | Name | Kind | Type | Required | Description |
834
+ | ------------- | -------- | ----------------------------------------------------------------------- | -------- | ----------- |
835
+ | consoleImpl | property | `Pick<Console, "error" \| "warn"> \| undefined` | no | |
836
+ | onDiagnostics | property | `((diagnostics: readonly DataSourceDiagnostic[]) => void) \| undefined` | no | |
837
+
838
+ ## RuntimeEventPropWrapArgs
839
+
840
+ Kind: `type`
841
+ Module: `src/runtimeActionRegistry.ts`
842
+ Source: `src/runtimeActionRegistry.ts:57:1`
843
+
844
+ ### Members
845
+
846
+ | Name | Kind | Type | Required | Description |
847
+ | ---------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------- |
848
+ | context | property | `Record<string, unknown> \| undefined` | no | |
849
+ | dataBindings | property | `Readonly<Record<string, import("/Users/a_rtiphishl_e/git/runtime/node_modules/@ankhorage/contracts/dist/bindings").ComponentDataBinding>> \| undefined` | no | |
850
+ | disableActions | property | `boolean` | yes | |
851
+ | dispatchComponentEvent | property | `(args: RuntimeComponentEventDispatchArgs) => Promise<void> \| void` | yes | |
852
+ | node | property | `UiNode` | yes | |
853
+ | operationResults | property | `Readonly<Record<string, BindingValue \| undefined>> \| undefined` | no | |
854
+ | props | property | `Record<string, unknown>` | yes | |
855
+ | state | property | `Record<string, unknown> \| undefined` | no | |
856
+
153
857
  ## RuntimeManifest
154
858
 
155
859
  Kind: `type`
156
- Module: `src/index.ts`
157
- Source: `src/index.ts:45:1`
860
+ Module: `src/runtimeManifest.ts`
861
+ Source: `src/runtimeManifest.ts:45:1`
158
862
 
159
863
  ### Members
160
864
 
@@ -163,16 +867,30 @@ Source: `src/index.ts:45:1`
163
867
  | actions | property | `readonly RuntimeActionDescriptor<unknown>[]` | yes | |
164
868
  | adapters | property | `readonly RuntimeAdapterDescriptor<unknown>[]` | yes | |
165
869
  | bindings | property | `readonly RuntimeBindingDescriptor<unknown>[]` | yes | |
166
- | config | property | `RuntimeConfig` | yes | |
870
+ | config | property | `RuntimeManifestConfig` | yes | |
167
871
  | diagnostics | property | `readonly RuntimeDiagnostic[]` | yes | |
168
872
  | kind | property | `"ankhorage-runtime-manifest"` | yes | |
169
873
  | version | property | `1` | yes | |
170
874
 
875
+ ## RuntimeManifestConfig
876
+
877
+ Kind: `type`
878
+ Module: `src/runtimeManifest.ts`
879
+ Source: `src/runtimeManifest.ts:18:1`
880
+
881
+ ### Members
882
+
883
+ | Name | Kind | Type | Required | Description |
884
+ | ----------- | -------- | ------------------------------------------------ | -------- | ----------- |
885
+ | appId | property | `string` | yes | |
886
+ | environment | property | `string \| undefined` | no | |
887
+ | values | property | `Readonly<Record<string, unknown>> \| undefined` | no | |
888
+
171
889
  ## RuntimeManifestInput
172
890
 
173
891
  Kind: `type`
174
- Module: `src/index.ts`
175
- Source: `src/index.ts:55:1`
892
+ Module: `src/runtimeManifest.ts`
893
+ Source: `src/runtimeManifest.ts:55:1`
176
894
 
177
895
  ### Members
178
896
 
@@ -181,5 +899,300 @@ Source: `src/index.ts:55:1`
181
899
  | actions | property | `readonly RuntimeActionDescriptor<unknown>[] \| undefined` | no | |
182
900
  | adapters | property | `readonly RuntimeAdapterDescriptor<unknown>[] \| undefined` | no | |
183
901
  | bindings | property | `readonly RuntimeBindingDescriptor<unknown>[] \| undefined` | no | |
184
- | config | property | `RuntimeConfig` | yes | |
902
+ | config | property | `RuntimeManifestConfig` | yes | |
185
903
  | diagnostics | property | `readonly RuntimeDiagnostic[] \| undefined` | no | |
904
+
905
+ ## RuntimeMemoryStateAdapterOptions
906
+
907
+ Kind: `type`
908
+ Module: `src/runtimeStateAdapter.ts`
909
+ Source: `src/runtimeStateAdapter.ts:14:1`
910
+
911
+ ### Members
912
+
913
+ | Name | Kind | Type | Required | Description |
914
+ | ------------ | -------- | --------------------------------------------------- | -------- | ----------- |
915
+ | initialState | property | `Readonly<Record<string, StateValue>> \| undefined` | no | |
916
+
917
+ ## RuntimeNodePropsResolver
918
+
919
+ Kind: `unknown`
920
+ Module: `node_modules/@ankhorage/contracts/dist/runtimeCallbacks.d.ts`
921
+ Source: `node_modules/@ankhorage/contracts/dist/runtimeCallbacks.d.ts:6:1`
922
+
923
+ ## RuntimeRenderer
924
+
925
+ Kind: `function`
926
+ Module: `src/RuntimeRenderer.tsx`
927
+ Source: `src/RuntimeRenderer.tsx:68:1`
928
+
929
+ ### Signatures
930
+
931
+ - `(props: RuntimeRendererProps) => React.JSX.Element`
932
+ - props: `RuntimeRendererProps`
933
+ - returns: `React.JSX.Element`
934
+
935
+ ## RuntimeRendererConfig
936
+
937
+ Kind: `type`
938
+ Module: `src/RuntimeRendererConfig.tsx`
939
+ Source: `src/RuntimeRendererConfig.tsx:45:1`
940
+
941
+ ### Members
942
+
943
+ | Name | Kind | Type | Required | Description |
944
+ | -------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------- |
945
+ | actionHandlers | property | `RuntimeActionHandlers \| undefined` | no | |
946
+ | bindingContext | property | `Record<string, unknown> \| undefined` | no | |
947
+ | dataBindings | property | `Readonly<Record<string, import("/Users/a_rtiphishl_e/git/runtime/node_modules/@ankhorage/contracts/dist/bindings").ComponentDataBinding>> \| undefined` | no | |
948
+ | dataSources | property | `Readonly<Record<string, import("/Users/a_rtiphishl_e/git/runtime/node_modules/@ankhorage/contracts/dist/index").DataSourceConfig>> \| undefined` | no | |
949
+ | dbAdapter | property | `DbAdapter \| undefined` | no | |
950
+ | dbRealtimeAdapter | property | `DbRealtimeAdapter \| undefined` | no | |
951
+ | disableActions | property | `boolean \| undefined` | no | |
952
+ | executeAction | property | `RuntimeActionHandler \| undefined` | no | |
953
+ | executeOperation | property | `RuntimeBindingOperationExecutor \| undefined` | no | |
954
+ | onDiagnostics | property | `((diagnostics: readonly DataSourceDiagnostic[]) => void) \| undefined` | no | |
955
+ | operationResults | property | `Readonly<Record<string, import("/Users/a_rtiphishl_e/git/runtime/node_modules/@ankhorage/contracts/dist/bindings").BindingValue \| undefined>> \| undefined` | no | |
956
+ | registry | property | `ComponentRegistry \| undefined` | no | |
957
+ | resolveNodeProps | property | `RuntimeNodePropsResolver \| undefined` | no | |
958
+ | stateAdapter | property | `StateAdapter \| undefined` | no | |
959
+ | wrapNode | property | `((args: RuntimeRendererWrapArgs) => React.ReactNode) \| undefined` | no | |
960
+ | writeOperationResult | property | `RuntimeBindingOperationResultWriter \| undefined` | no | |
961
+
962
+ ## RuntimeRendererConfigProvider
963
+
964
+ Kind: `function`
965
+ Module: `src/RuntimeRendererConfig.tsx`
966
+ Source: `src/RuntimeRendererConfig.tsx:149:1`
967
+
968
+ ### Signatures
969
+
970
+ - `(props: { value: RuntimeRendererConfig; children: React.ReactNode; }) => React.JSX.Element`
971
+ - props: `{ value: RuntimeRendererConfig; children: React.ReactNode; }`
972
+ - returns: `React.JSX.Element`
973
+
974
+ ## RuntimeRendererProps
975
+
976
+ Kind: `type`
977
+ Module: `src/RuntimeRenderer.tsx`
978
+ Source: `src/RuntimeRenderer.tsx:50:1`
979
+
980
+ ### Members
981
+
982
+ | Name | Kind | Type | Required | Description |
983
+ | ----------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------- |
984
+ | bindingContext | property | `Record<string, unknown> \| undefined` | no | |
985
+ | dataBindings | property | `Readonly<Record<string, import("/Users/a_rtiphishl_e/git/runtime/node_modules/@ankhorage/contracts/dist/bindings").ComponentDataBinding>> \| undefined` | no | |
986
+ | dataSources | property | `Readonly<Record<string, import("/Users/a_rtiphishl_e/git/runtime/node_modules/@ankhorage/contracts/dist/index").DataSourceConfig>> \| undefined` | no | |
987
+ | dbAdapter | property | `DbAdapter \| undefined` | no | |
988
+ | dbRealtimeAdapter | property | `DbRealtimeAdapter \| undefined` | no | |
989
+ | disableActions | property | `boolean \| undefined` | no | |
990
+ | executeAction | property | `import("/Users/a_rtiphishl_e/git/runtime/src/RuntimeRendererConfig").RuntimeActionHandler \| undefined` | no | |
991
+ | executeOperation | property | `RuntimeBindingOperationExecutor \| undefined` | no | |
992
+ | isRoot | property | `boolean \| undefined` | no | |
993
+ | node | property | `UiNode` | yes | |
994
+ | onDiagnostics | property | `((diagnostics: readonly DataSourceDiagnostic[]) => void) \| undefined` | no | |
995
+ | operationResults | property | `Readonly<Record<string, BindingValue \| undefined>> \| undefined` | no | |
996
+ | registry | property | `ComponentRegistry \| undefined` | no | |
997
+ | stateAdapter | property | `StateAdapter \| undefined` | no | |
998
+ | wrapNode | property | `((args: RuntimeRendererWrapArgs) => React.ReactNode) \| undefined` | no | |
999
+
1000
+ ## RuntimeRendererWrapArgs
1001
+
1002
+ Kind: `type`
1003
+ Module: `src/RuntimeRendererConfig.tsx`
1004
+ Source: `src/RuntimeRendererConfig.tsx:27:1`
1005
+
1006
+ ### Members
1007
+
1008
+ | Name | Kind | Type | Required | Description |
1009
+ | -------- | -------- | ----------------- | -------- | ----------- |
1010
+ | isRoot | property | `boolean` | yes | |
1011
+ | node | property | `UiNode` | yes | |
1012
+ | rendered | property | `React.ReactNode` | yes | |
1013
+
1014
+ ## RuntimeResolveNodePropsArgs
1015
+
1016
+ Kind: `type`
1017
+ Module: `node_modules/@ankhorage/contracts/dist/runtimeCallbacks.d.ts`
1018
+ Source: `node_modules/@ankhorage/contracts/dist/runtimeCallbacks.d.ts:2:1`
1019
+
1020
+ ### Members
1021
+
1022
+ | Name | Kind | Type | Required | Description |
1023
+ | ----- | -------- | ------------------------- | -------- | ----------- |
1024
+ | node | property | `UiNode` | yes | |
1025
+ | props | property | `Record<string, unknown>` | yes | |
1026
+
1027
+ ## RuntimeScreen
1028
+
1029
+ Kind: `function`
1030
+ Module: `src/RuntimeScreen.tsx`
1031
+ Source: `src/RuntimeScreen.tsx:24:1`
1032
+
1033
+ ### Signatures
1034
+
1035
+ - `(props: RuntimeScreenProps) => React.JSX.Element`
1036
+ - props: `RuntimeScreenProps`
1037
+ - returns: `React.JSX.Element`
1038
+
1039
+ ## RuntimeScreenOperationLoaderExecutionResult
1040
+
1041
+ Kind: `type`
1042
+ Module: `src/runtimeScreenLoaders.ts`
1043
+ Source: `src/runtimeScreenLoaders.ts:26:1`
1044
+
1045
+ ### Members
1046
+
1047
+ | Name | Kind | Type | Required | Description |
1048
+ | ---------------- | -------- | ----------------------------------------------------- | -------- | ----------- |
1049
+ | dependencyKey | property | `string` | yes | |
1050
+ | diagnostics | property | `readonly DataSourceDiagnostic[]` | yes | |
1051
+ | operationResults | property | `Readonly<Record<string, BindingValue \| undefined>>` | yes | |
1052
+
1053
+ ## RuntimeScreenOperationLoaderState
1054
+
1055
+ Kind: `type`
1056
+ Module: `src/runtimeScreenLoaders.ts`
1057
+ Source: `src/runtimeScreenLoaders.ts:19:1`
1058
+
1059
+ ### Members
1060
+
1061
+ | Name | Kind | Type | Required | Description |
1062
+ | ---------------- | -------- | ----------------------------------------------------- | -------- | ----------- |
1063
+ | dependencyKey | property | `string` | yes | |
1064
+ | diagnostics | property | `readonly DataSourceDiagnostic[]` | yes | |
1065
+ | operationResults | property | `Readonly<Record<string, BindingValue \| undefined>>` | yes | |
1066
+ | renderVersion | property | `number` | yes | |
1067
+
1068
+ ## RuntimeScreenProps
1069
+
1070
+ Kind: `type`
1071
+ Module: `src/RuntimeScreen.tsx`
1072
+ Source: `src/RuntimeScreen.tsx:17:1`
1073
+
1074
+ ### Members
1075
+
1076
+ | Name | Kind | Type | Required | Description |
1077
+ | ------------ | -------- | -------------------------------- | -------- | ----------- |
1078
+ | manifest | property | `AppManifest` | yes | |
1079
+ | registry | property | `ComponentRegistry \| undefined` | no | |
1080
+ | screen | property | `ScreenSpec` | yes | |
1081
+ | stateAdapter | property | `StateAdapter \| undefined` | no | |
1082
+
1083
+ ## shouldRenderRuntimeRepeatEmptyState
1084
+
1085
+ Kind: `function`
1086
+ Module: `src/runtimeRepeatEmptyState.ts`
1087
+ Source: `src/runtimeRepeatEmptyState.ts:3:1`
1088
+
1089
+ ### Signatures
1090
+
1091
+ - `(args: { readonly diagnostics?: readonly DataSourceDiagnostic[]; readonly items?: readonly BindingValue[]; readonly status?: "pending" | "ready"; }) => boolean`
1092
+ - args: `{ readonly diagnostics?: readonly DataSourceDiagnostic[]; readonly items?: readonly BindingValue[]; readonly status?: "pending" | "ready"; }`
1093
+ - returns: `boolean`
1094
+
1095
+ ## SURFACE_COMPONENT_REGISTRY
1096
+
1097
+ Kind: `value`
1098
+ Module: `src/registry.tsx`
1099
+ Source: `src/registry.tsx:51:14`
1100
+
1101
+ ## useManifest
1102
+
1103
+ Kind: `function`
1104
+ Module: `src/ManifestContext.tsx`
1105
+ Source: `src/ManifestContext.tsx:22:1`
1106
+
1107
+ ### Signatures
1108
+
1109
+ - `() => AppManifest`
1110
+ - returns: `AppManifest`
1111
+
1112
+ ## useManifestContext
1113
+
1114
+ Kind: `function`
1115
+ Module: `src/ManifestContext.tsx`
1116
+ Source: `src/ManifestContext.tsx:30:1`
1117
+
1118
+ ### Signatures
1119
+
1120
+ - `() => ManifestContextValue`
1121
+ - returns: `ManifestContextValue`
1122
+
1123
+ ## useOptionalManifestContext
1124
+
1125
+ Kind: `function`
1126
+ Module: `src/ManifestContext.tsx`
1127
+ Source: `src/ManifestContext.tsx:38:1`
1128
+
1129
+ ### Signatures
1130
+
1131
+ - `() => ManifestContextValue | null`
1132
+ - returns: `ManifestContextValue | null`
1133
+
1134
+ ## useRuntimeApiStateLoaders
1135
+
1136
+ Kind: `function`
1137
+ Module: `src/runtimeApiLoaders.ts`
1138
+ Source: `src/runtimeApiLoaders.ts:125:1`
1139
+
1140
+ ### Signatures
1141
+
1142
+ - `(args: { readonly data?: AppDataManifest; readonly loaders?: readonly RuntimeApiLoaderDefinition[]; readonly stateAdapter?: StateAdapter; }) => { readonly diagnostics: readonly RuntimeApiLoaderDiagnostic[]; readonly stateAdapter: StateAdapter; readonly stateVersion: number; }`
1143
+ - args: `{ readonly data?: AppDataManifest; readonly loaders?: readonly RuntimeApiLoaderDefinition[]; readonly stateAdapter?: StateAdapter; }`
1144
+ - returns: `{ readonly diagnostics: readonly RuntimeApiLoaderDiagnostic[]; readonly stateAdapter: StateAdapter; readonly stateVersion: number; }`
1145
+
1146
+ ## useRuntimeRendererConfig
1147
+
1148
+ Kind: `function`
1149
+ Module: `src/RuntimeRendererConfig.tsx`
1150
+ Source: `src/RuntimeRendererConfig.tsx:164:1`
1151
+
1152
+ ### Signatures
1153
+
1154
+ - `() => RuntimeRendererConfig`
1155
+ - returns: `RuntimeRendererConfig`
1156
+
1157
+ ## useRuntimeScreenOperationLoaders
1158
+
1159
+ Kind: `function`
1160
+ Module: `src/runtimeScreenLoaders.ts`
1161
+ Source: `src/runtimeScreenLoaders.ts:284:1`
1162
+
1163
+ ### Signatures
1164
+
1165
+ - `(args: { readonly bindingContext?: Record<string, unknown>; readonly dataSources?: RuntimeBindingResolutionContext["dataSources"]; readonly executeOperation?: RuntimeBindingOperationExecutor; readonly operationResults?: RuntimeBindingOperationResultCache; readonly onDiagnostics?: (diagnostics: readonly DataSourceDiagnostic[]) => void; readonly screen: ScreenSpec; }) => RuntimeScreenOperationLoaderState`
1166
+ - args: `{ readonly bindingContext?: Record<string, unknown>; readonly dataSources?: RuntimeBindingResolutionContext["dataSources"]; readonly executeOperation?: RuntimeBindingOperationExecutor; readonly operationResults?: RuntimeBindingOperationResultCache; readonly onDiagnostics?: (diagnostics: readonly DataSourceDiagnostic[]) => void; readonly screen: ScreenSpec; }`
1167
+ - returns: `RuntimeScreenOperationLoaderState`
1168
+
1169
+ ## validateRuntimeBindingOperationRef
1170
+
1171
+ Kind: `function`
1172
+ Module: `src/runtimeBindings.ts`
1173
+ Source: `src/runtimeBindings.ts:169:1`
1174
+
1175
+ ### Signatures
1176
+
1177
+ - `(operation: BindingOperationRef, dataSources: Readonly<Record<string, DataSourceConfig>> | undefined) => readonly DataSourceDiagnostic[]`
1178
+ - dataSources: `Readonly<Record<string, DataSourceConfig>> | undefined`
1179
+ - operation: `BindingOperationRef`
1180
+ - returns: `readonly DataSourceDiagnostic[]`
1181
+
1182
+ ## wrapRuntimeEventProps
1183
+
1184
+ Kind: `function`
1185
+ Module: `src/runtimeActionRegistry.ts`
1186
+ Source: `src/runtimeActionRegistry.ts:180:1`
1187
+
1188
+ ### Signatures
1189
+
1190
+ - `(args: RuntimeEventPropWrapArgs) => Record<string, unknown>`
1191
+ - args: `RuntimeEventPropWrapArgs`
1192
+ - returns: `Record<string, unknown>`
1193
+
1194
+ ## ZORA_COMPONENT_REGISTRY
1195
+
1196
+ Kind: `value`
1197
+ Module: `src/registry.tsx`
1198
+ Source: `src/registry.tsx:95:14`