@rhinestone/deposit-modal 0.0.0-dev-20260707131852 → 0.0.0-dev-20260708124620

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,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunk5AZBOAVHcjs = require('./chunk-5AZBOAVH.cjs');
3
+ var _chunk36ZVLS3Jcjs = require('./chunk-36ZVLS3J.cjs');
4
4
  require('./chunk-NRNJAQUA.cjs');
5
5
 
6
6
 
@@ -37,7 +37,7 @@ function DepositModalWithReown(props) {
37
37
  reown.disconnect();
38
38
  }, [reown.disconnect]);
39
39
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
40
- _chunk5AZBOAVHcjs.DepositModalInner,
40
+ _chunk36ZVLS3Jcjs.DepositModalInner,
41
41
  {
42
42
  ...props,
43
43
  reownWallet: reownWithSolana,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-IODANVAE.mjs";
3
+ } from "./chunk-C4EHJRNE.mjs";
4
4
  import "./chunk-FJWLC4AM.mjs";
5
5
  import {
6
6
  ReownWalletProvider,
@@ -2488,7 +2488,7 @@ function SwappedIframeStep({
2488
2488
  _chunkMMPJB5YIcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2489
2489
  )]);
2490
2490
  }, [latestEvent]);
2491
- const immersive = phase === "iframe" && !loadError;
2491
+ const immersive = variant === "fiat" && phase === "iframe" && !loadError;
2492
2492
  _react.useEffect.call(void 0, () => {
2493
2493
  _optionalChain([onImmersiveChangeRef, 'access', _95 => _95.current, 'optionalCall', _96 => _96(immersive)]);
2494
2494
  }, [immersive]);
@@ -5369,7 +5369,7 @@ function isSameRoute2(sourceChain, sourceToken, targetChain, targetToken) {
5369
5369
  var SWAPPED_SOURCE_CHAIN = 8453;
5370
5370
  var SWAPPED_SOURCE_TOKEN = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
5371
5371
  var SWAPPED_SOURCE_DECIMALS = 6;
5372
- var SWAPPED_QUOTE_FEE_TIMEOUT_MS = 1500;
5372
+ var SWAPPED_QUOTE_FEE_TIMEOUT_MS = 2500;
5373
5373
  async function fetchQuoteFeeBreakdown(params) {
5374
5374
  try {
5375
5375
  if (BigInt(params.amount) <= 0n) return void 0;
@@ -7722,7 +7722,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
7722
7722
  // src/DepositModal.tsx
7723
7723
 
7724
7724
  var ReownDepositInner = _react.lazy.call(void 0,
7725
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-FGZHT6NC.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7725
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-T57ZWOJC.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7726
7726
  );
7727
7727
  function sortByCreatedAtDesc(items) {
7728
7728
  return [...items].sort((a, b) => {
@@ -2488,7 +2488,7 @@ function SwappedIframeStep({
2488
2488
  failureMessageForEvent(latestEvent ?? void 0)
2489
2489
  );
2490
2490
  }, [latestEvent]);
2491
- const immersive = phase === "iframe" && !loadError;
2491
+ const immersive = variant === "fiat" && phase === "iframe" && !loadError;
2492
2492
  useEffect6(() => {
2493
2493
  onImmersiveChangeRef.current?.(immersive);
2494
2494
  }, [immersive]);
@@ -5369,7 +5369,7 @@ function isSameRoute2(sourceChain, sourceToken, targetChain, targetToken) {
5369
5369
  var SWAPPED_SOURCE_CHAIN = 8453;
5370
5370
  var SWAPPED_SOURCE_TOKEN = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
5371
5371
  var SWAPPED_SOURCE_DECIMALS = 6;
5372
- var SWAPPED_QUOTE_FEE_TIMEOUT_MS = 1500;
5372
+ var SWAPPED_QUOTE_FEE_TIMEOUT_MS = 2500;
5373
5373
  async function fetchQuoteFeeBreakdown(params) {
5374
5374
  try {
5375
5375
  if (BigInt(params.amount) <= 0n) return void 0;
@@ -7722,7 +7722,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
7722
7722
  // src/DepositModal.tsx
7723
7723
  import { jsx as jsx21, jsxs as jsxs19 } from "react/jsx-runtime";
7724
7724
  var ReownDepositInner = lazy2(
7725
- () => import("./DepositModalReown-TLMWWXN4.mjs").then((m) => ({ default: m.DepositModalReown }))
7725
+ () => import("./DepositModalReown-UYQVGAKS.mjs").then((m) => ({ default: m.DepositModalReown }))
7726
7726
  );
7727
7727
  function sortByCreatedAtDesc(items) {
7728
7728
  return [...items].sort((a, b) => {
package/dist/deposit.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk5AZBOAVHcjs = require('./chunk-5AZBOAVH.cjs');
3
+ var _chunk36ZVLS3Jcjs = require('./chunk-36ZVLS3J.cjs');
4
4
  require('./chunk-NRNJAQUA.cjs');
5
5
  require('./chunk-MMPJB5YI.cjs');
6
6
  require('./chunk-UEKPBRBY.cjs');
7
7
  require('./chunk-ABVRVW3P.cjs');
8
8
 
9
9
 
10
- exports.DepositModal = _chunk5AZBOAVHcjs.DepositModal;
10
+ exports.DepositModal = _chunk36ZVLS3Jcjs.DepositModal;
package/dist/deposit.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-IODANVAE.mjs";
3
+ } from "./chunk-C4EHJRNE.mjs";
4
4
  import "./chunk-FJWLC4AM.mjs";
5
5
  import "./chunk-2LX7CUVX.mjs";
6
6
  import "./chunk-F7P4MV72.mjs";
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk5AZBOAVHcjs = require('./chunk-5AZBOAVH.cjs');
3
+ var _chunk36ZVLS3Jcjs = require('./chunk-36ZVLS3J.cjs');
4
4
  require('./chunk-NRNJAQUA.cjs');
5
5
 
6
6
 
@@ -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 = _chunk5AZBOAVHcjs.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 = _chunkJRZ5GEJWcjs.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 = _chunk36ZVLS3Jcjs.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 = _chunkJRZ5GEJWcjs.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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-IODANVAE.mjs";
3
+ } from "./chunk-C4EHJRNE.mjs";
4
4
  import "./chunk-FJWLC4AM.mjs";
5
5
  import {
6
6
  WithdrawModal
package/dist/styles.css CHANGED
@@ -5025,6 +5025,14 @@
5025
5025
  padding-inline: 0;
5026
5026
  }
5027
5027
 
5028
+ /* Connect keeps our back/close chrome above the embedded widget. In the iframe
5029
+ phase, drop only the bottom shell padding so the iframe lands flush with the
5030
+ modal bottom edge; the side inset still lets the body negative margin expand
5031
+ iframe phases cleanly to the modal edges. */
5032
+ .rs-modal:has(.rs-modal-body[data-flow-mode="exchange-connect"] .rs-fiat-onramp) {
5033
+ padding: 16px 16px 0;
5034
+ }
5035
+
5028
5036
  /* Iframe wrap sized to Swapped's documented heights. Width deliberately spans
5029
5037
  the full modal body in the iframe phase; the modal itself controls the
5030
5038
  product-specific width below. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.0.0-dev-20260707131852",
3
+ "version": "0.0.0-dev-20260708124620",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {