@form-engine-ts/react 2.9.4 → 2.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -229,10 +229,17 @@ interface FormBuilderComponents {
229
229
  readonly renderIcon?: (actionType: BuilderActionIconType) => ReactNode;
230
230
  }
231
231
  type FormBuilderActions = Omit<FormBuilderResult, "schema" | "validationIssues">;
232
+ interface ManualTranslationTarget {
233
+ readonly kind: "form" | "page" | "field" | "option";
234
+ readonly id?: string;
235
+ }
236
+ interface BuilderSlotActions extends FormBuilderActions {
237
+ readonly setManualTranslation: (locale: string, target: ManualTranslationTarget, property: "title" | "description" | "label" | "completionMessage", text: string) => BuilderActionResult;
238
+ }
232
239
  interface BuilderSlotBaseProps {
233
240
  readonly schema: FormSchema;
234
241
  readonly readOnly: boolean;
235
- readonly actions: FormBuilderActions;
242
+ readonly actions: BuilderSlotActions;
236
243
  readonly components: Required<FormBuilderComponents>;
237
244
  readonly translate: (key: string, params?: Record<string, unknown>) => string;
238
245
  }
@@ -302,7 +309,7 @@ interface FormBuilderSlots {
302
309
  readonly sectionOrder?: readonly FormBuilderSectionName[];
303
310
  }
304
311
  interface BuilderActionContext {
305
- readonly action: "addField" | "removeField" | "moveField" | "changeFieldType" | "updateField" | "addOption" | "removeOption" | "moveOption" | "updateOption" | "addPage" | "removePage" | "movePage" | "updatePage" | "assignFieldToPage" | "addLocale" | "setDefaultLocale" | "setDisplayCondition" | "setSourceText" | "setLocaleTranslation";
312
+ readonly action: "addField" | "removeField" | "moveField" | "changeFieldType" | "updateField" | "addOption" | "removeOption" | "moveOption" | "updateOption" | "addPage" | "removePage" | "movePage" | "updatePage" | "assignFieldToPage" | "addLocale" | "setDefaultLocale" | "setDisplayCondition" | "setSourceText" | "setLocaleTranslation" | "setManualTranslation";
306
313
  readonly targetId?: string;
307
314
  readonly params?: Record<string, unknown>;
308
315
  }
@@ -331,6 +338,31 @@ interface SubmitResponse {
331
338
  readonly submissionId?: string;
332
339
  readonly submittedAt?: string;
333
340
  }
341
+ interface FormSubmittedAnswerItem {
342
+ readonly fieldId: string;
343
+ readonly title: string;
344
+ readonly type: QuestionType;
345
+ readonly rawValue: unknown;
346
+ readonly displayValue: string;
347
+ readonly visible: boolean;
348
+ readonly metadata?: Readonly<Record<string, JsonValue>>;
349
+ }
350
+ interface FormCompletionSlotProps {
351
+ readonly message?: string;
352
+ readonly schema: FormSchema;
353
+ readonly answers: Record<string, unknown>;
354
+ readonly submittedItems: readonly FormSubmittedAnswerItem[];
355
+ readonly response?: SubmitResponse;
356
+ readonly onReset?: () => void;
357
+ }
358
+ interface FormServerErrorPayload {
359
+ readonly fieldErrors?: Readonly<Record<string, string>>;
360
+ readonly formError?: string;
361
+ }
362
+ declare class FormSubmissionError extends Error {
363
+ readonly payload: FormServerErrorPayload;
364
+ constructor(message: string, payload?: FormServerErrorPayload);
365
+ }
334
366
  type FormSubmitHandler = (answers: FormValues) => SubmitResponse | void | Promise<SubmitResponse | undefined> | Promise<void>;
