@wise/dynamic-flow-client-internal 5.17.0 → 5.19.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/i18n/zh_CN.json +2 -2
- package/build/main.js +287 -233
- package/build/main.mjs +249 -195
- package/build/tsconfig.types.tsbuildinfo +1 -1
- package/build/types/dynamicFlow/DynamicFlowWiseProps.d.ts +1 -1
- package/build/types/dynamicFlow/DynamicFlowWiseProps.d.ts.map +1 -1
- package/build/types/dynamicFlow/context-menu/useDFContextMenu.d.ts.map +1 -1
- package/build/types/dynamicFlow/telemetry/dispatchAnalyticsEvent.d.ts +9 -0
- package/build/types/dynamicFlow/telemetry/dispatchAnalyticsEvent.d.ts.map +1 -0
- package/build/types/dynamicFlow/telemetry/getTrackEvent.d.ts.map +1 -1
- package/build/types/dynamicFlow/useCreateSnackBar.d.ts +7 -0
- package/build/types/dynamicFlow/useCreateSnackBar.d.ts.map +1 -0
- package/build/types/dynamicFlow/useWiseToCoreProps.d.ts +1 -1
- package/build/types/dynamicFlow/useWiseToCoreProps.d.ts.map +1 -1
- package/package.json +28 -28
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DynamicFlowProps as DynamicFlowCoreProps } from '@wise/dynamic-flow-client';
|
|
2
2
|
import { Prettify, MakeOptional } from './DynamicFlow';
|
|
3
|
-
export type DynamicFlowWiseProps = Prettify<MakeOptional<Omit<DynamicFlowCoreProps, 'httpClient'>, 'renderers' | 'onLink'> & {
|
|
3
|
+
export type DynamicFlowWiseProps = Prettify<MakeOptional<Omit<DynamicFlowCoreProps, 'httpClient'>, 'renderers' | 'onLink' | 'onNotification'> & {
|
|
4
4
|
className?: string;
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use `features` prop with `hideStepTitle` instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicFlowWiseProps.d.ts","sourceRoot":"","sources":["../../../src/dynamicFlow/DynamicFlowWiseProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAE1F,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CACzC,YAAY,
|
|
1
|
+
{"version":3,"file":"DynamicFlowWiseProps.d.ts","sourceRoot":"","sources":["../../../src/dynamicFlow/DynamicFlowWiseProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAE1F,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CACzC,YAAY,CACV,IAAI,CAAC,oBAAoB,EAAE,YAAY,CAAC,EACxC,WAAW,GAAG,QAAQ,GAAG,gBAAgB,CAC1C,GAAG;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IACjD,WAAW,CAAC,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;CAC/C,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDFContextMenu.d.ts","sourceRoot":"","sources":["../../../../src/dynamicFlow/context-menu/useDFContextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAIlE,eAAO,MAAM,gBAAgB,GAAI,YAAY;IAC3C,cAAc,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IAClC,mBAAmB,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;CACjD;;;
|
|
1
|
+
{"version":3,"file":"useDFContextMenu.d.ts","sourceRoot":"","sources":["../../../../src/dynamicFlow/context-menu/useDFContextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAIlE,eAAO,MAAM,gBAAgB,GAAI,YAAY;IAC3C,cAAc,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IAClC,mBAAmB,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;CACjD;;;CAgEA,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
mixpanel?: {
|
|
4
|
+
track: (eventName: string, properties?: Record<string, unknown>) => void;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare const dispatchAnalyticsEvent: (eventName: string, properties?: Record<string, unknown>) => void;
|
|
9
|
+
//# sourceMappingURL=dispatchAnalyticsEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispatchAnalyticsEvent.d.ts","sourceRoot":"","sources":["../../../../src/dynamicFlow/telemetry/dispatchAnalyticsEvent.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,QAAQ,CAAC,EAAE;YACT,KAAK,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;SAC1E,CAAC;KACH;CACF;AAED,eAAO,MAAM,sBAAsB,GACjC,WAAW,MAAM,EACjB,aAAa,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KACnC,IASF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTrackEvent.d.ts","sourceRoot":"","sources":["../../../../src/dynamicFlow/telemetry/getTrackEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAA8B,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"getTrackEvent.d.ts","sourceRoot":"","sources":["../../../../src/dynamicFlow/telemetry/getTrackEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAA8B,MAAM,2BAA2B,CAAC;AAK9F,KAAK,OAAO,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAE3C,eAAO,MAAM,aAAa,GAAI,SAAS,OAAO,EAAE,aAAa,OAAO,KAAG,OAWtE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { useSnackBarIfAvailable } from '@wise/dynamic-flow-renderers';
|
|
2
|
+
/**
|
|
3
|
+
* Wrapper around `useSnackBarIfAvailable` so tests can mock this module without
|
|
4
|
+
* mocking `@wise/dynamic-flow-renderers` directly.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useCreateSnackBar: () => ReturnType<typeof useSnackBarIfAvailable>;
|
|
7
|
+
//# sourceMappingURL=useCreateSnackBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateSnackBar.d.ts","sourceRoot":"","sources":["../../../src/dynamicFlow/useCreateSnackBar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,UAAU,CAAC,OAAO,sBAAsB,CAG5E,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import type { DynamicFlowProps } from '@wise/dynamic-flow-client';
|
|
1
2
|
import { DynamicFlowWiseProps } from './DynamicFlowWiseProps';
|
|
2
|
-
import { DynamicFlowProps } from '@wise/dynamic-flow-client';
|
|
3
3
|
export declare const useWiseToCoreProps: (props: DynamicFlowWiseProps) => DynamicFlowProps;
|
|
4
4
|
//# sourceMappingURL=useWiseToCoreProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWiseToCoreProps.d.ts","sourceRoot":"","sources":["../../../src/dynamicFlow/useWiseToCoreProps.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useWiseToCoreProps.d.ts","sourceRoot":"","sources":["../../../src/dynamicFlow/useWiseToCoreProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAO9D,eAAO,MAAM,kBAAkB,GAAI,OAAO,oBAAoB,KAAG,gBAiChE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client-internal",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.19.0",
|
|
4
4
|
"description": "Dynamic Flow web client for Wise",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -31,46 +31,46 @@
|
|
|
31
31
|
"url": "git+https://github.com/transferwise/dynamic-flow.git"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@chromatic-com/storybook": "^5.1
|
|
35
|
-
"@formatjs/cli": "^6.
|
|
36
|
-
"@storybook/addon-a11y": "^10.
|
|
37
|
-
"@storybook/addon-docs": "^10.
|
|
38
|
-
"@storybook/addon-links": "^10.
|
|
39
|
-
"@storybook/react-vite": "^10.
|
|
34
|
+
"@chromatic-com/storybook": "^5.2.1",
|
|
35
|
+
"@formatjs/cli": "^6.16.3",
|
|
36
|
+
"@storybook/addon-a11y": "^10.4.1",
|
|
37
|
+
"@storybook/addon-docs": "^10.4.1",
|
|
38
|
+
"@storybook/addon-links": "^10.4.1",
|
|
39
|
+
"@storybook/react-vite": "^10.4.1",
|
|
40
40
|
"@testing-library/dom": "^10.4.1",
|
|
41
|
-
"@vitejs/plugin-react": "^5.2.0",
|
|
42
41
|
"@testing-library/jest-dom": "^6.9.1",
|
|
43
42
|
"@testing-library/react": "^16.3.2",
|
|
44
43
|
"@testing-library/user-event": "^14.6.1",
|
|
45
|
-
"@transferwise/components": "^46.
|
|
44
|
+
"@transferwise/components": "^46.144.0",
|
|
46
45
|
"@transferwise/formatting": "^2.14.1",
|
|
47
46
|
"@transferwise/icons": "4.4.3",
|
|
48
|
-
"@types/react": "^19.2.
|
|
47
|
+
"@types/react": "^19.2.15",
|
|
49
48
|
"@types/react-dom": "^19.2.3",
|
|
50
|
-
"@
|
|
51
|
-
"@wise/
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
49
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
50
|
+
"@wise/art": "^2.30.3",
|
|
51
|
+
"@wise/components-theming": "^1.10.2",
|
|
52
|
+
"esbuild": "^0.28.1",
|
|
53
|
+
"eslint-plugin-storybook": "^10.4.1",
|
|
54
|
+
"framer-motion": "^12.40.0",
|
|
55
|
+
"npm-run-all2": "^9.0.2",
|
|
56
|
+
"postcss": "^8.5.15",
|
|
57
57
|
"postcss-cli": "^11.0.1",
|
|
58
58
|
"postcss-import": "^16.1.1",
|
|
59
|
-
"react": "19.2.
|
|
60
|
-
"react-dom": "19.2.
|
|
61
|
-
"react-intl": "
|
|
62
|
-
"storybook": "^10.
|
|
59
|
+
"react": "19.2.6",
|
|
60
|
+
"react-dom": "19.2.6",
|
|
61
|
+
"react-intl": "7.1.14",
|
|
62
|
+
"storybook": "^10.4.1",
|
|
63
63
|
"stylelint": "^16.26.1",
|
|
64
64
|
"stylelint-config-standard": "^36.0.1",
|
|
65
65
|
"stylelint-no-unsupported-browser-features": "^8.1.1",
|
|
66
66
|
"stylelint-value-no-unknown-custom-properties": "^6.1.1",
|
|
67
|
-
"tsx": "^4.
|
|
67
|
+
"tsx": "^4.22.3",
|
|
68
68
|
"typescript": "^5.9.3",
|
|
69
|
-
"vite": "^8.0.
|
|
70
|
-
"vitest": "^4.1.
|
|
69
|
+
"vite": "^8.0.14",
|
|
70
|
+
"vitest": "^4.1.7",
|
|
71
71
|
"@wise/dynamic-flow-fixtures": "0.0.1",
|
|
72
|
-
"@wise/dynamic-flow-
|
|
73
|
-
"@wise/dynamic-flow-
|
|
72
|
+
"@wise/dynamic-flow-types": "4.16.0",
|
|
73
|
+
"@wise/dynamic-flow-renderers": "0.0.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@transferwise/components": "^46.104.0",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"react-intl": "^6 || ^7"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@wise/dynamic-flow-
|
|
87
|
-
"@wise/dynamic-flow-
|
|
86
|
+
"@wise/dynamic-flow-types": "4.16.0",
|
|
87
|
+
"@wise/dynamic-flow-client": "5.17.0"
|
|
88
88
|
},
|
|
89
89
|
"scripts": {
|
|
90
90
|
"dev": "pnpm build:visual-tests && storybook dev -p 3005",
|