@ankhorage/runtime 0.2.2 → 0.2.4

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @ankhorage/runtime
2
2
 
3
+ ## 0.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 81fe6a0: Remove Runtime-owned ZORA component registry exports and require hosts to inject concrete component registries.
8
+
9
+ ## 0.2.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 053bfe1: update ZORA
14
+
3
15
  ## 0.2.2
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # @ankhorage/runtime
5
5
 
6
- ![license: MIT](./paradox/badges/license.svg) ![npm: v0.2.0](./paradox/badges/npm.svg) ![runtime: bun](./paradox/badges/runtime.svg) ![typescript: strict](./paradox/badges/typescript.svg) ![eslint: checked](./paradox/badges/eslint.svg) ![prettier: checked](./paradox/badges/prettier.svg) ![build: checked](./paradox/badges/build.svg) ![tests: checked](./paradox/badges/tests.svg) ![docs: paradox](./paradox/badges/docs.svg)
6
+ ![license: MIT](./paradox/badges/license.svg) ![npm: v0.2.3](./paradox/badges/npm.svg) ![runtime: bun](./paradox/badges/runtime.svg) ![typescript: strict](./paradox/badges/typescript.svg) ![eslint: checked](./paradox/badges/eslint.svg) ![prettier: checked](./paradox/badges/prettier.svg) ![build: checked](./paradox/badges/build.svg) ![tests: checked](./paradox/badges/tests.svg) ![docs: paradox](./paradox/badges/docs.svg)
7
7
 
8
8
  Platform-neutral runtime contracts and helpers for Ankhorage generated apps.
9
9
 
