@rhinestone/deposit-modal 0.0.0-dev-20260901162023 → 0.0.0-dev-20260902100643

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 (51) hide show
  1. package/README.md +6 -0
  2. package/dist/ClaimModal-GSPX6OJ7.cjs +11 -0
  3. package/dist/{ClaimModal-NJEVCXFZ.mjs → ClaimModal-PSUTIOAJ.mjs} +3 -4
  4. package/dist/{DepositModalReown-THSTSQHI.mjs → DepositModalReown-A3HHGMNI.mjs} +4 -5
  5. package/dist/{DepositModalReown-7JUC6U7W.cjs → DepositModalReown-MXYCCB37.cjs} +17 -18
  6. package/dist/WithdrawModal-4QBA4F3B.cjs +12 -0
  7. package/dist/{WithdrawModal-DXZYG3HU.mjs → WithdrawModal-AB4XLDEZ.mjs} +4 -4
  8. package/dist/{chunk-DHGJHRBX.mjs → chunk-277V3675.mjs} +724 -139
  9. package/dist/{chunk-OJRBZQIE.mjs → chunk-3XY7OEUP.mjs} +70 -107
  10. package/dist/{chunk-MANGCUEL.cjs → chunk-7FOI2OFO.cjs} +1 -1
  11. package/dist/{chunk-EVAKCGLK.mjs → chunk-B7MYDIEA.mjs} +129 -44
  12. package/dist/{chunk-I32JWFY4.mjs → chunk-BUSVIK7O.mjs} +74 -764
  13. package/dist/{chunk-OPRCCLSY.cjs → chunk-BWSZDNJP.cjs} +1151 -147
  14. package/dist/{chunk-J7ZCRY3H.cjs → chunk-CGCDCITV.cjs} +804 -219
  15. package/dist/{chunk-GMYOHPI6.cjs → chunk-N27DX2Y3.cjs} +91 -128
  16. package/dist/{chunk-UU5JG66V.cjs → chunk-TXJLLW3T.cjs} +290 -980
  17. package/dist/{chunk-JICOHQHN.cjs → chunk-YN7T4MGV.cjs} +184 -99
  18. package/dist/{chunk-ZJKENYOD.mjs → chunk-YTXWDXZW.mjs} +1181 -177
  19. package/dist/{chunk-PSLNTPKP.mjs → chunk-ZQLAVLHM.mjs} +1 -1
  20. package/dist/claim.cjs +4 -5
  21. package/dist/claim.d.cts +2 -2
  22. package/dist/claim.d.ts +2 -2
  23. package/dist/claim.mjs +3 -4
  24. package/dist/constants.cjs +2 -2
  25. package/dist/constants.d.cts +1 -1
  26. package/dist/constants.d.ts +1 -1
  27. package/dist/constants.mjs +1 -1
  28. package/dist/deposit.cjs +5 -6
  29. package/dist/deposit.d.cts +2 -2
  30. package/dist/deposit.d.ts +2 -2
  31. package/dist/deposit.mjs +4 -5
  32. package/dist/embed.cjs +25 -17
  33. package/dist/embed.d.cts +1 -1
  34. package/dist/embed.d.ts +1 -1
  35. package/dist/embed.mjs +15 -7
  36. package/dist/index.cjs +7 -8
  37. package/dist/index.d.cts +1 -1
  38. package/dist/index.d.ts +1 -1
  39. package/dist/index.mjs +6 -7
  40. package/dist/styles.css +31 -3
  41. package/dist/{types-D36e_rVZ.d.ts → types-BT1KmcJS.d.ts} +25 -0
  42. package/dist/{types-TsOeInuD.d.cts → types-CUCD4RvY.d.cts} +25 -0
  43. package/dist/withdraw.cjs +5 -5
  44. package/dist/withdraw.d.cts +3 -3
  45. package/dist/withdraw.d.ts +3 -3
  46. package/dist/withdraw.mjs +4 -4
  47. package/package.json +5 -5
  48. package/dist/ClaimModal-5JQHZ6RG.cjs +0 -12
  49. package/dist/WithdrawModal-VUILQYNT.cjs +0 -12
  50. package/dist/chunk-FI6F5GUL.cjs +0 -529
  51. package/dist/chunk-VMP2UYAN.mjs +0 -529
