UNPKG

@payfit/unity-components

Version:

26 lines (25 loc) • 1.15 kB
import { aiKitFieldContext as e, aiKitFormContext as t } from "./ai-kit-form-context.js"; import { AIComposerAlert as n } from "../components/ai-composer/form/AIComposerAlert.js"; import { AIComposerForm as r } from "../components/ai-composer/form/AIComposerForm.js"; import { AIComposerSubmitAction as i } from "../components/ai-composer/form/AIComposerSubmitAction.js"; import { AIComposerTextArea as a } from "../components/ai-composer/form/AIComposerTextArea.js"; import { AIStructuredInputAnswersField as o } from "../components/ai-structured-input/form/AIStructuredInputAnswersField.js"; import { AIStructuredInputForm as s } from "../components/ai-structured-input/form/AIStructuredInputForm.js"; import { createFormHook as c } from "@tanstack/react-form"; //#region src/modules/ai-kit/hooks/use-ai-kit-form.tsx var { useAppForm: l, ...u } = c({ fieldComponents: { ComposerTextAreaInput: a, StructuredInputAnswersField: o }, formComponents: { ComposerForm: r, ComposerAlert: n, ComposerSubmitAction: i, StructuredInputForm: s }, fieldContext: e, formContext: t }); //#endregion export { u as aiKitForm, l as useAIKitForm };