@rhinestone/deposit-modal 0.0.0-dev-20260703165839 → 0.0.0-dev-20260707131852
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.
- package/dist/{DepositModalReown-WABATPGV.cjs → DepositModalReown-FGZHT6NC.cjs} +2 -2
- package/dist/{DepositModalReown-MKKHVDEW.mjs → DepositModalReown-TLMWWXN4.mjs} +1 -1
- package/dist/{chunk-P7Y4CVDV.cjs → chunk-5AZBOAVH.cjs} +4 -3
- package/dist/{chunk-ZU2YOSDQ.mjs → chunk-IODANVAE.mjs} +4 -3
- package/dist/deposit.cjs +2 -2
- package/dist/deposit.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
3
|
+
var _chunk5AZBOAVHcjs = require('./chunk-5AZBOAVH.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
|
-
|
|
40
|
+
_chunk5AZBOAVHcjs.DepositModalInner,
|
|
41
41
|
{
|
|
42
42
|
...props,
|
|
43
43
|
reownWallet: reownWithSolana,
|
|
@@ -2431,10 +2431,11 @@ function SwappedIframeStep({
|
|
|
2431
2431
|
return () => window.removeEventListener("message", onMessage);
|
|
2432
2432
|
}, []);
|
|
2433
2433
|
_react.useEffect.call(void 0, () => {
|
|
2434
|
-
|
|
2434
|
+
const swappedProvesLive = orderState !== null && !(variant === "fiat" && orderState.status === "payment_pending");
|
|
2435
|
+
if (phase === "iframe" && (swappedProvesLive || latestEvent !== null)) {
|
|
2435
2436
|
setPhase("tracker");
|
|
2436
2437
|
}
|
|
2437
|
-
}, [phase, orderState, latestEvent]);
|
|
2438
|
+
}, [phase, orderState, latestEvent, variant]);
|
|
2438
2439
|
const stepStates = _react.useMemo.call(void 0,
|
|
2439
2440
|
() => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _89 => _89.status]), () => ( null)), latestEvent),
|
|
2440
2441
|
[orderState, latestEvent]
|
|
@@ -7721,7 +7722,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
|
|
|
7721
7722
|
// src/DepositModal.tsx
|
|
7722
7723
|
|
|
7723
7724
|
var ReownDepositInner = _react.lazy.call(void 0,
|
|
7724
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-
|
|
7725
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-FGZHT6NC.cjs"))).then((m) => ({ default: m.DepositModalReown }))
|
|
7725
7726
|
);
|
|
7726
7727
|
function sortByCreatedAtDesc(items) {
|
|
7727
7728
|
return [...items].sort((a, b) => {
|
|
@@ -2431,10 +2431,11 @@ function SwappedIframeStep({
|
|
|
2431
2431
|
return () => window.removeEventListener("message", onMessage);
|
|
2432
2432
|
}, []);
|
|
2433
2433
|
useEffect6(() => {
|
|
2434
|
-
|
|
2434
|
+
const swappedProvesLive = orderState !== null && !(variant === "fiat" && orderState.status === "payment_pending");
|
|
2435
|
+
if (phase === "iframe" && (swappedProvesLive || latestEvent !== null)) {
|
|
2435
2436
|
setPhase("tracker");
|
|
2436
2437
|
}
|
|
2437
|
-
}, [phase, orderState, latestEvent]);
|
|
2438
|
+
}, [phase, orderState, latestEvent, variant]);
|
|
2438
2439
|
const stepStates = useMemo4(
|
|
2439
2440
|
() => deriveStepStates(orderState?.status ?? null, latestEvent),
|
|
2440
2441
|
[orderState, latestEvent]
|
|
@@ -7721,7 +7722,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
|
|
|
7721
7722
|
// src/DepositModal.tsx
|
|
7722
7723
|
import { jsx as jsx21, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
7723
7724
|
var ReownDepositInner = lazy2(
|
|
7724
|
-
() => import("./DepositModalReown-
|
|
7725
|
+
() => import("./DepositModalReown-TLMWWXN4.mjs").then((m) => ({ default: m.DepositModalReown }))
|
|
7725
7726
|
);
|
|
7726
7727
|
function sortByCreatedAtDesc(items) {
|
|
7727
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
|
|
3
|
+
var _chunk5AZBOAVHcjs = require('./chunk-5AZBOAVH.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 =
|
|
10
|
+
exports.DepositModal = _chunk5AZBOAVHcjs.DepositModal;
|
package/dist/deposit.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5AZBOAVHcjs = require('./chunk-5AZBOAVH.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 =
|
|
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;
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED