@imtbl/sdk 1.48.3-alpha.2 → 1.48.4-alpha

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 (54) hide show
  1. package/dist/{blockchain_data-DcQ536Kq.js → blockchain_data-6Ynkevyr.js} +2 -2
  2. package/dist/blockchain_data.js +3 -3
  3. package/dist/browser/checkout/{AddFundsWidget-BTsiDIPA.js → AddFundsWidget-Co_ju-ke.js} +2 -2
  4. package/dist/browser/checkout/{BridgeWidget-tKT3gZvJ.js → BridgeWidget-DJBbVq0i.js} +6 -69
  5. package/dist/browser/checkout/{CheckoutWidget-rVWH25-L.js → CheckoutWidget-DbHiULy1.js} +1 -1
  6. package/dist/browser/checkout/{OnRampWidget-BEzfDDl2.js → OnRampWidget-DzXTolCG.js} +3 -3
  7. package/dist/browser/checkout/{SaleWidget-BvR2hJpl.js → SaleWidget-D-AlpzeP.js} +14 -17
  8. package/dist/browser/checkout/{SpendingCapHero-CWT_xLtF.js → SpendingCapHero-DFOYfIWo.js} +1 -1
  9. package/dist/browser/checkout/{SwapWidget-CWpvzIdH.js → SwapWidget-BrWzP83L.js} +6 -6
  10. package/dist/browser/checkout/{TextInputForm-_csNElIy.js → TextInputForm-APCsUHD4.js} +1 -1
  11. package/dist/browser/checkout/{TopUpView-DB5P3kx9.js → TopUpView-BrWJlMcJ.js} +1 -1
  12. package/dist/browser/checkout/{WalletWidget-BarmnrNC.js → WalletWidget-CbnY1QWY.js} +3 -3
  13. package/dist/browser/checkout/{auto-track-CETlw_Yf.js → auto-track-Ck6TGRRb.js} +1 -1
  14. package/dist/browser/checkout/{balance-D2H9EYdn.js → balance-C6ghC9kD.js} +2 -2
  15. package/dist/browser/checkout/{index-BisPAtYn.js → index-BuLxhSrr.js} +1 -1
  16. package/dist/browser/checkout/{index-OhHSzMLr.js → index-BzSg_aJy.js} +1 -1
  17. package/dist/browser/checkout/{index-BDzerMOU.js → index-Cmnc6N4J.js} +1 -1
  18. package/dist/browser/checkout/{index-DIREbbx7.js → index-DL_l5Q5C.js} +22 -94
  19. package/dist/browser/checkout/{index-DrJPskUz.js → index-DW7H58bj.js} +1 -1
  20. package/dist/browser/checkout/{index-BUN84kSM.js → index-Dd4yZoTI.js} +2 -2
  21. package/dist/browser/checkout/{index-Do1i-d1V.js → index-ROI-iNgW.js} +1 -1
  22. package/dist/browser/checkout/{index-CTDHP6cz.js → index-e9-pAQBe.js} +1 -1
  23. package/dist/browser/checkout/{index.umd-CGU3J_cV.js → index.umd-BYwG1L7K.js} +1 -1
  24. package/dist/browser/checkout/{retry-Bw5cX4ml.js → retry-KKUeT-Ok.js} +1 -1
  25. package/dist/browser/checkout/sdk.js +4 -4
  26. package/dist/browser/checkout/widgets-esm.js +1 -1
  27. package/dist/browser/checkout/widgets.js +10 -148
  28. package/dist/{checkout-BoDeeomL.js → checkout-Da-nacjC.js} +5 -5
  29. package/dist/checkout.d.ts +7 -6
  30. package/dist/checkout.js +5 -5
  31. package/dist/{config-9eb21Kvn.js → config-B9H7kkDM.js} +1 -1
  32. package/dist/config.js +1 -1
  33. package/dist/{index-DZo92OXX.js → index-BFfuatMQ.js} +1 -1
  34. package/dist/{index-RxuRdoNW.js → index-BL9Bx3-6.js} +1 -1
  35. package/dist/{index-fuhI5io_.js → index-CO7tTxw4.js} +1 -1
  36. package/dist/{index-D46S1fXy.js → index-DBkeJx1l.js} +1 -1
  37. package/dist/{index-Cd2-wh_U.js → index-DRlA6s-e.js} +3 -3
  38. package/dist/{index-BttRQL-q.js → index-O-hvC7lt.js} +4 -4
  39. package/dist/index.browser.js +4 -4
  40. package/dist/index.browser.js.map +1 -1
  41. package/dist/index.cjs +7 -7
  42. package/dist/index.d.ts +7 -6
  43. package/dist/index.js +14 -14
  44. package/dist/{minting_backend-FShe7MoD.js → minting_backend-DSF1zse-.js} +3 -3
  45. package/dist/minting_backend.js +5 -5
  46. package/dist/{orderbook-B8iE6-PF.js → orderbook-BRh-4UOX.js} +1 -1
  47. package/dist/orderbook.js +2 -2
  48. package/dist/{passport-B9UFP-3c.js → passport-CRFdW3Na.js} +3 -3
  49. package/dist/passport.js +4 -4
  50. package/dist/{webhook-DCFeI4sY.js → webhook--ObSxRIQ.js} +1 -1
  51. package/dist/webhook.js +2 -2
  52. package/dist/{x-CwPF_LGF.js → x-GFa9_HmA.js} +3 -3
  53. package/dist/x.js +4 -4
  54. package/package.json +1 -1
@@ -1 +1 @@
1
- export { dj as WidgetsFactory } from './index-DIREbbx7.js';
1
+ export { dj as WidgetsFactory } from './index-DL_l5Q5C.js';
@@ -176335,9 +176335,8 @@
176335
176335
  fee: "Swap fee ~ {{symbol}} {{amount}}"
176336
176336
  },
176337
176337
  orderReview: {
176338
- heading: "Order summary",
176338
+ heading: "Payment summary",
176339
176339
  "continue": "Proceed",
176340
- continueFreeMint: "Proceed for free",
176341
176340
  payWith: {
176342
176341
  SWAP: "Swap & Pay with {{symbol}}",
176343
176342
  SUFFICIENT: "Pay with {{symbol}}"
@@ -176825,23 +176824,6 @@
176825
176824
  body: "Make sure pop ups are enabled and follow the prompts in your wallet to connect",
176826
176825
  actionButtonText: "Try again"
176827
176826
  }
176828
- },
176829
- withdrawalQueue: {
176830
- exceedsThreshold: {
176831
- heading: "This withdraw will trigger a 24h delay. Withdraw less than {{threshold}} to avoid this.",
176832
- body: "This withdrawal is over a security threshold that will trigger a 24hr delay. Withdraw an amount lower than {{threshold}} to have it actioned in ~20 minutes. Alternatively you can proceed and receive funds in 24hrs. ",
176833
- buttons: {
176834
- cancel: "Lower amount",
176835
- proceed: "I understand"
176836
- }
176837
- },
176838
- queueActivated: {
176839
- heading: "This withdrawal will take 24hrs.",
176840
- body: "We’re experiencing higher than normal congestion and wanted to let you know before you proceed.",
176841
- buttons: {
176842
- proceed: "I understand"
176843
- }
176844
- }
176845
176827
  }
176846
176828
  };
176847
176829
  var enTranslations = {
@@ -177165,9 +177147,8 @@
177165
177147
  fee: "交換手数料 ~ {{symbol}} {{amount}}"
177166
177148
  },
177167
177149
  orderReview: {
177168
- heading: "注文の概要",
177150
+ heading: "支払いの概要",
177169
177151
  "continue": "続行",
177170
- continueFreeMint: "無料で続行",
177171
177152
  payWith: {
177172
177153
  SWAP: "{{symbol}}でスワップ&支払い",
177173
177154
  SUFFICIENT: "{{symbol}}で支払う"
@@ -177615,23 +177596,6 @@
177615
177596
  body: "ポップアップが有効になっていることを確認し、ウォレットのプロンプトに従って接続してください。",
177616
177597
  actionButtonText: "もう一度試す"
177617
177598
  }
177618
- },
177619
- withdrawalQueue: {
177620
- exceedsThreshold: {
177621
- heading: "この引き出しには 24 時間の遅延が発生します。これを回避するには、{{threshold}} 未満の引き出しを行ってください。",
177622
- body: "この出金はセキュリティしきい値を超えているため、24 時間の遅延が発生します。{{threshold}} 未満の金額を出金すると、約 20 分で処理されます。または、続行して 24 時間以内に資金を受け取ることもできます。",
177623
- buttons: {
177624
- cancel: "低い金額",
177625
- proceed: "わかりました"
177626
- }
177627
- },
177628
- queueActivated: {
177629
- heading: "この引き出しには24時間かかります。",
177630
- body: "通常よりも混雑がひどいため、続行する前にお知らせします。",
177631
- buttons: {
177632
- proceed: "わかりました"
177633
- }
177634
- }
177635
177599
  }
177636
177600
  };
177637
177601
  var jaTranslations = {
@@ -177952,9 +177916,8 @@
177952
177916
  fee: "교환 수수료 ~ {{symbol}} {{amount}}"
177953
177917
  },
