@canard/schema-form
Version:
React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components
13 lines (12 loc) • 1.5 kB
TypeScript
export { type SchemaFormPlugin, type ValidatorPlugin, registerPlugin, } from './app/plugin';
export { Form, type FormChildrenProps, type FormErrorProps, type FormHandle, type FormLabelProps, type FormProps, } from './components/Form';
export { isSchemaFormError, isJsonSchemaError, isUnhandledError, isValidationError, } from './errors';
export { JSONPointer } from './helpers/jsonPointer';
export { type SchemaNode, type ArrayNode, type BooleanNode, type NullNode, type NumberNode, type ObjectNode, type StringNode, type VirtualNode, NodeState, ValidationMode, PublicNodeEventType as NodeEventType, PublicSetValueOption as SetValueOption, isArrayNode, isBooleanNode, isBranchNode, isNumberNode, isObjectNode, isSchemaNode, isStringNode, isTerminalNode, isVirtualNode, } from './core';
export { ShowError } from './types';
export type { ChildNodeComponentProps, FormTypeInputDefinition, FormTypeInputMap, FormTypeInputProps, FormTypeInputPropsWithNode, FormTypeInputPropsWithSchema, FormTypeTestFn, FormTypeTestObject, FormatError, ValidatorFactory, ValidateFunction, PublicJsonSchemaError as JsonSchemaError, } from './types';
export type * from './types/rolled';
export { useChildNodeComponentMap } from './hooks/useChildNodeComponentMap';
export { useChildNodeErrors } from './hooks/useChildNodeErrors';
export { useFormSubmit } from './hooks/useFormSubmit';
export { ExternalFormContextProvider as FormProvider, type ExternalFormContextProviderProps as FormProviderProps, } from './providers';