@ankhorage/runtime 5.9.1 → 5.9.3
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.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/RuntimeRenderer.d.ts.map +1 -1
- package/dist/RuntimeRenderer.js +7 -7
- package/dist/RuntimeRenderer.js.map +1 -1
- package/dist/RuntimeRendererConfig.d.ts +1 -0
- package/dist/RuntimeRendererConfig.d.ts.map +1 -1
- package/dist/RuntimeRendererConfig.js +2 -2
- package/dist/RuntimeRendererConfig.js.map +1 -1
- package/package.json +3 -3
- package/paradox/badges/npm.svg +3 -3
- package/paradox/components.md +1 -0
- package/paradox/diagrams/architecture-overview.mmd +5 -0
- package/paradox/diagrams/export-graph.mmd +1 -0
- package/paradox/diagrams/module-relationships.mmd +4 -0
- package/paradox/exports.json +3 -3
- package/paradox/exports.md +3 -3
- package/paradox/index.html +97 -9
- package/paradox/paradox.json +298 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @ankhorage/runtime
|
|
2
2
|
|
|
3
|
+
## 5.9.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2478ff0: Update dependencies: `@ankhorage/contracts`.
|
|
8
|
+
|
|
9
|
+
## 5.9.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- c394e2c: Preserve effective renderer configuration for manifest children rendered outside their original React provider ancestry.
|
|
14
|
+
|
|
3
15
|
## 5.9.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# Ankhorage Runtime
|
|
5
5
|
|
|
6
|
-
         