177954
177918
  orderReview: {
177955
- heading: "주문 요약",
177919
+ heading: "결제 요약",
177956
177920
  "continue": "계속",
177957
- continueFreeMint: "무료로 진행하세요",
177958
177921
  payWith: {
177959
177922
  SWAP: "{{symbol}}로 스왑 및 결제하기",
177960
177923
  SUFFICIENT: "{{symbol}}로 결제"
@@ -178402,23 +178365,6 @@
178402
178365
  body: "팝업이 활성화되어 있는지 확인하고 지갑의 프롬프트를 따라 연결하세요.",
178403
178366
  actionButtonText: "다시 시도"
178404
178367
  }
178405
- },
178406
- withdrawalQueue: {
178407
- exceedsThreshold: {
178408
- heading: "이 인출은 24시간 지연을 유발합니다. 이를 피하려면 {{threshold}}보다 적게 인출하세요.",
178409
- body: "이 출금은 보안 임계값을 초과하여 24시간 지연이 발생합니다. {{threshold}}보다 적은 금액을 출금하면 약 20분 내에 처리됩니다. 아니면 진행하여 24시간 내에 자금을 받을 수 있습니다.",
178410
- buttons: {
178411
- cancel: "낮은 금액",
178412
- proceed: "이해합니다"
178413
- }
178414
- },
178415
- queueActivated: {
178416
- heading: "인출에는 24시간이 소요됩니다.",
178417
- body: "평소보다 교통 체증이 심해 진행하기 전에 알려드리고자 합니다.",
178418
- buttons: {
178419
- proceed: "이해합니다"
178420
- }
178421
- }
178422
178368
  }
178423
178369
  };
178424
178370
  var koTranslations = {
@@ -178739,9 +178685,8 @@
178739
178685
  fee: "交换费用 ~ {{symbol}} {{amount}}"
178740
178686
  },
178741
178687
  orderReview: {
178742
- heading: "订单摘要",
178688
+ heading: "付款摘要",
178743
178689
  "continue": "继续",
178744
- continueFreeMint: "免费继续",
178745
178690
  payWith: {
178746
178691
  SWAP: "使用{{symbol}}进行交换和支付",
178747
178692
  SUFFICIENT: "使用{{symbol}}支付"
@@ -179189,23 +179134,6 @@
179189
179134
  body: "确保弹出窗口已启用,并按照钱包中的提示进行连接。",
179190
179135
  actionButtonText: "重试"
179191
179136
  }
179192
- },
179193
- withdrawalQueue: {
179194
- exceedsThreshold: {
179195
- heading: "此次提款将触发 24 小时延迟。提款金额不得超过 {{threshold}},以避免出现此情况。",
179196
- body: "此次提款超过安全阈值,将导致 24 小时延迟。提款金额低于 {{threshold}} 可在约 20 分钟内完成。或者,您也可以继续操作并在 24 小时内收到资金。",
179197
- buttons: {
179198
- cancel: "较低金额",
179199
- proceed: "我明白"
179200
- }
179201
- },
179202
- queueActivated: {
179203
- heading: "此次提款将耗时 24 小时。",
179204
- body: "我们正面临比平常更严重的拥堵,因此我们想在您继续前通知您。",
179205
- buttons: {
179206
- proceed: "我明白"
179207
- }
179208
- }
179209
179137
  }
179210
179138
  };
179211
179139
  var zhTranslations = {
@@ -211219,25 +211147,23 @@ function print() { __p += __j.call(arguments, '') }
211219
211147
  return null;
211220
211148
  }
211221
211149
 
