@rhinestone/deposit-modal 0.1.54 → 0.1.56

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.
@@ -25,7 +25,7 @@ import {
25
25
  toEvmCaip2,
26
26
  tokenFormatter,
27
27
  txRefsMatch
28
- } from "./chunk-JQTV5JTB.mjs";
28
+ } from "./chunk-LY3AZLPH.mjs";
29
29
  import {
30
30
  DEFAULT_BACKEND_URL,
31
31
  DEFAULT_SIGNER_ADDRESS,
@@ -3570,7 +3570,7 @@ function DepositFlow({
3570
3570
  // src/DepositModal.tsx
3571
3571
  import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
3572
3572
  var ReownDepositInner = lazy(
3573
- () => import("./DepositModalReown-5QKEE7R3.mjs").then((m) => ({ default: m.DepositModalReown }))
3573
+ () => import("./DepositModalReown-A5YFTV2E.mjs").then((m) => ({ default: m.DepositModalReown }))
3574
3574
  );
3575
3575
  function DepositModal(props) {
3576
3576
  const needsReown = !!props.reownAppId;
@@ -20,7 +20,7 @@ import {
20
20
  loadSessionOwnerFromStorage,
21
21
  saveSessionOwnerToStorage,
22
22
  toEvmCaip2
23
- } from "./chunk-JQTV5JTB.mjs";
23
+ } from "./chunk-LY3AZLPH.mjs";
24
24
  import {
25
25
  DEFAULT_BACKEND_URL,
26
26
  DEFAULT_SIGNER_ADDRESS,
@@ -883,6 +883,7 @@ function WithdrawFlow({
883
883
  recipient: defaultRecipient,
884
884
  amount: defaultAmount,
885
885
  service,
886
+ allowedRoutes,
886
887
  signerAddress = DEFAULT_SIGNER_ADDRESS,
887
888
  sessionChainIds,
888
889
  forceRegister = false,
@@ -1291,15 +1292,29 @@ function WithdrawFlow({
1291
1292
  },
1292
1293
  [logFlowError, onWithdrawFailed]
1293
1294
  );
1294
- const targetChainOptions = useMemo2(() => {
1295
- return SOURCE_CHAINS.filter(
1296
- (chain) => getSupportedTargetTokens(chain.id).length > 0
1297
- );
1298
- }, []);
1299
- const targetTokenOptions = useMemo2(
1300
- () => getSupportedTargetTokens(targetChain),
1301
- [targetChain]
1295
+ const allowedChainSet = useMemo2(
1296
+ () => allowedRoutes?.sourceChains ? new Set(allowedRoutes.sourceChains) : null,
1297
+ [allowedRoutes?.sourceChains]
1298
+ );
1299
+ const allowedTokenSet = useMemo2(
1300
+ () => allowedRoutes?.sourceTokens ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
1301
+ [allowedRoutes?.sourceTokens]
1302
1302
  );
1303
+ const targetChainOptions = useMemo2(() => {
1304
+ return SOURCE_CHAINS.filter((chain) => {
1305
+ if (allowedChainSet && !allowedChainSet.has(chain.id)) return false;
1306
+ const tokens = getSupportedTargetTokens(chain.id);
1307
+ if (allowedTokenSet) {
1308
+ return tokens.some((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
1309
+ }
1310
+ return tokens.length > 0;
1311
+ });
1312
+ }, [allowedChainSet, allowedTokenSet]);
1313
+ const targetTokenOptions = useMemo2(() => {
1314
+ const tokens = getSupportedTargetTokens(targetChain);
1315
+ if (!allowedTokenSet) return tokens;
1316
+ return tokens.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
1317
+ }, [targetChain, allowedTokenSet]);
1303
1318
  useEffect2(() => {
1304
1319
  if (targetTokenOptions.length === 0) return;
1305
1320
  const matches = targetTokenOptions.some(
@@ -1312,7 +1327,10 @@ function WithdrawFlow({
1312
1327
  const handleTargetChainChange = useCallback2(
1313
1328
  (chainId) => {
1314
1329
  setTargetChain(chainId);
1315
- const options = getSupportedTargetTokens(chainId);
1330
+ let options = getSupportedTargetTokens(chainId);
1331
+ if (allowedTokenSet) {
1332
+ options = options.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
1333
+ }
1316
1334
  if (options.length === 0) {
1317
1335
  return;
1318
1336
  }
@@ -1323,7 +1341,7 @@ function WithdrawFlow({
1323
1341
  currentlySupported ? targetToken : options[0].address
1324
1342
  );
1325
1343
  },
1326
- [targetToken]
1344
+ [targetToken, allowedTokenSet]
1327
1345
  );
1328
1346
  const handleTargetTokenChange = useCallback2((token) => {
1329
1347
  setTargetToken(token);
@@ -1435,7 +1453,7 @@ function WithdrawFlow({
1435
1453
  // src/WithdrawModal.tsx
1436
1454
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
1437
1455
  var ReownWithdrawInner = lazy(
1438
- () => import("./WithdrawModalReown-DN6OKFGR.mjs").then((m) => ({
1456
+ () => import("./WithdrawModalReown-GS2QN3GA.mjs").then((m) => ({
1439
1457
  default: m.WithdrawModalReown
1440
1458
  }))
1441
1459
  );
@@ -1462,6 +1480,7 @@ function WithdrawModalInner({
1462
1480
  onClose,
1463
1481
  inline,
1464
1482
  closeOnOverlayClick,
1483
+ allowedRoutes,
1465
1484
  backendUrl = DEFAULT_BACKEND_URL,
1466
1485
  signerAddress = DEFAULT_SIGNER_ADDRESS,
1467
1486
  sessionChainIds,
@@ -1636,6 +1655,7 @@ function WithdrawModalInner({
1636
1655
  recipient,
1637
1656
  amount: defaultAmount,
1638
1657
  service,
1658
+ allowedRoutes,
1639
1659
  signerAddress,
1640
1660
  sessionChainIds,
1641
1661
  forceRegister,
@@ -810,12 +810,12 @@ function formatUserError(raw) {
810
810
  }
811
811
 
812
812
  // src/core/theme.ts
813
- var RADIUS_VALUES = {
814
- none: "0",
815
- sm: "8px",
816
- md: "10px",
817
- lg: "14px",
818
- full: "9999px"
813
+ var RADIUS_SCALE = {
814
+ none: { sm: "0", md: "0", lg: "0" },
815
+ sm: { sm: "4px", md: "6px", lg: "8px" },
816
+ md: { sm: "8px", md: "10px", lg: "14px" },
817
+ lg: { sm: "10px", md: "14px", lg: "18px" },
818
+ full: { sm: "9999px", md: "9999px", lg: "9999px" }
819
819
  };
820
820
  function applyTheme(element, theme) {
821
821
  if (!element) return;
@@ -848,7 +848,11 @@ function applyTheme(element, theme) {
848
848
  element.style.setProperty("--rs-background", theme.backgroundColor);
849
849
  }
850
850
  if (theme?.radius) {
851
- element.style.setProperty("--rs-radius", RADIUS_VALUES[theme.radius]);
851
+ const scale = RADIUS_SCALE[theme.radius];
852
+ element.style.setProperty("--rs-radius-sm", scale.sm);
853
+ element.style.setProperty("--rs-radius-md", scale.md);
854
+ element.style.setProperty("--rs-radius-lg", scale.lg);
855
+ element.style.setProperty("--rs-radius", scale.md);
852
856
  }
853
857
  }
854
858
 
@@ -20,7 +20,7 @@
20
20
 
21
21
 
22
22
 
23
- var _chunkEAEDK474cjs = require('./chunk-EAEDK474.cjs');
23
+ var _chunk3UQQU6BEcjs = require('./chunk-3UQQU6BE.cjs');
24
24
 
25
25
 
26
26
 
@@ -141,7 +141,7 @@ function WithdrawFormStep({
141
141
  setIsSwitching(true);
142
142
  switchChain(asset.chainId).catch((err) => {
143
143
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
144
- setError(_chunkEAEDK474cjs.formatUserError.call(void 0, raw));
144
+ setError(_chunk3UQQU6BEcjs.formatUserError.call(void 0, raw));
145
145
  }).finally(() => {
146
146
  setIsSwitching(false);
147
147
  });
@@ -161,7 +161,7 @@ function WithdrawFormStep({
161
161
  return;
162
162
  }
163
163
  try {
164
- const bal = _chunkEAEDK474cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
164
+ const bal = _chunk3UQQU6BEcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
165
165
  address: asset.token,
166
166
  abi: _viem.erc20Abi,
167
167
  functionName: "balanceOf",
@@ -264,7 +264,7 @@ function WithdrawFormStep({
264
264
  await onSubmit(recipient, amount);
265
265
  } catch (err) {
266
266
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
267
- setError(_chunkEAEDK474cjs.formatUserError.call(void 0, raw));
267
+ setError(_chunk3UQQU6BEcjs.formatUserError.call(void 0, raw));
268
268
  } finally {
269
269
  setIsSubmitting(false);
270
270
  }
@@ -272,11 +272,11 @@ function WithdrawFormStep({
272
272
  if (isBalanceLoading) {
273
273
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
274
274
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-loading", children: [
275
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.Spinner, { className: "rs-spinner--lg" }),
275
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.Spinner, { className: "rs-spinner--lg" }),
276
276
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
277
277
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkR6U6BHCVcjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
278
278
  ] }),
279
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
279
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.PoweredBy, {})
280
280
  ] });
281
281
  }
282
282
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
@@ -375,7 +375,7 @@ function WithdrawFormStep({
375
375
  ] })
376
376
  ] }),
377
377
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
378
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkEAEDK474cjs.currencyFormatter.format(amountUsd) : "$0.00" }),
378
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunk3UQQU6BEcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
379
379
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
380
380
  "Balance: ",
381
381
  formattedBalance,
@@ -569,7 +569,7 @@ function WithdrawFormStep({
569
569
  ] })
570
570
  ] }),
571
571
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
572
- _chunkEAEDK474cjs.Button,
572
+ _chunk3UQQU6BEcjs.Button,
573
573
  {
574
574
  onClick: handleWithdraw,
575
575
  fullWidth: true,
@@ -578,7 +578,7 @@ function WithdrawFormStep({
578
578
  children: isBusy ? "Preparing..." : !recipient ? "Enter Recipient Address" : !amount ? "Enter Withdraw Amount" : "Withdraw"
579
579
  }
580
580
  ) }),
581
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
581
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.PoweredBy, {})
582
582
  ] });
583
583
  }
584
584
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -883,6 +883,7 @@ function WithdrawFlow({
883
883
  recipient: defaultRecipient,
884
884
  amount: defaultAmount,
885
885
  service,
886
+ allowedRoutes,
886
887
  signerAddress = _chunkR6U6BHCVcjs.DEFAULT_SIGNER_ADDRESS,
887
888
  sessionChainIds,
888
889
  forceRegister = false,
@@ -909,13 +910,13 @@ function WithdrawFlow({
909
910
  const [isConnectSelectionConfirmed, setIsConnectSelectionConfirmed] = _react.useState.call(void 0, false);
910
911
  const logFlow = _react.useCallback.call(void 0,
911
912
  (message, data) => {
912
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
913
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
913
914
  },
914
915
  [debug]
915
916
  );
916
917
  const logFlowError = _react.useCallback.call(void 0,
917
918
  (message, error, data) => {
918
- _chunkEAEDK474cjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
919
+ _chunk3UQQU6BEcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
919
920
  },
920
921
  [debug]
921
922
  );
@@ -974,14 +975,14 @@ function WithdrawFlow({
974
975
  return {
975
976
  ownerAddress: dappAddress,
976
977
  walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
977
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain))),
978
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, sourceChain))),
978
979
  switchChain: dappSwitchChain
979
980
  };
980
981
  }
981
982
  return {
982
983
  ownerAddress: dappWalletClient.account.address,
983
984
  walletClient: dappWalletClient,
984
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain))),
985
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, sourceChain))),
985
986
  switchChain: dappSwitchChain
986
987
  };
987
988
  }
@@ -992,7 +993,7 @@ function WithdrawFlow({
992
993
  return {
993
994
  ownerAddress: dappWalletClient.account.address,
994
995
  walletClient: dappWalletClient,
995
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain))),
996
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, sourceChain))),
996
997
  switchChain: dappSwitchChain
