@factorialco/fcode-react-forms 3.2.0 → 3.3.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 +5 -6
- package/dist/components/fcode-form/fcode-form.utils.d.ts +1 -1
- package/dist/fcode-form.cjs.js +59 -59
- package/dist/fcode-form.cjs.js.map +1 -1
- package/dist/fcode-form.es.js +1930 -1919
- package/dist/fcode-form.es.js.map +1 -1
- package/dist/fcode-form.umd.js +68 -68
- package/dist/fcode-form.umd.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -33,10 +33,10 @@ export interface FcodeFormProps extends Omit<FcodeJsonSchemaFormProps, 'onError'
|
|
|
33
33
|
async?: boolean;
|
|
34
34
|
/**
|
|
35
35
|
* A function called when the form is successfully submitted. Passing it
|
|
36
|
-
* replaces the default
|
|
37
|
-
* `fcode-forms-on-submit-success` event is emitted
|
|
38
|
-
*
|
|
39
|
-
*
|
|
36
|
+
* replaces the default outcome: no success view is rendered and no
|
|
37
|
+
* `fcode-forms-on-submit-success` event is emitted. By default the form is
|
|
38
|
+
* replaced by the result's `message` (markdown) or a generic confirmation.
|
|
39
|
+
* The result's `redirect` is followed either way, before this runs.
|
|
40
40
|
* Receives the following parameters:
|
|
41
41
|
* - formId: The ID of the form.
|
|
42
42
|
* - processExecutionResult: The result of the process execution as a generic object.
|
|
@@ -48,8 +48,7 @@ export interface FcodeFormProps extends Omit<FcodeJsonSchemaFormProps, 'onError'
|
|
|
48
48
|
* the outcome entirely to it, so a host that only needs to react to the
|
|
49
49
|
* submission (navigate, refresh, mark something installed) still shows the
|
|
50
50
|
* result's `message`. Only the view comes back: the
|
|
51
|
-
* `fcode-forms-on-submit-success` event
|
|
52
|
-
* since a host with its own callback owns navigation. Ignored without
|
|
51
|
+
* `fcode-forms-on-submit-success` event stays default-only. Ignored without
|
|
53
52
|
* `onSuccess` — the view is the default already.
|
|
54
53
|
*/
|
|
55
54
|
keepSuccessView?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RedirectConfig, GenericObjectType } from '../../types';
|
|
2
2
|
export declare const emitEvent: (name: string, data: any) => void;
|
|
3
|
-
export declare const manageRedirect: (redirectConfig: RedirectConfig) => void;
|
|
3
|
+
export declare const manageRedirect: (redirectConfig: RedirectConfig, assign?: (url: string) => void) => void;
|
|
4
4
|
export declare const onNextStepDefault: (formId: string, previousProcessExecutionResult: GenericObjectType) => void;
|
|
5
5
|
export declare const DEFAULT_SUCCESS_MESSAGE = "The form has been successfully submitted";
|
|
6
6
|
/**
|