@wise/dynamic-flow-client 3.28.2 → 3.28.3
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.js +9 -1
- package/build/main.min.js +1 -1
- package/build/main.mjs +9 -1
- package/build/types/legacy/layout/button/utils.d.ts +1 -1
- package/package.json +16 -16
package/build/main.mjs
CHANGED
|
@@ -8458,6 +8458,9 @@ var isPartialModelMatch = (localModel, incomingModel) => {
|
|
|
8458
8458
|
return localModel.length === incomingModel.length && localModel.every((value, index) => isPartialModelMatch(value, incomingModel[index]));
|
|
8459
8459
|
}
|
|
8460
8460
|
if (isObjectModel(localModel) && isObjectModel(incomingModel)) {
|
|
8461
|
+
if (Object.keys(localModel).length === 0 && Object.keys(incomingModel).length === 0) {
|
|
8462
|
+
return true;
|
|
8463
|
+
}
|
|
8461
8464
|
const nonNullishKeysInBoth = nonNullishKeys(localModel).filter(
|
|
8462
8465
|
(key) => nonNullishKeys(incomingModel).includes(key)
|
|
8463
8466
|
);
|
|
@@ -11661,7 +11664,7 @@ function ButtonRendererComponent({
|
|
|
11661
11664
|
block: true,
|
|
11662
11665
|
className,
|
|
11663
11666
|
disabled: isLoading || disabled,
|
|
11664
|
-
priority
|
|
11667
|
+
priority,
|
|
11665
11668
|
size: mapSize(size2),
|
|
11666
11669
|
type,
|
|
11667
11670
|
onClick,
|
|
@@ -11683,6 +11686,8 @@ var mapControl = (control) => {
|
|
|
11683
11686
|
case "primary":
|
|
11684
11687
|
case "tertiary":
|
|
11685
11688
|
return control;
|
|
11689
|
+
case "minimal":
|
|
11690
|
+
return "tertiary";
|
|
11686
11691
|
default:
|
|
11687
11692
|
return "secondary";
|
|
11688
11693
|
}
|
|
@@ -15440,6 +15445,9 @@ var priorities = {
|
|
|
15440
15445
|
};
|
|
15441
15446
|
var getButtonPriority = (control, action) => {
|
|
15442
15447
|
const actionType = action ? action.type : void 0;
|
|
15448
|
+
if (control === "minimal") {
|
|
15449
|
+
return "tertiary";
|
|
15450
|
+
}
|
|
15443
15451
|
return control != null ? control : actionType ? priorities[actionType] : "secondary";
|
|
15444
15452
|
};
|
|
15445
15453
|
var contextToType = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Action, Size } from '@wise/dynamic-flow-types';
|
|
2
|
-
export declare const getButtonPriority: (control: "primary" | "secondary" | "tertiary" | undefined, action: Action | undefined) => "primary" | "secondary" | "tertiary";
|
|
2
|
+
export declare const getButtonPriority: (control: "primary" | "secondary" | "tertiary" | "minimal" | undefined, action: Action | undefined) => "primary" | "secondary" | "tertiary";
|
|
3
3
|
export declare const getButtonType: (context: "positive" | "negative" | "neutral" | undefined, action: Action | undefined) => "positive" | "negative" | "accent";
|
|
4
4
|
export declare const getButtonTypeFromContext: (context: "positive" | "negative" | "neutral" | undefined) => "positive" | "negative" | "accent";
|
|
5
5
|
export declare const getButtonSize: (size: Size | undefined) => "sm" | "md" | "lg";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "3.28.
|
|
3
|
+
"version": "3.28.3",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.min.js",
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
"@babel/preset-typescript": "7.26.0",
|
|
36
36
|
"@chromatic-com/storybook": "3.2.2",
|
|
37
37
|
"@formatjs/cli": "^6.3.11",
|
|
38
|
-
"@storybook/addon-a11y": "^8.4.
|
|
39
|
-
"@storybook/addon-actions": "^8.4.
|
|
40
|
-
"@storybook/addon-essentials": "^8.4.
|
|
41
|
-
"@storybook/addon-interactions": "^8.4.
|
|
42
|
-
"@storybook/addon-links": "^8.4.
|
|
38
|
+
"@storybook/addon-a11y": "^8.4.6",
|
|
39
|
+
"@storybook/addon-actions": "^8.4.6",
|
|
40
|
+
"@storybook/addon-essentials": "^8.4.6",
|
|
41
|
+
"@storybook/addon-interactions": "^8.4.6",
|
|
42
|
+
"@storybook/addon-links": "^8.4.6",
|
|
43
43
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
44
|
-
"@storybook/manager-api": "^8.4.
|
|
45
|
-
"@storybook/react": "^8.4.
|
|
46
|
-
"@storybook/react-webpack5": "^8.4.
|
|
47
|
-
"@storybook/test": "^8.4.
|
|
48
|
-
"@storybook/types": "^8.4.
|
|
44
|
+
"@storybook/manager-api": "^8.4.6",
|
|
45
|
+
"@storybook/react": "^8.4.6",
|
|
46
|
+
"@storybook/react-webpack5": "^8.4.6",
|
|
47
|
+
"@storybook/test": "^8.4.6",
|
|
48
|
+
"@storybook/types": "^8.4.6",
|
|
49
49
|
"@testing-library/dom": "10.4.0",
|
|
50
50
|
"@testing-library/jest-dom": "6.6.3",
|
|
51
51
|
"@testing-library/react": "16.0.1",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@transferwise/formatting": "^2.13.0",
|
|
55
55
|
"@transferwise/icons": "3.15.0",
|
|
56
56
|
"@transferwise/neptune-css": "14.20.0",
|
|
57
|
-
"@types/node": "22.
|
|
57
|
+
"@types/node": "22.10.1",
|
|
58
58
|
"@types/jest": "29.5.14",
|
|
59
59
|
"@types/react": "18.3.12",
|
|
60
60
|
"@types/react-dom": "18.3.1",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"jest-environment-jsdom": "29.7.0",
|
|
68
68
|
"jest-fetch-mock": "^3.0.3",
|
|
69
69
|
"jest-watch-typeahead": "^2.2.2",
|
|
70
|
-
"nanoid": "5.0.
|
|
70
|
+
"nanoid": "5.0.9",
|
|
71
71
|
"npm-run-all2": "6.2.6",
|
|
72
72
|
"postcss": "^8.4.49",
|
|
73
73
|
"postcss-cli": "^11.0.0",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"react": "18.3.1",
|
|
76
76
|
"react-dom": "18.3.1",
|
|
77
77
|
"react-intl": "6.8.9",
|
|
78
|
-
"storybook": "^8.4.
|
|
79
|
-
"stylelint": "16.
|
|
78
|
+
"storybook": "^8.4.6",
|
|
79
|
+
"stylelint": "16.11.0",
|
|
80
80
|
"stylelint-config-standard": "36.0.1",
|
|
81
81
|
"stylelint-no-unsupported-browser-features": "8.0.2",
|
|
82
82
|
"stylelint-value-no-unknown-custom-properties": "6.0.1",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
100
|
"classnames": "2.5.1",
|
|
101
|
-
"nanoid": "5.0.
|
|
101
|
+
"nanoid": "5.0.9",
|
|
102
102
|
"react-webcam": "^7.2.0",
|
|
103
103
|
"screenfull": "^5.2.0",
|
|
104
104
|
"@wise/dynamic-flow-types": "2.28.1"
|