@wise/dynamic-flow-client-internal 4.36.1 → 4.36.2
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 +8 -2
- package/build/main.mjs +8 -2
- package/package.json +8 -8
package/build/main.js
CHANGED
|
@@ -881,6 +881,12 @@ function filterAndSortDecisionOptions(selectOptions, query) {
|
|
|
881
881
|
)) != null ? _d : false;
|
|
882
882
|
});
|
|
883
883
|
return [...filteredItems].sort((a, b) => {
|
|
884
|
+
if (a.disabled && !b.disabled) {
|
|
885
|
+
return 1;
|
|
886
|
+
}
|
|
887
|
+
if (!a.disabled && b.disabled) {
|
|
888
|
+
return -1;
|
|
889
|
+
}
|
|
884
890
|
const aTitleUpper = a.title.toUpperCase();
|
|
885
891
|
const bTitleUpper = b.title.toUpperCase();
|
|
886
892
|
const aTitleStarts = aTitleUpper.startsWith(upperQuery);
|
|
@@ -982,7 +988,7 @@ var FilteredDecisionList = (props) => {
|
|
|
982
988
|
const { formatMessage } = (0, import_react_intl8.useIntl)();
|
|
983
989
|
const [query, setQuery] = (0, import_react3.useState)("");
|
|
984
990
|
const { control, options, renderDecisionList: renderDecisionList3 } = props;
|
|
985
|
-
const filteredOptions = filterAndSortDecisionOptions(options, query);
|
|
991
|
+
const filteredOptions = (query == null ? void 0 : query.length) > 0 ? filterAndSortDecisionOptions(options, query) : options;
|
|
986
992
|
const isGrouped = isGroupedDecision(options);
|
|
987
993
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
|
|
988
994
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
@@ -4568,7 +4574,7 @@ var import_dynamic_flow_client2 = require("@wise/dynamic-flow-client");
|
|
|
4568
4574
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
4569
4575
|
var appVersion = (
|
|
4570
4576
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
4571
|
-
typeof process !== "undefined" ? "4.36.
|
|
4577
|
+
typeof process !== "undefined" ? "4.36.2" : "0.0.0"
|
|
4572
4578
|
);
|
|
4573
4579
|
|
|
4574
4580
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
package/build/main.mjs
CHANGED
|
@@ -838,6 +838,12 @@ function filterAndSortDecisionOptions(selectOptions, query) {
|
|
|
838
838
|
)) != null ? _d : false;
|
|
839
839
|
});
|
|
840
840
|
return [...filteredItems].sort((a, b) => {
|
|
841
|
+
if (a.disabled && !b.disabled) {
|
|
842
|
+
return 1;
|
|
843
|
+
}
|
|
844
|
+
if (!a.disabled && b.disabled) {
|
|
845
|
+
return -1;
|
|
846
|
+
}
|
|
841
847
|
const aTitleUpper = a.title.toUpperCase();
|
|
842
848
|
const bTitleUpper = b.title.toUpperCase();
|
|
843
849
|
const aTitleStarts = aTitleUpper.startsWith(upperQuery);
|
|
@@ -939,7 +945,7 @@ var FilteredDecisionList = (props) => {
|
|
|
939
945
|
const { formatMessage } = useIntl4();
|
|
940
946
|
const [query, setQuery] = useState3("");
|
|
941
947
|
const { control, options, renderDecisionList: renderDecisionList3 } = props;
|
|
942
|
-
const filteredOptions = filterAndSortDecisionOptions(options, query);
|
|
948
|
+
const filteredOptions = (query == null ? void 0 : query.length) > 0 ? filterAndSortDecisionOptions(options, query) : options;
|
|
943
949
|
const isGrouped = isGroupedDecision(options);
|
|
944
950
|
return /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
945
951
|
/* @__PURE__ */ jsx25(
|
|
@@ -4538,7 +4544,7 @@ import {
|
|
|
4538
4544
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
4539
4545
|
var appVersion = (
|
|
4540
4546
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
4541
|
-
typeof process !== "undefined" ? "4.36.
|
|
4547
|
+
typeof process !== "undefined" ? "4.36.2" : "0.0.0"
|
|
4542
4548
|
);
|
|
4543
4549
|
|
|
4544
4550
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client-internal",
|
|
3
|
-
"version": "4.36.
|
|
3
|
+
"version": "4.36.2",
|
|
4
4
|
"description": "Dynamic Flow web client for Wise",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"@babel/preset-env": "7.28.5",
|
|
37
37
|
"@babel/preset-react": "7.28.5",
|
|
38
38
|
"@babel/preset-typescript": "7.28.5",
|
|
39
|
-
"@chromatic-com/storybook": "4.1.
|
|
39
|
+
"@chromatic-com/storybook": "4.1.2",
|
|
40
40
|
"@formatjs/cli": "^6.7.4",
|
|
41
|
-
"@storybook/react-vite": "9.1.
|
|
41
|
+
"@storybook/react-vite": "9.1.16",
|
|
42
42
|
"@testing-library/dom": "10.4.1",
|
|
43
43
|
"@testing-library/jest-dom": "6.9.1",
|
|
44
44
|
"@testing-library/react": "16.3.0",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"babel-jest": "30.2.0",
|
|
56
56
|
"currency-flags": "4.0.7",
|
|
57
57
|
"esbuild": "0.25.9",
|
|
58
|
-
"eslint-plugin-storybook": "9.1.
|
|
59
|
-
"framer-motion": "^12.23.
|
|
58
|
+
"eslint-plugin-storybook": "9.1.16",
|
|
59
|
+
"framer-motion": "^12.23.24",
|
|
60
60
|
"jest": "30.2.0",
|
|
61
61
|
"jest-environment-jsdom": "30.2.0",
|
|
62
62
|
"jest-fetch-mock": "^3.0.3",
|
|
@@ -68,16 +68,16 @@
|
|
|
68
68
|
"react": "18.3.1",
|
|
69
69
|
"react-dom": "18.3.1",
|
|
70
70
|
"react-intl": "6.8.9",
|
|
71
|
-
"storybook": "^9.1.
|
|
71
|
+
"storybook": "^9.1.16",
|
|
72
72
|
"stylelint": "16.25.0",
|
|
73
73
|
"stylelint-config-standard": "36.0.1",
|
|
74
74
|
"stylelint-no-unsupported-browser-features": "8.0.5",
|
|
75
75
|
"stylelint-value-no-unknown-custom-properties": "6.0.1",
|
|
76
76
|
"tsx": "4.20.6",
|
|
77
77
|
"typescript": "5.9.3",
|
|
78
|
-
"@wise/dynamic-flow-
|
|
78
|
+
"@wise/dynamic-flow-fixtures": "0.0.1",
|
|
79
79
|
"@wise/dynamic-flow-types": "3.18.0",
|
|
80
|
-
"@wise/dynamic-flow-
|
|
80
|
+
"@wise/dynamic-flow-renderers": "0.0.0"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"@transferwise/components": "^46.104.0",
|