211222
- function SelectCoinDropdown({ balance, conversions, isFreeMint, canOpen, onClick, onProceed, loading, priceDisplay, }) {
211150
+ function SelectCoinDropdown({ balance, conversions, canOpen, onClick, onProceed, loading, priceDisplay, }) {
211223
211151
  const { t } = useTranslation();
211224
211152
  const { environment, config: { theme }, } = useSaleContext();
211225
211153
  const { token, userBalance, fundsRequired } = balance.fundingItem;
211226
211154
  const fiatAmount = calculateCryptoToFiat(fundsRequired.formattedAmount, token.symbol, conversions, '');
211227
211155
  const balanceFiatAmount = calculateCryptoToFiat(userBalance.formattedBalance, token.symbol, conversions, '');
211228
- const displayDropdown = !isFreeMint;
211229
211156
  return (jsxs(Stack, { sx: {
211230
211157
  w: '100%',
211231
211158
  bradtl: 'base.borderRadius.x6',
211232
211159
  bradtr: 'base.borderRadius.x6',
211233
211160
  px: 'base.spacing.x4',
211234
- pt: (displayDropdown ? '0' : 'base.spacing.x6'),
211235
211161
  pb: 'base.spacing.x6',
211236
211162
  bg: 'base.color.neutral.800',
211237
211163
  border: '0px solid transparent',
211238
211164
  borderTopWidth: 'base.border.size.100',
211239
211165
  borderTopColor: 'base.color.translucent.emphasis.400',
211240
- }, children: [displayDropdown && (jsxs(MenuItem, { size: "medium", children: [jsx$1(MenuItem.FramedImage, { circularFrame: true, use: (jsx$1(TokenImage, { environment: environment, theme: theme, name: token.name, src: token.icon })) }), jsx$1(MenuItem.Label, { children: t(`views.ORDER_SUMMARY.orderReview.payWith.${balance.type}`, {
211166
+ }, children: [jsxs(MenuItem, { size: "medium", children: [jsx$1(MenuItem.FramedImage, { circularFrame: true, use: (jsx$1(TokenImage, { environment: environment, theme: theme, name: token.name, src: token.icon })) }), jsx$1(MenuItem.Label, { children: t(`views.ORDER_SUMMARY.orderReview.payWith.${balance.type}`, {
211241
211167
  symbol: token.symbol,
211242
211168
  }) }), jsx$1(MenuItem.Caption, { children: `${t('views.ORDER_SUMMARY.orderReview.balance', {
211243
211169
  amount: prettyFormatNumber(tokenValueFormat(userBalance.formattedBalance)),
@@ -211247,7 +211173,7 @@ function print() { __p += __j.call(arguments, '') }
211247
211173
  })
211248
211174
  : ''}` }), priceDisplay && (jsx$1(MenuItem.PriceDisplay, { fiatAmount: fiatAmount
211249
211175
  ? t('views.ORDER_SUMMARY.currency.fiat', { amount: fiatAmount })
211250
- : undefined, price: tokenValueFormat(fundsRequired.formattedAmount) })), canOpen && (jsx$1(MenuItem.StatefulButtCon, { icon: "ChevronExpand", onClick: onClick })), !canOpen && loading && jsx$1(ShimmerCircle, { radius: "base.icon.size.400" })] })), jsx$1(Button, { size: "large", onClick: () => onProceed(balance), children: isFreeMint ? (t('views.ORDER_SUMMARY.orderReview.continueFreeMint')) : (t('views.ORDER_SUMMARY.orderReview.continue')) })] }));
211176
+ : undefined, price: tokenValueFormat(fundsRequired.formattedAmount) })), canOpen && (jsx$1(MenuItem.StatefulButtCon, { icon: "ChevronExpand", onClick: onClick })), !canOpen && loading && jsx$1(ShimmerCircle, { radius: "base.icon.size.400" })] }), jsx$1(Button, { size: "large", onClick: () => onProceed(balance), children: t('views.ORDER_SUMMARY.orderReview.continue') })] }));
211251
211177
  }
211252
211178
 
211253
211179
  const getTotalFeesBySymbol = (fees, tokenInfo) => fees
@@ -211433,7 +211359,7 @@ function print() { __p += __j.call(arguments, '') }
211433
211359
  function OrderReview({ fundingBalances, conversions, collectionName, loadingBalances, transactionRequirement, onBackButtonClick, onPayWithCard, onProceedToBuy, }) {
211434
211360
  const { eventTargetState: { eventTarget }, } = reactExports.useContext(EventTargetContext);
211435
211361
  const { t } = useTranslation();
211436
- const { provider, items, orderQuote, disabledPaymentTypes, selectedCurrency, config: { theme, environment }, } = useSaleContext();
211362
+ const { provider, items, orderQuote, disabledPaymentTypes, config: { theme, environment }, } = useSaleContext();
211437
211363
  const { sendSelectedPaymentToken, sendViewFeesEvent, sendPageView } = useSaleEvent();
211438
211364
  const [showCoinsDrawer, setShowCoinsDrawer] = reactExports.useState(false);
211439
211365
  const [selectedCurrencyIndex, setSelectedCurrencyIndex] = reactExports.useState(0);
@@ -211443,7 +211369,6 @@ function print() { __p += __j.call(arguments, '') }
211443
211369
  fiatAmount: '',
211444
211370
  formattedFees: [],
211445
211371
  });
211446
- const isFreeMint = selectedCurrency?.name ? orderQuote.totalAmount[selectedCurrency.name].amount === 0 : false;
211447
211372
  const openDrawer = () => {
211448
211373
  setShowCoinsDrawer(true);
211449
211374
  };
@@ -211522,7 +211447,7 @@ function print() { __p += __j.call(arguments, '') }
211522
211447
  border: '0px solid transparent',
211523
211448
  borderTopWidth: 'base.border.size.100',
211524
211449
  borderTopColor: 'base.color.translucent.emphasis.400',
