@lifi/widget 4.10.0 → 4.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/README.md +2 -7
  2. package/dist/esm/components/ActionRow/ActionRow.d.ts +1 -0
  3. package/dist/esm/components/ExecutionStatusCard/ExecutionStatusCard.d.ts +1 -0
  4. package/dist/esm/components/ExecutionStatusCard/StatusIcon.d.ts +1 -0
  5. package/dist/esm/components/FeeBreakdownTooltip.d.ts +1 -0
  6. package/dist/esm/components/IconCircle/IconCircle.d.ts +1 -0
  7. package/dist/esm/components/Messages/WarningMessages.d.ts +1 -0
  8. package/dist/esm/components/RouteCard/RouteDetails.d.ts +1 -0
  9. package/dist/esm/components/Search/SearchInput.d.ts +1 -0
  10. package/dist/esm/components/StepActions/SentToWalletRow.d.ts +1 -0
  11. package/dist/esm/components/StepActions/StepActionsList.d.ts +1 -0
  12. package/dist/esm/components/TokenRate/TokenRate.d.ts +1 -0
  13. package/dist/esm/config/version.d.ts +1 -1
  14. package/dist/esm/config/version.js +1 -1
  15. package/dist/esm/config/version.js.map +1 -1
  16. package/dist/esm/hooks/useAddressActivity.d.ts +1 -0
  17. package/dist/esm/hooks/useAddressValidation.d.ts +1 -0
  18. package/dist/esm/hooks/useAvailableChains.d.ts +1 -0
  19. package/dist/esm/hooks/useExplorer.d.ts +1 -0
  20. package/dist/esm/hooks/useListHeight.d.ts +1 -0
  21. package/dist/esm/hooks/usePacedValue.js +1 -1
  22. package/dist/esm/hooks/usePacedValue.js.map +1 -1
  23. package/dist/esm/hooks/useRouteExecution.d.ts +1 -0
  24. package/dist/esm/hooks/useRouteExecutionMessage.d.ts.map +1 -1
  25. package/dist/esm/hooks/useRouteExecutionMessage.js +4 -8
  26. package/dist/esm/hooks/useRouteExecutionMessage.js.map +1 -1
  27. package/dist/esm/hooks/useRoutes.d.ts +1 -0
  28. package/dist/esm/i18n/bn.json +567 -270
  29. package/dist/esm/i18n/de.json +552 -255
  30. package/dist/esm/i18n/en.json +7 -61
  31. package/dist/esm/i18n/es.json +522 -225
  32. package/dist/esm/i18n/fr.json +541 -244
  33. package/dist/esm/i18n/hi.json +592 -295
  34. package/dist/esm/i18n/id.json +485 -188
  35. package/dist/esm/i18n/it.json +546 -249
  36. package/dist/esm/i18n/ja.json +512 -215
  37. package/dist/esm/i18n/ko.json +553 -256
  38. package/dist/esm/i18n/pl.json +598 -301
  39. package/dist/esm/i18n/pt.json +512 -215
  40. package/dist/esm/i18n/th.json +554 -257
  41. package/dist/esm/i18n/tr.json +538 -241
  42. package/dist/esm/i18n/uk.json +514 -217
  43. package/dist/esm/i18n/vi.json +550 -253
  44. package/dist/esm/i18n/zh.json +528 -231
  45. package/dist/esm/pages/MainPage/MainWarningMessages.d.ts +1 -0
  46. package/dist/esm/pages/SelectTokenPage/SearchTokenInput.d.ts +1 -0
  47. package/dist/esm/pages/TransactionDetailsPage/ContactSupportButton.d.ts +1 -0
  48. package/dist/esm/pages/TransactionPage/ConfirmToAddressSheet.d.ts +1 -0
  49. package/dist/esm/pages/TransactionPage/ExchangeRateBottomSheet.d.ts +1 -0
  50. package/dist/esm/pages/TransactionPage/ExecutionDoneCard.d.ts +1 -0
  51. package/dist/esm/pages/TransactionPage/RouteTracker.d.ts +1 -0
  52. package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.d.ts +1 -0
  53. package/dist/esm/pages/TransactionPage/TransactionDoneButtons.d.ts +1 -0
  54. package/dist/esm/pages/TransactionPage/TransactionFailedButtons.js +70 -18
  55. package/dist/esm/pages/TransactionPage/TransactionFailedButtons.js.map +1 -1
  56. package/dist/esm/pages/TransactionPage/utils.d.ts +3 -0
  57. package/dist/esm/pages/TransactionPage/utils.d.ts.map +1 -1
  58. package/dist/esm/pages/TransactionPage/utils.js +27 -1
  59. package/dist/esm/pages/TransactionPage/utils.js.map +1 -1
  60. package/dist/esm/providers/I18nProvider/I18nProvider.js +2 -2
  61. package/dist/esm/providers/I18nProvider/I18nProvider.js.map +1 -1
  62. package/dist/esm/providers/I18nProvider/enResource.d.ts +2 -2
  63. package/dist/esm/providers/I18nProvider/enResource.js +1 -2
  64. package/dist/esm/providers/I18nProvider/types.d.ts +2 -2
  65. package/dist/esm/providers/I18nProvider/types.d.ts.map +1 -1
  66. package/dist/esm/providers/WalletProvider/WalletProvider.d.ts +1 -0
  67. package/dist/esm/shared.d.ts +2 -2
  68. package/dist/esm/shared.js +2 -2
  69. package/dist/esm/stores/chains/types.d.ts +1 -0
  70. package/dist/esm/stores/form/types.d.ts +1 -0
  71. package/dist/esm/stores/header/types.d.ts +1 -0
  72. package/dist/esm/stores/inputMode/useInputModeStore.d.ts +1 -0
  73. package/dist/esm/stores/routes/utils.d.ts +1 -1
  74. package/dist/esm/stores/routes/utils.d.ts.map +1 -1
  75. package/dist/esm/stores/routes/utils.js +13 -1
  76. package/dist/esm/stores/routes/utils.js.map +1 -1
  77. package/dist/esm/utils/getErrorMessage.js +4 -0
  78. package/dist/esm/utils/getErrorMessage.js.map +1 -1
  79. package/dist/esm/utils/getPriceImpact.d.ts +1 -0
  80. package/dist/esm/utils/navigationRoutes.d.ts +1 -0
  81. package/dist/esm/utils/scopeKeys.d.ts +1 -0
  82. package/package.json +11 -11
  83. package/src/config/version.ts +1 -1
  84. package/src/hooks/usePacedValue.ts +1 -1
  85. package/src/hooks/useRouteExecutionMessage.ts +10 -13
  86. package/src/pages/TransactionPage/TransactionFailedButtons.test.tsx +497 -0
  87. package/src/pages/TransactionPage/TransactionFailedButtons.tsx +78 -9
  88. package/src/pages/TransactionPage/utils.ts +81 -0
  89. package/src/shared.ts +1 -0
  90. package/src/stores/routes/utils.ts +24 -1
  91. package/src/utils/getErrorMessage.ts +5 -0