package/README.md CHANGED
@@ -143,6 +143,12 @@ The user picks the destination chain, token, recipient, and amount in the modal;
143
143
  - **Send to `to`.** It's the Rhinestone deposit account the processor watches and bridges on to the recipient — except on a same-route withdrawal (source chain and token identical to the target), where the modal skips the bridge and `to` is the recipient itself. Never substitute an address of your own.
144
144
  - **Return the on-chain transaction hash**, not a userOp hash. The modal tracks progress by looking the deposit up by that hash. Reject the promise to surface a failure.
145
145
 
146
+ ### History
147
+
148
+ Once the form holds a valid recipient, the header offers that **destination's** deposit history — a cross-route withdrawal funds a deposit account keyed to its destination, so it shows up there as an ordinary deposit row. The entry point carries the same status dot the deposit modal's does, and is hidden while the transfer is being signed and while its status is polled.
149
+
150
+ Pass the optional `signRecovery` to let the user recover a failed row from the panel; omit it and the panel is read-only. The signer is the address the user is withdrawing **to**, so only supply it if your users can sign for their withdrawal destinations.
151
+
146
152
  ## Claim a failed deposit
147
153
 
148
154
  `ClaimModal` lets a user get a failed or rejected EVM deposit sent back to them on its source chain. They paste the deposit's transaction hash and name a destination, and there is no chain to pick: the hash is looked up across every chain, including ones the deposit flow itself doesn't list.
@@ -0,0 +1,11 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkN27DX2Y3cjs = require('./chunk-N27DX2Y3.cjs');
5
+ require('./chunk-CGCDCITV.cjs');
6
+ require('./chunk-7FOI2OFO.cjs');
7
+ require('./chunk-4KCSH4T3.cjs');
8
+
9
+
10
+
11
+ exports.ClaimModal = _chunkN27DX2Y3cjs.ClaimModal; exports.buildClaimAnalyticsSessionProperties = _chunkN27DX2Y3cjs.buildClaimAnalyticsSessionProperties;
@@ -1,10 +1,9 @@
1
1
  import {
2
2
  ClaimModal,
3
3
  buildClaimAnalyticsSessionProperties
4
- } from "./chunk-OJRBZQIE.mjs";
5
- import "./chunk-VMP2UYAN.mjs";
6
- import "./chunk-DHGJHRBX.mjs";
7
- import "./chunk-PSLNTPKP.mjs";
4
+ } from "./chunk-3XY7OEUP.mjs";
5
+ import "./chunk-277V3675.mjs";
6
+ import "./chunk-ZQLAVLHM.mjs";
8
7
  import "./chunk-VUATPOWJ.mjs";
9
8
  export {
10
9
  ClaimModal,
@@ -1,9 +1,8 @@
1
1
  import {
2
2
  DepositModalInner,
3
3
  getReownDependencies
4
- } from "./chunk-I32JWFY4.mjs";
5
- import "./chunk-ZJKENYOD.mjs";
6
- import "./chunk-VMP2UYAN.mjs";
4
+ } from "./chunk-BUSVIK7O.mjs";
5
+ import "./chunk-YTXWDXZW.mjs";
7
6
  import {
8
7
  followSystemAppearance,
9
8
  isUnsupportedChainSwitchError,
@@ -12,8 +11,8 @@ import {
12
11
  resolveThemeMode,
13
12
  rpcUrlFor,
14
13
  useStableRpcUrls
15
- } from "./chunk-DHGJHRBX.mjs";
16
- import "./chunk-PSLNTPKP.mjs";
14
+ } from "./chunk-277V3675.mjs";
15
+ import "./chunk-ZQLAVLHM.mjs";
17
16
  import "./chunk-RN5VKWI6.mjs";
