| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- // Contexts
- export {
- DataProvider,
- useData,
- useDataValue,
- useDataBinding,
- type DataContextValue,
- type DataProviderProps,
- } from "./contexts/data";
- export {
- VisibilityProvider,
- useVisibility,
- useIsVisible,
- type VisibilityContextValue,
- type VisibilityProviderProps,
- } from "./contexts/visibility";
- export {
- ActionProvider,
- useActions,
- useAction,
- ConfirmDialog,
- type ActionContextValue,
- type ActionProviderProps,
- type PendingConfirmation,
- type ConfirmDialogProps,
- } from "./contexts/actions";
- export {
- ValidationProvider,
- useValidation,
- useFieldValidation,
- type ValidationContextValue,
- type ValidationProviderProps,
- type FieldValidationState,
- } from "./contexts/validation";
- // Schema (React's spec format)
- export {
- schema,
- type ReactSchema,
- type ReactSpec,
- // Backward compatibility
- elementTreeSchema,
- type ElementTreeSchema,
- type ElementTreeSpec,
- } from "./schema";
- // Core types (re-exported for convenience)
- export type { Spec } from "@json-render/core";
- // Catalog-aware types for React
- export type {
- SetData,
- DataModel,
- ActionTrigger,
- ComponentContext,
- ComponentFn,
- Components,
- ActionFn,
- Actions,
- } from "./catalog-types";
- // Renderer
- export {
- // Registry
- defineRegistry,
- type DefineRegistryResult,
- // createRenderer (higher-level, includes providers)
- createRenderer,
- type CreateRendererProps,
- type ComponentMap,
- // Low-level
- Renderer,
- JSONUIProvider,
- createRendererFromCatalog,
- type ComponentRenderProps,
- type ComponentRenderer,
- type ComponentRegistry,
- type RendererProps,
- type JSONUIProviderProps,
- } from "./renderer";
- // Hooks
- export {
- useUIStream,
- flatToTree,
- type UseUIStreamOptions,
- type UseUIStreamReturn,
- } from "./hooks";
|