997
998
  };
998
999
  }
@@ -1022,7 +1023,7 @@ function WithdrawFlow({
1022
1023
  const symbol = _chunkR6U6BHCVcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1023
1024
  const decimals = _chunkR6U6BHCVcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1024
1025
  return {
1025
- id: _chunkEAEDK474cjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1026
+ id: _chunk3UQQU6BEcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1026
1027
  chainId: sourceChain,
1027
1028
  token: sourceToken,
1028
1029
  symbol,
@@ -1072,15 +1073,15 @@ function WithdrawFlow({
1072
1073
  [logFlowError, onError]
1073
1074
  );
1074
1075
  const resolveSessionOwner = _react.useCallback.call(void 0, async (eoaAddress) => {
1075
- const localOwner = _chunkEAEDK474cjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
1076
+ const localOwner = _chunk3UQQU6BEcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
1076
1077
  if (localOwner) {
1077
1078
  return {
1078
- account: _chunkEAEDK474cjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
1079
+ account: _chunk3UQQU6BEcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
1079
1080
  address: localOwner.address
1080
1081
  };
1081
1082
  }
1082
- const created = _chunkEAEDK474cjs.createSessionOwnerKey.call(void 0, );
1083
- _chunkEAEDK474cjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
1083
+ const created = _chunk3UQQU6BEcjs.createSessionOwnerKey.call(void 0, );
1084
+ _chunk3UQQU6BEcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
1084
1085
  return {
1085
1086
  account: created.account,
1086
1087
  address: created.address
@@ -1110,7 +1111,7 @@ function WithdrawFlow({
1110
1111
  const setup = await service.setupAccount({
1111
1112
  ownerAddress: ownerAddress2,
1112
1113
  sessionOwnerAddress: sessionOwner.address,
1113
- targetChain: _chunkEAEDK474cjs.toEvmCaip2.call(void 0, targetChain),
1114
+ targetChain: _chunk3UQQU6BEcjs.toEvmCaip2.call(void 0, targetChain),
1114
1115
  targetToken,
1115
1116
  signerAddress,
1116
1117
  sessionChainIds,
@@ -1137,7 +1138,7 @@ function WithdrawFlow({
1137
1138
  primaryType: typedData.primaryType,
1138
1139
  message: typedData.message
1139
1140
  });
1140
- const sessionDetails = _chunkEAEDK474cjs.buildSessionDetails.call(void 0,
1141
+ const sessionDetails = _chunk3UQQU6BEcjs.buildSessionDetails.call(void 0,
1141
1142
  setup.sessionDetailsUnsigned,
1142
1143
  signature
1143
1144
  );
@@ -1151,7 +1152,7 @@ function WithdrawFlow({
1151
1152
  eoaAddress: ownerAddress2,
1152
1153
  sessionOwner: sessionOwner.address,
1153
1154
  target: {
1154
- chain: _chunkEAEDK474cjs.toEvmCaip2.call(void 0, targetChain),
1155
+ chain: _chunk3UQQU6BEcjs.toEvmCaip2.call(void 0, targetChain),
1155
1156
  token: targetToken,
1156
1157
  recipient
1157
1158
  }
@@ -1160,7 +1161,7 @@ function WithdrawFlow({
1160
1161
  }
1161
1162
  handleConnected(ownerAddress2, smartAccount);
1162
1163
  const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
1163
- const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _26 => _26.publicClient]), () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain)));
1164
+ const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _26 => _26.publicClient]), () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, sourceChain)));
1164
1165
  let result;
1165
1166
  if (onSignTransaction) {
1166
1167
  const transferData = isSourceNative ? { to: smartAccount, value: amountUnits, data: "0x" } : {
@@ -1183,7 +1184,7 @@ function WithdrawFlow({
1183
1184
  const { signature } = await onSignTransaction(request);
1184
1185
  const relayResult = await service.relayWithdraw({
1185
1186
  smartAccount,
1186
- chainId: _chunkEAEDK474cjs.toEvmCaip2.call(void 0, sourceChain),
1187
+ chainId: _chunk3UQQU6BEcjs.toEvmCaip2.call(void 0, sourceChain),
1187
1188
  safeAddress,
1188
1189
  safeTransaction: request.typedData.message,
1189
1190
  signature
@@ -1241,7 +1242,7 @@ function WithdrawFlow({
1241
1242
  targetChain,
1242
1243
  targetToken
1243
1244
  });
1244
- handleError(_chunkEAEDK474cjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1245
+ handleError(_chunk3UQQU6BEcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1245
1246
  throw err;
1246
1247
  } finally {
1247
1248
  setIsSubmitting(false);
@@ -1291,15 +1292,29 @@ function WithdrawFlow({
1291
1292
  },
1292
1293
  [logFlowError, onWithdrawFailed]
1293
1294
  );
1294
- const targetChainOptions = _react.useMemo.call(void 0, () => {
1295
- return _chunkR6U6BHCVcjs.SOURCE_CHAINS.filter(
1296
- (chain) => _chunkR6U6BHCVcjs.getSupportedTargetTokens.call(void 0, chain.id).length > 0
1297
- );
1298
- }, []);
1299
- const targetTokenOptions = _react.useMemo.call(void 0,
1300
- () => _chunkR6U6BHCVcjs.getSupportedTargetTokens.call(void 0, targetChain),
1301
- [targetChain]
1295
+ const allowedChainSet = _react.useMemo.call(void 0,
1296
+ () => _optionalChain([allowedRoutes, 'optionalAccess', _30 => _30.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null,
1297
+ [_optionalChain([allowedRoutes, 'optionalAccess', _31 => _31.sourceChains])]
1298
+ );
1299
+ const allowedTokenSet = _react.useMemo.call(void 0,
1300
+ () => _optionalChain([allowedRoutes, 'optionalAccess', _32 => _32.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
1301
+ [_optionalChain([allowedRoutes, 'optionalAccess', _33 => _33.sourceTokens])]
1302
1302
  );
1303
+ const targetChainOptions = _react.useMemo.call(void 0, () => {
1304
+ return _chunkR6U6BHCVcjs.SOURCE_CHAINS.filter((chain) => {
1305
+ if (allowedChainSet && !allowedChainSet.has(chain.id)) return false;
1306
+ const tokens = _chunkR6U6BHCVcjs.getSupportedTargetTokens.call(void 0, chain.id);
1307
+ if (allowedTokenSet) {
1308
+ return tokens.some((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
1309
+ }
1310
+ return tokens.length > 0;
1311
+ });
1312
+ }, [allowedChainSet, allowedTokenSet]);
1313
+ const targetTokenOptions = _react.useMemo.call(void 0, () => {
1314
+ const tokens = _chunkR6U6BHCVcjs.getSupportedTargetTokens.call(void 0, targetChain);
1315
+ if (!allowedTokenSet) return tokens;
1316
+ return tokens.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
1317
+ }, [targetChain, allowedTokenSet]);
1303
1318
  _react.useEffect.call(void 0, () => {
1304
1319
  if (targetTokenOptions.length === 0) return;
1305
1320
  const matches = targetTokenOptions.some(
@@ -1312,7 +1327,10 @@ function WithdrawFlow({
1312
1327
  const handleTargetChainChange = _react.useCallback.call(void 0,
1313
1328
  (chainId) => {
1314
1329
  setTargetChain(chainId);
1315
- const options = _chunkR6U6BHCVcjs.getSupportedTargetTokens.call(void 0, chainId);
1330
+ let options = _chunkR6U6BHCVcjs.getSupportedTargetTokens.call(void 0, chainId);
1331
+ if (allowedTokenSet) {
1332
+ options = options.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
1333
+ }
1316
1334
  if (options.length === 0) {
1317
1335
  return;
1318
1336
  }
@@ -1323,7 +1341,7 @@ function WithdrawFlow({
1323
1341
  currentlySupported ? targetToken : options[0].address
1324
1342
  );
1325
1343
  },
1326
- [targetToken]
1344
+ [targetToken, allowedTokenSet]
1327
1345
  );
1328
1346
  const handleTargetTokenChange = _react.useCallback.call(void 0, (token) => {
1329
1347
  setTargetToken(token);
@@ -1349,17 +1367,17 @@ function WithdrawFlow({
1349
1367
  setIsConnectSelectionConfirmed(false);
1350
1368
  }
1351
1369
  }, [showConnectStep, isConnectSelectionConfirmed, signerContext]);
1352
- const ownerAddress = _optionalChain([signerContext, 'optionalAccess', _30 => _30.ownerAddress]);
1370
+ const ownerAddress = _optionalChain([signerContext, 'optionalAccess', _34 => _34.ownerAddress]);
1353
1371
  const selectedWalletIcon = _react.useMemo.call(void 0, () => {
1354
- if (!ownerAddress) return _optionalChain([reownWallet, 'optionalAccess', _31 => _31.icon]);
1372
+ if (!ownerAddress) return _optionalChain([reownWallet, 'optionalAccess', _35 => _35.icon]);
1355
1373
  const selected = walletOptions.find(
1356
- (o) => _optionalChain([o, 'access', _32 => _32.address, 'optionalAccess', _33 => _33.toLowerCase, 'call', _34 => _34()]) === ownerAddress.toLowerCase()
1374
+ (o) => _optionalChain([o, 'access', _36 => _36.address, 'optionalAccess', _37 => _37.toLowerCase, 'call', _38 => _38()]) === ownerAddress.toLowerCase()
1357
1375
  );
1358
- return _nullishCoalesce(_optionalChain([selected, 'optionalAccess', _35 => _35.icon]), () => ( _optionalChain([reownWallet, 'optionalAccess', _36 => _36.icon])));
1359
- }, [walletOptions, ownerAddress, _optionalChain([reownWallet, 'optionalAccess', _37 => _37.icon])]);
1376
+ return _nullishCoalesce(_optionalChain([selected, 'optionalAccess', _39 => _39.icon]), () => ( _optionalChain([reownWallet, 'optionalAccess', _40 => _40.icon])));
1377
+ }, [walletOptions, ownerAddress, _optionalChain([reownWallet, 'optionalAccess', _41 => _41.icon])]);
1360
1378
  if (showConnectStep) {
1361
1379
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1362
- _chunkEAEDK474cjs.ConnectStep,
1380
+ _chunk3UQQU6BEcjs.ConnectStep,
1363
1381
  {
1364
1382
  walletOptions,
1365
1383
  selectedWalletId: selectedWalletIdEffective,
@@ -1380,9 +1398,9 @@ function WithdrawFlow({
1380
1398
  if (!signerContext) return null;
1381
1399
  if (!onSignTransaction && !signerContext.walletClient) return null;
1382
1400
  const resolvedOwnerAddress = signerContext.ownerAddress;
1383
- const resolvedConnectedAddress = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _38 => _38.walletClient, 'optionalAccess', _39 => _39.account, 'optionalAccess', _40 => _40.address]), () => ( _optionalChain([reownWallet, 'optionalAccess', _41 => _41.address]))), () => ( _optionalChain([dappWalletClient, 'optionalAccess', _42 => _42.account, 'optionalAccess', _43 => _43.address]))), () => ( resolvedOwnerAddress));
1401
+ const resolvedConnectedAddress = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _42 => _42.walletClient, 'optionalAccess', _43 => _43.account, 'optionalAccess', _44 => _44.address]), () => ( _optionalChain([reownWallet, 'optionalAccess', _45 => _45.address]))), () => ( _optionalChain([dappWalletClient, 'optionalAccess', _46 => _46.account, 'optionalAccess', _47 => _47.address]))), () => ( resolvedOwnerAddress));
1384
1402
  const resolvedDefaultRecipient = _nullishCoalesce(defaultRecipient, () => ( resolvedConnectedAddress));
1385
- const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain)));
1403
+ const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, sourceChain)));
1386
1404
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
1387
1405
  step.type === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1388
1406
  WithdrawFormStep,
@@ -1409,7 +1427,7 @@ function WithdrawFlow({
1409
1427
  }
1410
1428
  ),
1411
1429
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1412
- _chunkEAEDK474cjs.ProcessingStep,
1430
+ _chunk3UQQU6BEcjs.ProcessingStep,
1413
1431
  {
1414
1432
  smartAccount: step.smartAccount,
1415
1433
  txHash: step.txHash,
@@ -1435,7 +1453,7 @@ function WithdrawFlow({
1435
1453
  // src/WithdrawModal.tsx
1436
1454
 
1437
1455
  var ReownWithdrawInner = _react.lazy.call(void 0,
1438
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-ZQCNJLSP.cjs"))).then((m) => ({
1456
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-45SPXE5O.cjs"))).then((m) => ({
1439
1457
  default: m.WithdrawModalReown
1440
1458
  }))
1441
1459
  );
@@ -1462,6 +1480,7 @@ function WithdrawModalInner({
1462
1480
  onClose,
1463
1481
  inline,
1464
1482
  closeOnOverlayClick,
1483
+ allowedRoutes,
1465
1484
  backendUrl = _chunkR6U6BHCVcjs.DEFAULT_BACKEND_URL,
1466
1485
  signerAddress = _chunkR6U6BHCVcjs.DEFAULT_SIGNER_ADDRESS,
1467
1486
  sessionChainIds,
@@ -1492,19 +1511,19 @@ function WithdrawModalInner({
1492
1511
  const targetChain = _chunkR6U6BHCVcjs.getChainId.call(void 0, targetChainProp);
1493
1512
  const sourceChain = _chunkR6U6BHCVcjs.getChainId.call(void 0, sourceChainProp);
1494
1513
  const service = _react.useMemo.call(void 0,
1495
- () => _chunkEAEDK474cjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1514
+ () => _chunk3UQQU6BEcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1496
1515
  [backendUrl, debug]
1497
1516
  );
1498
1517
  _react.useEffect.call(void 0, () => {
1499
1518
  if (isOpen && modalRef.current) {
1500
- _chunkEAEDK474cjs.applyTheme.call(void 0, modalRef.current, theme);
1519
+ _chunk3UQQU6BEcjs.applyTheme.call(void 0, modalRef.current, theme);
1501
1520
  }
1502
1521
  }, [isOpen, theme]);
1503
1522
  const hasCalledReady = _react.useRef.call(void 0, false);
1504
1523
  _react.useEffect.call(void 0, () => {
1505
1524
  if (isOpen && !hasCalledReady.current) {
1506
1525
  hasCalledReady.current = true;
1507
- _optionalChain([onReady, 'optionalCall', _44 => _44()]);
1526
+ _optionalChain([onReady, 'optionalCall', _48 => _48()]);
1508
1527
  }
1509
1528
  }, [isOpen, onReady]);
1510
1529
  _react.useEffect.call(void 0, () => {
@@ -1523,17 +1542,17 @@ function WithdrawModalInner({
1523
1542
  setTotalBalanceUsd(balance2);
1524
1543
  }, []);
1525
1544
  const handleBack = _react.useCallback.call(void 0, () => {
1526
- _optionalChain([backHandlerRef, 'access', _45 => _45.current, 'optionalCall', _46 => _46()]);
1545
+ _optionalChain([backHandlerRef, 'access', _49 => _49.current, 'optionalCall', _50 => _50()]);
1527
1546
  }, []);
1528
- const showLogo = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _47 => _47.showLogo]), () => ( false));
1529
- const showStepper = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _48 => _48.showStepper]), () => ( false));
1530
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _49 => _49.showBackButton]), () => ( true));
1531
- const balance = _optionalChain([uiConfig, 'optionalAccess', _50 => _50.balance]);
1532
- const logoUrl = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _51 => _51.logoUrl]), () => ( "https://github.com/rhinestonewtf.png"));
1533
- const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _52 => _52.title]), () => ( "Withdraw"));
1547
+ const showLogo = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _51 => _51.showLogo]), () => ( false));
1548
+ const showStepper = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _52 => _52.showStepper]), () => ( false));
1549
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _53 => _53.showBackButton]), () => ( true));
1550
+ const balance = _optionalChain([uiConfig, 'optionalAccess', _54 => _54.balance]);
1551
+ const logoUrl = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _55 => _55.logoUrl]), () => ( "https://github.com/rhinestonewtf.png"));
1552
+ const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _56 => _56.title]), () => ( "Withdraw"));
1534
1553
  const canGoBack = currentStepIndex > 0 && currentStepIndex < 3 && backHandlerRef.current;
