@rhinestone/deposit-modal 0.5.1 → 0.6.1

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkPDFLALUTcjs = require('./chunk-PDFLALUT.cjs');
4
+ var _chunkVPWWFWZTcjs = require('./chunk-VPWWFWZT.cjs');
5
5
 
6
6
 
7
7
 
@@ -76,14 +76,14 @@ function buildTransports(rpcUrls) {
76
76
  const transports = {};
77
77
  for (const network of EVM_NETWORKS) {
78
78
  const id = Number(network.id);
79
- transports[id] = _viem.http.call(void 0, _chunkPDFLALUTcjs.rpcUrlFor.call(void 0, rpcUrls, id));
79
+ transports[id] = _viem.http.call(void 0, _chunkVPWWFWZTcjs.rpcUrlFor.call(void 0, rpcUrls, id));
80
80
  }
81
81
  return transports;
82
82
  }
83
83
  function getEvmRpcFingerprint(rpcUrls) {
84
84
  return EVM_NETWORKS.map((network) => {
85
85
  const id = Number(network.id);
86
- return `${id}=${_nullishCoalesce(_chunkPDFLALUTcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
86
+ return `${id}=${_nullishCoalesce(_chunkVPWWFWZTcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
87
87
  }).join("|");
88
88
  }
89
89
  var cachedAdapter = null;
@@ -177,7 +177,7 @@ function useReownWallet() {
177
177
  await switchChainAsync({ chainId });
178
178
  }
179
179
  } catch (err) {
180
- if (_chunkPDFLALUTcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
180
+ if (_chunkVPWWFWZTcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
181
181
  throw new Error(
182
182
  `Switch to ${_chunkABVRVW3Pcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
183
183
  );
package/dist/deposit.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkAMEXFHB4cjs = require('./chunk-AMEXFHB4.cjs');
3
+ var _chunkIZPUHIINcjs = require('./chunk-IZPUHIIN.cjs');
4
4
  require('./chunk-NRNJAQUA.cjs');
5
- require('./chunk-PDFLALUT.cjs');
5
+ require('./chunk-VPWWFWZT.cjs');
6
6
  require('./chunk-UEKPBRBY.cjs');
7
7
  require('./chunk-ABVRVW3P.cjs');
8
8
 
9
9
 
10
- exports.DepositModal = _chunkAMEXFHB4cjs.DepositModal;
10
+ exports.DepositModal = _chunkIZPUHIINcjs.DepositModal;
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { f as DepositModalProps } from './types-_m8w8BYq.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, k as RpcUrlMap } from './types-_m8w8BYq.cjs';
2
+ import { f as DepositModalProps } from './types-6ROxwyfG.cjs';
3
+ export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, j as RpcUrlMap } from './types-6ROxwyfG.cjs';
4
4
  import 'viem';
5
5
 
6
6
  declare function DepositModal(props: DepositModalProps): react.JSX.Element;
package/dist/deposit.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { f as DepositModalProps } from './types-_m8w8BYq.js';
3
- export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, k as RpcUrlMap } from './types-_m8w8BYq.js';
2
+ import { f as DepositModalProps } from './types-6ROxwyfG.js';
3
+ export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, j as RpcUrlMap } from './types-6ROxwyfG.js';
4
4
  import 'viem';
5
5
 
6
6
  declare function DepositModal(props: DepositModalProps): react.JSX.Element;
package/dist/deposit.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-XPJJWJPM.mjs";
3
+ } from "./chunk-TCLBFO3S.mjs";
4
4
  import "./chunk-FJWLC4AM.mjs";
5
- import "./chunk-4YLVKTSU.mjs";
5
+ import "./chunk-GBOCV2LQ.mjs";
6
6
  import "./chunk-F7P4MV72.mjs";
7
7
  import "./chunk-WJX3TJFK.mjs";
8
8
  export {
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkAMEXFHB4cjs = require('./chunk-AMEXFHB4.cjs');
3
+ var _chunkIZPUHIINcjs = require('./chunk-IZPUHIIN.cjs');
4
4
  require('./chunk-NRNJAQUA.cjs');
5
5
 
6
6
 
7
- var _chunkV4XVFT25cjs = require('./chunk-V4XVFT25.cjs');
8
- require('./chunk-PDFLALUT.cjs');
7
+ var _chunkSITLCMTIcjs = require('./chunk-SITLCMTI.cjs');
8
+ require('./chunk-VPWWFWZT.cjs');
9
9
  require('./chunk-UEKPBRBY.cjs');
10
10
 
11
11
 
@@ -85,4 +85,4 @@ async function disconnectWallet() {
85
85
 
86
86
 
87
87
 
88
- exports.CHAIN_BY_ID = _chunkABVRVW3Pcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkABVRVW3Pcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkABVRVW3Pcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkAMEXFHB4cjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkABVRVW3Pcjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkABVRVW3Pcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkABVRVW3Pcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkV4XVFT25cjs.WithdrawModal; exports.chainRegistry = _chunkABVRVW3Pcjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkABVRVW3Pcjs.findChainIdForToken; exports.getChainBadge = _chunkABVRVW3Pcjs.getChainBadge; exports.getChainIcon = _chunkABVRVW3Pcjs.getChainIcon; exports.getChainId = _chunkABVRVW3Pcjs.getChainId; exports.getChainName = _chunkABVRVW3Pcjs.getChainName; exports.getChainObject = _chunkABVRVW3Pcjs.getChainObject; exports.getExplorerName = _chunkABVRVW3Pcjs.getExplorerName; exports.getExplorerTxUrl = _chunkABVRVW3Pcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkABVRVW3Pcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkABVRVW3Pcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkABVRVW3Pcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkABVRVW3Pcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkABVRVW3Pcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkABVRVW3Pcjs.getTokenAddress; exports.getTokenDecimals = _chunkABVRVW3Pcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkABVRVW3Pcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon; exports.getTokenSymbol = _chunkABVRVW3Pcjs.getTokenSymbol; exports.getUsdcAddress = _chunkABVRVW3Pcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkABVRVW3Pcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkABVRVW3Pcjs.isSupportedTokenAddressForChain;
88
+ exports.CHAIN_BY_ID = _chunkABVRVW3Pcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkABVRVW3Pcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkABVRVW3Pcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkIZPUHIINcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkABVRVW3Pcjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkABVRVW3Pcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkABVRVW3Pcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkSITLCMTIcjs.WithdrawModal; exports.chainRegistry = _chunkABVRVW3Pcjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkABVRVW3Pcjs.findChainIdForToken; exports.getChainBadge = _chunkABVRVW3Pcjs.getChainBadge; exports.getChainIcon = _chunkABVRVW3Pcjs.getChainIcon; exports.getChainId = _chunkABVRVW3Pcjs.getChainId; exports.getChainName = _chunkABVRVW3Pcjs.getChainName; exports.getChainObject = _chunkABVRVW3Pcjs.getChainObject; exports.getExplorerName = _chunkABVRVW3Pcjs.getExplorerName; exports.getExplorerTxUrl = _chunkABVRVW3Pcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkABVRVW3Pcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkABVRVW3Pcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkABVRVW3Pcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkABVRVW3Pcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkABVRVW3Pcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkABVRVW3Pcjs.getTokenAddress; exports.getTokenDecimals = _chunkABVRVW3Pcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkABVRVW3Pcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon; exports.getTokenSymbol = _chunkABVRVW3Pcjs.getTokenSymbol; exports.getUsdcAddress = _chunkABVRVW3Pcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkABVRVW3Pcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkABVRVW3Pcjs.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 DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, k as RpcUrlMap, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, l as WithdrawCompleteEventData, m as WithdrawFailedEventData, n as WithdrawLifecycleEvent, o as WithdrawModalProps, p as WithdrawSubmittedEventData } from './types-_m8w8BYq.cjs';
3
+ export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RouteConfig, j as RpcUrlMap, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-6ROxwyfG.cjs';
4
4
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.cjs';
5
5
  export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, H as HYPERCORE_CHAIN_ID, b as HYPERCORE_USDC_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, e as chainRegistry, f as findChainIdForToken, g as getChainBadge, h as getChainIcon, i as getChainId, j as getChainName, k as getChainObject, l as getExplorerName, m as getExplorerTxUrl, n as getExplorerUrl, o as getSupportedChainIds, p as getSupportedTargetTokens, q as getSupportedTokenSymbolsForChain, r as getTargetTokenSymbolsForChain, s as getTokenAddress, t as getTokenDecimals, u as getTokenDecimalsByAddress, v as getTokenIcon, w as getTokenSymbol, x as getUsdcAddress, y as getUsdcDecimals, z as isSupportedTokenAddressForChain } from './caip-CsslyHGL.cjs';
6
6
  import 'react';
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 DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, k as RpcUrlMap, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, l as WithdrawCompleteEventData, m as WithdrawFailedEventData, n as WithdrawLifecycleEvent, o as WithdrawModalProps, p as WithdrawSubmittedEventData } from './types-_m8w8BYq.js';
3
+ export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RouteConfig, j as RpcUrlMap, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-6ROxwyfG.js';
4
4
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.js';
5
5
  export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, H as HYPERCORE_CHAIN_ID, b as HYPERCORE_USDC_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, e as chainRegistry, f as findChainIdForToken, g as getChainBadge, h as getChainIcon, i as getChainId, j as getChainName, k as getChainObject, l as getExplorerName, m as getExplorerTxUrl, n as getExplorerUrl, o as getSupportedChainIds, p as getSupportedTargetTokens, q as getSupportedTokenSymbolsForChain, r as getTargetTokenSymbolsForChain, s as getTokenAddress, t as getTokenDecimals, u as getTokenDecimalsByAddress, v as getTokenIcon, w as getTokenSymbol, x as getUsdcAddress, y as getUsdcDecimals, z as isSupportedTokenAddressForChain } from './caip-CsslyHGL.js';
6
6
  import 'react';
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-XPJJWJPM.mjs";
3
+ } from "./chunk-TCLBFO3S.mjs";
4
4
  import "./chunk-FJWLC4AM.mjs";
5
5
  import {
6
6
  WithdrawModal
7
- } from "./chunk-KYHPKMTK.mjs";
8
- import "./chunk-4YLVKTSU.mjs";
7
+ } from "./chunk-N73D3WN4.mjs";
8
+ import "./chunk-GBOCV2LQ.mjs";
9
9
  import "./chunk-F7P4MV72.mjs";
10
10
  import {
11
11
  CHAIN_BY_ID,
package/dist/styles.css CHANGED
@@ -4980,21 +4980,27 @@
4980
4980
  color: var(--rs-muted);
4981
4981
  }
4982
4982
 
4983
- /* Iframe wrap sized to Swapped's documented dimensions 400×586 for the
4984
- fiat on-ramp, 445×585 for Connect (overrides below). Centered horizontally
4985
- inside the modal so the step body can have header padding. */
4983
+ /* The iframe phase owns the whole modal width. Normal screens keep the
4984
+ 16px body inset, but Swapped now provides its own in-iframe back chrome so
4985
+ the embedded sheet should not look like a padded card inside our modal. */
4986
+ .rs-modal-body[data-flow-mode="fiat-onramp"]:has(.rs-fiat-onramp),
4987
+ .rs-modal-body[data-flow-mode="exchange-connect"]:has(.rs-fiat-onramp) {
4988
+ padding-inline: 0;
4989
+ }
4990
+
4991
+ /* Iframe wrap sized to Swapped's documented heights. Width deliberately spans
4992
+ the full modal body in the iframe phase; the modal itself controls the
4993
+ product-specific width below. */
4986
4994
  .rs-fiat-onramp-iframe-wrap {
4987
4995
  position: relative;
4988
4996
  width: 100%;
4989
- max-width: 400px;
4990
4997
  min-height: 586px;
4991
- margin: 0 auto;
4992
- border-radius: var(--rs-radius);
4998
+ margin: 0;
4999
+ border-radius: 0;
4993
5000
  overflow: hidden;
4994
5001
  }
4995
5002
 
4996
5003
  .rs-fiat-onramp[data-variant="connect"] .rs-fiat-onramp-iframe-wrap {
4997
- max-width: 445px;
4998
5004
  min-height: 585px;
4999
5005
  }
5000
5006
 
@@ -5211,22 +5217,14 @@
5211
5217
  /* =============================================================================
5212
5218
  Modal sizing for the Swapped iframe step
5213
5219
  =============================================================================
5214
- Modal stays at the default 400px width for the fiat variant (matches
5215
- Swapped's 400×586 iframe edge-to-edge). Connect needs 445px because its
5216
- iframe is 445×585. Height grows with the Rhinestone chrome (header
5217
- icon/title/subtitle + iframe + PoweredBy); cap to viewport so smaller
5218
- laptops get a scrollable modal-body instead of overflowing the screen. */
5219
-
5220
- /* Connect's iframe is 445×585 (vs fiat's 400×586). To preserve the same
5221
- 12px horizontal padding as ConnectStep while still giving Swapped's
5222
- Connect iframe its documented width, widen the modal by 24px (12 each
5223
- side) → 469px. Applied from the moment the user enters exchange-connect
5224
- mode (`data-flow-mode` on rs-modal-body) — not just the iframe step —
5225
- so the modal width is stable across SetupStep → SwappedIframeStep.
5226
- Fiat keeps the default 400px modal; its iframe renders at 376px
5227
- content-width, matching the visual width of ConnectStep's list rows. */
5220
+ Fiat keeps the default modal width. Connect uses Swapped's wider documented
5221
+ iframe width and applies it from the moment the user enters exchange-connect
5222
+ mode (`data-flow-mode` on rs-modal-body), so the modal width is stable
5223
+ across SetupStep SwappedIframeStep. Height grows with the Rhinestone
5224
+ chrome (header + iframe + PoweredBy); cap to viewport so smaller laptops get
5225
+ a scrollable modal-body instead of overflowing the screen. */
5228
5226
  .rs-modal-content:has(.rs-modal-body[data-flow-mode="exchange-connect"]) {
5229
- max-width: 469px;
5227
+ max-width: 445px;
5230
5228
  }
5231
5229
 
5232
5230
  .rs-modal-content:has(.rs-modal-body[data-flow-mode="fiat-onramp"]),
@@ -215,7 +215,6 @@ interface DepositModalProps {
215
215
  * balance. The row is hidden when this is omitted.
216
216
  */
217
217
  appBalanceUsd?: number;
218
- postBridgeActions?: PostBridgeAction[];
219
218
  outputTokenRules?: OutputTokenRule[];
220
219
  rejectUnmapped?: boolean;
221
220
  backendUrl?: string;
@@ -328,12 +327,6 @@ interface AssetOption {
328
327
  balance?: string;
329
328
  balanceUsd?: number;
330
329
  }
331
- interface OrderBookSwapAction {
332
- type: "orderbook-swap";
333
- contract: Address;
334
- outputToken: Address;
335
- }
336
- type PostBridgeAction = OrderBookSwapAction;
337
330
  /**
338
331
  * Discriminated union covering every deposit flow state transition the
339
332
  * consumer can observe. Consumers handle additions in a single switch; the
@@ -472,4 +465,4 @@ type WithdrawAnalyticsEvent = {
472
465
  };
473
466
  type ModalAnalyticsEvent = DepositAnalyticsEvent | WithdrawAnalyticsEvent;
474
467
 
475
- export type { AssetOption as A, ChainId as C, DappImportsConfig as D, ErrorEventData as E, ModalAnalyticsEvent as M, OrderBookSwapAction as O, PostBridgeAction as P, RouteConfig as R, SafeTransactionRequest as S, WithdrawAnalyticsEvent as W, ConnectedEventData as a, DepositAnalyticsEvent as b, DepositCompleteEventData as c, DepositFailedEventData as d, DepositLifecycleEvent as e, DepositModalProps as f, DepositModalTheme as g, DepositModalUIConfig as h, DepositSubmittedEventData as i, OutputTokenRule as j, RpcUrlMap as k, WithdrawCompleteEventData as l, WithdrawFailedEventData as m, WithdrawLifecycleEvent as n, WithdrawModalProps as o, WithdrawSubmittedEventData as p };
468
+ export type { AssetOption as A, ChainId as C, DappImportsConfig as D, ErrorEventData as E, ModalAnalyticsEvent as M, OutputTokenRule as O, RouteConfig as R, SafeTransactionRequest as S, WithdrawAnalyticsEvent as W, ConnectedEventData as a, DepositAnalyticsEvent as b, DepositCompleteEventData as c, DepositFailedEventData as d, DepositLifecycleEvent as e, DepositModalProps as f, DepositModalTheme as g, DepositModalUIConfig as h, DepositSubmittedEventData as i, RpcUrlMap as j, WithdrawCompleteEventData as k, WithdrawFailedEventData as l, WithdrawLifecycleEvent as m, WithdrawModalProps as n, WithdrawSubmittedEventData as o };
@@ -215,7 +215,6 @@ interface DepositModalProps {
215
215
  * balance. The row is hidden when this is omitted.
216
216
  */
217
217
  appBalanceUsd?: number;
218
- postBridgeActions?: PostBridgeAction[];
219
218
  outputTokenRules?: OutputTokenRule[];
220
219
  rejectUnmapped?: boolean;
221
220
  backendUrl?: string;
@@ -328,12 +327,6 @@ interface AssetOption {
328
327
  balance?: string;
329
328
  balanceUsd?: number;
330
329
  }
331
- interface OrderBookSwapAction {
332
- type: "orderbook-swap";
333
- contract: Address;
334
- outputToken: Address;
335
- }
336
- type PostBridgeAction = OrderBookSwapAction;
337
330
  /**
338
331
  * Discriminated union covering every deposit flow state transition the
339
332
  * consumer can observe. Consumers handle additions in a single switch; the
@@ -472,4 +465,4 @@ type WithdrawAnalyticsEvent = {
472
465
  };
473
466
  type ModalAnalyticsEvent = DepositAnalyticsEvent | WithdrawAnalyticsEvent;
474
467
 
475
- export type { AssetOption as A, ChainId as C, DappImportsConfig as D, ErrorEventData as E, ModalAnalyticsEvent as M, OrderBookSwapAction as O, PostBridgeAction as P, RouteConfig as R, SafeTransactionRequest as S, WithdrawAnalyticsEvent as W, ConnectedEventData as a, DepositAnalyticsEvent as b, DepositCompleteEventData as c, DepositFailedEventData as d, DepositLifecycleEvent as e, DepositModalProps as f, DepositModalTheme as g, DepositModalUIConfig as h, DepositSubmittedEventData as i, OutputTokenRule as j, RpcUrlMap as k, WithdrawCompleteEventData as l, WithdrawFailedEventData as m, WithdrawLifecycleEvent as n, WithdrawModalProps as o, WithdrawSubmittedEventData as p };
468
+ export type { AssetOption as A, ChainId as C, DappImportsConfig as D, ErrorEventData as E, ModalAnalyticsEvent as M, OutputTokenRule as O, RouteConfig as R, SafeTransactionRequest as S, WithdrawAnalyticsEvent as W, ConnectedEventData as a, DepositAnalyticsEvent as b, DepositCompleteEventData as c, DepositFailedEventData as d, DepositLifecycleEvent as e, DepositModalProps as f, DepositModalTheme as g, DepositModalUIConfig as h, DepositSubmittedEventData as i, RpcUrlMap as j, WithdrawCompleteEventData as k, WithdrawFailedEventData as l, WithdrawLifecycleEvent as m, WithdrawModalProps as n, WithdrawSubmittedEventData as o };
package/dist/withdraw.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkV4XVFT25cjs = require('./chunk-V4XVFT25.cjs');
4
- require('./chunk-PDFLALUT.cjs');
3
+ var _chunkSITLCMTIcjs = require('./chunk-SITLCMTI.cjs');
4
+ require('./chunk-VPWWFWZT.cjs');
5
5
  require('./chunk-UEKPBRBY.cjs');
6
6
  require('./chunk-ABVRVW3P.cjs');
7
7
 
8
8
 
9
- exports.WithdrawModal = _chunkV4XVFT25cjs.WithdrawModal;
9
+ exports.WithdrawModal = _chunkSITLCMTIcjs.WithdrawModal;
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { o as WithdrawModalProps } from './types-_m8w8BYq.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, k as RpcUrlMap, S as SafeTransactionRequest, l as WithdrawCompleteEventData, m as WithdrawFailedEventData, p as WithdrawSubmittedEventData } from './types-_m8w8BYq.cjs';
2
+ import { n as WithdrawModalProps } from './types-6ROxwyfG.cjs';
3
+ export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, j as RpcUrlMap, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-6ROxwyfG.cjs';
4
4
  import 'viem';
5
5
 
6
6
  declare function WithdrawModal(props: WithdrawModalProps): react.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { o as WithdrawModalProps } from './types-_m8w8BYq.js';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, k as RpcUrlMap, S as SafeTransactionRequest, l as WithdrawCompleteEventData, m as WithdrawFailedEventData, p as WithdrawSubmittedEventData } from './types-_m8w8BYq.js';
2
+ import { n as WithdrawModalProps } from './types-6ROxwyfG.js';
3
+ export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, j as RpcUrlMap, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-6ROxwyfG.js';
4
4
  import 'viem';
5
5
 
6
6
  declare function WithdrawModal(props: WithdrawModalProps): react.JSX.Element;
package/dist/withdraw.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-KYHPKMTK.mjs";
4
- import "./chunk-4YLVKTSU.mjs";
3
+ } from "./chunk-N73D3WN4.mjs";
4
+ import "./chunk-GBOCV2LQ.mjs";
5
5
  import "./chunk-F7P4MV72.mjs";
6
6
  import "./chunk-WJX3TJFK.mjs";
7
7
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.5.1",
3
+ "version": "0.6.1",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {