@wise/dynamic-flow-client-internal 4.19.0 → 4.20.0-experimental-1c8f72d
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 +149 -79
- package/build/main.mjs +135 -65
- package/build/types/dynamicFlow/messages.d.ts +13 -0
- package/package.json +8 -8
package/build/main.js
CHANGED
|
@@ -83,6 +83,7 @@ var de_default = {
|
|
|
83
83
|
"df.wise.ArraySchema.maxItemsError": "Bitte f\xFCge {maxItems} oder weniger hinzu.",
|
|
84
84
|
"df.wise.ArraySchema.minItemsError": "Bitte f\xFCge mindestens {minItems} hinzu.",
|
|
85
85
|
"df.wise.ArraySchema.removeItem": "Entfernen",
|
|
86
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
86
87
|
"df.wise.ControlFeedback.maxLength": "Bitte gib nicht mehr als {maxLength} Zeichen ein.",
|
|
87
88
|
"df.wise.ControlFeedback.maximum": "Bitte gib eine Zahl ein, die {maximum} oder weniger betr\xE4gt.",
|
|
88
89
|
"df.wise.ControlFeedback.maximumDate": "Bitte gib ein Datum ein, das am oder vor dem {maximum} liegt.",
|
|
@@ -93,6 +94,8 @@ var de_default = {
|
|
|
93
94
|
"df.wise.ControlFeedback.patternDate": "Bitte gib ein Datum im richtigen Format ein.",
|
|
94
95
|
"df.wise.ControlFeedback.required": "Bitte f\xFClle dieses Feld aus.",
|
|
95
96
|
"df.wise.ControlFeedback.type": "Falscher Typ",
|
|
97
|
+
"df.wise.CopyFeedback.copy": "In Zwischenablage kopiert",
|
|
98
|
+
"df.wise.CopyFeedback.copyFailed": "Kopieren in Zwischenablage fehlgeschlagen",
|
|
96
99
|
"df.wise.DynamicParagraph.copied": "In Zwischenablage kopiert",
|
|
97
100
|
"df.wise.DynamicParagraph.copy": "Kopieren",
|
|
98
101
|
"df.wise.ErrorBoundary.errorAlert": "Da ist etwas schiefgegangen.",
|
|
@@ -118,6 +121,7 @@ var en_default = {
|
|
|
118
121
|
"df.wise.ArraySchema.maxItemsError": "Please add {maxItems} or fewer.",
|
|
119
122
|
"df.wise.ArraySchema.minItemsError": "Please add at least {minItems}.",
|
|
120
123
|
"df.wise.ArraySchema.removeItem": "Remove",
|
|
124
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
121
125
|
"df.wise.ControlFeedback.maxLength": "Please enter {maxLength} or fewer characters.",
|
|
122
126
|
"df.wise.ControlFeedback.maximum": "Please enter a number that's {maximum} or less.",
|
|
123
127
|
"df.wise.ControlFeedback.maximumDate": "Please enter a date that's on or before {maximum}.",
|
|
@@ -128,6 +132,8 @@ var en_default = {
|
|
|
128
132
|
"df.wise.ControlFeedback.patternDate": "Please enter a date in the corrrect format.",
|
|
129
133
|
"df.wise.ControlFeedback.required": "Please fill out this field.",
|
|
130
134
|
"df.wise.ControlFeedback.type": "Incorrect type",
|
|
135
|
+
"df.wise.CopyFeedback.copy": "Copied to clipboard",
|
|
136
|
+
"df.wise.CopyFeedback.copyFailed": "Failed to copy to clipboard",
|
|
131
137
|
"df.wise.DynamicParagraph.copied": "Copied to clipboard",
|
|
132
138
|
"df.wise.DynamicParagraph.copy": "Copy",
|
|
133
139
|
"df.wise.ErrorBoundary.errorAlert": "Something went wrong.",
|
|
@@ -153,6 +159,7 @@ var es_default = {
|
|
|
153
159
|
"df.wise.ArraySchema.maxItemsError": "A\xF1ade {maxItems} o menos.",
|
|
154
160
|
"df.wise.ArraySchema.minItemsError": "A\xF1ade al menos {minItems}.",
|
|
155
161
|
"df.wise.ArraySchema.removeItem": "Eliminar",
|
|
162
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "Esto puede tardar unos segundos",
|
|
156
163
|
"df.wise.ControlFeedback.maxLength": "Introduce {maxLength} caracteres o menos.",
|
|
157
164
|
"df.wise.ControlFeedback.maximum": "Introduce una cifra igual o inferior a {maximum}.",
|
|
158
165
|
"df.wise.ControlFeedback.maximumDate": "Introduce una fecha que sea igual o anterior al {maximum}.",
|
|
@@ -163,6 +170,8 @@ var es_default = {
|
|
|
163
170
|
"df.wise.ControlFeedback.patternDate": "Introduce la fecha en un formato correcto.",
|
|
164
171
|
"df.wise.ControlFeedback.required": "Completa este campo.",
|
|
165
172
|
"df.wise.ControlFeedback.type": "Tipo incorrecto",
|
|
173
|
+
"df.wise.CopyFeedback.copy": "Copiado al portapapeles",
|
|
174
|
+
"df.wise.CopyFeedback.copyFailed": "Error al copiar al portapapeles",
|
|
166
175
|
"df.wise.DynamicParagraph.copied": "Copiado al portapapeles",
|
|
167
176
|
"df.wise.DynamicParagraph.copy": "Copiar",
|
|
168
177
|
"df.wise.ErrorBoundary.errorAlert": "Ha habido un error.",
|
|
@@ -188,6 +197,7 @@ var fr_default = {
|
|
|
188
197
|
"df.wise.ArraySchema.maxItemsError": "Veuillez ajouter {maxItems} ou moins.",
|
|
189
198
|
"df.wise.ArraySchema.minItemsError": "Veuillez ajouter au moins {minItems}.",
|
|
190
199
|
"df.wise.ArraySchema.removeItem": "Supprimer",
|
|
200
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
191
201
|
"df.wise.ControlFeedback.maxLength": "Veuillez saisir {maxLength} caract\xE8res ou moins.",
|
|
192
202
|
"df.wise.ControlFeedback.maximum": "Veuillez saisir un nombre inf\xE9rieur ou \xE9gal \xE0 {maximum}.",
|
|
193
203
|
"df.wise.ControlFeedback.maximumDate": "Veuillez saisir une date \xE9gale ou ant\xE9rieure au {maximum}.",
|
|
@@ -198,6 +208,8 @@ var fr_default = {
|
|
|
198
208
|
"df.wise.ControlFeedback.patternDate": "Veuillez saisir une date au format correct.",
|
|
199
209
|
"df.wise.ControlFeedback.required": "Champ obligatoire.",
|
|
200
210
|
"df.wise.ControlFeedback.type": "Type incorrect",
|
|
211
|
+
"df.wise.CopyFeedback.copy": "Copi\xE9 dans le presse-papier",
|
|
212
|
+
"df.wise.CopyFeedback.copyFailed": "Impossible de copier dans le presse-papier",
|
|
201
213
|
"df.wise.DynamicParagraph.copied": "Copi\xE9 dans le presse-papier",
|
|
202
214
|
"df.wise.DynamicParagraph.copy": "Copier",
|
|
203
215
|
"df.wise.ErrorBoundary.errorAlert": "Une erreur s'est produite.",
|
|
@@ -223,6 +235,7 @@ var hu_default = {
|
|
|
223
235
|
"df.wise.ArraySchema.maxItemsError": "K\xE9r\xFCnk, {maxItems} vagy ann\xE1l kevesebb t\xE9telt adj meg.",
|
|
224
236
|
"df.wise.ArraySchema.minItemsError": "K\xE9r\xFCnk, legal\xE1bb {minItems} t\xE9telt adj meg.",
|
|
225
237
|
"df.wise.ArraySchema.removeItem": "Elt\xE1vol\xEDt\xE1s",
|
|
238
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
226
239
|
"df.wise.ControlFeedback.maxLength": "K\xE9r\xFCnk, legfeljebb {maxLength} karaktert adj meg.",
|
|
227
240
|
"df.wise.ControlFeedback.maximum": "K\xE9r\xFCnk, add meg ezt vagy egy enn\xE9l kisebb sz\xE1mot: {maximum}.",
|
|
228
241
|
"df.wise.ControlFeedback.maximumDate": "K\xE9r\xFCnk, adj meg egy d\xE1tumot, ami megegyezik {maximum} napj\xE1val, vagy egy enn\xE9l kor\xE1bbit.",
|
|
@@ -233,6 +246,8 @@ var hu_default = {
|
|
|
233
246
|
"df.wise.ControlFeedback.patternDate": "K\xE9r\xFCnk, hogy a d\xE1tumot helyes form\xE1tumban add meg.",
|
|
234
247
|
"df.wise.ControlFeedback.required": "K\xE9r\xFCnk, t\xF6ltsd ki ezt a mez\u0151t.",
|
|
235
248
|
"df.wise.ControlFeedback.type": "Helytelen t\xEDpus",
|
|
249
|
+
"df.wise.CopyFeedback.copy": "V\xE1g\xF3lapra m\xE1solva",
|
|
250
|
+
"df.wise.CopyFeedback.copyFailed": "Nem siker\xFClt a v\xE1g\xF3lapra m\xE1solni",
|
|
236
251
|
"df.wise.DynamicParagraph.copied": "V\xE1g\xF3lapra m\xE1solva",
|
|
237
252
|
"df.wise.DynamicParagraph.copy": "M\xE1sol\xE1s",
|
|
238
253
|
"df.wise.ErrorBoundary.errorAlert": "Valami hiba t\xF6rt\xE9nt.",
|
|
@@ -258,6 +273,7 @@ var id_default = {
|
|
|
258
273
|
"df.wise.ArraySchema.maxItemsError": "Harap tambahkan {maxItems} atau kurang.",
|
|
259
274
|
"df.wise.ArraySchema.minItemsError": "Harap tambahkan setidaknya {minItems}.",
|
|
260
275
|
"df.wise.ArraySchema.removeItem": "Hapus",
|
|
276
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
261
277
|
"df.wise.ControlFeedback.maxLength": "Harap masukkan {maxLength} karakter atau kurang.",
|
|
262
278
|
"df.wise.ControlFeedback.maximum": "Harap masukkan angka paling besar {maximum} atau kurang dari itu.",
|
|
263
279
|
"df.wise.ControlFeedback.maximumDate": "Harap masukkan tanggal pada atau sebelum {maximum}.",
|
|
@@ -268,6 +284,8 @@ var id_default = {
|
|
|
268
284
|
"df.wise.ControlFeedback.patternDate": "Harap masukkan tanggal dalam format yang benar.",
|
|
269
285
|
"df.wise.ControlFeedback.required": "Harap isi kolom ini.",
|
|
270
286
|
"df.wise.ControlFeedback.type": "Tipe salah",
|
|
287
|
+
"df.wise.CopyFeedback.copy": "Disalin ke clipboard",
|
|
288
|
+
"df.wise.CopyFeedback.copyFailed": "Gagal menyalin ke clipboard",
|
|
271
289
|
"df.wise.DynamicParagraph.copied": "Disalin ke clipboard",
|
|
272
290
|
"df.wise.DynamicParagraph.copy": "Salin",
|
|
273
291
|
"df.wise.ErrorBoundary.errorAlert": "Terjadi kesalahan.",
|
|
@@ -293,6 +311,7 @@ var it_default = {
|
|
|
293
311
|
"df.wise.ArraySchema.maxItemsError": "Aggiungi al massimo {maxItems}.",
|
|
294
312
|
"df.wise.ArraySchema.minItemsError": "Aggiungi almeno {minItems}.",
|
|
295
313
|
"df.wise.ArraySchema.removeItem": "Rimuovi",
|
|
314
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "Potrebbero volerci un paio di secondi",
|
|
296
315
|
"df.wise.ControlFeedback.maxLength": "Inserisci un massimo di {maxLength} caratteri.",
|
|
297
316
|
"df.wise.ControlFeedback.maximum": "Inserisci un numero uguale o inferiore a {maximum}.",
|
|
298
317
|
"df.wise.ControlFeedback.maximumDate": "Inserisci una data corrispondente o precedente al {maximum}.",
|
|
@@ -303,6 +322,8 @@ var it_default = {
|
|
|
303
322
|
"df.wise.ControlFeedback.patternDate": "Inserisci la data in un formato corretto.",
|
|
304
323
|
"df.wise.ControlFeedback.required": "Compila questo campo.",
|
|
305
324
|
"df.wise.ControlFeedback.type": "Tipo errato",
|
|
325
|
+
"df.wise.CopyFeedback.copy": "Copiato negli appunti",
|
|
326
|
+
"df.wise.CopyFeedback.copyFailed": "Impossibile copiare negli appunti",
|
|
306
327
|
"df.wise.DynamicParagraph.copied": "Copiato negli appunti",
|
|
307
328
|
"df.wise.DynamicParagraph.copy": "Copia",
|
|
308
329
|
"df.wise.ErrorBoundary.errorAlert": "Qualcosa non ha funzionato.",
|
|
@@ -328,6 +349,7 @@ var ja_default = {
|
|
|
328
349
|
"df.wise.ArraySchema.maxItemsError": "{maxItems}\u30A2\u30A4\u30C6\u30E0\u4EE5\u4E0B\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
329
350
|
"df.wise.ArraySchema.minItemsError": "{minItems}\u30A2\u30A4\u30C6\u30E0\u4EE5\u4E0A\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
330
351
|
"df.wise.ArraySchema.removeItem": "\u524A\u9664\u3059\u308B",
|
|
352
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
331
353
|
"df.wise.ControlFeedback.maxLength": "{maxLength}\u6587\u5B57\u4EE5\u4E0B\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
332
354
|
"df.wise.ControlFeedback.maximum": "{maximum}\u4EE5\u4E0B\u306E\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
333
355
|
"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",
|
|
@@ -338,6 +360,8 @@ var ja_default = {
|
|
|
338
360
|
"df.wise.ControlFeedback.patternDate": "\u6B63\u3057\u3044\u5F62\u5F0F\u3067\u65E5\u4ED8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
339
361
|
"df.wise.ControlFeedback.required": "\u3053\u306E\u9805\u76EE\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059\u3002",
|
|
340
362
|
"df.wise.ControlFeedback.type": "\u4E0D\u6B63\u306A\u30BF\u30A4\u30D7",
|
|
363
|
+
"df.wise.CopyFeedback.copy": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
|
|
364
|
+
"df.wise.CopyFeedback.copyFailed": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",
|
|
341
365
|
"df.wise.DynamicParagraph.copied": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u3078\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
|
|
342
366
|
"df.wise.DynamicParagraph.copy": "\u30B3\u30D4\u30FC\u3059\u308B",
|
|
343
367
|
"df.wise.ErrorBoundary.errorAlert": "\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",
|
|
@@ -363,6 +387,7 @@ var pl_default = {
|
|
|
363
387
|
"df.wise.ArraySchema.maxItemsError": "Prosimy doda\u0107 maksymalnie {maxItems}.",
|
|
364
388
|
"df.wise.ArraySchema.minItemsError": "Prosimy doda\u0107 co najmniej {minItems}.",
|
|
365
389
|
"df.wise.ArraySchema.removeItem": "Usu\u0144",
|
|
390
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
366
391
|
"df.wise.ControlFeedback.maxLength": "Prosimy wprowadzi\u0107 do {maxLength} znak\xF3w.",
|
|
367
392
|
"df.wise.ControlFeedback.maximum": "Wprowad\u017A liczb\u0119 r\xF3wn\u0105 lub mniejsz\u0105 ni\u017C {maximum}.",
|
|
368
393
|
"df.wise.ControlFeedback.maximumDate": "Wprowad\u017A dat\u0119 nie p\xF3\u017Aniejsz\u0105 ni\u017C {maximum}.",
|
|
@@ -373,6 +398,8 @@ var pl_default = {
|
|
|
373
398
|
"df.wise.ControlFeedback.patternDate": "Wprowad\u017A dat\u0119 w prawid\u0142owym formacie.",
|
|
374
399
|
"df.wise.ControlFeedback.required": "Prosz\u0119 wype\u0142ni\u0107 to pole.",
|
|
375
400
|
"df.wise.ControlFeedback.type": "Nieprawid\u0142owy typ",
|
|
401
|
+
"df.wise.CopyFeedback.copy": "Skopiowano do schowka",
|
|
402
|
+
"df.wise.CopyFeedback.copyFailed": "Nie uda\u0142o si\u0119 skopiowa\u0107 do schowka",
|
|
376
403
|
"df.wise.DynamicParagraph.copied": "Skopiowano do schowka",
|
|
377
404
|
"df.wise.DynamicParagraph.copy": "Kopiuj",
|
|
378
405
|
"df.wise.ErrorBoundary.errorAlert": "Co\u015B posz\u0142o nie tak.",
|
|
@@ -398,6 +425,7 @@ var pt_default = {
|
|
|
398
425
|
"df.wise.ArraySchema.maxItemsError": "Adicione {maxItems} ou menos.",
|
|
399
426
|
"df.wise.ArraySchema.minItemsError": "Adicione pelo menos {minItems}.",
|
|
400
427
|
"df.wise.ArraySchema.removeItem": "Remover",
|
|
428
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
401
429
|
"df.wise.ControlFeedback.maxLength": "Por favor, insira {maxLength} caracteres ou menos.",
|
|
402
430
|
"df.wise.ControlFeedback.maximum": "Por favor, insira um n\xFAmero que seja {maximum} ou menos.",
|
|
403
431
|
"df.wise.ControlFeedback.maximumDate": "Por favor, insira uma data que seja em ou antes de {maximum}.",
|
|
@@ -408,6 +436,8 @@ var pt_default = {
|
|
|
408
436
|
"df.wise.ControlFeedback.patternDate": "Por favor, insira a data no formato correto.",
|
|
409
437
|
"df.wise.ControlFeedback.required": "Por favor, preencha o campo.",
|
|
410
438
|
"df.wise.ControlFeedback.type": "Tipo incorreto",
|
|
439
|
+
"df.wise.CopyFeedback.copy": "Copiado",
|
|
440
|
+
"df.wise.CopyFeedback.copyFailed": "Falha ao copiar para \xE1rea de transfer\xEAncia",
|
|
411
441
|
"df.wise.DynamicParagraph.copied": "Copiado",
|
|
412
442
|
"df.wise.DynamicParagraph.copy": "Copiar",
|
|
413
443
|
"df.wise.ErrorBoundary.errorAlert": "Algo deu errado.",
|
|
@@ -433,6 +463,7 @@ var ro_default = {
|
|
|
433
463
|
"df.wise.ArraySchema.maxItemsError": "Te rug\u0103m s\u0103 adaugi {maxItems} sau mai pu\u021Bine.",
|
|
434
464
|
"df.wise.ArraySchema.minItemsError": "Te rug\u0103m s\u0103 adaugi cel pu\u021Bin {minItems}.",
|
|
435
465
|
"df.wise.ArraySchema.removeItem": "Elimin\u0103",
|
|
466
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
436
467
|
"df.wise.ControlFeedback.maxLength": "Te rug\u0103m s\u0103 introduci {maxLength} sau mai pu\u021Bine caractere.",
|
|
437
468
|
"df.wise.ControlFeedback.maximum": "Te rug\u0103m s\u0103 introduci un num\u0103r egal cu {maximum} sau mai mic.",
|
|
438
469
|
"df.wise.ControlFeedback.maximumDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 de \xEEnainte de sau egal\u0103 cu {maximum}.",
|
|
@@ -443,6 +474,8 @@ var ro_default = {
|
|
|
443
474
|
"df.wise.ControlFeedback.patternDate": "Te rug\u0103m s\u0103 introduci o dat\u0103 \xEEn formatul corect.",
|
|
444
475
|
"df.wise.ControlFeedback.required": "Te rug\u0103m s\u0103 completezi acest spa\u021Biu.",
|
|
445
476
|
"df.wise.ControlFeedback.type": "Tip incorect",
|
|
477
|
+
"df.wise.CopyFeedback.copy": "Copiat \xEEn clipboard",
|
|
478
|
+
"df.wise.CopyFeedback.copyFailed": "Copierea \xEEn clipboard a e\u0219uat",
|
|
446
479
|
"df.wise.DynamicParagraph.copied": "Copiat \xEEn clipboard",
|
|
447
480
|
"df.wise.DynamicParagraph.copy": "Copiaz\u0103",
|
|
448
481
|
"df.wise.ErrorBoundary.errorAlert": "Ceva nu a mers bine.",
|
|
@@ -468,6 +501,7 @@ var ru_default = {
|
|
|
468
501
|
"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.",
|
|
469
502
|
"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}.",
|
|
470
503
|
"df.wise.ArraySchema.removeItem": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C",
|
|
504
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
471
505
|
"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.",
|
|
472
506
|
"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.",
|
|
473
507
|
"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.",
|
|
@@ -478,6 +512,8 @@ var ru_default = {
|
|
|
478
512
|
"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.",
|
|
479
513
|
"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.",
|
|
480
514
|
"df.wise.ControlFeedback.type": "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0442\u0438\u043F",
|
|
515
|
+
"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",
|
|
516
|
+
"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",
|
|
481
517
|
"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",
|
|
482
518
|
"df.wise.DynamicParagraph.copy": "\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
|
|
483
519
|
"df.wise.ErrorBoundary.errorAlert": "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A.",
|
|
@@ -503,6 +539,7 @@ var th_default = {
|
|
|
503
539
|
"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",
|
|
504
540
|
"df.wise.ArraySchema.minItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minItems}",
|
|
505
541
|
"df.wise.ArraySchema.removeItem": "\u0E25\u0E1A",
|
|
542
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
506
543
|
"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",
|
|
507
544
|
"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",
|
|
508
545
|
"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",
|
|
@@ -513,6 +550,8 @@ var th_default = {
|
|
|
513
550
|
"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",
|
|
514
551
|
"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",
|
|
515
552
|
"df.wise.ControlFeedback.type": "\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",
|
|
553
|
+
"df.wise.CopyFeedback.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
|
|
554
|
+
"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",
|
|
516
555
|
"df.wise.DynamicParagraph.copied": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
|
|
517
556
|
"df.wise.DynamicParagraph.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",
|
|
518
557
|
"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",
|
|
@@ -538,6 +577,7 @@ var tr_default = {
|
|
|
538
577
|
"df.wise.ArraySchema.maxItemsError": "L\xFCtfen {maxItems} veya daha az ekleme yap\u0131n",
|
|
539
578
|
"df.wise.ArraySchema.minItemsError": "L\xFCtfen en az {minItems} ekleme yap\u0131n.",
|
|
540
579
|
"df.wise.ArraySchema.removeItem": "Kald\u0131r",
|
|
580
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
541
581
|
"df.wise.ControlFeedback.maxLength": "L\xFCtfen {maxLength} veya daha az karakter girin.",
|
|
542
582
|
"df.wise.ControlFeedback.maximum": "L\xFCtfen {maximum} veya daha d\xFC\u015F\xFCk bir say\u0131 girin.",
|
|
543
583
|
"df.wise.ControlFeedback.maximumDate": "L\xFCtfen {maximum} veya daha erken bir tarih girin.",
|
|
@@ -548,6 +588,8 @@ var tr_default = {
|
|
|
548
588
|
"df.wise.ControlFeedback.patternDate": "L\xFCtfen tarihi do\u011Fru bi\xE7imde girin.",
|
|
549
589
|
"df.wise.ControlFeedback.required": "L\xFCtfen bu alan\u0131 doldurun.",
|
|
550
590
|
"df.wise.ControlFeedback.type": "Ge\xE7ersiz se\xE7im",
|
|
591
|
+
"df.wise.CopyFeedback.copy": "Panoya kopyaland\u0131",
|
|
592
|
+
"df.wise.CopyFeedback.copyFailed": "Panoya kopyalama ba\u015Far\u0131s\u0131z oldu",
|
|
551
593
|
"df.wise.DynamicParagraph.copied": "Panoya kopyaland\u0131",
|
|
552
594
|
"df.wise.DynamicParagraph.copy": "Kopyala",
|
|
553
595
|
"df.wise.ErrorBoundary.errorAlert": "Bir sorun olu\u015Ftu.",
|
|
@@ -573,6 +615,7 @@ var zh_CN_default = {
|
|
|
573
615
|
"df.wise.ArraySchema.maxItemsError": "\u8BF7\u6DFB\u52A0\u4E0D\u8D85\u8FC7 {maxItems} \u9879\u3002",
|
|
574
616
|
"df.wise.ArraySchema.minItemsError": "\u8BF7\u81F3\u5C11\u6DFB\u52A0 {minItems} \u9879\u3002",
|
|
575
617
|
"df.wise.ArraySchema.removeItem": "\u79FB\u9664",
|
|
618
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
576
619
|
"df.wise.ControlFeedback.maxLength": "\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC7 {maxLength} \u4E2A\u5B57\u7B26\u3002",
|
|
577
620
|
"df.wise.ControlFeedback.maximum": "\u8BF7\u8F93\u5165\u4E00\u4E2A\u5C0F\u4E8E\u6216\u7B49\u4E8E {maximum} \u7684\u6570\u5B57\u3002",
|
|
578
621
|
"df.wise.ControlFeedback.maximumDate": "\u8BF7\u8F93\u5165 {maximum} \u6216\u4E4B\u524D\u7684\u65E5\u671F",
|
|
@@ -583,6 +626,8 @@ var zh_CN_default = {
|
|
|
583
626
|
"df.wise.ControlFeedback.patternDate": "\u8BF7\u4EE5\u6B63\u786E\u7684\u683C\u5F0F\u8F93\u5165\u65E5\u671F",
|
|
584
627
|
"df.wise.ControlFeedback.required": "\u8BF7\u586B\u5199\u6B64\u5B57\u6BB5\u3002",
|
|
585
628
|
"df.wise.ControlFeedback.type": "\u7C7B\u578B\u9519\u8BEF",
|
|
629
|
+
"df.wise.CopyFeedback.copy": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
630
|
+
"df.wise.CopyFeedback.copyFailed": "\u590D\u5236\u5230\u526A\u8D34\u677F\u5931\u8D25",
|
|
586
631
|
"df.wise.DynamicParagraph.copied": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
|
|
587
632
|
"df.wise.DynamicParagraph.copy": "\u590D\u5236",
|
|
588
633
|
"df.wise.ErrorBoundary.errorAlert": "\u51FA\u9519\u4E86\u3002",
|
|
@@ -608,6 +653,7 @@ var zh_HK_default = {
|
|
|
608
653
|
"df.wise.ArraySchema.maxItemsError": "\u8ACB\u6DFB\u52A0\u4E0D\u8D85\u904E{maxItems}\u9805\u3002",
|
|
609
654
|
"df.wise.ArraySchema.minItemsError": "\u8ACB\u81F3\u5C11\u6DFB\u52A0{minItems}\u9805\u3002",
|
|
610
655
|
"df.wise.ArraySchema.removeItem": "\u79FB\u9664",
|
|
656
|
+
"df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
|
|
611
657
|
"df.wise.ControlFeedback.maxLength": "\u8ACB\u8F38\u5165\u6700\u591A{maxLength}\u500B\u5B57\u5143\u3002",
|
|
612
658
|
"df.wise.ControlFeedback.maximum": "\u8ACB\u8F38\u5165\u4E00\u500B\u5C0F\u65BC\u6216\u7B49\u65BC{maximum}\u7684\u6578\u5B57\u3002",
|
|
613
659
|
"df.wise.ControlFeedback.maximumDate": "\u8ACB\u8F38\u5165{maximum}\u6216\u4E4B\u524D\u7684\u65E5\u671F\u3002",
|
|
@@ -618,6 +664,8 @@ var zh_HK_default = {
|
|
|
618
664
|
"df.wise.ControlFeedback.patternDate": "\u8ACB\u4EE5\u6B63\u78BA\u683C\u5F0F\u8F38\u5165\u65E5\u671F\u3002",
|
|
619
665
|
"df.wise.ControlFeedback.required": "\u8ACB\u586B\u5BEB\u6B64\u6B04\u4F4D\u3002",
|
|
620
666
|
"df.wise.ControlFeedback.type": "\u932F\u8AA4\u7684\u985E\u578B",
|
|
667
|
+
"df.wise.CopyFeedback.copy": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",
|
|
668
|
+
"df.wise.CopyFeedback.copyFailed": "\u7121\u6CD5\u8907\u88FD\u5230\u526A\u8CBC\u677F",
|
|
621
669
|
"df.wise.DynamicParagraph.copied": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",
|
|
622
670
|
"df.wise.DynamicParagraph.copy": "\u8907\u88FD",
|
|
623
671
|
"df.wise.ErrorBoundary.errorAlert": "\u51FA\u4E86\u4E9B\u554F\u984C\u3002",
|
|
@@ -665,8 +713,8 @@ var translations = languages.reduce(
|
|
|
665
713
|
var i18n_default = translations;
|
|
666
714
|
|
|
667
715
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
668
|
-
var
|
|
669
|
-
var
|
|
716
|
+
var import_react15 = require("react");
|
|
717
|
+
var import_react_intl19 = require("react-intl");
|
|
670
718
|
var import_dynamic_flow_client2 = require("@wise/dynamic-flow-client");
|
|
671
719
|
|
|
672
720
|
// ../renderers/src/ButtonRenderer/AddressValidationButtonRenderer.tsx
|
|
@@ -713,33 +761,8 @@ var loading_button_messages_default = (0, import_react_intl.defineMessages)({
|
|
|
713
761
|
}
|
|
714
762
|
});
|
|
715
763
|
|
|
716
|
-
// ../renderers/src/ButtonRenderer/useLoading.ts
|
|
717
|
-
var import_react = require("react");
|
|
718
|
-
var useLoading = (stepLoadingState, onClick) => {
|
|
719
|
-
const [isActive, setIsActive] = (0, import_react.useState)(false);
|
|
720
|
-
const [isLoading, setIsLoading] = (0, import_react.useState)(false);
|
|
721
|
-
(0, import_react.useEffect)(() => {
|
|
722
|
-
if (isActive && stepLoadingState !== "idle") {
|
|
723
|
-
setIsLoading(true);
|
|
724
|
-
}
|
|
725
|
-
if (isLoading && stepLoadingState === "idle") {
|
|
726
|
-
setIsLoading(false);
|
|
727
|
-
setIsActive(false);
|
|
728
|
-
}
|
|
729
|
-
}, [stepLoadingState, isActive, isLoading]);
|
|
730
|
-
return {
|
|
731
|
-
isLoading,
|
|
732
|
-
onClick: () => {
|
|
733
|
-
setIsActive(true);
|
|
734
|
-
onClick();
|
|
735
|
-
},
|
|
736
|
-
onBlur: () => {
|
|
737
|
-
setIsActive(false);
|
|
738
|
-
}
|
|
739
|
-
};
|
|
740
|
-
};
|
|
741
|
-
|
|
742
764
|
// ../renderers/src/ButtonRenderer/AddressValidationButtonRenderer.tsx
|
|
765
|
+
var import_react = require("react");
|
|
743
766
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
744
767
|
var AddressValidationButtonRenderer = {
|
|
745
768
|
canRenderType: "button",
|
|
@@ -747,25 +770,29 @@ var AddressValidationButtonRenderer = {
|
|
|
747
770
|
render: AddressValidationButtonComponent
|
|
748
771
|
};
|
|
749
772
|
function AddressValidationButtonComponent(props) {
|
|
750
|
-
const { disabled, margin, title, stepLoadingState } = props;
|
|
773
|
+
const { disabled, margin, title, stepLoadingState, onClick } = props;
|
|
751
774
|
const { formatMessage } = (0, import_react_intl2.useIntl)();
|
|
752
|
-
const
|
|
775
|
+
const [spinny, setSpinny] = (0, import_react.useState)(false);
|
|
776
|
+
(0, import_react.useEffect)(() => {
|
|
777
|
+
if (stepLoadingState === "idle") {
|
|
778
|
+
setSpinny(false);
|
|
779
|
+
}
|
|
780
|
+
}, [stepLoadingState]);
|
|
753
781
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `d-flex flex-column ${getMargin(margin)}`, children: [
|
|
754
782
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
755
783
|
import_components.Button,
|
|
756
784
|
{
|
|
757
785
|
v2: true,
|
|
758
786
|
block: true,
|
|
759
|
-
disabled:
|
|
787
|
+
disabled: stepLoadingState !== "idle" || disabled,
|
|
760
788
|
priority: "primary",
|
|
761
789
|
size: "md",
|
|
762
|
-
loading:
|
|
763
|
-
onBlur,
|
|
790
|
+
loading: spinny,
|
|
764
791
|
onClick,
|
|
765
792
|
children: title
|
|
766
793
|
}
|
|
767
794
|
),
|
|
768
|
-
|
|
795
|
+
spinny && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.InlineAlert, { type: "warning", className: "m-x-auto", children: formatMessage(loading_button_messages_default.buttonLoadingMessage) })
|
|
769
796
|
] });
|
|
770
797
|
}
|
|
771
798
|
var AddressValidationButtonRenderer_default = AddressValidationButtonRenderer;
|
|
@@ -822,14 +849,20 @@ var BoxRenderer_default = BoxRenderer;
|
|
|
822
849
|
|
|
823
850
|
// ../renderers/src/ButtonRenderer/ButtonRenderer.tsx
|
|
824
851
|
var import_components3 = require("@transferwise/components");
|
|
852
|
+
var import_react2 = require("react");
|
|
825
853
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
826
854
|
var ButtonRenderer = {
|
|
827
855
|
canRenderType: "button",
|
|
828
856
|
render: ButtonComponent
|
|
829
857
|
};
|
|
830
858
|
function ButtonComponent(props) {
|
|
831
|
-
const { control, context, disabled, margin, title, size, stepLoadingState } = props;
|
|
832
|
-
const
|
|
859
|
+
const { control, context, disabled, margin, title, size, stepLoadingState, onClick } = props;
|
|
860
|
+
const [spinny, setSpinny] = (0, import_react2.useState)(false);
|
|
861
|
+
(0, import_react2.useEffect)(() => {
|
|
862
|
+
if (stepLoadingState === "idle") {
|
|
863
|
+
setSpinny(false);
|
|
864
|
+
}
|
|
865
|
+
}, [stepLoadingState]);
|
|
833
866
|
const priority = mapControl(control);
|
|
834
867
|
const type = priority === "tertiary" ? void 0 : mapContext(context);
|
|
835
868
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
@@ -837,13 +870,15 @@ function ButtonComponent(props) {
|
|
|
837
870
|
{
|
|
838
871
|
block: true,
|
|
839
872
|
className: getMargin(margin),
|
|
840
|
-
disabled:
|
|
873
|
+
disabled: stepLoadingState !== "idle" || disabled,
|
|
841
874
|
priority,
|
|
842
875
|
size: mapSize(size),
|
|
843
|
-
loading:
|
|
876
|
+
loading: spinny,
|
|
844
877
|
type,
|
|
845
|
-
|
|
846
|
-
|
|
878
|
+
onClick: () => {
|
|
879
|
+
setSpinny(true);
|
|
880
|
+
onClick();
|
|
881
|
+
},
|
|
847
882
|
children: title
|
|
848
883
|
}
|
|
849
884
|
);
|
|
@@ -1316,7 +1351,7 @@ var external_confirmation_messages_default = (0, import_react_intl5.defineMessag
|
|
|
1316
1351
|
|
|
1317
1352
|
// ../renderers/src/ExternalConfirmationRenderer.tsx
|
|
1318
1353
|
var import_react_intl6 = require("react-intl");
|
|
1319
|
-
var
|
|
1354
|
+
var import_react3 = require("react");
|
|
1320
1355
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1321
1356
|
var ExternalConfirmationRenderer = {
|
|
1322
1357
|
canRenderType: "external-confirmation",
|
|
@@ -1330,7 +1365,7 @@ function ExternalConfirmationRendererComponent({
|
|
|
1330
1365
|
onCancel
|
|
1331
1366
|
}) {
|
|
1332
1367
|
const { formatMessage } = (0, import_react_intl6.useIntl)();
|
|
1333
|
-
(0,
|
|
1368
|
+
(0, import_react3.useEffect)(() => {
|
|
1334
1369
|
if (url) {
|
|
1335
1370
|
const w = window.open(url, "_blank");
|
|
1336
1371
|
if (w) {
|
|
@@ -1451,7 +1486,7 @@ var HeadingRenderer_default = HeadingRenderer;
|
|
|
1451
1486
|
|
|
1452
1487
|
// ../renderers/src/ImageRenderer/UrlImage.tsx
|
|
1453
1488
|
var import_components14 = require("@transferwise/components");
|
|
1454
|
-
var
|
|
1489
|
+
var import_react4 = require("react");
|
|
1455
1490
|
|
|
1456
1491
|
// ../renderers/src/utils/api-utils.ts
|
|
1457
1492
|
function isRelativePath(url = "") {
|
|
@@ -1470,8 +1505,8 @@ function UrlImage({
|
|
|
1470
1505
|
uri,
|
|
1471
1506
|
httpClient
|
|
1472
1507
|
}) {
|
|
1473
|
-
const [imageSource, setImageSource] = (0,
|
|
1474
|
-
(0,
|
|
1508
|
+
const [imageSource, setImageSource] = (0, import_react4.useState)("");
|
|
1509
|
+
(0, import_react4.useEffect)(() => {
|
|
1475
1510
|
if (!uri.startsWith("urn:")) {
|
|
1476
1511
|
void getImageSource(httpClient, uri).then(setImageSource);
|
|
1477
1512
|
}
|
|
@@ -1822,7 +1857,7 @@ var MarkdownRenderer_default = MarkdownRenderer;
|
|
|
1822
1857
|
|
|
1823
1858
|
// ../renderers/src/ModalLayoutRenderer.tsx
|
|
1824
1859
|
var import_components21 = require("@transferwise/components");
|
|
1825
|
-
var
|
|
1860
|
+
var import_react5 = require("react");
|
|
1826
1861
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1827
1862
|
var ModalLayoutRenderer = {
|
|
1828
1863
|
canRenderType: "modal-layout",
|
|
@@ -1830,7 +1865,7 @@ var ModalLayoutRenderer = {
|
|
|
1830
1865
|
};
|
|
1831
1866
|
var ModalLayoutRenderer_default = ModalLayoutRenderer;
|
|
1832
1867
|
function DFModal({ content, margin, trigger }) {
|
|
1833
|
-
const [visible, setVisible] = (0,
|
|
1868
|
+
const [visible, setVisible] = (0, import_react5.useState)(false);
|
|
1834
1869
|
const { children, title } = content;
|
|
1835
1870
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: getMargin(margin), children: [
|
|
1836
1871
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_components21.Button, { priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
|
|
@@ -1860,7 +1895,7 @@ var ModalRenderer = {
|
|
|
1860
1895
|
|
|
1861
1896
|
// ../renderers/src/MultiSelectInputRenderer.tsx
|
|
1862
1897
|
var import_components23 = require("@transferwise/components");
|
|
1863
|
-
var
|
|
1898
|
+
var import_react6 = require("react");
|
|
1864
1899
|
var import_react_intl8 = require("react-intl");
|
|
1865
1900
|
|
|
1866
1901
|
// ../renderers/src/messages/multi-select.messages.ts
|
|
@@ -1881,7 +1916,7 @@ var MultiSelectInputRenderer = {
|
|
|
1881
1916
|
};
|
|
1882
1917
|
function MultiSelectInputRendererComponent(props) {
|
|
1883
1918
|
const { formatMessage } = (0, import_react_intl8.useIntl)();
|
|
1884
|
-
const [stagedIndices, setStagedIndices] = (0,
|
|
1919
|
+
const [stagedIndices, setStagedIndices] = (0, import_react6.useState)();
|
|
1885
1920
|
const {
|
|
1886
1921
|
id,
|
|
1887
1922
|
autoComplete,
|
|
@@ -2130,9 +2165,9 @@ var import_react_intl10 = require("react-intl");
|
|
|
2130
2165
|
|
|
2131
2166
|
// ../renderers/src/hooks/useSnackBarIfAvailable.ts
|
|
2132
2167
|
var import_components27 = require("@transferwise/components");
|
|
2133
|
-
var
|
|
2168
|
+
var import_react7 = require("react");
|
|
2134
2169
|
function useSnackBarIfAvailable() {
|
|
2135
|
-
const context = (0,
|
|
2170
|
+
const context = (0, import_react7.useContext)(import_components27.SnackbarContext);
|
|
2136
2171
|
return context ? context.createSnackbar : () => {
|
|
2137
2172
|
};
|
|
2138
2173
|
}
|
|
@@ -2200,7 +2235,7 @@ var ParagraphRenderer_default = ParagraphRenderer;
|
|
|
2200
2235
|
var import_components29 = require("@transferwise/components");
|
|
2201
2236
|
var import_icons = require("@transferwise/icons");
|
|
2202
2237
|
var import_classnames6 = __toESM(require("classnames"));
|
|
2203
|
-
var
|
|
2238
|
+
var import_react8 = require("react");
|
|
2204
2239
|
var import_react_intl12 = require("react-intl");
|
|
2205
2240
|
|
|
2206
2241
|
// ../renderers/src/messages/repeatable.messages.ts
|
|
@@ -2249,7 +2284,7 @@ function Repeatable(props) {
|
|
|
2249
2284
|
onRemove
|
|
2250
2285
|
} = props;
|
|
2251
2286
|
const { formatMessage } = (0, import_react_intl12.useIntl)();
|
|
2252
|
-
const [openModalType, setOpenModalType] = (0,
|
|
2287
|
+
const [openModalType, setOpenModalType] = (0, import_react8.useState)(null);
|
|
2253
2288
|
const onAddItem = () => {
|
|
2254
2289
|
onAdd();
|
|
2255
2290
|
setOpenModalType("add");
|
|
@@ -2415,7 +2450,7 @@ var getFieldValue = (value, help, orientation, onClick) => {
|
|
|
2415
2450
|
|
|
2416
2451
|
// ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
|
|
2417
2452
|
var import_components32 = require("@transferwise/components");
|
|
2418
|
-
var
|
|
2453
|
+
var import_react9 = require("react");
|
|
2419
2454
|
var import_react_intl16 = require("react-intl");
|
|
2420
2455
|
|
|
2421
2456
|
// ../renderers/src/messages/search.messages.ts
|
|
@@ -2488,7 +2523,7 @@ function BlockSearchRendererComponent({
|
|
|
2488
2523
|
trackEvent,
|
|
2489
2524
|
onChange
|
|
2490
2525
|
}) {
|
|
2491
|
-
const [hasSearched, setHasSearched] = (0,
|
|
2526
|
+
const [hasSearched, setHasSearched] = (0, import_react9.useState)(false);
|
|
2492
2527
|
const { formatMessage } = (0, import_react_intl16.useIntl)();
|
|
2493
2528
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: getMargin(margin), children: [
|
|
2494
2529
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
@@ -2560,7 +2595,7 @@ var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
|
|
|
2560
2595
|
// ../renderers/src/SearchRenderer/InlineSearchRendererComponent.tsx
|
|
2561
2596
|
var import_components33 = require("@transferwise/components");
|
|
2562
2597
|
var import_icons2 = require("@transferwise/icons");
|
|
2563
|
-
var
|
|
2598
|
+
var import_react10 = require("react");
|
|
2564
2599
|
var import_react_intl17 = require("react-intl");
|
|
2565
2600
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2566
2601
|
function InlineSearchRenderer({
|
|
@@ -2572,7 +2607,7 @@ function InlineSearchRenderer({
|
|
|
2572
2607
|
title,
|
|
2573
2608
|
trackEvent
|
|
2574
2609
|
}) {
|
|
2575
|
-
const [hasSearched, setHasSearched] = (0,
|
|
2610
|
+
const [hasSearched, setHasSearched] = (0, import_react10.useState)(false);
|
|
2576
2611
|
const intl = (0, import_react_intl17.useIntl)();
|
|
2577
2612
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FieldInput_default, { id, description: "", validation: void 0, help: "", label: title, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2578
2613
|
import_components33.Typeahead,
|
|
@@ -2705,7 +2740,7 @@ function RadioInputRendererComponent(props) {
|
|
|
2705
2740
|
|
|
2706
2741
|
// ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
|
|
2707
2742
|
var import_components36 = require("@transferwise/components");
|
|
2708
|
-
var
|
|
2743
|
+
var import_react11 = require("react");
|
|
2709
2744
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
2710
2745
|
function TabInputRendererComponent(props) {
|
|
2711
2746
|
const {
|
|
@@ -2720,7 +2755,7 @@ function TabInputRendererComponent(props) {
|
|
|
2720
2755
|
validationState,
|
|
2721
2756
|
onSelect
|
|
2722
2757
|
} = props;
|
|
2723
|
-
(0,
|
|
2758
|
+
(0, import_react11.useEffect)(() => {
|
|
2724
2759
|
if (!isValidIndex(selectedIndex, options.length)) {
|
|
2725
2760
|
onSelect(0);
|
|
2726
2761
|
}
|
|
@@ -2833,7 +2868,7 @@ function SelectInputRendererComponent(props) {
|
|
|
2833
2868
|
}
|
|
2834
2869
|
|
|
2835
2870
|
// ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
|
|
2836
|
-
var
|
|
2871
|
+
var import_react12 = require("react");
|
|
2837
2872
|
var import_components38 = require("@transferwise/components");
|
|
2838
2873
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2839
2874
|
function SegmentedInputRendererComponent(props) {
|
|
@@ -2848,7 +2883,7 @@ function SegmentedInputRendererComponent(props) {
|
|
|
2848
2883
|
validationState,
|
|
2849
2884
|
onSelect
|
|
2850
2885
|
} = props;
|
|
2851
|
-
(0,
|
|
2886
|
+
(0, import_react12.useEffect)(() => {
|
|
2852
2887
|
if (!isValidIndex2(selectedIndex, options.length)) {
|
|
2853
2888
|
onSelect(0);
|
|
2854
2889
|
}
|
|
@@ -2953,12 +2988,12 @@ var mapStatus = (status) => {
|
|
|
2953
2988
|
|
|
2954
2989
|
// ../renderers/src/utils/useCustomTheme.ts
|
|
2955
2990
|
var import_components_theming = require("@wise/components-theming");
|
|
2956
|
-
var
|
|
2991
|
+
var import_react13 = require("react");
|
|
2957
2992
|
var ThemeRequiredEventName = "Theme Required";
|
|
2958
2993
|
var useCustomTheme = (theme, trackEvent) => {
|
|
2959
2994
|
const previousThemeHookValue = (0, import_components_theming.useTheme)();
|
|
2960
|
-
const previousTheme = (0,
|
|
2961
|
-
(0,
|
|
2995
|
+
const previousTheme = (0, import_react13.useMemo)(() => previousThemeHookValue.theme, []);
|
|
2996
|
+
(0, import_react13.useEffect)(() => {
|
|
2962
2997
|
trackEvent(ThemeRequiredEventName, { theme });
|
|
2963
2998
|
return theme !== previousTheme ? () => {
|
|
2964
2999
|
trackEvent(ThemeRequiredEventName, { theme: previousTheme });
|
|
@@ -3042,7 +3077,7 @@ function StepRendererComponent(props) {
|
|
|
3042
3077
|
|
|
3043
3078
|
// ../renderers/src/TabsRenderer.tsx
|
|
3044
3079
|
var import_components42 = require("@transferwise/components");
|
|
3045
|
-
var
|
|
3080
|
+
var import_react14 = require("react");
|
|
3046
3081
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
3047
3082
|
var TabsRenderer = {
|
|
3048
3083
|
canRenderType: "tabs",
|
|
@@ -3061,7 +3096,7 @@ var TabsRenderer = {
|
|
|
3061
3096
|
}
|
|
3062
3097
|
};
|
|
3063
3098
|
function TabsRendererComponent({ uid, margin, tabs }) {
|
|
3064
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
|
3099
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react14.useState)(0);
|
|
3065
3100
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: getMargin(margin), children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
3066
3101
|
import_components42.Tabs,
|
|
3067
3102
|
{
|
|
@@ -3082,7 +3117,7 @@ function TabsRendererComponent({ uid, margin, tabs }) {
|
|
|
3082
3117
|
}
|
|
3083
3118
|
function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
3084
3119
|
var _a;
|
|
3085
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
|
3120
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react14.useState)(0);
|
|
3086
3121
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: getMargin(margin), children: [
|
|
3087
3122
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
3088
3123
|
import_components42.SegmentedControl,
|
|
@@ -3104,7 +3139,7 @@ function SegmentedTabsRendererComponent({ uid, margin, tabs }) {
|
|
|
3104
3139
|
}
|
|
3105
3140
|
function ChipsTabsRendererComponent({ margin, tabs }) {
|
|
3106
3141
|
var _a;
|
|
3107
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
|
3142
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react14.useState)(0);
|
|
3108
3143
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: getMargin(margin), children: [
|
|
3109
3144
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "chips-container", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
3110
3145
|
import_components42.Chips,
|
|
@@ -3416,6 +3451,21 @@ var getTrackEvent = (onEvent, onAnalytics, onThemeChange) => (name, properties)
|
|
|
3416
3451
|
}
|
|
3417
3452
|
};
|
|
3418
3453
|
|
|
3454
|
+
// src/dynamicFlow/messages.ts
|
|
3455
|
+
var import_react_intl18 = require("react-intl");
|
|
3456
|
+
var messages_default = (0, import_react_intl18.defineMessages)({
|
|
3457
|
+
copied: {
|
|
3458
|
+
id: "df.wise.CopyFeedback.copy",
|
|
3459
|
+
defaultMessage: "Copied to clipboard",
|
|
3460
|
+
description: "Appears in a snackbar when the copy operation succeeds."
|
|
3461
|
+
},
|
|
3462
|
+
copyFailed: {
|
|
3463
|
+
id: "df.wise.CopyFeedback.copyFailed",
|
|
3464
|
+
defaultMessage: "Failed to copy to clipboard",
|
|
3465
|
+
description: "Appears in a snackbar when the copy operation fails."
|
|
3466
|
+
}
|
|
3467
|
+
});
|
|
3468
|
+
|
|
3419
3469
|
// src/dynamicFlow/DynamicFlow.tsx
|
|
3420
3470
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
3421
3471
|
var wiseRenderers = getWiseRenderers();
|
|
@@ -3435,23 +3485,33 @@ function DynamicFlowRevamp(props) {
|
|
|
3435
3485
|
onLink = openLinkInNewTab,
|
|
3436
3486
|
onThemeChange
|
|
3437
3487
|
} = props;
|
|
3488
|
+
const { formatMessage } = (0, import_react_intl19.useIntl)();
|
|
3489
|
+
const createSnackBar = useSnackBarIfAvailable();
|
|
3438
3490
|
const httpClient = useWiseHttpClient(customFetch);
|
|
3439
|
-
const mergedRenderers = (0,
|
|
3440
|
-
const logEvent = (0,
|
|
3441
|
-
const trackEvent = (0,
|
|
3491
|
+
const mergedRenderers = (0, import_react15.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
|
|
3492
|
+
const logEvent = (0, import_react15.useMemo)(() => getLogEvent(onLog), [onLog]);
|
|
3493
|
+
const trackEvent = (0, import_react15.useMemo)(
|
|
3442
3494
|
() => getTrackEvent(onEvent, onAnalytics, onThemeChange),
|
|
3443
3495
|
[onEvent, onAnalytics, onThemeChange]
|
|
3444
3496
|
);
|
|
3497
|
+
const onCopy = (copiedContent) => {
|
|
3498
|
+
if (copiedContent) {
|
|
3499
|
+
createSnackBar({ text: formatMessage(messages_default.copied) });
|
|
3500
|
+
} else {
|
|
3501
|
+
createSnackBar({ text: formatMessage(messages_default.copyFailed) });
|
|
3502
|
+
}
|
|
3503
|
+
};
|
|
3445
3504
|
const coreProps = __spreadProps(__spreadValues({}, props), {
|
|
3446
3505
|
httpClient,
|
|
3447
3506
|
renderers: mergedRenderers,
|
|
3448
3507
|
onEvent: trackEvent,
|
|
3449
3508
|
onLog: logEvent,
|
|
3450
|
-
onLink
|
|
3509
|
+
onLink,
|
|
3510
|
+
onCopy
|
|
3451
3511
|
});
|
|
3452
3512
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_dynamic_flow_client2.DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
|
|
3453
3513
|
}
|
|
3454
|
-
var DynamicForm = (0,
|
|
3514
|
+
var DynamicForm = (0, import_react15.forwardRef)(function DynamicForm2(props, ref) {
|
|
3455
3515
|
const {
|
|
3456
3516
|
className = "",
|
|
3457
3517
|
customFetch = globalThis.fetch,
|
|
@@ -3462,25 +3522,35 @@ var DynamicForm = (0, import_react14.forwardRef)(function DynamicForm2(props, re
|
|
|
3462
3522
|
onLink = openLinkInNewTab,
|
|
3463
3523
|
onThemeChange
|
|
3464
3524
|
} = props;
|
|
3525
|
+
const { formatMessage } = (0, import_react_intl19.useIntl)();
|
|
3526
|
+
const createSnackBar = useSnackBarIfAvailable();
|
|
3465
3527
|
const httpClient = useWiseHttpClient(customFetch);
|
|
3466
|
-
const mergedRenderers = (0,
|
|
3467
|
-
const logEvent = (0,
|
|
3468
|
-
const trackEvent = (0,
|
|
3528
|
+
const mergedRenderers = (0, import_react15.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers], [renderers]);
|
|
3529
|
+
const logEvent = (0, import_react15.useMemo)(() => getLogEvent(onLog), [onLog]);
|
|
3530
|
+
const trackEvent = (0, import_react15.useMemo)(
|
|
3469
3531
|
() => getTrackEvent(onEvent, onAnalytics, onThemeChange),
|
|
3470
3532
|
[onEvent, onAnalytics, onThemeChange]
|
|
3471
3533
|
);
|
|
3534
|
+
const onCopy = (copiedContent) => {
|
|
3535
|
+
if (copiedContent) {
|
|
3536
|
+
createSnackBar({ text: formatMessage(messages_default.copied) });
|
|
3537
|
+
} else {
|
|
3538
|
+
createSnackBar({ text: formatMessage(messages_default.copyFailed) });
|
|
3539
|
+
}
|
|
3540
|
+
};
|
|
3472
3541
|
const coreProps = __spreadProps(__spreadValues({}, props), {
|
|
3473
3542
|
httpClient,
|
|
3474
3543
|
renderers: mergedRenderers,
|
|
3475
3544
|
onEvent: trackEvent,
|
|
3476
3545
|
onLog: logEvent,
|
|
3477
|
-
onLink
|
|
3546
|
+
onLink,
|
|
3547
|
+
onCopy
|
|
3478
3548
|
});
|
|
3479
3549
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_dynamic_flow_client2.DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
|
|
3480
3550
|
});
|
|
3481
3551
|
var useWiseHttpClient = (httpClient) => {
|
|
3482
|
-
const { locale } = (0,
|
|
3483
|
-
return (0,
|
|
3552
|
+
const { locale } = (0, import_react_intl19.useIntl)();
|
|
3553
|
+
return (0, import_react15.useCallback)(
|
|
3484
3554
|
async (input, init = {}) => {
|
|
3485
3555
|
const headers = new Headers(init.headers);
|
|
3486
3556
|
headers.set("accept-language", locale);
|