@@ -1 +1 @@
1
- {"version":3,"file":"RuntimeRenderer.d.ts","sourceRoot":"","sources":["../src/RuntimeRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,4BAA4B,EAC5B,oBAAoB,EACpB,kBAAkB,EAClB,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,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EACjB,YAAY,EACZ,MAAM,EACP,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAUpD,OAAO,KAAK,EACV,+BAA+B,EAE/B,kCAAkC,EACnC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAEL,KAAK,qBAAqB,EAE1B,KAAK,uBAAuB,EAE7B,MAAM,yBAAyB,CAAC;AAajC,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,uBAAuB,KAAK,KAAK,CAAC,SAAS,CAAC;IAC9D,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,gBAAgB,CAAC,EAAE,kCAAkC,CAAC;IACtD,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,gBAAgB,CAAC,EAAE,+BAA+B,CAAC;IACnD,aAAa,CAAC,EAAE,CAAC,WAAW,EAAE,SAAS,oBAAoB,EAAE,KAAK,IAAI,CAAC;CACxE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,qBA8V1D"}
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { StyleSheet, Text, View } from 'react-native';
3
- import { ZORA_COMPONENT_REGISTRY } from './registry';
4
3
  import { getUnknownComponentDiagnostic, resolveRenderedChildren, resolveRuntimeRegistry, } from './rendering';
5
4
  import { wrapRuntimeEventProps, } from './runtimeActionRegistry';
6
5
  import { resolveRuntimeNodeProps, wrapRuntimeActionProps } from './runtimeNodeProps';
@@ -108,7 +107,6 @@ export function RuntimeRenderer(props) {
108
107
  const effectiveRegistry = React.useMemo(() => resolveRuntimeRegistry({
109
108
  propRegistry: registry,
110
109
  configRegistry: effectiveConfig.registry,
111
- fallbackRegistry: ZORA_COMPONENT_REGISTRY,
112
110
  }), [effectiveConfig.registry, registry]);
113
111
  const Component = effectiveRegistry[node.type];
114
112
  React.useEffect(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"RuntimeRenderer.js","sourceRoot":"","sources":["../src/RuntimeRenderer.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EACL,0BAA0B,EAE1B,6BAA6B,EAE7B,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,0CAA0C,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC3B,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,mCAAmC,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAqBlE,MAAM,UAAU,eAAe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AA6B,CAAC,CAChG,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 DataSourceRegistry,\n DbAdapter,\n DbRealtimeAdapter,\n StateAdapter,\n UiNode,\n} from '@ankhorage/contracts';\nimport React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport type { ComponentRegistry } from './registry';\nimport { ZORA_COMPONENT_REGISTRY } from './registry';\nimport {\n getUnknownComponentDiagnostic,\n resolveRenderedChildren,\n resolveRuntimeRegistry,\n} from './rendering';\nimport {\n type RuntimeComponentEventDispatchArgs,\n wrapRuntimeEventProps,\n} from './runtimeActionRegistry';\nimport type {\n RuntimeBindingOperationExecutor,\n RuntimeBindingOperationKey,\n RuntimeBindingOperationResultCache,\n} from './runtimeBindings';\nimport { resolveRuntimeNodeProps, wrapRuntimeActionProps } from './runtimeNodeProps';\nimport {\n mergeRuntimeRendererConfig,\n type RuntimeActionExecutor,\n RuntimeRendererConfigProvider,\n type RuntimeRendererWrapArgs,\n useRuntimeRendererConfig,\n} from './RuntimeRendererConfig';\nimport { dispatchRuntimeComponentEventWithReporting } from './runtimeEventExecution';\nimport {\n createRuntimeRepeatBindingContext,\n resolveRuntimeRepeatItemKey,\n resolveRuntimeRepeatItemsAsync,\n resolveRuntimeRepeatItemsSync,\n} from './runtimeRepeat';\nimport { createRepeatDiagnosticsKey } from './runtimeRepeatDiagnostics';\nimport { shouldRenderRuntimeRepeatEmptyState } from './runtimeRepeatEmptyState';\nimport { createDbPersistActionHandler } from './runtimeDbPersist';\nimport type { RuntimeActionHandlerArgs } from './RuntimeRendererConfig';\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 dataSources?: DataSourceRegistry;\n dataBindings?: ComponentDataBindingRegistry;\n operationResults?: RuntimeBindingOperationResultCache;\n executeAction?: RuntimeActionExecutor;\n executeOperation?: RuntimeBindingOperationExecutor;\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 dataSources,\n dataBindings,\n operationResults,\n executeAction,\n executeOperation,\n onDiagnostics,\n } = props;\n const inheritedConfig = useRuntimeRendererConfig();\n const inheritedOperationResults = inheritedConfig.operationResults;\n const [localOperationResults, setLocalOperationResults] =\n React.useState<RuntimeBindingOperationResultCache>({});\n const writeLocalOperationResult = React.useCallback(\n (key: RuntimeBindingOperationKey, value: BindingValue) => {\n setLocalOperationResults((currentResults) => ({\n ...currentResults,\n [key]: value,\n }));\n },\n [],\n );\n const actionHandlerCacheRef = React.useRef(new WeakMap<object, (...args: unknown[]) => void>());\n const functionHandlerCacheRef = React.useRef(\n new WeakMap<(...args: unknown[]) => unknown, (...args: unknown[]) => unknown>(),\n );\n const effectiveOperationResults = React.useMemo(\n () => ({\n ...(inheritedOperationResults ?? {}),\n ...(operationResults ?? {}),\n ...localOperationResults,\n }),\n [inheritedOperationResults, localOperationResults, operationResults],\n );\n const explicitConfig = React.useMemo(\n () => ({\n bindingContext,\n dataBindings,\n dataSources,\n dbAdapter,\n dbRealtimeAdapter,\n disableActions,\n executeAction,\n executeOperation,\n operationResults: effectiveOperationResults,\n onDiagnostics,\n registry,\n stateAdapter,\n wrapNode,\n writeOperationResult: inheritedConfig.writeOperationResult ?? writeLocalOperationResult,\n }),\n [\n bindingContext,\n dataBindings,\n dataSources,\n dbAdapter,\n dbRealtimeAdapter,\n disableActions,\n executeAction,\n effectiveOperationResults,\n executeOperation,\n inheritedConfig.writeOperationResult,\n onDiagnostics,\n registry,\n stateAdapter,\n wrapNode,\n writeLocalOperationResult,\n ],\n );\n const effectiveConfig = React.useMemo(\n () => mergeRuntimeRendererConfig(explicitConfig, inheritedConfig),\n [explicitConfig, inheritedConfig],\n );\n const effectiveActionHandlers = React.useMemo(() => {\n if (!effectiveConfig.dbAdapter) {\n return effectiveConfig.actionHandlers;\n }\n\n return {\n 'db.persist': createDbPersistActionHandler({ dbAdapter: effectiveConfig.dbAdapter }),\n ...(effectiveConfig.actionHandlers ?? {}),\n };\n }, [effectiveConfig.actionHandlers, effectiveConfig.dbAdapter]);\n const executeRuntimeAction = React.useCallback(\n async (actionArgs: RuntimeActionHandlerArgs) => {\n if (effectiveConfig.executeAction) {\n await effectiveConfig.executeAction(actionArgs);\n return;\n }\n\n const handler = effectiveActionHandlers?.[actionArgs.action.type];\n if (handler) {\n await handler(actionArgs);\n }\n },\n [effectiveActionHandlers, effectiveConfig.executeAction],\n );\n const dispatchRuntimeEvent = React.useCallback(\n async (eventArgs: RuntimeComponentEventDispatchArgs) => {\n await dispatchRuntimeComponentEventWithReporting({\n ...eventArgs,\n actionHandlers: effectiveActionHandlers,\n dataBindings: eventArgs.dataBindings ?? effectiveConfig.dataBindings,\n dataSources: eventArgs.dataSources ?? effectiveConfig.dataSources,\n executeAction: effectiveConfig.executeAction ?? executeRuntimeAction,\n executeOperation: eventArgs.executeOperation ?? effectiveConfig.executeOperation,\n onDiagnostics: effectiveConfig.onDiagnostics,\n operationResults: eventArgs.operationResults ?? effectiveConfig.operationResults,\n writeOperationResult:\n eventArgs.writeOperationResult ?? effectiveConfig.writeOperationResult,\n });\n },\n [\n effectiveActionHandlers,\n effectiveConfig.dataBindings,\n effectiveConfig.dataSources,\n effectiveConfig.executeAction,\n effectiveConfig.executeOperation,\n effectiveConfig.onDiagnostics,\n effectiveConfig.operationResults,\n effectiveConfig.writeOperationResult,\n executeRuntimeAction,\n ],\n );\n const executeRuntimeActionRef = React.useRef(executeRuntimeAction);\n const dispatchRuntimeEventRef = React.useRef(dispatchRuntimeEvent);\n const effectiveRegistry = React.useMemo(\n () =>\n resolveRuntimeRegistry({\n propRegistry: registry,\n configRegistry: effectiveConfig.registry,\n fallbackRegistry: ZORA_COMPONENT_REGISTRY,\n }),\n [effectiveConfig.registry, registry],\n );\n const Component = effectiveRegistry[node.type];\n\n React.useEffect(() => {\n executeRuntimeActionRef.current = executeRuntimeAction;\n }, [executeRuntimeAction]);\n\n React.useEffect(() => {\n dispatchRuntimeEventRef.current = dispatchRuntimeEvent;\n }, [dispatchRuntimeEvent]);\n\n const repeatSyncResult = React.useMemo(() => {\n const { repeat } = node;\n if (!repeat) {\n return null;\n }\n\n return resolveRuntimeRepeatItemsSync(repeat, {\n context: effectiveConfig.bindingContext,\n dataBindings: effectiveConfig.dataBindings,\n dataSources: effectiveConfig.dataSources,\n executeOperation: effectiveConfig.executeOperation,\n node,\n operationResults: effectiveConfig.operationResults,\n stateAdapter: effectiveConfig.stateAdapter,\n writeOperationResult: effectiveConfig.writeOperationResult,\n });\n }, [\n effectiveConfig.bindingContext,\n effectiveConfig.dataBindings,\n effectiveConfig.dataSources,\n effectiveConfig.executeOperation,\n effectiveConfig.operationResults,\n effectiveConfig.stateAdapter,\n effectiveConfig.writeOperationResult,\n node,\n ]);\n const [asyncRepeatResult, setAsyncRepeatResult] = React.useState<{\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 const { repeat } = node;\n\n if (!repeat || repeatSyncResult?.status !== 'pending') {\n setAsyncRepeatResult(null);\n return undefined;\n }\n\n void (async () => {\n const result = await resolveRuntimeRepeatItemsAsync(repeat, {\n context: effectiveConfig.bindingContext,\n dataBindings: effectiveConfig.dataBindings,\n dataSources: effectiveConfig.dataSources,\n executeOperation: effectiveConfig.executeOperation,\n node,\n operationResults: effectiveConfig.operationResults,\n stateAdapter: effectiveConfig.stateAdapter,\n writeOperationResult: effectiveConfig.writeOperationResult,\n });\n\n if (repeatRequestIdRef.current !== requestId) {\n return;\n }\n\n setAsyncRepeatResult(result);\n })();\n\n return () => {\n repeatRequestIdRef.current += 1;\n };\n }, [\n effectiveConfig.bindingContext,\n effectiveConfig.dataBindings,\n effectiveConfig.dataSources,\n effectiveConfig.executeOperation,\n effectiveConfig.operationResults,\n effectiveConfig.stateAdapter,\n effectiveConfig.writeOperationResult,\n node,\n repeatSyncResult,\n ]);\n const repeatDiagnostics =\n repeatSyncResult?.status === 'ready'\n ? repeatSyncResult.diagnostics\n : asyncRepeatResult?.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.onDiagnostics, node.repeat, repeatDiagnostics]);\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 : asyncRepeatResult?.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 : asyncRepeatResult\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 resolvedProps = resolveRuntimeNodeProps({\n bindingContext: effectiveConfig.bindingContext,\n dataBindings: effectiveConfig.dataBindings,\n dataSources: effectiveConfig.dataSources,\n dbAdapter: effectiveConfig.dbAdapter,\n dbRealtimeAdapter: effectiveConfig.dbRealtimeAdapter,\n node,\n operationResults: effectiveConfig.operationResults,\n resolveNodeProps: effectiveConfig.resolveNodeProps,\n stateAdapter: effectiveConfig.stateAdapter,\n });\n const propsWithActions = wrapRuntimeActionProps({\n props: resolvedProps,\n disableActions: effectiveConfig.disableActions === true,\n handleAction: (action) => {\n void executeRuntimeActionRef.current({ action });\n },\n actionHandlerCache: actionHandlerCacheRef.current,\n functionHandlerCache: functionHandlerCacheRef.current,\n });\n const propsWithEvents = wrapRuntimeEventProps({\n context: effectiveConfig.bindingContext,\n dataBindings: effectiveConfig.dataBindings,\n props: propsWithActions,\n disableActions: effectiveConfig.disableActions === true,\n dispatchComponentEvent: (eventArgs) => dispatchRuntimeEventRef.current(eventArgs),\n node,\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 <RuntimeRendererConfigProvider value={explicitConfig}>{content}</RuntimeRendererConfigProvider>\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;AAC1B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAMjC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;QAChD,YAAY,EAAE,eAAe,CAAC,QAA2B;QACzD,gBAAgB;KACjB,CAAC,CAAC;IAEH,IAAI,OAAO,GAAoB,CAAC,SAAS,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC,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,CAAC,6BAA6B,CAAC,KAAK,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,6BAA6B,CAAC,CAChG,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 DataSourceRegistry,\n DbAdapter,\n DbRealtimeAdapter,\n StateAdapter,\n UiNode,\n} from '@ankhorage/contracts';\nimport React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport type { ComponentRegistry } from './registry';\nimport {\n getUnknownComponentDiagnostic,\n resolveRenderedChildren,\n resolveRuntimeRegistry,\n} from './rendering';\nimport {\n type RuntimeComponentEventDispatchArgs,\n wrapRuntimeEventProps,\n} from './runtimeActionRegistry';\nimport type {\n RuntimeBindingOperationExecutor,\n RuntimeBindingOperationKey,\n RuntimeBindingOperationResultCache,\n} from './runtimeBindings';\nimport { resolveRuntimeNodeProps, wrapRuntimeActionProps } from './runtimeNodeProps';\nimport {\n mergeRuntimeRendererConfig,\n type RuntimeActionExecutor,\n RuntimeRendererConfigProvider,\n type RuntimeRendererWrapArgs,\n useRuntimeRendererConfig,\n} from './RuntimeRendererConfig';\nimport { dispatchRuntimeComponentEventWithReporting } from './runtimeEventExecution';\nimport {\n createRuntimeRepeatBindingContext,\n resolveRuntimeRepeatItemKey,\n resolveRuntimeRepeatItemsAsync,\n resolveRuntimeRepeatItemsSync,\n} from './runtimeRepeat';\nimport { createRepeatDiagnosticsKey } from './runtimeRepeatDiagnostics';\nimport { shouldRenderRuntimeRepeatEmptyState } from './runtimeRepeatEmptyState';\nimport { createDbPersistActionHandler } from './runtimeDbPersist';\nimport type { RuntimeActionHandlerArgs } from './RuntimeRendererConfig';\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 dataSources?: DataSourceRegistry;\n dataBindings?: ComponentDataBindingRegistry;\n operationResults?: RuntimeBindingOperationResultCache;\n executeAction?: RuntimeActionExecutor;\n executeOperation?: RuntimeBindingOperationExecutor;\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 dataSources,\n dataBindings,\n operationResults,\n executeAction,\n executeOperation,\n onDiagnostics,\n } = props;\n const inheritedConfig = useRuntimeRendererConfig();\n const inheritedOperationResults = inheritedConfig.operationResults;\n const [localOperationResults, setLocalOperationResults] =\n React.useState<RuntimeBindingOperationResultCache>({});\n const writeLocalOperationResult = React.useCallback(\n (key: RuntimeBindingOperationKey, value: BindingValue) => {\n setLocalOperationResults((currentResults) => ({\n ...currentResults,\n [key]: value,\n }));\n },\n [],\n );\n const actionHandlerCacheRef = React.useRef(new WeakMap<object, (...args: unknown[]) => void>());\n const functionHandlerCacheRef = React.useRef(\n new WeakMap<(...args: unknown[]) => unknown, (...args: unknown[]) => unknown>(),\n );\n const effectiveOperationResults = React.useMemo(\n () => ({\n ...(inheritedOperationResults ?? {}),\n ...(operationResults ?? {}),\n ...localOperationResults,\n }),\n [inheritedOperationResults, localOperationResults, operationResults],\n );\n const explicitConfig = React.useMemo(\n () => ({\n bindingContext,\n dataBindings,\n dataSources,\n dbAdapter,\n dbRealtimeAdapter,\n disableActions,\n executeAction,\n executeOperation,\n operationResults: effectiveOperationResults,\n onDiagnostics,\n registry,\n stateAdapter,\n wrapNode,\n writeOperationResult: inheritedConfig.writeOperationResult ?? writeLocalOperationResult,\n }),\n [\n bindingContext,\n dataBindings,\n dataSources,\n dbAdapter,\n dbRealtimeAdapter,\n disableActions,\n executeAction,\n effectiveOperationResults,\n executeOperation,\n inheritedConfig.writeOperationResult,\n onDiagnostics,\n registry,\n stateAdapter,\n wrapNode,\n writeLocalOperationResult,\n ],\n );\n const effectiveConfig = React.useMemo(\n () => mergeRuntimeRendererConfig(explicitConfig, inheritedConfig),\n [explicitConfig, inheritedConfig],\n );\n const effectiveActionHandlers = React.useMemo(() => {\n if (!effectiveConfig.dbAdapter) {\n return effectiveConfig.actionHandlers;\n }\n\n return {\n 'db.persist': createDbPersistActionHandler({ dbAdapter: effectiveConfig.dbAdapter }),\n ...(effectiveConfig.actionHandlers ?? {}),\n };\n }, [effectiveConfig.actionHandlers, effectiveConfig.dbAdapter]);\n const executeRuntimeAction = React.useCallback(\n async (actionArgs: RuntimeActionHandlerArgs) => {\n if (effectiveConfig.executeAction) {\n await effectiveConfig.executeAction(actionArgs);\n return;\n }\n\n const handler = effectiveActionHandlers?.[actionArgs.action.type];\n if (handler) {\n await handler(actionArgs);\n }\n },\n [effectiveActionHandlers, effectiveConfig.executeAction],\n );\n const dispatchRuntimeEvent = React.useCallback(\n async (eventArgs: RuntimeComponentEventDispatchArgs) => {\n await dispatchRuntimeComponentEventWithReporting({\n ...eventArgs,\n actionHandlers: effectiveActionHandlers,\n dataBindings: eventArgs.dataBindings ?? effectiveConfig.dataBindings,\n dataSources: eventArgs.dataSources ?? effectiveConfig.dataSources,\n executeAction: effectiveConfig.executeAction ?? executeRuntimeAction,\n executeOperation: eventArgs.executeOperation ?? effectiveConfig.executeOperation,\n onDiagnostics: effectiveConfig.onDiagnostics,\n operationResults: eventArgs.operationResults ?? effectiveConfig.operationResults,\n writeOperationResult:\n eventArgs.writeOperationResult ?? effectiveConfig.writeOperationResult,\n });\n },\n [\n effectiveActionHandlers,\n effectiveConfig.dataBindings,\n effectiveConfig.dataSources,\n effectiveConfig.executeAction,\n effectiveConfig.executeOperation,\n effectiveConfig.onDiagnostics,\n effectiveConfig.operationResults,\n effectiveConfig.writeOperationResult,\n executeRuntimeAction,\n ],\n );\n const executeRuntimeActionRef = React.useRef(executeRuntimeAction);\n const dispatchRuntimeEventRef = React.useRef(dispatchRuntimeEvent);\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 React.useEffect(() => {\n executeRuntimeActionRef.current = executeRuntimeAction;\n }, [executeRuntimeAction]);\n\n React.useEffect(() => {\n dispatchRuntimeEventRef.current = dispatchRuntimeEvent;\n }, [dispatchRuntimeEvent]);\n\n const repeatSyncResult = React.useMemo(() => {\n const { repeat } = node;\n if (!repeat) {\n return null;\n }\n\n return resolveRuntimeRepeatItemsSync(repeat, {\n context: effectiveConfig.bindingContext,\n dataBindings: effectiveConfig.dataBindings,\n dataSources: effectiveConfig.dataSources,\n executeOperation: effectiveConfig.executeOperation,\n node,\n operationResults: effectiveConfig.operationResults,\n stateAdapter: effectiveConfig.stateAdapter,\n writeOperationResult: effectiveConfig.writeOperationResult,\n });\n }, [\n effectiveConfig.bindingContext,\n effectiveConfig.dataBindings,\n effectiveConfig.dataSources,\n effectiveConfig.executeOperation,\n effectiveConfig.operationResults,\n effectiveConfig.stateAdapter,\n effectiveConfig.writeOperationResult,\n node,\n ]);\n const [asyncRepeatResult, setAsyncRepeatResult] = React.useState<{\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 const { repeat } = node;\n\n if (!repeat || repeatSyncResult?.status !== 'pending') {\n setAsyncRepeatResult(null);\n return undefined;\n }\n\n void (async () => {\n const result = await resolveRuntimeRepeatItemsAsync(repeat, {\n context: effectiveConfig.bindingContext,\n dataBindings: effectiveConfig.dataBindings,\n dataSources: effectiveConfig.dataSources,\n executeOperation: effectiveConfig.executeOperation,\n node,\n operationResults: effectiveConfig.operationResults,\n stateAdapter: effectiveConfig.stateAdapter,\n writeOperationResult: effectiveConfig.writeOperationResult,\n });\n\n if (repeatRequestIdRef.current !== requestId) {\n return;\n }\n\n setAsyncRepeatResult(result);\n })();\n\n return () => {\n repeatRequestIdRef.current += 1;\n };\n }, [\n effectiveConfig.bindingContext,\n effectiveConfig.dataBindings,\n effectiveConfig.dataSources,\n effectiveConfig.executeOperation,\n effectiveConfig.operationResults,\n effectiveConfig.stateAdapter,\n effectiveConfig.writeOperationResult,\n node,\n repeatSyncResult,\n ]);\n const repeatDiagnostics =\n repeatSyncResult?.status === 'ready'\n ? repeatSyncResult.diagnostics\n : asyncRepeatResult?.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.onDiagnostics, node.repeat, repeatDiagnostics]);\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 : asyncRepeatResult?.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 : asyncRepeatResult\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 resolvedProps = resolveRuntimeNodeProps({\n bindingContext: effectiveConfig.bindingContext,\n dataBindings: effectiveConfig.dataBindings,\n dataSources: effectiveConfig.dataSources,\n dbAdapter: effectiveConfig.dbAdapter,\n dbRealtimeAdapter: effectiveConfig.dbRealtimeAdapter,\n node,\n operationResults: effectiveConfig.operationResults,\n resolveNodeProps: effectiveConfig.resolveNodeProps,\n stateAdapter: effectiveConfig.stateAdapter,\n });\n const propsWithActions = wrapRuntimeActionProps({\n props: resolvedProps,\n disableActions: effectiveConfig.disableActions === true,\n handleAction: (action) => {\n void executeRuntimeActionRef.current({ action });\n },\n actionHandlerCache: actionHandlerCacheRef.current,\n functionHandlerCache: functionHandlerCacheRef.current,\n });\n const propsWithEvents = wrapRuntimeEventProps({\n context: effectiveConfig.bindingContext,\n dataBindings: effectiveConfig.dataBindings,\n props: propsWithActions,\n disableActions: effectiveConfig.disableActions === true,\n dispatchComponentEvent: (eventArgs) => dispatchRuntimeEventRef.current(eventArgs),\n node,\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 <RuntimeRendererConfigProvider value={explicitConfig}>{content}</RuntimeRendererConfigProvider>\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,4 +1,4 @@
1
1
  import type React from 'react';
2
- export type ComponentRegistry = Record<string, React.ElementType>;
2
+ export type ComponentRegistry = Readonly<Record<string, React.ElementType>>;
3
3
  export declare function createComponentRegistry(...registries: readonly ComponentRegistry[]): ComponentRegistry;
4
4
  //# sourceMappingURL=componentRegistry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"componentRegistry.d.ts","sourceRoot":"","sources":["../src/componentRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;AAElE,wBAAgB,uBAAuB,CACrC,GAAG,UAAU,EAAE,SAAS,iBAAiB,EAAE,GAC1C,iBAAiB,CAInB"}
1
+ {"version":3,"file":"componentRegistry.d.ts","sourceRoot":"","sources":["../src/componentRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AAE5E,wBAAgB,uBAAuB,CACrC,GAAG,UAAU,EAAE,SAAS,iBAAiB,EAAE,GAC1C,iBAAiB,CAInB"}
@@ -1 +1 @@
1
- {"version":3,"file":"componentRegistry.js","sourceRoot":"","sources":["../src/componentRegistry.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,uBAAuB,CACrC,GAAG,UAAwC;IAE3C,OAAO,UAAU,CAAC,MAAM,CAAoB,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE;QACvE,OAAO,EAAE,GAAG,cAAc,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC5C,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC","sourcesContent":["import type React from 'react';\n\nexport type ComponentRegistry = Record<string, React.ElementType>;\n\nexport function createComponentRegistry(\n ...registries: readonly ComponentRegistry[]\n): ComponentRegistry {\n return registries.reduce<ComponentRegistry>((mergedRegistry, registry) => {\n return { ...mergedRegistry, ...registry };\n }, {});\n}\n"]}
1
+ {"version":3,"file":"componentRegistry.js","sourceRoot":"","sources":["../src/componentRegistry.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,uBAAuB,CACrC,GAAG,UAAwC;IAE3C,OAAO,UAAU,CAAC,MAAM,CAAoC,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE;QACvF,OAAO,EAAE,GAAG,cAAc,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC5C,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC","sourcesContent":["import type React from 'react';\n\nexport type ComponentRegistry = Readonly<Record<string, React.ElementType>>;\n\nexport function createComponentRegistry(\n ...registries: readonly ComponentRegistry[]\n): ComponentRegistry {\n return registries.reduce<Record<string, React.ElementType>>((mergedRegistry, registry) => {\n return { ...mergedRegistry, ...registry };\n }, {});\n}\n"]}
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export { ManifestContext, ManifestProvider, useManifest, useManifestContext, useOptionalManifestContext, } from './ManifestContext';
2
2
  export type { ComponentRegistry } from './registry';
3
- export { APP_EXTENSION_COMPONENT_REGISTRY, createComponentRegistry, SURFACE_COMPONENT_REGISTRY, ZORA_COMPONENT_REGISTRY, } from './registry';
4
- export { ZORA_COMPONENT_REGISTRY as DEFAULT_COMPONENT_REGISTRY } from './registry';
3
+ export { APP_EXTENSION_COMPONENT_REGISTRY, createComponentRegistry } from './registry';
5
4
  export type { RuntimeActionRegistry, RuntimeActionResolutionArgs, RuntimeActionResolutionScope, RuntimeComponentEventDispatchArgs, RuntimeEventPropWrapArgs, } from './runtimeActionRegistry';
6
5
  export { createComponentEventFromHandlerArgs, createRuntimeActionRegistry, dispatchRuntimeComponentEvent, resolveRuntimeActionPayload, resolveRuntimeActionValue, wrapRuntimeEventProps, } from './runtimeActionRegistry';
7
6
  export type { RuntimeApiLoaderDefinition, RuntimeApiLoaderDiagnostic, RuntimeApiLoaderExecutionResult, RuntimeApiLoaderMaterializationResult, RuntimeApiLoaderMode, } from './runtimeApiLoaders';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EACL,gCAAgC,EAChC,uBAAuB,EACvB,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,uBAAuB,IAAI,0BAA0B,EAAE,MAAM,YAAY,CAAC;AACnF,YAAY,EACV,qBAAqB,EACrB,2BAA2B,EAC3B,4BAA4B,EAC5B,iCAAiC,EACjC,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mCAAmC,EACnC,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,+BAA+B,EAC/B,qCAAqC,EACrC,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,wBAAwB,EACxB,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,oCAAoC,EACpC,sCAAsC,EACtC,+BAA+B,EAC/B,0BAA0B,EAC1B,kCAAkC,EAClC,mCAAmC,EACnC,4BAA4B,EAC5B,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,gCAAgC,EAChC,sBAAsB,EACtB,sBAAsB,EACtB,2B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AAC;AACjC,OAAO,EAAE,mCAAmC,EAAE,MAAM,2BAA2B,CAAC;AAChF,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EACV,2CAA2C,EAC3C,iCAAiC,GAClC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,8CAA8C,EAC9C,mCAAmC,EACnC,oCAAoC,EACpC,uBAAuB,EACvB,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,gCAAgC,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  export { ManifestContext, ManifestProvider, useManifest, useManifestContext, useOptionalManifestContext, } from './ManifestContext';
2
- export { APP_EXTENSION_COMPONENT_REGISTRY, createComponentRegistry, SURFACE_COMPONENT_REGISTRY, ZORA_COMPONENT_REGISTRY, } from './registry';
3
- export { ZORA_COMPONENT_REGISTRY as DEFAULT_COMPONENT_REGISTRY } from './registry';
2
+ export { APP_EXTENSION_COMPONENT_REGISTRY, createComponentRegistry } from './registry';
4
3
  export { createComponentEventFromHandlerArgs, createRuntimeActionRegistry, dispatchRuntimeComponentEvent, resolveRuntimeActionPayload, resolveRuntimeActionValue, wrapRuntimeEventProps, } from './runtimeActionRegistry';
5
4
  export { executeRuntimeApiLoaders, materializeRuntimeApiLoaderState, useRuntimeApiStateLoaders, } from './runtimeApiLoaders';
6
5
  export { createRuntimeBindingOperationKey, resolveBindingInputMap, resolveRuntimeBindings, resolveRuntimeBindingsAsync, resolveRuntimeBindingValue, resolveRuntimeBindingValueSync, validateRuntimeBindingOperationRef, } from './runtimeBindings';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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AAC;AAKhD,OAAO,EACL,8CAA8C,EAC9C,mCAAmC,EACnC,oCAAoC,EACpC,uBAAuB,EACvB,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export {\n ManifestContext,\n ManifestProvider,\n useManifest,\n useManifestContext,\n useOptionalManifestContext,\n} from './ManifestContext';\nexport type { ComponentRegistry } from './registry';\nexport {\n APP_EXTENSION_COMPONENT_REGISTRY,\n createComponentRegistry,\n SURFACE_COMPONENT_REGISTRY,\n ZORA_COMPONENT_REGISTRY,\n} from './registry';\nexport { ZORA_COMPONENT_REGISTRY as DEFAULT_COMPONENT_REGISTRY } from './registry';\nexport type {\n RuntimeActionRegistry,\n RuntimeActionResolutionArgs,\n RuntimeActionResolutionScope,\n RuntimeComponentEventDispatchArgs,\n RuntimeEventPropWrapArgs,\n} from './runtimeActionRegistry';\nexport {\n createComponentEventFromHandlerArgs,\n createRuntimeActionRegistry,\n dispatchRuntimeComponentEvent,\n resolveRuntimeActionPayload,\n resolveRuntimeActionValue,\n wrapRuntimeEventProps,\n} from './runtimeActionRegistry';\nexport type {\n RuntimeApiLoaderDefinition,\n RuntimeApiLoaderDiagnostic,\n RuntimeApiLoaderExecutionResult,\n RuntimeApiLoaderMaterializationResult,\n RuntimeApiLoaderMode,\n} from './runtimeApiLoaders';\nexport {\n executeRuntimeApiLoaders,\n materializeRuntimeApiLoaderState,\n useRuntimeApiStateLoaders,\n} from './runtimeApiLoaders';\nexport type {\n RuntimeBindingOperationExecutionArgs,\n RuntimeBindingOperationExecutionResult,\n RuntimeBindingOperationExecutor,\n RuntimeBindingOperationKey,\n RuntimeBindingOperationResultCache,\n RuntimeBindingOperationResultWriter,\n RuntimeBindingResolutionArgs,\n RuntimeBindingResolutionContext,\n RuntimeBindingResolutionResult,\n} from './runtimeBindings';\nexport {\n createRuntimeBindingOperationKey,\n resolveBindingInputMap,\n resolveRuntimeBindings,\n resolveRuntimeBindingsAsync,\n resolveRuntimeBindingValue,\n resolveRuntimeBindingValueSync,\n validateRuntimeBindingOperationRef,\n} from './runtimeBindings';\nexport type { RuntimeDataSourceOperationExecutorOptions } from './runtimeDataSourceOperations';\nexport { createRuntimeDataSourceOperationExecutor } from './runtimeDataSourceOperations';\nexport type {\n RuntimeDbPersistError,\n RuntimeDbPersistExecutionResult,\n RuntimeDbPersistResult,\n} from './runtimeDbPersist';\nexport {\n createDbPersistActionHandler,\n createDbPersistAdapterError,\n executeDbPersistAction,\n resolveDbPersistInput,\n} from './runtimeDbPersist';\nexport {\n dispatchRuntimeComponentEventWithReporting,\n type RuntimeEventDiagnosticsReporter,\n} from './runtimeEventExecution';\nexport type {\n RuntimeActionDescriptor,\n RuntimeAdapterDescriptor,\n RuntimeBindingDescriptor,\n RuntimeCapability,\n RuntimeDiagnostic,\n RuntimeManifest,\n RuntimeManifestConfig,\n RuntimeManifestInput,\n} from './runtimeManifest';\nexport {\n createRuntimeManifest,\n defineRuntimeAction,\n defineRuntimeAdapter,\n defineRuntimeBinding,\n listRuntimeCapabilities,\n RUNTIME_CAPABILITIES,\n RUNTIME_MANIFEST_KIND,\n} from './runtimeManifest';\nexport type { RuntimeRendererProps } from './RuntimeRenderer';\nexport { RuntimeRenderer } from './RuntimeRenderer';\nexport {\n composeRuntimeNodePropsResolver,\n composeRuntimeRendererWrapNode,\n mergeRuntimeRendererConfig,\n type RuntimeAction,\n type RuntimeActionExecutor,\n type RuntimeActionHandler,\n type RuntimeActionHandlerArgs,\n type RuntimeActionHandlers,\n type RuntimeNodePropsResolver,\n type RuntimeRendererConfig,\n RuntimeRendererConfigProvider,\n type RuntimeRendererWrapArgs,\n type RuntimeResolveNodePropsArgs,\n useRuntimeRendererConfig,\n} from './RuntimeRendererConfig';\nexport { shouldRenderRuntimeRepeatEmptyState } from './runtimeRepeatEmptyState';\nexport type { RuntimeScreenProps } from './RuntimeScreen';\nexport { RuntimeScreen } from './RuntimeScreen';\nexport type {\n RuntimeScreenOperationLoaderExecutionResult,\n RuntimeScreenOperationLoaderState,\n} from './runtimeScreenLoaders';\nexport {\n createPendingRuntimeScreenOperationLoaderState,\n createRuntimeScreenLoaderRequestKey,\n executeRuntimeScreenOperationLoaders,\n resolveScreenApiLoaders,\n resolveScreenOperationLoaders,\n useRuntimeScreenOperationLoaders,\n} from './runtimeScreenLoaders';\nexport type { RuntimeMemoryStateAdapterOptions } from './runtimeStateAdapter';\nexport { createRuntimeMemoryStateAdapter } from './runtimeStateAdapter';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,gCAAgC,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAQvF,OAAO,EACL,mCAAmC,EACnC,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EACL,wBAAwB,EACxB,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAY7B,OAAO,EACL,gCAAgC,EAChC,sBAAsB,EACtB,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,EAC9B,kCAAkC,GACnC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,wCAAwC,EAAE,MAAM,+BAA+B,CAAC;AAMzF,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,EAC3B,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,0CAA0C,GAE3C,MAAM,yBAAyB,CAAC;AAWjC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EACL,+BAA+B,EAC/B,8BAA8B,EAC9B,0BAA0B,EAQ1B,6BAA6B,EAG7B,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,mCAAmC,EAAE,MAAM,2BAA2B,CAAC;AAEhF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKhD,OAAO,EACL,8CAA8C,EAC9C,mCAAmC,EACnC,oCAAoC,EACpC,uBAAuB,EACvB,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export {\n ManifestContext,\n ManifestProvider,\n useManifest,\n useManifestContext,\n useOptionalManifestContext,\n} from './ManifestContext';\nexport type { ComponentRegistry } from './registry';\nexport { APP_EXTENSION_COMPONENT_REGISTRY, createComponentRegistry } from './registry';\nexport type {\n RuntimeActionRegistry,\n RuntimeActionResolutionArgs,\n RuntimeActionResolutionScope,\n RuntimeComponentEventDispatchArgs,\n RuntimeEventPropWrapArgs,\n} from './runtimeActionRegistry';\nexport {\n createComponentEventFromHandlerArgs,\n createRuntimeActionRegistry,\n dispatchRuntimeComponentEvent,\n resolveRuntimeActionPayload,\n resolveRuntimeActionValue,\n wrapRuntimeEventProps,\n} from './runtimeActionRegistry';\nexport type {\n RuntimeApiLoaderDefinition,\n RuntimeApiLoaderDiagnostic,\n RuntimeApiLoaderExecutionResult,\n RuntimeApiLoaderMaterializationResult,\n RuntimeApiLoaderMode,\n} from './runtimeApiLoaders';\nexport {\n executeRuntimeApiLoaders,\n materializeRuntimeApiLoaderState,\n useRuntimeApiStateLoaders,\n} from './runtimeApiLoaders';\nexport type {\n RuntimeBindingOperationExecutionArgs,\n RuntimeBindingOperationExecutionResult,\n RuntimeBindingOperationExecutor,\n RuntimeBindingOperationKey,\n RuntimeBindingOperationResultCache,\n RuntimeBindingOperationResultWriter,\n RuntimeBindingResolutionArgs,\n RuntimeBindingResolutionContext,\n RuntimeBindingResolutionResult,\n} from './runtimeBindings';\nexport {\n createRuntimeBindingOperationKey,\n resolveBindingInputMap,\n resolveRuntimeBindings,\n resolveRuntimeBindingsAsync,\n resolveRuntimeBindingValue,\n resolveRuntimeBindingValueSync,\n validateRuntimeBindingOperationRef,\n} from './runtimeBindings';\nexport type { RuntimeDataSourceOperationExecutorOptions } from './runtimeDataSourceOperations';\nexport { createRuntimeDataSourceOperationExecutor } from './runtimeDataSourceOperations';\nexport type {\n RuntimeDbPersistError,\n RuntimeDbPersistExecutionResult,\n RuntimeDbPersistResult,\n} from './runtimeDbPersist';\nexport {\n createDbPersistActionHandler,\n createDbPersistAdapterError,\n executeDbPersistAction,\n resolveDbPersistInput,\n} from './runtimeDbPersist';\nexport {\n dispatchRuntimeComponentEventWithReporting,\n type RuntimeEventDiagnosticsReporter,\n} from './runtimeEventExecution';\nexport type {\n RuntimeActionDescriptor,\n RuntimeAdapterDescriptor,\n RuntimeBindingDescriptor,\n RuntimeCapability,\n RuntimeDiagnostic,\n RuntimeManifest,\n RuntimeManifestConfig,\n RuntimeManifestInput,\n} from './runtimeManifest';\nexport {\n createRuntimeManifest,\n defineRuntimeAction,\n defineRuntimeAdapter,\n defineRuntimeBinding,\n listRuntimeCapabilities,\n RUNTIME_CAPABILITIES,\n RUNTIME_MANIFEST_KIND,\n} from './runtimeManifest';\nexport type { RuntimeRendererProps } from './RuntimeRenderer';\nexport { RuntimeRenderer } from './RuntimeRenderer';\nexport {\n composeRuntimeNodePropsResolver,\n composeRuntimeRendererWrapNode,\n mergeRuntimeRendererConfig,\n type RuntimeAction,\n type RuntimeActionExecutor,\n type RuntimeActionHandler,\n type RuntimeActionHandlerArgs,\n type RuntimeActionHandlers,\n type RuntimeNodePropsResolver,\n type RuntimeRendererConfig,\n RuntimeRendererConfigProvider,\n type RuntimeRendererWrapArgs,\n type RuntimeResolveNodePropsArgs,\n useRuntimeRendererConfig,\n} from './RuntimeRendererConfig';\nexport { shouldRenderRuntimeRepeatEmptyState } from './runtimeRepeatEmptyState';\nexport type { RuntimeScreenProps } from './RuntimeScreen';\nexport { RuntimeScreen } from './RuntimeScreen';\nexport type {\n RuntimeScreenOperationLoaderExecutionResult,\n RuntimeScreenOperationLoaderState,\n} from './runtimeScreenLoaders';\nexport {\n createPendingRuntimeScreenOperationLoaderState,\n createRuntimeScreenLoaderRequestKey,\n executeRuntimeScreenOperationLoaders,\n resolveScreenApiLoaders,\n resolveScreenOperationLoaders,\n useRuntimeScreenOperationLoaders,\n} from './runtimeScreenLoaders';\nexport type { RuntimeMemoryStateAdapterOptions } from './runtimeStateAdapter';\nexport { createRuntimeMemoryStateAdapter } from './runtimeStateAdapter';\n"]}
@@ -1,7 +1,4 @@
1
- import { type ComponentRegistry } from './componentRegistry';
2
1
  export { APP_EXTENSION_COMPONENT_REGISTRY } from './appExtensionRegistry';
3
2
  export type { ComponentRegistry } from './componentRegistry';
4
3
  export { createComponentRegistry } from './componentRegistry';
5
- export declare const SURFACE_COMPONENT_REGISTRY: ComponentRegistry;
6
- export declare const ZORA_COMPONENT_REGISTRY: ComponentRegistry;
7
4
  //# sourceMappingURL=registry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,qBAAqB,CAAC;AAEtF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAC1E,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AA2C9D,eAAO,MAAM,0BAA0B,EAAE,iBAAsB,CAAC;AA4ChE,eAAO,MAAM,uBAAuB,EAAE,iBAIrC,CAAC"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAC1E,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC"}
package/dist/registry.js CHANGED
@@ -1,49 +1,3 @@
1
- import * as Zora from '@ankhorage/zora';
2
- import { APP_EXTENSION_COMPONENT_REGISTRY } from './appExtensionRegistry';
3
- import { createComponentRegistry } from './componentRegistry';
4
1
  export { APP_EXTENSION_COMPONENT_REGISTRY } from './appExtensionRegistry';
5
2
  export { createComponentRegistry } from './componentRegistry';
6
- export const SURFACE_COMPONENT_REGISTRY = {};
7
- function createZoraRegistryEntries(zora) {
8
- return {
9
- BarcodeScannerView: zora.BarcodeScannerView,
10
- Box: zora.Box,
11
- Button: zora.Button,
12
- ButtonGroup: zora.ButtonGroup,
13
- CameraPermissionView: zora.CameraPermissionView,
14
- Card: zora.Card,
15
- ChatListItem: zora.ChatListItem,
16
- Container: zora.Container,
17
- Divider: zora.Divider,
18
- DisclosureSection: zora.DisclosureSection,
19
- EmptyState: zora.EmptyState,
20
- FormField: zora.FormField,
21
- Grid: zora.Grid,
22
- Heading: zora.Heading,
23
- Hero: zora.Hero,
24
- Image: zora.Image,
25
- Input: zora.Input,
26
- MessageBubble: zora.MessageBubble,
27
- NavigationItem: zora.NavigationItem,
28
- NavigationList: zora.NavigationList,
29
- Notice: zora.Notice,
30
- OAuthProviderButton: zora.OAuthProviderButton,
31
- OAuthProviderList: zora.OAuthProviderList,
32
- Panel: zora.Panel,
33
- PostCard: zora.PostCard,
34
- ProductCard: zora.ProductCard,
35
- Progress: zora.Progress,
36
- ScanOverlay: zora.ScanOverlay,
37
- Screen: zora.Screen,
38
- ScreenSection: zora.ScreenSection,
39
- SectionHeader: zora.SectionHeader,
40
- SettingsRow: zora.SettingsRow,
41
- Stack: zora.Stack,
42
- Text: zora.Text,
43
- Textarea: zora.Textarea,
44
- ZoraDrawerContent: zora.ZoraDrawerContent,
45
- ZoraTabBar: zora.ZoraTabBar,
46
- };
47
- }
48
- export const ZORA_COMPONENT_REGISTRY = createComponentRegistry(SURFACE_COMPONENT_REGISTRY, createZoraRegistryEntries(Zora), APP_EXTENSION_COMPONENT_REGISTRY);
49
3
  //# sourceMappingURL=registry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AAExC,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAA0B,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAEtF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAE1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AA2C9D,MAAM,CAAC,MAAM,0BAA0B,GAAsB,EAAE,CAAC;AAEhE,SAAS,yBAAyB,CAAC,IAAwB;IACzD,OAAO;QACL,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;QAC3C,GAAG,EAAE,IAAI,CAAC,GAAG;QACb,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;QAC/C,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;QACzC,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,aAAa,EAAE,IAAI,CAAC,aAAa;QACjC,cAAc,EAAE,IAAI,CAAC,cAAc;QACnC,cAAc,EAAE,IAAI,CAAC,cAAc;QACnC,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;QAC7C,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;QACzC,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,aAAa,EAAE,IAAI,CAAC,aAAa;QACjC,aAAa,EAAE,IAAI,CAAC,aAAa;QACjC,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;QACzC,UAAU,EAAE,IAAI,CAAC,UAAU;KAC5B,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAsB,uBAAuB,CAC/E,0BAA0B,EAC1B,yBAAyB,CAAC,IAAI,CAAC,EAC/B,gCAAgC,CACjC,CAAC","sourcesContent":["import * as Zora from '@ankhorage/zora';\n\nimport { APP_EXTENSION_COMPONENT_REGISTRY } from './appExtensionRegistry';\nimport { type ComponentRegistry, createComponentRegistry } from './componentRegistry';\n\nexport { APP_EXTENSION_COMPONENT_REGISTRY } from './appExtensionRegistry';\nexport type { ComponentRegistry } from './componentRegistry';\nexport { createComponentRegistry } from './componentRegistry';\n\ntype ZoraRegistryModule = Pick<\n typeof Zora,\n | 'BarcodeScannerView'\n | 'Box'\n | 'Button'\n | 'ButtonGroup'\n | 'CameraPermissionView'\n | 'Card'\n | 'ChatListItem'\n | 'Container'\n | 'Divider'\n | 'DisclosureSection'\n | 'EmptyState'\n | 'FormField'\n | 'Grid'\n | 'Heading'\n | 'Hero'\n | 'Image'\n | 'Input'\n | 'MessageBubble'\n | 'NavigationItem'\n | 'NavigationList'\n | 'Notice'\n | 'OAuthProviderButton'\n | 'OAuthProviderList'\n | 'Panel'\n | 'PostCard'\n | 'ProductCard'\n | 'Progress'\n | 'ScanOverlay'\n | 'Screen'\n | 'ScreenSection'\n | 'SectionHeader'\n | 'SettingsRow'\n | 'Stack'\n | 'Text'\n | 'Textarea'\n | 'ZoraDrawerContent'\n | 'ZoraTabBar'\n>;\n\nexport const SURFACE_COMPONENT_REGISTRY: ComponentRegistry = {};\n\nfunction createZoraRegistryEntries(zora: ZoraRegistryModule): ComponentRegistry {\n return {\n BarcodeScannerView: zora.BarcodeScannerView,\n Box: zora.Box,\n Button: zora.Button,\n ButtonGroup: zora.ButtonGroup,\n CameraPermissionView: zora.CameraPermissionView,\n Card: zora.Card,\n ChatListItem: zora.ChatListItem,\n Container: zora.Container,\n Divider: zora.Divider,\n DisclosureSection: zora.DisclosureSection,\n EmptyState: zora.EmptyState,\n FormField: zora.FormField,\n Grid: zora.Grid,\n Heading: zora.Heading,\n Hero: zora.Hero,\n Image: zora.Image,\n Input: zora.Input,\n MessageBubble: zora.MessageBubble,\n NavigationItem: zora.NavigationItem,\n NavigationList: zora.NavigationList,\n Notice: zora.Notice,\n OAuthProviderButton: zora.OAuthProviderButton,\n OAuthProviderList: zora.OAuthProviderList,\n Panel: zora.Panel,\n PostCard: zora.PostCard,\n ProductCard: zora.ProductCard,\n Progress: zora.Progress,\n ScanOverlay: zora.ScanOverlay,\n Screen: zora.Screen,\n ScreenSection: zora.ScreenSection,\n SectionHeader: zora.SectionHeader,\n SettingsRow: zora.SettingsRow,\n Stack: zora.Stack,\n Text: zora.Text,\n Textarea: zora.Textarea,\n ZoraDrawerContent: zora.ZoraDrawerContent,\n ZoraTabBar: zora.ZoraTabBar,\n };\n}\n\nexport const ZORA_COMPONENT_REGISTRY: ComponentRegistry = createComponentRegistry(\n SURFACE_COMPONENT_REGISTRY,\n createZoraRegistryEntries(Zora),\n APP_EXTENSION_COMPONENT_REGISTRY,\n);\n"]}
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAE1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC","sourcesContent":["export { APP_EXTENSION_COMPONENT_REGISTRY } from './appExtensionRegistry';\nexport type { ComponentRegistry } from './componentRegistry';\nexport { createComponentRegistry } from './componentRegistry';\n"]}
@@ -3,7 +3,6 @@ import type { ComponentRegistry } from './registry';
3
3
  export declare function resolveRuntimeRegistry(args: {
4
4
  propRegistry?: ComponentRegistry;
5
5
  configRegistry?: ComponentRegistry;
6
- fallbackRegistry: ComponentRegistry;
7
6
  }): ComponentRegistry;
8
7
  export declare function resolveRenderedChildren(args: {
9
8
  propChildren: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"rendering.d.ts","sourceRoot":"","sources":["../src/rendering.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE;IAC3C,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,gBAAgB,EAAE,iBAAiB,CAAC;CACrC,GAAG,iBAAiB,CAGpB;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAC5C,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,gBAAgB,EAAE,KAAK,CAAC,SAAS,EAAE,GAAG,SAAS,CAAC;CACjD,GAAG,KAAK,CAAC,SAAS,CAQlB;AAED,wBAAgB,6BAA6B,CAC3C,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,iBAAiB,GAC1B;IACD,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB,CAcA"}
1
+ {"version":3,"file":"rendering.d.ts","sourceRoot":"","sources":["../src/rendering.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAIpD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE;IAC3C,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,cAAc,CAAC,EAAE,iBAAiB,CAAC;CACpC,GAAG,iBAAiB,CAGpB;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAC5C,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,gBAAgB,EAAE,KAAK,CAAC,SAAS,EAAE,GAAG,SAAS,CAAC;CACjD,GAAG,KAAK,CAAC,SAAS,CAQlB;AAED,wBAAgB,6BAA6B,CAC3C,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,iBAAiB,GAC1B;IACD,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB,CAcA"}
package/dist/rendering.js CHANGED
@@ -1,6 +1,7 @@
1
+ const EMPTY_COMPONENT_REGISTRY = {};
1
2
  export function resolveRuntimeRegistry(args) {
2
- const { propRegistry, configRegistry, fallbackRegistry } = args;
3
- return propRegistry ?? configRegistry ?? fallbackRegistry;
3
+ const { propRegistry, configRegistry } = args;
4
+ return propRegistry ?? configRegistry ?? EMPTY_COMPONENT_REGISTRY;
4
5
  }
5
6
  export function resolveRenderedChildren(args) {
6
7
  const { propChildren, renderedChildren } = args;
@@ -18,7 +19,7 @@ export function getUnknownComponentDiagnostic(componentType, registry) {
18
19
  detail: registeredTypes.length === 0
19
20
  ? 'No component registry is active for this render tree.'
20
21
  : `Registered types: ${preview}${remainingCount > 0 ? `, +${remainingCount} more` : ''}.`,
21
- suggestion: 'Check the active runtime component registry. ZORA manifests require a ZORA-aware registry.',
22
+ suggestion: 'Check the active runtime component registry. Runtime renderers require the host app to inject concrete components.',
22
23
  };
23
24
  }
24
25
  //# sourceMappingURL=rendering.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rendering.js","sourceRoot":"","sources":["../src/rendering.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,sBAAsB,CAAC,IAItC;IACC,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC;IAChE,OAAO,YAAY,IAAI,cAAc,IAAI,gBAAgB,CAAC;AAC5D,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,IAGvC;IACC,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC;IAEhD,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpD,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,aAAqB,EACrB,QAA2B;IAM3B,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC;IACrD,MAAM,OAAO,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvD,MAAM,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAE/D,OAAO;QACL,KAAK,EAAE,2BAA2B,aAAa,EAAE;QACjD,MAAM,EACJ,eAAe,CAAC,MAAM,KAAK,CAAC;YAC1B,CAAC,CAAC,uDAAuD;YACzD,CAAC,CAAC,qBAAqB,OAAO,GAAG,cAAc,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,cAAc,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG;QAC7F,UAAU,EACR,4FAA4F;KAC/F,CAAC;AACJ,CAAC","sourcesContent":["import type React from 'react';\n\nimport type { ComponentRegistry } from './registry';\n\nexport function resolveRuntimeRegistry(args: {\n propRegistry?: ComponentRegistry;\n configRegistry?: ComponentRegistry;\n fallbackRegistry: ComponentRegistry;\n}): ComponentRegistry {\n const { propRegistry, configRegistry, fallbackRegistry } = args;\n return propRegistry ?? configRegistry ?? fallbackRegistry;\n}\n\nexport function resolveRenderedChildren(args: {\n propChildren: React.ReactNode;\n renderedChildren: React.ReactNode[] | undefined;\n}): React.ReactNode {\n const { propChildren, renderedChildren } = args;\n\n if (renderedChildren && renderedChildren.length > 0) {\n return renderedChildren;\n }\n\n return propChildren;\n}\n\nexport function getUnknownComponentDiagnostic(\n componentType: string,\n registry: ComponentRegistry,\n): {\n title: string;\n detail: string;\n suggestion: string;\n} {\n const registeredTypes = Object.keys(registry).sort();\n const preview = registeredTypes.slice(0, 8).join(', ');\n const remainingCount = Math.max(registeredTypes.length - 8, 0);\n\n return {\n title: `Unknown component type: ${componentType}`,\n detail:\n registeredTypes.length === 0\n ? 'No component registry is active for this render tree.'\n : `Registered types: ${preview}${remainingCount > 0 ? `, +${remainingCount} more` : ''}.`,\n suggestion:\n 'Check the active runtime component registry. ZORA manifests require a ZORA-aware registry.',\n };\n}\n"]}
1
+ {"version":3,"file":"rendering.js","sourceRoot":"","sources":["../src/rendering.ts"],"names":[],"mappings":"AAIA,MAAM,wBAAwB,GAAsB,EAAE,CAAC;AAEvD,MAAM,UAAU,sBAAsB,CAAC,IAGtC;IACC,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC;IAC9C,OAAO,YAAY,IAAI,cAAc,IAAI,wBAAwB,CAAC;AACpE,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,IAGvC;IACC,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC;IAEhD,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpD,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,aAAqB,EACrB,QAA2B;IAM3B,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC;IACrD,MAAM,OAAO,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvD,MAAM,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAE/D,OAAO;QACL,KAAK,EAAE,2BAA2B,aAAa,EAAE;QACjD,MAAM,EACJ,eAAe,CAAC,MAAM,KAAK,CAAC;YAC1B,CAAC,CAAC,uDAAuD;YACzD,CAAC,CAAC,qBAAqB,OAAO,GAAG,cAAc,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,cAAc,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG;QAC7F,UAAU,EACR,oHAAoH;KACvH,CAAC;AACJ,CAAC","sourcesContent":["import type React from 'react';\n\nimport type { ComponentRegistry } from './registry';\n\nconst EMPTY_COMPONENT_REGISTRY: ComponentRegistry = {};\n\nexport function resolveRuntimeRegistry(args: {\n propRegistry?: ComponentRegistry;\n configRegistry?: ComponentRegistry;\n}): ComponentRegistry {\n const { propRegistry, configRegistry } = args;\n return propRegistry ?? configRegistry ?? EMPTY_COMPONENT_REGISTRY;\n}\n\nexport function resolveRenderedChildren(args: {\n propChildren: React.ReactNode;\n renderedChildren: React.ReactNode[] | undefined;\n}): React.ReactNode {\n const { propChildren, renderedChildren } = args;\n\n if (renderedChildren && renderedChildren.length > 0) {\n return renderedChildren;\n }\n\n return propChildren;\n}\n\nexport function getUnknownComponentDiagnostic(\n componentType: string,\n registry: ComponentRegistry,\n): {\n title: string;\n detail: string;\n suggestion: string;\n} {\n const registeredTypes = Object.keys(registry).sort();\n const preview = registeredTypes.slice(0, 8).join(', ');\n const remainingCount = Math.max(registeredTypes.length - 8, 0);\n\n return {\n title: `Unknown component type: ${componentType}`,\n detail:\n registeredTypes.length === 0\n ? 'No component registry is active for this render tree.'\n : `Registered types: ${preview}${remainingCount > 0 ? `, +${remainingCount} more` : ''}.`,\n suggestion:\n 'Check the active runtime component registry. Runtime renderers require the host app to inject concrete components.',\n };\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ankhorage/runtime",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Platform-neutral runtime renderer, contracts, and helpers for Ankhorage generated apps.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -59,9 +59,8 @@
59
59
  "version-packages": "changeset version"
60
60
  },
61
61
  "dependencies": {
62
- "@ankhorage/contracts": "^1.19.2",
63
- "@ankhorage/data-sources": "^0.5.1",
64
- "@ankhorage/zora": "^2.8.1"
62
+ "@ankhorage/contracts": "^2.1.0",
63
+ "@ankhorage/data-sources": "^0.5.1"
65
64
  },
66
65
  "peerDependencies": {
67
66
  "react": "19.1.0",
@@ -71,14 +70,9 @@
71
70
  "@ankhorage/devtools": "^1.0.6",
72
71
  "@ankhorage/paradox": "^0.1.10",
73
72
  "@changesets/cli": "^2.31.0",
74
- "@expo/vector-icons": "^15.0.3",
75
- "@react-native-picker/picker": "2.11.1",
76
73
  "@types/bun": "^1.3.13",
77
74
  "@types/node": "^25.6.0",
78
75
  "@types/react": "^19.2.14",
79
- "expo": "~54.0.35",
80
- "expo-font": "~14.0.12",
81
- "expo-linear-gradient": "^56.0.4",
82
76
  "react": "19.1.0",
83
77
  "react-native": "0.81.5",
84
78
  "typescript": "^5.9.3"
@@ -1,7 +1,7 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="90" height="20" role="img" aria-label="npm: v0.2.0">
2
- <title>npm: v0.2.0</title>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="90" height="20" role="img" aria-label="npm: v0.2.3">
2
+ <title>npm: v0.2.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">v0.2.0</text>
6
+ <text x="64" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">v0.2.3</text>
7
7
  </svg>
@@ -26,7 +26,7 @@ Export paths: `src/index.ts`
26
26
 
27
27
  ## RuntimeRenderer
28
28
 
29
- Source: `src/RuntimeRenderer.tsx:68:1`
29
+ Source: `src/RuntimeRenderer.tsx:67:1`
30
30
 
31
31
  Export paths: `src/index.ts`
32
32
 
@@ -50,7 +50,7 @@ Export paths: `src/index.ts`
50
50
 
51
51
  ## RuntimeRendererConfigProvider
52
52
 
53
- Source: `src/RuntimeRendererConfig.tsx:149:1`
53
+ Source: `src/RuntimeRendererConfig.tsx:152:1`
54
54
 
55
55
  Export paths: `src/index.ts`
56
56
 
@@ -14,11 +14,9 @@ graph TD
14
14
  package__ankhorage_runtime -.-> module_src_ManifestContext_tsx
15
15
  module_src_registry_test_ts["src/registry.test.ts"]
16
16
  package__ankhorage_runtime -.-> module_src_registry_test_ts
17
- module_src_registry_test_ts --> module_src_componentRegistry_ts
17
+ module_src_registry_test_ts --> module_src_registry_tsx
18
18
  module_src_registry_tsx["src/registry.tsx"]
19
19
  package__ankhorage_runtime -.-> module_src_registry_tsx
20
- module_src_registry_tsx --> module_src_appExtensionRegistry_ts
21
- module_src_registry_tsx --> module_src_componentRegistry_ts
22
20
  module_src_rendering_test_ts["src/rendering.test.ts"]
23
21
  package__ankhorage_runtime -.-> module_src_rendering_test_ts
24
22
  module_src_rendering_test_ts --> module_src_registry_tsx
@@ -53,7 +53,6 @@ graph LR
53
53
  module_src_runtimeActionRegistry_ts --> export_createComponentEventFromHandlerArgs
54
54
  export_createComponentRegistry["createComponentRegistry"]
55
55
  module_src_componentRegistry_ts --> export_createComponentRegistry
56
- export_createComponentRegistry -.-> export_ComponentRegistry
57
56
  export_createDbPersistActionHandler["createDbPersistActionHandler"]
58
57
  module_src_runtimeDbPersist_ts --> export_createDbPersistActionHandler
59
58
  export_createDbPersistActionHandler -.-> export_RuntimeActionHandler
@@ -271,7 +270,6 @@ graph LR
271
270
  export_RuntimeRenderer -.-> export_RuntimeRendererProps
272
271
  export_RuntimeRendererConfig["RuntimeRendererConfig"]
273
272
  module_src_RuntimeRendererConfig_tsx --> export_RuntimeRendererConfig
274
- export_RuntimeRendererConfig -.-> export_ComponentRegistry
275
273
  export_RuntimeRendererConfig -.-> export_RuntimeActionHandler
276
274
  export_RuntimeRendererConfig -.-> export_RuntimeActionHandlers
277
275
  export_RuntimeRendererConfig -.-> export_RuntimeBindingOperationExecutor
@@ -283,7 +281,6 @@ graph LR
283
281
  export_RuntimeRendererConfigProvider -.-> export_RuntimeRendererConfig
284
282
  export_RuntimeRendererProps["RuntimeRendererProps"]
285
283
  module_src_RuntimeRenderer_tsx --> export_RuntimeRendererProps
286
- export_RuntimeRendererProps -.-> export_ComponentRegistry
287
284
  export_RuntimeRendererProps -.-> export_RuntimeActionHandler
288
285
  export_RuntimeRendererProps -.-> export_RuntimeBindingOperationExecutor
289
286
  export_RuntimeRendererProps -.-> export_RuntimeRendererConfig
@@ -301,11 +298,8 @@ graph LR
301
298
  module_src_runtimeScreenLoaders_ts --> export_RuntimeScreenOperationLoaderState
302
299
  export_RuntimeScreenProps["RuntimeScreenProps"]
303
300
  module_src_RuntimeScreen_tsx --> export_RuntimeScreenProps
304
- export_RuntimeScreenProps -.-> export_ComponentRegistry
305
301
  export_shouldRenderRuntimeRepeatEmptyState["shouldRenderRuntimeRepeatEmptyState"]
306
302
  module_src_runtimeRepeatEmptyState_ts --> export_shouldRenderRuntimeRepeatEmptyState
307
- export_SURFACE_COMPONENT_REGISTRY["SURFACE_COMPONENT_REGISTRY"]
308
- module_src_registry_tsx --> export_SURFACE_COMPONENT_REGISTRY
309
303
  export_useManifest["useManifest"]
310
304
  module_src_ManifestContext_tsx --> export_useManifest
311
305
  export_useManifestContext["useManifestContext"]
@@ -330,5 +324,3 @@ graph LR
330
324
  export_wrapRuntimeEventProps["wrapRuntimeEventProps"]
331
325
  module_src_runtimeActionRegistry_ts --> export_wrapRuntimeEventProps
332
326
  export_wrapRuntimeEventProps -.-> export_RuntimeEventPropWrapArgs
333
- export_ZORA_COMPONENT_REGISTRY["ZORA_COMPONENT_REGISTRY"]
334
- module_src_registry_tsx --> export_ZORA_COMPONENT_REGISTRY
@@ -40,9 +40,7 @@ graph LR
40
40
  module_src_runtimeStateAdapterConfig_test_ts["src/runtimeStateAdapterConfig.test.ts"]
41
41
  module_tests_runtime_test_ts["tests/runtime.test.ts"]
42
42
  module_src_appExtensionRegistry_ts --> module_src_componentRegistry_ts
43
- module_src_registry_test_ts --> module_src_componentRegistry_ts
44
- module_src_registry_tsx --> module_src_appExtensionRegistry_ts
45
- module_src_registry_tsx --> module_src_componentRegistry_ts
43
+ module_src_registry_test_ts --> module_src_registry_tsx
46
44
  module_src_rendering_test_ts --> module_src_registry_tsx
47
45
  module_src_rendering_test_ts --> module_src_rendering_ts
48
46
  module_src_rendering_ts --> module_src_registry_tsx