1535
1554
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1536
- _chunkEAEDK474cjs.Modal,
1555
+ _chunk3UQQU6BEcjs.Modal,
1537
1556
  {
1538
1557
  isOpen,
1539
1558
  onClose,
@@ -1592,7 +1611,7 @@ function WithdrawModalInner({
1592
1611
  ] }),
1593
1612
  balance && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-balance", children: [
1594
1613
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-label", children: balance.title }),
1595
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkEAEDK474cjs.currencyFormatter.format(totalBalanceUsd) : null))) })
1614
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunk3UQQU6BEcjs.currencyFormatter.format(totalBalanceUsd) : null))) })
1596
1615
  ] })
1597
1616
  ] }),
1598
1617
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1636,6 +1655,7 @@ function WithdrawModalInner({
1636
1655
  recipient,
1637
1656
  amount: defaultAmount,
1638
1657
  service,
1658
+ allowedRoutes,
1639
1659
  signerAddress,
1640
1660
  sessionChainIds,
1641
1661
  forceRegister,
package/dist/deposit.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQJVXCBUIcjs = require('./chunk-QJVXCBUI.cjs');
4
- require('./chunk-EAEDK474.cjs');
3
+ var _chunk6BYN2IMRcjs = require('./chunk-6BYN2IMR.cjs');
4
+ require('./chunk-3UQQU6BE.cjs');
5
5
  require('./chunk-R6U6BHCV.cjs');
6
6
 
7
7
 
8
- exports.DepositModal = _chunkQJVXCBUIcjs.DepositModal;
8
+ exports.DepositModal = _chunk6BYN2IMRcjs.DepositModal;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { d as DepositModalProps } from './types-Cm5vGVK2.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData } from './types-Cm5vGVK2.cjs';
2
+ import { d as DepositModalProps } from './types-CL7ec666.cjs';
3
+ export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData } from './types-CL7ec666.cjs';
4
4
  import 'viem';
5
5
  import './safe.cjs';
6
6
 
package/dist/deposit.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { d as DepositModalProps } from './types-BPE95RUG.js';
3
- export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData } from './types-BPE95RUG.js';
2
+ import { d as DepositModalProps } from './types-B7UuWCtD.js';
3
+ export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData } from './types-B7UuWCtD.js';
4
4
  import 'viem';
