@wise/dynamic-flow-client-internal 5.12.1 → 5.13.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.
@@ -1 +1 @@
1
- {"version":3,"file":"DynamicFlow.d.ts","sourceRoot":"","sources":["../../../src/dynamicFlow/DynamicFlow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAGnE,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAElF,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KACvB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,GAAG,EAAE,CAAC;AAEP,wBAAgB,WAAW,CAAC,KAAK,EAAE,oBAAoB,2CAKtD"}
1
+ {"version":3,"file":"DynamicFlow.d.ts","sourceRoot":"","sources":["../../../src/dynamicFlow/DynamicFlow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAGnE,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAElF,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KACvB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,GAAG,EAAE,CAAC;AAEP,wBAAgB,WAAW,CAAC,KAAK,EAAE,oBAAoB,2CAatD"}
@@ -0,0 +1,14 @@
1
+ import { type MouseEvent as ReactMouseEvent } from 'react';
2
+ type MenuItem = {
3
+ label: string;
4
+ onClick: () => void;
5
+ };
6
+ export declare function useContextMenu({ title, items }: {
7
+ title: string;
8
+ items: MenuItem[];
9
+ }): {
10
+ onContextMenu: (event: ReactMouseEvent<HTMLDivElement>) => void;
11
+ contextMenu: import("react/jsx-runtime").JSX.Element | null;
12
+ };
13
+ export {};
14
+ //# sourceMappingURL=useContextMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useContextMenu.d.ts","sourceRoot":"","sources":["../../../../src/dynamicFlow/context-menu/useContextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,IAAI,eAAe,EAAoC,MAAM,OAAO,CAAC;AAE7F,KAAK,QAAQ,GAAG;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAIF,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,QAAQ,EAAE,CAAA;CAAE;2BAGrD,eAAe,CAAC,cAAc,CAAC;;EA8B9D"}
@@ -0,0 +1,9 @@
1
+ import { JsonElement, Step } from '@wise/dynamic-flow-types/spec';
2
+ export declare const useDFContextMenu: (controller: {
3
+ getCurrentStep: () => Step | null;
4
+ getSubmittableValue: () => Promise<JsonElement>;
5
+ }) => {
6
+ onContextMenu: (event: import("react").MouseEvent<HTMLDivElement>) => void;
7
+ contextMenu: import("react/jsx-runtime").JSX.Element | null;
8
+ };
9
+ //# sourceMappingURL=useDFContextMenu.d.ts.map
@@ -0,0 +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;AAGlE,eAAO,MAAM,gBAAgB,GAAI,YAAY;IAC3C,cAAc,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IAClC,mBAAmB,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;CACjD;;;CAmDA,CAAC"}
@@ -12,5 +12,5 @@ export declare const Media: ({ media, preferAvatar, size }: {
12
12
  preferAvatar?: boolean;
13
13
  size: 16 | 24 | 32 | 40 | 48 | 56 | 72;
14
14
  }) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | null | undefined;
15
- export declare const getMargin: (size: import("@wise/dynamic-flow-types/spec").Margin) => "m-b-0" | "m-b-1" | "m-b-2" | "m-b-3" | "m-b-5" | "";
15
+ export declare const getMargin: (size: import("@wise/dynamic-flow-types/spec").Margin) => "" | "m-b-0" | "m-b-1" | "m-b-2" | "m-b-3" | "m-b-5";
16
16
  //# sourceMappingURL=renderers.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client-internal",
3
- "version": "5.12.1",
3
+ "version": "5.13.0",
4
4
  "description": "Dynamic Flow web client for Wise",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.js",
@@ -31,17 +31,17 @@
31
31
  "url": "git+https://github.com/transferwise/dynamic-flow.git"
32
32
  },
33
33
  "devDependencies": {
34
- "@chromatic-com/storybook": "5.0.1",
35
- "@formatjs/cli": "^6.13.1",
36
- "@storybook/addon-a11y": "^10.2.19",
37
- "@storybook/addon-docs": "^10.2.19",
38
- "@storybook/addon-links": "^10.2.19",
39
- "@storybook/react-vite": "10.2.19",
34
+ "@chromatic-com/storybook": "5.0.2",
35
+ "@formatjs/cli": "^6.14.0",
36
+ "@storybook/addon-a11y": "^10.3.1",
37
+ "@storybook/addon-docs": "^10.3.1",
38
+ "@storybook/addon-links": "^10.3.1",
39
+ "@storybook/react-vite": "10.3.1",
40
40
  "@testing-library/dom": "10.4.1",
41
41
  "@testing-library/jest-dom": "6.9.1",
42
42
  "@testing-library/react": "16.3.2",
43
43
  "@testing-library/user-event": "14.6.1",
44
- "@transferwise/components": "^46.132.0",
44
+ "@transferwise/components": "^46.132.1",
45
45
  "@transferwise/formatting": "^2.13.7",
46
46
  "@transferwise/icons": "4.3.0",
47
47
  "@types/react": "18.3.28",
@@ -49,8 +49,8 @@
49
49
  "@wise/art": "2.29.0",
50
50
  "@wise/components-theming": "^1.10.1",
51
51
  "esbuild": "0.27.0",
52
- "eslint-plugin-storybook": "10.2.19",
53
- "framer-motion": "^12.36.0",
52
+ "eslint-plugin-storybook": "10.3.1",
53
+ "framer-motion": "^12.38.0",
54
54
  "npm-run-all2": "8.0.4",
55
55
  "postcss": "^8.5.8",
56
56
  "postcss-cli": "^11.0.1",
@@ -58,7 +58,7 @@
58
58
  "react": "18.3.1",
59
59
  "react-dom": "18.3.1",
60
60
  "react-intl": "6.8.9",
61
- "storybook": "^10.2.19",
61
+ "storybook": "^10.3.1",
62
62
  "stylelint": "16.26.1",
63
63
  "stylelint-config-standard": "36.0.1",
64
64
  "stylelint-no-unsupported-browser-features": "8.1.1",
@@ -67,9 +67,9 @@
67
67
  "typescript": "5.9.3",
68
68
  "vitest": "4.1.0",
69
69
  "vitest-fetch-mock": "0.4.5",
70
- "@wise/dynamic-flow-renderers": "0.0.0",
71
70
  "@wise/dynamic-flow-fixtures": "0.0.1",
72
- "@wise/dynamic-flow-types": "4.11.0"
71
+ "@wise/dynamic-flow-types": "4.12.0",
72
+ "@wise/dynamic-flow-renderers": "0.0.0"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "@transferwise/components": "^46.104.0",
@@ -83,8 +83,8 @@
83
83
  "react-intl": "^6 || ^7"
84
84
  },
85
85
  "dependencies": {
86
- "@wise/dynamic-flow-client": "5.12.1",
87
- "@wise/dynamic-flow-types": "4.11.0"
86
+ "@wise/dynamic-flow-types": "4.12.0",
87
+ "@wise/dynamic-flow-client": "5.13.0"
88
88
  },
89
89
  "scripts": {
90
90
  "dev": "pnpm build:visual-tests && storybook dev -p 3005",