@wise/dynamic-flow-client 3.29.5 → 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.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("warning", "Invalid step.", { errors: validationResult.errors });
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;
@@ -14630,7 +14632,7 @@ function isValidPattern(value, pattern) {
14630
14632
  if (value === void 0 || value === null) {
14631
14633
  return false;
14632
14634
  }
14633
- const regex = new RegExp(pattern);
14635
+ const regex = new RegExp(pattern, "u");
14634
14636
  return Boolean(regex.test(value));
14635
14637
  }
14636
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.29.5",
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.14",
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.3",
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.84.1",
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.2",
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.4.49",
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.12.0",
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.2",
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"