5
5
  import './safe.js';
6
6
 
package/dist/deposit.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-AJUR6FAP.mjs";
4
- import "./chunk-JQTV5JTB.mjs";
3
+ } from "./chunk-6KDGB2W2.mjs";
4
+ import "./chunk-LY3AZLPH.mjs";
5
5
  import "./chunk-CIXHTOO3.mjs";
6
6
  export {
7
7
  DepositModal
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQJVXCBUIcjs = require('./chunk-QJVXCBUI.cjs');
3
+ var _chunk6BYN2IMRcjs = require('./chunk-6BYN2IMR.cjs');
4
4
 
5
5
 
6
- var _chunkGOMHX544cjs = require('./chunk-GOMHX544.cjs');
7
- require('./chunk-EAEDK474.cjs');
6
+ var _chunkTVGZCNBWcjs = require('./chunk-TVGZCNBW.cjs');
7
+ require('./chunk-3UQQU6BE.cjs');
8
8
 
9
9
 
10
10
 
@@ -66,4 +66,4 @@ var _chunkR6U6BHCVcjs = require('./chunk-R6U6BHCV.cjs');
66
66
 
67
67
 
68
68
 
69
- exports.CHAIN_BY_ID = _chunkR6U6BHCVcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkR6U6BHCVcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkR6U6BHCVcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkQJVXCBUIcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkR6U6BHCVcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkR6U6BHCVcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkGOMHX544cjs.WithdrawModal; exports.chainRegistry = _chunkR6U6BHCVcjs.chainRegistry; exports.findChainIdForToken = _chunkR6U6BHCVcjs.findChainIdForToken; exports.getChainBadge = _chunkR6U6BHCVcjs.getChainBadge; exports.getChainIcon = _chunkR6U6BHCVcjs.getChainIcon; exports.getChainId = _chunkR6U6BHCVcjs.getChainId; exports.getChainName = _chunkR6U6BHCVcjs.getChainName; exports.getChainObject = _chunkR6U6BHCVcjs.getChainObject; exports.getExplorerName = _chunkR6U6BHCVcjs.getExplorerName; exports.getExplorerTxUrl = _chunkR6U6BHCVcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkR6U6BHCVcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkR6U6BHCVcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkR6U6BHCVcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkR6U6BHCVcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkR6U6BHCVcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkR6U6BHCVcjs.getTokenAddress; exports.getTokenDecimals = _chunkR6U6BHCVcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkR6U6BHCVcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkR6U6BHCVcjs.getTokenIcon; exports.getTokenSymbol = _chunkR6U6BHCVcjs.getTokenSymbol; exports.getUsdcAddress = _chunkR6U6BHCVcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkR6U6BHCVcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkR6U6BHCVcjs.isSupportedTokenAddressForChain;
69
+ exports.CHAIN_BY_ID = _chunkR6U6BHCVcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkR6U6BHCVcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkR6U6BHCVcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunk6BYN2IMRcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkR6U6BHCVcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkR6U6BHCVcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkTVGZCNBWcjs.WithdrawModal; exports.chainRegistry = _chunkR6U6BHCVcjs.chainRegistry; exports.findChainIdForToken = _chunkR6U6BHCVcjs.findChainIdForToken; exports.getChainBadge = _chunkR6U6BHCVcjs.getChainBadge; exports.getChainIcon = _chunkR6U6BHCVcjs.getChainIcon; exports.getChainId = _chunkR6U6BHCVcjs.getChainId; exports.getChainName = _chunkR6U6BHCVcjs.getChainName; exports.getChainObject = _chunkR6U6BHCVcjs.getChainObject; exports.getExplorerName = _chunkR6U6BHCVcjs.getExplorerName; exports.getExplorerTxUrl = _chunkR6U6BHCVcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkR6U6BHCVcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkR6U6BHCVcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkR6U6BHCVcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkR6U6BHCVcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkR6U6BHCVcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkR6U6BHCVcjs.getTokenAddress; exports.getTokenDecimals = _chunkR6U6BHCVcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkR6U6BHCVcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkR6U6BHCVcjs.getTokenIcon; exports.getTokenSymbol = _chunkR6U6BHCVcjs.getTokenSymbol; exports.getUsdcAddress = _chunkR6U6BHCVcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkR6U6BHCVcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkR6U6BHCVcjs.isSupportedTokenAddressForChain;
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { DepositModal } from './deposit.cjs';
2
2
  export { WithdrawModal } from './withdraw.cjs';
3
- export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-Cm5vGVK2.cjs';
3
+ export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-CL7ec666.cjs';
4
4
  export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.cjs';
5
5
  export { SafeTransactionRequest } from './safe.cjs';
6
6
  import 'react/jsx-runtime';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { DepositModal } from './deposit.js';
2
2
  export { WithdrawModal } from './withdraw.js';
3
- export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-BPE95RUG.js';
3
+ export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-B7UuWCtD.js';
4
4
  export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.js';
5
5
  export { SafeTransactionRequest } from './safe.js';
6
6
  import 'react/jsx-runtime';