18
17
  import {
19
18
  SUPPORTED_CHAIN_IDS,
@@ -1,9 +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
3
 
4
- var _chunkUU5JG66Vcjs = require('./chunk-UU5JG66V.cjs');
5
- require('./chunk-OPRCCLSY.cjs');
6
- require('./chunk-FI6F5GUL.cjs');
4
+ var _chunkTXJLLW3Tcjs = require('./chunk-TXJLLW3T.cjs');
5
+ require('./chunk-BWSZDNJP.cjs');
7
6
 
8
7
 
9
8
 
@@ -12,8 +11,8 @@ require('./chunk-FI6F5GUL.cjs');
12
11
 
13
12
 
14
13
 
15
- var _chunkJ7ZCRY3Hcjs = require('./chunk-J7ZCRY3H.cjs');
16
- require('./chunk-MANGCUEL.cjs');
14
+ var _chunkCGCDCITVcjs = require('./chunk-CGCDCITV.cjs');
15
+ require('./chunk-7FOI2OFO.cjs');
17
16
  require('./chunk-DW2EQA2U.cjs');
18
17
 
19
18
 
@@ -46,7 +45,7 @@ var {
46
45
  unichain,
47
46
  katana,
48
47
  hyperEvm
49
- } = _chunkUU5JG66Vcjs.getReownDependencies.call(void 0, )[1];
48
+ } = _chunkTXJLLW3Tcjs.getReownDependencies.call(void 0, )[1];
50
49
  var APPKIT_NETWORK_BY_ID = {
51
50
  [mainnet.id]: mainnet,
52
51
  [optimism.id]: optimism,
@@ -78,7 +77,7 @@ function getAppKitNetwork(chainId) {
78
77
 
79
78
  // src/core/reown-theme.ts
80
79
  function mapTheme(theme) {
81
- const themeMode = _chunkJ7ZCRY3Hcjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
80
+ const themeMode = _chunkCGCDCITVcjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
82
81
  const themeVariables = {
83
82
  "--apkt-accent": _optionalChain([theme, 'optionalAccess', _2 => _2.ctaColor])
84
83
  };
@@ -95,7 +94,7 @@ function setAppKitTheme(appKit, theme) {
95
94
 
96
95
  // src/core/reown.tsx
97
96
  var _jsxruntime = require('react/jsx-runtime');
98
- var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] = _chunkUU5JG66Vcjs.getReownDependencies.call(void 0, );
97
+ var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] = _chunkTXJLLW3Tcjs.getReownDependencies.call(void 0, );
99
98
  var {
100
99
  createAppKit,
101
100
  useAppKit,
@@ -111,14 +110,14 @@ function buildTransports(rpcUrls, networks = EVM_NETWORKS) {
111
110
  const transports = {};
112
111
  for (const network of networks) {
113
112
  const id = Number(network.id);
114
- transports[id] = _viem.http.call(void 0, _chunkJ7ZCRY3Hcjs.rpcUrlFor.call(void 0, rpcUrls, id));
113
+ transports[id] = _viem.http.call(void 0, _chunkCGCDCITVcjs.rpcUrlFor.call(void 0, rpcUrls, id));
115
114
  }
116
115
  return transports;
117
116
  }
118
117
  function getEvmRpcFingerprint(rpcUrls, networks) {
119
118
  return networks.map((network) => {
120
119
  const id = Number(network.id);
121
- return `${id}=${_nullishCoalesce(_chunkJ7ZCRY3Hcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
120
+ return `${id}=${_nullishCoalesce(_chunkCGCDCITVcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
122
121
  }).join("|");
123
122
  }
124
123
  var cachedAdapter = null;
@@ -189,7 +188,7 @@ function ReownWalletProvider({
189
188
  backendUrl,
190
189
  children
191
190
  }) {
192
- const rpcUrls = _chunkJ7ZCRY3Hcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
191
+ const rpcUrls = _chunkCGCDCITVcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
193
192
  const [queryClient] = _react.useState.call(void 0, () => new (0, _reactquery.QueryClient)());
194
193
  const overrides = _react.useMemo.call(void 0, () => {
195
194
  if (!rpcUrls) return void 0;
@@ -201,14 +200,14 @@ function ReownWalletProvider({
201
200
  return out;
202
201
  }, [rpcUrls]);
203
202
  const [state, setState] = _react.useState.call(void 0, () => {
204
- const primed = _chunkJ7ZCRY3Hcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
203
+ const primed = _chunkCGCDCITVcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
205
204
  return { ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) };
206
205
  });
207
206
  _react.useEffect.call(void 0, () => {
208
207
  let active = true;
209
- const primed = _chunkJ7ZCRY3Hcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
208
+ const primed = _chunkCGCDCITVcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
210
209
  setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
211
- _chunkJ7ZCRY3Hcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
210
+ _chunkCGCDCITVcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
212
211
  if (active) setState({ ready: true, chains });
213
212
  });
214
213
  return () => {
@@ -217,7 +216,7 @@ function ReownWalletProvider({
217
216
  }, [backendUrl, overrides]);
218
217
  _react.useEffect.call(void 0, () => {
219
218
  setAppKitTheme(appKitReact.modal, theme);
220
- return _chunkJ7ZCRY3Hcjs.followSystemAppearance.call(void 0,
219
+ return _chunkCGCDCITVcjs.followSystemAppearance.call(void 0,
221
220
  _optionalChain([theme, 'optionalAccess', _7 => _7.mode]),
222
221
  () => setAppKitTheme(appKitReact.modal, theme)
223
222
  );
@@ -281,7 +280,7 @@ function useReownWalletSession() {
281
280
  await switchChainAsync({ chainId });
282
281
  }
283
282
  } catch (err) {
284
- if (_chunkJ7ZCRY3Hcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
283
+ if (_chunkCGCDCITVcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
285
284
  throw new Error(
286
285
  `Switch to ${chainDisplayName(chainId)} in your wallet to continue`
287
286
  );
@@ -294,7 +293,7 @@ function useReownWalletSession() {
294
293
 
295
294
  // src/DepositModalReown.tsx
296
295
 
297
- var [appKitReact2, , , , solanaAdapterReact] = _chunkUU5JG66Vcjs.getReownDependencies.call(void 0, );
296
+ var [appKitReact2, , , , solanaAdapterReact] = _chunkTXJLLW3Tcjs.getReownDependencies.call(void 0, );
298
297
  var { useAppKitProvider } = appKitReact2;
299
298
  var { useAppKitConnection } = solanaAdapterReact;
300
299
  function DepositModalWithReown(props) {
@@ -316,7 +315,7 @@ function DepositModalWithReown(props) {
316
315
  reown.disconnect();
317
316
  }, [reown.disconnect]);
318
317
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
319
- _chunkUU5JG66Vcjs.DepositModalInner,
318
+ _chunkTXJLLW3Tcjs.DepositModalInner,
320
319
  {
321
320
  ...props,
322
321
  walletSession: reownWithSolana,
@@ -0,0 +1,12 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkYN7T4MGVcjs = require('./chunk-YN7T4MGV.cjs');
5
+ require('./chunk-BWSZDNJP.cjs');
6
+ require('./chunk-CGCDCITV.cjs');
7
+ require('./chunk-7FOI2OFO.cjs');
8
+ require('./chunk-4KCSH4T3.cjs');
9
+
10
+
11
+
12
+ exports.WithdrawModal = _chunkYN7T4MGVcjs.WithdrawModal; exports.buildWithdrawAnalyticsSessionProperties = _chunkYN7T4MGVcjs.buildWithdrawAnalyticsSessionProperties;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  WithdrawModal,
3
3
  buildWithdrawAnalyticsSessionProperties
4
- } from "./chunk-EVAKCGLK.mjs";
5
- import "./chunk-ZJKENYOD.mjs";
6
- import "./chunk-DHGJHRBX.mjs";
7
- import "./chunk-PSLNTPKP.mjs";
4
+ } from "./chunk-B7MYDIEA.mjs";
5
+ import "./chunk-YTXWDXZW.mjs";
6
+ import "./chunk-277V3675.mjs";
7
+ import "./chunk-ZQLAVLHM.mjs";
8
8
  import "./chunk-VUATPOWJ.mjs";
9
9
  export {
10
10
  WithdrawModal,