211525
- }, onFeesClick: () => sendViewFeesEvent(SaleWidgetViews.ORDER_SUMMARY) })), jsx$1(SelectCoinDropdown, { onClick: openDrawer, onProceed: onProceedToBuy, balance: fundingBalance, conversions: conversions, isFreeMint: isFreeMint, canOpen: fundingBalances.length > 1, loading: loadingBalances, priceDisplay: items.length > 1 }), jsx$1(CoinsDrawer, { conversions: conversions, balances: fundingBalances, onSelect: onSelect, onClose: closeDrawer, selectedIndex: selectedCurrencyIndex, visible: showCoinsDrawer, loading: loadingBalances, onPayWithCard: onPayWithCard, transactionRequirement: transactionRequirement, disabledPaymentTypes: disabledPaymentTypes, theme: theme, environment: environment })] }));
211450
+ }, onFeesClick: () => sendViewFeesEvent(SaleWidgetViews.ORDER_SUMMARY) })), jsx$1(SelectCoinDropdown, { onClick: openDrawer, onProceed: onProceedToBuy, balance: fundingBalance, conversions: conversions, canOpen: fundingBalances.length > 1, loading: loadingBalances, priceDisplay: items.length > 1 }), jsx$1(CoinsDrawer, { conversions: conversions, balances: fundingBalances, onSelect: onSelect, onClose: closeDrawer, selectedIndex: selectedCurrencyIndex, visible: showCoinsDrawer, loading: loadingBalances, onPayWithCard: onPayWithCard, transactionRequirement: transactionRequirement, disabledPaymentTypes: disabledPaymentTypes, theme: theme, environment: environment })] }));
211526
211451
  }
211527
211452
 
211528
211453
  const MAX_GAS_LIMIT = '30000000';
@@ -213775,42 +213700,6 @@ function print() { __p += __j.call(arguments, '') }
213775
213700
 
213776
213701
  const getErc20Contract = (token, signer) => new Contract$1(token, ['function transfer(address to, uint amount)'], signer);
213777
213702
 
213778
- var WithdrawalQueueWarningType;
213779
- (function (WithdrawalQueueWarningType) {
213780
- WithdrawalQueueWarningType["TYPE_THRESHOLD"] = "exceedsThreshold";
213781
- WithdrawalQueueWarningType["TYPE_ACTIVE_QUEUE"] = "queueActivated";
213782
- })(WithdrawalQueueWarningType || (WithdrawalQueueWarningType = {}));
213783
- function WithdrawalQueueDrawer({ visible, checkout, warningType, onCloseDrawer, onAdjustAmount, threshold, }) {
213784
- const { t } = useTranslation();
213785
- const bridgeWarningUrl = getRemoteImage(checkout.config.environment ?? Environment$1.PRODUCTION, '/notenougheth.svg');
213786
- return (warningType && (jsx$1(Drawer, { size: warningType === WithdrawalQueueWarningType.TYPE_THRESHOLD ? 'full' : 'threeQuarter', visible: visible, onCloseDrawer: onCloseDrawer, showHeaderBar: false, children: jsxs(Drawer.Content, { testId: "withdraway-queue-bottom-sheet", sx: {
213787
- display: 'flex',
213788
- flexDirection: 'column',
213789
- justifyContent: 'space-between',
213790
- alignItems: 'center',
213791
- }, children: [jsxs(Box, { sx: {
213792
- display: 'flex',
213793
- flexDirection: 'column',
213794
- justifyContent: 'space-between',
213795
- alignItems: 'center',
213796
- }, children: [jsx$1(CloudImage, { sx: { paddingTop: 'base.spacing.x4', paddingBottom: 'base.spacing.x9' }, use: (jsx$1("img", { src: bridgeWarningUrl, alt: t(`drawers.withdrawalQueue.${warningType}.heading`, { threshold }) })) }), jsxs(Box, { sx: {
213797
- display: 'flex',
213798
- flexDirection: 'column',
213799
- alignItems: 'center',
213800
- gap: 'base.spacing.x4',
213801
- paddingX: 'base.spacing.x6',
213802
- }, children: [jsx$1(Heading, { size: "small", weight: "bold", sx: { textAlign: 'center', paddingX: 'base.spacing.x6' }, children: t(`drawers.withdrawalQueue.${warningType}.heading`, { threshold }) }), jsx$1(Body, { size: "medium", weight: "regular", sx: {
213803
- color: 'base.color.text.body.secondary',
213804
- textAlign: 'center',
213805
- paddingX: 'base.spacing.x6',
213806
- }, children: t(`drawers.withdrawalQueue.${warningType}.body`, { threshold }) })] })] }), jsxs(Box, { sx: {
213807
- display: 'flex',
213808
- flexDirection: 'column',
213809
- paddingX: 'base.spacing.x6',
213810
- width: '100%',
213811
- }, children: [warningType === WithdrawalQueueWarningType.TYPE_THRESHOLD && (jsx$1(Button, { size: "large", variant: "primary", sx: { width: '100%', marginBottom: 'base.spacing.x5' }, onClick: onAdjustAmount, children: t('drawers.withdrawalQueue.exceedsThreshold.buttons.cancel') })), jsx$1(Button, { size: "large", variant: "primary", sx: { width: '100%', marginBottom: 'base.spacing.x10' }, onClick: onCloseDrawer, children: t(`drawers.withdrawalQueue.${warningType}.buttons.proceed`) })] })] }) })));
213812
- }
213813
-
213814
213703
  const testId = 'bridge-review-summary';
