@factorialco/fcode-react-forms 3.0.0 → 3.1.0
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/components/fcode-form/fcode-form.d.ts +11 -1
- package/dist/fcode-form.cjs.js +50 -50
- package/dist/fcode-form.cjs.js.map +1 -1
- package/dist/fcode-form.es.js +2615 -2610
- package/dist/fcode-form.es.js.map +1 -1
- package/dist/fcode-form.umd.js +50 -50
- package/dist/fcode-form.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -43,6 +43,16 @@ export interface FcodeFormProps extends Omit<FcodeJsonSchemaFormProps, 'onError'
|
|
|
43
43
|
* - formSubmittedData: The data submitted with the form.
|
|
44
44
|
*/
|
|
45
45
|
onSuccess?: (formId: string, processExecutionResult: GenericObjectType, formSubmittedData: FormData) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Renders the default success view after `onSuccess` runs instead of leaving
|
|
48
|
+
* the outcome entirely to it, so a host that only needs to react to the
|
|
49
|
+
* submission (navigate, refresh, mark something installed) still shows the
|
|
50
|
+
* result's `message`. Only the view comes back: the
|
|
51
|
+
* `fcode-forms-on-submit-success` event and `redirect` stay default-only,
|
|
52
|
+
* since a host with its own callback owns navigation. Ignored without
|
|
53
|
+
* `onSuccess` — the view is the default already.
|
|
54
|
+
*/
|
|
55
|
+
keepSuccessView?: boolean;
|
|
46
56
|
/**
|
|
47
57
|
* A function called when the next step of the form is called.
|
|
48
58
|
*/
|
|
@@ -82,7 +92,7 @@ export interface FcodeFormState {
|
|
|
82
92
|
variables: GenericObjectType;
|
|
83
93
|
}
|
|
84
94
|
declare const FcodeForm: {
|
|
85
|
-
({ hostUrl, headers, team, processId, processVersion, onNextStep, onSuccess, onError, markdownComponents, defaultValues, async, disabled, readonly, options, ...rest }: FcodeFormProps): import("react").JSX.Element;
|
|
95
|
+
({ hostUrl, headers, team, processId, processVersion, onNextStep, onSuccess, keepSuccessView, onError, markdownComponents, defaultValues, async, disabled, readonly, options, ...rest }: FcodeFormProps): import("react").JSX.Element;
|
|
86
96
|
displayName: string;
|
|
87
97
|
};
|
|
88
98
|
export default FcodeForm;
|