|
|
7
7
|
|
|
8
8
|
Renders Ankhorage application manifests and resolves their runtime bindings, capabilities, events, media, screens, and state.
|
|
9
9
|
|
|
@@ -1 +1 @@
|
|
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AAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAC,CAAC,CAAC;IACtE,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,iBAAiB,CAAC,EAAE,yBAAyB,CAAC;IAC9C,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,iBAAiB,CAAC,EAAE,yBAAyB,CAAC;IAC9C,sBAAsB,CAAC,EAAE,8BAA8B,CAAC;IACxD,aAAa,CAAC,EAAE,CAAC,WAAW,EAAE,SAAS,oBAAoB,EAAE,KAAK,IAAI,CAAC;CACxE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,qBAgX1D"}
|
package/dist/RuntimeRenderer.js
CHANGED
|
@@ -237,16 +237,16 @@ export function RuntimeRenderer(props) {
|
|
|
237
237
|
index: itemIndex,
|
|
238
238
|
keyPath: node.repeat?.keyPath,
|
|
239
239
|
});
|
|
240
|
-
return (_jsx(RuntimeRenderer, { node: child, registry: effectiveRegistry, bindingContext: createRuntimeRepeatBindingContext({
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
240
|
+
return (_jsx(RuntimeRendererConfigProvider, { replace: true, value: effectiveConfig, children: _jsx(RuntimeRenderer, { node: child, registry: effectiveRegistry, bindingContext: createRuntimeRepeatBindingContext({
|
|
241
|
+
baseContext: effectiveConfig.bindingContext,
|
|
242
|
+
item,
|
|
243
|
+
itemAlias,
|
|
244
|
+
}) }) }, `${child.id}:${String(repeatKey)}`));
|
|
245
245
|
}))
|
|
246
246
|
: shouldRenderRepeatEmptyState
|
|
247
|
-
? node.repeat.empty?.map((child) => (_jsx(RuntimeRenderer, { node: child, registry: effectiveRegistry }, child.id)))
|
|
247
|
+
? node.repeat.empty?.map((child) => (_jsx(RuntimeRendererConfigProvider, { replace: true, value: effectiveConfig, children: _jsx(RuntimeRenderer, { node: child, registry: effectiveRegistry }) }, child.id)))
|
|
248
248
|
: undefined
|
|
249
|
-
: node.children?.map((child) => (_jsx(RuntimeRenderer, { node: child, registry: effectiveRegistry }, child.id)));
|
|
249
|
+
: node.children?.map((child) => (_jsx(RuntimeRendererConfigProvider, { replace: true, value: effectiveConfig, children: _jsx(RuntimeRenderer, { node: child, registry: effectiveRegistry }) }, child.id)));
|
|
250
250
|
const propsWithEvents = wrapRuntimeEventProps({
|
|
251
251
|
context: effectiveConfig.bindingContext,
|
|
252
252
|
dataBindings: effectiveConfig.dataBindings,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimeRenderer.js","sourceRoot":"","sources":["../src/RuntimeRenderer.tsx"],"names":[],"mappings":";AAUA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGpE,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAGL,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,0CAA0C,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EACL,yCAAyC,EACzC,oCAAoC,EACpC,kCAAkC,GACnC,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,mCAAmC,EACnC,8BAA8B,GAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,EAE7B,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC3B,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,0BAA0B,EA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E,MAAM,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,CACL,KAAC,mCAAmC,IAAC,KAAK,EAAE,oBAAoB,YAC9D,KAAC,6BAA6B,IAAC,KAAK,EAAE,cAAc,YACjD,OAAO,GACsB,GACI,CACvC,CAAC;AACJ,CAAC;AAED,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,QAAQ,EAAE;QACR,WAAW,EAAE,SAAS;QACtB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,CAAC;QACd,MAAM,EAAE,CAAC;QACT,OAAO,EAAE,CAAC;KACX;IACD,UAAU,EAAE;QACV,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,YAAY,EAAE,CAAC;KAChB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,KAAK;KAClB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAE,EAAE;QACZ,SAAS,EAAE,CAAC;KACb;CACF,CAAC,CAAC","sourcesContent":["import type {\n BindingValue,\n ComponentDataBindingRegistry,\n DataSourceDiagnostic,\n DbAdapter,\n DbRealtimeAdapter,\n MediaAssetRegistry,\n StateAdapter,\n UiNode,\n} from '@ankhorage/contracts';\nimport React from 'react';\n\nimport { StyleSheet, Text, View } from '#runtime-renderer-platform';\n\nimport type { ComponentRegistry } from './registry.js';\nimport {\n getUnknownComponentDiagnostic,\n resolveRenderedChildren,\n resolveRuntimeRegistry,\n} from './rendering.js';\nimport {\n type RuntimeComponentEventDispatchArgs,\n type RuntimeEventCapabilityResolver,\n wrapRuntimeEventProps,\n} from './runtimeActionRegistry.js';\nimport type { RuntimeBindingResultCache, RuntimeCapabilityExecutor } from './runtimeBindings.js';\nimport { dispatchRuntimeComponentEventWithReporting } from './runtimeEventExecution.js';\nimport {\n createRuntimeEventOperationBindingContext,\n createRuntimeEventOperationLifecycle,\n IDLE_RUNTIME_EVENT_OPERATION_STATE,\n} from './runtimeEventOperationLifecycle.js';\nimport type { RuntimeMediaAssetResolver } from './runtimeMedia.js';\nimport {\n RuntimeMediaResolutionCacheProvider,\n useRuntimeMediaResolutionCache,\n} from './runtimeMediaCache.js';\nimport { resolveRuntimeNodeProps } from './runtimeNodeProps.js';\nimport {\n mergeRuntimeRendererConfig,\n RuntimeRendererConfigProvider,\n type RuntimeRendererWrapArgs,\n useRuntimeRendererConfig,\n} from './RuntimeRendererConfig.js';\nimport {\n createRuntimeRepeatBindingContext,\n resolveRuntimeRepeatItemKey,\n resolveRuntimeRepeatItemsAsync,\n resolveRuntimeRepeatItemsSync,\n} from './runtimeRepeat.js';\nimport { createRepeatDiagnosticsKey } from './runtimeRepeatDiagnostics.js';\nimport { shouldRenderRuntimeRepeatEmptyState } from './runtimeRepeatEmptyState.js';\nimport { useRuntimeMediaProps } from './useRuntimeMediaProps.js';\nimport { useRuntimeStateBindings } from './useRuntimeStateBindings.js';\n\nexport interface RuntimeRendererProps {\n node: UiNode;\n isRoot?: boolean;\n registry?: ComponentRegistry;\n disableActions?: boolean;\n wrapNode?: (args: RuntimeRendererWrapArgs) => React.ReactNode;\n dbAdapter?: DbAdapter;\n dbRealtimeAdapter?: DbRealtimeAdapter;\n stateAdapter?: StateAdapter;\n bindingContext?: Record<string, unknown>;\n capabilityValues?: Readonly<Record<string, BindingValue | undefined>>;\n dataBindings?: ComponentDataBindingRegistry;\n mediaAssets?: MediaAssetRegistry;\n resolveMediaAsset?: RuntimeMediaAssetResolver;\n resultSlots?: RuntimeBindingResultCache;\n executeCapability?: RuntimeCapabilityExecutor;\n resolveEventCapability?: RuntimeEventCapabilityResolver;\n onDiagnostics?: (diagnostics: readonly DataSourceDiagnostic[]) => void;\n}\n\nexport function RuntimeRenderer(props: RuntimeRendererProps) {\n const {\n node,\n isRoot = false,\n registry,\n disableActions = false,\n wrapNode,\n dbAdapter,\n dbRealtimeAdapter,\n stateAdapter,\n bindingContext,\n capabilityValues,\n dataBindings,\n mediaAssets,\n resolveMediaAsset,\n resultSlots,\n executeCapability,\n resolveEventCapability,\n onDiagnostics,\n } = props;\n const inheritedConfig = useRuntimeRendererConfig();\n const [rootEventOperationState, setRootEventOperationState] = React.useState(\n IDLE_RUNTIME_EVENT_OPERATION_STATE,\n );\n const rootEventOperationLifecycle = React.useMemo(\n () => createRuntimeEventOperationLifecycle(setRootEventOperationState),\n [],\n );\n const eventOperationState = isRoot\n ? rootEventOperationState\n : inheritedConfig.eventOperationState;\n const rootBindingContext = React.useMemo(\n () =>\n mergeRuntimeRendererConfig(\n { bindingContext },\n { bindingContext: inheritedConfig.bindingContext },\n ).bindingContext,\n [bindingContext, inheritedConfig.bindingContext],\n );\n const effectiveBindingContext = React.useMemo(\n () =>\n isRoot && eventOperationState !== undefined\n ? createRuntimeEventOperationBindingContext(rootBindingContext, eventOperationState)\n : bindingContext,\n [bindingContext, eventOperationState, isRoot, rootBindingContext],\n );\n const mediaResolutionCache = useRuntimeMediaResolutionCache();\n const inheritedResultSlots = inheritedConfig.resultSlots;\n const [localResultSlots, setLocalResultSlots] = React.useState<RuntimeBindingResultCache>({});\n const writeLocalResultSlot = React.useCallback((key: string, value: BindingValue | undefined) => {\n setLocalResultSlots((currentResults) => ({\n ...currentResults,\n [key]: value,\n }));\n }, []);\n const effectiveResultSlots = React.useMemo(\n () => ({\n ...(inheritedResultSlots ?? {}),\n ...(resultSlots ?? {}),\n ...localResultSlots,\n }),\n [inheritedResultSlots, localResultSlots, resultSlots],\n );\n const explicitConfig = React.useMemo(\n () => ({\n bindingContext: effectiveBindingContext,\n capabilityValues,\n dataBindings,\n dbAdapter,\n dbRealtimeAdapter,\n disableActions,\n executeCapability,\n resolveEventCapability,\n mediaAssets,\n resultSlots: effectiveResultSlots,\n onDiagnostics,\n registry,\n resolveMediaAsset,\n stateAdapter,\n wrapNode,\n writeResultSlot: inheritedConfig.writeResultSlot ?? writeLocalResultSlot,\n eventOperationLifecycle: isRoot\n ? rootEventOperationLifecycle\n : inheritedConfig.eventOperationLifecycle,\n eventOperationState,\n }),\n [\n effectiveBindingContext,\n capabilityValues,\n dataBindings,\n dbAdapter,\n dbRealtimeAdapter,\n disableActions,\n executeCapability,\n resolveEventCapability,\n effectiveResultSlots,\n inheritedConfig.writeResultSlot,\n inheritedConfig.eventOperationLifecycle,\n isRoot,\n mediaAssets,\n onDiagnostics,\n registry,\n resolveMediaAsset,\n stateAdapter,\n wrapNode,\n writeLocalResultSlot,\n eventOperationState,\n rootEventOperationLifecycle,\n ],\n );\n const effectiveConfig = React.useMemo(\n () => mergeRuntimeRendererConfig(explicitConfig, inheritedConfig),\n [explicitConfig, inheritedConfig],\n );\n useRuntimeStateBindings({\n bindingContext: effectiveConfig.bindingContext,\n dataBindings: effectiveConfig.dataBindings,\n nodeId: node.id,\n repeatSource: node.repeat?.source,\n stateAdapter: effectiveConfig.stateAdapter,\n });\n const dispatchRuntimeEvent = React.useCallback(\n async (eventArgs: RuntimeComponentEventDispatchArgs) => {\n await dispatchRuntimeComponentEventWithReporting({\n ...eventArgs,\n dataBindings: eventArgs.dataBindings ?? effectiveConfig.dataBindings,\n executeCapability: eventArgs.executeCapability ?? effectiveConfig.executeCapability,\n onDiagnostics: effectiveConfig.onDiagnostics,\n resultSlots: eventArgs.resultSlots ?? effectiveConfig.resultSlots,\n stateAdapter: eventArgs.stateAdapter ?? effectiveConfig.stateAdapter,\n writeResultSlot: eventArgs.writeResultSlot ?? effectiveConfig.writeResultSlot,\n eventOperationLifecycle:\n eventArgs.eventOperationLifecycle ?? effectiveConfig.eventOperationLifecycle,\n });\n },\n [effectiveConfig],\n );\n const effectiveRegistry = React.useMemo(\n () =>\n resolveRuntimeRegistry({\n propRegistry: registry,\n configRegistry: effectiveConfig.registry,\n }),\n [effectiveConfig.registry, registry],\n );\n const Component = effectiveRegistry[node.type];\n\n const repeatSyncResult = (() => {\n const { repeat } = node;\n if (!repeat) {\n return null;\n }\n\n return resolveRuntimeRepeatItemsSync(repeat, {\n capabilityValues: effectiveConfig.capabilityValues,\n context: effectiveConfig.bindingContext,\n dataBindings: effectiveConfig.dataBindings,\n executeCapability: effectiveConfig.executeCapability,\n node,\n resultSlots: effectiveConfig.resultSlots,\n stateAdapter: effectiveConfig.stateAdapter,\n writeResultSlot: effectiveConfig.writeResultSlot,\n });\n })();\n const repeatRequest = React.useMemo(\n () =>\n node.repeat && repeatSyncResult?.status === 'pending'\n ? {\n context: effectiveConfig.bindingContext,\n capabilityValues: effectiveConfig.capabilityValues,\n dataBindings: effectiveConfig.dataBindings,\n executeCapability: effectiveConfig.executeCapability,\n node,\n repeat: node.repeat,\n resultSlots: effectiveConfig.resultSlots,\n stateAdapter: effectiveConfig.stateAdapter,\n writeResultSlot: effectiveConfig.writeResultSlot,\n }\n : null,\n [\n node,\n repeatSyncResult?.status,\n effectiveConfig.bindingContext,\n effectiveConfig.capabilityValues,\n effectiveConfig.dataBindings,\n effectiveConfig.executeCapability,\n effectiveConfig.resultSlots,\n effectiveConfig.stateAdapter,\n effectiveConfig.writeResultSlot,\n ],\n );\n const repeatRequestToken = React.useMemo(() => (repeatRequest ? {} : null), [repeatRequest]);\n const [asyncRepeatResult, setAsyncRepeatResult] = React.useState<{\n readonly requestToken: object;\n readonly items: readonly BindingValue[];\n readonly diagnostics: readonly DataSourceDiagnostic[];\n } | null>(null);\n const repeatRequestIdRef = React.useRef(0);\n const lastRepeatDiagnosticsKeyRef = React.useRef<string | null>(null);\n\n React.useEffect(() => {\n repeatRequestIdRef.current += 1;\n const requestId = repeatRequestIdRef.current;\n if (repeatRequest === null || repeatRequestToken === null) {\n return undefined;\n }\n\n void (async () => {\n const result = await resolveRuntimeRepeatItemsAsync(repeatRequest.repeat, {\n capabilityValues: repeatRequest.capabilityValues,\n context: repeatRequest.context,\n dataBindings: repeatRequest.dataBindings,\n executeCapability: repeatRequest.executeCapability,\n node: repeatRequest.node,\n resultSlots: repeatRequest.resultSlots,\n stateAdapter: repeatRequest.stateAdapter,\n writeResultSlot: repeatRequest.writeResultSlot,\n });\n\n if (repeatRequestIdRef.current !== requestId) {\n return;\n }\n\n setAsyncRepeatResult({ ...result, requestToken: repeatRequestToken });\n })();\n\n return () => {\n repeatRequestIdRef.current += 1;\n };\n }, [repeatRequest, repeatRequestToken]);\n const currentAsyncRepeatResult =\n asyncRepeatResult?.requestToken === repeatRequestToken ? asyncRepeatResult : null;\n const repeatDiagnostics =\n repeatSyncResult?.status === 'ready'\n ? repeatSyncResult.diagnostics\n : currentAsyncRepeatResult?.diagnostics;\n\n React.useEffect(() => {\n if (!node.repeat || repeatDiagnostics === undefined) {\n return;\n }\n\n const diagnosticsKey = createRepeatDiagnosticsKey(node.id, repeatDiagnostics);\n if (lastRepeatDiagnosticsKeyRef.current === diagnosticsKey) {\n return;\n }\n\n lastRepeatDiagnosticsKeyRef.current = diagnosticsKey;\n effectiveConfig.onDiagnostics?.(repeatDiagnostics);\n }, [effectiveConfig, node, repeatDiagnostics]);\n\n const bindingResolvedProps = resolveRuntimeNodeProps({\n bindingContext: effectiveConfig.bindingContext,\n capabilityValues: effectiveConfig.capabilityValues,\n dataBindings: effectiveConfig.dataBindings,\n dbAdapter: effectiveConfig.dbAdapter,\n dbRealtimeAdapter: effectiveConfig.dbRealtimeAdapter,\n node,\n resultSlots: effectiveConfig.resultSlots,\n stateAdapter: effectiveConfig.stateAdapter,\n });\n const mediaResolvedProps = useRuntimeMediaProps({\n cache: mediaResolutionCache,\n mediaAssets: effectiveConfig.mediaAssets,\n props: bindingResolvedProps,\n resolveMediaAsset: effectiveConfig.resolveMediaAsset,\n });\n const resolvedProps = effectiveConfig.resolveNodeProps\n ? effectiveConfig.resolveNodeProps({ node, props: mediaResolvedProps })\n : mediaResolvedProps;\n\n if (!Component) {\n const diagnostic = getUnknownComponentDiagnostic(node.type, effectiveRegistry);\n return (\n <View style={styles.errorBox}>\n <Text style={styles.errorTitle}>{diagnostic.title}</Text>\n <Text style={styles.errorText}>{diagnostic.suggestion}</Text>\n <Text style={styles.errorMeta}>{diagnostic.detail}</Text>\n </View>\n );\n }\n\n const repeatItems =\n repeatSyncResult?.status === 'ready' ? repeatSyncResult.items : currentAsyncRepeatResult?.items;\n const shouldRenderRepeatEmptyState = shouldRenderRuntimeRepeatEmptyState({\n diagnostics: repeatDiagnostics,\n items: repeatItems,\n status:\n repeatSyncResult?.status === 'ready'\n ? 'ready'\n : repeatSyncResult?.status === 'pending'\n ? 'pending'\n : currentAsyncRepeatResult\n ? 'ready'\n : undefined,\n });\n const renderedChildren = node.repeat\n ? repeatItems && repeatItems.length > 0\n ? repeatItems.flatMap((item, itemIndex) =>\n (node.children ?? []).map((child) => {\n const itemAlias = node.repeat?.itemAlias ?? 'item';\n const repeatKey = resolveRuntimeRepeatItemKey({\n item,\n itemAlias,\n index: itemIndex,\n keyPath: node.repeat?.keyPath,\n });\n\n return (\n <RuntimeRenderer\n key={`${child.id}:${String(repeatKey)}`}\n node={child}\n registry={effectiveRegistry}\n bindingContext={createRuntimeRepeatBindingContext({\n baseContext: effectiveConfig.bindingContext,\n item,\n itemAlias,\n })}\n />\n );\n }),\n )\n : shouldRenderRepeatEmptyState\n ? node.repeat.empty?.map((child) => (\n <RuntimeRenderer key={child.id} node={child} registry={effectiveRegistry} />\n ))\n : undefined\n : node.children?.map((child) => (\n <RuntimeRenderer key={child.id} node={child} registry={effectiveRegistry} />\n ));\n\n const propsWithEvents = wrapRuntimeEventProps({\n context: effectiveConfig.bindingContext,\n dataBindings: effectiveConfig.dataBindings,\n props: resolvedProps,\n disableActions: effectiveConfig.disableActions === true,\n dispatchComponentEvent: dispatchRuntimeEvent,\n node,\n resultSlots: effectiveConfig.resultSlots,\n resolveEventCapability: effectiveConfig.resolveEventCapability,\n });\n\n const componentChildren = resolveRenderedChildren({\n propChildren: propsWithEvents.children as React.ReactNode,\n renderedChildren,\n });\n\n let content: React.ReactNode = <Component {...propsWithEvents}>{componentChildren}</Component>;\n if (effectiveConfig.wrapNode) {\n content = effectiveConfig.wrapNode({ node, rendered: content, isRoot });\n }\n\n return (\n <RuntimeMediaResolutionCacheProvider value={mediaResolutionCache}>\n <RuntimeRendererConfigProvider value={explicitConfig}>\n {content}\n </RuntimeRendererConfigProvider>\n </RuntimeMediaResolutionCacheProvider>\n );\n}\n\nconst styles = StyleSheet.create({\n errorBox: {\n borderColor: '#ef4444',\n borderRadius: 8,\n borderWidth: 1,\n margin: 8,\n padding: 8,\n },\n errorTitle: {\n color: '#991b1b',\n fontSize: 13,\n fontWeight: '700',\n marginBottom: 4,\n },\n errorText: {\n color: '#ef4444',\n fontWeight: '600',\n },\n errorMeta: {\n color: '#7f1d1d',\n fontSize: 12,\n marginTop: 4,\n },\n});\n"]}
|
|
1
|
+
{"version":3,"file":"RuntimeRenderer.js","sourceRoot":"","sources":["../src/RuntimeRenderer.tsx"],"names":[],"mappings":";AAUA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGpE,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAGL,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,0CAA0C,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EACL,yCAAyC,EACzC,oCAAoC,EACpC,kCAAkC,GACnC,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,mCAAmC,EACnC,8BAA8B,GAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,EAE7B,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC3B,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,0BAA0B,EA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AAoB,KAAC,SAAS,OAAK,eAAe,YAAG,iBAAiB,GAAa,CAAC;IAC/F,IAAI,eAAe,CAAC,QAAQ,EAAE,CAAC;QAC7B,OAAO,GAAG,eAAe,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,CACL,KAAC,mCAAmC,IAAC,KAAK,EAAE,oBAAoB,YAC9D,KAAC,6BAA6B,IAAC,KAAK,EAAE,cAAc,YACjD,OAAO,GACsB,GACI,CACvC,CAAC;AACJ,CAAC;AAED,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,QAAQ,EAAE;QACR,WAAW,EAAE,SAAS;QACtB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,CAAC;QACd,MAAM,EAAE,CAAC;QACT,OAAO,EAAE,CAAC;KACX;IACD,UAAU,EAAE;QACV,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,YAAY,EAAE,CAAC;KAChB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,KAAK;KAClB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAE,EAAE;QACZ,SAAS,EAAE,CAAC;KACb;CACF,CAAC,CAAC","sourcesContent":["import type {\n BindingValue,\n ComponentDataBindingRegistry,\n DataSourceDiagnostic,\n DbAdapter,\n DbRealtimeAdapter,\n MediaAssetRegistry,\n StateAdapter,\n UiNode,\n} from '@ankhorage/contracts';\nimport React from 'react';\n\nimport { StyleSheet, Text, View } from '#runtime-renderer-platform';\n\nimport type { ComponentRegistry } from './registry.js';\nimport {\n getUnknownComponentDiagnostic,\n resolveRenderedChildren,\n resolveRuntimeRegistry,\n} from './rendering.js';\nimport {\n type RuntimeComponentEventDispatchArgs,\n type RuntimeEventCapabilityResolver,\n wrapRuntimeEventProps,\n} from './runtimeActionRegistry.js';\nimport type { RuntimeBindingResultCache, RuntimeCapabilityExecutor } from './runtimeBindings.js';\nimport { dispatchRuntimeComponentEventWithReporting } from './runtimeEventExecution.js';\nimport {\n createRuntimeEventOperationBindingContext,\n createRuntimeEventOperationLifecycle,\n IDLE_RUNTIME_EVENT_OPERATION_STATE,\n} from './runtimeEventOperationLifecycle.js';\nimport type { RuntimeMediaAssetResolver } from './runtimeMedia.js';\nimport {\n RuntimeMediaResolutionCacheProvider,\n useRuntimeMediaResolutionCache,\n} from './runtimeMediaCache.js';\nimport { resolveRuntimeNodeProps } from './runtimeNodeProps.js';\nimport {\n mergeRuntimeRendererConfig,\n RuntimeRendererConfigProvider,\n type RuntimeRendererWrapArgs,\n useRuntimeRendererConfig,\n} from './RuntimeRendererConfig.js';\nimport {\n createRuntimeRepeatBindingContext,\n resolveRuntimeRepeatItemKey,\n resolveRuntimeRepeatItemsAsync,\n resolveRuntimeRepeatItemsSync,\n} from './runtimeRepeat.js';\nimport { createRepeatDiagnosticsKey } from './runtimeRepeatDiagnostics.js';\nimport { shouldRenderRuntimeRepeatEmptyState } from './runtimeRepeatEmptyState.js';\nimport { useRuntimeMediaProps } from './useRuntimeMediaProps.js';\nimport { useRuntimeStateBindings } from './useRuntimeStateBindings.js';\n\nexport interface RuntimeRendererProps {\n node: UiNode;\n isRoot?: boolean;\n registry?: ComponentRegistry;\n disableActions?: boolean;\n wrapNode?: (args: RuntimeRendererWrapArgs) => React.ReactNode;\n dbAdapter?: DbAdapter;\n dbRealtimeAdapter?: DbRealtimeAdapter;\n stateAdapter?: StateAdapter;\n bindingContext?: Record<string, unknown>;\n capabilityValues?: Readonly<Record<string, BindingValue | undefined>>;\n dataBindings?: ComponentDataBindingRegistry;\n mediaAssets?: MediaAssetRegistry;\n resolveMediaAsset?: RuntimeMediaAssetResolver;\n resultSlots?: RuntimeBindingResultCache;\n executeCapability?: RuntimeCapabilityExecutor;\n resolveEventCapability?: RuntimeEventCapabilityResolver;\n onDiagnostics?: (diagnostics: readonly DataSourceDiagnostic[]) => void;\n}\n\nexport function RuntimeRenderer(props: RuntimeRendererProps) {\n const {\n node,\n isRoot = false,\n registry,\n disableActions = false,\n wrapNode,\n dbAdapter,\n dbRealtimeAdapter,\n stateAdapter,\n bindingContext,\n capabilityValues,\n dataBindings,\n mediaAssets,\n resolveMediaAsset,\n resultSlots,\n executeCapability,\n resolveEventCapability,\n onDiagnostics,\n } = props;\n const inheritedConfig = useRuntimeRendererConfig();\n const [rootEventOperationState, setRootEventOperationState] = React.useState(\n IDLE_RUNTIME_EVENT_OPERATION_STATE,\n );\n const rootEventOperationLifecycle = React.useMemo(\n () => createRuntimeEventOperationLifecycle(setRootEventOperationState),\n [],\n );\n const eventOperationState = isRoot\n ? rootEventOperationState\n : inheritedConfig.eventOperationState;\n const rootBindingContext = React.useMemo(\n () =>\n mergeRuntimeRendererConfig(\n { bindingContext },\n { bindingContext: inheritedConfig.bindingContext },\n ).bindingContext,\n [bindingContext, inheritedConfig.bindingContext],\n );\n const effectiveBindingContext = React.useMemo(\n () =>\n isRoot && eventOperationState !== undefined\n ? createRuntimeEventOperationBindingContext(rootBindingContext, eventOperationState)\n : bindingContext,\n [bindingContext, eventOperationState, isRoot, rootBindingContext],\n );\n const mediaResolutionCache = useRuntimeMediaResolutionCache();\n const inheritedResultSlots = inheritedConfig.resultSlots;\n const [localResultSlots, setLocalResultSlots] = React.useState<RuntimeBindingResultCache>({});\n const writeLocalResultSlot = React.useCallback((key: string, value: BindingValue | undefined) => {\n setLocalResultSlots((currentResults) => ({\n ...currentResults,\n [key]: value,\n }));\n }, []);\n const effectiveResultSlots = React.useMemo(\n () => ({\n ...(inheritedResultSlots ?? {}),\n ...(resultSlots ?? {}),\n ...localResultSlots,\n }),\n [inheritedResultSlots, localResultSlots, resultSlots],\n );\n const explicitConfig = React.useMemo(\n () => ({\n bindingContext: effectiveBindingContext,\n capabilityValues,\n dataBindings,\n dbAdapter,\n dbRealtimeAdapter,\n disableActions,\n executeCapability,\n resolveEventCapability,\n mediaAssets,\n resultSlots: effectiveResultSlots,\n onDiagnostics,\n registry,\n resolveMediaAsset,\n stateAdapter,\n wrapNode,\n writeResultSlot: inheritedConfig.writeResultSlot ?? writeLocalResultSlot,\n eventOperationLifecycle: isRoot\n ? rootEventOperationLifecycle\n : inheritedConfig.eventOperationLifecycle,\n eventOperationState,\n }),\n [\n effectiveBindingContext,\n capabilityValues,\n dataBindings,\n dbAdapter,\n dbRealtimeAdapter,\n disableActions,\n executeCapability,\n resolveEventCapability,\n effectiveResultSlots,\n inheritedConfig.writeResultSlot,\n inheritedConfig.eventOperationLifecycle,\n isRoot,\n mediaAssets,\n onDiagnostics,\n registry,\n resolveMediaAsset,\n stateAdapter,\n wrapNode,\n writeLocalResultSlot,\n eventOperationState,\n rootEventOperationLifecycle,\n ],\n );\n const effectiveConfig = React.useMemo(\n () => mergeRuntimeRendererConfig(explicitConfig, inheritedConfig),\n [explicitConfig, inheritedConfig],\n );\n useRuntimeStateBindings({\n bindingContext: effectiveConfig.bindingContext,\n dataBindings: effectiveConfig.dataBindings,\n nodeId: node.id,\n repeatSource: node.repeat?.source,\n stateAdapter: effectiveConfig.stateAdapter,\n });\n const dispatchRuntimeEvent = React.useCallback(\n async (eventArgs: RuntimeComponentEventDispatchArgs) => {\n await dispatchRuntimeComponentEventWithReporting({\n ...eventArgs,\n dataBindings: eventArgs.dataBindings ?? effectiveConfig.dataBindings,\n executeCapability: eventArgs.executeCapability ?? effectiveConfig.executeCapability,\n onDiagnostics: effectiveConfig.onDiagnostics,\n resultSlots: eventArgs.resultSlots ?? effectiveConfig.resultSlots,\n stateAdapter: eventArgs.stateAdapter ?? effectiveConfig.stateAdapter,\n writeResultSlot: eventArgs.writeResultSlot ?? effectiveConfig.writeResultSlot,\n eventOperationLifecycle:\n eventArgs.eventOperationLifecycle ?? effectiveConfig.eventOperationLifecycle,\n });\n },\n [effectiveConfig],\n );\n const effectiveRegistry = React.useMemo(\n () =>\n resolveRuntimeRegistry({\n propRegistry: registry,\n configRegistry: effectiveConfig.registry,\n }),\n [effectiveConfig.registry, registry],\n );\n const Component = effectiveRegistry[node.type];\n\n const repeatSyncResult = (() => {\n const { repeat } = node;\n if (!repeat) {\n return null;\n }\n\n return resolveRuntimeRepeatItemsSync(repeat, {\n capabilityValues: effectiveConfig.capabilityValues,\n context: effectiveConfig.bindingContext,\n dataBindings: effectiveConfig.dataBindings,\n executeCapability: effectiveConfig.executeCapability,\n node,\n resultSlots: effectiveConfig.resultSlots,\n stateAdapter: effectiveConfig.stateAdapter,\n writeResultSlot: effectiveConfig.writeResultSlot,\n });\n })();\n const repeatRequest = React.useMemo(\n () =>\n node.repeat && repeatSyncResult?.status === 'pending'\n ? {\n context: effectiveConfig.bindingContext,\n capabilityValues: effectiveConfig.capabilityValues,\n dataBindings: effectiveConfig.dataBindings,\n executeCapability: effectiveConfig.executeCapability,\n node,\n repeat: node.repeat,\n resultSlots: effectiveConfig.resultSlots,\n stateAdapter: effectiveConfig.stateAdapter,\n writeResultSlot: effectiveConfig.writeResultSlot,\n }\n : null,\n [\n node,\n repeatSyncResult?.status,\n effectiveConfig.bindingContext,\n effectiveConfig.capabilityValues,\n effectiveConfig.dataBindings,\n effectiveConfig.executeCapability,\n effectiveConfig.resultSlots,\n effectiveConfig.stateAdapter,\n effectiveConfig.writeResultSlot,\n ],\n );\n const repeatRequestToken = React.useMemo(() => (repeatRequest ? {} : null), [repeatRequest]);\n const [asyncRepeatResult, setAsyncRepeatResult] = React.useState<{\n readonly requestToken: object;\n readonly items: readonly BindingValue[];\n readonly diagnostics: readonly DataSourceDiagnostic[];\n } | null>(null);\n const repeatRequestIdRef = React.useRef(0);\n const lastRepeatDiagnosticsKeyRef = React.useRef<string | null>(null);\n\n React.useEffect(() => {\n repeatRequestIdRef.current += 1;\n const requestId = repeatRequestIdRef.current;\n if (repeatRequest === null || repeatRequestToken === null) {\n return undefined;\n }\n\n void (async () => {\n const result = await resolveRuntimeRepeatItemsAsync(repeatRequest.repeat, {\n capabilityValues: repeatRequest.capabilityValues,\n context: repeatRequest.context,\n dataBindings: repeatRequest.dataBindings,\n executeCapability: repeatRequest.executeCapability,\n node: repeatRequest.node,\n resultSlots: repeatRequest.resultSlots,\n stateAdapter: repeatRequest.stateAdapter,\n writeResultSlot: repeatRequest.writeResultSlot,\n });\n\n if (repeatRequestIdRef.current !== requestId) {\n return;\n }\n\n setAsyncRepeatResult({ ...result, requestToken: repeatRequestToken });\n })();\n\n return () => {\n repeatRequestIdRef.current += 1;\n };\n }, [repeatRequest, repeatRequestToken]);\n const currentAsyncRepeatResult =\n asyncRepeatResult?.requestToken === repeatRequestToken ? asyncRepeatResult : null;\n const repeatDiagnostics =\n repeatSyncResult?.status === 'ready'\n ? repeatSyncResult.diagnostics\n : currentAsyncRepeatResult?.diagnostics;\n\n React.useEffect(() => {\n if (!node.repeat || repeatDiagnostics === undefined) {\n return;\n }\n\n const diagnosticsKey = createRepeatDiagnosticsKey(node.id, repeatDiagnostics);\n if (lastRepeatDiagnosticsKeyRef.current === diagnosticsKey) {\n return;\n }\n\n lastRepeatDiagnosticsKeyRef.current = diagnosticsKey;\n effectiveConfig.onDiagnostics?.(repeatDiagnostics);\n }, [effectiveConfig, node, repeatDiagnostics]);\n\n const bindingResolvedProps = resolveRuntimeNodeProps({\n bindingContext: effectiveConfig.bindingContext,\n capabilityValues: effectiveConfig.capabilityValues,\n dataBindings: effectiveConfig.dataBindings,\n dbAdapter: effectiveConfig.dbAdapter,\n dbRealtimeAdapter: effectiveConfig.dbRealtimeAdapter,\n node,\n resultSlots: effectiveConfig.resultSlots,\n stateAdapter: effectiveConfig.stateAdapter,\n });\n const mediaResolvedProps = useRuntimeMediaProps({\n cache: mediaResolutionCache,\n mediaAssets: effectiveConfig.mediaAssets,\n props: bindingResolvedProps,\n resolveMediaAsset: effectiveConfig.resolveMediaAsset,\n });\n const resolvedProps = effectiveConfig.resolveNodeProps\n ? effectiveConfig.resolveNodeProps({ node, props: mediaResolvedProps })\n : mediaResolvedProps;\n\n if (!Component) {\n const diagnostic = getUnknownComponentDiagnostic(node.type, effectiveRegistry);\n return (\n <View style={styles.errorBox}>\n <Text style={styles.errorTitle}>{diagnostic.title}</Text>\n <Text style={styles.errorText}>{diagnostic.suggestion}</Text>\n <Text style={styles.errorMeta}>{diagnostic.detail}</Text>\n </View>\n );\n }\n\n const repeatItems =\n repeatSyncResult?.status === 'ready' ? repeatSyncResult.items : currentAsyncRepeatResult?.items;\n const shouldRenderRepeatEmptyState = shouldRenderRuntimeRepeatEmptyState({\n diagnostics: repeatDiagnostics,\n items: repeatItems,\n status:\n repeatSyncResult?.status === 'ready'\n ? 'ready'\n : repeatSyncResult?.status === 'pending'\n ? 'pending'\n : currentAsyncRepeatResult\n ? 'ready'\n : undefined,\n });\n const renderedChildren = node.repeat\n ? repeatItems && repeatItems.length > 0\n ? repeatItems.flatMap((item, itemIndex) =>\n (node.children ?? []).map((child) => {\n const itemAlias = node.repeat?.itemAlias ?? 'item';\n const repeatKey = resolveRuntimeRepeatItemKey({\n item,\n itemAlias,\n index: itemIndex,\n keyPath: node.repeat?.keyPath,\n });\n\n return (\n <RuntimeRendererConfigProvider\n key={`${child.id}:${String(repeatKey)}`}\n replace\n value={effectiveConfig}\n >\n <RuntimeRenderer\n node={child}\n registry={effectiveRegistry}\n bindingContext={createRuntimeRepeatBindingContext({\n baseContext: effectiveConfig.bindingContext,\n item,\n itemAlias,\n })}\n />\n </RuntimeRendererConfigProvider>\n );\n }),\n )\n : shouldRenderRepeatEmptyState\n ? node.repeat.empty?.map((child) => (\n <RuntimeRendererConfigProvider key={child.id} replace value={effectiveConfig}>\n <RuntimeRenderer node={child} registry={effectiveRegistry} />\n </RuntimeRendererConfigProvider>\n ))\n : undefined\n : node.children?.map((child) => (\n <RuntimeRendererConfigProvider key={child.id} replace value={effectiveConfig}>\n <RuntimeRenderer node={child} registry={effectiveRegistry} />\n </RuntimeRendererConfigProvider>\n ));\n\n const propsWithEvents = wrapRuntimeEventProps({\n context: effectiveConfig.bindingContext,\n dataBindings: effectiveConfig.dataBindings,\n props: resolvedProps,\n disableActions: effectiveConfig.disableActions === true,\n dispatchComponentEvent: dispatchRuntimeEvent,\n node,\n resultSlots: effectiveConfig.resultSlots,\n resolveEventCapability: effectiveConfig.resolveEventCapability,\n });\n\n const componentChildren = resolveRenderedChildren({\n propChildren: propsWithEvents.children as React.ReactNode,\n renderedChildren,\n });\n\n let content: React.ReactNode = <Component {...propsWithEvents}>{componentChildren}</Component>;\n if (effectiveConfig.wrapNode) {\n content = effectiveConfig.wrapNode({ node, rendered: content, isRoot });\n }\n\n return (\n <RuntimeMediaResolutionCacheProvider value={mediaResolutionCache}>\n <RuntimeRendererConfigProvider value={explicitConfig}>\n {content}\n </RuntimeRendererConfigProvider>\n </RuntimeMediaResolutionCacheProvider>\n );\n}\n\nconst styles = StyleSheet.create({\n errorBox: {\n borderColor: '#ef4444',\n borderRadius: 8,\n borderWidth: 1,\n margin: 8,\n padding: 8,\n },\n errorTitle: {\n color: '#991b1b',\n fontSize: 13,\n fontWeight: '700',\n marginBottom: 4,\n },\n errorText: {\n color: '#ef4444',\n fontWeight: '600',\n },\n errorMeta: {\n color: '#7f1d1d',\n fontSize: 12,\n marginTop: 4,\n },\n});\n"]}
|
|
@@ -49,6 +49,7 @@ export declare function mergeRuntimeRendererConfig(localConfig: RuntimeRendererC
|
|
|
49
49
|
export declare function RuntimeRendererConfigProvider(props: {
|
|
50
50
|
value: RuntimeRendererConfig;
|
|
51
51
|
children: React.ReactNode;
|
|
52
|
+
replace?: boolean;
|
|
52
53
|
}): React.JSX.Element;
|
|
53
54
|
export declare function useRuntimeRendererConfig(): RuntimeRendererConfig;
|
|
54
55
|
//# sourceMappingURL=RuntimeRendererConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimeRendererConfig.d.ts","sourceRoot":"","sources":["../src/RuntimeRendererConfig.tsx"],"names":[],"mappings":"AAAA,OAA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;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,qBAQA;AAED,wBAAgB,wBAAwB,IAAI,qBAAqB,CAEhE"}
|
|
@@ -54,9 +54,9 @@ export function mergeRuntimeRendererConfig(localConfig, inheritedConfig) {
|
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
export function RuntimeRendererConfigProvider(props) {
|
|
57
|
-
const { value, children } = props;
|
|
57
|
+
const { value, children, replace = false } = props;
|
|
58
58
|
const inheritedConfig = use(RuntimeRendererConfigContext);
|
|
59
|
-
const mergedConfig = mergeRuntimeRendererConfig(value, inheritedConfig);
|
|
59
|
+
const mergedConfig = replace ? value : mergeRuntimeRendererConfig(value, inheritedConfig);
|
|
60
60
|
return (_jsx(RuntimeRendererConfigContext, { value: mergedConfig, children: children }));
|
|
61
61
|
}
|
|
62
62
|
export function useRuntimeRendererConfig() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimeRendererConfig.js","sourceRoot":"","sources":["../src/RuntimeRendererConfig.tsx"],"names":[],"mappings":";AAWA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AA0DlD,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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AAG,CAAC,4BAA4B,CAAC,CAAC;IAC1D,MAAM,YAAY,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,0BAA0B,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IAE1F,OAAO,CACL,KAAC,4BAA4B,IAAC,KAAK,EAAE,YAAY,YAAG,QAAQ,GAAgC,CAC7F,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB;IACtC,OAAO,GAAG,CAAC,4BAA4B,CAAC,CAAC;AAC3C,CAAC;AAED,SAAS,iBAAiB,CACxB,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 BindingValue,\n ComponentDataBindingRegistry,\n DataSourceDiagnostic,\n DbAdapter,\n DbRealtimeAdapter,\n MediaAssetRegistry,\n StateAdapter,\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.js';\nimport type { RuntimeEventCapabilityResolver } from './runtimeActionRegistry.js';\nimport type {\n RuntimeBindingResultCache,\n RuntimeBindingResultWriter,\n RuntimeCapabilityExecutor,\n} from './runtimeBindings.js';\nimport type {\n RuntimeEventOperationLifecycle,\n RuntimeEventOperationState,\n} from './runtimeEventOperationLifecycle.js';\nimport type { RuntimeMediaAssetResolver } from './runtimeMedia.js';\nimport type { RuntimeFlowPort } from './types/runtimeFlow.js';\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 capabilityValues?: Readonly<Record<string, BindingValue | undefined>>;\n dataBindings?: ComponentDataBindingRegistry;\n resultSlots?: RuntimeBindingResultCache;\n writeResultSlot?: RuntimeBindingResultWriter;\n /*** Executes side-effecting capabilities in the trusted application host.\n *\n * API capabilities are never created from manifest configuration by RuntimeScreen. A host that\n * resolves credentials must compose its server-side resolver and transport here; browser hosts\n * must not provide credential resolution.\n *\n * @security runtimeHostApiExecution.test.tsx#requires an injected host executor before a credentialed manifest API can populate client props or result slots\n */\n executeCapability?: RuntimeCapabilityExecutor;\n flowPort?: RuntimeFlowPort;\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 capabilityValues = mergeRecordConfig(\n inheritedConfig?.capabilityValues,\n localConfig?.capabilityValues,\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 capabilityValues,\n dataBindings: localConfig?.dataBindings ?? inheritedConfig?.dataBindings,\n resultSlots,\n writeResultSlot: localConfig?.writeResultSlot ?? inheritedConfig?.writeResultSlot,\n executeCapability: localConfig?.executeCapability ?? inheritedConfig?.executeCapability,\n flowPort: localConfig?.flowPort ?? inheritedConfig?.flowPort,\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 replace?: boolean;\n}) {\n const { value, children, replace = false } = props;\n const inheritedConfig = use(RuntimeRendererConfigContext);\n const mergedConfig = replace ? value : 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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/runtime",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.3",
|
|
4
4
|
"description": "Platform-neutral runtime renderer, contracts, and helpers for Ankhorage generated apps.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -400,7 +400,7 @@
|
|
|
400
400
|
},
|
|
401
401
|
"dependencies": {
|
|
402
402
|
"@ankhorage/capability": "^0.2.3",
|
|
403
|
-
"@ankhorage/contracts": "^28.
|
|
403
|
+
"@ankhorage/contracts": "^28.5.0",
|
|
404
404
|
"@ankhorage/data-sources": "^2.4.0",
|
|
405
405
|
"@ankhorage/flow": "^0.12.0",
|
|
406
406
|
"@ankhorage/utility": "^1.11.0"
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
}
|
|
417
417
|
},
|
|
418
418
|
"devDependencies": {
|
|
419
|
-
"@ankhorage/devtools": "^2.14.
|
|
419
|
+
"@ankhorage/devtools": "^2.14.7",
|
|
420
420
|
"@ankhorage/paradox": "^0.7.0",
|
|
421
421
|
"@types/bun": "^1.4.5",
|
|
422
422
|
"@types/node": "^26.6.4",
|
package/paradox/badges/npm.svg
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="90" height="20" role="img" aria-label="npm: v5.9.
|
|
2
|
-
<title>npm: v5.9.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="90" height="20" role="img" aria-label="npm: v5.9.3">
|
|
2
|
+
<title>npm: v5.9.3</title>
|
|
3
3
|
<rect width="38" height="20" fill="#374151"/>
|
|
4
4
|
<rect x="38" width="52" height="20" fill="#cb3837"/>
|
|
5
5
|
<text x="19" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">npm</text>
|
|
6
|
-
<text x="64" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">v5.9.
|
|
6
|
+
<text x="64" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">v5.9.3</text>
|
|
7
7
|
</svg>
|
package/paradox/components.md
CHANGED
|
@@ -75,6 +75,7 @@ Export paths: `src/index.ts`
|
|
|
75
75
|
| Prop | Type | Required | Default | Description |
|
|
76
76
|
| --- | --- | --- | --- | --- |
|
|
77
77
|
| children | `React.ReactNode \| undefined` | no | — | |
|
|
78
|
+
| replace | `boolean \| undefined` | no | — | |
|
|
78
79
|
| value | `RuntimeRendererConfig` | yes | — | |
|
|
79
80
|
|
|
80
81
|
## RuntimeScreen
|
|
@@ -192,6 +192,11 @@ graph TD
|
|
|
192
192
|
package__ankhorage_runtime -.-> module_src_RuntimeRendererPlatform_browser_ts
|
|
193
193
|
module_src_RuntimeRendererPlatform_native_ts["src/RuntimeRendererPlatform.native.ts"]
|
|
194
194
|
package__ankhorage_runtime -.-> module_src_RuntimeRendererPlatform_native_ts
|
|
195
|
+
module_src_runtimeRendererPortalConfig_test_tsx["src/runtimeRendererPortalConfig.test.tsx"]
|
|
196
|
+
package__ankhorage_runtime -.-> module_src_runtimeRendererPortalConfig_test_tsx
|
|
197
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_registry_tsx
|
|
198
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_RuntimeRendererConfig_tsx
|
|
199
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_runtimeStateAdapter_ts
|
|
195
200
|
module_src_runtimeRepeat_ts["src/runtimeRepeat.ts"]
|
|
196
201
|
package__ankhorage_runtime -.-> module_src_runtimeRepeat_ts
|
|
197
202
|
module_src_runtimeRepeat_ts --> module_src_runtimeBindings_ts
|
|
@@ -50,6 +50,7 @@ graph LR
|
|
|
50
50
|
module_src_RuntimeRendererConfig_tsx["src/RuntimeRendererConfig.tsx"]
|
|
51
51
|
module_src_RuntimeRendererPlatform_browser_ts["src/RuntimeRendererPlatform.browser.ts"]
|
|
52
52
|
module_src_RuntimeRendererPlatform_native_ts["src/RuntimeRendererPlatform.native.ts"]
|
|
53
|
+
module_src_runtimeRendererPortalConfig_test_tsx["src/runtimeRendererPortalConfig.test.tsx"]
|
|
53
54
|
module_src_runtimeRepeat_ts["src/runtimeRepeat.ts"]
|
|
54
55
|
module_src_runtimeRepeatDiagnostics_ts["src/runtimeRepeatDiagnostics.ts"]
|
|
55
56
|
module_src_runtimeRepeatEmptyState_ts["src/runtimeRepeatEmptyState.ts"]
|
|
@@ -50,6 +50,7 @@ graph LR
|
|
|
50
50
|
module_src_RuntimeRendererConfig_tsx["src/RuntimeRendererConfig.tsx"]
|
|
51
51
|
module_src_RuntimeRendererPlatform_browser_ts["src/RuntimeRendererPlatform.browser.ts"]
|
|
52
52
|
module_src_RuntimeRendererPlatform_native_ts["src/RuntimeRendererPlatform.native.ts"]
|
|
53
|
+
module_src_runtimeRendererPortalConfig_test_tsx["src/runtimeRendererPortalConfig.test.tsx"]
|
|
53
54
|
module_src_runtimeRepeat_ts["src/runtimeRepeat.ts"]
|
|
54
55
|
module_src_runtimeRepeatDiagnostics_ts["src/runtimeRepeatDiagnostics.ts"]
|
|
55
56
|
module_src_runtimeRepeatEmptyState_ts["src/runtimeRepeatEmptyState.ts"]
|
|
@@ -163,6 +164,9 @@ graph LR
|
|
|
163
164
|
module_src_RuntimeRendererConfig_tsx --> module_src_runtimeEventOperationLifecycle_ts
|
|
164
165
|
module_src_RuntimeRendererConfig_tsx --> module_src_runtimeMedia_ts
|
|
165
166
|
module_src_RuntimeRendererConfig_tsx --> module_src_types_runtimeFlow_ts
|
|
167
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_registry_tsx
|
|
168
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_RuntimeRendererConfig_tsx
|
|
169
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_runtimeStateAdapter_ts
|
|
166
170
|
module_src_runtimeRepeat_ts --> module_src_runtimeBindings_ts
|
|
167
171
|
module_src_RuntimeScreen_test_tsx --> module_src_registry_tsx
|
|
168
172
|
module_src_RuntimeScreen_test_tsx --> module_src_runtimeApiCapabilities_ts
|
package/paradox/exports.json
CHANGED
|
@@ -3762,11 +3762,11 @@
|
|
|
3762
3762
|
],
|
|
3763
3763
|
"signatures": [
|
|
3764
3764
|
{
|
|
3765
|
-
"label": "(props: { value: RuntimeRendererConfig; children: React.ReactNode; }) => React.JSX.Element",
|
|
3765
|
+
"label": "(props: { value: RuntimeRendererConfig; children: React.ReactNode; replace?: boolean; }) => React.JSX.Element",
|
|
3766
3766
|
"parameters": [
|
|
3767
3767
|
{
|
|
3768
3768
|
"name": "props",
|
|
3769
|
-
"type": "{ value: RuntimeRendererConfig; children: React.ReactNode; }",
|
|
3769
|
+
"type": "{ value: RuntimeRendererConfig; children: React.ReactNode; replace?: boolean; }",
|
|
3770
3770
|
"required": true,
|
|
3771
3771
|
"description": null
|
|
3772
3772
|
}
|
|
@@ -4377,7 +4377,7 @@
|
|
|
4377
4377
|
"modulePath": "src/RuntimeRendererConfig.tsx",
|
|
4378
4378
|
"sourceLocation": {
|
|
4379
4379
|
"filePath": "src/RuntimeRendererConfig.tsx",
|
|
4380
|
-
"line":
|
|
4380
|
+
"line": 171,
|
|
4381
4381
|
"column": 1
|
|
4382
4382
|
},
|
|
4383
4383
|
"exportPaths": [
|
package/paradox/exports.md
CHANGED
|
@@ -1134,8 +1134,8 @@ Source: `src/RuntimeRendererConfig.tsx:157:1`
|
|
|
1134
1134
|
|
|
1135
1135
|
### Signatures
|
|
1136
1136
|
|
|
1137
|
-
- `(props: { value: RuntimeRendererConfig; children: React.ReactNode; }) => React.JSX.Element`
|
|
1138
|
-
- props: `{ value: RuntimeRendererConfig; children: React.ReactNode; }`
|
|
1137
|
+
- `(props: { value: RuntimeRendererConfig; children: React.ReactNode; replace?: boolean; }) => React.JSX.Element`
|
|
1138
|
+
- props: `{ value: RuntimeRendererConfig; children: React.ReactNode; replace?: boolean; }`
|
|
1139
1139
|
- returns: `React.JSX.Element`
|
|
1140
1140
|
|
|
1141
1141
|
## RuntimeRendererProps
|
|
@@ -1323,7 +1323,7 @@ Reads an enclosing manifest scope without requiring hosts to provide one.
|
|
|
1323
1323
|
|
|
1324
1324
|
Kind: `function`
|
|
1325
1325
|
Module: `src/RuntimeRendererConfig.tsx`
|
|
1326
|
-
Source: `src/RuntimeRendererConfig.tsx:
|
|
1326
|
+
Source: `src/RuntimeRendererConfig.tsx:171:1`
|
|
1327
1327
|
|
|
1328
1328
|
### Signatures
|
|
1329
1329
|
|
package/paradox/index.html
CHANGED
|
@@ -312,6 +312,11 @@
|
|
|
312
312
|
src/RuntimeRendererConfig.tsx
|
|
313
313
|
<small>6 functions</small>
|
|
314
314
|
</button>
|
|
315
|
+
</li><li>
|
|
316
|
+
<button class="nav-button" type="button" data-target="src/runtimeRendererPortalConfig.test.tsx">
|
|
317
|
+
src/runtimeRendererPortalConfig.test.tsx
|
|
318
|
+
<small>12 functions</small>
|
|
319
|
+
</button>
|
|
315
320
|
</li><li>
|
|
316
321
|
<button class="nav-button" type="button" data-target="src/runtimeRepeat.ts">
|
|
317
322
|
src/runtimeRepeat.ts
|
|
@@ -389,7 +394,7 @@
|
|
|
389
394
|
<div class="summary">
|
|
390
395
|
<div><strong>104</strong><span class="muted">public exports</span></div>
|
|
391
396
|
<div><strong>6</strong><span class="muted">components</span></div>
|
|
392
|
-
<div><strong>
|
|
397
|
+
<div><strong>76</strong><span class="muted">modules</span></div>
|
|
393
398
|
<div><strong>1</strong><span class="muted">entrypoints</span></div>
|
|
394
399
|
</div>
|
|
395
400
|
<h3>Entrypoints</h3>
|
|
@@ -457,7 +462,7 @@ inject it at the runtime boundary.</p>
|
|
|
457
462
|
</article><article class="item" data-search="documentation.public-function.description warning Exported function useRuntimeRendererConfig has no documentation description. src/RuntimeRendererConfig.tsx">
|
|
458
463
|
<h3>documentation.public-function.description</h3>
|
|
459
464
|
<p><strong>warning</strong> — Exported function useRuntimeRendererConfig has no documentation description.</p>
|
|
460
|
-
<p class="muted"><code>src/RuntimeRendererConfig.tsx:
|
|
465
|
+
<p class="muted"><code>src/RuntimeRendererConfig.tsx:171</code></p>
|
|
461
466
|
</article><article class="item" data-search="documentation.public-function.description warning Exported function shouldRenderRuntimeRepeatEmptyState has no documentation description. src/runtimeRepeatEmptyState.ts">
|
|
462
467
|
<h3>documentation.public-function.description</h3>
|
|
463
468
|
<p><strong>warning</strong> — Exported function shouldRenderRuntimeRepeatEmptyState has no documentation description.</p>
|
|
@@ -729,6 +734,11 @@ inject it at the runtime boundary.</p>
|
|
|
729
734
|
<p class="muted">Referenced module</p>
|
|
730
735
|
<p><strong>Dependencies:</strong> <span class="empty">None</span></p>
|
|
731
736
|
<p><strong>Exports:</strong> <code>StyleSheet</code>, <code>Text</code>, <code>View</code></p>
|
|
737
|
+
</article><article class="item" data-search="src/runtimeRendererPortalConfig.test.tsx src/registry.tsx src/RuntimeRendererConfig.tsx src/runtimeStateAdapter.ts">
|
|
738
|
+
<h3>src/runtimeRendererPortalConfig.test.tsx</h3>
|
|
739
|
+
<p class="muted">Referenced module</p>
|
|
740
|
+
<p><strong>Dependencies:</strong> <code>src/registry.tsx</code>, <code>src/RuntimeRendererConfig.tsx</code>, <code>src/runtimeStateAdapter.ts</code></p>
|
|
741
|
+
<p><strong>Exports:</strong> <span class="empty">None</span></p>
|
|
732
742
|
</article><article class="item" data-search="src/runtimeRepeat.ts src/runtimeBindings.ts createRuntimeRepeatBindingContext resolveRuntimeRepeatItemKey resolveRuntimeRepeatItemsAsync resolveRuntimeRepeatItemsSync RuntimeRepeatItemsResult RuntimeRepeatItemsSyncResult RuntimeRepeatResolutionContext">
|
|
733
743
|
<h3>src/runtimeRepeat.ts</h3>
|
|
734
744
|
<p class="muted">Referenced module</p>
|
|
@@ -3464,7 +3474,7 @@ must not provide credential resolution.</td>
|
|
|
3464
3474
|
</tr>
|
|
3465
3475
|
</tbody>
|
|
3466
3476
|
</table>
|
|
3467
|
-
</article><article class="item" id="symbol-runtimerendererconfigprovider" data-search="RuntimeRendererConfigProvider function src/RuntimeRendererConfig.tsx RuntimeRendererConfig (props: { value: RuntimeRendererConfig; children: React.ReactNode; }) => React.JSX.Element">
|
|
3477
|
+
</article><article class="item" id="symbol-runtimerendererconfigprovider" data-search="RuntimeRendererConfigProvider function src/RuntimeRendererConfig.tsx RuntimeRendererConfig (props: { value: RuntimeRendererConfig; children: React.ReactNode; replace?: boolean; }) => React.JSX.Element">
|
|
3468
3478
|
<h4>RuntimeRendererConfigProvider</h4>
|
|
3469
3479
|
|
|
3470
3480
|
<p class="muted">function • <code>src/RuntimeRendererConfig.tsx:157:1</code></p>
|
|
@@ -3474,13 +3484,13 @@ must not provide credential resolution.</td>
|
|
|
3474
3484
|
<div><strong>Related symbols:</strong> <ul class="chips"><li class="chip">RuntimeRendererConfig</li></ul></div>
|
|
3475
3485
|
<div>
|
|
3476
3486
|
<h5>Signature</h5>
|
|
3477
|
-
<pre>(props: { value: RuntimeRendererConfig; children: React.ReactNode; }) => React.JSX.Element</pre>
|
|
3487
|
+
<pre>(props: { value: RuntimeRendererConfig; children: React.ReactNode; replace?: boolean; }) => React.JSX.Element</pre>
|
|
3478
3488
|
<table>
|
|
3479
3489
|
<thead><tr><th>Parameter</th><th>Type</th><th>Required</th><th>Description</th></tr></thead>
|
|
3480
3490
|
<tbody>
|
|
3481
3491
|
<tr>
|
|
3482
3492
|
<td><code>props</code></td>
|
|
3483
|
-
<td><code>{ value: RuntimeRendererConfig; children: React.ReactNode; }</code></td>
|
|
3493
|
+
<td><code>{ value: RuntimeRendererConfig; children: React.ReactNode; replace?: boolean; }</code></td>
|
|
3484
3494
|
<td>yes</td>
|
|
3485
3495
|
<td></td>
|
|
3486
3496
|
</tr>
|
|
@@ -3525,7 +3535,7 @@ must not provide credential resolution.</td>
|
|
|
3525
3535
|
</article><article class="item" id="symbol-useruntimerendererconfig" data-search="useRuntimeRendererConfig function src/RuntimeRendererConfig.tsx RuntimeRendererConfig () => RuntimeRendererConfig">
|
|
3526
3536
|
<h4>useRuntimeRendererConfig</h4>
|
|
3527
3537
|
|
|
3528
|
-
<p class="muted">function • <code>src/RuntimeRendererConfig.tsx:
|
|
3538
|
+
<p class="muted">function • <code>src/RuntimeRendererConfig.tsx:171:1</code></p>
|
|
3529
3539
|
|
|
3530
3540
|
|
|
3531
3541
|
<p><strong>Export paths:</strong> <code>src/index.ts</code></p>
|
|
@@ -4230,7 +4240,7 @@ must not provide credential resolution.</td>
|
|
|
4230
4240
|
</tr>
|
|
4231
4241
|
</tbody>
|
|
4232
4242
|
</table>
|
|
4233
|
-
</article><article class="item" id="component-runtimerendererconfigprovider" data-search="RuntimeRendererConfigProvider src/RuntimeRendererConfig.tsx children React.ReactNode | undefined value RuntimeRendererConfig">
|
|
4243
|
+
</article><article class="item" id="component-runtimerendererconfigprovider" data-search="RuntimeRendererConfigProvider src/RuntimeRendererConfig.tsx children React.ReactNode | undefined replace boolean | undefined value RuntimeRendererConfig">
|
|
4234
4244
|
<h3>RuntimeRendererConfigProvider</h3>
|
|
4235
4245
|
<p class="muted"><code>src/RuntimeRendererConfig.tsx:157:1</code></p>
|
|
4236
4246
|
|
|
@@ -4244,6 +4254,11 @@ must not provide credential resolution.</td>
|
|
|
4244
4254
|
<td><code>React.ReactNode | undefined</code></td>
|
|
4245
4255
|
<td>no</td>
|
|
4246
4256
|
<td></td>
|
|
4257
|
+
</tr><tr>
|
|
4258
|
+
<td><code>replace</code></td>
|
|
4259
|
+
<td><code>boolean | undefined</code></td>
|
|
4260
|
+
<td>no</td>
|
|
4261
|
+
<td></td>
|
|
4247
4262
|
</tr><tr>
|
|
4248
4263
|
<td><code>value</code></td>
|
|
4249
4264
|
<td><code>RuntimeRendererConfig</code></td>
|
|
@@ -4485,6 +4500,11 @@ must not provide credential resolution.</td>
|
|
|
4485
4500
|
package__ankhorage_runtime -.-> module_src_RuntimeRendererPlatform_browser_ts
|
|
4486
4501
|
module_src_RuntimeRendererPlatform_native_ts["src/RuntimeRendererPlatform.native.ts"]
|
|
4487
4502
|
package__ankhorage_runtime -.-> module_src_RuntimeRendererPlatform_native_ts
|
|
4503
|
+
module_src_runtimeRendererPortalConfig_test_tsx["src/runtimeRendererPortalConfig.test.tsx"]
|
|
4504
|
+
package__ankhorage_runtime -.-> module_src_runtimeRendererPortalConfig_test_tsx
|
|
4505
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_registry_tsx
|
|
4506
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_RuntimeRendererConfig_tsx
|
|
4507
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_runtimeStateAdapter_ts
|
|
4488
4508
|
module_src_runtimeRepeat_ts["src/runtimeRepeat.ts"]
|
|
4489
4509
|
package__ankhorage_runtime -.-> module_src_runtimeRepeat_ts
|
|
4490
4510
|
module_src_runtimeRepeat_ts --> module_src_runtimeBindings_ts
|
|
@@ -4764,6 +4784,11 @@ must not provide credential resolution.</td>
|
|
|
4764
4784
|
package__ankhorage_runtime -.-> module_src_RuntimeRendererPlatform_browser_ts
|
|
4765
4785
|
module_src_RuntimeRendererPlatform_native_ts["src/RuntimeRendererPlatform.native.ts"]
|
|
4766
4786
|
package__ankhorage_runtime -.-> module_src_RuntimeRendererPlatform_native_ts
|
|
4787
|
+
module_src_runtimeRendererPortalConfig_test_tsx["src/runtimeRendererPortalConfig.test.tsx"]
|
|
4788
|
+
package__ankhorage_runtime -.-> module_src_runtimeRendererPortalConfig_test_tsx
|
|
4789
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_registry_tsx
|
|
4790
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_RuntimeRendererConfig_tsx
|
|
4791
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_runtimeStateAdapter_ts
|
|
4767
4792
|
module_src_runtimeRepeat_ts["src/runtimeRepeat.ts"]
|
|
4768
4793
|
package__ankhorage_runtime -.-> module_src_runtimeRepeat_ts
|
|
4769
4794
|
module_src_runtimeRepeat_ts --> module_src_runtimeBindings_ts
|
|
@@ -4903,6 +4928,7 @@ must not provide credential resolution.</td>
|
|
|
4903
4928
|
module_src_RuntimeRendererConfig_tsx["src/RuntimeRendererConfig.tsx"]
|
|
4904
4929
|
module_src_RuntimeRendererPlatform_browser_ts["src/RuntimeRendererPlatform.browser.ts"]
|
|
4905
4930
|
module_src_RuntimeRendererPlatform_native_ts["src/RuntimeRendererPlatform.native.ts"]
|
|
4931
|
+
module_src_runtimeRendererPortalConfig_test_tsx["src/runtimeRendererPortalConfig.test.tsx"]
|
|
4906
4932
|
module_src_runtimeRepeat_ts["src/runtimeRepeat.ts"]
|
|
4907
4933
|
module_src_runtimeRepeatDiagnostics_ts["src/runtimeRepeatDiagnostics.ts"]
|
|
4908
4934
|
module_src_runtimeRepeatEmptyState_ts["src/runtimeRepeatEmptyState.ts"]
|
|
@@ -5016,6 +5042,9 @@ must not provide credential resolution.</td>
|
|
|
5016
5042
|
module_src_RuntimeRendererConfig_tsx --> module_src_runtimeEventOperationLifecycle_ts
|
|
5017
5043
|
module_src_RuntimeRendererConfig_tsx --> module_src_runtimeMedia_ts
|
|
5018
5044
|
module_src_RuntimeRendererConfig_tsx --> module_src_types_runtimeFlow_ts
|
|
5045
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_registry_tsx
|
|
5046
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_RuntimeRendererConfig_tsx
|
|
5047
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_runtimeStateAdapter_ts
|
|
5019
5048
|
module_src_runtimeRepeat_ts --> module_src_runtimeBindings_ts
|
|
5020
5049
|
module_src_RuntimeScreen_test_tsx --> module_src_registry_tsx
|
|
5021
5050
|
module_src_RuntimeScreen_test_tsx --> module_src_runtimeApiCapabilities_ts
|
|
@@ -5105,6 +5134,7 @@ must not provide credential resolution.</td>
|
|
|
5105
5134
|
module_src_RuntimeRendererConfig_tsx["src/RuntimeRendererConfig.tsx"]
|
|
5106
5135
|
module_src_RuntimeRendererPlatform_browser_ts["src/RuntimeRendererPlatform.browser.ts"]
|
|
5107
5136
|
module_src_RuntimeRendererPlatform_native_ts["src/RuntimeRendererPlatform.native.ts"]
|
|
5137
|
+
module_src_runtimeRendererPortalConfig_test_tsx["src/runtimeRendererPortalConfig.test.tsx"]
|
|
5108
5138
|
module_src_runtimeRepeat_ts["src/runtimeRepeat.ts"]
|
|
5109
5139
|
module_src_runtimeRepeatDiagnostics_ts["src/runtimeRepeatDiagnostics.ts"]
|
|
5110
5140
|
module_src_runtimeRepeatEmptyState_ts["src/runtimeRepeatEmptyState.ts"]
|
|
@@ -5218,6 +5248,9 @@ must not provide credential resolution.</td>
|
|
|
5218
5248
|
module_src_RuntimeRendererConfig_tsx --> module_src_runtimeEventOperationLifecycle_ts
|
|
5219
5249
|
module_src_RuntimeRendererConfig_tsx --> module_src_runtimeMedia_ts
|
|
5220
5250
|
module_src_RuntimeRendererConfig_tsx --> module_src_types_runtimeFlow_ts
|
|
5251
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_registry_tsx
|
|
5252
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_RuntimeRendererConfig_tsx
|
|
5253
|
+
module_src_runtimeRendererPortalConfig_test_tsx --> module_src_runtimeStateAdapter_ts
|
|
5221
5254
|
module_src_runtimeRepeat_ts --> module_src_runtimeBindings_ts
|
|
5222
5255
|
module_src_RuntimeScreen_test_tsx --> module_src_registry_tsx
|
|
5223
5256
|
module_src_RuntimeScreen_test_tsx --> module_src_runtimeApiCapabilities_ts
|
|
@@ -5309,6 +5342,7 @@ must not provide credential resolution.</td>
|
|
|
5309
5342
|
module_src_RuntimeRendererConfig_tsx["src/RuntimeRendererConfig.tsx"]
|
|
5310
5343
|
module_src_RuntimeRendererPlatform_browser_ts["src/RuntimeRendererPlatform.browser.ts"]
|
|
5311
5344
|
module_src_RuntimeRendererPlatform_native_ts["src/RuntimeRendererPlatform.native.ts"]
|
|
5345
|
+
module_src_runtimeRendererPortalConfig_test_tsx["src/runtimeRendererPortalConfig.test.tsx"]
|
|
5312
5346
|
module_src_runtimeRepeat_ts["src/runtimeRepeat.ts"]
|
|
5313
5347
|
module_src_runtimeRepeatDiagnostics_ts["src/runtimeRepeatDiagnostics.ts"]
|
|
5314
5348
|
module_src_runtimeRepeatEmptyState_ts["src/runtimeRepeatEmptyState.ts"]
|
|
@@ -5697,6 +5731,7 @@ must not provide credential resolution.</td>
|
|
|
5697
5731
|
module_src_RuntimeRendererConfig_tsx["src/RuntimeRendererConfig.tsx"]
|
|
5698
5732
|
module_src_RuntimeRendererPlatform_browser_ts["src/RuntimeRendererPlatform.browser.ts"]
|
|
5699
5733
|
module_src_RuntimeRendererPlatform_native_ts["src/RuntimeRendererPlatform.native.ts"]
|
|
5734
|
+
module_src_runtimeRendererPortalConfig_test_tsx["src/runtimeRendererPortalConfig.test.tsx"]
|
|
5700
5735
|
module_src_runtimeRepeat_ts["src/runtimeRepeat.ts"]
|
|
5701
5736
|
module_src_runtimeRepeatDiagnostics_ts["src/runtimeRepeatDiagnostics.ts"]
|
|
5702
5737
|
module_src_runtimeRepeatEmptyState_ts["src/runtimeRepeatEmptyState.ts"]
|
|
@@ -7439,11 +7474,64 @@ must not provide credential resolution.</td>
|
|
|
7439
7474
|
<p class="empty">No description available.</p>
|
|
7440
7475
|
</article><article class="item" data-search="useRuntimeRendererConfig src/RuntimeRendererConfig.tsx ">
|
|
7441
7476
|
<h3>useRuntimeRendererConfig</h3>
|
|
7442
|
-
<p class="muted"><code>src/RuntimeRendererConfig.tsx:
|
|
7477
|
+
<p class="muted"><code>src/RuntimeRendererConfig.tsx:171:1</code></p>
|
|
7443
7478
|
<p class="empty">No description available.</p>
|
|
7444
7479
|
</article><article class="item" data-search="mergeRecordConfig src/RuntimeRendererConfig.tsx ">
|
|
7445
7480
|
<h3>mergeRecordConfig</h3>
|
|
7446
|
-
<p class="muted"><code>src/RuntimeRendererConfig.tsx:
|
|
7481
|
+
<p class="muted"><code>src/RuntimeRendererConfig.tsx:175:1</code></p>
|
|
7482
|
+
<p class="empty">No description available.</p>
|
|
7483
|
+
</article>
|
|
7484
|
+
</section>
|
|
7485
|
+
</section><section id="view-src-runtimerendererportalconfig-test-tsx" class="view" data-view="src/runtimeRendererPortalConfig.test.tsx" hidden>
|
|
7486
|
+
<section class="panel">
|
|
7487
|
+
<h2>src/runtimeRendererPortalConfig.test.tsx</h2>
|
|
7488
|
+
<article class="item" data-search="Portal src/runtimeRendererPortalConfig.test.tsx ">
|
|
7489
|
+
<h3>Portal</h3>
|
|
7490
|
+
<p class="muted"><code>src/runtimeRendererPortalConfig.test.tsx:29:7</code></p>
|
|
7491
|
+
<p class="empty">No description available.</p>
|
|
7492
|
+
</article><article class="item" data-search="Rows src/runtimeRendererPortalConfig.test.tsx ">
|
|
7493
|
+
<h3>Rows</h3>
|
|
7494
|
+
<p class="muted"><code>src/runtimeRendererPortalConfig.test.tsx:34:7</code></p>
|
|
7495
|
+
<p class="empty">No description available.</p>
|
|
7496
|
+
</article><article class="item" data-search="RowLabel src/runtimeRendererPortalConfig.test.tsx ">
|
|
7497
|
+
<h3>RowLabel</h3>
|
|
7498
|
+
<p class="muted"><code>src/runtimeRendererPortalConfig.test.tsx:38:7</code></p>
|
|
7499
|
+
<p class="empty">No description available.</p>
|
|
7500
|
+
</article><article class="item" data-search="ConfigProbe src/runtimeRendererPortalConfig.test.tsx ">
|
|
7501
|
+
<h3>ConfigProbe</h3>
|
|
7502
|
+
<p class="muted"><code>src/runtimeRendererPortalConfig.test.tsx:42:7</code></p>
|
|
7503
|
+
<p class="empty">No description available.</p>
|
|
7504
|
+
</article><article class="item" data-search="Action src/runtimeRendererPortalConfig.test.tsx ">
|
|
7505
|
+
<h3>Action</h3>
|
|
7506
|
+
<p class="muted"><code>src/runtimeRendererPortalConfig.test.tsx:57:7</code></p>
|
|
7507
|
+
<p class="empty">No description available.</p>
|
|
7508
|
+
</article><article class="item" data-search="mountSourceRenderer src/runtimeRendererPortalConfig.test.tsx ">
|
|
7509
|
+
<h3>mountSourceRenderer</h3>
|
|
7510
|
+
<p class="muted"><code>src/runtimeRendererPortalConfig.test.tsx:129:1</code></p>
|
|
7511
|
+
<p class="empty">No description available.</p>
|
|
7512
|
+
</article><article class="item" data-search="updateSourceRenderer src/runtimeRendererPortalConfig.test.tsx ">
|
|
7513
|
+
<h3>updateSourceRenderer</h3>
|
|
7514
|
+
<p class="muted"><code>src/runtimeRendererPortalConfig.test.tsx:142:1</code></p>
|
|
7515
|
+
<p class="empty">No description available.</p>
|
|
7516
|
+
</article><article class="item" data-search="renderSource src/runtimeRendererPortalConfig.test.tsx ">
|
|
7517
|
+
<h3>renderSource</h3>
|
|
7518
|
+
<p class="muted"><code>src/runtimeRendererPortalConfig.test.tsx:155:1</code></p>
|
|
7519
|
+
<p class="empty">No description available.</p>
|
|
7520
|
+
</article><article class="item" data-search="mountCapturedPortalChildren src/runtimeRendererPortalConfig.test.tsx ">
|
|
7521
|
+
<h3>mountCapturedPortalChildren</h3>
|
|
7522
|
+
<p class="muted"><code>src/runtimeRendererPortalConfig.test.tsx:179:1</code></p>
|
|
7523
|
+
<p class="empty">No description available.</p>
|
|
7524
|
+
</article><article class="item" data-search="getCapturedPortalChildren src/runtimeRendererPortalConfig.test.tsx ">
|
|
7525
|
+
<h3>getCapturedPortalChildren</h3>
|
|
7526
|
+
<p class="muted"><code>src/runtimeRendererPortalConfig.test.tsx:188:1</code></p>
|
|
7527
|
+
<p class="empty">No description available.</p>
|
|
7528
|
+
</article><article class="item" data-search="isVoidCallback src/runtimeRendererPortalConfig.test.tsx ">
|
|
7529
|
+
<h3>isVoidCallback</h3>
|
|
7530
|
+
<p class="muted"><code>src/runtimeRendererPortalConfig.test.tsx:194:1</code></p>
|
|
7531
|
+
<p class="empty">No description available.</p>
|
|
7532
|
+
</article><article class="item" data-search="expectPortalConfiguration src/runtimeRendererPortalConfig.test.tsx ">
|
|
7533
|
+
<h3>expectPortalConfiguration</h3>
|
|
7534
|
+
<p class="muted"><code>src/runtimeRendererPortalConfig.test.tsx:198:1</code></p>
|
|
7447
7535
|
<p class="empty">No description available.</p>
|
|
7448
7536
|
</article>
|
|
7449
7537
|
</section>
|
package/paradox/paradox.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
{
|
|
19
19
|
"id": "npm",
|
|
20
20
|
"label": "npm",
|
|
21
|
-
"value": "v5.9.
|
|
21
|
+
"value": "v5.9.3",
|
|
22
22
|
"color": "cb3837"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"severity": "warning",
|
|
152
152
|
"message": "Exported function useRuntimeRendererConfig has no documentation description.",
|
|
153
153
|
"sourcePath": "src/RuntimeRendererConfig.tsx",
|
|
154
|
-
"line":
|
|
154
|
+
"line": 171
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
"ruleId": "documentation.public-function.description",
|
|
@@ -887,6 +887,16 @@
|
|
|
887
887
|
"View"
|
|
888
888
|
]
|
|
889
889
|
},
|
|
890
|
+
{
|
|
891
|
+
"path": "src/runtimeRendererPortalConfig.test.tsx",
|
|
892
|
+
"isEntrypoint": false,
|
|
893
|
+
"dependencies": [
|
|
894
|
+
"src/registry.tsx",
|
|
895
|
+
"src/RuntimeRendererConfig.tsx",
|
|
896
|
+
"src/runtimeStateAdapter.ts"
|
|
897
|
+
],
|
|
898
|
+
"exports": []
|
|
899
|
+
},
|
|
890
900
|
{
|
|
891
901
|
"path": "src/runtimeRepeat.ts",
|
|
892
902
|
"isEntrypoint": false,
|
|
@@ -4889,11 +4899,11 @@
|
|
|
4889
4899
|
],
|
|
4890
4900
|
"signatures": [
|
|
4891
4901
|
{
|
|
4892
|
-
"label": "(props: { value: RuntimeRendererConfig; children: React.ReactNode; }) => React.JSX.Element",
|
|
4902
|
+
"label": "(props: { value: RuntimeRendererConfig; children: React.ReactNode; replace?: boolean; }) => React.JSX.Element",
|
|
4893
4903
|
"parameters": [
|
|
4894
4904
|
{
|
|
4895
4905
|
"name": "props",
|
|
4896
|
-
"type": "{ value: RuntimeRendererConfig; children: React.ReactNode; }",
|
|
4906
|
+
"type": "{ value: RuntimeRendererConfig; children: React.ReactNode; replace?: boolean; }",
|
|
4897
4907
|
"required": true,
|
|
4898
4908
|
"description": null
|
|
4899
4909
|
}
|
|
@@ -5504,7 +5514,7 @@
|
|
|
5504
5514
|
"modulePath": "src/RuntimeRendererConfig.tsx",
|
|
5505
5515
|
"sourceLocation": {
|
|
5506
5516
|
"filePath": "src/RuntimeRendererConfig.tsx",
|
|
5507
|
-
"line":
|
|
5517
|
+
"line": 171,
|
|
5508
5518
|
"column": 1
|
|
5509
5519
|
},
|
|
5510
5520
|
"exportPaths": [
|
|
@@ -5900,6 +5910,12 @@
|
|
|
5900
5910
|
"required": false,
|
|
5901
5911
|
"description": null
|
|
5902
5912
|
},
|
|
5913
|
+
{
|
|
5914
|
+
"name": "replace",
|
|
5915
|
+
"type": "boolean | undefined",
|
|
5916
|
+
"required": false,
|
|
5917
|
+
"description": null
|
|
5918
|
+
},
|
|
5903
5919
|
{
|
|
5904
5920
|
"name": "value",
|
|
5905
5921
|
"type": "RuntimeRendererConfig",
|
|
@@ -8071,7 +8087,7 @@
|
|
|
8071
8087
|
"security": [],
|
|
8072
8088
|
"sourceLocation": {
|
|
8073
8089
|
"filePath": "src/RuntimeRendererConfig.tsx",
|
|
8074
|
-
"line":
|
|
8090
|
+
"line": 171,
|
|
8075
8091
|
"column": 1
|
|
8076
8092
|
}
|
|
8077
8093
|
},
|
|
@@ -8082,7 +8098,139 @@
|
|
|
8082
8098
|
"security": [],
|
|
8083
8099
|
"sourceLocation": {
|
|
8084
8100
|
"filePath": "src/RuntimeRendererConfig.tsx",
|
|
8085
|
-
"line":
|
|
8101
|
+
"line": 175,
|
|
8102
|
+
"column": 1
|
|
8103
|
+
}
|
|
8104
|
+
},
|
|
8105
|
+
{
|
|
8106
|
+
"name": "Portal",
|
|
8107
|
+
"description": null,
|
|
8108
|
+
"see": [],
|
|
8109
|
+
"security": [],
|
|
8110
|
+
"sourceLocation": {
|
|
8111
|
+
"filePath": "src/runtimeRendererPortalConfig.test.tsx",
|
|
8112
|
+
"line": 29,
|
|
8113
|
+
"column": 7
|
|
8114
|
+
}
|
|
8115
|
+
},
|
|
8116
|
+
{
|
|
8117
|
+
"name": "Rows",
|
|
8118
|
+
"description": null,
|
|
8119
|
+
"see": [],
|
|
8120
|
+
"security": [],
|
|
8121
|
+
"sourceLocation": {
|
|
8122
|
+
"filePath": "src/runtimeRendererPortalConfig.test.tsx",
|
|
8123
|
+
"line": 34,
|
|
8124
|
+
"column": 7
|
|
8125
|
+
}
|
|
8126
|
+
},
|
|
8127
|
+
{
|
|
8128
|
+
"name": "RowLabel",
|
|
8129
|
+
"description": null,
|
|
8130
|
+
"see": [],
|
|
8131
|
+
"security": [],
|
|
8132
|
+
"sourceLocation": {
|
|
8133
|
+
"filePath": "src/runtimeRendererPortalConfig.test.tsx",
|
|
8134
|
+
"line": 38,
|
|
8135
|
+
"column": 7
|
|
8136
|
+
}
|
|
8137
|
+
},
|
|
8138
|
+
{
|
|
8139
|
+
"name": "ConfigProbe",
|
|
8140
|
+
"description": null,
|
|
8141
|
+
"see": [],
|
|
8142
|
+
"security": [],
|
|
8143
|
+
"sourceLocation": {
|
|
8144
|
+
"filePath": "src/runtimeRendererPortalConfig.test.tsx",
|
|
8145
|
+
"line": 42,
|
|
8146
|
+
"column": 7
|
|
8147
|
+
}
|
|
8148
|
+
},
|
|
8149
|
+
{
|
|
8150
|
+
"name": "Action",
|
|
8151
|
+
"description": null,
|
|
8152
|
+
"see": [],
|
|
8153
|
+
"security": [],
|
|
8154
|
+
"sourceLocation": {
|
|
8155
|
+
"filePath": "src/runtimeRendererPortalConfig.test.tsx",
|
|
8156
|
+
"line": 57,
|
|
8157
|
+
"column": 7
|
|
8158
|
+
}
|
|
8159
|
+
},
|
|
8160
|
+
{
|
|
8161
|
+
"name": "mountSourceRenderer",
|
|
8162
|
+
"description": null,
|
|
8163
|
+
"see": [],
|
|
8164
|
+
"security": [],
|
|
8165
|
+
"sourceLocation": {
|
|
8166
|
+
"filePath": "src/runtimeRendererPortalConfig.test.tsx",
|
|
8167
|
+
"line": 129,
|
|
8168
|
+
"column": 1
|
|
8169
|
+
}
|
|
8170
|
+
},
|
|
8171
|
+
{
|
|
8172
|
+
"name": "updateSourceRenderer",
|
|
8173
|
+
"description": null,
|
|
8174
|
+
"see": [],
|
|
8175
|
+
"security": [],
|
|
8176
|
+
"sourceLocation": {
|
|
8177
|
+
"filePath": "src/runtimeRendererPortalConfig.test.tsx",
|
|
8178
|
+
"line": 142,
|
|
8179
|
+
"column": 1
|
|
8180
|
+
}
|
|
8181
|
+
},
|
|
8182
|
+
{
|
|
8183
|
+
"name": "renderSource",
|
|
8184
|
+
"description": null,
|
|
8185
|
+
"see": [],
|
|
8186
|
+
"security": [],
|
|
8187
|
+
"sourceLocation": {
|
|
8188
|
+
"filePath": "src/runtimeRendererPortalConfig.test.tsx",
|
|
8189
|
+
"line": 155,
|
|
8190
|
+
"column": 1
|
|
8191
|
+
}
|
|
8192
|
+
},
|
|
8193
|
+
{
|
|
8194
|
+
"name": "mountCapturedPortalChildren",
|
|
8195
|
+
"description": null,
|
|
8196
|
+
"see": [],
|
|
8197
|
+
"security": [],
|
|
8198
|
+
"sourceLocation": {
|
|
8199
|
+
"filePath": "src/runtimeRendererPortalConfig.test.tsx",
|
|
8200
|
+
"line": 179,
|
|
8201
|
+
"column": 1
|
|
8202
|
+
}
|
|
8203
|
+
},
|
|
8204
|
+
{
|
|
8205
|
+
"name": "getCapturedPortalChildren",
|
|
8206
|
+
"description": null,
|
|
8207
|
+
"see": [],
|
|
8208
|
+
"security": [],
|
|
8209
|
+
"sourceLocation": {
|
|
8210
|
+
"filePath": "src/runtimeRendererPortalConfig.test.tsx",
|
|
8211
|
+
"line": 188,
|
|
8212
|
+
"column": 1
|
|
8213
|
+
}
|
|
8214
|
+
},
|
|
8215
|
+
{
|
|
8216
|
+
"name": "isVoidCallback",
|
|
8217
|
+
"description": null,
|
|
8218
|
+
"see": [],
|
|
8219
|
+
"security": [],
|
|
8220
|
+
"sourceLocation": {
|
|
8221
|
+
"filePath": "src/runtimeRendererPortalConfig.test.tsx",
|
|
8222
|
+
"line": 194,
|
|
8223
|
+
"column": 1
|
|
8224
|
+
}
|
|
8225
|
+
},
|
|
8226
|
+
{
|
|
8227
|
+
"name": "expectPortalConfiguration",
|
|
8228
|
+
"description": null,
|
|
8229
|
+
"see": [],
|
|
8230
|
+
"security": [],
|
|
8231
|
+
"sourceLocation": {
|
|
8232
|
+
"filePath": "src/runtimeRendererPortalConfig.test.tsx",
|
|
8233
|
+
"line": 198,
|
|
8086
8234
|
"column": 1
|
|
8087
8235
|
}
|
|
8088
8236
|
},
|
|
@@ -9686,6 +9834,21 @@
|
|
|
9686
9834
|
"toPath": "src/types/runtimeFlow.ts",
|
|
9687
9835
|
"sourcePath": "src/RuntimeRendererConfig.tsx"
|
|
9688
9836
|
},
|
|
9837
|
+
{
|
|
9838
|
+
"fromPath": "src/runtimeRendererPortalConfig.test.tsx",
|
|
9839
|
+
"toPath": "src/registry.tsx",
|
|
9840
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
9841
|
+
},
|
|
9842
|
+
{
|
|
9843
|
+
"fromPath": "src/runtimeRendererPortalConfig.test.tsx",
|
|
9844
|
+
"toPath": "src/RuntimeRendererConfig.tsx",
|
|
9845
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
9846
|
+
},
|
|
9847
|
+
{
|
|
9848
|
+
"fromPath": "src/runtimeRendererPortalConfig.test.tsx",
|
|
9849
|
+
"toPath": "src/runtimeStateAdapter.ts",
|
|
9850
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
9851
|
+
},
|
|
9689
9852
|
{
|
|
9690
9853
|
"fromPath": "src/runtimeRepeat.ts",
|
|
9691
9854
|
"toPath": "src/runtimeBindings.ts",
|
|
@@ -12430,6 +12593,120 @@
|
|
|
12430
12593
|
"callExpression": "use",
|
|
12431
12594
|
"sourcePath": "src/RuntimeRendererConfig.tsx"
|
|
12432
12595
|
},
|
|
12596
|
+
{
|
|
12597
|
+
"fromSymbol": "ConfigProbe",
|
|
12598
|
+
"toSymbol": "useRuntimeRendererConfig",
|
|
12599
|
+
"callExpression": "useRuntimeRendererConfig",
|
|
12600
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12601
|
+
},
|
|
12602
|
+
{
|
|
12603
|
+
"fromSymbol": "src/runtimeRendererPortalConfig.test.tsx",
|
|
12604
|
+
"toSymbol": "it",
|
|
12605
|
+
"callExpression": "it",
|
|
12606
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12607
|
+
},
|
|
12608
|
+
{
|
|
12609
|
+
"fromSymbol": "src/runtimeRendererPortalConfig.test.tsx",
|
|
12610
|
+
"toSymbol": "createRuntimeMemoryStateAdapter",
|
|
12611
|
+
"callExpression": "createRuntimeMemoryStateAdapter",
|
|
12612
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12613
|
+
},
|
|
12614
|
+
{
|
|
12615
|
+
"fromSymbol": "src/runtimeRendererPortalConfig.test.tsx",
|
|
12616
|
+
"toSymbol": "mock",
|
|
12617
|
+
"callExpression": "mock",
|
|
12618
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12619
|
+
},
|
|
12620
|
+
{
|
|
12621
|
+
"fromSymbol": "src/runtimeRendererPortalConfig.test.tsx",
|
|
12622
|
+
"toSymbol": "mountSourceRenderer",
|
|
12623
|
+
"callExpression": "mountSourceRenderer",
|
|
12624
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12625
|
+
},
|
|
12626
|
+
{
|
|
12627
|
+
"fromSymbol": "src/runtimeRendererPortalConfig.test.tsx",
|
|
12628
|
+
"toSymbol": "mountCapturedPortalChildren",
|
|
12629
|
+
"callExpression": "mountCapturedPortalChildren",
|
|
12630
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12631
|
+
},
|
|
12632
|
+
{
|
|
12633
|
+
"fromSymbol": "src/runtimeRendererPortalConfig.test.tsx",
|
|
12634
|
+
"toSymbol": "expectPortalConfiguration",
|
|
12635
|
+
"callExpression": "expectPortalConfiguration",
|
|
12636
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12637
|
+
},
|
|
12638
|
+
{
|
|
12639
|
+
"fromSymbol": "src/runtimeRendererPortalConfig.test.tsx",
|
|
12640
|
+
"toSymbol": "act",
|
|
12641
|
+
"callExpression": "act",
|
|
12642
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12643
|
+
},
|
|
12644
|
+
{
|
|
12645
|
+
"fromSymbol": "src/runtimeRendererPortalConfig.test.tsx",
|
|
12646
|
+
"toSymbol": "isVoidCallback",
|
|
12647
|
+
"callExpression": "isVoidCallback",
|
|
12648
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12649
|
+
},
|
|
12650
|
+
{
|
|
12651
|
+
"fromSymbol": "src/runtimeRendererPortalConfig.test.tsx",
|
|
12652
|
+
"toSymbol": "onClick",
|
|
12653
|
+
"callExpression": "onClick",
|
|
12654
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12655
|
+
},
|
|
12656
|
+
{
|
|
12657
|
+
"fromSymbol": "src/runtimeRendererPortalConfig.test.tsx",
|
|
12658
|
+
"toSymbol": "expect",
|
|
12659
|
+
"callExpression": "expect",
|
|
12660
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12661
|
+
},
|
|
12662
|
+
{
|
|
12663
|
+
"fromSymbol": "src/runtimeRendererPortalConfig.test.tsx",
|
|
12664
|
+
"toSymbol": "updateSourceRenderer",
|
|
12665
|
+
"callExpression": "updateSourceRenderer",
|
|
12666
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12667
|
+
},
|
|
12668
|
+
{
|
|
12669
|
+
"fromSymbol": "src/runtimeRendererPortalConfig.test.tsx",
|
|
12670
|
+
"toSymbol": "getCapturedPortalChildren",
|
|
12671
|
+
"callExpression": "getCapturedPortalChildren",
|
|
12672
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12673
|
+
},
|
|
12674
|
+
{
|
|
12675
|
+
"fromSymbol": "mountSourceRenderer",
|
|
12676
|
+
"toSymbol": "act",
|
|
12677
|
+
"callExpression": "act",
|
|
12678
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12679
|
+
},
|
|
12680
|
+
{
|
|
12681
|
+
"fromSymbol": "src/runtimeRendererPortalConfig.test.tsx",
|
|
12682
|
+
"toSymbol": "create",
|
|
12683
|
+
"callExpression": "create",
|
|
12684
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12685
|
+
},
|
|
12686
|
+
{
|
|
12687
|
+
"fromSymbol": "src/runtimeRendererPortalConfig.test.tsx",
|
|
12688
|
+
"toSymbol": "renderSource",
|
|
12689
|
+
"callExpression": "renderSource",
|
|
12690
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12691
|
+
},
|
|
12692
|
+
{
|
|
12693
|
+
"fromSymbol": "updateSourceRenderer",
|
|
12694
|
+
"toSymbol": "act",
|
|
12695
|
+
"callExpression": "act",
|
|
12696
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12697
|
+
},
|
|
12698
|
+
{
|
|
12699
|
+
"fromSymbol": "mountCapturedPortalChildren",
|
|
12700
|
+
"toSymbol": "act",
|
|
12701
|
+
"callExpression": "act",
|
|
12702
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12703
|
+
},
|
|
12704
|
+
{
|
|
12705
|
+
"fromSymbol": "expectPortalConfiguration",
|
|
12706
|
+
"toSymbol": "expect",
|
|
12707
|
+
"callExpression": "expect",
|
|
12708
|
+
"sourcePath": "src/runtimeRendererPortalConfig.test.tsx"
|
|
12709
|
+
},
|
|
12433
12710
|
{
|
|
12434
12711
|
"fromSymbol": "resolveRuntimeRepeatItemsSync",
|
|
12435
12712
|
"toSymbol": "resolveRuntimeBindingExpressionSync",
|
|
@@ -14952,16 +15229,28 @@
|
|
|
14952
15229
|
"jsxElement": "<Text style={styles.errorMeta}>",
|
|
14953
15230
|
"sourcePath": "src/RuntimeRenderer.tsx"
|
|
14954
15231
|
},
|
|
15232
|
+
{
|
|
15233
|
+
"fromComponent": "RuntimeRenderer",
|
|
15234
|
+
"toComponent": "RuntimeRendererConfigProvider",
|
|
15235
|
+
"jsxElement": "<RuntimeRendererConfigProvider\n key={`${child.id}:${String(repeatKey)}`}\n replace\n value={effectiveConfig}\n >",
|
|
15236
|
+
"sourcePath": "src/RuntimeRenderer.tsx"
|
|
15237
|
+
},
|
|
14955
15238
|
{
|
|
14956
15239
|
"fromComponent": "RuntimeRenderer",
|
|
14957
15240
|
"toComponent": "RuntimeRenderer",
|
|
14958
|
-
"jsxElement": "<RuntimeRenderer\n
|
|
15241
|
+
"jsxElement": "<RuntimeRenderer\n node={child}\n registry={effectiveRegistry}\n bindingContext={createRuntimeRepeatBindingContext({\n baseContext: effectiveConfig.bindingContext,\n item,\n itemAlias,\n })}\n />",
|
|
15242
|
+
"sourcePath": "src/RuntimeRenderer.tsx"
|
|
15243
|
+
},
|
|
15244
|
+
{
|
|
15245
|
+
"fromComponent": "RuntimeRenderer",
|
|
15246
|
+
"toComponent": "RuntimeRendererConfigProvider",
|
|
15247
|
+
"jsxElement": "<RuntimeRendererConfigProvider key={child.id} replace value={effectiveConfig}>",
|
|
14959
15248
|
"sourcePath": "src/RuntimeRenderer.tsx"
|
|
14960
15249
|
},
|
|
14961
15250
|
{
|
|
14962
15251
|
"fromComponent": "RuntimeRenderer",
|
|
14963
15252
|
"toComponent": "RuntimeRenderer",
|
|
14964
|
-
"jsxElement": "<RuntimeRenderer
|
|
15253
|
+
"jsxElement": "<RuntimeRenderer node={child} registry={effectiveRegistry} />",
|
|
14965
15254
|
"sourcePath": "src/RuntimeRenderer.tsx"
|
|
14966
15255
|
},
|
|
14967
15256
|
{
|