@wise/dynamic-flow-client-internal 4.19.0 → 4.20.0-experimental-189acbd
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/cs.json +3 -0
- package/build/i18n/de.json +3 -0
- package/build/i18n/en.json +2 -0
- package/build/i18n/es.json +3 -0
- package/build/i18n/fr.json +3 -0
- package/build/i18n/hu.json +3 -0
- package/build/i18n/id.json +3 -0
- package/build/i18n/it.json +3 -0
- package/build/i18n/ja.json +3 -0
- package/build/i18n/nl.json +3 -0
- package/build/i18n/pl.json +3 -0
- package/build/i18n/pt.json +3 -0
- package/build/i18n/ro.json +3 -0
- package/build/i18n/ru.json +3 -0
- package/build/i18n/th.json +3 -0
- package/build/i18n/tr.json +3 -0
- package/build/i18n/uk.json +3 -0
- package/build/i18n/zh_CN.json +3 -0
- package/build/i18n/zh_HK.json +3 -0
- package/build/main.js +146 -75
- package/build/main.mjs +132 -61
- package/build/types/dynamicFlow/messages.d.ts +13 -0
- package/package.json +9 -9
package/build/main.mjs
CHANGED
|
@@ -45,6 +45,7 @@ var de_default = {
|
|
|
45
45
|
"df.wise.ArraySchema.maxItemsError": "Bitte f\xFCge {maxItems} oder weniger hinzu.",
|
|
46
46
|
"df.wise.ArraySchema.minItemsError": "Bitte f\xFCge mindestens {minItems} hinzu.",
|
|
47
47
|
"df.wise.ArraySchema.removeItem": "Entfernen",
|
|
48
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
48
49
|
"df.wise.ControlFeedback.maxLength": "Bitte gib nicht mehr als {maxLength} Zeichen ein.",
|
|
49
50
|
"df.wise.ControlFeedback.maximum": "Bitte gib eine Zahl ein, die {maximum} oder weniger betr\xE4gt.",
|
|
50
51
|
"df.wise.ControlFeedback.maximumDate": "Bitte gib ein Datum ein, das am oder vor dem {maximum} liegt.",
|
|
@@ -55,6 +56,8 @@ var de_default = {
|
|
|
55
56
|
"df.wise.ControlFeedback.patternDate": "Bitte gib ein Datum im richtigen Format ein.",
|
|
56
57
|
"df.wise.ControlFeedback.required": "Bitte f\xFClle dieses Feld aus.",
|
|
57
58
|
"df.wise.ControlFeedback.type": "Falscher Typ",
|
|
59
|
+
"df.wise.CopyFeedback.copy": "In Zwischenablage kopiert",
|
|
60
|
+
"df.wise.CopyFeedback.copyFailed": "Kopieren in Zwischenablage fehlgeschlagen",
|
|
58
61
|
"df.wise.DynamicParagraph.copied": "In Zwischenablage kopiert",
|
|
59
62
|
"df.wise.DynamicParagraph.copy": "Kopieren",
|
|
60
63
|
"df.wise.ErrorBoundary.errorAlert": "Da ist etwas schiefgegangen.",
|
|
@@ -80,6 +83,7 @@ var en_default = {
|
|
|
80
83
|
"df.wise.ArraySchema.maxItemsError": "Please add {maxItems} or fewer.",
|
|
81
84
|
"df.wise.ArraySchema.minItemsError": "Please add at least {minItems}.",
|
|
82
85
|
"df.wise.ArraySchema.removeItem": "Remove",
|
|
86
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
83
87
|
"df.wise.ControlFeedback.maxLength": "Please enter {maxLength} or fewer characters.",
|
|
84
88
|
"df.wise.ControlFeedback.maximum": "Please enter a number that's {maximum} or less.",
|
|
85
89
|
"df.wise.ControlFeedback.maximumDate": "Please enter a date that's on or before {maximum}.",
|
|
@@ -90,6 +94,8 @@ var en_default = {
|
|
|
90
94
|
"df.wise.ControlFeedback.patternDate": "Please enter a date in the corrrect format.",
|
|
91
95
|
"df.wise.ControlFeedback.required": "Please fill out this field.",
|
|
92
96
|
"df.wise.ControlFeedback.type": "Incorrect type",
|
|
97
|
+
"df.wise.CopyFeedback.copy": "Copied to clipboard",
|
|
98
|
+
"df.wise.CopyFeedback.copyFailed": "Failed to copy to clipboard",
|
|
93
99
|
"df.wise.DynamicParagraph.copied": "Copied to clipboard",
|
|
94
100
|
"df.wise.DynamicParagraph.copy": "Copy",
|
|
95
101
|
"df.wise.ErrorBoundary.errorAlert": "Something went wrong.",
|
|
@@ -115,6 +121,7 @@ var es_default = {
|
|
|
115
121
|
"df.wise.ArraySchema.maxItemsError": "A\xF1ade {maxItems} o menos.",
|
|
116
122
|
"df.wise.ArraySchema.minItemsError": "A\xF1ade al menos {minItems}.",
|
|
117
123
|
"df.wise.ArraySchema.removeItem": "Eliminar",
|
|
124
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "Esto puede tardar unos segundos",
|
|
118
125
|
"df.wise.ControlFeedback.maxLength": "Introduce {maxLength} caracteres o menos.",
|
|
119
126
|
"df.wise.ControlFeedback.maximum": "Introduce una cifra igual o inferior a {maximum}.",
|
|
120
127
|
"df.wise.ControlFeedback.maximumDate": "Introduce una fecha que sea igual o anterior al {maximum}.",
|
|
@@ -125,6 +132,8 @@ var es_default = {
|
|
|
125
132
|
"df.wise.ControlFeedback.patternDate": "Introduce la fecha en un formato correcto.",
|
|
126
133
|
"df.wise.ControlFeedback.required": "Completa este campo.",
|
|
127
134
|
"df.wise.ControlFeedback.type": "Tipo incorrecto",
|
|
135
|
+
"df.wise.CopyFeedback.copy": "Copiado al portapapeles",
|
|
136
|
+
"df.wise.CopyFeedback.copyFailed": "Error al copiar al portapapeles",
|
|
128
137
|
"df.wise.DynamicParagraph.copied": "Copiado al portapapeles",
|
|
129
138
|
"df.wise.DynamicParagraph.copy": "Copiar",
|
|
130
139
|
"df.wise.ErrorBoundary.errorAlert": "Ha habido un error.",
|
|
@@ -150,6 +159,7 @@ var fr_default = {
|
|
|
150
159
|
"df.wise.ArraySchema.maxItemsError": "Veuillez ajouter {maxItems} ou moins.",
|
|
151
160
|
"df.wise.ArraySchema.minItemsError": "Veuillez ajouter au moins {minItems}.",
|
|
152
161
|
"df.wise.ArraySchema.removeItem": "Supprimer",
|
|
162
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
153
163
|
"df.wise.ControlFeedback.maxLength": "Veuillez saisir {maxLength} caract\xE8res ou moins.",
|
|
154
164
|
"df.wise.ControlFeedback.maximum": "Veuillez saisir un nombre inf\xE9rieur ou \xE9gal \xE0 {maximum}.",
|
|
155
165
|
"df.wise.ControlFeedback.maximumDate": "Veuillez saisir une date \xE9gale ou ant\xE9rieure au {maximum}.",
|
|
@@ -160,6 +170,8 @@ var fr_default = {
|
|
|
160
170
|
"df.wise.ControlFeedback.patternDate": "Veuillez saisir une date au format correct.",
|
|
161
171
|
"df.wise.ControlFeedback.required": "Champ obligatoire.",
|
|
162
172
|
"df.wise.ControlFeedback.type": "Type incorrect",
|
|
173
|
+
"df.wise.CopyFeedback.copy": "Copi\xE9 dans le presse-papier",
|
|
174
|
+
"df.wise.CopyFeedback.copyFailed": "Impossible de copier dans le presse-papier",
|
|
163
175
|
"df.wise.DynamicParagraph.copied": "Copi\xE9 dans le presse-papier",
|
|
164
176
|
"df.wise.DynamicParagraph.copy": "Copier",
|
|
165
177
|
"df.wise.ErrorBoundary.errorAlert": "Une erreur s'est produite.",
|
|
@@ -185,6 +197,7 @@ var hu_default = {
|
|
|
185
197
|
"df.wise.ArraySchema.maxItemsError": "K\xE9r\xFCnk, {maxItems} vagy ann\xE1l kevesebb t\xE9telt adj meg.",
|
|
186
198
|
"df.wise.ArraySchema.minItemsError": "K\xE9r\xFCnk, legal\xE1bb {minItems} t\xE9telt adj meg.",
|
|
187
199
|
"df.wise.ArraySchema.removeItem": "Elt\xE1vol\xEDt\xE1s",
|
|
200
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
188
201
|
"df.wise.ControlFeedback.maxLength": "K\xE9r\xFCnk, legfeljebb {maxLength} karaktert adj meg.",
|
|
189
202
|
"df.wise.ControlFeedback.maximum": "K\xE9r\xFCnk, add meg ezt vagy egy enn\xE9l kisebb sz\xE1mot: {maximum}.",
|
|
190
203
|
"df.wise.ControlFeedback.maximumDate": "K\xE9r\xFCnk, adj meg egy d\xE1tumot, ami megegyezik {maximum} napj\xE1val, vagy egy enn\xE9l kor\xE1bbit.",
|
|
@@ -195,6 +208,8 @@ var hu_default = {
|
|
|
195
208
|
"df.wise.ControlFeedback.patternDate": "K\xE9r\xFCnk, hogy a d\xE1tumot helyes form\xE1tumban add meg.",
|
|
196
209
|
"df.wise.ControlFeedback.required": "K\xE9r\xFCnk, t\xF6ltsd ki ezt a mez\u0151t.",
|
|
197
210
|
"df.wise.ControlFeedback.type": "Helytelen t\xEDpus",
|
|
211
|
+
"df.wise.CopyFeedback.copy": "V\xE1g\xF3lapra m\xE1solva",
|
|
212
|
+
"df.wise.CopyFeedback.copyFailed": "Nem siker\xFClt a v\xE1g\xF3lapra m\xE1solni",
|
|
198
213
|
"df.wise.DynamicParagraph.copied": "V\xE1g\xF3lapra m\xE1solva",
|
|
199
214
|
"df.wise.DynamicParagraph.copy": "M\xE1sol\xE1s",
|
|
200
215
|
"df.wise.ErrorBoundary.errorAlert": "Valami hiba t\xF6rt\xE9nt.",
|
|
@@ -220,6 +235,7 @@ var id_default = {
|
|
|
220
235
|
"df.wise.ArraySchema.maxItemsError": "Harap tambahkan {maxItems} atau kurang.",
|
|
221
236
|
"df.wise.ArraySchema.minItemsError": "Harap tambahkan setidaknya {minItems}.",
|
|
222
237
|
"df.wise.ArraySchema.removeItem": "Hapus",
|
|
238
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
223
239
|
"df.wise.ControlFeedback.maxLength": "Harap masukkan {maxLength} karakter atau kurang.",
|
|
224
240
|
"df.wise.ControlFeedback.maximum": "Harap masukkan angka paling besar {maximum} atau kurang dari itu.",
|
|
225
241
|
"df.wise.ControlFeedback.maximumDate": "Harap masukkan tanggal pada atau sebelum {maximum}.",
|
|
@@ -230,6 +246,8 @@ var id_default = {
|
|
|
230
246
|
"df.wise.ControlFeedback.patternDate": "Harap masukkan tanggal dalam format yang benar.",
|
|
231
247
|
"df.wise.ControlFeedback.required": "Harap isi kolom ini.",
|
|
232
248
|
"df.wise.ControlFeedback.type": "Tipe salah",
|
|
249
|
+
"df.wise.CopyFeedback.copy": "Disalin ke clipboard",
|
|
250
|
+
"df.wise.CopyFeedback.copyFailed": "Gagal menyalin ke clipboard",
|
|
233
251
|
"df.wise.DynamicParagraph.copied": "Disalin ke clipboard",
|
|
234
252
|
"df.wise.DynamicParagraph.copy": "Salin",
|
|
235
253
|
"df.wise.ErrorBoundary.errorAlert": "Terjadi kesalahan.",
|
|
@@ -255,6 +273,7 @@ var it_default = {
|
|
|
255
273
|
"df.wise.ArraySchema.maxItemsError": "Aggiungi al massimo {maxItems}.",
|
|
256
274
|
"df.wise.ArraySchema.minItemsError": "Aggiungi almeno {minItems}.",
|
|
257
275
|
"df.wise.ArraySchema.removeItem": "Rimuovi",
|
|
276
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "Potrebbero volerci un paio di secondi",
|
|
258
277
|
"df.wise.ControlFeedback.maxLength": "Inserisci un massimo di {maxLength} caratteri.",
|
|
259
278
|
"df.wise.ControlFeedback.maximum": "Inserisci un numero uguale o inferiore a {maximum}.",
|
|
260
279
|
"df.wise.ControlFeedback.maximumDate": "Inserisci una data corrispondente o precedente al {maximum}.",
|
|
@@ -265,6 +284,8 @@ var it_default = {
|
|
|
265
284
|
"df.wise.ControlFeedback.patternDate": "Inserisci la data in un formato corretto.",
|
|
266
285
|
"df.wise.ControlFeedback.required": "Compila questo campo.",
|
|
267
286
|
"df.wise.ControlFeedback.type": "Tipo errato",
|
|
287
|
+
"df.wise.CopyFeedback.copy": "Copiato negli appunti",
|
|
288
|
+
"df.wise.CopyFeedback.copyFailed": "Impossibile copiare negli appunti",
|
|
268
289
|
"df.wise.DynamicParagraph.copied": "Copiato negli appunti",
|
|
269
290
|
"df.wise.DynamicParagraph.copy": "Copia",
|
|
270
291
|
"df.wise.ErrorBoundary.errorAlert": "Qualcosa non ha funzionato.",
|
|
@@ -290,6 +311,7 @@ var ja_default = {
|
|
|
290
311
|
"df.wise.ArraySchema.maxItemsError": "{maxItems}\u30A2\u30A4\u30C6\u30E0\u4EE5\u4E0B\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
291
312
|
"df.wise.ArraySchema.minItemsError": "{minItems}\u30A2\u30A4\u30C6\u30E0\u4EE5\u4E0A\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
292
313
|
"df.wise.ArraySchema.removeItem": "\u524A\u9664\u3059\u308B",
|
|
314
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
293
315
|
"df.wise.ControlFeedback.maxLength": "{maxLength}\u6587\u5B57\u4EE5\u4E0B\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
294
316
|
"df.wise.ControlFeedback.maximum": "{maximum}\u4EE5\u4E0B\u306E\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
295
317
|
"df.wise.ControlFeedback.maximumDate": "{maximum}\u307E\u305F\u306F\u305D\u308C\u4EE5\u524D\u306E\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
@@ -300,6 +322,8 @@ var ja_default = {
|
|
|
300
322
|
"df.wise.ControlFeedback.patternDate": "\u6B63\u3057\u3044\u5F62\u5F0F\u3067\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
301
323
|
"df.wise.ControlFeedback.required": "\u3053\u306E\u9805\u76EE\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059\u3002",
|
|
302
324
|
"df.wise.ControlFeedback.type": "\u4E0D\u6B63\u306A\u30BF\u30A4\u30D7",
|
|
325
|
+
"df.wise.CopyFeedback.copy": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
|
|
326
|
+
"df.wise.CopyFeedback.copyFailed": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",
|
|
303
327
|
"df.wise.DynamicParagraph.copied": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
|
|
304
328
|
"df.wise.DynamicParagraph.copy": "\u30B3\u30D4\u30FC\u3059\u308B",
|
|
305
329
|
"df.wise.ErrorBoundary.errorAlert": "\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",
|
|
@@ -325,6 +349,7 @@ var pl_default = {
|
|
|
325
349
|
"df.wise.ArraySchema.maxItemsError": "Prosimy doda\u0107 maksymalnie {maxItems}.",
|
|
326
350
|
"df.wise.ArraySchema.minItemsError": "Prosimy doda\u0107 co najmniej {minItems}.",
|
|
327
351
|
"df.wise.ArraySchema.removeItem": "Usu\u0144",
|
|
352
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
328
353
|
"df.wise.ControlFeedback.maxLength": "Prosimy wprowadzi\u0107 do {maxLength} znak\xF3w.",
|
|
329
354
|
"df.wise.ControlFeedback.maximum": "Wprowad\u017A liczb\u0119 r\xF3wn\u0105 lub mniejsz\u0105 ni\u017C {maximum}.",
|
|
330
355
|
"df.wise.ControlFeedback.maximumDate": "Wprowad\u017A dat\u0119 nie p\xF3\u017Aniejsz\u0105 ni\u017C {maximum}.",
|
|
@@ -335,6 +360,8 @@ var pl_default = {
|
|
|
335
360
|
"df.wise.ControlFeedback.patternDate": "Wprowad\u017A dat\u0119 w prawid\u0142owym formacie.",
|
|
336
361
|
"df.wise.ControlFeedback.required": "Prosz\u0119 wype\u0142ni\u0107 to pole.",
|
|
337
362
|
"df.wise.ControlFeedback.type": "Nieprawid\u0142owy typ",
|
|
363
|
+
"df.wise.CopyFeedback.copy": "Skopiowano do schowka",
|
|
364
|
+
"df.wise.CopyFeedback.copyFailed": "Nie uda\u0142o si\u0119 skopiowa\u0107 do schowka",
|
|
338
365
|
"df.wise.DynamicParagraph.copied": "Skopiowano do schowka",
|
|
339
366
|
"df.wise.DynamicParagraph.copy": "Kopiuj",
|
|
340
367
|
"df.wise.ErrorBoundary.errorAlert": "Co\u015B posz\u0142o nie tak.",
|
|
@@ -360,6 +387,7 @@ var pt_default = {
|
|
|
360
387
|
"df.wise.ArraySchema.maxItemsError": "Adicione {maxItems} ou menos.",
|
|
361
388
|
"df.wise.ArraySchema.minItemsError": "Adicione pelo menos {minItems}.",
|
|
362
389
|
"df.wise.ArraySchema.removeItem": "Remover",
|
|
390
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
363
391
|
"df.wise.ControlFeedback.maxLength": "Por favor, insira {maxLength} caracteres ou menos.",
|
|
364
392
|
"df.wise.ControlFeedback.maximum": "Por favor, insira um n\xFAmero que seja {maximum} ou menos.",
|
|
365
393
|
"df.wise.ControlFeedback.maximumDate": "Por favor, insira uma data que seja em ou antes de {maximum}.",
|
|
@@ -370,6 +398,8 @@ var pt_default = {
|
|
|
370
398
|
"df.wise.ControlFeedback.patternDate": "Por favor, insira a data no formato correto.",
|
|
371
399
|
"df.wise.ControlFeedback.required": "Por favor, preencha o campo.",
|
|
372
400
|
"df.wise.ControlFeedback.type": "Tipo incorreto",
|
|
401
|
+
"df.wise.CopyFeedback.copy": "Copiado",
|
|
402
|
+
"df.wise.CopyFeedback.copyFailed": "Falha ao copiar para \xE1rea de transfer\xEAncia",
|
|
373
403
|
"df.wise.DynamicParagraph.copied": "Copiado",
|
|
374
404
|
"df.wise.DynamicParagraph.copy": "Copiar",
|
|
375
405
|
"df.wise.ErrorBoundary.errorAlert": "Algo deu errado.",
|
|
@@ -395,6 +425,7 @@ var ro_default = {
|
|
|
395
425
|
"df.wise.ArraySchema.maxItemsError": "Te rug\u0103m s\u0103 adaugi {maxItems} sau mai pu\u021Bine.",
|
|
396
426
|
"df.wise.ArraySchema.minItemsError": "Te rug\u0103m s\u0103 adaugi cel pu\u021Bin {minItems}.",
|
|
397
427
|
"df.wise.ArraySchema.removeItem": "Elimin\u0103",
|
|
428
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
398
429
|
"df.wise.ControlFeedback.maxLength": "Te rug\u0103m s\u0103 introduci {maxLength} sau mai pu\u021Bine caractere.",
|
|
399
430
|
"df.wise.ControlFeedback.maximum": "Te rug\u0103m s\u0103 introduci un num\u0103r egal cu {maximum} sau mai mic.",
|
|
400
431
|
"df.wise.ControlFeedback.maximumDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 de \xEEnainte de sau egal\u0103 cu {maximum}.",
|
|
@@ -405,6 +436,8 @@ var ro_default = {
|
|
|
405
436
|
"df.wise.ControlFeedback.patternDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 \xEEn formatul corect.",
|
|
406
437
|
"df.wise.ControlFeedback.required": "Te rug\u0103m s\u0103 completezi acest spa\u021Biu.",
|
|
407
438
|
"df.wise.ControlFeedback.type": "Tip incorect",
|
|
439
|
+
"df.wise.CopyFeedback.copy": "Copiat \xEEn clipboard",
|
|
440
|
+
"df.wise.CopyFeedback.copyFailed": "Copierea \xEEn clipboard a e\u0219uat",
|
|
408
441
|
"df.wise.DynamicParagraph.copied": "Copiat \xEEn clipboard",
|
|
409
442
|
"df.wise.DynamicParagraph.copy": "Copiaz\u0103",
|
|
410
443
|
"df.wise.ErrorBoundary.errorAlert": "Ceva nu a mers bine.",
|
|
@@ -430,6 +463,7 @@ var ru_default = {
|
|
|
430
463
|
"df.wise.ArraySchema.maxItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 {maxItems} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.",
|
|
431
464
|
"df.wise.ArraySchema.minItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minItems}.",
|
|
432
465
|
"df.wise.ArraySchema.removeItem": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C",
|
|
466
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
433
467
|
"df.wise.ControlFeedback.maxLength": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 {maxLength} \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432 \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.",
|
|
434
468
|
"df.wise.ControlFeedback.maximum": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043B\u043E, \u0440\u0430\u0432\u043D\u043E\u0435 {maximum} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.",
|
|
435
469
|
"df.wise.ControlFeedback.maximumDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443, \u0440\u0430\u0432\u043D\u0443\u044E {maximum} \u0438\u043B\u0438 \u0431\u043E\u043B\u0435\u0435 \u0440\u0430\u043D\u043D\u044E\u044E.",
|
|
@@ -440,6 +474,8 @@ var ru_default = {
|
|
|
440
474
|
"df.wise.ControlFeedback.patternDate": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u0442\u0443 \u0432 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E\u043C \u0444\u043E\u0440\u043C\u0430\u0442\u0435.",
|
|
441
475
|
"df.wise.ControlFeedback.required": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u043E\u0435 \u043F\u043E\u043B\u0435.",
|
|
442
476
|
"df.wise.ControlFeedback.type": "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0442\u0438\u043F",
|
|
477
|
+
"df.wise.CopyFeedback.copy": "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430",
|
|
478
|
+
"df.wise.CopyFeedback.copyFailed": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430",
|
|
443
479
|
"df.wise.DynamicParagraph.copied": "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430",
|
|
444
480
|
"df.wise.DynamicParagraph.copy": "\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
|
|
445
481
|
"df.wise.ErrorBoundary.errorAlert": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A.",
|
|
@@ -465,6 +501,7 @@ var th_default = {
|
|
|
465
501
|
"df.wise.ArraySchema.maxItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21 {maxItems} \u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",
|
|
466
502
|
"df.wise.ArraySchema.minItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minItems}",
|
|
467
503
|
"df.wise.ArraySchema.removeItem": "\u0E25\u0E1A",
|
|
504
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
468
505
|
"df.wise.ControlFeedback.maxLength": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19 {maxLength} \u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19",
|
|
469
506
|
"df.wise.ControlFeedback.maximum": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 {maximum} \u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",
|
|
470
507
|
"df.wise.ControlFeedback.maximumDate": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E1B\u0E47\u0E19 {maximum} \u0E2B\u0E23\u0E37\u0E2D\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E31\u0E49\u0E19",
|
|
@@ -475,6 +512,8 @@ var th_default = {
|
|
|
475
512
|
"df.wise.ControlFeedback.patternDate": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E43\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",
|
|
476
513
|
"df.wise.ControlFeedback.required": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E43\u0E19\u0E0A\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49",
|
|
477
514
|
"df.wise.ControlFeedback.type": "\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",
|
|
515
|
+
"df.wise.CopyFeedback.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
|
|
516
|
+
"df.wise.CopyFeedback.copyFailed": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",
|
|
478
517
|
"df.wise.DynamicParagraph.copied": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
|
|
479
518
|
"df.wise.DynamicParagraph.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",
|
|
480
519
|
"df.wise.ErrorBoundary.errorAlert": "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E02\u0E36\u0E49\u0E19",
|
|
@@ -500,6 +539,7 @@ var tr_default = {
|
|
|
500
539
|
"df.wise.ArraySchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az ekleme yap\u0131n",
|
|
501
540
|
"df.wise.ArraySchema.minItemsError": "L\xFCtfen en az {minItems} ekleme yap\u0131n.",
|
|
502
541
|
"df.wise.ArraySchema.removeItem": "Kald\u0131r",
|
|
542
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
503
543
|
"df.wise.ControlFeedback.maxLength": "L\xFCtfen {maxLength} veya daha az karakter girin.",
|
|
504
544
|
"df.wise.ControlFeedback.maximum": "L\xFCtfen {maximum} veya daha d\xFC\u015F\xFCk bir say\u0131 girin.",
|
|
505
545
|
"df.wise.ControlFeedback.maximumDate": "L\xFCtfen {maximum} veya daha erken bir tarih girin.",
|
|
@@ -510,6 +550,8 @@ var tr_default = {
|
|
|
510
550
|
"df.wise.ControlFeedback.patternDate": "L\xFCtfen tarihi do\u011Fru bi\xE7imde girin.",
|
|
511
551
|
"df.wise.ControlFeedback.required": "L\xFCtfen bu alan\u0131 doldurun.",
|
|
512
552
|
"df.wise.ControlFeedback.type": "Ge\xE7ersiz se\xE7im",
|
|
553
|
+
"df.wise.CopyFeedback.copy": "Panoya kopyaland\u0131",
|
|
554
|
+
"df.wise.CopyFeedback.copyFailed": "Panoya kopyalama ba\u015Far\u0131s\u0131z oldu",
|
|
513
555
|
"df.wise.DynamicParagraph.copied": "Panoya kopyaland\u0131",
|
|
514
556
|
"df.wise.DynamicParagraph.copy": "Kopyala",
|
|
515
557
|
"df.wise.ErrorBoundary.errorAlert": "Bir sorun olu\u015Ftu.",
|
|
@@ -535,6 +577,7 @@ var zh_CN_default = {
|
|
|
535
577
|
"df.wise.ArraySchema.maxItemsError": "\u8BF7\u6DFB\u52A0\u4E0D\u8D85\u8FC7 {maxItems} \u9879\u3002",
|
|
536
578
|
"df.wise.ArraySchema.minItemsError": "\u8BF7\u81F3\u5C11\u6DFB\u52A0 {minItems} \u9879\u3002",
|
|
537
579
|
"df.wise.ArraySchema.removeItem": "\u79FB\u9664",
|
|
580
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
538
581
|
"df.wise.ControlFeedback.maxLength": "\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC7 {maxLength} \u4E2A\u5B57\u7B26\u3002",
|
|
539
582
|
"df.wise.ControlFeedback.maximum": "\u8BF7\u8F93\u5165\u4E00\u4E2A\u5C0F\u4E8E\u6216\u7B49\u4E8E {maximum} \u7684\u6570\u5B57\u3002",
|
|
540
583
|
"df.wise.ControlFeedback.maximumDate": "\u8BF7\u8F93\u5165 {maximum} \u6216\u4E4B\u524D\u7684\u65E5\u671F",
|
|
@@ -545,6 +588,8 @@ var zh_CN_default = {
|
|
|
545
588
|
"df.wise.ControlFeedback.patternDate": "\u8BF7\u4EE5\u6B63\u786E\u7684\u683C\u5F0F\u8F93\u5165\u65E5\u671F",
|
|
546
589
|
"df.wise.ControlFeedback.required": "\u8BF7\u586B\u5199\u6B64\u5B57\u6BB5\u3002",
|
|
547
590
|
"df.wise.ControlFeedback.type": "\u7C7B\u578B\u9519\u8BEF",
|
|
591
|
+
"df.wise.CopyFeedback.copy": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
592
|
+
"df.wise.CopyFeedback.copyFailed": "\u590D\u5236\u5230\u526A\u8D34\u677F\u5931\u8D25",
|
|
548
593
|
"df.wise.DynamicParagraph.copied": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
549
594
|
"df.wise.DynamicParagraph.copy": "\u590D\u5236",
|
|
550
595
|
"df.wise.ErrorBoundary.errorAlert": "\u51FA\u9519\u4E86\u3002",
|
|
@@ -570,6 +615,7 @@ var zh_HK_default = {
|
|
|
570
615
|
"df.wise.ArraySchema.maxItemsError": "\u8ACB\u6DFB\u52A0\u4E0D\u8D85\u904E{maxItems}\u9805\u3002",
|
|
571
616
|
"df.wise.ArraySchema.minItemsError": "\u8ACB\u81F3\u5C11\u6DFB\u52A0{minItems}\u9805\u3002",
|
|
572
617
|
"df.wise.ArraySchema.removeItem": "\u79FB\u9664",
|
|
618
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
573
619
|
"df.wise.ControlFeedback.maxLength": "\u8ACB\u8F38\u5165\u6700\u591A{maxLength}\u500B\u5B57\u5143\u3002",
|
|
574
620
|
"df.wise.ControlFeedback.maximum": "\u8ACB\u8F38\u5165\u4E00\u500B\u5C0F\u65BC\u6216\u7B49\u65BC{maximum}\u7684\u6578\u5B57\u3002",
|
|
575
621
|
"df.wise.ControlFeedback.maximumDate": "\u8ACB\u8F38\u5165{maximum}\u6216\u4E4B\u524D\u7684\u65E5\u671F\u3002",
|
|
@@ -580,6 +626,8 @@ var zh_HK_default = {
|
|
|
580
626
|
"df.wise.ControlFeedback.patternDate": "\u8ACB\u4EE5\u6B63\u78BA\u683C\u5F0F\u8F38\u5165\u65E5\u671F\u3002",
|
|
581
627
|
"df.wise.ControlFeedback.required": "\u8ACB\u586B\u5BEB\u6B64\u6B04\u4F4D\u3002",
|
|
582
628
|
"df.wise.ControlFeedback.type": "\u932F\u8AA4\u7684\u985E\u578B",
|
|
629
|
+
"df.wise.CopyFeedback.copy": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",
|
|
630
|
+
"df.wise.CopyFeedback.copyFailed": "\u7121\u6CD5\u8907\u88FD\u5230\u526A\u8CBC\u677F",
|
|
583
631
|
"df.wise.DynamicParagraph.copied": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",
|
|
584
632
|
"df.wise.DynamicParagraph.copy": "\u8907\u88FD",
|
|
585
633
|
"df.wise.ErrorBoundary.errorAlert": "\u51FA\u4E86\u4E9B\u554F\u984C\u3002",
|
|
@@ -679,33 +727,8 @@ var loading_button_messages_default = defineMessages({
|
|
|
679
727
|
}
|
|
680
728
|
});
|
|
681
729
|
|
|
682
|
-
// ../renderers/src/ButtonRenderer/useLoading.ts
|
|
683
|
-
import { useEffect, useState } from "react";
|
|
684
|
-
var useLoading = (stepLoadingState, onClick) => {
|
|
685
|
-
const [isActive, setIsActive] = useState(false);
|
|
686
|
-
const [isLoading, setIsLoading] = useState(false);
|
|
687
|
-
useEffect(() => {
|
|
688
|
-
if (isActive && stepLoadingState !== "idle") {
|
|
689
|
-
setIsLoading(true);
|
|
690
|
-
}
|
|
691
|
-
if (isLoading && stepLoadingState === "idle") {
|
|
692
|
-
setIsLoading(false);
|
|
693
|
-
setIsActive(false);
|
|
694
|
-
}
|
|
695
|
-
}, [stepLoadingState, isActive, isLoading]);
|
|
696
|
-
return {
|
|
697
|
-
isLoading,
|
|
698
|
-
onClick: () => {
|
|
699
|
-
setIsActive(true);
|
|
700
|
-
onClick();
|
|
701
|
-
},
|
|
702
|
-
onBlur: () => {
|
|
703
|
-
setIsActive(false);
|
|
704
|
-
}
|
|
705
|
-
};
|
|
706
|
-
};
|
|
707
|
-
|
|
708
730
|
// ../renderers/src/ButtonRenderer/AddressValidationButtonRenderer.tsx
|
|
731
|
+
import { useState } from "react";
|
|
709
732
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
710
733
|
var AddressValidationButtonRenderer = {
|
|
711
734
|
canRenderType: "button",
|
|
@@ -713,9 +736,10 @@ var AddressValidationButtonRenderer = {
|
|
|
713
736
|
render: AddressValidationButtonComponent
|
|
714
737
|
};
|
|
715
738
|
function AddressValidationButtonComponent(props) {
|
|
716
|
-
const { disabled, margin, title, stepLoadingState } = props;
|
|
739
|
+
const { disabled, margin, title, stepLoadingState, onClick } = props;
|
|
717
740
|
const { formatMessage } = useIntl();
|
|
718
|
-
const
|
|
741
|
+
const [isActive, setActive] = useState(false);
|
|
742
|
+
const isLoading = isActive && stepLoadingState !== "idle";
|
|
719
743
|
return /* @__PURE__ */ jsxs("div", { className: `d-flex flex-column ${getMargin(margin)}`, children: [
|
|
720
744
|
/* @__PURE__ */ jsx(
|
|
721
745
|
Button,
|
|
@@ -726,8 +750,13 @@ function AddressValidationButtonComponent(props) {
|
|
|
726
750
|
priority: "primary",
|
|
727
751
|
size: "md",
|
|
728
752
|
loading: isLoading,
|
|
729
|
-
onBlur
|
|
730
|
-
|
|
753
|
+
onBlur: () => {
|
|
754
|
+
setActive(false);
|
|
755
|
+
},
|
|
756
|
+
onClick: () => {
|
|
757
|
+
setActive(true);
|
|
758
|
+
onClick();
|
|
759
|
+
},
|
|
731
760
|
children: title
|
|
732
761
|
}
|
|
733
762
|
),
|
|
@@ -788,14 +817,16 @@ var BoxRenderer_default = BoxRenderer;
|
|
|
788
817
|
|
|
789
818
|
// ../renderers/src/ButtonRenderer/ButtonRenderer.tsx
|
|
790
819
|
import { Button as Button2 } from "@transferwise/components";
|
|
820
|
+
import { useState as useState2 } from "react";
|
|
791
821
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
792
822
|
var ButtonRenderer = {
|
|
793
823
|
canRenderType: "button",
|
|
794
824
|
render: ButtonComponent
|
|
795
825
|
};
|
|
796
826
|
function ButtonComponent(props) {
|
|
797
|
-
const { control, context, disabled, margin, title, size, stepLoadingState } = props;
|
|
798
|
-
const
|
|
827
|
+
const { control, context, disabled, margin, title, size, stepLoadingState, onClick } = props;
|
|
828
|
+
const [isActive, setActive] = useState2(false);
|
|
829
|
+
const isLoading = isActive && stepLoadingState !== "idle";
|
|
799
830
|
const priority = mapControl(control);
|
|
800
831
|
const type = priority === "tertiary" ? void 0 : mapContext(context);
|
|
801
832
|
return /* @__PURE__ */ jsx4(
|
|
@@ -808,8 +839,13 @@ function ButtonComponent(props) {
|
|
|
808
839
|
size: mapSize(size),
|
|
809
840
|
loading: isLoading,
|
|
810
841
|
type,
|
|
811
|
-
onBlur
|
|
812
|
-
|
|
842
|
+
onBlur: () => {
|
|
843
|
+
setActive(false);
|
|
844
|
+
},
|
|
845
|
+
onClick: () => {
|
|
846
|
+
setActive(true);
|
|
847
|
+
onClick();
|
|
848
|
+
},
|
|
813
849
|
children: title
|
|
814
850
|
}
|
|
815
851
|
);
|
|
@@ -1282,7 +1318,7 @@ var external_confirmation_messages_default = defineMessages3({
|
|
|
1282
1318
|
|
|
1283
1319
|
// ../renderers/src/ExternalConfirmationRenderer.tsx
|
|
1284
1320
|
import { useIntl as useIntl3 } from "react-intl";
|
|
1285
|
-
import { useEffect
|
|
1321
|
+
import { useEffect } from "react";
|
|
1286
1322
|
import { Fragment, jsx as jsx20, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1287
1323
|
var ExternalConfirmationRenderer = {
|
|
1288
1324
|
canRenderType: "external-confirmation",
|
|
@@ -1296,7 +1332,7 @@ function ExternalConfirmationRendererComponent({
|
|
|
1296
1332
|
onCancel
|
|
1297
1333
|
}) {
|
|
1298
1334
|
const { formatMessage } = useIntl3();
|
|
1299
|
-
|
|
1335
|
+
useEffect(() => {
|
|
1300
1336
|
if (url) {
|
|
1301
1337
|
const w = window.open(url, "_blank");
|
|
1302
1338
|
if (w) {
|
|
@@ -1417,7 +1453,7 @@ var HeadingRenderer_default = HeadingRenderer;
|
|
|
1417
1453
|
|
|
1418
1454
|
// ../renderers/src/ImageRenderer/UrlImage.tsx
|
|
1419
1455
|
import { Image } from "@transferwise/components";
|
|
1420
|
-
import { useEffect as
|
|
1456
|
+
import { useEffect as useEffect2, useState as useState3 } from "react";
|
|
1421
1457
|
|
|
1422
1458
|
// ../renderers/src/utils/api-utils.ts
|
|
1423
1459
|
function isRelativePath(url = "") {
|
|
@@ -1436,8 +1472,8 @@ function UrlImage({
|
|
|
1436
1472
|
uri,
|
|
1437
1473
|
httpClient
|
|
1438
1474
|
}) {
|
|
1439
|
-
const [imageSource, setImageSource] =
|
|
1440
|
-
|
|
1475
|
+
const [imageSource, setImageSource] = useState3("");
|
|
1476
|
+
useEffect2(() => {
|
|
1441
1477
|
if (!uri.startsWith("urn:")) {
|
|
1442
1478
|
void getImageSource(httpClient, uri).then(setImageSource);
|
|
1443
1479
|
}
|
|
@@ -1792,7 +1828,7 @@ var MarkdownRenderer_default = MarkdownRenderer;
|
|
|
1792
1828
|
|
|
1793
1829
|
// ../renderers/src/ModalLayoutRenderer.tsx
|
|
1794
1830
|
import { Button as Button4, Modal as Modal2 } from "@transferwise/components";
|
|
1795
|
-
import { useState as
|
|
1831
|
+
import { useState as useState4 } from "react";
|
|
1796
1832
|
import { jsx as jsx35, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1797
1833
|
var ModalLayoutRenderer = {
|
|
1798
1834
|
canRenderType: "modal-layout",
|
|
@@ -1800,7 +1836,7 @@ var ModalLayoutRenderer = {
|
|
|
1800
1836
|
};
|
|
1801
1837
|
var ModalLayoutRenderer_default = ModalLayoutRenderer;
|
|
1802
1838
|
function DFModal({ content, margin, trigger }) {
|
|
1803
|
-
const [visible, setVisible] =
|
|
1839
|
+
const [visible, setVisible] = useState4(false);
|
|
1804
1840
|
const { children, title } = content;
|
|
1805
1841
|
return /* @__PURE__ */ jsxs9("div", { className: getMargin(margin), children: [
|
|
1806
1842
|
/* @__PURE__ */ jsx35(Button4, { priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
|
|
@@ -1830,7 +1866,7 @@ var ModalRenderer = {
|
|
|
1830
1866
|
|
|
1831
1867
|
// ../renderers/src/MultiSelectInputRenderer.tsx
|
|
1832
1868
|
import { SelectInput, SelectInputOptionContent } from "@transferwise/components";
|
|
1833
|
-
import { useState as
|
|
1869
|
+
import { useState as useState5 } from "react";
|
|
1834
1870
|
import { useIntl as useIntl4 } from "react-intl";
|
|
1835
1871
|
|
|
1836
1872
|
// ../renderers/src/messages/multi-select.messages.ts
|
|
@@ -1851,7 +1887,7 @@ var MultiSelectInputRenderer = {
|
|
|
1851
1887
|
};
|
|
1852
1888
|
function MultiSelectInputRendererComponent(props) {
|
|
1853
1889
|
const { formatMessage } = useIntl4();
|
|
1854
|
-
const [stagedIndices, setStagedIndices] =
|
|
1890
|
+
const [stagedIndices, setStagedIndices] = useState5();
|
|
1855
1891
|
const {
|
|
1856
1892
|
id,
|
|
1857
1893
|
autoComplete,
|
|
@@ -2170,7 +2206,7 @@ var ParagraphRenderer_default = ParagraphRenderer;
|
|
|
2170
2206
|
import { Button as Button6, Header as Header5, InlineAlert as InlineAlert3, Modal as Modal4, NavigationOption as NavigationOption2 } from "@transferwise/components";
|
|
2171
2207
|
import { Plus } from "@transferwise/icons";
|
|
2172
2208
|
import classNames6 from "classnames";
|
|
2173
|
-
import { useState as
|
|
2209
|
+
import { useState as useState6 } from "react";
|
|
2174
2210
|
import { useIntl as useIntl6 } from "react-intl";
|
|
2175
2211
|
|
|
2176
2212
|
// ../renderers/src/messages/repeatable.messages.ts
|
|
@@ -2219,7 +2255,7 @@ function Repeatable(props) {
|
|
|
2219
2255
|
onRemove
|
|
2220
2256
|
} = props;
|
|
2221
2257
|
const { formatMessage } = useIntl6();
|
|
2222
|
-
const [openModalType, setOpenModalType] =
|
|
2258
|
+
const [openModalType, setOpenModalType] = useState6(null);
|
|
2223
2259
|
const onAddItem = () => {
|
|
2224
2260
|
onAdd();
|
|
2225
2261
|
setOpenModalType("add");
|
|
@@ -2385,7 +2421,7 @@ var getFieldValue = (value, help, orientation, onClick) => {
|
|
|
2385
2421
|
|
|
2386
2422
|
// ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
|
|
2387
2423
|
import { Input as Input4, Markdown as Markdown4, NavigationOption as NavigationOption3, NavigationOptionsList as NavigationOptionsList2 } from "@transferwise/components";
|
|
2388
|
-
import { useState as
|
|
2424
|
+
import { useState as useState7 } from "react";
|
|
2389
2425
|
import { useIntl as useIntl8 } from "react-intl";
|
|
2390
2426
|
|
|
2391
2427
|
// ../renderers/src/messages/search.messages.ts
|
|
@@ -2458,7 +2494,7 @@ function BlockSearchRendererComponent({
|
|
|
2458
2494
|
trackEvent,
|
|
2459
2495
|
onChange
|
|
2460
2496
|
}) {
|
|
2461
|
-
const [hasSearched, setHasSearched] =
|
|
2497
|
+
const [hasSearched, setHasSearched] = useState7(false);
|
|
2462
2498
|
const { formatMessage } = useIntl8();
|
|
2463
2499
|
return /* @__PURE__ */ jsxs15("div", { className: getMargin(margin), children: [
|
|
2464
2500
|
/* @__PURE__ */ jsx45(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ jsx45(
|
|
@@ -2530,7 +2566,7 @@ var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
|
|
|
2530
2566
|
// ../renderers/src/SearchRenderer/InlineSearchRendererComponent.tsx
|
|
2531
2567
|
import { Markdown as Markdown5, Typeahead } from "@transferwise/components";
|
|
2532
2568
|
import { Search } from "@transferwise/icons";
|
|
2533
|
-
import { useState as
|
|
2569
|
+
import { useState as useState8 } from "react";
|
|
2534
2570
|
import { useIntl as useIntl9 } from "react-intl";
|
|
2535
2571
|
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
2536
2572
|
function InlineSearchRenderer({
|
|
@@ -2542,7 +2578,7 @@ function InlineSearchRenderer({
|
|
|
2542
2578
|
title,
|
|
2543
2579
|
trackEvent
|
|
2544
2580
|
}) {
|
|
2545
|
-
const [hasSearched, setHasSearched] =
|
|
2581
|
+
const [hasSearched, setHasSearched] = useState8(false);
|
|
2546
2582
|
const intl = useIntl9();
|
|
2547
2583
|
return /* @__PURE__ */ jsx46("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx46(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ jsx46(
|
|
2548
2584
|
Typeahead,
|
|
@@ -2675,7 +2711,7 @@ function RadioInputRendererComponent(props) {
|
|
|
2675
2711
|
|
|
2676
2712
|
// ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
|
|
2677
2713
|
import { Tabs } from "@transferwise/components";
|
|
2678
|
-
import { useEffect as
|
|
2714
|
+
import { useEffect as useEffect3 } from "react";
|
|
2679
2715
|
import { Fragment as Fragment6, jsx as jsx50, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2680
2716
|
function TabInputRendererComponent(props) {
|
|
2681
2717
|
const {
|
|
@@ -2690,7 +2726,7 @@ function TabInputRendererComponent(props) {
|
|
|
2690
2726
|
validationState,
|
|
2691
2727
|
onSelect
|
|
2692
2728
|
} = props;
|
|
2693
|
-
|
|
2729
|
+
useEffect3(() => {
|
|
2694
2730
|
if (!isValidIndex(selectedIndex, options.length)) {
|
|
2695
2731
|
onSelect(0);
|
|
2696
2732
|
}
|
|
@@ -2803,7 +2839,7 @@ function SelectInputRendererComponent(props) {
|
|
|
2803
2839
|
}
|
|
2804
2840
|
|
|
2805
2841
|
// ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
|
|
2806
|
-
import { useEffect as
|
|
2842
|
+
import { useEffect as useEffect4 } from "react";
|
|
2807
2843
|
import { SegmentedControl } from "@transferwise/components";
|
|
2808
2844
|
import { Fragment as Fragment8, jsx as jsx52, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2809
2845
|
function SegmentedInputRendererComponent(props) {
|
|
@@ -2818,7 +2854,7 @@ function SegmentedInputRendererComponent(props) {
|
|
|
2818
2854
|
validationState,
|
|
2819
2855
|
onSelect
|
|
2820
2856
|
} = props;
|
|
2821
|
-
|
|
2857
|
+
useEffect4(() => {
|
|
2822
2858
|
if (!isValidIndex2(selectedIndex, options.length)) {
|
|
2823
2859
|
onSelect(0);
|
|
2824
2860
|
}
|
|
@@ -2923,12 +2959,12 @@ var mapStatus = (status) => {
|
|
|
2923
2959
|
|
|
2924
2960
|
// ../renderers/src/utils/useCustomTheme.ts
|
|
2925
2961
|
import { useTheme } from "@wise/components-theming";
|
|
2926
|
-
import { useEffect as
|
|
2962
|
+
import { useEffect as useEffect5, useMemo } from "react";
|
|
2927
2963
|
var ThemeRequiredEventName = "Theme Required";
|
|
2928
2964
|
var useCustomTheme = (theme, trackEvent) => {
|
|
2929
2965
|
const previousThemeHookValue = useTheme();
|
|
2930
2966
|
const previousTheme = useMemo(() => previousThemeHookValue.theme, []);
|
|
2931
|
-
|
|
2967
|
+
useEffect5(() => {
|
|
2932
2968
|
trackEvent(ThemeRequiredEventName, { theme });
|
|
2933
2969
|
return theme !== previousTheme ? () => {
|
|
2934
2970
|
trackEvent(ThemeRequiredEventName, { theme: previousTheme });
|
|
@@ -3012,7 +3048,7 @@ function StepRendererComponent(props) {
|
|
|
3012
3048
|
|
|
3013
3049
|
// ../renderers/src/TabsRenderer.tsx
|
|
3014
3050
|
import { Chips, SegmentedControl as SegmentedControl2, Tabs as Tabs2 } from "@transferwise/components";
|
|
3015
|
-
import { useState as
|
|
3051
|
+
import { useState as useState9 } from "react";
|
|
3016
3052
|
import { jsx as jsx59, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3017
3053
|
var TabsRenderer = {
|
|
3018
3054
|
canRenderType: "tabs",
|
|
@@ -3031,7 +3067,7 @@ var TabsRenderer = {
|
|
|
3031
3067
|
}
|
|
3032
3068
|
};
|
|
3033
3069
|
function TabsRendererComponent({ uid, margin, tabs }) {
|
|
3034
|
-
const [selectedIndex, setSelectedIndex] =
|
|
3070
|
+
const [selectedIndex, setSelectedIndex] = useState9(0);
|
|
3035
3071
|
return /* @__PURE__ */ jsx59("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx59(
|
|
3036
3072
|
Tabs2,
|
|
3037
3073
|
{
|
|
@@ -3052,7 +3088,7 @@ function TabsRendererComponent({ uid, margin, tabs }) {
|
|
|
3052
3088
|
}
|
|
3053
3089
|
function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
3054
3090
|
var _a;
|
|
3055
|
-
const [selectedIndex, setSelectedIndex] =
|
|
3091
|
+
const [selectedIndex, setSelectedIndex] = useState9(0);
|
|
3056
3092
|
return /* @__PURE__ */ jsxs26("div", { className: getMargin(margin), children: [
|
|
3057
3093
|
/* @__PURE__ */ jsx59(
|
|
3058
3094
|
SegmentedControl2,
|
|
@@ -3074,7 +3110,7 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
|
3074
3110
|
}
|
|
3075
3111
|
function ChipsTabsRendererComponent({ margin, tabs }) {
|
|
3076
3112
|
var _a;
|
|
3077
|
-
const [selectedIndex, setSelectedIndex] =
|
|
3113
|
+
const [selectedIndex, setSelectedIndex] = useState9(0);
|
|
3078
3114
|
return /* @__PURE__ */ jsxs26("div", { className: getMargin(margin), children: [
|
|
3079
3115
|
/* @__PURE__ */ jsx59("div", { className: "chips-container", children: /* @__PURE__ */ jsx59(
|
|
3080
3116
|
Chips,
|
|
@@ -3392,6 +3428,21 @@ var getTrackEvent = (onEvent, onAnalytics, onThemeChange) => (name, properties)
|
|
|
3392
3428
|
}
|
|
3393
3429
|
};
|
|
3394
3430
|
|
|
3431
|
+
// src/dynamicFlow/messages.ts
|
|
3432
|
+
import { defineMessages as defineMessages9 } from "react-intl";
|
|
3433
|
+
var messages_default = defineMessages9({
|
|
3434
|
+
copied: {
|
|
3435
|
+
id: "df.wise.CopyFeedback.copy",
|
|
3436
|
+
defaultMessage: "Copied to clipboard",
|
|
3437
|
+
description: "Appears in a snackbar when the copy operation succeeds."
|
|
3438
|
+
},
|
|
3439
|
+
copyFailed: {
|
|
3440
|
+
id: "df.wise.CopyFeedback.copyFailed",
|
|
3441
|
+
defaultMessage: "Failed to copy to clipboard",
|
|
3442
|
+
description: "Appears in a snackbar when the copy operation fails."
|
|
3443
|
+
}
|
|
3444
|
+
});
|
|
3445
|
+
|
|
3395
3446
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
3396
3447
|
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
3397
3448
|
var wiseRenderers = getWiseRenderers();
|
|
@@ -3411,6 +3462,8 @@ function DynamicFlowRevamp(props) {
|
|
|
3411
3462
|
onLink = openLinkInNewTab,
|
|
3412
3463
|
onThemeChange
|
|
3413
3464
|
} = props;
|
|
3465
|
+
const { formatMessage } = useIntl10();
|
|
3466
|
+
const createSnackBar = useSnackBarIfAvailable();
|
|
3414
3467
|
const httpClient = useWiseHttpClient(customFetch);
|
|
3415
3468
|
const mergedRenderers = useMemo2(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
|
|
3416
3469
|
const logEvent = useMemo2(() => getLogEvent(onLog), [onLog]);
|
|
@@ -3418,12 +3471,20 @@ function DynamicFlowRevamp(props) {
|
|
|
3418
3471
|
() => getTrackEvent(onEvent, onAnalytics, onThemeChange),
|
|
3419
3472
|
[onEvent, onAnalytics, onThemeChange]
|
|
3420
3473
|
);
|
|
3474
|
+
const onCopy = (copiedContent) => {
|
|
3475
|
+
if (copiedContent) {
|
|
3476
|
+
createSnackBar({ text: formatMessage(messages_default.copied) });
|
|
3477
|
+
} else {
|
|
3478
|
+
createSnackBar({ text: formatMessage(messages_default.copyFailed) });
|
|
3479
|
+
}
|
|
3480
|
+
};
|
|
3421
3481
|
const coreProps = __spreadProps(__spreadValues({}, props), {
|
|
3422
3482
|
httpClient,
|
|
3423
3483
|
renderers: mergedRenderers,
|
|
3424
3484
|
onEvent: trackEvent,
|
|
3425
3485
|
onLog: logEvent,
|
|
3426
|
-
onLink
|
|
3486
|
+
onLink,
|
|
3487
|
+
onCopy
|
|
3427
3488
|
});
|
|
3428
3489
|
return /* @__PURE__ */ jsx63("div", { className, children: /* @__PURE__ */ jsx63(DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
|
|
3429
3490
|
}
|
|
@@ -3438,6 +3499,8 @@ var DynamicForm = forwardRef(function DynamicForm2(props, ref) {
|
|
|
3438
3499
|
onLink = openLinkInNewTab,
|
|
3439
3500
|
onThemeChange
|
|
3440
3501
|
} = props;
|
|
3502
|
+
const { formatMessage } = useIntl10();
|
|
3503
|
+
const createSnackBar = useSnackBarIfAvailable();
|
|
3441
3504
|
const httpClient = useWiseHttpClient(customFetch);
|
|
3442
3505
|
const mergedRenderers = useMemo2(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
|
|
3443
3506
|
const logEvent = useMemo2(() => getLogEvent(onLog), [onLog]);
|
|
@@ -3445,12 +3508,20 @@ var DynamicForm = forwardRef(function DynamicForm2(props, ref) {
|
|
|
3445
3508
|
() => getTrackEvent(onEvent, onAnalytics, onThemeChange),
|
|
3446
3509
|
[onEvent, onAnalytics, onThemeChange]
|
|
3447
3510
|
);
|
|
3511
|
+
const onCopy = (copiedContent) => {
|
|
3512
|
+
if (copiedContent) {
|
|
3513
|
+
createSnackBar({ text: formatMessage(messages_default.copied) });
|
|
3514
|
+
} else {
|
|
3515
|
+
createSnackBar({ text: formatMessage(messages_default.copyFailed) });
|
|
3516
|
+
}
|
|
3517
|
+
};
|
|
3448
3518
|
const coreProps = __spreadProps(__spreadValues({}, props), {
|
|
3449
3519
|
httpClient,
|
|
3450
3520
|
renderers: mergedRenderers,
|
|
3451
3521
|
onEvent: trackEvent,
|
|
3452
3522
|
onLog: logEvent,
|
|
3453
|
-
onLink
|
|
3523
|
+
onLink,
|
|
3524
|
+
onCopy
|
|
3454
3525
|
});
|
|
3455
3526
|
return /* @__PURE__ */ jsx63("div", { className, children: /* @__PURE__ */ jsx63(DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
|
|
3456
3527
|
});
|