335
367
  type SubmissionGuardResult = {
336
368
  readonly status: "allow";
@@ -344,7 +376,17 @@ type SubmissionGuardResult = {
344
376
  readonly message?: string;
345
377
  };
346
378
  type SubmissionGuard = (schema: FormSchema, values: Record<string, unknown>) => SubmissionGuardResult | Promise<SubmissionGuardResult>;
379
+ type FormSuccessRenderMode = "append" | "replace";
380
+ type SubmissionConfirmationRenderMode = "inline" | "replace" | "dialog";
381
+ type FormSubmitStatus = "idle" | "submitting" | "confirming" | "success" | "error";
382
+ /** @deprecated Use FormSubmitStatus instead. */
347
383
  type FormSubmitState = "idle" | "submitting" | "confirming" | "success" | "error";
384
+ interface RenderSubmitButtonProps {
385
+ readonly isSubmitting: boolean;
386
+ readonly submitStatus: FormSubmitStatus;
387
+ readonly disabled: boolean;
388
+ readonly onSubmit: () => void;
389
+ }
348
390
  interface SubmissionConfirmationSlotProps {
349
391
  readonly findings: readonly SensitiveDataFinding[];
350
392
  readonly message?: string;
@@ -353,6 +395,10 @@ interface SubmissionConfirmationSlotProps {
353
395
  readonly onConfirm: () => void;
354
396
  readonly onCancel: () => void;
355
397
  }
398
+ interface FormFieldsSlotProps {
399
+ readonly children: ReactNode;
400
+ readonly className?: string;
401
+ }
356
402
  interface FormRendererSlots {
357
403
  readonly renderHeader?: (props: {
358
404
  readonly title: string;
@@ -377,16 +423,19 @@ interface FormRendererSlots {
377
423
  readonly onPrev: () => void;
378
424
  readonly onNext: () => void;
379
425
  }) => ReactNode;
380
- readonly renderSubmitButton?: (props: {
381
- readonly isSubmitting: boolean;
382
- readonly onSubmit: () => void;
383
- }) => ReactNode;
426
+ readonly renderSubmitButton?: (props: RenderSubmitButtonProps) => ReactNode;
384
427
  readonly renderValidationSummary?: (props: {
385
428
  readonly issues: readonly ValidationError[];
386
429
  }) => ReactNode;
430
+ /** Additional completion data is supplied at runtime; use renderSubmittedValues for typed summary rendering. */
387
431
  readonly renderCompletion?: (props: {
388
432
  readonly message: string;
389
433
  }) => ReactNode;
434
+ readonly renderSubmittedValues?: (props: {
435
+ readonly items: readonly FormSubmittedAnswerItem[];
436
+ readonly schema: FormSchema;
437
+ }) => ReactNode;
438
+ readonly renderFields?: (props: FormFieldsSlotProps) => ReactNode;
390
439
  readonly renderSubmitError?: (props: {
391
440
  readonly error: Error;
392
441
  readonly onRetry?: () => void;
@@ -454,6 +503,7 @@ interface FormContextValue {
454
503
  readonly submitError: Error | null;
455
504
  readonly isSubmitting: boolean;
456
505
  readonly setValue: (fieldId: string, value: FormValue) => void;
506
+ readonly setServerErrors?: (fieldErrors: Readonly<Record<string, string>>) => void;
457
507
  readonly restoreValues: (values: FormValues) => void;
458
508
  readonly validatePage: (pageIndex: number) => AnswerValidationResult;
459
509
  readonly reset: () => void;
@@ -494,6 +544,16 @@ type FieldComponents = Partial<Record<FieldType, ComponentType<FieldComponentPro
494
544
  interface FormRendererPresentationProps extends SubmissionProtectionProps {
495
545
  readonly components?: FieldComponents;
496
546
  readonly className?: string;
547
+ /**
548
+ * Controls where the completion message is rendered after a successful submission.
549
+ * Defaults to "append" for backwards compatibility.
550
+ */
551
+ readonly successRenderMode?: FormSuccessRenderMode;
552
+ readonly submissionConfirmationRenderMode?: SubmissionConfirmationRenderMode;
553
+ readonly showHiddenFieldsInSummary?: boolean;
554
+ readonly fieldsClassName?: string;
555
+ /** @deprecated Use successRenderMode="replace" instead. */
556
+ readonly hideFormOnSuccess?: boolean;
497
557
  readonly successMessageKey?: string;
498
558
  readonly errorMessageKey?: string;
499
559
  readonly autoSaveKey?: string;
@@ -512,4 +572,4 @@ interface StandaloneFormRendererProps extends FormRendererPresentationProps {
512
572
  type FormRendererProps = FormRendererPresentationProps | StandaloneFormRendererProps;
513
573
  declare function FormRenderer(props: FormRendererProps): react.JSX.Element;
514
574
 
515
- export { type BeforeSubmit, type BuilderActionContext, type BuilderActionError, type BuilderActionIconType, type BuilderActionResult, type BuilderButtonProps, type BuilderCheckboxProps, type BuilderErrorMessageProps, type BuilderFactories, type BuilderFieldEditorSlotProps, type BuilderFieldsetProps, type BuilderIconButtonProps, type BuilderIdKind, type BuilderLocalizationSlotProps, type BuilderOptionEditorSlotProps, type BuilderPagesSlotProps, type BuilderPolicy, type BuilderSectionProps, type BuilderSelectOption, type BuilderSelectProps, type BuilderTextAreaProps, type BuilderTextInputProps, type BuilderTextTarget, type BuilderToolbarSlotProps, type BuilderTranslationActionsSlotProps, type ComponentBaseProps, type FieldComponentProps, type FieldComponents, type FieldState, FormBuilder, type FormBuilderActions, type FormBuilderComponents, type FormBuilderFeatures, type FormBuilderOptions, type FormBuilderProps, type FormBuilderResult, type FormBuilderSectionName, type FormBuilderSlots, type FormContextValue, FormProvider, type FormProviderProps, FormRenderer, type FormRendererPresentationProps, type FormRendererProps, type FormRendererSlots, type FormSubmitHandler, type FormSubmitState, type IconButtonProps, type InputComponentProps, type ManualTranslationContext, type StandaloneFormRendererProps, type SubmissionAttempt, type SubmissionAttemptStore, type SubmissionConfirmationSlotProps, type SubmissionGuard, type SubmissionGuardResult, type SubmissionProtectionProps, type SubmissionReceipt, type SubmissionReceiptQuery, type SubmissionReceiptStore, type SubmitResponse, type SubmitResult, type SubmitStatus, type UseSubmissionReceiptsResult, createLocalStorageSubmissionAttemptStore, createLocalStorageSubmissionReceiptStore, resolveInitialFieldType, submissionReceiptQueryKey, useField, useForm, useFormBuilder, useSubmissionReceipts };
575
+ export { type BeforeSubmit, type BuilderActionContext, type BuilderActionError, type BuilderActionIconType, type BuilderActionResult, type BuilderButtonProps, type BuilderCheckboxProps, type BuilderErrorMessageProps, type BuilderFactories, type BuilderFieldEditorSlotProps, type BuilderFieldsetProps, type BuilderIconButtonProps, type BuilderIdKind, type BuilderLocalizationSlotProps, type BuilderOptionEditorSlotProps, type BuilderPagesSlotProps, type BuilderPolicy, type BuilderSectionProps, type BuilderSelectOption, type BuilderSelectProps, type BuilderSlotActions, type BuilderTextAreaProps, type BuilderTextInputProps, type BuilderTextTarget, type BuilderToolbarSlotProps, type BuilderTranslationActionsSlotProps, type ComponentBaseProps, type FieldComponentProps, type FieldComponents, type FieldState, FormBuilder, type FormBuilderActions, type FormBuilderComponents, type FormBuilderFeatures, type FormBuilderOptions, type FormBuilderProps, type FormBuilderResult, type FormBuilderSectionName, type FormBuilderSlots, type FormCompletionSlotProps, type FormContextValue, type FormFieldsSlotProps, FormProvider, type FormProviderProps, FormRenderer, type FormRendererPresentationProps, type FormRendererProps, type FormRendererSlots, type FormServerErrorPayload, FormSubmissionError, type FormSubmitHandler, type FormSubmitState, type FormSubmitStatus, type FormSubmittedAnswerItem, type FormSuccessRenderMode, type IconButtonProps, type InputComponentProps, type ManualTranslationContext, type ManualTranslationTarget, type RenderSubmitButtonProps, type StandaloneFormRendererProps, type SubmissionAttempt, type SubmissionAttemptStore, type SubmissionConfirmationRenderMode, type SubmissionConfirmationSlotProps, type SubmissionGuard, type SubmissionGuardResult, type SubmissionProtectionProps, type SubmissionReceipt, type SubmissionReceiptQuery, type SubmissionReceiptStore, type SubmitResponse, type SubmitResult, type SubmitStatus, type UseSubmissionReceiptsResult, createLocalStorageSubmissionAttemptStore, createLocalStorageSubmissionReceiptStore, resolveInitialFieldType, submissionReceiptQueryKey, useField, useForm, useFormBuilder, useSubmissionReceipts };
package/dist/index.d.ts CHANGED
@@ -229,10 +229,17 @@ interface FormBuilderComponents {
229
229
  readonly renderIcon?: (actionType: BuilderActionIconType) => ReactNode;
230
230
  }
231
231
  type FormBuilderActions = Omit<FormBuilderResult, "schema" | "validationIssues">;
232
+ interface ManualTranslationTarget {
233
+ readonly kind: "form" | "page" | "field" | "option";
234
+ readonly id?: string;
235
+ }
236
+ interface BuilderSlotActions extends FormBuilderActions {
237
+ readonly setManualTranslation: (locale: string, target: ManualTranslationTarget, property: "title" | "description" | "label" | "completionMessage", text: string) => BuilderActionResult;
238
+ }
232
239
  interface BuilderSlotBaseProps {
233
240
  readonly schema: FormSchema;
234
241
  readonly readOnly: boolean;
235
- readonly actions: FormBuilderActions;
242
+ readonly actions: BuilderSlotActions;
236
243
  readonly components: Required<FormBuilderComponents>;
237
244
  readonly translate: (key: string, params?: Record<string, unknown>) => string;
238
245
  }
@@ -302,7 +309,7 @@ interface FormBuilderSlots {
302
309
  readonly sectionOrder?: readonly FormBuilderSectionName[];
303
310
  }
304
311
  interface BuilderActionContext {
305
- readonly action: "addField" | "removeField" | "moveField" | "changeFieldType" | "updateField" | "addOption" | "removeOption" | "moveOption" | "updateOption" | "addPage" | "removePage" | "movePage" | "updatePage" | "assignFieldToPage" | "addLocale" | "setDefaultLocale" | "setDisplayCondition" | "setSourceText" | "setLocaleTranslation";
312
+ readonly action: "addField" | "removeField" | "moveField" | "changeFieldType" | "updateField" | "addOption" | "removeOption" | "moveOption" | "updateOption" | "addPage" | "removePage" | "movePage" | "updatePage" | "assignFieldToPage" | "addLocale" | "setDefaultLocale" | "setDisplayCondition" | "setSourceText" | "setLocaleTranslation" | "setManualTranslation";
306
313
  readonly targetId?: string;
307
314
  readonly params?: Record<string, unknown>;
308
315
  }
@@ -331,6 +338,31 @@ interface SubmitResponse {
331
338
  readonly submissionId?: string;
332
339
  readonly submittedAt?: string;
333
340
  }
341
+ interface FormSubmittedAnswerItem {
342
+ readonly fieldId: string;
343
+ readonly title: string;
344
+ readonly type: QuestionType;
345
+ readonly rawValue: unknown;
346
+ readonly displayValue: string;
347
+ readonly visible: boolean;
348
+ readonly metadata?: Readonly<Record<string, JsonValue>>;
349
+ }
350
+ interface FormCompletionSlotProps {
351
+ readonly message?: string;
352
+ readonly schema: FormSchema;
353
+ readonly answers: Record<string, unknown>;
354
+ readonly submittedItems: readonly FormSubmittedAnswerItem[];
355
+ readonly response?: SubmitResponse;
356
+ readonly onReset?: () => void;
357
+ }
358
+ interface FormServerErrorPayload {
359
+ readonly fieldErrors?: Readonly<Record<string, string>>;
360
+ readonly formError?: string;
361
+ }
362
+ declare class FormSubmissionError extends Error {
363
+ readonly payload: FormServerErrorPayload;
364
+ constructor(message: string, payload?: FormServerErrorPayload);
365
+ }
334
366
  type FormSubmitHandler = (answers: FormValues) => SubmitResponse | void | Promise<SubmitResponse | undefined> | Promise<void>;
335
367
  type SubmissionGuardResult = {
336
368
  readonly status: "allow";
@@ -344,7 +376,17 @@ type SubmissionGuardResult = {
344
376
  readonly message?: string;
345
377
  };
346
378
  type SubmissionGuard = (schema: FormSchema, values: Record<string, unknown>) => SubmissionGuardResult | Promise<SubmissionGuardResult>;
379
+ type FormSuccessRenderMode = "append" | "replace";
380
+ type SubmissionConfirmationRenderMode = "inline" | "replace" | "dialog";
381
+ type FormSubmitStatus = "idle" | "submitting" | "confirming" | "success" | "error";
382
+ /** @deprecated Use FormSubmitStatus instead. */
347
383
  type FormSubmitState = "idle" | "submitting" | "confirming" | "success" | "error";
384
+ interface RenderSubmitButtonProps {
385
+ readonly isSubmitting: boolean;
386
+ readonly submitStatus: FormSubmitStatus;
387
+ readonly disabled: boolean;
388
+ readonly onSubmit: () => void;
389
+ }
348
390
  interface SubmissionConfirmationSlotProps {
349
391
  readonly findings: readonly SensitiveDataFinding[];
350
392
  readonly message?: string;
@@ -353,6 +395,10 @@ interface SubmissionConfirmationSlotProps {
353
395
  readonly onConfirm: () => void;
354
396
  readonly onCancel: () => void;
355
397
  }
398
+ interface FormFieldsSlotProps {
399
+ readonly children: ReactNode;
400
+ readonly className?: string;
401
+ }
356
402
  interface FormRendererSlots {
357
403
  readonly renderHeader?: (props: {
358
404
  readonly title: string;
@@ -377,16 +423,19 @@ interface FormRendererSlots {
377
423
  readonly onPrev: () => void;
378
424
  readonly onNext: () => void;
379
425
  }) => ReactNode;
380
- readonly renderSubmitButton?: (props: {
381
- readonly isSubmitting: boolean;
382
- readonly onSubmit: () => void;
383
- }) => ReactNode;
426
+ readonly renderSubmitButton?: (props: RenderSubmitButtonProps) => ReactNode;
384
427
  readonly renderValidationSummary?: (props: {
385
428
  readonly issues: readonly ValidationError[];
386
429
  }) => ReactNode;
430
+ /** Additional completion data is supplied at runtime; use renderSubmittedValues for typed summary rendering. */
387
431
  readonly renderCompletion?: (props: {
388
432
  readonly message: string;
389
433
  }) => ReactNode;
434
+ readonly renderSubmittedValues?: (props: {
435
+ readonly items: readonly FormSubmittedAnswerItem[];
436
+ readonly schema: FormSchema;
437
+ }) => ReactNode;
438
+ readonly renderFields?: (props: FormFieldsSlotProps) => ReactNode;
390
439
  readonly renderSubmitError?: (props: {
391
440
  readonly error: Error;
392
441
  readonly onRetry?: () => void;
@@ -454,6 +503,7 @@ interface FormContextValue {
454
503
  readonly submitError: Error | null;
455
504
  readonly isSubmitting: boolean;
456
505
  readonly setValue: (fieldId: string, value: FormValue) => void;
506
+ readonly setServerErrors?: (fieldErrors: Readonly<Record<string, string>>) => void;
457
507
  readonly restoreValues: (values: FormValues) => void;
458
508
  readonly validatePage: (pageIndex: number) => AnswerValidationResult;
459
509
  readonly reset: () => void;
@@ -494,6 +544,16 @@ type FieldComponents = Partial<Record<FieldType, ComponentType<FieldComponentPro
494
544
  interface FormRendererPresentationProps extends SubmissionProtectionProps {
495
545
  readonly components?: FieldComponents;
496
546
  readonly className?: string;
547
+ /**
548
+ * Controls where the completion message is rendered after a successful submission.
549
+ * Defaults to "append" for backwards compatibility.
550
+ */
551
+ readonly successRenderMode?: FormSuccessRenderMode;
552
+ readonly submissionConfirmationRenderMode?: SubmissionConfirmationRenderMode;
553
+ readonly showHiddenFieldsInSummary?: boolean;
554
+ readonly fieldsClassName?: string;
555
+ /** @deprecated Use successRenderMode="replace" instead. */
556
+ readonly hideFormOnSuccess?: boolean;
497
557
  readonly successMessageKey?: string;
498
558
  readonly errorMessageKey?: string;
499
559
  readonly autoSaveKey?: string;
@@ -512,4 +572,4 @@ interface StandaloneFormRendererProps extends FormRendererPresentationProps {
512
572
  type FormRendererProps = FormRendererPresentationProps | StandaloneFormRendererProps;
513
573
  declare function FormRenderer(props: FormRendererProps): react.JSX.Element;
514
574
 
515
- export { type BeforeSubmit, type BuilderActionContext, type BuilderActionError, type BuilderActionIconType, type BuilderActionResult, type BuilderButtonProps, type BuilderCheckboxProps, type BuilderErrorMessageProps, type BuilderFactories, type BuilderFieldEditorSlotProps, type BuilderFieldsetProps, type BuilderIconButtonProps, type BuilderIdKind, type BuilderLocalizationSlotProps, type BuilderOptionEditorSlotProps, type BuilderPagesSlotProps, type BuilderPolicy, type BuilderSectionProps, type BuilderSelectOption, type BuilderSelectProps, type BuilderTextAreaProps, type BuilderTextInputProps, type BuilderTextTarget, type BuilderToolbarSlotProps, type BuilderTranslationActionsSlotProps, type ComponentBaseProps, type FieldComponentProps, type FieldComponents, type FieldState, FormBuilder, type FormBuilderActions, type FormBuilderComponents, type FormBuilderFeatures, type FormBuilderOptions, type FormBuilderProps, type FormBuilderResult, type FormBuilderSectionName, type FormBuilderSlots, type FormContextValue, FormProvider, type FormProviderProps, FormRenderer, type FormRendererPresentationProps, type FormRendererProps, type FormRendererSlots, type FormSubmitHandler, type FormSubmitState, type IconButtonProps, type InputComponentProps, type ManualTranslationContext, type StandaloneFormRendererProps, type SubmissionAttempt, type SubmissionAttemptStore, type SubmissionConfirmationSlotProps, type SubmissionGuard, type SubmissionGuardResult, type SubmissionProtectionProps, type SubmissionReceipt, type SubmissionReceiptQuery, type SubmissionReceiptStore, type SubmitResponse, type SubmitResult, type SubmitStatus, type UseSubmissionReceiptsResult, createLocalStorageSubmissionAttemptStore, createLocalStorageSubmissionReceiptStore, resolveInitialFieldType, submissionReceiptQueryKey, useField, useForm, useFormBuilder, useSubmissionReceipts };
575
+ export { type BeforeSubmit, type BuilderActionContext, type BuilderActionError, type BuilderActionIconType, type BuilderActionResult, type BuilderButtonProps, type BuilderCheckboxProps, type BuilderErrorMessageProps, type BuilderFactories, type BuilderFieldEditorSlotProps, type BuilderFieldsetProps, type BuilderIconButtonProps, type BuilderIdKind, type BuilderLocalizationSlotProps, type BuilderOptionEditorSlotProps, type BuilderPagesSlotProps, type BuilderPolicy, type BuilderSectionProps, type BuilderSelectOption, type BuilderSelectProps, type BuilderSlotActions, type BuilderTextAreaProps, type BuilderTextInputProps, type BuilderTextTarget, type BuilderToolbarSlotProps, type BuilderTranslationActionsSlotProps, type ComponentBaseProps, type FieldComponentProps, type FieldComponents, type FieldState, FormBuilder, type FormBuilderActions, type FormBuilderComponents, type FormBuilderFeatures, type FormBuilderOptions, type FormBuilderProps, type FormBuilderResult, type FormBuilderSectionName, type FormBuilderSlots, type FormCompletionSlotProps, type FormContextValue, type FormFieldsSlotProps, FormProvider, type FormProviderProps, FormRenderer, type FormRendererPresentationProps, type FormRendererProps, type FormRendererSlots, type FormServerErrorPayload, FormSubmissionError, type FormSubmitHandler, type FormSubmitState, type FormSubmitStatus, type FormSubmittedAnswerItem, type FormSuccessRenderMode, type IconButtonProps, type InputComponentProps, type ManualTranslationContext, type ManualTranslationTarget, type RenderSubmitButtonProps, type StandaloneFormRendererProps, type SubmissionAttempt, type SubmissionAttemptStore, type SubmissionConfirmationRenderMode, type SubmissionConfirmationSlotProps, type SubmissionGuard, type SubmissionGuardResult, type SubmissionProtectionProps, type SubmissionReceipt, type SubmissionReceiptQuery, type SubmissionReceiptStore, type SubmitResponse, type SubmitResult, type SubmitStatus, type UseSubmissionReceiptsResult, createLocalStorageSubmissionAttemptStore, createLocalStorageSubmissionReceiptStore, resolveInitialFieldType, submissionReceiptQueryKey, useField, useForm, useFormBuilder, useSubmissionReceipts };