@form-engine-ts/react 2.9.3 → 2.9.5
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/README.md +17 -5
- package/dist/index.cjs +521 -363
- package/dist/index.d.cts +45 -8
- package/dist/index.d.ts +45 -8
- package/dist/index.js +522 -364
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -229,11 +229,19 @@ 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:
|
|
242
|
+
readonly actions: BuilderSlotActions;
|
|
236
243
|
readonly components: Required<FormBuilderComponents>;
|
|
244
|
+
readonly translate: (key: string, params?: Record<string, unknown>) => string;
|
|
237
245
|
}
|
|
238
246
|
interface BuilderToolbarSlotProps extends BuilderSlotBaseProps {
|
|
239
247
|
readonly kind: "page" | "field" | "option";
|
|
@@ -250,6 +258,11 @@ interface BuilderFieldEditorSlotProps extends BuilderSlotBaseProps {
|
|
|
250
258
|
readonly index: number;
|
|
251
259
|
readonly currentLocale: string;
|
|
252
260
|
readonly policy?: FormPolicy;
|
|
261
|
+
readonly features?: {
|
|
262
|
+
readonly pages?: boolean;
|
|
263
|
+
readonly localization?: boolean;
|
|
264
|
+
readonly conditions?: boolean;
|
|
265
|
+
};
|
|
253
266
|
}
|
|
254
267
|
interface BuilderOptionEditorSlotProps extends BuilderSlotBaseProps {
|
|
255
268
|
readonly field: FormField & {
|
|
@@ -261,6 +274,11 @@ interface BuilderOptionEditorSlotProps extends BuilderSlotBaseProps {
|
|
|
261
274
|
}
|
|
262
275
|
interface BuilderPagesSlotProps extends BuilderSlotBaseProps {
|
|
263
276
|
readonly currentLocale: string;
|
|
277
|
+
readonly features?: {
|
|
278
|
+
readonly pages?: boolean;
|
|
279
|
+
readonly localization?: boolean;
|
|
280
|
+
readonly conditions?: boolean;
|
|
281
|
+
};
|
|
264
282
|
}
|
|
265
283
|
interface BuilderLocalizationSlotProps extends BuilderSlotBaseProps {
|
|
266
284
|
readonly currentLocale: string;
|
|
@@ -268,6 +286,8 @@ interface BuilderLocalizationSlotProps extends BuilderSlotBaseProps {
|
|
|
268
286
|
readonly onAutoTranslate: () => void;
|
|
269
287
|
readonly isTranslating: boolean;
|
|
270
288
|
readonly translationError?: string;
|
|
289
|
+
readonly policy?: FormPolicy;
|
|
290
|
+
readonly translationAdapterAvailable?: boolean;
|
|
271
291
|
}
|
|
272
292
|
interface BuilderTranslationActionsSlotProps extends BuilderSlotBaseProps {
|
|
273
293
|
readonly currentLocale: string;
|
|
@@ -276,7 +296,9 @@ interface BuilderTranslationActionsSlotProps extends BuilderSlotBaseProps {
|
|
|
276
296
|
readonly translationError?: string;
|
|
277
297
|
readonly translationReport?: TranslationReport;
|
|
278
298
|
readonly onClearTranslationError?: () => void;
|
|
299
|
+
readonly translationAdapterAvailable?: boolean;
|
|
279
300
|
}
|
|
301
|
+
type FormBuilderSectionName = "basicSettings" | "completionMessage" | "questions" | "addQuestion" | "localization";
|
|
280
302
|
interface FormBuilderSlots {
|
|
281
303
|
readonly toolbar?: ComponentType<BuilderToolbarSlotProps>;
|
|
282
304
|
readonly fieldEditor?: ComponentType<BuilderFieldEditorSlotProps>;
|
|
@@ -284,9 +306,10 @@ interface FormBuilderSlots {
|
|
|
284
306
|
readonly pages?: ComponentType<BuilderPagesSlotProps>;
|
|
285
307
|
readonly localization?: ComponentType<BuilderLocalizationSlotProps>;
|
|
286
308
|
readonly translationActions?: ComponentType<BuilderTranslationActionsSlotProps>;
|
|
309
|
+
readonly sectionOrder?: readonly FormBuilderSectionName[];
|
|
287
310
|
}
|
|
288
311
|
interface BuilderActionContext {
|
|
289
|
-
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";
|
|
290
313
|
readonly targetId?: string;
|
|
291
314
|
readonly params?: Record<string, unknown>;
|
|
292
315
|
}
|
|
@@ -328,7 +351,16 @@ type SubmissionGuardResult = {
|
|
|
328
351
|
readonly message?: string;
|
|
329
352
|
};
|
|
330
353
|
type SubmissionGuard = (schema: FormSchema, values: Record<string, unknown>) => SubmissionGuardResult | Promise<SubmissionGuardResult>;
|
|
354
|
+
type FormSuccessRenderMode = "append" | "replace";
|
|
355
|
+
type FormSubmitStatus = "idle" | "submitting" | "confirming" | "success" | "error";
|
|
356
|
+
/** @deprecated Use FormSubmitStatus instead. */
|
|
331
357
|
type FormSubmitState = "idle" | "submitting" | "confirming" | "success" | "error";
|
|
358
|
+
interface RenderSubmitButtonProps {
|
|
359
|
+
readonly isSubmitting: boolean;
|
|
360
|
+
readonly submitStatus: FormSubmitStatus;
|
|
361
|
+
readonly disabled: boolean;
|
|
362
|
+
readonly onSubmit: () => void;
|
|
363
|
+
}
|
|
332
364
|
interface SubmissionConfirmationSlotProps {
|
|
333
365
|
readonly findings: readonly SensitiveDataFinding[];
|
|
334
366
|
readonly message?: string;
|
|
@@ -361,10 +393,7 @@ interface FormRendererSlots {
|
|
|
361
393
|
readonly onPrev: () => void;
|
|
362
394
|
readonly onNext: () => void;
|
|
363
395
|
}) => ReactNode;
|
|
364
|
-
readonly renderSubmitButton?: (props:
|
|
365
|
-
readonly isSubmitting: boolean;
|
|
366
|
-
readonly onSubmit: () => void;
|
|
367
|
-
}) => ReactNode;
|
|
396
|
+
readonly renderSubmitButton?: (props: RenderSubmitButtonProps) => ReactNode;
|
|
368
397
|
readonly renderValidationSummary?: (props: {
|
|
369
398
|
readonly issues: readonly ValidationError[];
|
|
370
399
|
}) => ReactNode;
|
|
@@ -419,10 +448,11 @@ interface FormBuilderProps {
|
|
|
419
448
|
readonly features?: FormBuilderFeatures;
|
|
420
449
|
readonly components?: FormBuilderComponents;
|
|
421
450
|
readonly slots?: FormBuilderSlots;
|
|
451
|
+
readonly sectionOrder?: readonly FormBuilderSectionName[];
|
|
422
452
|
readonly disableDefaultStyles?: boolean;
|
|
423
453
|
readonly unstyled?: boolean;
|
|
424
454
|
}
|
|
425
|
-
declare function FormBuilder({ schema, onChange, locale, translator, translationAdapter, translationOptions, onTranslationReport, policy, idFactory, factories, className, defaultFieldType, onActionError, createManualTranslationMetadata, readOnly, features, components: componentOverrides, slots, disableDefaultStyles, unstyled }: FormBuilderProps): react.JSX.Element;
|
|
455
|
+
declare function FormBuilder({ schema, onChange, locale, translator, translationAdapter, translationOptions, onTranslationReport, policy, idFactory, factories, className, defaultFieldType, onActionError, createManualTranslationMetadata, readOnly, features, components: componentOverrides, slots, sectionOrder, disableDefaultStyles, unstyled }: FormBuilderProps): react.JSX.Element;
|
|
426
456
|
|
|
427
457
|
type SubmitStatus = "idle" | "submitting" | "success" | "error";
|
|
428
458
|
interface FormContextValue {
|
|
@@ -477,6 +507,13 @@ type FieldComponents = Partial<Record<FieldType, ComponentType<FieldComponentPro
|
|
|
477
507
|
interface FormRendererPresentationProps extends SubmissionProtectionProps {
|
|
478
508
|
readonly components?: FieldComponents;
|
|
479
509
|
readonly className?: string;
|
|
510
|
+
/**
|
|
511
|
+
* Controls where the completion message is rendered after a successful submission.
|
|
512
|
+
* Defaults to "append" for backwards compatibility.
|
|
513
|
+
*/
|
|
514
|
+
readonly successRenderMode?: FormSuccessRenderMode;
|
|
515
|
+
/** @deprecated Use successRenderMode="replace" instead. */
|
|
516
|
+
readonly hideFormOnSuccess?: boolean;
|
|
480
517
|
readonly successMessageKey?: string;
|
|
481
518
|
readonly errorMessageKey?: string;
|
|
482
519
|
readonly autoSaveKey?: string;
|
|
@@ -495,4 +532,4 @@ interface StandaloneFormRendererProps extends FormRendererPresentationProps {
|
|
|
495
532
|
type FormRendererProps = FormRendererPresentationProps | StandaloneFormRendererProps;
|
|
496
533
|
declare function FormRenderer(props: FormRendererProps): react.JSX.Element;
|
|
497
534
|
|
|
498
|
-
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 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 };
|
|
535
|
+
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 FormContextValue, FormProvider, type FormProviderProps, FormRenderer, type FormRendererPresentationProps, type FormRendererProps, type FormRendererSlots, type FormSubmitHandler, type FormSubmitState, type FormSubmitStatus, type FormSuccessRenderMode, type IconButtonProps, type InputComponentProps, type ManualTranslationContext, type ManualTranslationTarget, type RenderSubmitButtonProps, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -229,11 +229,19 @@ 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:
|
|
242
|
+
readonly actions: BuilderSlotActions;
|
|
236
243
|
readonly components: Required<FormBuilderComponents>;
|
|
244
|
+
readonly translate: (key: string, params?: Record<string, unknown>) => string;
|
|
237
245
|
}
|
|
238
246
|
interface BuilderToolbarSlotProps extends BuilderSlotBaseProps {
|
|
239
247
|
readonly kind: "page" | "field" | "option";
|
|
@@ -250,6 +258,11 @@ interface BuilderFieldEditorSlotProps extends BuilderSlotBaseProps {
|
|
|
250
258
|
readonly index: number;
|
|
251
259
|
readonly currentLocale: string;
|
|
252
260
|
readonly policy?: FormPolicy;
|
|
261
|
+
readonly features?: {
|
|
262
|
+
readonly pages?: boolean;
|
|
263
|
+
readonly localization?: boolean;
|
|
264
|
+
readonly conditions?: boolean;
|
|
265
|
+
};
|
|
253
266
|
}
|
|
254
267
|
interface BuilderOptionEditorSlotProps extends BuilderSlotBaseProps {
|
|
255
268
|
readonly field: FormField & {
|
|
@@ -261,6 +274,11 @@ interface BuilderOptionEditorSlotProps extends BuilderSlotBaseProps {
|
|
|
261
274
|
}
|
|
262
275
|
interface BuilderPagesSlotProps extends BuilderSlotBaseProps {
|
|
263
276
|
readonly currentLocale: string;
|
|
277
|
+
readonly features?: {
|
|
278
|
+
readonly pages?: boolean;
|
|
279
|
+
readonly localization?: boolean;
|
|
280
|
+
readonly conditions?: boolean;
|
|
281
|
+
};
|
|
264
282
|
}
|
|
265
283
|
interface BuilderLocalizationSlotProps extends BuilderSlotBaseProps {
|
|
266
284
|
readonly currentLocale: string;
|
|
@@ -268,6 +286,8 @@ interface BuilderLocalizationSlotProps extends BuilderSlotBaseProps {
|
|
|
268
286
|
readonly onAutoTranslate: () => void;
|
|
269
287
|
readonly isTranslating: boolean;
|
|
270
288
|
readonly translationError?: string;
|
|
289
|
+
readonly policy?: FormPolicy;
|
|
290
|
+
readonly translationAdapterAvailable?: boolean;
|
|
271
291
|
}
|
|
272
292
|
interface BuilderTranslationActionsSlotProps extends BuilderSlotBaseProps {
|
|
273
293
|
readonly currentLocale: string;
|
|
@@ -276,7 +296,9 @@ interface BuilderTranslationActionsSlotProps extends BuilderSlotBaseProps {
|
|
|
276
296
|
readonly translationError?: string;
|
|
277
297
|
readonly translationReport?: TranslationReport;
|
|
278
298
|
readonly onClearTranslationError?: () => void;
|
|
299
|
+
readonly translationAdapterAvailable?: boolean;
|
|
279
300
|
}
|
|
301
|
+
type FormBuilderSectionName = "basicSettings" | "completionMessage" | "questions" | "addQuestion" | "localization";
|
|
280
302
|
interface FormBuilderSlots {
|
|
281
303
|
readonly toolbar?: ComponentType<BuilderToolbarSlotProps>;
|
|
282
304
|
readonly fieldEditor?: ComponentType<BuilderFieldEditorSlotProps>;
|
|
@@ -284,9 +306,10 @@ interface FormBuilderSlots {
|
|
|
284
306
|
readonly pages?: ComponentType<BuilderPagesSlotProps>;
|
|
285
307
|
readonly localization?: ComponentType<BuilderLocalizationSlotProps>;
|
|
286
308
|
readonly translationActions?: ComponentType<BuilderTranslationActionsSlotProps>;
|
|
309
|
+
readonly sectionOrder?: readonly FormBuilderSectionName[];
|
|
287
310
|
}
|
|
288
311
|
interface BuilderActionContext {
|
|
289
|
-
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";
|
|
290
313
|
readonly targetId?: string;
|
|
291
314
|
readonly params?: Record<string, unknown>;
|
|
292
315
|
}
|
|
@@ -328,7 +351,16 @@ type SubmissionGuardResult = {
|
|
|
328
351
|
readonly message?: string;
|
|
329
352
|
};
|
|
330
353
|
type SubmissionGuard = (schema: FormSchema, values: Record<string, unknown>) => SubmissionGuardResult | Promise<SubmissionGuardResult>;
|
|
354
|
+
type FormSuccessRenderMode = "append" | "replace";
|
|
355
|
+
type FormSubmitStatus = "idle" | "submitting" | "confirming" | "success" | "error";
|
|
356
|
+
/** @deprecated Use FormSubmitStatus instead. */
|
|
331
357
|
type FormSubmitState = "idle" | "submitting" | "confirming" | "success" | "error";
|
|
358
|
+
interface RenderSubmitButtonProps {
|
|
359
|
+
readonly isSubmitting: boolean;
|
|
360
|
+
readonly submitStatus: FormSubmitStatus;
|
|
361
|
+
readonly disabled: boolean;
|
|
362
|
+
readonly onSubmit: () => void;
|
|
363
|
+
}
|
|
332
364
|
interface SubmissionConfirmationSlotProps {
|
|
333
365
|
readonly findings: readonly SensitiveDataFinding[];
|
|
334
366
|
readonly message?: string;
|
|
@@ -361,10 +393,7 @@ interface FormRendererSlots {
|
|
|
361
393
|
readonly onPrev: () => void;
|
|
362
394
|
readonly onNext: () => void;
|
|
363
395
|
}) => ReactNode;
|
|
364
|
-
readonly renderSubmitButton?: (props:
|
|
365
|
-
readonly isSubmitting: boolean;
|
|
366
|
-
readonly onSubmit: () => void;
|
|
367
|
-
}) => ReactNode;
|
|
396
|
+
readonly renderSubmitButton?: (props: RenderSubmitButtonProps) => ReactNode;
|
|
368
397
|
readonly renderValidationSummary?: (props: {
|
|
369
398
|
readonly issues: readonly ValidationError[];
|
|
370
399
|
}) => ReactNode;
|
|
@@ -419,10 +448,11 @@ interface FormBuilderProps {
|
|
|
419
448
|
readonly features?: FormBuilderFeatures;
|
|
420
449
|
readonly components?: FormBuilderComponents;
|
|
421
450
|
readonly slots?: FormBuilderSlots;
|
|
451
|
+
readonly sectionOrder?: readonly FormBuilderSectionName[];
|
|
422
452
|
readonly disableDefaultStyles?: boolean;
|
|
423
453
|
readonly unstyled?: boolean;
|
|
424
454
|
}
|
|
425
|
-
declare function FormBuilder({ schema, onChange, locale, translator, translationAdapter, translationOptions, onTranslationReport, policy, idFactory, factories, className, defaultFieldType, onActionError, createManualTranslationMetadata, readOnly, features, components: componentOverrides, slots, disableDefaultStyles, unstyled }: FormBuilderProps): react.JSX.Element;
|
|
455
|
+
declare function FormBuilder({ schema, onChange, locale, translator, translationAdapter, translationOptions, onTranslationReport, policy, idFactory, factories, className, defaultFieldType, onActionError, createManualTranslationMetadata, readOnly, features, components: componentOverrides, slots, sectionOrder, disableDefaultStyles, unstyled }: FormBuilderProps): react.JSX.Element;
|
|
426
456
|
|
|
427
457
|
type SubmitStatus = "idle" | "submitting" | "success" | "error";
|
|
428
458
|
interface FormContextValue {
|
|
@@ -477,6 +507,13 @@ type FieldComponents = Partial<Record<FieldType, ComponentType<FieldComponentPro
|
|
|
477
507
|
interface FormRendererPresentationProps extends SubmissionProtectionProps {
|
|
478
508
|
readonly components?: FieldComponents;
|
|
479
509
|
readonly className?: string;
|
|
510
|
+
/**
|
|
511
|
+
* Controls where the completion message is rendered after a successful submission.
|
|
512
|
+
* Defaults to "append" for backwards compatibility.
|
|
513
|
+
*/
|
|
514
|
+
readonly successRenderMode?: FormSuccessRenderMode;
|
|
515
|
+
/** @deprecated Use successRenderMode="replace" instead. */
|
|
516
|
+
readonly hideFormOnSuccess?: boolean;
|
|
480
517
|
readonly successMessageKey?: string;
|
|
481
518
|
readonly errorMessageKey?: string;
|
|
482
519
|
readonly autoSaveKey?: string;
|
|
@@ -495,4 +532,4 @@ interface StandaloneFormRendererProps extends FormRendererPresentationProps {
|
|
|
495
532
|
type FormRendererProps = FormRendererPresentationProps | StandaloneFormRendererProps;
|
|
496
533
|
declare function FormRenderer(props: FormRendererProps): react.JSX.Element;
|
|
497
534
|
|
|
498
|
-
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 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 };
|
|
535
|
+
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 FormContextValue, FormProvider, type FormProviderProps, FormRenderer, type FormRendererPresentationProps, type FormRendererProps, type FormRendererSlots, type FormSubmitHandler, type FormSubmitState, type FormSubmitStatus, type FormSuccessRenderMode, type IconButtonProps, type InputComponentProps, type ManualTranslationContext, type ManualTranslationTarget, type RenderSubmitButtonProps, 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 };
|