@rhinestone/deposit-modal 0.13.0 → 0.14.0

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.
Files changed (57) hide show
  1. package/README.md +43 -2
  2. package/bridge-transcript.json +653 -0
  3. package/dist/ClaimModal-IKTJU43Y.cjs +13 -0
  4. package/dist/ClaimModal-SEKNWRMA.mjs +13 -0
  5. package/dist/{DepositModalReown-YNNHLAV2.cjs → DepositModalReown-46LPVFB6.cjs} +16 -15
  6. package/dist/{DepositModalReown-3H75G3XQ.mjs → DepositModalReown-Q2JMLT47.mjs} +6 -5
  7. package/dist/WithdrawModal-5ICGD4HJ.mjs +12 -0
  8. package/dist/WithdrawModal-VP6PMIRO.cjs +12 -0
  9. package/dist/{chunk-GACIGCSN.cjs → chunk-6KG642KH.cjs} +1 -1
  10. package/dist/{chunk-RAADLTSW.cjs → chunk-7ICSHJFE.cjs} +179 -138
  11. package/dist/{chunk-COCBCQQC.mjs → chunk-7SR7ENVJ.mjs} +46 -5
  12. package/dist/{chunk-OLCD75JK.mjs → chunk-CFKC77SV.mjs} +451 -131
  13. package/dist/{chunk-EOMT5LKX.mjs → chunk-IN77XSWO.mjs} +526 -3
  14. package/dist/{chunk-FZ5FZFIG.mjs → chunk-K4H6TGBE.mjs} +1 -1
  15. package/dist/{chunk-DSIZNRWA.mjs → chunk-KTUVSKR4.mjs} +979 -360
  16. package/dist/{chunk-HOGZKHHY.cjs → chunk-LZFRL2AL.cjs} +3 -3
  17. package/dist/{chunk-7N77GIP4.cjs → chunk-MTFJSE52.cjs} +465 -171
  18. package/dist/{chunk-LTMMETAB.mjs → chunk-PKML3XVS.mjs} +404 -110
  19. package/dist/{chunk-ZMT4ATHR.cjs → chunk-V2OBGLJD.cjs} +564 -41
  20. package/dist/{chunk-XYJFEN5D.mjs → chunk-WUJIKCFU.mjs} +1 -1
  21. package/dist/{chunk-CVGNCUVU.cjs → chunk-X2IPAPXU.cjs} +22 -13
  22. package/dist/{chunk-2G2EIN4A.cjs → chunk-YCQZJQO6.cjs} +1272 -653
  23. package/dist/{chunk-5NUIKYSF.cjs → chunk-YWMWI7PZ.cjs} +458 -138
  24. package/dist/{chunk-YREVFB64.mjs → chunk-ZEO6ADM3.mjs} +16 -7
  25. package/dist/claim.cjs +6 -6
  26. package/dist/claim.d.cts +3 -3
  27. package/dist/claim.d.ts +3 -3
  28. package/dist/claim.mjs +5 -5
  29. package/dist/constants.cjs +2 -2
  30. package/dist/constants.d.cts +1 -1
  31. package/dist/constants.d.ts +1 -1
  32. package/dist/constants.mjs +1 -1
  33. package/dist/deposit.cjs +6 -6
  34. package/dist/deposit.d.cts +2 -2
  35. package/dist/deposit.d.ts +2 -2
  36. package/dist/deposit.mjs +5 -5
  37. package/dist/embed.cjs +310 -102
  38. package/dist/embed.d.cts +7 -1
  39. package/dist/embed.d.ts +7 -1
  40. package/dist/embed.mjs +285 -77
  41. package/dist/index.cjs +9 -9
  42. package/dist/index.d.cts +1 -1
  43. package/dist/index.d.ts +1 -1
  44. package/dist/index.mjs +8 -8
  45. package/dist/types-Bho4OA03.d.ts +982 -0
  46. package/dist/types-DP_3KwlD.d.cts +982 -0
  47. package/dist/withdraw.cjs +5 -5
  48. package/dist/withdraw.d.cts +3 -3
  49. package/dist/withdraw.d.ts +3 -3
  50. package/dist/withdraw.mjs +4 -4
  51. package/package.json +28 -7
  52. package/dist/ClaimModal-CREZO27I.mjs +0 -11
  53. package/dist/ClaimModal-JRIA32U2.cjs +0 -11
  54. package/dist/WithdrawModal-NVRX44IZ.mjs +0 -10
  55. package/dist/WithdrawModal-YYSBPCJJ.cjs +0 -10
  56. package/dist/types-B89I8_8H.d.ts +0 -638
  57. package/dist/types-nnDR4tqA.d.cts +0 -638
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkYWMWI7PZcjs = require('./chunk-YWMWI7PZ.cjs');
5
+ require('./chunk-X2IPAPXU.cjs');
6
+ require('./chunk-LZFRL2AL.cjs');
7
+ require('./chunk-V2OBGLJD.cjs');
8
+ require('./chunk-6KG642KH.cjs');
9
+ require('./chunk-4KCSH4T3.cjs');
10
+
11
+
12
+
13
+ exports.ClaimModal = _chunkYWMWI7PZcjs.ClaimModal; exports.buildClaimAnalyticsSessionProperties = _chunkYWMWI7PZcjs.buildClaimAnalyticsSessionProperties;
@@ -0,0 +1,13 @@
1
+ import {
2
+ ClaimModal,
3
+ buildClaimAnalyticsSessionProperties
4
+ } from "./chunk-CFKC77SV.mjs";
5
+ import "./chunk-ZEO6ADM3.mjs";
6
+ import "./chunk-WUJIKCFU.mjs";
7
+ import "./chunk-IN77XSWO.mjs";
8
+ import "./chunk-K4H6TGBE.mjs";
9
+ import "./chunk-VUATPOWJ.mjs";
10
+ export {
11
+ ClaimModal,
12
+ buildClaimAnalyticsSessionProperties
13
+ };
@@ -1,8 +1,8 @@
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
- var _chunk2G2EIN4Acjs = require('./chunk-2G2EIN4A.cjs');
4
- require('./chunk-RAADLTSW.cjs');
5
- require('./chunk-HOGZKHHY.cjs');
3
+ var _chunkYCQZJQO6cjs = require('./chunk-YCQZJQO6.cjs');
4
+ require('./chunk-7ICSHJFE.cjs');
5
+ require('./chunk-LZFRL2AL.cjs');
6
6
 
