@wise/dynamic-flow-client 3.29.4 → 3.30.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.js +19 -7
- package/build/main.min.js +1 -1
- package/build/main.mjs +19 -7
- package/package.json +8 -8
package/build/main.mjs
CHANGED
|
@@ -7731,7 +7731,7 @@ var getBelowMinimumDateCheck = ({ minimum }, messageFunctions) => (value) => {
|
|
|
7731
7731
|
return null;
|
|
7732
7732
|
};
|
|
7733
7733
|
var getNotAdheringToPatternCheck = ({ pattern }, messageFunctions) => (value) => {
|
|
7734
|
-
if (isString(pattern) && isString(value) && !new RegExp(pattern).test(value)) {
|
|
7734
|
+
if (isString(pattern) && isString(value) && !new RegExp(pattern, "u").test(value)) {
|
|
7735
7735
|
return messageFunctions.pattern();
|
|
7736
7736
|
}
|
|
7737
7737
|
return null;
|
|
@@ -7902,7 +7902,7 @@ var getPerformPersistAsync = ({
|
|
|
7902
7902
|
if (json[idProperty] === void 0) {
|
|
7903
7903
|
logEvent(
|
|
7904
7904
|
"error",
|
|
7905
|
-
`Response from persist async did not contain expected property ${idProperty}
|
|
7905
|
+
`Response from persist async did not contain expected property ${idProperty}.`
|
|
7906
7906
|
);
|
|
7907
7907
|
throw new Error(genericErrorMessage);
|
|
7908
7908
|
}
|
|
@@ -11209,7 +11209,9 @@ function useDynamicFlowCore(props) {
|
|
|
11209
11209
|
etagRef.current = etag;
|
|
11210
11210
|
const validationResult = validateStep(newStep);
|
|
11211
11211
|
if (!validationResult.valid) {
|
|
11212
|
-
logEvent("
|
|
11212
|
+
logEvent("info", "The provided step does not conform to the specification.", {
|
|
11213
|
+
errors: validationResult.errors
|
|
11214
|
+
});
|
|
11213
11215
|
}
|
|
11214
11216
|
const updateComponent = (id, update) => {
|
|
11215
11217
|
const currentStepComponent = stepComponentRef.current;
|
|
@@ -13432,7 +13434,8 @@ var TextInputRenderer = {
|
|
|
13432
13434
|
minLength,
|
|
13433
13435
|
type,
|
|
13434
13436
|
validationState,
|
|
13435
|
-
value: initialValue
|
|
13437
|
+
value: initialValue,
|
|
13438
|
+
onChange
|
|
13436
13439
|
} = _a, rest = __objRest(_a, [
|
|
13437
13440
|
"id",
|
|
13438
13441
|
"control",
|
|
@@ -13446,10 +13449,19 @@ var TextInputRenderer = {
|
|
|
13446
13449
|
"minLength",
|
|
13447
13450
|
"type",
|
|
13448
13451
|
"validationState",
|
|
13449
|
-
"value"
|
|
13452
|
+
"value",
|
|
13453
|
+
"onChange"
|
|
13450
13454
|
]);
|
|
13451
13455
|
const value = initialValue != null ? initialValue : "";
|
|
13452
|
-
const inputProps = __spreadProps(__spreadValues({}, rest), {
|
|
13456
|
+
const inputProps = __spreadProps(__spreadValues({}, rest), {
|
|
13457
|
+
value,
|
|
13458
|
+
id,
|
|
13459
|
+
onChange: (newValue) => {
|
|
13460
|
+
if ((value != null ? value : "") !== (newValue != null ? newValue : "")) {
|
|
13461
|
+
onChange(newValue);
|
|
13462
|
+
}
|
|
13463
|
+
}
|
|
13464
|
+
});
|
|
13453
13465
|
return /* @__PURE__ */ jsx52(
|
|
13454
13466
|
FieldInput_default,
|
|
13455
13467
|
{
|
|
@@ -14620,7 +14632,7 @@ function isValidPattern(value, pattern) {
|
|
|
14620
14632
|
if (value === void 0 || value === null) {
|
|
14621
14633
|
return false;
|
|
14622
14634
|
}
|
|
14623
|
-
const regex = new RegExp(pattern);
|
|
14635
|
+
const regex = new RegExp(pattern, "u");
|
|
14624
14636
|
return Boolean(regex.test(value));
|
|
14625
14637
|
}
|
|
14626
14638
|
function isValidMaximum(value, maximum) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.30.0",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.min.js",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"@babel/preset-react": "7.26.3",
|
|
38
38
|
"@babel/preset-typescript": "7.26.0",
|
|
39
39
|
"@chromatic-com/storybook": "3.2.3",
|
|
40
|
-
"@formatjs/cli": "^6.3.
|
|
40
|
+
"@formatjs/cli": "^6.3.15",
|
|
41
41
|
"@storybook/addon-a11y": "^8.4.7",
|
|
42
42
|
"@storybook/addon-actions": "^8.4.7",
|
|
43
43
|
"@storybook/addon-essentials": "^8.4.7",
|
|
44
44
|
"@storybook/addon-interactions": "^8.4.7",
|
|
45
45
|
"@storybook/addon-links": "^8.4.7",
|
|
46
|
-
"@storybook/addon-webpack5-compiler-babel": "^3.0.
|
|
46
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
|
|
47
47
|
"@storybook/manager-api": "^8.4.7",
|
|
48
48
|
"@storybook/react": "^8.4.7",
|
|
49
49
|
"@storybook/react-webpack5": "^8.4.7",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"@testing-library/jest-dom": "6.6.3",
|
|
54
54
|
"@testing-library/react": "16.1.0",
|
|
55
55
|
"@testing-library/user-event": "14.5.2",
|
|
56
|
-
"@transferwise/components": "46.
|
|
56
|
+
"@transferwise/components": "46.85.0",
|
|
57
57
|
"@transferwise/formatting": "^2.13.0",
|
|
58
58
|
"@transferwise/icons": "3.18.0",
|
|
59
59
|
"@transferwise/neptune-css": "14.20.1",
|
|
60
|
-
"@types/node": "22.10.
|
|
60
|
+
"@types/node": "22.10.6",
|
|
61
61
|
"@types/jest": "29.5.14",
|
|
62
62
|
"@types/react": "18.3.18",
|
|
63
63
|
"@types/react-dom": "18.3.5",
|
|
@@ -71,19 +71,19 @@
|
|
|
71
71
|
"jest-fetch-mock": "^3.0.3",
|
|
72
72
|
"jest-watch-typeahead": "^2.2.2",
|
|
73
73
|
"npm-run-all2": "7.0.2",
|
|
74
|
-
"postcss": "^8.
|
|
74
|
+
"postcss": "^8.5.1",
|
|
75
75
|
"postcss-cli": "^11.0.0",
|
|
76
76
|
"postcss-import": "^15.1.0",
|
|
77
77
|
"react": "18.3.1",
|
|
78
78
|
"react-dom": "18.3.1",
|
|
79
79
|
"react-intl": "6.8.9",
|
|
80
80
|
"storybook": "^8.4.7",
|
|
81
|
-
"stylelint": "16.
|
|
81
|
+
"stylelint": "16.13.1",
|
|
82
82
|
"stylelint-config-standard": "36.0.1",
|
|
83
83
|
"stylelint-no-unsupported-browser-features": "8.0.2",
|
|
84
84
|
"stylelint-value-no-unknown-custom-properties": "6.0.1",
|
|
85
85
|
"tsx": "4.19.2",
|
|
86
|
-
"typescript": "5.7.
|
|
86
|
+
"typescript": "5.7.3",
|
|
87
87
|
"webpack": "5.97.1",
|
|
88
88
|
"@wise/dynamic-flow-fixtures": "0.0.1",
|
|
89
89
|
"@wise/dynamic-flow-renderers": "0.0.0"
|