UNPKG

@canard/schema-form

Version:

React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components

12 lines (11 loc) 1.46 kB
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, isSchemaNodeError, isUnhandledError, isValidationError, } from './errors'; export { JSONPointer } from './helpers/jsonPointer'; export { type SchemaNode, 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 { FormTypeInputDefinition, FormTypeInputMap, FormTypeInputProps, FormTypeInputPropsWithNode, FormTypeInputPropsWithSchema, FormTypeTestFn, FormTypeTestObject, FormatError, ValidatorFactory, ValidateFunction, PublicJsonSchemaError as JsonSchemaError, } from './types'; export type { FormGroupProps, FormInputProps, FormRenderProps, FormTypeRendererProps, BooleanSchema, NumberSchema, StringSchema, ArraySchema, ObjectSchema, NullSchema, JsonSchema, InferJsonSchema, } from './types/rolled'; export { useFormSubmit } from './hooks/useFormSubmit'; export { useChildNodeErrors } from './hooks/useChildNodeErrors'; export { ExternalFormContextProvider as FormProvider, type ExternalFormContextProviderProps as FormProviderProps, } from './providers';