@wise/dynamic-flow-client 5.2.0 → 5.4.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/build/main.css +16 -2
- package/build/main.js +816 -440
- package/build/main.mjs +821 -445
- package/build/types/domain/components/FormattedValueComponent.d.ts +16 -0
- package/build/types/domain/components/RootDomainComponent.d.ts +11 -3
- package/build/types/domain/components/SelectInputComponent.d.ts +1 -2
- package/build/types/domain/components/SubflowDomainComponent.d.ts +16 -0
- package/build/types/domain/components/step/StepDomainComponent.d.ts +3 -3
- package/build/types/domain/features/eventNames.d.ts +1 -0
- package/build/types/domain/features/events.d.ts +2 -1
- package/build/types/domain/mappers/mapStepToComponent.d.ts +2 -0
- package/build/types/domain/mappers/schema/objectSchemaToComponent/objectSchemaToFormattedValueComponent.d.ts +7 -0
- package/build/types/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts +25 -0
- package/build/types/domain/mappers/schema/persistAsyncSchemaToComponent.d.ts +25 -0
- package/build/types/domain/prefetching/request-cache.d.ts +7 -7
- package/build/types/domain/types.d.ts +18 -3
- package/build/types/flow/executeRequest.d.ts +39 -0
- package/build/types/flow/executeSubmission.d.ts +6 -33
- package/build/types/flow/getResponseType.d.ts +1 -1
- package/build/types/flow/getSafeHttpClient.d.ts +1 -0
- package/build/types/flow/handleErrorResponse.d.ts +3 -0
- package/build/types/flow/response-utils.d.ts +2 -1
- package/build/types/getSubflowCallbacks.d.ts +14 -0
- package/build/types/index.d.ts +7 -3
- package/build/types/renderers/mappers/formattedValueComponentToProps.d.ts +4 -0
- package/build/types/renderers/mappers/subflowComponentToRendererProps.d.ts +4 -0
- package/build/types/test-utils/DynamicFlowWiseModal.d.ts +12 -0
- package/build/types/test-utils/getMergedTestRenderers.d.ts +2 -0
- package/build/types/types.d.ts +3 -11
- package/build/types/useDynamicFlow.d.ts +12 -0
- package/build/types/{useDynamicFlowCore.d.ts → useDynamicFlowController.d.ts} +3 -2
- package/build/types/useDynamicFlowModal.d.ts +16 -0
- package/build/types/utils/{scrollToTop.d.ts → getScrollToTop.d.ts} +1 -1
- package/package.json +22 -22
- package/build/types/DynamicFormCore.d.ts +0 -11
- package/build/types/flow/makeSubmissionRequest.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -32,30 +32,30 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@chromatic-com/storybook": "4.1.3",
|
|
35
|
-
"@formatjs/cli": "^6.
|
|
36
|
-
"@storybook/addon-a11y": "^10.
|
|
37
|
-
"@storybook/addon-docs": "^10.
|
|
38
|
-
"@storybook/addon-links": "^10.
|
|
39
|
-
"@storybook/react-vite": "10.
|
|
35
|
+
"@formatjs/cli": "^6.12.0",
|
|
36
|
+
"@storybook/addon-a11y": "^10.2.0",
|
|
37
|
+
"@storybook/addon-docs": "^10.2.0",
|
|
38
|
+
"@storybook/addon-links": "^10.2.0",
|
|
39
|
+
"@storybook/react-vite": "10.2.0",
|
|
40
40
|
"@testing-library/dom": "10.4.1",
|
|
41
41
|
"@testing-library/jest-dom": "6.9.1",
|
|
42
|
-
"@testing-library/react": "16.3.
|
|
42
|
+
"@testing-library/react": "16.3.2",
|
|
43
43
|
"@testing-library/user-event": "14.6.1",
|
|
44
|
-
"@transferwise/components": "^46.
|
|
44
|
+
"@transferwise/components": "^46.121.1",
|
|
45
45
|
"@transferwise/formatting": "^2.13.4",
|
|
46
|
-
"@transferwise/icons": "4.0.
|
|
46
|
+
"@transferwise/icons": "4.0.2",
|
|
47
47
|
"@transferwise/navigation-ui": "4.41.0",
|
|
48
|
-
"@transferwise/neptune-css": "14.26.
|
|
49
|
-
"@types/node": "22.19.
|
|
48
|
+
"@transferwise/neptune-css": "14.26.1",
|
|
49
|
+
"@types/node": "22.19.7",
|
|
50
50
|
"@types/react": "18.3.27",
|
|
51
51
|
"@types/react-dom": "18.3.7",
|
|
52
52
|
"@types/react-intl": "3.0.0",
|
|
53
53
|
"@vitejs/plugin-react": "5.1.2",
|
|
54
|
-
"@wise/art": "2.
|
|
55
|
-
"@wise/components-theming": "^1.
|
|
54
|
+
"@wise/art": "2.26.0",
|
|
55
|
+
"@wise/components-theming": "^1.10.0",
|
|
56
56
|
"esbuild": "0.27.0",
|
|
57
|
-
"eslint-plugin-storybook": "10.
|
|
58
|
-
"framer-motion": "^12.
|
|
57
|
+
"eslint-plugin-storybook": "10.2.0",
|
|
58
|
+
"framer-motion": "^12.29.0",
|
|
59
59
|
"npm-run-all2": "8.0.4",
|
|
60
60
|
"postcss": "^8.5.6",
|
|
61
61
|
"postcss-cli": "^11.0.1",
|
|
@@ -63,17 +63,17 @@
|
|
|
63
63
|
"react": "18.3.1",
|
|
64
64
|
"react-dom": "18.3.1",
|
|
65
65
|
"react-intl": "6.8.9",
|
|
66
|
-
"storybook": "^10.
|
|
66
|
+
"storybook": "^10.2.0",
|
|
67
67
|
"stylelint": "16.26.1",
|
|
68
68
|
"stylelint-config-standard": "36.0.1",
|
|
69
69
|
"stylelint-no-unsupported-browser-features": "8.0.5",
|
|
70
|
-
"stylelint-value-no-unknown-custom-properties": "6.1.
|
|
70
|
+
"stylelint-value-no-unknown-custom-properties": "6.1.1",
|
|
71
71
|
"tsx": "4.21.0",
|
|
72
72
|
"typescript": "5.9.3",
|
|
73
|
-
"vitest": "4.0.
|
|
73
|
+
"vitest": "4.0.18",
|
|
74
74
|
"vitest-fetch-mock": "0.4.5",
|
|
75
|
-
"@wise/dynamic-flow-
|
|
76
|
-
"@wise/dynamic-flow-
|
|
75
|
+
"@wise/dynamic-flow-renderers": "0.0.0",
|
|
76
|
+
"@wise/dynamic-flow-fixtures": "0.0.1"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"@transferwise/components": "^46.104.0",
|
|
@@ -83,10 +83,10 @@
|
|
|
83
83
|
"@wise/art": "^2.19.0",
|
|
84
84
|
"react": "^18",
|
|
85
85
|
"react-dom": "^18",
|
|
86
|
-
"react-intl": "^6"
|
|
86
|
+
"react-intl": "^6 || ^7"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@wise/dynamic-flow-types": "4.
|
|
89
|
+
"@wise/dynamic-flow-types": "4.5.0"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
92
|
"dev": "EXCLUDE_VISUAL_TESTS=true pnpm storybook dev -p 3003",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DynamicFlowCoreProps, DynamicFormController } from './types';
|
|
2
|
-
import type { OnValueChange } from './domain/types';
|
|
3
|
-
/**
|
|
4
|
-
* DynamicFormCore is like DynamicFlowCore, but it also accepts a ForwardedRef.
|
|
5
|
-
* This ref conforms to the DynamicFormController type, containing two functions: `getValue` and `validate`.
|
|
6
|
-
* @experimental This component may be changed in the future without notice.
|
|
7
|
-
*/
|
|
8
|
-
export declare const DynamicFormCore: import("react").ForwardRefExoticComponent<Omit<DynamicFlowCoreProps, "onCompletion"> & {
|
|
9
|
-
onValueChange?: OnValueChange;
|
|
10
|
-
onCompletion?: DynamicFlowCoreProps["onCompletion"];
|
|
11
|
-
} & import("react").RefAttributes<DynamicFormController>>;
|