213815
213704
  function BridgeReviewSummary() {
213816
213705
  const { t } = useTranslation();
@@ -213833,7 +213722,6 @@ function print() { __p += __j.call(arguments, '') }
213833
213722
  const { isWalletConnectEnabled, getWalletLogoUrl } = useWalletConnect();
213834
213723
  // Not enough ETH to cover gas
213835
213724
  const [showNotEnoughGasDrawer, setShowNotEnoughGasDrawer] = reactExports.useState(false);
213836
- const [withdrawalQueueWarning, setWithdrawalQueueWarning] = reactExports.useState({ visible: false });
213837
213725
  const isTransfer = reactExports.useMemo(() => from?.network === to?.network, [from, to]);
213838
213726
  const isDeposit = reactExports.useMemo(() => (getL2ChainId(checkout.config) === to?.network), [from, to, checkout]);
213839
213727
  const insufficientFundsForGas = reactExports.useMemo(() => {
@@ -213919,20 +213807,6 @@ function print() { __p += __j.call(arguments, '') }
213919
213807
  destinationChainId: to?.network.toString(),
213920
213808
  gasMultiplier: 'auto',
213921
213809
  });
213922
- if (bundledTxn.withdrawalQueueActivated) {
213923
- setWithdrawalQueueWarning({
213924
- visible: true,
213925
- warningType: WithdrawalQueueWarningType.TYPE_ACTIVE_QUEUE,
213926
- });
213927
- }
213928
- else if (bundledTxn.delayWithdrawalLargeAmount && bundledTxn.largeTransferThresholds) {
213929
- const threshold = formatUnits(bundledTxn.largeTransferThresholds, token.decimals);
213930
- setWithdrawalQueueWarning({
213931
- visible: true,
213932
- warningType: WithdrawalQueueWarningType.TYPE_THRESHOLD,
213933
- threshold: parseInt(threshold, 10),
213934
- });
213935
- }
213936
213810
  const unsignedApproveTransaction = {
213937
213811
  contractToApprove: bundledTxn.contractToApprove,
213938
213812
  unsignedTx: bundledTxn.unsignedApprovalTx,
@@ -214139,19 +214013,7 @@ function print() { __p += __j.call(arguments, '') }
214139
214013
  },
214140
214014
  },
214141
214015
  });
214142
- } }), jsx$1(WithdrawalQueueDrawer, { visible: withdrawalQueueWarning.visible, warningType: withdrawalQueueWarning.warningType, checkout: checkout, onAdjustAmount: () => {
214143
- setWithdrawalQueueWarning({ visible: false });
214144
- viewDispatch({
214145
- payload: {
214146
- type: ViewActions.UPDATE_VIEW,
214147
- view: {
214148
- type: BridgeWidgetViews.BRIDGE_FORM,
214149
- },
214150
- },
214151
- });
214152
- }, onCloseDrawer: () => {
214153
- setWithdrawalQueueWarning({ visible: false });
214154
- }, threshold: withdrawalQueueWarning.threshold })] }));
214016
+ } })] }));
214155
214017
  }
214156
214018
 
