@wise/dynamic-flow-client 4.3.12 → 4.3.13

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 CHANGED
@@ -2872,6 +2872,9 @@ var getRequiredCheck = (required, messageFunctions) => (value) => {
2872
2872
  if (isArray(value) && value.length === 0) {
2873
2873
  return messageFunctions.required();
2874
2874
  }
2875
+ if (value === "") {
2876
+ return messageFunctions.required();
2877
+ }
2875
2878
  return isNullish(value) ? messageFunctions.required() : null;
2876
2879
  };
2877
2880
 
@@ -4137,8 +4140,7 @@ var createTextInputComponent = (textInputProps, updateComponent) => {
4137
4140
  return this.getSubmittableValueSync();
4138
4141
  },
4139
4142
  getSubmittableValueSync() {
4140
- var _a2;
4141
- return (_a2 = this.getLocalValue()) != null ? _a2 : null;
4143
+ return this.getLocalValue() || null;
4142
4144
  },
4143
4145
  getSummary() {
4144
4146
  return summariser(this.getLocalValue());
@@ -4184,6 +4186,9 @@ var createTextInputComponent = (textInputProps, updateComponent) => {
4184
4186
  if (getValidationErrors(updatedValue).length === 0) {
4185
4187
  validateAsync(this.validationAsyncState, updatedValue);
4186
4188
  }
4189
+ if (!updatedValue) {
4190
+ validateAsync.cancel();
4191
+ }
4187
4192
  }
4188
4193
  });
4189
4194
  }
package/build/main.mjs CHANGED
@@ -2829,6 +2829,9 @@ var getRequiredCheck = (required, messageFunctions) => (value) => {
2829
2829
  if (isArray(value) && value.length === 0) {
2830
2830
  return messageFunctions.required();
2831
2831
  }
2832
+ if (value === "") {
2833
+ return messageFunctions.required();
2834
+ }
2832
2835
  return isNullish(value) ? messageFunctions.required() : null;
2833
2836
  };
2834
2837
 
@@ -4094,8 +4097,7 @@ var createTextInputComponent = (textInputProps, updateComponent) => {
4094
4097
  return this.getSubmittableValueSync();
4095
4098
  },
4096
4099
  getSubmittableValueSync() {
4097
- var _a2;
4098
- return (_a2 = this.getLocalValue()) != null ? _a2 : null;
4100
+ return this.getLocalValue() || null;
4099
4101
  },
4100
4102
  getSummary() {
4101
4103
  return summariser(this.getLocalValue());
@@ -4141,6 +4143,9 @@ var createTextInputComponent = (textInputProps, updateComponent) => {
4141
4143
  if (getValidationErrors(updatedValue).length === 0) {
4142
4144
  validateAsync(this.validationAsyncState, updatedValue);
4143
4145
  }
4146
+ if (!updatedValue) {
4147
+ validateAsync.cancel();
4148
+ }
4144
4149
  }
4145
4150
  });
4146
4151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "4.3.12",
3
+ "version": "4.3.13",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.js",
@@ -53,17 +53,17 @@
53
53
  "@testing-library/jest-dom": "6.6.3",
54
54
  "@testing-library/react": "16.3.0",
55
55
  "@testing-library/user-event": "14.6.1",
56
- "@transferwise/components": "46.94.2",
56
+ "@transferwise/components": "46.95.1",
57
57
  "@transferwise/formatting": "^2.13.1",
58
58
  "@transferwise/icons": "3.19.1",
59
- "@transferwise/neptune-css": "14.23.0",
60
- "@types/node": "22.14.0",
59
+ "@transferwise/neptune-css": "14.24.0",
60
+ "@types/node": "22.14.1",
61
61
  "@types/jest": "29.5.14",
62
62
  "@types/react": "18.3.20",
63
63
  "@types/react-dom": "18.3.6",
64
64
  "@types/react-intl": "3.0.0",
65
65
  "@wise/art": "2.20.0",
66
- "@wise/components-theming": "^1.6.1",
66
+ "@wise/components-theming": "^1.6.2",
67
67
  "babel-jest": "29.7.0",
68
68
  "esbuild": "0.25.2",
69
69
  "jest": "29.7.0",
@@ -84,7 +84,7 @@
84
84
  "stylelint-value-no-unknown-custom-properties": "6.0.1",
85
85
  "tsx": "4.19.3",
86
86
  "typescript": "5.8.3",
87
- "webpack": "5.98.0",
87
+ "webpack": "5.99.5",
88
88
  "@wise/dynamic-flow-fixtures": "0.0.1",
89
89
  "@wise/dynamic-flow-renderers": "0.0.0"
90
90
  },