| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- // Contexts
- export {
- StateProvider,
- useStateStore,
- useStateValue,
- useStateBinding,
- type StateContextValue,
- type StateProviderProps,
- } from "./contexts/state";
- 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,
- useOptionalValidation,
- useFieldValidation,
- type ValidationContextValue,
- type ValidationProviderProps,
- type FieldValidationState,
- } from "./contexts/validation";
- export {
- RepeatScopeProvider,
- useRepeatScope,
- type RepeatScopeValue,
- } from "./contexts/repeat-scope";
- export { FocusProvider, useFocus, useFocusDisable } from "./contexts/focus";
- // Schema (Ink's spec format)
- export { schema, type InkSchema, type InkSpec } from "./schema";
- // Core types (re-exported for convenience)
- export type { Spec, StateStore } from "@json-render/core";
- export { createStateStore } from "@json-render/core";
- // Catalog-aware types for Ink
- export type {
- SetState,
- StateModel,
- 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,
- type ComponentRenderProps,
- type ComponentRenderer,
- type ComponentRegistry,
- type RendererProps,
- type JSONUIProviderProps,
- } from "./renderer";
- // Standard components
- export { standardComponents } from "./components/standard";
- // Hooks
- export {
- useUIStream,
- useBoundProp,
- flatToTree,
- type UseUIStreamOptions,
- type UseUIStreamReturn,
- } from "./hooks";
- // Catalog definitions
- export {
- standardComponentDefinitions,
- standardActionDefinitions,
- type ComponentDefinition,
- type ActionDefinition,
- } from "./catalog";
|