214157
214019
  function BridgeReview() {
@@ -1,4 +1,4 @@
1
- import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-DZo92OXX.js';
1
+ import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-BFfuatMQ.js';
2
2
  import { ethers, BigNumber as BigNumber$1, ContractFactory, utils as utils$2, Contract as Contract$1 } from 'ethers';
3
3
  import globalAxios, { HttpStatusCode as HttpStatusCode$1 } from 'axios';
4
4
  import { Web3Provider, JsonRpcProvider } from '@ethersproject/providers';
@@ -9,8 +9,8 @@ import assert from 'assert';
9
9
  import { FeeAmount, Route, SwapQuoter, Pool, Trade, toHex as toHex$1, encodeRouteToPath } from '@uniswap/v3-sdk';
10
10
  import { keccak256 as keccak256$1 } from '@ethersproject/solidity';
11
11
  import { SwapRouter, PaymentsExtended } from '@uniswap/router-sdk';
12
- import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-RxuRdoNW.js';
13
- import { B as BlockchainData } from './index-Cd2-wh_U.js';
12
+ import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-BL9Bx3-6.js';
13
+ import { B as BlockchainData } from './index-DRlA6s-e.js';
14
14
 
15
15
  function bind(fn, thisArg) {
16
16
  return function wrap() {
@@ -19206,7 +19206,7 @@ const flattenProperties = (properties) => {
19206
19206
  };
19207
19207
 
19208
19208
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
19209
- const SDK_VERSION = '1.48.3-alpha.2';
19209
+ const SDK_VERSION = '1.48.4-alpha';
19210
19210
  const getFrameParentDomain = () => {
19211
19211
  if (isNode()) {
19212
19212
  return '';
@@ -24600,7 +24600,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
24600
24600
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
24601
24601
  };
24602
24602
 
24603
- const SDK_VERSION_MARKER = '1.48.3-alpha.2';
24603
+ const SDK_VERSION_MARKER = '1.48.4-alpha';
24604
24604
  // This SDK version is replaced by the `yarn build` command ran on the root level
24605
24605
  const globalPackageVersion = () => SDK_VERSION_MARKER;
24606
24606
 
@@ -17280,16 +17280,17 @@ declare enum PostMessageHandlerEventType {
17280
17280
  EIP_6963_EVENT = "IMTBL_EIP_6963_EVENT",
17281
17281
  WIDGET_EVENT = "IMTBL_CHECKOUT_WIDGET_EVENT"
17282
17282
  }
17283
+ type WidgetEventDetail<T extends WidgetType> = {
17284
+ [K in keyof WidgetEventData[T]]: {
17285
+ type: K;
17286
+ data: WidgetEventData[T][K];
17287
+ };
17288
+ }[keyof WidgetEventData[T]];
17283
17289
  type PostMessageProviderRelayData = any;
17284
17290
  type PostMessageEIP6963Data = any;
17285
17291
  type PostMessageWidgetEventData<T extends WidgetType = WidgetType.CHECKOUT> = {
17286
17292
  type: IMTBLWidgetEvents.IMTBL_CHECKOUT_WIDGET_EVENT;
17287
- detail: {
17288
- [K in keyof WidgetEventData[T]]: {
17289
- type: K;
17290
- data: WidgetEventData[T][K];
17291
- };
17292
- }[keyof WidgetEventData[T]];
17293
+ detail: WidgetEventDetail<T>;
17293
17294
  };
17294
17295
  type PostMessageData = {
17295
17296
  type: PostMessageHandlerEventType.SYN;
package/dist/checkout.js CHANGED
@@ -1,5 +1,5 @@
1
- export { A as AddFundsEventType, B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutErrorType, h as CheckoutEventType, i as CheckoutFailureEventType, j as CheckoutFlowType, k as CheckoutStatus, l as CheckoutSuccessEventType, m as CheckoutUserActionEventType, n as ConnectEventType, o as ConnectTargetLayer, E as ExchangeType, F as FeeType, p as FundingStepType, G as GasEstimateType, q as GasTokenType, I as IMMUTABLE_API_BASE_URL, r as IMTBLWidgetEvents, s as ItemType, N as NetworkFilterTypes, O as OnRampEventType, t as OrchestrationEventType, P as PostMessageHandler, u as PostMessageHandlerEventType, v as ProviderEventType, R as RoutingOutcomeType, S as SaleEventType, w as SalePaymentTypes, x as SwapDirection, y as SwapEventType, T as TokenFilterTypes, z as TransactionOrGasType, W as WalletEventType, D as WalletFilterTypes, H as WalletProviderName, J as WalletProviderRdns, K as WidgetTheme, L as WidgetType, M as getMetaMaskProviderDetail, Q as getPassportProviderDetail, U as isAddressSanctioned, V as validateProvider } from './checkout-BoDeeomL.js';
2
- import './index-DZo92OXX.js';
1
+ export { A as AddFundsEventType, B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutErrorType, h as CheckoutEventType, i as CheckoutFailureEventType, j as CheckoutFlowType, k as CheckoutStatus, l as CheckoutSuccessEventType, m as CheckoutUserActionEventType, n as ConnectEventType, o as ConnectTargetLayer, E as ExchangeType, F as FeeType, p as FundingStepType, G as GasEstimateType, q as GasTokenType, I as IMMUTABLE_API_BASE_URL, r as IMTBLWidgetEvents, s as ItemType, N as NetworkFilterTypes, O as OnRampEventType, t as OrchestrationEventType, P as PostMessageHandler, u as PostMessageHandlerEventType, v as ProviderEventType, R as RoutingOutcomeType, S as SaleEventType, w as SalePaymentTypes, x as SwapDirection, y as SwapEventType, T as TokenFilterTypes, z as TransactionOrGasType, W as WalletEventType, D as WalletFilterTypes, H as WalletProviderName, J as WalletProviderRdns, K as WidgetTheme, L as WidgetType, M as getMetaMaskProviderDetail, Q as getPassportProviderDetail, U as isAddressSanctioned, V as validateProvider } from './checkout-Da-nacjC.js';
2
+ import './index-BFfuatMQ.js';
3
3
  import 'axios';
4
4
  import 'lru-memorise';
5
5
  import 'global-const';
@@ -11,10 +11,10 @@ import 'assert';
11
11
  import '@uniswap/v3-sdk';
12
12
  import '@ethersproject/solidity';
13
13
  import '@uniswap/router-sdk';
14
- import './index-RxuRdoNW.js';
14
+ import './index-BL9Bx3-6.js';
15
15
  import 'form-data';
16
16
  import 'ethers-v6';
17
17
  import 'merkletreejs';
18
18
  import '@opensea/seaport-js';
19
- import './index-Cd2-wh_U.js';
20
- import './index-D46S1fXy.js';
19
+ import './index-DRlA6s-e.js';
20
+ import './index-DBkeJx1l.js';
@@ -1,4 +1,4 @@
1
- import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-DZo92OXX.js';
1
+ import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-BFfuatMQ.js';
2
2
 
3
3
  var config = /*#__PURE__*/Object.freeze({
4
4
  __proto__: null,
package/dist/config.js CHANGED
@@ -1,4 +1,4 @@
1
- export { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-DZo92OXX.js';
1
+ export { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-BFfuatMQ.js';
2
2
  import 'axios';
3
3
  import 'lru-memorise';
4
4
  import 'global-const';
@@ -158,7 +158,7 @@ const flattenProperties = (properties) => {
158
158
  };
159
159
 
160
160
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
161
- const SDK_VERSION = '1.48.3-alpha.2';
161
+ const SDK_VERSION = '1.48.4-alpha';
162
162
  const getFrameParentDomain = () => {
163
163
  if (isNode()) {
164
164
  return '';
@@ -1,4 +1,4 @@
1
- import { t as track, E as Environment } from './index-DZo92OXX.js';
1
+ import { t as track, E as Environment } from './index-BFfuatMQ.js';
2
2
  import globalAxios from 'axios';
3
3
  import FormData from 'form-data';
4
4
  import { providers, BigNumber, constants as constants$1 } from 'ethers';
@@ -1,5 +1,5 @@
1
1
  import MessageValidator from 'sns-validator';
2
- import { E as Environment } from './index-DZo92OXX.js';
2
+ import { E as Environment } from './index-BFfuatMQ.js';
3
3
 
4
4
  const validator = new MessageValidator();
5
5
  const allowedTopicArnPrefix = {
@@ -13838,7 +13838,7 @@ class MultiRollupApiClients {
13838
13838
  }
13839
13839
 
13840
13840
  // eslint-disable-next-line @typescript-eslint/naming-convention
13841
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.48.3-alpha.2' };
13841
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.48.4-alpha' };
13842
13842
  const createConfig = ({ basePath, headers, }) => {
13843
13843
  if (!basePath.trim()) {
13844
13844
  throw Error('basePath can not be empty');
@@ -1,5 +1,5 @@
1
- import { a as index$1 } from './index-D46S1fXy.js';
2
- import { E as Environment, a as addKeysToHeadersOverride } from './index-DZo92OXX.js';
1
+ import { a as index$1 } from './index-DBkeJx1l.js';
2
+ import { E as Environment, a as addKeysToHeadersOverride } from './index-BFfuatMQ.js';
3
3
  import globalAxios from 'axios';
4
4
 
5
5
  /**
@@ -21,7 +21,7 @@ class APIError extends Error {
21
21
 
22
22
  /* eslint-disable implicit-arrow-linebreak */
23
23
  const defaultHeaders = {
24
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.48.3-alpha.2',
24
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.48.4-alpha',
25
25
  };
26
26
  /**
27
27
  * createAPIConfiguration to create a custom Configuration
@@ -1,5 +1,5 @@
1
- import { b as index$2, I as ImxApiClients } from './index-D46S1fXy.js';
2
- import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-DZo92OXX.js';
1
+ import { b as index$2, I as ImxApiClients } from './index-DBkeJx1l.js';
2
+ import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-BFfuatMQ.js';
3
3
  import globalAxios from 'axios';
4
4
  import { keccak256 } from '@ethersproject/keccak256';
5
5
  import { toUtf8Bytes } from '@ethersproject/strings';
@@ -16,7 +16,7 @@ import '@ethersproject/abstract-signer';
16
16
  /* eslint-disable @typescript-eslint/naming-convention */
17
17
  class ApiConfiguration extends index$2.Configuration {
18
18
  }
19
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.48.3-alpha.2' };
19
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.48.4-alpha' };
20
20
  /**
21
21
  * @dev use createImmutableXConfiguration instead
22
22
  */
@@ -57,7 +57,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
57
57
  coreContractAddress,
58
58
  registrationContractAddress,
59
59
  registrationV4ContractAddress,
60
- sdkVersion: 'ts-immutable-sdk-1.48.3-alpha.2',
60
+ sdkVersion: 'ts-immutable-sdk-1.48.4-alpha',
61
61
  baseConfig,
62
62
  });
63
63
  const production = ({ baseConfig }) => createImmutableXConfiguration({