@json-render/react-native 0.4.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.
@@ -0,0 +1,591 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode, ComponentType } from 'react';
3
+ import { StateModel as StateModel$1, AuthState, VisibilityCondition, VisibilityContext, ActionHandler, ResolvedAction, ActionBinding, ActionConfirm, ValidationFunction, ValidationResult, ValidationConfig, Catalog, InferCatalogComponents, InferComponentProps, InferCatalogActions, InferActionParams, UIElement, SchemaDefinition, Spec, LegacyCatalog, ComponentDefinition, FlatElement } from '@json-render/core';
4
+ export { Spec } from '@json-render/core';
5
+ export { ElementTreeSchema, ElementTreeSpec, ReactNativeSchema, ReactNativeSpec, elementTreeSchema, schema } from './schema.js';
6
+ export { ActionDefinition, ComponentDefinition, standardActionDefinitions, standardComponentDefinitions } from './catalog.js';
7
+ import 'zod';
8
+
9
+ /**
10
+ * State context value
11
+ */
12
+ interface StateContextValue {
13
+ /** The current state model */
14
+ state: StateModel$1;
15
+ /** Auth state for visibility evaluation */
16
+ authState?: AuthState;
17
+ /** Get a value by path */
18
+ get: (path: string) => unknown;
19
+ /** Set a value by path */
20
+ set: (path: string, value: unknown) => void;
21
+ /** Update multiple values at once */
22
+ update: (updates: Record<string, unknown>) => void;
23
+ }
24
+ /**
25
+ * Props for StateProvider
26
+ */
27
+ interface StateProviderProps {
28
+ /** Initial state model */
29
+ initialState?: StateModel$1;
30
+ /** Auth state */
31
+ authState?: AuthState;
32
+ /** Callback when state changes */
33
+ onStateChange?: (path: string, value: unknown) => void;
34
+ children: ReactNode;
35
+ }
36
+ /**
37
+ * Provider for state model context
38
+ */
39
+ declare function StateProvider({ initialState, authState, onStateChange, children, }: StateProviderProps): react_jsx_runtime.JSX.Element;
40
+ /**
41
+ * Hook to access the state context
42
+ */
43
+ declare function useStateStore(): StateContextValue;
44
+ /**
45
+ * Hook to get a value from the state model
46
+ */
47
+ declare function useStateValue<T>(path: string): T | undefined;
48
+ /**
49
+ * Hook to get and set a value from the state model (like useState)
50
+ */
51
+ declare function useStateBinding<T>(path: string): [T | undefined, (value: T) => void];
52
+
53
+ /**
54
+ * Visibility context value
55
+ */
56
+ interface VisibilityContextValue {
57
+ /** Evaluate a visibility condition */
58
+ isVisible: (condition: VisibilityCondition | undefined) => boolean;
59
+ /** The underlying visibility context */
60
+ ctx: VisibilityContext;
61
+ }
62
+ /**
63
+ * Props for VisibilityProvider
64
+ */
65
+ interface VisibilityProviderProps {
66
+ children: ReactNode;
67
+ }
68
+ /**
69
+ * Provider for visibility evaluation
70
+ */
71
+ declare function VisibilityProvider({ children }: VisibilityProviderProps): react_jsx_runtime.JSX.Element;
72
+ /**
73
+ * Hook to access visibility evaluation
74
+ */
75
+ declare function useVisibility(): VisibilityContextValue;
76
+ /**
77
+ * Hook to check if a condition is visible
78
+ */
79
+ declare function useIsVisible(condition: VisibilityCondition | undefined): boolean;
80
+
81
+ /**
82
+ * Pending confirmation state
83
+ */
84
+ interface PendingConfirmation {
85
+ /** The resolved action */
86
+ action: ResolvedAction;
87
+ /** The action handler */
88
+ handler: ActionHandler;
89
+ /** Resolve callback */
90
+ resolve: () => void;
91
+ /** Reject callback */
92
+ reject: () => void;
93
+ }
94
+ /**
95
+ * Action context value
96
+ */
97
+ interface ActionContextValue {
98
+ /** Registered action handlers */
99
+ handlers: Record<string, ActionHandler>;
100
+ /** Currently loading action names */
101
+ loadingActions: Set<string>;
102
+ /** Pending confirmation dialog */
103
+ pendingConfirmation: PendingConfirmation | null;
104
+ /** Execute an action binding */
105
+ execute: (binding: ActionBinding) => Promise<void>;
106
+ /** Confirm the pending action */
107
+ confirm: () => void;
108
+ /** Cancel the pending action */
109
+ cancel: () => void;
110
+ /** Register an action handler */
111
+ registerHandler: (name: string, handler: ActionHandler) => void;
112
+ }
113
+ /**
114
+ * Props for ActionProvider
115
+ */
116
+ interface ActionProviderProps {
117
+ /** Initial action handlers */
118
+ handlers?: Record<string, ActionHandler>;
119
+ /** Navigation function */
120
+ navigate?: (path: string) => void;
121
+ children: ReactNode;
122
+ }
123
+ /**
124
+ * Provider for action execution
125
+ */
126
+ declare function ActionProvider({ handlers: initialHandlers, navigate, children, }: ActionProviderProps): react_jsx_runtime.JSX.Element;
127
+ /**
128
+ * Hook to access action context
129
+ */
130
+ declare function useActions(): ActionContextValue;
131
+ /**
132
+ * Hook to execute an action binding
133
+ */
134
+ declare function useAction(binding: ActionBinding): {
135
+ execute: () => Promise<void>;
136
+ isLoading: boolean;
137
+ };
138
+ /**
139
+ * Props for ConfirmDialog component
140
+ */
141
+ interface ConfirmDialogProps {
142
+ /** The confirmation config */
143
+ confirm: ActionConfirm;
144
+ /** Called when confirmed */
145
+ onConfirm: () => void;
146
+ /** Called when cancelled */
147
+ onCancel: () => void;
148
+ }
149
+ /**
150
+ * Default confirmation dialog component for React Native
151
+ */
152
+ declare function ConfirmDialog({ confirm, onConfirm, onCancel, }: ConfirmDialogProps): react_jsx_runtime.JSX.Element;
153
+
154
+ /**
155
+ * Field validation state
156
+ */
157
+ interface FieldValidationState {
158
+ /** Whether the field has been touched */
159
+ touched: boolean;
160
+ /** Whether the field has been validated */
161
+ validated: boolean;
162
+ /** Validation result */
163
+ result: ValidationResult | null;
164
+ }
165
+ /**
166
+ * Validation context value
167
+ */
168
+ interface ValidationContextValue {
169
+ /** Custom validation functions from catalog */
170
+ customFunctions: Record<string, ValidationFunction>;
171
+ /** Validation state by field path */
172
+ fieldStates: Record<string, FieldValidationState>;
173
+ /** Validate a field */
174
+ validate: (path: string, config: ValidationConfig) => ValidationResult;
175
+ /** Mark field as touched */
176
+ touch: (path: string) => void;
177
+ /** Clear validation for a field */
178
+ clear: (path: string) => void;
179
+ /** Validate all fields */
180
+ validateAll: () => boolean;
181
+ /** Register field config */
182
+ registerField: (path: string, config: ValidationConfig) => void;
183
+ }
184
+ /**
185
+ * Props for ValidationProvider
186
+ */
187
+ interface ValidationProviderProps {
188
+ /** Custom validation functions from catalog */
189
+ customFunctions?: Record<string, ValidationFunction>;
190
+ children: ReactNode;
191
+ }
192
+ /**
193
+ * Provider for validation
194
+ */
195
+ declare function ValidationProvider({ customFunctions, children, }: ValidationProviderProps): react_jsx_runtime.JSX.Element;
196
+ /**
197
+ * Hook to access validation context
198
+ */
199
+ declare function useValidation(): ValidationContextValue;
200
+ /**
201
+ * Hook to get validation state for a field
202
+ */
203
+ declare function useFieldValidation(path: string, config?: ValidationConfig): {
204
+ state: FieldValidationState;
205
+ validate: () => ValidationResult;
206
+ touch: () => void;
207
+ clear: () => void;
208
+ errors: string[];
209
+ isValid: boolean;
210
+ };
211
+
212
+ /**
213
+ * Repeat scope value provided to child elements inside a Repeat.
214
+ */
215
+ interface RepeatScopeValue {
216
+ /** Absolute state path to the current array item (e.g. "/todos/0") */
217
+ basePath: string;
218
+ /** Index of the current item in the array */
219
+ index: number;
220
+ }
221
+ /**
222
+ * Provides repeat scope to child elements so $item and $index tokens resolve correctly.
223
+ */
224
+ declare function RepeatScopeProvider({ basePath, index, children, }: RepeatScopeValue & {
225
+ children: ReactNode;
226
+ }): react_jsx_runtime.JSX.Element;
227
+ /**
228
+ * Read the current repeat scope (or null if not inside a Repeat).
229
+ */
230
+ declare function useRepeatScope(): RepeatScopeValue | null;
231
+ /**
232
+ * Recursively rewrite `$item` and `$index` tokens in a value.
233
+ *
234
+ * - `"$item/foo"` → `"{basePath}/foo"`
235
+ * - `"$item"` → `"{basePath}"`
236
+ * - `"$index"` → `index` (number)
237
+ */
238
+ declare function rewriteRepeatTokens(value: unknown, basePath: string, index: number): unknown;
239
+
240
+ /**
241
+ * State setter function for updating application state
242
+ */
243
+ type SetState = (updater: (prev: Record<string, unknown>) => Record<string, unknown>) => void;
244
+ /**
245
+ * State model type (generic record)
246
+ */
247
+ type StateModel = Record<string, unknown>;
248
+ /**
249
+ * Context passed to component render functions
250
+ * @example
251
+ * const Button: ComponentFn<typeof catalog, 'Button'> = (ctx) => {
252
+ * return <Pressable onPress={() => ctx.emit?.("press")}><Text>{ctx.props.label}</Text></Pressable>
253
+ * }
254
+ */
255
+ interface ComponentContext<C extends Catalog, K extends keyof InferCatalogComponents<C>> {
256
+ props: InferComponentProps<C, K>;
257
+ children?: ReactNode;
258
+ /** Emit a named event. The renderer resolves the event to an action binding from the element's `on` field. */
259
+ emit?: (event: string) => void;
260
+ loading?: boolean;
261
+ }
262
+ /**
263
+ * Component render function type for React Native
264
+ * @example
265
+ * const Button: ComponentFn<typeof catalog, 'Button'> = ({ props, emit }) => (
266
+ * <Pressable onPress={() => emit?.("press")}><Text>{props.label}</Text></Pressable>
267
+ * );
268
+ */
269
+ type ComponentFn<C extends Catalog, K extends keyof InferCatalogComponents<C>> = (ctx: ComponentContext<C, K>) => ReactNode;
270
+ /**
271
+ * Registry of all component render functions for a catalog
272
+ * @example
273
+ * const components: Components<typeof myCatalog> = {
274
+ * Button: ({ props }) => <Pressable><Text>{props.label}</Text></Pressable>,
275
+ * Input: ({ props }) => <TextInput placeholder={props.placeholder} />,
276
+ * };
277
+ */
278
+ type Components<C extends Catalog> = {
279
+ [K in keyof InferCatalogComponents<C>]: ComponentFn<C, K>;
280
+ };
281
+ /**
282
+ * Action handler function type
283
+ * @example
284
+ * const viewCustomers: ActionFn<typeof catalog, 'viewCustomers'> = async (params, setState) => {
285
+ * const data = await fetch('/api/customers');
286
+ * setState(prev => ({ ...prev, customers: data }));
287
+ * };
288
+ */
289
+ type ActionFn<C extends Catalog, K extends keyof InferCatalogActions<C>> = (params: InferActionParams<C, K> | undefined, setState: SetState, state: StateModel) => Promise<void>;
290
+ /**
291
+ * Registry of all action handlers for a catalog
292
+ * @example
293
+ * const actions: Actions<typeof myCatalog> = {
294
+ * viewCustomers: async (params, setState) => { ... },
295
+ * createCustomer: async (params, setState) => { ... },
296
+ * };
297
+ */
298
+ type Actions<C extends Catalog> = {
299
+ [K in keyof InferCatalogActions<C>]: ActionFn<C, K>;
300
+ };
301
+
302
+ /**
303
+ * Create standard action handlers for React Native.
304
+ *
305
+ * @param options - Configuration for standard actions
306
+ * @returns Action handler map compatible with ActionProvider
307
+ */
308
+ declare function createStandardActionHandlers(options?: {
309
+ /** Navigation function - called by navigate and goBack actions */
310
+ navigate?: (screen: string, params?: Record<string, unknown>) => void;
311
+ /** Go back function */
312
+ goBack?: () => void;
313
+ /** Called when setData action is triggered */
314
+ onSetData?: (path: string, value: unknown) => void;
315
+ /** Called when refresh action is triggered */
316
+ onRefresh?: (target?: string) => void;
317
+ }): Record<string, (params: Record<string, unknown>) => Promise<void>>;
318
+ /**
319
+ * Standard component registry with all built-in React Native components.
320
+ * Pass to Renderer or merge with custom components.
321
+ */
322
+ declare const standardComponents: ComponentRegistry;
323
+
324
+ /**
325
+ * Props passed to component renderers
326
+ */
327
+ interface ComponentRenderProps<P = Record<string, unknown>> {
328
+ /** The element being rendered */
329
+ element: UIElement<string, P>;
330
+ /** Rendered children */
331
+ children?: ReactNode;
332
+ /** Emit a named event. The renderer resolves the event to action binding(s) from the element's `on` field. */
333
+ emit?: (event: string) => void;
334
+ /** Whether the parent is loading */
335
+ loading?: boolean;
336
+ }
337
+ /**
338
+ * Component renderer type
339
+ */
340
+ type ComponentRenderer<P = Record<string, unknown>> = ComponentType<ComponentRenderProps<P>>;
341
+ /**
342
+ * Registry of component renderers
343
+ */
344
+ type ComponentRegistry = Record<string, ComponentRenderer<any>>;
345
+ /**
346
+ * Props for the Renderer component
347
+ */
348
+ interface RendererProps {
349
+ /** The UI spec to render */
350
+ spec: Spec | null;
351
+ /**
352
+ * Component registry. If omitted, only standard components are used.
353
+ * When provided, custom components are merged with (and override) standard components.
354
+ */
355
+ registry?: ComponentRegistry;
356
+ /** Whether to include standard components (default: true) */
357
+ includeStandard?: boolean;
358
+ /** Whether the spec is currently loading/streaming */
359
+ loading?: boolean;
360
+ /** Fallback component for unknown types */
361
+ fallback?: ComponentRenderer;
362
+ }
363
+ /**
364
+ * Main renderer component.
365
+ *
366
+ * By default, standard React Native components are included.
367
+ * Custom components in `registry` override standard ones with the same name.
368
+ *
369
+ * @example
370
+ * ```tsx
371
+ * // Use standard components only
372
+ * <Renderer spec={spec} />
373
+ *
374
+ * // Add/override components
375
+ * <Renderer spec={spec} registry={{ CustomCard: MyCard }} />
376
+ *
377
+ * // Disable standard components entirely
378
+ * <Renderer spec={spec} registry={myRegistry} includeStandard={false} />
379
+ * ```
380
+ */
381
+ declare function Renderer({ spec, registry: customRegistry, includeStandard, loading, fallback, }: RendererProps): react_jsx_runtime.JSX.Element | null;
382
+
383
+ /**
384
+ * Props for JSONUIProvider
385
+ */
386
+ interface JSONUIProviderProps {
387
+ /**
388
+ * Component registry. If omitted, only standard components are used.
389
+ * Custom components are merged with (and override) standard components.
390
+ */
391
+ registry?: ComponentRegistry;
392
+ /** Initial state model */
393
+ initialState?: Record<string, unknown>;
394
+ /** Auth state */
395
+ authState?: {
396
+ isSignedIn: boolean;
397
+ user?: Record<string, unknown>;
398
+ };
399
+ /** Action handlers */
400
+ actionHandlers?: Record<string, (params: Record<string, unknown>) => Promise<unknown> | unknown>;
401
+ /** Navigation function */
402
+ navigate?: (path: string) => void;
403
+ /** Custom validation functions */
404
+ validationFunctions?: Record<string, (value: unknown, args?: Record<string, unknown>) => boolean>;
405
+ /** Callback when state changes */
406
+ onStateChange?: (path: string, value: unknown) => void;
407
+ children: ReactNode;
408
+ }
409
+ /**
410
+ * Combined provider for all JSONUI contexts
411
+ */
412
+ declare function JSONUIProvider({ registry, initialState, authState, actionHandlers, navigate, validationFunctions, onStateChange, children, }: JSONUIProviderProps): react_jsx_runtime.JSX.Element;
413
+ /**
414
+ * Legacy helper to create a renderer component from a catalog
415
+ * @deprecated Use createRenderer with the new catalog API instead
416
+ */
417
+ declare function createRendererFromCatalog<C extends LegacyCatalog<Record<string, ComponentDefinition>>>(_catalog: C, registry: ComponentRegistry): ComponentType<Omit<RendererProps, "registry">>;
418
+ /**
419
+ * Result returned by defineRegistry
420
+ */
421
+ interface DefineRegistryResult {
422
+ /** Component registry for `<Renderer registry={...} />` */
423
+ registry: ComponentRegistry;
424
+ /**
425
+ * Create ActionProvider-compatible handlers.
426
+ * Accepts getter functions so handlers always read the latest state/setState
427
+ * (e.g. from React refs).
428
+ */
429
+ handlers: (getSetState: () => SetState | undefined, getState: () => StateModel) => Record<string, (params: Record<string, unknown>) => Promise<void>>;
430
+ /**
431
+ * Execute an action by name imperatively
432
+ * (for use outside the React tree, e.g. initial state loading).
433
+ */
434
+ executeAction: (actionName: string, params: Record<string, unknown> | undefined, setState: SetState, state?: StateModel) => Promise<void>;
435
+ }
436
+ /**
437
+ * Create a registry from a catalog with components and/or actions.
438
+ *
439
+ * @example
440
+ * ```tsx
441
+ * // Components only
442
+ * const { registry } = defineRegistry(catalog, {
443
+ * components: {
444
+ * Card: ({ props, children }) => (
445
+ * <View style={styles.card}><Text>{props.title}</Text>{children}</View>
446
+ * ),
447
+ * },
448
+ * });
449
+ *
450
+ * // Actions only
451
+ * const { handlers, executeAction } = defineRegistry(catalog, {
452
+ * actions: {
453
+ * viewCustomers: async (params, setState) => { ... },
454
+ * },
455
+ * });
456
+ *
457
+ * // Both
458
+ * const { registry, handlers, executeAction } = defineRegistry(catalog, {
459
+ * components: { ... },
460
+ * actions: { ... },
461
+ * });
462
+ * ```
463
+ */
464
+ declare function defineRegistry<C extends Catalog>(_catalog: C, options: {
465
+ components?: Components<C>;
466
+ actions?: Actions<C>;
467
+ }): DefineRegistryResult;
468
+ /**
469
+ * Props for renderers created with createRenderer
470
+ */
471
+ interface CreateRendererProps {
472
+ /** The spec to render (AI-generated JSON) */
473
+ spec: Spec | null;
474
+ /** State context for dynamic values */
475
+ state?: Record<string, unknown>;
476
+ /** Action handler */
477
+ onAction?: (actionName: string, params?: Record<string, unknown>) => void;
478
+ /** Callback when state changes (e.g., from form inputs) */
479
+ onStateChange?: (path: string, value: unknown) => void;
480
+ /** Whether the spec is currently loading/streaming */
481
+ loading?: boolean;
482
+ /** Auth state for visibility conditions */
483
+ authState?: {
484
+ isSignedIn: boolean;
485
+ user?: Record<string, unknown>;
486
+ };
487
+ /** Fallback component for unknown types */
488
+ fallback?: ComponentRenderer;
489
+ }
490
+ /**
491
+ * Component map type - maps component names to React Native components
492
+ */
493
+ type ComponentMap<TComponents extends Record<string, {
494
+ props: unknown;
495
+ }>> = {
496
+ [K in keyof TComponents]: ComponentType<ComponentRenderProps<TComponents[K]["props"] extends {
497
+ _output: infer O;
498
+ } ? O : Record<string, unknown>>>;
499
+ };
500
+ /**
501
+ * Create a renderer from a catalog
502
+ *
503
+ * @example
504
+ * ```typescript
505
+ * const DashboardRenderer = createRenderer(dashboardCatalog, {
506
+ * Card: ({ element, children }) => <View style={styles.card}>{children}</View>,
507
+ * Metric: ({ element }) => <Text>{element.props.value}</Text>,
508
+ * });
509
+ *
510
+ * // Usage
511
+ * <DashboardRenderer spec={aiGeneratedSpec} state={state} />
512
+ * ```
513
+ */
514
+ declare function createRenderer<TDef extends SchemaDefinition, TCatalog extends {
515
+ components: Record<string, {
516
+ props: unknown;
517
+ }>;
518
+ }>(catalog: Catalog<TDef, TCatalog>, components: ComponentMap<TCatalog["components"]>): ComponentType<CreateRendererProps>;
519
+
520
+ /**
521
+ * Options for useUIStream
522
+ */
523
+ interface UseUIStreamOptions {
524
+ /** API endpoint */
525
+ api: string;
526
+ /** Callback when complete */
527
+ onComplete?: (spec: Spec) => void;
528
+ /** Callback on error */
529
+ onError?: (error: Error) => void;
530
+ /**
531
+ * Custom fetch implementation with ReadableStream support.
532
+ *
533
+ * React Native's built-in fetch does not support `response.body`
534
+ * (ReadableStream). Pass a streaming-capable fetch here, e.g.
535
+ * `import { fetch } from 'expo/fetch'`.
536
+ *
537
+ * Falls back to the global `fetch` if not provided.
538
+ */
539
+ fetch?: (url: string, init?: any) => Promise<Response>;
540
+ /**
541
+ * Enable validation and auto-repair.
542
+ *
543
+ * When true:
544
+ * - **Mid-stream**: Each JSONL line is validated as it arrives. If a line
545
+ * is malformed JSON (and recovery fails), the stream is aborted
546
+ * immediately and a repair prompt is sent to continue generation.
547
+ * - **Post-stream**: After the stream completes, structural validation
548
+ * runs (missing children, visible-in-props, etc.). Issues that can be
549
+ * auto-fixed are fixed locally; remaining errors trigger a repair prompt.
550
+ *
551
+ * Defaults to false.
552
+ */
553
+ validate?: boolean;
554
+ /**
555
+ * Maximum number of automatic repair retries (covers both mid-stream
556
+ * and post-stream retries combined). Defaults to 5.
557
+ */
558
+ maxRetries?: number;
559
+ }
560
+ /**
561
+ * Return type for useUIStream
562
+ */
563
+ interface UseUIStreamReturn {
564
+ /** Current UI spec */
565
+ spec: Spec | null;
566
+ /** Whether currently streaming */
567
+ isStreaming: boolean;
568
+ /** Error if any */
569
+ error: Error | null;
570
+ /** Raw JSONL lines received from the stream */
571
+ rawLines: string[];
572
+ /** Send a prompt to generate UI */
573
+ send: (prompt: string, context?: Record<string, unknown>) => Promise<void>;
574
+ /** Stop the current generation */
575
+ stop: () => void;
576
+ /** Clear the current spec */
577
+ clear: () => void;
578
+ }
579
+ /**
580
+ * Hook for streaming UI generation
581
+ */
582
+ declare function useUIStream({ api, onComplete, onError, fetch: fetchFn, validate: enableValidation, maxRetries, }: UseUIStreamOptions): UseUIStreamReturn;
583
+ /**
584
+ * Convert a flat element list to a Spec.
585
+ * Input elements use key/parentKey to establish identity and relationships.
586
+ * Output spec uses the map-based format where key is the map entry key
587
+ * and parent-child relationships are expressed through children arrays.
588
+ */
589
+ declare function flatToTree(elements: FlatElement[]): Spec;
590
+
591
+ export { type ActionContextValue, type ActionFn, ActionProvider, type ActionProviderProps, type Actions, type ComponentContext, type ComponentFn, type ComponentMap, type ComponentRegistry, type ComponentRenderProps, type ComponentRenderer, type Components, ConfirmDialog, type ConfirmDialogProps, type CreateRendererProps, type DefineRegistryResult, type FieldValidationState, JSONUIProvider, type JSONUIProviderProps, type PendingConfirmation, Renderer, type RendererProps, RepeatScopeProvider, type RepeatScopeValue, type SetState, type StateContextValue, type StateModel, StateProvider, type StateProviderProps, type UseUIStreamOptions, type UseUIStreamReturn, type ValidationContextValue, ValidationProvider, type ValidationProviderProps, type VisibilityContextValue, VisibilityProvider, type VisibilityProviderProps, createRenderer, createRendererFromCatalog, createStandardActionHandlers, defineRegistry, flatToTree, rewriteRepeatTokens, standardComponents, useAction, useActions, useFieldValidation, useIsVisible, useRepeatScope, useStateBinding, useStateStore, useStateValue, useUIStream, useValidation, useVisibility };