@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.js
CHANGED
|
@@ -7755,7 +7755,7 @@ var getBelowMinimumDateCheck = ({ minimum }, messageFunctions) => (value) => {
|
|
|
7755
7755
|
return null;
|
|
7756
7756
|
};
|
|
7757
7757
|
var getNotAdheringToPatternCheck = ({ pattern }, messageFunctions) => (value) => {
|
|
7758
|
-
if (isString(pattern) && isString(value) && !new RegExp(pattern).test(value)) {
|
|
7758
|
+
if (isString(pattern) && isString(value) && !new RegExp(pattern, "u").test(value)) {
|
|
7759
7759
|
return messageFunctions.pattern();
|
|
7760
7760
|
}
|
|
7761
7761
|
return null;
|
|
@@ -7926,7 +7926,7 @@ var getPerformPersistAsync = ({
|
|
|
7926
7926
|
if (json[idProperty] === void 0) {
|
|
7927
7927
|
logEvent(
|
|
7928
7928
|
"error",
|
|
7929
|
-
`Response from persist async did not contain expected property ${idProperty}
|
|
7929
|
+
`Response from persist async did not contain expected property ${idProperty}.`
|
|
7930
7930
|
);
|
|
7931
7931
|
throw new Error(genericErrorMessage);
|
|
7932
7932
|
}
|
|
@@ -11233,7 +11233,9 @@ function useDynamicFlowCore(props) {
|
|
|
11233
11233
|
etagRef.current = etag;
|
|
11234
11234
|
const validationResult = validateStep(newStep);
|
|
11235
11235
|
if (!validationResult.valid) {
|
|
11236
|
-
logEvent("
|
|
11236
|
+
logEvent("info", "The provided step does not conform to the specification.", {
|
|
11237
|
+
errors: validationResult.errors
|
|
11238
|
+
});
|
|
11237
11239
|
}
|
|
11238
11240
|
const updateComponent = (id, update) => {
|
|
11239
11241
|
const currentStepComponent = stepComponentRef.current;
|
|
@@ -13450,7 +13452,8 @@ var TextInputRenderer = {
|
|
|
13450
13452
|
minLength,
|
|
13451
13453
|
type,
|
|
13452
13454
|
validationState,
|
|
13453
|
-
value: initialValue
|
|
13455
|
+
value: initialValue,
|
|
13456
|
+
onChange
|
|
13454
13457
|
} = _a, rest = __objRest(_a, [
|
|
13455
13458
|
"id",
|
|
13456
13459
|
"control",
|
|
@@ -13464,10 +13467,19 @@ var TextInputRenderer = {
|
|
|
13464
13467
|
"minLength",
|
|
13465
13468
|
"type",
|
|
13466
13469
|
"validationState",
|
|
13467
|
-
"value"
|
|
13470
|
+
"value",
|
|
13471
|
+
"onChange"
|
|
13468
13472
|
]);
|
|
13469
13473
|
const value = initialValue != null ? initialValue : "";
|
|
13470
|
-
const inputProps = __spreadProps(__spreadValues({}, rest), {
|
|
13474
|
+
const inputProps = __spreadProps(__spreadValues({}, rest), {
|
|
13475
|
+
value,
|
|
13476
|
+
id,
|
|
13477
|
+
onChange: (newValue) => {
|
|
13478
|
+
if ((value != null ? value : "") !== (newValue != null ? newValue : "")) {
|
|
13479
|
+
onChange(newValue);
|
|
13480
|
+
}
|
|
13481
|
+
}
|
|
13482
|
+
});
|
|
13471
13483
|
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
13472
13484
|
FieldInput_default,
|
|
13473
13485
|
{
|
|
@@ -14638,7 +14650,7 @@ function isValidPattern(value, pattern) {
|
|
|
14638
14650
|
if (value === void 0 || value === null) {
|
|
14639
14651
|
return false;
|
|
14640
14652
|
}
|
|
14641
|
-
const regex = new RegExp(pattern);
|
|
14653
|
+
const regex = new RegExp(pattern, "u");
|
|
14642
14654
|
return Boolean(regex.test(value));
|
|
14643
14655
|
}
|
|
14644
14656
|
function isValidMaximum(value, maximum) {
|