@wise/dynamic-flow-client 3.26.1 → 3.27.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/i18n/hu.json +1 -1
- package/build/i18n/pl.json +1 -1
- package/build/i18n/tr.json +1 -1
- package/build/main.js +25 -16
- package/build/main.min.js +1 -1
- package/build/main.mjs +25 -16
- package/package.json +3 -3
package/build/i18n/hu.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dynamicFlows.ExternalConfirmation.open": "Megnyitás új lapon",
|
|
39
39
|
"dynamicFlows.ExternalConfirmation.title": "Megerősítés",
|
|
40
40
|
"dynamicFlows.FileUploadSchema.maxFileSizeError": "Sajnos ez a fájl túl nagy. Kérünk, tölts fel egy kisebb fájlt.",
|
|
41
|
-
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "
|
|
41
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sajnos ez a fájlformátum nem támogatott. Kérünk, tölts fel egy másik fájlt.",
|
|
42
42
|
"dynamicFlows.Help.ariaLabel": "Kattints ide további információért.",
|
|
43
43
|
"dynamicFlows.MultiSelect.summary": "{first} és további {count}",
|
|
44
44
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sajnos ez a fájl túl nagy. Kérünk, tölts fel egy kisebb fájlt.",
|
package/build/i18n/pl.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dynamicFlows.ExternalConfirmation.open": "Otwórz w nowej zakładce",
|
|
39
39
|
"dynamicFlows.ExternalConfirmation.title": "Potwierdź",
|
|
40
40
|
"dynamicFlows.FileUploadSchema.maxFileSizeError": "Przepraszamy, ten plik jest zbyt duży. Prześlij mniejszy plik.",
|
|
41
|
-
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "
|
|
41
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Przepraszamy, ten format pliku nie jest obsługiwany. Prosimy przesłać inny plik.",
|
|
42
42
|
"dynamicFlows.Help.ariaLabel": "Kliknij tutaj, żeby uzyskać więcej informacji.",
|
|
43
43
|
"dynamicFlows.MultiSelect.summary": "{first} oraz {count} więcej",
|
|
44
44
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Przepraszamy, ten plik jest zbyt duży. Prześlij mniejszy plik.",
|
package/build/i18n/tr.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dynamicFlows.ExternalConfirmation.open": "Yeni sekmede aç",
|
|
39
39
|
"dynamicFlows.ExternalConfirmation.title": "Lütfen onaylayın",
|
|
40
40
|
"dynamicFlows.FileUploadSchema.maxFileSizeError": "Üzgünüz, bu dosya çok büyük. Lütfen daha küçük bir dosya yükleyin.",
|
|
41
|
-
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "
|
|
41
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Üzgünüz, bu dosya biçimi desteklenmiyor. Lütfen farklı bir dosya yükleyin.",
|
|
42
42
|
"dynamicFlows.Help.ariaLabel": "Ayrıntılar için tıklayın.",
|
|
43
43
|
"dynamicFlows.MultiSelect.summary": "{first} ve {count} daha",
|
|
44
44
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Üzgünüz, bu dosya çok büyük. Lütfen daha küçük bir dosya yükleyin.",
|
package/build/main.js
CHANGED
|
@@ -730,7 +730,7 @@ var hu_default = {
|
|
|
730
730
|
"dynamicFlows.ExternalConfirmation.open": "Megnyit\xE1s \xFAj lapon",
|
|
731
731
|
"dynamicFlows.ExternalConfirmation.title": "Meger\u0151s\xEDt\xE9s",
|
|
732
732
|
"dynamicFlows.FileUploadSchema.maxFileSizeError": "Sajnos ez a f\xE1jl t\xFAl nagy. K\xE9r\xFCnk, t\xF6lts fel egy kisebb f\xE1jlt.",
|
|
733
|
-
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "
|
|
733
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sajnos ez a f\xE1jlform\xE1tum nem t\xE1mogatott. K\xE9r\xFCnk, t\xF6lts fel egy m\xE1sik f\xE1jlt.",
|
|
734
734
|
"dynamicFlows.Help.ariaLabel": "Kattints ide tov\xE1bbi inform\xE1ci\xF3\xE9rt.",
|
|
735
735
|
"dynamicFlows.MultiSelect.summary": "{first} \xE9s tov\xE1bbi {count}",
|
|
736
736
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sajnos ez a f\xE1jl t\xFAl nagy. K\xE9r\xFCnk, t\xF6lts fel egy kisebb f\xE1jlt.",
|
|
@@ -942,7 +942,7 @@ var pl_default = {
|
|
|
942
942
|
"dynamicFlows.ExternalConfirmation.open": "Otw\xF3rz w nowej zak\u0142adce",
|
|
943
943
|
"dynamicFlows.ExternalConfirmation.title": "Potwierd\u017A",
|
|
944
944
|
"dynamicFlows.FileUploadSchema.maxFileSizeError": "Przepraszamy, ten plik jest zbyt du\u017Cy. Prze\u015Blij mniejszy plik.",
|
|
945
|
-
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "
|
|
945
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Przepraszamy, ten format pliku nie jest obs\u0142ugiwany. Prosimy przes\u0142a\u0107 inny plik.",
|
|
946
946
|
"dynamicFlows.Help.ariaLabel": "Kliknij tutaj, \u017Ceby uzyska\u0107 wi\u0119cej informacji.",
|
|
947
947
|
"dynamicFlows.MultiSelect.summary": "{first} oraz {count} wi\u0119cej",
|
|
948
948
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Przepraszamy, ten plik jest zbyt du\u017Cy. Prze\u015Blij mniejszy plik.",
|
|
@@ -1207,7 +1207,7 @@ var tr_default = {
|
|
|
1207
1207
|
"dynamicFlows.ExternalConfirmation.open": "Yeni sekmede a\xE7",
|
|
1208
1208
|
"dynamicFlows.ExternalConfirmation.title": "L\xFCtfen onaylay\u0131n",
|
|
1209
1209
|
"dynamicFlows.FileUploadSchema.maxFileSizeError": "\xDCzg\xFCn\xFCz, bu dosya \xE7ok b\xFCy\xFCk. L\xFCtfen daha k\xFC\xE7\xFCk bir dosya y\xFCkleyin.",
|
|
1210
|
-
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "
|
|
1210
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "\xDCzg\xFCn\xFCz, bu dosya bi\xE7imi desteklenmiyor. L\xFCtfen farkl\u0131 bir dosya y\xFCkleyin.",
|
|
1211
1211
|
"dynamicFlows.Help.ariaLabel": "Ayr\u0131nt\u0131lar i\xE7in t\u0131klay\u0131n.",
|
|
1212
1212
|
"dynamicFlows.MultiSelect.summary": "{first} ve {count} daha",
|
|
1213
1213
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\xDCzg\xFCn\xFCz, bu dosya \xE7ok b\xFCy\xFCk. L\xFCtfen daha k\xFC\xE7\xFCk bir dosya y\xFCkleyin.",
|
|
@@ -12196,6 +12196,7 @@ function MultiSelectInputRendererComponent(props) {
|
|
|
12196
12196
|
const [stagedIndices, setStagedIndices] = (0, import_react11.useState)();
|
|
12197
12197
|
const {
|
|
12198
12198
|
id,
|
|
12199
|
+
autoComplete,
|
|
12199
12200
|
description,
|
|
12200
12201
|
disabled,
|
|
12201
12202
|
label,
|
|
@@ -12234,6 +12235,7 @@ function MultiSelectInputRendererComponent(props) {
|
|
|
12234
12235
|
};
|
|
12235
12236
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_components19.SelectInputOptionContent, __spreadValues({}, contentProps));
|
|
12236
12237
|
};
|
|
12238
|
+
const extraProps = { autoComplete };
|
|
12237
12239
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
12238
12240
|
FieldInput_default,
|
|
12239
12241
|
{
|
|
@@ -12244,7 +12246,7 @@ function MultiSelectInputRendererComponent(props) {
|
|
|
12244
12246
|
validation: validationState,
|
|
12245
12247
|
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
12246
12248
|
import_components19.SelectInput,
|
|
12247
|
-
{
|
|
12249
|
+
__spreadValues({
|
|
12248
12250
|
id,
|
|
12249
12251
|
items: options.map((option, index) => {
|
|
12250
12252
|
var _a, _b, _c;
|
|
@@ -12273,7 +12275,7 @@ function MultiSelectInputRendererComponent(props) {
|
|
|
12273
12275
|
setStagedIndices(void 0);
|
|
12274
12276
|
}
|
|
12275
12277
|
}
|
|
12276
|
-
}
|
|
12278
|
+
}, extraProps)
|
|
12277
12279
|
)
|
|
12278
12280
|
}
|
|
12279
12281
|
);
|
|
@@ -12975,20 +12977,26 @@ function SelectTriggerMedia({ icon, image }) {
|
|
|
12975
12977
|
if (image == null ? void 0 : image.url) {
|
|
12976
12978
|
return null;
|
|
12977
12979
|
}
|
|
12978
|
-
if (icon
|
|
12980
|
+
if (isFlagIcon2(icon)) {
|
|
12979
12981
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components31.Avatar, { type: import_components31.AvatarType.ICON, size: 24, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DynamicIcon_default, { name: icon.name }) });
|
|
12980
12982
|
}
|
|
12983
|
+
if (isNamedIcon2(icon)) {
|
|
12984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DynamicIcon_default, { name: icon.name });
|
|
12985
|
+
}
|
|
12981
12986
|
if (icon && "text" in icon) {
|
|
12982
12987
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components31.Avatar, { type: import_components31.AvatarType.ICON, size: 24, children: icon.text });
|
|
12983
12988
|
}
|
|
12984
12989
|
return null;
|
|
12985
12990
|
}
|
|
12991
|
+
var isNamedIcon2 = (icon) => icon ? "name" in icon : false;
|
|
12992
|
+
var isFlagIcon2 = (icon) => isNamedIcon2(icon) && icon.name.startsWith("flag-");
|
|
12986
12993
|
|
|
12987
12994
|
// ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
|
|
12988
12995
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
12989
12996
|
function SelectInputRendererComponent(props) {
|
|
12990
12997
|
const {
|
|
12991
12998
|
id,
|
|
12999
|
+
autoComplete,
|
|
12992
13000
|
children,
|
|
12993
13001
|
description,
|
|
12994
13002
|
disabled,
|
|
@@ -13028,6 +13036,7 @@ function SelectInputRendererComponent(props) {
|
|
|
13028
13036
|
};
|
|
13029
13037
|
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_components32.SelectInputOptionContent, __spreadValues({}, contentProps));
|
|
13030
13038
|
};
|
|
13039
|
+
const extraProps = { autoComplete };
|
|
13031
13040
|
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
|
|
13032
13041
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
13033
13042
|
FieldInput_default,
|
|
@@ -13039,7 +13048,7 @@ function SelectInputRendererComponent(props) {
|
|
|
13039
13048
|
validation: validationState,
|
|
13040
13049
|
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
13041
13050
|
import_components32.SelectInput,
|
|
13042
|
-
{
|
|
13051
|
+
__spreadValues({
|
|
13043
13052
|
name: id,
|
|
13044
13053
|
placeholder,
|
|
13045
13054
|
items,
|
|
@@ -13049,7 +13058,7 @@ function SelectInputRendererComponent(props) {
|
|
|
13049
13058
|
filterable: items.length >= 8,
|
|
13050
13059
|
onChange: onSelect,
|
|
13051
13060
|
onClear: required ? void 0 : () => onSelect(null)
|
|
13052
|
-
}
|
|
13061
|
+
}, extraProps)
|
|
13053
13062
|
)
|
|
13054
13063
|
}
|
|
13055
13064
|
),
|
|
@@ -15058,9 +15067,9 @@ var import_components41 = require("@transferwise/components");
|
|
|
15058
15067
|
|
|
15059
15068
|
// src/legacy/layout/icon/FlagIcon.tsx
|
|
15060
15069
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
15061
|
-
var
|
|
15070
|
+
var isFlagIcon3 = (name) => name.startsWith("flag-");
|
|
15062
15071
|
function FlagIcon2({ name }) {
|
|
15063
|
-
if (!
|
|
15072
|
+
if (!isFlagIcon3(name)) {
|
|
15064
15073
|
return null;
|
|
15065
15074
|
}
|
|
15066
15075
|
const code = name.substring(5);
|
|
@@ -15070,12 +15079,12 @@ function FlagIcon2({ name }) {
|
|
|
15070
15079
|
// src/legacy/layout/icon/NamedIcon.tsx
|
|
15071
15080
|
var icons2 = __toESM(require("@transferwise/icons"));
|
|
15072
15081
|
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
15073
|
-
var
|
|
15082
|
+
var isNamedIcon3 = (name) => {
|
|
15074
15083
|
const iconName = toCapitalisedCamelCase2(name);
|
|
15075
15084
|
return Object.keys(icons2).includes(iconName);
|
|
15076
15085
|
};
|
|
15077
15086
|
function NamedIcon2({ name }) {
|
|
15078
|
-
if (!
|
|
15087
|
+
if (!isNamedIcon3(name)) {
|
|
15079
15088
|
return null;
|
|
15080
15089
|
}
|
|
15081
15090
|
const iconName = toCapitalisedCamelCase2(name);
|
|
@@ -15088,16 +15097,16 @@ var capitaliseFirstChar2 = (value) => `${value[0].toUpperCase()}${value.slice(1)
|
|
|
15088
15097
|
// src/legacy/layout/icon/DynamicIcon.tsx
|
|
15089
15098
|
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
15090
15099
|
function DynamicIcon2({ type }) {
|
|
15091
|
-
if (
|
|
15100
|
+
if (isFlagIcon3(type)) {
|
|
15092
15101
|
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(FlagIcon2, { name: type });
|
|
15093
15102
|
}
|
|
15094
|
-
if (
|
|
15103
|
+
if (isNamedIcon3(type)) {
|
|
15095
15104
|
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(NamedIcon2, { name: type });
|
|
15096
15105
|
}
|
|
15097
15106
|
return null;
|
|
15098
15107
|
}
|
|
15099
15108
|
function isValidIconName(name) {
|
|
15100
|
-
return
|
|
15109
|
+
return isNamedIcon3(name) || isFlagIcon3(name);
|
|
15101
15110
|
}
|
|
15102
15111
|
var DynamicIcon_default2 = DynamicIcon2;
|
|
15103
15112
|
|
|
@@ -15837,7 +15846,7 @@ var mapImage = (image) => {
|
|
|
15837
15846
|
return null;
|
|
15838
15847
|
};
|
|
15839
15848
|
var getIconPropertyForSelectOption = (icon) => {
|
|
15840
|
-
if ((icon == null ? void 0 : icon.name) &&
|
|
15849
|
+
if ((icon == null ? void 0 : icon.name) && isFlagIcon3(icon.name)) {
|
|
15841
15850
|
return {
|
|
15842
15851
|
icon: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Flag, { code: icon.name.substring(5), intrinsicSize: 24 })
|
|
15843
15852
|
};
|