7
7
 
8
8
 
@@ -11,8 +11,8 @@ require('./chunk-HOGZKHHY.cjs');
11
11
 
12
12
 
13
13
 
14
- var _chunkZMT4ATHRcjs = require('./chunk-ZMT4ATHR.cjs');
15
- require('./chunk-GACIGCSN.cjs');
14
+ var _chunkV2OBGLJDcjs = require('./chunk-V2OBGLJD.cjs');
15
+ require('./chunk-6KG642KH.cjs');
16
16
  require('./chunk-DW2EQA2U.cjs');
17
17
 
18
18
 
@@ -89,7 +89,7 @@ function getAppKitNetwork(chainId) {
89
89
 
90
90
  // src/core/reown-theme.ts
91
91
  function mapTheme(theme) {
92
- const themeMode = _chunkZMT4ATHRcjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
92
+ const themeMode = _chunkV2OBGLJDcjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
93
93
  const themeVariables = {
94
94
  "--apkt-accent": _optionalChain([theme, 'optionalAccess', _2 => _2.ctaColor])
95
95
  };
@@ -110,14 +110,14 @@ function buildTransports(rpcUrls, networks = EVM_NETWORKS) {
110
110
  const transports = {};
111
111
  for (const network of networks) {
112
112
  const id = Number(network.id);
113
- transports[id] = _viem.http.call(void 0, _chunkZMT4ATHRcjs.rpcUrlFor.call(void 0, rpcUrls, id));
113
+ transports[id] = _viem.http.call(void 0, _chunkV2OBGLJDcjs.rpcUrlFor.call(void 0, rpcUrls, id));
114
114
  }
115
115
  return transports;
116
116
  }
117
117
  function getEvmRpcFingerprint(rpcUrls, networks) {
118
118
  return networks.map((network) => {
119
119
  const id = Number(network.id);
120
- return `${id}=${_nullishCoalesce(_chunkZMT4ATHRcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
120
+ return `${id}=${_nullishCoalesce(_chunkV2OBGLJDcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
121
121
  }).join("|");
122
122
  }
123
123
  var cachedAdapter = null;
@@ -188,7 +188,7 @@ function ReownWalletProvider({
188
188
  backendUrl,
189
189
  children
190
190
  }) {
191
- const rpcUrls = _chunkZMT4ATHRcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
191
+ const rpcUrls = _chunkV2OBGLJDcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
192
192
  const [queryClient] = _react.useState.call(void 0, () => new (0, _reactquery.QueryClient)());
193
193
  const overrides = _react.useMemo.call(void 0, () => {
194
194
  if (!rpcUrls) return void 0;
@@ -200,14 +200,14 @@ function ReownWalletProvider({
200
200
  return out;
201
201
  }, [rpcUrls]);
202
202
  const [state, setState] = _react.useState.call(void 0, () => {
203
- const primed = _chunkZMT4ATHRcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
203
+ const primed = _chunkV2OBGLJDcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
204
204
  return { ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) };
205
205
  });
206
206
  _react.useEffect.call(void 0, () => {
207
207
  let active = true;
208
- const primed = _chunkZMT4ATHRcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
208
+ const primed = _chunkV2OBGLJDcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
209
209
  setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
210
- _chunkZMT4ATHRcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
210
+ _chunkV2OBGLJDcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
211
211
  if (active) setState({ ready: true, chains });
212
212
  });
213
213
  return () => {
@@ -216,7 +216,7 @@ function ReownWalletProvider({
216
216
  }, [backendUrl, overrides]);
217
217
  _react.useEffect.call(void 0, () => {
218
218
  setAppKitTheme(_react3.modal, theme);
219
- return _chunkZMT4ATHRcjs.followSystemAppearance.call(void 0,
219
+ return _chunkV2OBGLJDcjs.followSystemAppearance.call(void 0,
220
220
  _optionalChain([theme, 'optionalAccess', _7 => _7.mode]),
221
221
  () => setAppKitTheme(_react3.modal, theme)
222
222
  );
@@ -280,7 +280,7 @@ function useReownWalletSession() {
280
280
  await switchChainAsync({ chainId });
281
281
  }
282
282
  } catch (err) {
283
- if (_chunkZMT4ATHRcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
283
+ if (_chunkV2OBGLJDcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
284
284
  throw new Error(
285
285
  `Switch to ${chainDisplayName(chainId)} in your wallet to continue`
286
286
  );
@@ -314,10 +314,11 @@ function DepositModalWithReown(props) {
314
314
  reown.disconnect();
315
315
  }, [reown.disconnect]);
316
316
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
317
- _chunk2G2EIN4Acjs.DepositModalInner,
317
+ _chunkYCQZJQO6cjs.DepositModalInner,
318
318
  {
319
319
  ...props,
320
320
  walletSession: reownWithSolana,
321
+ walletIntegration: "modal_connected",
321
322
  onConnect: handleConnect,
322
323
  onDisconnect: handleDisconnect
323
324
  }
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-DSIZNRWA.mjs";
4
- import "./chunk-COCBCQQC.mjs";
5
- import "./chunk-XYJFEN5D.mjs";
3
+ } from "./chunk-KTUVSKR4.mjs";
4
+ import "./chunk-7SR7ENVJ.mjs";
5
+ import "./chunk-WUJIKCFU.mjs";
6
6
  import {
7
7
  followSystemAppearance,
8
8
  isUnsupportedChainSwitchError,
@@ -11,8 +11,8 @@ import {
11
11
  resolveThemeMode,
12
12
  rpcUrlFor,
13
13
  useStableRpcUrls
14
- } from "./chunk-EOMT5LKX.mjs";
15
- import "./chunk-FZ5FZFIG.mjs";
14
+ } from "./chunk-IN77XSWO.mjs";
15
+ import "./chunk-K4H6TGBE.mjs";
16
16
  import "./chunk-RN5VKWI6.mjs";
17
17
  import {
18
18
  SUPPORTED_CHAIN_IDS,
@@ -318,6 +318,7 @@ function DepositModalWithReown(props) {
318
318
  {
319
319
  ...props,
320
320
  walletSession: reownWithSolana,
321
+ walletIntegration: "modal_connected",
321
322
  onConnect: handleConnect,
322
323
  onDisconnect: handleDisconnect
323
324
  }
@@ -0,0 +1,12 @@
1
+ import {
2
+ WithdrawModal,
3
+ buildWithdrawAnalyticsSessionProperties
4
+ } from "./chunk-PKML3XVS.mjs";
5
+ import "./chunk-7SR7ENVJ.mjs";
6
+ import "./chunk-IN77XSWO.mjs";
7
+ import "./chunk-K4H6TGBE.mjs";
8
+ import "./chunk-VUATPOWJ.mjs";
9
+ export {
10
+ WithdrawModal,
11
+ buildWithdrawAnalyticsSessionProperties
12
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkMTFJSE52cjs = require('./chunk-MTFJSE52.cjs');
5
+ require('./chunk-7ICSHJFE.cjs');
6
+ require('./chunk-V2OBGLJD.cjs');
7
+ require('./chunk-6KG642KH.cjs');
8
+ require('./chunk-4KCSH4T3.cjs');
9
+
10
+
11
+
12
+ exports.WithdrawModal = _chunkMTFJSE52cjs.WithdrawModal; exports.buildWithdrawAnalyticsSessionProperties = _chunkMTFJSE52cjs.buildWithdrawAnalyticsSessionProperties;
@@ -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.13.0";
2
+ var MODAL_VERSION = "0.14.0";
3
3
  var SERVICE_HEADERS = {
4
4
  "Content-Type": "application/json",
5
5
  "x-deposit-modal-version": MODAL_VERSION