@wise/dynamic-flow-client 3.25.2 → 3.26.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/de.json +2 -0
- package/build/i18n/en.json +2 -0
- package/build/i18n/es.json +2 -0
- package/build/i18n/fr.json +2 -0
- package/build/i18n/hu.json +2 -0
- package/build/i18n/id.json +2 -0
- package/build/i18n/it.json +2 -0
- package/build/i18n/ja.json +2 -0
- package/build/i18n/pl.json +2 -0
- package/build/i18n/pt.json +2 -0
- package/build/i18n/ro.json +2 -0
- package/build/i18n/ru.json +2 -0
- package/build/i18n/th.json +2 -0
- package/build/i18n/tr.json +2 -0
- package/build/i18n/zh_CN.json +2 -0
- package/build/i18n/zh_HK.json +2 -0
- package/build/main.js +209 -126
- package/build/main.min.js +1 -1
- package/build/main.mjs +148 -65
- package/build/types/common/messages/file-upload.messages.d.ts +13 -0
- package/build/types/legacy/common/utils/schema-utils.d.ts +1 -1
- package/build/types/revamp/domain/features/validation/value-checks.d.ts +3 -0
- package/build/types/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToUploadInputComponent.d.ts +5 -3
- package/build/types/revamp/domain/mappers/types.d.ts +2 -0
- package/build/types/revamp/utils/type-utils.d.ts +2 -2
- package/package.json +32 -32
package/build/main.mjs
CHANGED
|
@@ -138,12 +138,12 @@ var init_clsx = __esm({
|
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
// ../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.19.1_@types+react@18.3.
|
|
141
|
+
// ../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.19.1_@types+react@18.3.12_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index-a91e5689.esm.js
|
|
142
142
|
import { useState as useState2, useEffect as useEffect2, forwardRef, Suspense, lazy } from "react";
|
|
143
143
|
import { jsx as jsx17, jsxs as jsxs4, Fragment as Fragment3 } from "react/jsx-runtime";
|
|
144
144
|
var unknownFlagName, Flag, Sizes, ImageSizes, imageSizes, Assets, RenderMode;
|
|
145
145
|
var init_index_a91e5689_esm = __esm({
|
|
146
|
-
"../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.19.1_@types+react@18.3.
|
|
146
|
+
"../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.19.1_@types+react@18.3.12_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index-a91e5689.esm.js"() {
|
|
147
147
|
"use strict";
|
|
148
148
|
init_clsx();
|
|
149
149
|
unknownFlagName = "wise";
|
|
@@ -493,6 +493,8 @@ var de_default = {
|
|
|
493
493
|
"dynamicFlows.ExternalConfirmation.description": "Bitte best\xE4tige, dass du **{origin}** in einem neuen Browser-Tab \xF6ffnen m\xF6chtest.",
|
|
494
494
|
"dynamicFlows.ExternalConfirmation.open": "In neuem Tab \xF6ffnen",
|
|
495
495
|
"dynamicFlows.ExternalConfirmation.title": "Bitte best\xE4tigen",
|
|
496
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "Diese Datei ist leider zu gro\xDF. Bitte lade eine kleinere Datei hoch.",
|
|
497
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
496
498
|
"dynamicFlows.Help.ariaLabel": "Klicke hier f\xFCr mehr Informationen.",
|
|
497
499
|
"dynamicFlows.MultiSelect.summary": "{first} und {count} weitere",
|
|
498
500
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Diese Datei ist leider zu gro\xDF. Bitte lade eine kleinere Datei hoch.",
|
|
@@ -544,6 +546,8 @@ var en_default = {
|
|
|
544
546
|
"dynamicFlows.ExternalConfirmation.description": "Please confirm you want to open **{origin}** in a new browser tab.",
|
|
545
547
|
"dynamicFlows.ExternalConfirmation.open": "Open in new tab",
|
|
546
548
|
"dynamicFlows.ExternalConfirmation.title": "Please confirm",
|
|
549
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "Sorry, that file is too big. Please upload a smaller file.",
|
|
550
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
547
551
|
"dynamicFlows.Help.ariaLabel": "Click here for more info.",
|
|
548
552
|
"dynamicFlows.MultiSelect.summary": "{first} and {count} more",
|
|
549
553
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sorry, that file is too big. Please upload a smaller file.",
|
|
@@ -595,6 +599,8 @@ var es_default = {
|
|
|
595
599
|
"dynamicFlows.ExternalConfirmation.description": "Confirma que quieres abrir **{origin}** en una nueva pesta\xF1a del navegador.",
|
|
596
600
|
"dynamicFlows.ExternalConfirmation.open": "Abrir en nueva pesta\xF1a",
|
|
597
601
|
"dynamicFlows.ExternalConfirmation.title": "Por favor, confirma",
|
|
602
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "Lo sentimos, el archivo pesa demasiado. Sube uno m\xE1s peque\xF1o.",
|
|
603
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
598
604
|
"dynamicFlows.Help.ariaLabel": "Haz clic aqu\xED para obtener m\xE1s informaci\xF3n.",
|
|
599
605
|
"dynamicFlows.MultiSelect.summary": "{first} y {count} m\xE1s",
|
|
600
606
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Lo sentimos, el archivo pesa demasiado. Sube uno m\xE1s peque\xF1o.",
|
|
@@ -646,6 +652,8 @@ var fr_default = {
|
|
|
646
652
|
"dynamicFlows.ExternalConfirmation.description": "Veuillez confirmer que vous souhaitez ouvrir **{origin}** dans un nouvel onglet.",
|
|
647
653
|
"dynamicFlows.ExternalConfirmation.open": "Ouvrir dans un nouvel onglet",
|
|
648
654
|
"dynamicFlows.ExternalConfirmation.title": "Veuillez confirmer",
|
|
655
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "Nous sommes d\xE9sol\xE9s, ce fichier est trop volumineux. Veuillez t\xE9l\xE9charger un fichier plus petit.",
|
|
656
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
649
657
|
"dynamicFlows.Help.ariaLabel": "Cliquez ici pour plus d'informations.",
|
|
650
658
|
"dynamicFlows.MultiSelect.summary": "{first} et {count} de plus",
|
|
651
659
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Nous sommes d\xE9sol\xE9s, ce fichier est trop volumineux. Veuillez t\xE9l\xE9charger un fichier plus petit.",
|
|
@@ -697,6 +705,8 @@ var hu_default = {
|
|
|
697
705
|
"dynamicFlows.ExternalConfirmation.description": "K\xE9r\xFCnk, er\u0151s\xEDtsd meg, hogy a(z) **{origin}** alkalmaz\xE1st egy \xFAj b\xF6ng\xE9sz\u0151lapon szeretn\xE9d megnyitni.",
|
|
698
706
|
"dynamicFlows.ExternalConfirmation.open": "Megnyit\xE1s \xFAj lapon",
|
|
699
707
|
"dynamicFlows.ExternalConfirmation.title": "Meger\u0151s\xEDt\xE9s",
|
|
708
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "Sajnos ez a f\xE1jl t\xFAl nagy. K\xE9r\xFCnk, t\xF6lts fel egy kisebb f\xE1jlt.",
|
|
709
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
700
710
|
"dynamicFlows.Help.ariaLabel": "Kattints ide tov\xE1bbi inform\xE1ci\xF3\xE9rt.",
|
|
701
711
|
"dynamicFlows.MultiSelect.summary": "{first} \xE9s tov\xE1bbi {count}",
|
|
702
712
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Sajnos ez a f\xE1jl t\xFAl nagy. K\xE9r\xFCnk, t\xF6lts fel egy kisebb f\xE1jlt.",
|
|
@@ -748,6 +758,8 @@ var id_default = {
|
|
|
748
758
|
"dynamicFlows.ExternalConfirmation.description": "Harap konfirmasikan bahwa Anda ingin membuka **{origin}** di tab browser baru.",
|
|
749
759
|
"dynamicFlows.ExternalConfirmation.open": "Buka di tab baru",
|
|
750
760
|
"dynamicFlows.ExternalConfirmation.title": "Harap konfirmasi",
|
|
761
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "Maaf, file Anda terlalu besar. Silakan unggah file yang lebih kecil.",
|
|
762
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
751
763
|
"dynamicFlows.Help.ariaLabel": "Klik di sini untuk info selengkapnya.",
|
|
752
764
|
"dynamicFlows.MultiSelect.summary": "{first} dan {count} lagi",
|
|
753
765
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Maaf, file Anda terlalu besar. Silakan unggah file yang lebih kecil.",
|
|
@@ -799,6 +811,8 @@ var it_default = {
|
|
|
799
811
|
"dynamicFlows.ExternalConfirmation.description": "Conferma di voler aprire **{origin}** in una nuova scheda del browser.",
|
|
800
812
|
"dynamicFlows.ExternalConfirmation.open": "Apri in una nuova scheda",
|
|
801
813
|
"dynamicFlows.ExternalConfirmation.title": "Conferma",
|
|
814
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "Spiacenti, il file \xE8 troppo grande. Carica un file di dimensioni inferiori.",
|
|
815
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
802
816
|
"dynamicFlows.Help.ariaLabel": "Clicca qui per maggiori informazioni.",
|
|
803
817
|
"dynamicFlows.MultiSelect.summary": "{first} e altri {count}",
|
|
804
818
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Spiacenti, il file \xE8 troppo grande. Carica un file di dimensioni inferiori.",
|
|
@@ -850,6 +864,8 @@ var ja_default = {
|
|
|
850
864
|
"dynamicFlows.ExternalConfirmation.description": "\u65B0\u3057\u3044\u30D6\u30E9\u30A6\u30B6\u30BF\u30D6\u3067**{origin}**\u3092\u958B\u304F\u3053\u3068\u3092\u627F\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
851
865
|
"dynamicFlows.ExternalConfirmation.open": "\u65B0\u3057\u3044\u30BF\u30D6\u3067\u958B\u304F",
|
|
852
866
|
"dynamicFlows.ExternalConfirmation.title": "\u627F\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
867
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "\u5927\u5909\u7533\u3057\u8A33\u3054\u3056\u3044\u307E\u305B\u3093\u304C\u3001\u30D5\u30A1\u30A4\u30EB\u304C\u5927\u304D\u3059\u304E\u307E\u3059\u3002\u3053\u308C\u3088\u308A\u5C0F\u3055\u3044\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
868
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
853
869
|
"dynamicFlows.Help.ariaLabel": "\u8A73\u7D30\u306F\u3053\u3061\u3089\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
854
870
|
"dynamicFlows.MultiSelect.summary": "{first}\u3068\u305D\u306E\u4ED6{count}",
|
|
855
871
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u5927\u5909\u7533\u3057\u8A33\u3054\u3056\u3044\u307E\u305B\u3093\u304C\u3001\u30D5\u30A1\u30A4\u30EB\u304C\u5927\u304D\u3059\u304E\u307E\u3059\u3002\u3053\u308C\u3088\u308A\u5C0F\u3055\u3044\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
@@ -901,6 +917,8 @@ var pl_default = {
|
|
|
901
917
|
"dynamicFlows.ExternalConfirmation.description": "Prosimy potwierdzi\u0107, \u017Ce chcesz otworzy\u0107 **{origin}** w nowej zak\u0142adce przegl\u0105darki.",
|
|
902
918
|
"dynamicFlows.ExternalConfirmation.open": "Otw\xF3rz w nowej zak\u0142adce",
|
|
903
919
|
"dynamicFlows.ExternalConfirmation.title": "Potwierd\u017A",
|
|
920
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "Przepraszamy, ten plik jest zbyt du\u017Cy. Prze\u015Blij mniejszy plik.",
|
|
921
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
904
922
|
"dynamicFlows.Help.ariaLabel": "Kliknij tutaj, \u017Ceby uzyska\u0107 wi\u0119cej informacji.",
|
|
905
923
|
"dynamicFlows.MultiSelect.summary": "{first} oraz {count} wi\u0119cej",
|
|
906
924
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Przepraszamy, ten plik jest zbyt du\u017Cy. Prze\u015Blij mniejszy plik.",
|
|
@@ -952,6 +970,8 @@ var pt_default = {
|
|
|
952
970
|
"dynamicFlows.ExternalConfirmation.description": "Por favor, confirme que deseja abrir * *{origin}* * em uma nova aba do navegador.",
|
|
953
971
|
"dynamicFlows.ExternalConfirmation.open": "Abrir em uma nova aba",
|
|
954
972
|
"dynamicFlows.ExternalConfirmation.title": "Por favor, confirme",
|
|
973
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "Este arquivo \xE9 muito grande. Por favor, envie um arquivo menor.",
|
|
974
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
955
975
|
"dynamicFlows.Help.ariaLabel": "Clique aqui para mais informa\xE7\xF5es.",
|
|
956
976
|
"dynamicFlows.MultiSelect.summary": "{first} e mais {count} ",
|
|
957
977
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Este arquivo \xE9 muito grande. Por favor, envie um arquivo menor.",
|
|
@@ -1003,6 +1023,8 @@ var ro_default = {
|
|
|
1003
1023
|
"dynamicFlows.ExternalConfirmation.description": "Te rug\u0103m s\u0103 confirmi c\u0103 vrei s\u0103 deschizi **{origin}** \xEEntr-o nou\u0103 fil\u0103 a browserului.",
|
|
1004
1024
|
"dynamicFlows.ExternalConfirmation.open": "Deschide \xEEntr-o fil\u0103 nou\u0103",
|
|
1005
1025
|
"dynamicFlows.ExternalConfirmation.title": "Te rug\u0103m s\u0103 confirmi",
|
|
1026
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "Ne pare r\u0103u, acel fi\u0219ier este prea mare. Te rug\u0103m s\u0103 \xEEncarci un fi\u0219ier mai mic.",
|
|
1027
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
1006
1028
|
"dynamicFlows.Help.ariaLabel": "D\u0103 click aici pentru mai multe informa\u021Bii.",
|
|
1007
1029
|
"dynamicFlows.MultiSelect.summary": "{first} \u0219i \xEEnc\u0103 {count}",
|
|
1008
1030
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "Ne pare r\u0103u, acel fi\u0219ier este prea mare. Te rug\u0103m s\u0103 \xEEncarci un fi\u0219ier mai mic.",
|
|
@@ -1054,6 +1076,8 @@ var ru_default = {
|
|
|
1054
1076
|
"dynamicFlows.ExternalConfirmation.description": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C **{origin}** \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.",
|
|
1055
1077
|
"dynamicFlows.ExternalConfirmation.open": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435",
|
|
1056
1078
|
"dynamicFlows.ExternalConfirmation.title": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435",
|
|
1079
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u0444\u0430\u0439\u043B \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0439. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u043C\u0435\u043D\u044C\u0448\u0435\u0433\u043E \u0440\u0430\u0437\u043C\u0435\u0440\u0430.",
|
|
1080
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
1057
1081
|
"dynamicFlows.Help.ariaLabel": "\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438.",
|
|
1058
1082
|
"dynamicFlows.MultiSelect.summary": "{first} \u0438 \u0435\u0449\u0435 {count} \u0434\u0440\u0443\u0433\u0438\u0445",
|
|
1059
1083
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u0444\u0430\u0439\u043B \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0439. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u043C\u0435\u043D\u044C\u0448\u0435\u0433\u043E \u0440\u0430\u0437\u043C\u0435\u0440\u0430.",
|
|
@@ -1105,6 +1129,8 @@ var th_default = {
|
|
|
1105
1129
|
"dynamicFlows.ExternalConfirmation.description": "\u0E42\u0E1B\u0E23\u0E14\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E34\u0E14 **{origin}** \u0E40\u0E1B\u0E47\u0E19\u0E41\u0E17\u0E47\u0E1A\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C",
|
|
1106
1130
|
"dynamicFlows.ExternalConfirmation.open": "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E19\u0E41\u0E17\u0E47\u0E1A\u0E43\u0E2B\u0E21\u0E48",
|
|
1107
1131
|
"dynamicFlows.ExternalConfirmation.title": "\u0E42\u0E1B\u0E23\u0E14\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19",
|
|
1132
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E44\u0E1F\u0E25\u0E4C\u0E19\u0E31\u0E49\u0E19\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E1F\u0E25\u0E4C\u0E17\u0E35\u0E48\u0E21\u0E35\u0E02\u0E19\u0E32\u0E14\u0E40\u0E25\u0E47\u0E01\u0E25\u0E07",
|
|
1133
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
1108
1134
|
"dynamicFlows.Help.ariaLabel": "\u0E04\u0E25\u0E34\u0E01\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",
|
|
1109
1135
|
"dynamicFlows.MultiSelect.summary": "{first} \u0E41\u0E25\u0E30\u0E2D\u0E35\u0E01 {count}",
|
|
1110
1136
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E44\u0E1F\u0E25\u0E4C\u0E19\u0E31\u0E49\u0E19\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E1F\u0E25\u0E4C\u0E17\u0E35\u0E48\u0E21\u0E35\u0E02\u0E19\u0E32\u0E14\u0E40\u0E25\u0E47\u0E01\u0E25\u0E07",
|
|
@@ -1156,6 +1182,8 @@ var tr_default = {
|
|
|
1156
1182
|
"dynamicFlows.ExternalConfirmation.description": "L\xFCtfen yeni bir taray\u0131c\u0131 sekmesinde **{origin}** a\xE7mak istedi\u011Finizi onaylay\u0131n.",
|
|
1157
1183
|
"dynamicFlows.ExternalConfirmation.open": "Yeni sekmede a\xE7",
|
|
1158
1184
|
"dynamicFlows.ExternalConfirmation.title": "L\xFCtfen onaylay\u0131n",
|
|
1185
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "\xDCzg\xFCn\xFCz, bu dosya \xE7ok b\xFCy\xFCk. L\xFCtfen daha k\xFC\xE7\xFCk bir dosya y\xFCkleyin.",
|
|
1186
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
1159
1187
|
"dynamicFlows.Help.ariaLabel": "Ayr\u0131nt\u0131lar i\xE7in t\u0131klay\u0131n.",
|
|
1160
1188
|
"dynamicFlows.MultiSelect.summary": "{first} ve {count} daha",
|
|
1161
1189
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\xDCzg\xFCn\xFCz, bu dosya \xE7ok b\xFCy\xFCk. L\xFCtfen daha k\xFC\xE7\xFCk bir dosya y\xFCkleyin.",
|
|
@@ -1207,6 +1235,8 @@ var zh_CN_default = {
|
|
|
1207
1235
|
"dynamicFlows.ExternalConfirmation.description": "\u8BF7\u786E\u8BA4\u60A8\u662F\u5426\u8981\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00**{origin}**\u3002",
|
|
1208
1236
|
"dynamicFlows.ExternalConfirmation.open": "\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00",
|
|
1209
1237
|
"dynamicFlows.ExternalConfirmation.title": "\u8BF7\u786E\u8BA4",
|
|
1238
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8BE5\u6587\u4EF6\u592A\u5927\u3002\u8BF7\u4E0A\u4F20\u4E00\u4E2A\u66F4\u5C0F\u7684\u6587\u4EF6\u3002",
|
|
1239
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
1210
1240
|
"dynamicFlows.Help.ariaLabel": "\u70B9\u51FB\u6B64\u5904\u83B7\u53D6\u66F4\u591A\u4FE1\u606F\u3002",
|
|
1211
1241
|
"dynamicFlows.MultiSelect.summary": "{first} \u548C\u5176\u4ED6 {count} \u4E2A",
|
|
1212
1242
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8BE5\u6587\u4EF6\u592A\u5927\u3002\u8BF7\u4E0A\u4F20\u4E00\u4E2A\u66F4\u5C0F\u7684\u6587\u4EF6\u3002",
|
|
@@ -1258,6 +1288,8 @@ var zh_HK_default = {
|
|
|
1258
1288
|
"dynamicFlows.ExternalConfirmation.description": "\u8ACB\u78BA\u8A8D\u4F60\u662F\u5426\u8981\u5728\u700F\u89BD\u5668\u7684\u65B0\u5206\u9801\u6253\u958B**{origin}**\u3002",
|
|
1259
1289
|
"dynamicFlows.ExternalConfirmation.open": "\u5728\u65B0\u5206\u9801\u4E2D\u958B\u555F",
|
|
1260
1290
|
"dynamicFlows.ExternalConfirmation.title": "\u8ACB\u78BA\u8A8D",
|
|
1291
|
+
"dynamicFlows.FileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8A72\u6A94\u6848\u592A\u5927\u3002\u8ACB\u4E0A\u8F09\u4E00\u500B\u8F03\u5C0F\u7684\u6A94\u6848\u3002",
|
|
1292
|
+
"dynamicFlows.FileUploadSchema.wrongFileTypeError": "Sorry, that file format is not supported. Please upload a different file.",
|
|
1261
1293
|
"dynamicFlows.Help.ariaLabel": "\u6309\u6B64\u67E5\u770B\u8A73\u60C5\u3002",
|
|
1262
1294
|
"dynamicFlows.MultiSelect.summary": "{first}\u548C\u5176\u4ED6{count}\u9805",
|
|
1263
1295
|
"dynamicFlows.MultipleFileUploadSchema.maxFileSizeError": "\u62B1\u6B49\uFF0C\u8A72\u6A94\u6848\u592A\u5927\u3002\u8ACB\u4E0A\u8F09\u4E00\u500B\u8F03\u5C0F\u7684\u6A94\u6848\u3002",
|
|
@@ -7599,6 +7631,20 @@ var getAboveMaxFilesCheck = ({ maxItems }, messageFunctions) => (value) => {
|
|
|
7599
7631
|
}
|
|
7600
7632
|
return null;
|
|
7601
7633
|
};
|
|
7634
|
+
var getFileSizeCheck = (schema, messageFunctions) => (value) => {
|
|
7635
|
+
const maxSize = "persistAsync" in schema ? schema.persistAsync.schema.maxSize : schema.maxSize;
|
|
7636
|
+
if (maxSize && value && value.size > maxSize) {
|
|
7637
|
+
return messageFunctions.maxSize();
|
|
7638
|
+
}
|
|
7639
|
+
return null;
|
|
7640
|
+
};
|
|
7641
|
+
var getFileTypeCheck = (schema, messageFunctions) => (value) => {
|
|
7642
|
+
const accepts = "persistAsync" in schema ? schema.persistAsync.schema.accepts : schema.accepts;
|
|
7643
|
+
if (accepts && value && !accepts.includes(value.type)) {
|
|
7644
|
+
return messageFunctions.accepts();
|
|
7645
|
+
}
|
|
7646
|
+
return null;
|
|
7647
|
+
};
|
|
7602
7648
|
var getBelowMinItemsCheck = ({ minItems }, messageFunctions) => (value) => {
|
|
7603
7649
|
if (isNumber(minItems) && isArray(value) && value.length > 0 && value.length < minItems) {
|
|
7604
7650
|
return messageFunctions.minItems(minItems);
|
|
@@ -8795,18 +8841,23 @@ var createUploadInputComponent = (uploadInputProps, updateComponent) => {
|
|
|
8795
8841
|
var stringSchemaToUploadInputComponent = (schemaMapperProps, mapperProps) => {
|
|
8796
8842
|
var _a;
|
|
8797
8843
|
const { schema, localValue, model, required = false } = schemaMapperProps;
|
|
8798
|
-
const { accepts, autocompleteHint, maxSize, validationMessages } = schema;
|
|
8844
|
+
const { accepts, autocompleteHint, hidden, maxSize, validationMessages } = schema;
|
|
8799
8845
|
const { getErrorMessageFunctions, updateComponent, onRefresh, onValueChange } = mapperProps;
|
|
8800
8846
|
const errorMessageFunctions = getErrorMessageFunctions(validationMessages);
|
|
8801
8847
|
const { performPersistAsync } = getPersistAsyncInitialState(schemaMapperProps, mapperProps);
|
|
8802
8848
|
const persistedState = performPersistAsync ? getInitialPersistedState(null, model) : getInitialPersistedState();
|
|
8803
8849
|
const validLocalValue = isFile(localValue) ? localValue : null;
|
|
8804
8850
|
const value = (_a = getFileFromModel(model)) != null ? _a : validLocalValue;
|
|
8851
|
+
const checks = hidden ? [] : [
|
|
8852
|
+
getRequiredCheck(required, errorMessageFunctions),
|
|
8853
|
+
getFileSizeCheck(schema, errorMessageFunctions),
|
|
8854
|
+
getFileTypeCheck(schema, errorMessageFunctions)
|
|
8855
|
+
];
|
|
8805
8856
|
return createUploadInputComponent(
|
|
8806
8857
|
__spreadProps(__spreadValues({}, mapCommonSchemaProps(schemaMapperProps)), {
|
|
8807
8858
|
accepts,
|
|
8808
8859
|
autoComplete: getAutocompleteString(autocompleteHint),
|
|
8809
|
-
checks
|
|
8860
|
+
checks,
|
|
8810
8861
|
format: "base64",
|
|
8811
8862
|
maxSize,
|
|
8812
8863
|
value,
|
|
@@ -8987,15 +9038,19 @@ var getControlForLegacyFormat = (format) => {
|
|
|
8987
9038
|
// src/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToComponent.ts
|
|
8988
9039
|
var stringSchemaToComponent = (schemaMapperProps, mapperProps) => {
|
|
8989
9040
|
const { schema } = schemaMapperProps;
|
|
9041
|
+
if (isStringSchemaWithBase64(schema)) {
|
|
9042
|
+
return stringSchemaToUploadInputComponent(__spreadProps(__spreadValues({}, schemaMapperProps), { schema }), mapperProps);
|
|
9043
|
+
}
|
|
8990
9044
|
switch (schema.format) {
|
|
8991
9045
|
case "date":
|
|
8992
9046
|
return stringSchemaToDateInputComponent(schemaMapperProps, mapperProps);
|
|
8993
|
-
case "base64url":
|
|
8994
|
-
return stringSchemaToUploadInputComponent(schemaMapperProps, mapperProps);
|
|
8995
9047
|
default:
|
|
8996
9048
|
return stringSchemaToTextInputComponent(schemaMapperProps, mapperProps);
|
|
8997
9049
|
}
|
|
8998
9050
|
};
|
|
9051
|
+
var isStringSchemaWithBase64 = (schema) => {
|
|
9052
|
+
return schema.format === "base64url" && !("persistAsync" in schema);
|
|
9053
|
+
};
|
|
8999
9054
|
|
|
9000
9055
|
// src/revamp/domain/components/ContainerComponent.ts
|
|
9001
9056
|
var createContainerComponent = (containerProps) => __spreadProps(__spreadValues({}, containerProps), {
|
|
@@ -9329,11 +9384,16 @@ var arraySchemaToMultiUploadComponent = (schemaMapperProps, mapperProps) => {
|
|
|
9329
9384
|
const uploadSchema = getUploadSchema(schema.items);
|
|
9330
9385
|
const { accepts, maxSize } = uploadSchema;
|
|
9331
9386
|
const { minItems, maxItems, title, validationMessages } = schema;
|
|
9332
|
-
const
|
|
9387
|
+
const arrayErrorMessageFunctions = getErrorMessageFunctions(validationMessages);
|
|
9388
|
+
const fileErrorMessageFunctions = getErrorMessageFunctions(uploadSchema.validationMessages);
|
|
9333
9389
|
const checks = [
|
|
9334
|
-
getRequiredCheck(required,
|
|
9335
|
-
getAboveMaxFilesCheck(schema,
|
|
9336
|
-
getBelowMinFilesCheck(schema,
|
|
9390
|
+
getRequiredCheck(required, arrayErrorMessageFunctions),
|
|
9391
|
+
getAboveMaxFilesCheck(schema, arrayErrorMessageFunctions),
|
|
9392
|
+
getBelowMinFilesCheck(schema, arrayErrorMessageFunctions)
|
|
9393
|
+
];
|
|
9394
|
+
const fileChecks = [
|
|
9395
|
+
getFileSizeCheck(schema.items, fileErrorMessageFunctions),
|
|
9396
|
+
getFileTypeCheck(schema.items, fileErrorMessageFunctions)
|
|
9337
9397
|
];
|
|
9338
9398
|
const persistAsyncConfig = getPersistAsyncConfig(schema.items);
|
|
9339
9399
|
const format = getFormat(schema.items);
|
|
@@ -9352,7 +9412,7 @@ var arraySchemaToMultiUploadComponent = (schemaMapperProps, mapperProps) => {
|
|
|
9352
9412
|
accepts,
|
|
9353
9413
|
autoComplete: "off",
|
|
9354
9414
|
checks: schema.hidden ? [] : checks,
|
|
9355
|
-
fileChecks: [],
|
|
9415
|
+
fileChecks: schema.hidden ? [] : fileChecks,
|
|
9356
9416
|
format,
|
|
9357
9417
|
maxSize,
|
|
9358
9418
|
minItems,
|
|
@@ -10793,9 +10853,39 @@ var validation_messages_default = defineMessages2({
|
|
|
10793
10853
|
}
|
|
10794
10854
|
});
|
|
10795
10855
|
|
|
10796
|
-
// src/common/messages/
|
|
10856
|
+
// src/common/messages/validation.array.messages.ts
|
|
10797
10857
|
import { defineMessages as defineMessages3 } from "react-intl";
|
|
10798
|
-
var
|
|
10858
|
+
var validation_array_messages_default = defineMessages3({
|
|
10859
|
+
minItemsError: {
|
|
10860
|
+
id: "dynamicFlows.ArraySchema.minItemsError",
|
|
10861
|
+
defaultMessage: "Please add at least {minItems}.",
|
|
10862
|
+
description: "Customer inputs less than the expected number of values"
|
|
10863
|
+
},
|
|
10864
|
+
maxItemsError: {
|
|
10865
|
+
id: "dynamicFlows.ArraySchema.maxItemsError",
|
|
10866
|
+
defaultMessage: "Please add {maxItems} or fewer.",
|
|
10867
|
+
description: "Customer inputs more than the allowed number of values"
|
|
10868
|
+
}
|
|
10869
|
+
});
|
|
10870
|
+
|
|
10871
|
+
// src/common/messages/file-upload.messages.ts
|
|
10872
|
+
import { defineMessages as defineMessages4 } from "react-intl";
|
|
10873
|
+
var file_upload_messages_default = defineMessages4({
|
|
10874
|
+
maxFileSizeError: {
|
|
10875
|
+
id: "dynamicFlows.FileUploadSchema.maxFileSizeError",
|
|
10876
|
+
defaultMessage: "Sorry, that file is too big. Please upload a smaller file.",
|
|
10877
|
+
description: "Customer has uploaded a file that's too big. To fix: upload a smaller file."
|
|
10878
|
+
},
|
|
10879
|
+
wrongFileTypeError: {
|
|
10880
|
+
id: "dynamicFlows.FileUploadSchema.wrongFileTypeError",
|
|
10881
|
+
defaultMessage: "Sorry, that file format is not supported. Please upload a different file.",
|
|
10882
|
+
description: "Customer has uploaded a file that is the wrong type. To fix: upload a file of the correct type."
|
|
10883
|
+
}
|
|
10884
|
+
});
|
|
10885
|
+
|
|
10886
|
+
// src/common/messages/multi-file-upload.messages.ts
|
|
10887
|
+
import { defineMessages as defineMessages5 } from "react-intl";
|
|
10888
|
+
var multi_file_upload_messages_default = defineMessages5({
|
|
10799
10889
|
minItemsError: {
|
|
10800
10890
|
id: "dynamicFlows.MultipleFileUploadSchema.minItemsError",
|
|
10801
10891
|
defaultMessage: "Please upload at least {minItems} file(s).",
|
|
@@ -10813,21 +10903,6 @@ var multi_file_upload_messages_default = defineMessages3({
|
|
|
10813
10903
|
}
|
|
10814
10904
|
});
|
|
10815
10905
|
|
|
10816
|
-
// src/common/messages/validation.array.messages.ts
|
|
10817
|
-
import { defineMessages as defineMessages4 } from "react-intl";
|
|
10818
|
-
var validation_array_messages_default = defineMessages4({
|
|
10819
|
-
minItemsError: {
|
|
10820
|
-
id: "dynamicFlows.ArraySchema.minItemsError",
|
|
10821
|
-
defaultMessage: "Please add at least {minItems}.",
|
|
10822
|
-
description: "Customer inputs less than the expected number of values"
|
|
10823
|
-
},
|
|
10824
|
-
maxItemsError: {
|
|
10825
|
-
id: "dynamicFlows.ArraySchema.maxItemsError",
|
|
10826
|
-
defaultMessage: "Please add {maxItems} or fewer.",
|
|
10827
|
-
description: "Customer inputs more than the allowed number of values"
|
|
10828
|
-
}
|
|
10829
|
-
});
|
|
10830
|
-
|
|
10831
10906
|
// src/revamp/renderers/getSchemaErrorMessageFunction.ts
|
|
10832
10907
|
function getSchemaErrorMessageFunction(formatMessage, locale) {
|
|
10833
10908
|
return (validationMessages) => createErrorMessageFunctions(validationMessages != null ? validationMessages : {}, formatMessage, locale);
|
|
@@ -10893,6 +10968,14 @@ var createErrorMessageFunctions = (validationMessages, formatMessage, locale) =>
|
|
|
10893
10968
|
maxItems
|
|
10894
10969
|
});
|
|
10895
10970
|
},
|
|
10971
|
+
maxSize() {
|
|
10972
|
+
var _a;
|
|
10973
|
+
return (_a = validationMessages.maxSize) != null ? _a : formatMessage(file_upload_messages_default.maxFileSizeError);
|
|
10974
|
+
},
|
|
10975
|
+
accepts() {
|
|
10976
|
+
var _a;
|
|
10977
|
+
return (_a = validationMessages.accepts) != null ? _a : formatMessage(file_upload_messages_default.wrongFileTypeError);
|
|
10978
|
+
},
|
|
10896
10979
|
pattern() {
|
|
10897
10980
|
var _a;
|
|
10898
10981
|
return (_a = validationMessages.pattern) != null ? _a : formatMessage(validation_messages_default.pattern);
|
|
@@ -11334,8 +11417,8 @@ import { Info, Markdown } from "@transferwise/components";
|
|
|
11334
11417
|
import { useIntl as useIntl3 } from "react-intl";
|
|
11335
11418
|
|
|
11336
11419
|
// ../renderers/src/messages/help.messages.ts
|
|
11337
|
-
import { defineMessages as
|
|
11338
|
-
var help_messages_default =
|
|
11420
|
+
import { defineMessages as defineMessages6 } from "react-intl";
|
|
11421
|
+
var help_messages_default = defineMessages6({
|
|
11339
11422
|
helpAria: {
|
|
11340
11423
|
id: "df.wise.Help.ariaLabel",
|
|
11341
11424
|
defaultMessage: "Click here for more info.",
|
|
@@ -11681,7 +11764,7 @@ var DateInputRenderer_default = DateInputRenderer;
|
|
|
11681
11764
|
// ../renderers/src/DecisionRenderer.tsx
|
|
11682
11765
|
import { NavigationOptionsList, NavigationOption, Header } from "@transferwise/components";
|
|
11683
11766
|
|
|
11684
|
-
// ../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.19.1_@types+react@18.3.
|
|
11767
|
+
// ../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.19.1_@types+react@18.3.12_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index.esm.js
|
|
11685
11768
|
init_index_a91e5689_esm();
|
|
11686
11769
|
init_clsx();
|
|
11687
11770
|
import "react";
|
|
@@ -12068,8 +12151,8 @@ function OptionMedia({ icon, image }) {
|
|
|
12068
12151
|
import { useIntl as useIntl4 } from "react-intl";
|
|
12069
12152
|
|
|
12070
12153
|
// ../renderers/src/messages/multi-select.messages.ts
|
|
12071
|
-
import { defineMessages as
|
|
12072
|
-
var multi_select_messages_default =
|
|
12154
|
+
import { defineMessages as defineMessages7 } from "react-intl";
|
|
12155
|
+
var multi_select_messages_default = defineMessages7({
|
|
12073
12156
|
summary: {
|
|
12074
12157
|
id: "df.wise.MultiSelect.summary",
|
|
12075
12158
|
defaultMessage: "{first} and {count} more",
|
|
@@ -12340,8 +12423,8 @@ var import_classnames4 = __toESM(require_classnames());
|
|
|
12340
12423
|
import { Button as Button3, Input as Input3 } from "@transferwise/components";
|
|
12341
12424
|
|
|
12342
12425
|
// ../renderers/src/messages/paragraph.messages.ts
|
|
12343
|
-
import { defineMessages as
|
|
12344
|
-
var paragraph_messages_default =
|
|
12426
|
+
import { defineMessages as defineMessages8 } from "react-intl";
|
|
12427
|
+
var paragraph_messages_default = defineMessages8({
|
|
12345
12428
|
copy: {
|
|
12346
12429
|
id: "df.wise.DynamicParagraph.copy",
|
|
12347
12430
|
defaultMessage: "Copy",
|
|
@@ -12401,8 +12484,8 @@ import { Plus } from "@transferwise/icons";
|
|
|
12401
12484
|
import { useIntl as useIntl6 } from "react-intl";
|
|
12402
12485
|
|
|
12403
12486
|
// ../renderers/src/messages/repeatable.messages.ts
|
|
12404
|
-
import { defineMessages as
|
|
12405
|
-
var repeatable_messages_default =
|
|
12487
|
+
import { defineMessages as defineMessages9 } from "react-intl";
|
|
12488
|
+
var repeatable_messages_default = defineMessages9({
|
|
12406
12489
|
addItemTitle: {
|
|
12407
12490
|
id: "df.wise.ArraySchema.addItemTitle",
|
|
12408
12491
|
defaultMessage: "Add Item",
|
|
@@ -12534,8 +12617,8 @@ import { Input as Input4, Markdown as Markdown3, NavigationOption as NavigationO
|
|
|
12534
12617
|
import { useIntl as useIntl7 } from "react-intl";
|
|
12535
12618
|
|
|
12536
12619
|
// ../renderers/src/messages/generic-error.messages.ts
|
|
12537
|
-
import { defineMessages as
|
|
12538
|
-
var generic_error_messages_default2 =
|
|
12620
|
+
import { defineMessages as defineMessages10 } from "react-intl";
|
|
12621
|
+
var generic_error_messages_default2 = defineMessages10({
|
|
12539
12622
|
genericErrorRetryHint: {
|
|
12540
12623
|
id: "df.wise.PersistAsyncSchema.genericError",
|
|
12541
12624
|
defaultMessage: "Something went wrong, please try again.",
|
|
@@ -12582,8 +12665,8 @@ function ErrorResult({ state }) {
|
|
|
12582
12665
|
import { useState as useState7 } from "react";
|
|
12583
12666
|
|
|
12584
12667
|
// ../renderers/src/messages/search.messages.ts
|
|
12585
|
-
import { defineMessages as
|
|
12586
|
-
var search_messages_default =
|
|
12668
|
+
import { defineMessages as defineMessages11 } from "react-intl";
|
|
12669
|
+
var search_messages_default = defineMessages11({
|
|
12587
12670
|
loading: {
|
|
12588
12671
|
id: "df.wise.SearchLayout.loading",
|
|
12589
12672
|
defaultMessage: "Loading...",
|
|
@@ -13379,8 +13462,8 @@ import { useMemo as useMemo3 } from "react";
|
|
|
13379
13462
|
import { useIntl as useIntl10 } from "react-intl";
|
|
13380
13463
|
|
|
13381
13464
|
// ../renderers/src/messages/external-confirmation.messages.ts
|
|
13382
|
-
import { defineMessages as
|
|
13383
|
-
var external_confirmation_messages_default =
|
|
13465
|
+
import { defineMessages as defineMessages12 } from "react-intl";
|
|
13466
|
+
var external_confirmation_messages_default = defineMessages12({
|
|
13384
13467
|
title: {
|
|
13385
13468
|
id: "df.wise.ExternalConfirmation.title",
|
|
13386
13469
|
defaultMessage: "Please confirm",
|
|
@@ -15374,8 +15457,8 @@ import { useCallback as useCallback6, useEffect as useEffect8, useMemo as useMem
|
|
|
15374
15457
|
import { useIntl as useIntl11 } from "react-intl";
|
|
15375
15458
|
|
|
15376
15459
|
// src/legacy/layout/external/DynamicExternal.messages.ts
|
|
15377
|
-
import { defineMessages as
|
|
15378
|
-
var DynamicExternal_messages_default =
|
|
15460
|
+
import { defineMessages as defineMessages13 } from "react-intl";
|
|
15461
|
+
var DynamicExternal_messages_default = defineMessages13({
|
|
15379
15462
|
retryTitle: {
|
|
15380
15463
|
id: "dynamicFlows.DynamicExternal.retryTitle",
|
|
15381
15464
|
defaultMessage: "Reopen window",
|
|
@@ -15579,8 +15662,8 @@ function constructUploadError(response) {
|
|
|
15579
15662
|
import { useIntl as useIntl13 } from "react-intl";
|
|
15580
15663
|
|
|
15581
15664
|
// src/legacy/common/messages.ts
|
|
15582
|
-
import { defineMessages as
|
|
15583
|
-
var messages_default =
|
|
15665
|
+
import { defineMessages as defineMessages14 } from "react-intl";
|
|
15666
|
+
var messages_default = defineMessages14({
|
|
15584
15667
|
required: {
|
|
15585
15668
|
id: "dynamicFlows.DefaultErrorMessages.required",
|
|
15586
15669
|
defaultMessage: "Please fill out this field.",
|
|
@@ -15798,8 +15881,8 @@ var getDisabled = (disabled) => {
|
|
|
15798
15881
|
};
|
|
15799
15882
|
|
|
15800
15883
|
// src/common/messages/multi-select.messages.ts
|
|
15801
|
-
import { defineMessages as
|
|
15802
|
-
var multi_select_messages_default2 =
|
|
15884
|
+
import { defineMessages as defineMessages15 } from "react-intl";
|
|
15885
|
+
var multi_select_messages_default2 = defineMessages15({
|
|
15803
15886
|
summary: {
|
|
15804
15887
|
id: "dynamicFlows.MultiSelect.summary",
|
|
15805
15888
|
defaultMessage: "{first} and {count} more",
|
|
@@ -15940,8 +16023,8 @@ function ItemSummaryOption2({ item, onClick }) {
|
|
|
15940
16023
|
}
|
|
15941
16024
|
|
|
15942
16025
|
// src/common/messages/repeatable.messages.ts
|
|
15943
|
-
import { defineMessages as
|
|
15944
|
-
var repeatable_messages_default2 =
|
|
16026
|
+
import { defineMessages as defineMessages16 } from "react-intl";
|
|
16027
|
+
var repeatable_messages_default2 = defineMessages16({
|
|
15945
16028
|
addItemTitle: {
|
|
15946
16029
|
id: "dynamicFlows.ArraySchema.addItemTitle",
|
|
15947
16030
|
defaultMessage: "Add Item",
|
|
@@ -16493,8 +16576,8 @@ import { Markdown as Markdown6, Info as Info2 } from "@transferwise/components";
|
|
|
16493
16576
|
import { useIntl as useIntl17 } from "react-intl";
|
|
16494
16577
|
|
|
16495
16578
|
// src/common/messages/help.messages.ts
|
|
16496
|
-
import { defineMessages as
|
|
16497
|
-
var help_messages_default2 =
|
|
16579
|
+
import { defineMessages as defineMessages17 } from "react-intl";
|
|
16580
|
+
var help_messages_default2 = defineMessages17({
|
|
16498
16581
|
helpAria: {
|
|
16499
16582
|
id: "dynamicFlows.Help.ariaLabel",
|
|
16500
16583
|
defaultMessage: "Click here for more info.",
|
|
@@ -17785,8 +17868,8 @@ import { DefinitionList as DefinitionList2, Layout } from "@transferwise/compone
|
|
|
17785
17868
|
import { useIntl as useIntl20 } from "react-intl";
|
|
17786
17869
|
|
|
17787
17870
|
// src/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.ts
|
|
17788
|
-
import { defineMessages as
|
|
17789
|
-
var ReadOnlySchema_messages_default =
|
|
17871
|
+
import { defineMessages as defineMessages18 } from "react-intl";
|
|
17872
|
+
var ReadOnlySchema_messages_default = defineMessages18({
|
|
17790
17873
|
yes: {
|
|
17791
17874
|
id: "dynamicFlows.ReadOnlySchema.yes",
|
|
17792
17875
|
defaultMessage: "Yes",
|
|
@@ -18338,8 +18421,8 @@ import { Button as Button9 } from "@transferwise/components";
|
|
|
18338
18421
|
import { useIntl as useIntl21 } from "react-intl";
|
|
18339
18422
|
|
|
18340
18423
|
// src/common/messages/paragraph.messages.ts
|
|
18341
|
-
import { defineMessages as
|
|
18342
|
-
var paragraph_messages_default2 =
|
|
18424
|
+
import { defineMessages as defineMessages19 } from "react-intl";
|
|
18425
|
+
var paragraph_messages_default2 = defineMessages19({
|
|
18343
18426
|
copy: {
|
|
18344
18427
|
id: "dynamicFlows.DynamicParagraph.copy",
|
|
18345
18428
|
defaultMessage: "Copy",
|
|
@@ -18620,8 +18703,8 @@ import { Markdown as Markdown8, Typeahead as Typeahead2 } from "@transferwise/co
|
|
|
18620
18703
|
import { useIntl as useIntl23 } from "react-intl";
|
|
18621
18704
|
|
|
18622
18705
|
// src/common/messages/search.messages.ts
|
|
18623
|
-
import { defineMessages as
|
|
18624
|
-
var search_messages_default2 =
|
|
18706
|
+
import { defineMessages as defineMessages20 } from "react-intl";
|
|
18707
|
+
var search_messages_default2 = defineMessages20({
|
|
18625
18708
|
loading: {
|
|
18626
18709
|
id: "dynamicFlows.SearchLayout.loading",
|
|
18627
18710
|
defaultMessage: "Loading...",
|
|
@@ -19243,8 +19326,8 @@ import { useIntl as useIntl28 } from "react-intl";
|
|
|
19243
19326
|
import Webcam from "react-webcam";
|
|
19244
19327
|
|
|
19245
19328
|
// src/common/cameraCapture/CameraCapture.messages.ts
|
|
19246
|
-
import { defineMessages as
|
|
19247
|
-
var CameraCapture_messages_default =
|
|
19329
|
+
import { defineMessages as defineMessages21 } from "react-intl";
|
|
19330
|
+
var CameraCapture_messages_default = defineMessages21({
|
|
19248
19331
|
reviewSubmit: {
|
|
19249
19332
|
id: "dynamicFlows.CameraCapture.reviewSubmit",
|
|
19250
19333
|
defaultMessage: "Yes, submit",
|
|
@@ -19353,8 +19436,8 @@ var CaptureButton = ({ onClick }) => /* @__PURE__ */ jsx119(
|
|
|
19353
19436
|
import { useIntl as useIntl27 } from "react-intl";
|
|
19354
19437
|
|
|
19355
19438
|
// src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.ts
|
|
19356
|
-
import { defineMessages as
|
|
19357
|
-
var OrientationLockOverlay_messages_default =
|
|
19439
|
+
import { defineMessages as defineMessages22 } from "react-intl";
|
|
19440
|
+
var OrientationLockOverlay_messages_default = defineMessages22({
|
|
19358
19441
|
text: {
|
|
19359
19442
|
id: "dynamicFlows.CameraCapture.rotatePhone.text",
|
|
19360
19443
|
defaultMessage: "Rotate your phone to portrait view to take a photo",
|
|
@@ -19881,8 +19964,8 @@ function getFirstAction(step) {
|
|
|
19881
19964
|
import { useIntl as useIntl29 } from "react-intl";
|
|
19882
19965
|
|
|
19883
19966
|
// src/common/messages/external-confirmation.messages.ts
|
|
19884
|
-
import { defineMessages as
|
|
19885
|
-
var external_confirmation_messages_default2 =
|
|
19967
|
+
import { defineMessages as defineMessages23 } from "react-intl";
|
|
19968
|
+
var external_confirmation_messages_default2 = defineMessages23({
|
|
19886
19969
|
title: {
|
|
19887
19970
|
id: "dynamicFlows.ExternalConfirmation.title",
|
|
19888
19971
|
defaultMessage: "Please confirm",
|
|
@@ -23,4 +23,4 @@ export declare function isFileUploadSchema(schema: {
|
|
|
23
23
|
}): schema is FileUploadSchema;
|
|
24
24
|
export declare const isMultipleFileUploadSchema: (schema: Schema) => schema is MultipleFileUploadSchema;
|
|
25
25
|
export declare const isMultiSelectConstSchema: (schema: Schema) => schema is MultiSelectSchema;
|
|
26
|
-
export declare const getSchemaType: (schema: Schema) => "object" | "readOnly" | "
|
|
26
|
+
export declare const getSchemaType: (schema: Schema) => "object" | "readOnly" | "persistAsync" | "array" | "allOf" | "oneOf" | "validationAsync" | "promotedOneOf" | "basic" | null;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { ArraySchemaList, IntegerSchema, NumberSchema, Schema, StringSchema } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import type { ErrorMessageFunctions } from '../../mappers/types';
|
|
3
3
|
import type { LocalValue, LocalValueArray } from '../../types';
|
|
4
|
+
import { PersistAsyncWithUploadSchema, StringSchemaWithUpload } from '../../../utils/type-utils';
|
|
4
5
|
export type IsInvalidCheck<V extends LocalValue> = (value: V | null) => string | null;
|
|
5
6
|
type GetIsInvalidCheck<S extends Schema, V extends LocalValue> = (schema: S, messageFunctions: ErrorMessageFunctions) => IsInvalidCheck<V>;
|
|
6
7
|
export declare const getAboveMaxItemsCheck: GetIsInvalidCheck<ArraySchemaList, LocalValueArray | null>;
|
|
7
8
|
export declare const getBelowMinFilesCheck: GetIsInvalidCheck<ArraySchemaList, LocalValueArray | null>;
|
|
8
9
|
export declare const getAboveMaxFilesCheck: GetIsInvalidCheck<ArraySchemaList, LocalValueArray | null>;
|
|
10
|
+
export declare const getFileSizeCheck: GetIsInvalidCheck<PersistAsyncWithUploadSchema | StringSchemaWithUpload, File | null>;
|
|
11
|
+
export declare const getFileTypeCheck: GetIsInvalidCheck<PersistAsyncWithUploadSchema | StringSchemaWithUpload, File | null>;
|
|
9
12
|
export declare const getBelowMinItemsCheck: GetIsInvalidCheck<ArraySchemaList, LocalValueArray | null>;
|
|
10
13
|
export declare const getAboveMaxLengthCheck: GetIsInvalidCheck<StringSchema, string | null>;
|
|
11
14
|
export declare const getBelowMinLengthCheck: GetIsInvalidCheck<StringSchema, string | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StringSchema } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import type { MapperProps, SchemaMapperProps } from '../types';
|
|
3
|
-
export declare const stringSchemaToComponent: (schemaMapperProps: SchemaMapperProps & {
|
|
3
|
+
export declare const stringSchemaToComponent: (schemaMapperProps: Omit<SchemaMapperProps, "schema"> & {
|
|
4
4
|
schema: StringSchema;
|
|
5
5
|
}, mapperProps: MapperProps) => import("../../../components/DateInputComponent").DateInputComponent | import("../../../components/TextInputComponent").TextInputComponent | import("../../../components/UploadInputComponent").UploadInputComponent;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { StringSchema } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import type { MapperProps, SchemaMapperProps } from '../types';
|
|
3
|
-
export declare const stringSchemaToUploadInputComponent: (schemaMapperProps: SchemaMapperProps & {
|
|
4
|
-
schema: StringSchema
|
|
3
|
+
export declare const stringSchemaToUploadInputComponent: (schemaMapperProps: Omit<SchemaMapperProps, "schema"> & {
|
|
4
|
+
schema: StringSchema & {
|
|
5
|
+
format: "base64url";
|
|
6
|
+
};
|
|
5
7
|
}, mapperProps: MapperProps) => import("../../../components/UploadInputComponent").UploadInputComponent;
|
|
@@ -12,6 +12,8 @@ export type ErrorMessageFunctions = {
|
|
|
12
12
|
minFiles: (minFiles: number) => string;
|
|
13
13
|
maxItems: (maxItems: number) => string;
|
|
14
14
|
minItems: (minItems: number) => string;
|
|
15
|
+
maxSize: () => string;
|
|
16
|
+
accepts: () => string;
|
|
15
17
|
pattern: () => string;
|
|
16
18
|
required: () => string;
|
|
17
19
|
genericError: () => string;
|
|
@@ -6,9 +6,9 @@ import type { DomainComponent, LocalValue, LocalValueArray, LocalValueObject } f
|
|
|
6
6
|
type SchemaWithPersistAsync = (ArraySchemaList | ArraySchemaTuple | BooleanSchema | IntegerSchema | NumberSchema | StringSchema) & {
|
|
7
7
|
persistAsync: PersistAsync;
|
|
8
8
|
};
|
|
9
|
-
export type StringSchemaWithUpload = StringSchema & {
|
|
9
|
+
export type StringSchemaWithUpload = Omit<StringSchema & {
|
|
10
10
|
format: 'base64url';
|
|
11
|
-
}
|
|
11
|
+
}, 'persistAsync'>;
|
|
12
12
|
export type PersistAsyncWithUploadSchema = Schema & {
|
|
13
13
|
persistAsync: PersistAsync & {
|
|
14
14
|
schema: BlobSchema | StringSchemaWithUpload;
|