@rhinestone/deposit-modal 0.0.0-dev-20260901094636 → 0.0.0-dev-20260901105152
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/ClaimModal-B45NHIL5.cjs +13 -0
- package/dist/{ClaimModal-ZQDXSZLL.mjs → ClaimModal-U5ALQSOR.mjs} +5 -5
- package/dist/{DepositModalReown-MTOM3AA3.cjs → DepositModalReown-4EPL7OPO.cjs} +18 -18
- package/dist/{DepositModalReown-H3GXW4Y5.mjs → DepositModalReown-IFSEKLRO.mjs} +5 -5
- package/dist/{WithdrawModal-ELMZGY2C.mjs → WithdrawModal-55EZNHOQ.mjs} +4 -4
- package/dist/WithdrawModal-LE3ZRKY7.cjs +12 -0
- package/dist/{chunk-6SALMZD5.mjs → chunk-4JD6DBZH.mjs} +13 -2
- package/dist/{chunk-N5NIIU65.cjs → chunk-4OSUV3KS.cjs} +1 -1
- package/dist/{chunk-GP7AWAXV.cjs → chunk-7N3H4FXA.cjs} +272 -272
- package/dist/{chunk-ZMQD4VGF.mjs → chunk-7YN6VMLD.mjs} +3 -3
- package/dist/{chunk-MWN56RRB.mjs → chunk-GU5BDJ5O.mjs} +2 -2
- package/dist/{chunk-QE7FXYER.mjs → chunk-MUYLY6VR.mjs} +1 -1
- package/dist/{chunk-HITTYAP3.mjs → chunk-PVPBJBPQ.mjs} +2 -2
- package/dist/{chunk-776RBGLO.cjs → chunk-Q35K2QBA.cjs} +45 -34
- package/dist/{chunk-PCRZHWPZ.cjs → chunk-SY3AQVTH.cjs} +65 -65
- package/dist/{chunk-B5VOFV56.cjs → chunk-TVM46AFB.cjs} +3 -3
- package/dist/{chunk-D34VMIMD.cjs → chunk-U44OGKDG.cjs} +74 -81
- package/dist/{chunk-5ROQKLCY.mjs → chunk-XMKXHIB5.mjs} +1 -1
- package/dist/{chunk-P5GFMQF7.mjs → chunk-Y6LG4GGD.mjs} +9 -16
- package/dist/{chunk-43NF3DK3.cjs → chunk-Y7YR5POO.cjs} +53 -53
- package/dist/{chunk-NAY3UQV4.cjs → chunk-ZZJBINRJ.cjs} +8 -8
- package/dist/{chunk-44K7ZA6T.mjs → chunk-ZZXLJAX5.mjs} +4 -4
- package/dist/claim.cjs +6 -6
- package/dist/claim.mjs +5 -5
- package/dist/constants.cjs +2 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +6 -6
- package/dist/deposit.mjs +5 -5
- package/dist/embed.cjs +18 -18
- package/dist/embed.mjs +8 -8
- package/dist/index.cjs +9 -9
- package/dist/index.mjs +8 -8
- package/dist/withdraw.cjs +5 -5
- package/dist/withdraw.mjs +4 -4
- package/package.json +3 -3
- package/dist/ClaimModal-NW2X6KDY.cjs +0 -13
- package/dist/WithdrawModal-2TJZV7OO.cjs +0 -12
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkY7YR5POOcjs = require('./chunk-Y7YR5POO.cjs');
|
|
5
|
+
require('./chunk-ZZJBINRJ.cjs');
|
|
6
|
+
require('./chunk-TVM46AFB.cjs');
|
|
7
|
+
require('./chunk-Q35K2QBA.cjs');
|
|
8
|
+
require('./chunk-4OSUV3KS.cjs');
|
|
9
|
+
require('./chunk-4KCSH4T3.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.ClaimModal = _chunkY7YR5POOcjs.ClaimModal; exports.buildClaimAnalyticsSessionProperties = _chunkY7YR5POOcjs.buildClaimAnalyticsSessionProperties;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClaimModal,
|
|
3
3
|
buildClaimAnalyticsSessionProperties
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-7YN6VMLD.mjs";
|
|
5
|
+
import "./chunk-PVPBJBPQ.mjs";
|
|
6
|
+
import "./chunk-MUYLY6VR.mjs";
|
|
7
|
+
import "./chunk-4JD6DBZH.mjs";
|
|
8
|
+
import "./chunk-XMKXHIB5.mjs";
|
|
9
9
|
import "./chunk-VUATPOWJ.mjs";
|
|
10
10
|
export {
|
|
11
11
|
ClaimModal,
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var _chunk7N3H4FXAcjs = require('./chunk-7N3H4FXA.cjs');
|
|
5
|
+
require('./chunk-U44OGKDG.cjs');
|
|
6
|
+
require('./chunk-TVM46AFB.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -12,8 +12,8 @@ require('./chunk-B5VOFV56.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
require('./chunk-
|
|
15
|
+
var _chunkQ35K2QBAcjs = require('./chunk-Q35K2QBA.cjs');
|
|
16
|
+
require('./chunk-4OSUV3KS.cjs');
|
|
17
17
|
require('./chunk-DW2EQA2U.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
@@ -46,7 +46,7 @@ var {
|
|
|
46
46
|
unichain,
|
|
47
47
|
katana,
|
|
48
48
|
hyperEvm
|
|
49
|
-
} =
|
|
49
|
+
} = _chunk7N3H4FXAcjs.getReownDependencies.call(void 0, )[1];
|
|
50
50
|
var APPKIT_NETWORK_BY_ID = {
|
|
51
51
|
[mainnet.id]: mainnet,
|
|
52
52
|
[optimism.id]: optimism,
|
|
@@ -78,7 +78,7 @@ function getAppKitNetwork(chainId) {
|
|
|
78
78
|
|
|
79
79
|
// src/core/reown-theme.ts
|
|
80
80
|
function mapTheme(theme) {
|
|
81
|
-
const themeMode =
|
|
81
|
+
const themeMode = _chunkQ35K2QBAcjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
|
|
82
82
|
const themeVariables = {
|
|
83
83
|
"--apkt-accent": _optionalChain([theme, 'optionalAccess', _2 => _2.ctaColor])
|
|
84
84
|
};
|
|
@@ -95,7 +95,7 @@ function setAppKitTheme(appKit, theme) {
|
|
|
95
95
|
|
|
96
96
|
// src/core/reown.tsx
|
|
97
97
|
var _jsxruntime = require('react/jsx-runtime');
|
|
98
|
-
var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] =
|
|
98
|
+
var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] = _chunk7N3H4FXAcjs.getReownDependencies.call(void 0, );
|
|
99
99
|
var {
|
|
100
100
|
createAppKit,
|
|
101
101
|
useAppKit,
|
|
@@ -111,14 +111,14 @@ function buildTransports(rpcUrls, networks = EVM_NETWORKS) {
|
|
|
111
111
|
const transports = {};
|
|
112
112
|
for (const network of networks) {
|
|
113
113
|
const id = Number(network.id);
|
|
114
|
-
transports[id] = _viem.http.call(void 0,
|
|
114
|
+
transports[id] = _viem.http.call(void 0, _chunkQ35K2QBAcjs.rpcUrlFor.call(void 0, rpcUrls, id));
|
|
115
115
|
}
|
|
116
116
|
return transports;
|
|
117
117
|
}
|
|
118
118
|
function getEvmRpcFingerprint(rpcUrls, networks) {
|
|
119
119
|
return networks.map((network) => {
|
|
120
120
|
const id = Number(network.id);
|
|
121
|
-
return `${id}=${_nullishCoalesce(
|
|
121
|
+
return `${id}=${_nullishCoalesce(_chunkQ35K2QBAcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
|
|
122
122
|
}).join("|");
|
|
123
123
|
}
|
|
124
124
|
var cachedAdapter = null;
|
|
@@ -189,7 +189,7 @@ function ReownWalletProvider({
|
|
|
189
189
|
backendUrl,
|
|
190
190
|
children
|
|
191
191
|
}) {
|
|
192
|
-
const rpcUrls =
|
|
192
|
+
const rpcUrls = _chunkQ35K2QBAcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
193
193
|
const [queryClient] = _react.useState.call(void 0, () => new (0, _reactquery.QueryClient)());
|
|
194
194
|
const overrides = _react.useMemo.call(void 0, () => {
|
|
195
195
|
if (!rpcUrls) return void 0;
|
|
@@ -201,14 +201,14 @@ function ReownWalletProvider({
|
|
|
201
201
|
return out;
|
|
202
202
|
}, [rpcUrls]);
|
|
203
203
|
const [state, setState] = _react.useState.call(void 0, () => {
|
|
204
|
-
const primed =
|
|
204
|
+
const primed = _chunkQ35K2QBAcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
205
205
|
return { ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) };
|
|
206
206
|
});
|
|
207
207
|
_react.useEffect.call(void 0, () => {
|
|
208
208
|
let active = true;
|
|
209
|
-
const primed =
|
|
209
|
+
const primed = _chunkQ35K2QBAcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
210
210
|
setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
|
|
211
|
-
|
|
211
|
+
_chunkQ35K2QBAcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
|
|
212
212
|
if (active) setState({ ready: true, chains });
|
|
213
213
|
});
|
|
214
214
|
return () => {
|
|
@@ -217,7 +217,7 @@ function ReownWalletProvider({
|
|
|
217
217
|
}, [backendUrl, overrides]);
|
|
218
218
|
_react.useEffect.call(void 0, () => {
|
|
219
219
|
setAppKitTheme(appKitReact.modal, theme);
|
|
220
|
-
return
|
|
220
|
+
return _chunkQ35K2QBAcjs.followSystemAppearance.call(void 0,
|
|
221
221
|
_optionalChain([theme, 'optionalAccess', _7 => _7.mode]),
|
|
222
222
|
() => setAppKitTheme(appKitReact.modal, theme)
|
|
223
223
|
);
|
|
@@ -281,7 +281,7 @@ function useReownWalletSession() {
|
|
|
281
281
|
await switchChainAsync({ chainId });
|
|
282
282
|
}
|
|
283
283
|
} catch (err) {
|
|
284
|
-
if (
|
|
284
|
+
if (_chunkQ35K2QBAcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
285
285
|
throw new Error(
|
|
286
286
|
`Switch to ${chainDisplayName(chainId)} in your wallet to continue`
|
|
287
287
|
);
|
|
@@ -294,7 +294,7 @@ function useReownWalletSession() {
|
|
|
294
294
|
|
|
295
295
|
// src/DepositModalReown.tsx
|
|
296
296
|
|
|
297
|
-
var [appKitReact2, , , , solanaAdapterReact] =
|
|
297
|
+
var [appKitReact2, , , , solanaAdapterReact] = _chunk7N3H4FXAcjs.getReownDependencies.call(void 0, );
|
|
298
298
|
var { useAppKitProvider } = appKitReact2;
|
|
299
299
|
var { useAppKitConnection } = solanaAdapterReact;
|
|
300
300
|
function DepositModalWithReown(props) {
|
|
@@ -316,7 +316,7 @@ function DepositModalWithReown(props) {
|
|
|
316
316
|
reown.disconnect();
|
|
317
317
|
}, [reown.disconnect]);
|
|
318
318
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
-
|
|
319
|
+
_chunk7N3H4FXAcjs.DepositModalInner,
|
|
320
320
|
{
|
|
321
321
|
...props,
|
|
322
322
|
walletSession: reownWithSolana,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner,
|
|
3
3
|
getReownDependencies
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ZZXLJAX5.mjs";
|
|
5
|
+
import "./chunk-Y6LG4GGD.mjs";
|
|
6
|
+
import "./chunk-MUYLY6VR.mjs";
|
|
7
7
|
import {
|
|
8
8
|
followSystemAppearance,
|
|
9
9
|
isUnsupportedChainSwitchError,
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
resolveThemeMode,
|
|
13
13
|
rpcUrlFor,
|
|
14
14
|
useStableRpcUrls
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-4JD6DBZH.mjs";
|
|
16
|
+
import "./chunk-XMKXHIB5.mjs";
|
|
17
17
|
import "./chunk-RN5VKWI6.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SUPPORTED_CHAIN_IDS,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModal,
|
|
3
3
|
buildWithdrawAnalyticsSessionProperties
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-GU5BDJ5O.mjs";
|
|
5
|
+
import "./chunk-Y6LG4GGD.mjs";
|
|
6
|
+
import "./chunk-4JD6DBZH.mjs";
|
|
7
|
+
import "./chunk-XMKXHIB5.mjs";
|
|
8
8
|
import "./chunk-VUATPOWJ.mjs";
|
|
9
9
|
export {
|
|
10
10
|
WithdrawModal,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkSY3AQVTHcjs = require('./chunk-SY3AQVTH.cjs');
|
|
5
|
+
require('./chunk-U44OGKDG.cjs');
|
|
6
|
+
require('./chunk-Q35K2QBA.cjs');
|
|
7
|
+
require('./chunk-4OSUV3KS.cjs');
|
|
8
|
+
require('./chunk-4KCSH4T3.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.WithdrawModal = _chunkSY3AQVTHcjs.WithdrawModal; exports.buildWithdrawAnalyticsSessionProperties = _chunkSY3AQVTHcjs.buildWithdrawAnalyticsSessionProperties;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MODAL_VERSION,
|
|
3
3
|
serviceHeaders
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XMKXHIB5.mjs";
|
|
5
5
|
import {
|
|
6
6
|
CHAIN_DISPLAY_ORDER,
|
|
7
7
|
HYPERCORE_CHAIN_ID,
|
|
@@ -853,6 +853,13 @@ var PermitDepositSubmitError = class extends Error {
|
|
|
853
853
|
this.name = "PermitDepositSubmitError";
|
|
854
854
|
}
|
|
855
855
|
};
|
|
856
|
+
var RegistrationError = class extends Error {
|
|
857
|
+
constructor(message, status) {
|
|
858
|
+
super(message);
|
|
859
|
+
this.status = status;
|
|
860
|
+
this.name = "RegistrationError";
|
|
861
|
+
}
|
|
862
|
+
};
|
|
856
863
|
function createDepositService(baseUrl, options) {
|
|
857
864
|
const normalizedBaseUrl = baseUrl.replace(/\/$/, "");
|
|
858
865
|
const debug = options?.debug === true;
|
|
@@ -985,7 +992,10 @@ function createDepositService(baseUrl, options) {
|
|
|
985
992
|
});
|
|
986
993
|
const detail = Array.isArray(error.details) ? error.details.map((d) => d?.message).filter(Boolean).join("; ") : void 0;
|
|
987
994
|
const base = error.error || `Account registration failed: ${response.status}`;
|
|
988
|
-
throw new
|
|
995
|
+
throw new RegistrationError(
|
|
996
|
+
detail ? `${base}: ${detail}` : base,
|
|
997
|
+
response.status
|
|
998
|
+
);
|
|
989
999
|
}
|
|
990
1000
|
const result = await response.json();
|
|
991
1001
|
debugLog(debug, scope, "registerManagedAccount:success", {
|
|
@@ -3654,6 +3664,7 @@ export {
|
|
|
3654
3664
|
SUPPORTED_CONNECT_EXCHANGE_COUNT,
|
|
3655
3665
|
resolveAppFeeBps,
|
|
3656
3666
|
PermitDepositSubmitError,
|
|
3667
|
+
RegistrationError,
|
|
3657
3668
|
createDepositService,
|
|
3658
3669
|
rpcUrlFor,
|
|
3659
3670
|
RpcUrlsProvider,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/core/version.ts
|
|
2
|
-
var MODAL_VERSION = "0.0.0-dev-
|
|
2
|
+
var MODAL_VERSION = "0.0.0-dev-20260901105152";
|
|
3
3
|
var SERVICE_HEADERS = {
|
|
4
4
|
"Content-Type": "application/json",
|
|
5
5
|
"x-deposit-modal-version": MODAL_VERSION
|