@rhinestone/deposit-modal 0.1.60 → 0.1.61
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-S24YS35X.mjs → DepositModalReown-727JVH7Q.mjs} +1 -1
- package/dist/{DepositModalReown-VP5E2JRC.cjs → DepositModalReown-BKMRNZNX.cjs} +2 -2
- package/dist/{WithdrawModalReown-Y2ETJQON.mjs → WithdrawModalReown-OHTYDGI5.mjs} +1 -1
- package/dist/{WithdrawModalReown-7JLR264N.cjs → WithdrawModalReown-ZNQPXAS6.cjs} +2 -2
- package/dist/{chunk-3CANBYBN.cjs → chunk-C5TWF4ZE.cjs} +2 -2
- package/dist/{chunk-6SM3IQKZ.mjs → chunk-IKTHUMGZ.mjs} +5 -4
- package/dist/{chunk-JJMPCRKB.mjs → chunk-RRYC5EZF.mjs} +2 -2
- package/dist/{chunk-HX7LLE2V.cjs → chunk-TBUOMWKJ.cjs} +5 -4
- package/dist/deposit.cjs +2 -2
- package/dist/deposit.mjs +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +2 -2
- package/dist/reown.cjs +3 -3
- package/dist/reown.mjs +2 -2
- package/dist/withdraw.cjs +2 -2
- package/dist/withdraw.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 _chunkTBUOMWKJcjs = require('./chunk-TBUOMWKJ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -32,7 +32,7 @@ function DepositModalWithReown(props) {
|
|
|
32
32
|
reown.disconnect();
|
|
33
33
|
}, [reown.disconnect]);
|
|
34
34
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
35
|
-
|
|
35
|
+
_chunkTBUOMWKJcjs.DepositModalInner,
|
|
36
36
|
{
|
|
37
37
|
...props,
|
|
38
38
|
reownWallet: reownWithSolana,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkC5TWF4ZEcjs = require('./chunk-C5TWF4ZE.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ function WithdrawModalWithReown(props) {
|
|
|
20
20
|
reown.disconnect();
|
|
21
21
|
}, [reown.disconnect]);
|
|
22
22
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23
|
-
|
|
23
|
+
_chunkC5TWF4ZEcjs.WithdrawModalInner,
|
|
24
24
|
{
|
|
25
25
|
...props,
|
|
26
26
|
reownWallet: reown,
|
|
@@ -1049,7 +1049,7 @@ function WithdrawFlow({
|
|
|
1049
1049
|
default_chain: chainName
|
|
1050
1050
|
})]);
|
|
1051
1051
|
}
|
|
1052
|
-
}, [step.type, onEvent
|
|
1052
|
+
}, [step.type, onEvent]);
|
|
1053
1053
|
_react.useEffect.call(void 0, () => {
|
|
1054
1054
|
logFlow("state:changed", {
|
|
1055
1055
|
step: step.type,
|
|
@@ -1478,7 +1478,7 @@ function WithdrawFlow({
|
|
|
1478
1478
|
// src/WithdrawModal.tsx
|
|
1479
1479
|
|
|
1480
1480
|
var ReownWithdrawInner = _react.lazy.call(void 0,
|
|
1481
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-
|
|
1481
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-ZNQPXAS6.cjs"))).then((m) => ({
|
|
1482
1482
|
default: m.WithdrawModalReown
|
|
1483
1483
|
}))
|
|
1484
1484
|
);
|
|
@@ -2918,6 +2918,7 @@ function DepositFlow({
|
|
|
2918
2918
|
useEffect9(() => {
|
|
2919
2919
|
onStepChange?.(stepIndex, currentBackHandler);
|
|
2920
2920
|
}, [stepIndex, currentBackHandler, onStepChange]);
|
|
2921
|
+
const stepSendToken = step.type === "amount" ? step.asset.symbol : null;
|
|
2921
2922
|
useEffect9(() => {
|
|
2922
2923
|
if (step.type === "select-asset") {
|
|
2923
2924
|
onEvent?.({
|
|
@@ -2934,16 +2935,16 @@ function DepositFlow({
|
|
|
2934
2935
|
default_token: tokenSymbol,
|
|
2935
2936
|
pred_balance: totalBalanceUsd
|
|
2936
2937
|
});
|
|
2937
|
-
} else if (step.type === "amount") {
|
|
2938
|
+
} else if (step.type === "amount" && stepSendToken) {
|
|
2938
2939
|
const receiveSymbol = getTokenSymbol(targetToken, targetChain);
|
|
2939
2940
|
onEvent?.({
|
|
2940
2941
|
type: "deposit_modal_connected_wallet_enter_value_open",
|
|
2941
|
-
send_token:
|
|
2942
|
+
send_token: stepSendToken,
|
|
2942
2943
|
receive_token: receiveSymbol,
|
|
2943
2944
|
pred_balance: totalBalanceUsd
|
|
2944
2945
|
});
|
|
2945
2946
|
}
|
|
2946
|
-
}, [step,
|
|
2947
|
+
}, [step.type, stepSendToken, onEvent]);
|
|
2947
2948
|
useEffect9(() => {
|
|
2948
2949
|
logFlow("state:changed", {
|
|
2949
2950
|
step: step.type,
|
|
@@ -3639,7 +3640,7 @@ function DepositFlow({
|
|
|
3639
3640
|
// src/DepositModal.tsx
|
|
3640
3641
|
import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3641
3642
|
var ReownDepositInner = lazy(
|
|
3642
|
-
() => import("./DepositModalReown-
|
|
3643
|
+
() => import("./DepositModalReown-727JVH7Q.mjs").then((m) => ({ default: m.DepositModalReown }))
|
|
3643
3644
|
);
|
|
3644
3645
|
function DepositModal(props) {
|
|
3645
3646
|
const needsReown = !!props.reownAppId;
|
|
@@ -1049,7 +1049,7 @@ function WithdrawFlow({
|
|
|
1049
1049
|
default_chain: chainName
|
|
1050
1050
|
});
|
|
1051
1051
|
}
|
|
1052
|
-
}, [step.type, onEvent
|
|
1052
|
+
}, [step.type, onEvent]);
|
|
1053
1053
|
useEffect2(() => {
|
|
1054
1054
|
logFlow("state:changed", {
|
|
1055
1055
|
step: step.type,
|
|
@@ -1478,7 +1478,7 @@ function WithdrawFlow({
|
|
|
1478
1478
|
// src/WithdrawModal.tsx
|
|
1479
1479
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1480
1480
|
var ReownWithdrawInner = lazy(
|
|
1481
|
-
() => import("./WithdrawModalReown-
|
|
1481
|
+
() => import("./WithdrawModalReown-OHTYDGI5.mjs").then((m) => ({
|
|
1482
1482
|
default: m.WithdrawModalReown
|
|
1483
1483
|
}))
|
|
1484
1484
|
);
|
|
@@ -2918,6 +2918,7 @@ function DepositFlow({
|
|
|
2918
2918
|
_react.useEffect.call(void 0, () => {
|
|
2919
2919
|
_optionalChain([onStepChange, 'optionalCall', _85 => _85(stepIndex, currentBackHandler)]);
|
|
2920
2920
|
}, [stepIndex, currentBackHandler, onStepChange]);
|
|
2921
|
+
const stepSendToken = step.type === "amount" ? step.asset.symbol : null;
|
|
2921
2922
|
_react.useEffect.call(void 0, () => {
|
|
2922
2923
|
if (step.type === "select-asset") {
|
|
2923
2924
|
_optionalChain([onEvent, 'optionalCall', _86 => _86({
|
|
@@ -2934,16 +2935,16 @@ function DepositFlow({
|
|
|
2934
2935
|
default_token: tokenSymbol,
|
|
2935
2936
|
pred_balance: totalBalanceUsd
|
|
2936
2937
|
})]);
|
|
2937
|
-
} else if (step.type === "amount") {
|
|
2938
|
+
} else if (step.type === "amount" && stepSendToken) {
|
|
2938
2939
|
const receiveSymbol = _chunkR6U6BHCVcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
2939
2940
|
_optionalChain([onEvent, 'optionalCall', _88 => _88({
|
|
2940
2941
|
type: "deposit_modal_connected_wallet_enter_value_open",
|
|
2941
|
-
send_token:
|
|
2942
|
+
send_token: stepSendToken,
|
|
2942
2943
|
receive_token: receiveSymbol,
|
|
2943
2944
|
pred_balance: totalBalanceUsd
|
|
2944
2945
|
})]);
|
|
2945
2946
|
}
|
|
2946
|
-
}, [step,
|
|
2947
|
+
}, [step.type, stepSendToken, onEvent]);
|
|
2947
2948
|
_react.useEffect.call(void 0, () => {
|
|
2948
2949
|
logFlow("state:changed", {
|
|
2949
2950
|
step: step.type,
|
|
@@ -3639,7 +3640,7 @@ function DepositFlow({
|
|
|
3639
3640
|
// src/DepositModal.tsx
|
|
3640
3641
|
|
|
3641
3642
|
var ReownDepositInner = _react.lazy.call(void 0,
|
|
3642
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-
|
|
3643
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-BKMRNZNX.cjs"))).then((m) => ({ default: m.DepositModalReown }))
|
|
3643
3644
|
);
|
|
3644
3645
|
function DepositModal(props) {
|
|
3645
3646
|
const needsReown = !!props.reownAppId;
|
package/dist/deposit.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTBUOMWKJcjs = require('./chunk-TBUOMWKJ.cjs');
|
|
4
4
|
require('./chunk-TQ6IIGRS.cjs');
|
|
5
5
|
require('./chunk-R6U6BHCV.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.DepositModal =
|
|
8
|
+
exports.DepositModal = _chunkTBUOMWKJcjs.DepositModal;
|
package/dist/deposit.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTBUOMWKJcjs = require('./chunk-TBUOMWKJ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkC5TWF4ZEcjs = require('./chunk-C5TWF4ZE.cjs');
|
|
7
7
|
require('./chunk-TQ6IIGRS.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
@@ -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 =
|
|
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 = _chunkTBUOMWKJcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkR6U6BHCVcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkR6U6BHCVcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkC5TWF4ZEcjs.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.mjs
CHANGED
package/dist/reown.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTBUOMWKJcjs = require('./chunk-TBUOMWKJ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkC5TWF4ZEcjs = require('./chunk-C5TWF4ZE.cjs');
|
|
7
7
|
require('./chunk-TQ6IIGRS.cjs');
|
|
8
8
|
require('./chunk-R6U6BHCV.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.DepositModal =
|
|
12
|
+
exports.DepositModal = _chunkTBUOMWKJcjs.DepositModal; exports.WithdrawModal = _chunkC5TWF4ZEcjs.WithdrawModal;
|
package/dist/reown.mjs
CHANGED
package/dist/withdraw.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkC5TWF4ZEcjs = require('./chunk-C5TWF4ZE.cjs');
|
|
4
4
|
require('./chunk-TQ6IIGRS.cjs');
|
|
5
5
|
require('./chunk-R6U6BHCV.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.WithdrawModal =
|
|
8
|
+
exports.WithdrawModal = _chunkC5TWF4ZEcjs.WithdrawModal;
|
package/dist/withdraw.mjs
CHANGED