@@ -5,14 +5,12 @@
5
5
  },
6
6
  "format": {
7
7
  "currency": "{{value, currencyExt(currency: USD)}}",
8
- "number": "{{value, number(maximumFractionDigits: 9)}}",
9
8
  "percent": "{{value, percent(maximumFractionDigits: 2)}}",
10
9
  "tokenAmount": "{{value, numberExt}}"
11
10
  },
12
11
  "button": {
13
12
  "auto": "Auto",
14
13
  "bookmark": "Bookmark",
15
- "bookmarks": "Bookmarks",
16
14
  "bridge": "Bridge",
17
15
  "bridgeReview": "Review bridge",
18
16
  "buy": "Buy",
@@ -41,17 +39,14 @@
41
39
  "done": "Done",
42
40
  "exchange": "Exchange",
43
41
  "getGas": "Get gas",
44
- "learnMore": "Learn more",
45
42
  "light": "Light",
46
43
  "max": "MAX",
47
- "ok": "Ok",
48
44
  "options": "Options",
49
45
  "requestRefund": "Request refund",
50
46
  "reset": "Reset",
51
47
  "resetSettings": "Reset settings",
52
48
  "resumeTransaction": "Resume transaction",
53
49
  "review": "Review",
54
- "seeDetails": "See details",
55
50
  "topUp": "Top up",
56
51
  "viewRefund": "View refund",
57
52
  "viewRefundStatus": "View refund status",
@@ -60,12 +55,12 @@
60
55
  "showLess": "Show less",
61
56
  "showMore": "Show {{count}} more",
62
57
  "startBridging": "Start bridging",
58
+ "startNewSwap": "Start a new swap",
63
59
  "startSwapping": "Start swapping",
64
60
  "swap": "Swap",
65
61
  "swapReview": "Review swap",
66
62
  "system": "System",
67
63
  "tryAgain": "Try again",
68
- "viewCoverage": "View coverage",
69
64
  "viewOnExplorer": "View on explorer"
70
65
  },
71
66
  "header": {
@@ -94,7 +89,6 @@
94
89
  "recentWallets": "Recent wallets",
95
90
  "refunded": "Refunded",
96
91
  "selectChain": "Select chain",
97
- "selectWallet": "Select your wallet",
98
92
  "sell": "Sell",
99
93
  "send": "Send",
100
94
  "sendToWallet": "Send to wallet",
@@ -104,8 +98,6 @@
104
98
  "to": "Exchange to",
105
99
  "transactionDetails": "Transaction details",
106
100
  "activities": "Activities",
107
- "walletConnected": "Wallet connected",
108
- "youGet": "You get",
109
101
  "youPay": "You pay"
110
102
  },
111
103
  "limitOrder": {
@@ -184,6 +176,7 @@
184
176
  "error": {
185
177
  "message": {
186
178
  "allowanceRequired": "Transfer amount for {{tokenSymbol}} exceeds your current allowance. Please increase your allowance and try again.",
179
+ "callBundleNotFound": "Your wallet has no record of this transaction. If you approved it, it can still complete. Check your wallet balance before you swap again.",
187
180
  "insufficientFunds": "You don't have enough gas to cover the cost of the transaction.",
188
181
  "rateLimitExceeded": "Too many requests have been made in a short period of time. Please wait a moment and try again or contact support if the issue persists.",
189
182
  "remainInYourWallet": "{{amount, numberExt}} {{tokenSymbol}} on {{chainName}} remain in your wallet.",
@@ -205,6 +198,7 @@
205
198
  "balanceIsTooLow": "The balance is too low",
206
199
  "bookmarkAlreadyExists": "Wallet is already bookmarked as {{name}}",
207
200
  "bookmarkNameRequired": "Bookmark name is required",
201
+ "callBundleNotFound": "Transaction not found in your wallet",
208
202
  "chainSwitch": "Chain switch required",
209
203
  "exchangeRateUpdateCanceled": "Exchange rate update canceled",
210
204
  "gasLimitIsTooLow": "The gas limit is too low",
@@ -266,17 +260,14 @@
266
260
  "fees": {
267
261
  "defaultIntegrator": "Integrator fee",
268
262
  "relayerService": "Gasless service",
269
- "estimated": "estimated costs",
270
263
  "free": "Free",
271
264
  "network": "Network cost",
272
- "paid": "paid costs",
273
265
  "provider": "Provider fee"
274
266
  },
275
267
  "from": "From",
276
268
  "maxSlippage": "Max. slippage",
277
269
  "minReceived": "Min. received",
278
270
  "myTokens": "My tokens",
279
- "onChain": "on {{chainName}}",
280
271
  "ownedBy": "Owned by",
281
272
  "pinnedTokens": "Pinned tokens",
282
273
  "popularTokens": "Popular tokens",
@@ -298,8 +289,7 @@
298
289
  "receivingChain": {
299
290
  "done": "Bridge completed",
300
291
  "partial": "Bridge partially completed",
301
- "pending": "Waiting for destination chain",
302
- "refunded": "Bridge transaction refunded"
292
+ "pending": "Waiting for destination chain"
303
293
  },
304
294
  "swap": {
305
295
  "actionRequired": "Sign swap transaction",
@@ -329,20 +319,8 @@
329
319
  "refuelStepDetails": "Get gas via {{tool}}",
330
320
  "route": "Route",
331
321
  "select": "Select",
332
- "sendToAddress": "Send to {{address}}",
333
322
  "sendToWallet": "Send to a different wallet",
334
323
  "sending": "Sending",
335
- "sentToAddress": "Sent to {{address}}",
336
- "stepBridge": "Bridge",
337
- "stepBridgeAndBuy": "Bridge and buy",
338
- "stepBridgeAndDeposit": "Bridge and deposit",
339
- "stepBuy": "Buy",
340
- "stepDeposit": "Deposit",
341
- "stepDetails": "{{tool}} via LI.FI",
342
- "stepSwap": "Swap",
343
- "stepSwapAndBridge": "Swap and bridge",
344
- "stepSwapAndBuy": "Swap and buy",
345
- "stepSwapAndDeposit": "Swap and deposit",
346
324
  "swapStepDetails": "Swap on {{chain}} via {{tool}}",
347
325
  "receipts": "Receipts",
348
326
  "sentToWallet": "Sent to wallet",
@@ -460,11 +438,8 @@
460
438
  "transferDeposit": {
461
439
  "warning": "Send at least <b>{{amount}} {{symbol}}</b> on <b>{{chain}}</b>. Wrong token or chain may be unrecoverable.",
462
440
  "expiresIn": "Deposit address expires in {{minutes}}:{{seconds}}",
463
- "addressLabel": "Deposit address",
464
441
  "copyAddress": "Copy address",
465
442
  "addressCopied": "Copied!",
466
- "regenerate": "Generate new deposit address",
467
- "expired": "This deposit window expired. Generate a new one to continue.",
468
443
  "polling": "Watching for your deposit…",
469
444
  "detailsTitle": "Deposit details",
470
445
  "table": {
@@ -507,10 +482,6 @@
507
482
  "marketMoved": {
508
483
  "title": "Transaction failed",
509
484
  "description": "The exchange rate moved before your order could complete. Your funds are safe — a refund has been started."
510
- },
511
- "refunding": {
512
- "title": "Transaction failed — refunding",
513
- "description": "We couldn't complete the transfer after several attempts. Your funds are being refunded to the wallet that sent them."
514
485
  }
515
486
  }
516
487
  },
@@ -523,9 +494,7 @@
523
494
  "cashQuote": {
524
495
  "totalFeesLabel": "Total fees",
525
496
  "feeFallback": "Fee {{index}}",
526
- "guaranteedMinimum": "Guaranteed minimum",
527
- "refundNote": "You'll receive at least {{value}}, or a full refund.",
528
- "error": "Unable to refresh the quote right now. Try again."
497
+ "refundNote": "You'll receive at least {{value}}, or a full refund."
529
498
  },
530
499
  "cashHandoff": {
531
500
  "title": "You'll finish paying in Transak",
@@ -535,15 +504,6 @@
535
504
  "continue": "Continue to Transak",
536
505
  "goBack": "Go back"
537
506
  },
538
- "paymentMethod": {
539
- "label": "Payment method"
540
- },
541
- "flowSummary": {
542
- "wallet": "From your wallet",
543
- "transfer": "Transfer crypto",
544
- "exchange": "From an exchange",
545
- "cash": "Buy with cash"
546
- },
547
507
  "transactionStatus": {
548
508
  "detailsTitle": "Transaction details",
549
509
  "watching": "Watching for transaction",
@@ -551,7 +511,6 @@
551
511
  "success": "Transaction successful",
552
512
  "seeDetails": "See details",
553
513
  "steps": {
554
- "transferInitiated": "Transfer initiated",
555
514
  "receive": {
556
515
  "upcoming": "Receive {{symbol}}",
557
516
  "loading": "Receiving {{symbol}}",
@@ -571,9 +530,6 @@
571
530
  },
572
531
  "chooseFundingSource": "Choose funding source",
573
532
  "whereToSendIt": "Where to send it",
574
- "sendingTo": "Sending to",
575
- "required": "Required",
576
- "addWalletToReceive": "Add a wallet to receive your {{token}}",
577
533
  "walletAddressOrEns": "Wallet address or ENS name",
578
534
  "insufficientFunds": "Insufficient funds — You don't have enough {{symbol}} on {{chain}}. Select a different token to try again.",
579
535
  "routeNotFound": {
@@ -585,7 +541,6 @@
585
541
  "or": "or",
586
542
  "payFromWallet": "Pay from Wallet",
587
543
  "payFromWalletSubtitle": "Connect a browser wallet",
588
- "payFromWalletConnectedSubtitle": "Select token & amount",
589
544
  "transferCrypto": "Transfer Crypto",
590
545
  "transferCryptoSubtitle": "From any wallet",
591
546
  "connectExchange": "Connect Exchange",
@@ -596,14 +551,11 @@
596
551
  "depositWithCashSubtitle": "Debit or credit card",
597
552
  "connectWallet": "Connect wallet",
598
553
  "useAnotherWallet": "Use another wallet",
599
- "moreWallets": "More",
600
554
  "progress": {
601
555
  "title": "Purchase in progress",
602
556
  "description": "We're processing your purchase. This may take a few minutes."
603
557
  },
604
558
  "onramp": {
605
- "dialogTitle": "Deposit with {{providerName}}",
606
- "close": "Close",
607
559
  "errors": {
608
560
  "MISSING_API_URL": "{{providerName}} is not configured: set sdkConfig.apiUrl on the checkout.",
609
561
  "MISSING_API_KEY": "{{providerName}} is not configured: set widget apiKey to call checkout sessions.",
@@ -614,10 +566,6 @@
614
566
  "generic": "Something went wrong. Try again later."
615
567
  },
616
568
  "failure": {
617
- "connectionTitle": "Connection failed",
618
- "connectionDescription": "We couldn't connect to {{providerName}}. Try again or contact support.",
619
- "withdrawalTitle": "Withdrawal failed",
620
- "withdrawalDescription": "{{providerName}} couldn't process your withdrawal. Your funds remain in your account.",
621
569
  "transferTitle": "Transaction failed - refunding",
622
570
  "transferDescription": "We couldn't complete the transfer after several attempts. Your funds are being refunded to the wallet that sent them."
623
571
  }
@@ -641,8 +589,7 @@
641
589
  },
642
590
  "pendingRefund": {
643
591
  "title": "Refund in progress",
644
- "description": "We're sending your funds back. This usually takes a few minutes.",
645
- "sentTo": "Sent to:"
592
+ "description": "We're sending your funds back. This usually takes a few minutes."
646
593
  },
647
594
  "pendingRetrying": {
648
595
  "title": "Retrying transaction",
@@ -706,8 +653,7 @@
706
653
  },
707
654
  "walletPendingRefund": {
708
655
  "title": "Refund in progress",
709
- "description": "We're sending your funds back to the wallet you paid from. This usually takes a few minutes.",
710
- "sentToWallet": "Sent to wallet:"
656
+ "description": "We're sending your funds back to the wallet you paid from. This usually takes a few minutes."
711
657
  },
712
658
  "walletSuccessRefund": {
713
659
  "title": "Refund complete",