@rhinestone/deposit-modal 0.1.40 → 0.1.42

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 (39) hide show
  1. package/README.md +1 -0
  2. package/dist/{DepositModalReown-3HNOCOOO.mjs → DepositModalReown-3GPEVG26.mjs} +15 -6
  3. package/dist/{DepositModalReown-ZZKRN6J3.cjs → DepositModalReown-EEXNSXI4.cjs} +17 -8
  4. package/dist/{WithdrawModalReown-XXCOZYVU.mjs → WithdrawModalReown-7CSCY55U.mjs} +4 -4
  5. package/dist/{WithdrawModalReown-2CWNDVJD.cjs → WithdrawModalReown-GCOVYZN2.cjs} +7 -7
  6. package/dist/{chunk-K7BHCDJQ.cjs → chunk-37CTMJMO.cjs} +181 -96
  7. package/dist/{chunk-3O37UPSC.cjs → chunk-CDHUGROM.cjs} +1630 -362
  8. package/dist/{chunk-CFLZYWX7.mjs → chunk-KWAFKVV6.mjs} +120 -35
  9. package/dist/{chunk-AHOFT42H.cjs → chunk-LT3QKJI2.cjs} +458 -115
  10. package/dist/{chunk-SJEIKMVO.mjs → chunk-MBOH6XW3.mjs} +26 -13
  11. package/dist/{chunk-FLXTBFMZ.cjs → chunk-NELAYNA3.cjs} +11 -0
  12. package/dist/{chunk-F5S6RHUI.mjs → chunk-NLL42V7D.mjs} +1568 -300
  13. package/dist/{chunk-V7I5T4SW.cjs → chunk-PWPW7GFB.cjs} +25 -12
  14. package/dist/{chunk-IC2M2DZ7.mjs → chunk-QIK6ONMQ.mjs} +392 -49
  15. package/dist/{chunk-I7RYTI4G.mjs → chunk-ZJQZEIHA.mjs} +11 -0
  16. package/dist/constants.cjs +2 -2
  17. package/dist/constants.d.cts +6 -6
  18. package/dist/constants.d.ts +6 -6
  19. package/dist/constants.mjs +1 -1
  20. package/dist/deposit.cjs +4 -4
  21. package/dist/deposit.d.cts +2 -2
  22. package/dist/deposit.d.ts +2 -2
  23. package/dist/deposit.mjs +3 -3
  24. package/dist/index.cjs +5 -5
  25. package/dist/index.d.cts +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.mjs +4 -4
  28. package/dist/reown.cjs +5 -5
  29. package/dist/reown.d.cts +1 -1
  30. package/dist/reown.d.ts +1 -1
  31. package/dist/reown.mjs +4 -4
  32. package/dist/styles.css +66 -0
  33. package/dist/{types-CIaQPR6F.d.cts → types-CyUiKQ4H.d.cts} +10 -7
  34. package/dist/{types-Bp2n2RQ3.d.ts → types-DQG7NEBI.d.ts} +10 -7
  35. package/dist/withdraw.cjs +4 -4
  36. package/dist/withdraw.d.cts +2 -2
  37. package/dist/withdraw.d.ts +2 -2
  38. package/dist/withdraw.mjs +3 -3
  39. package/package.json +25 -5
package/README.md CHANGED
@@ -88,6 +88,7 @@ Notes:
88
88
  | `defaultAmount` | `string` | No | Pre-filled amount |
89
89
  | `recipient` | `Address` | No | Custom recipient address |
90
90
  | `backendUrl` | `string` | No | Backend URL |
91
+ | `solanaRpcUrl` | `string` | No | Optional Solana RPC URL override (default: `https://api.mainnet.solana.com`) |
91
92
  | `rhinestoneApiKey` | `string` | No | Optional SDK api key forwarded to `RhinestoneSDK` during smart-account setup |
92
93
  | `signerAddress` | `Address` | No | Session signer address |
93
94
  | `waitForFinalTx` | `boolean` | No | Wait for destination tx (default: true) |
@@ -1,18 +1,27 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-F5S6RHUI.mjs";
3
+ } from "./chunk-NLL42V7D.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
- } from "./chunk-SJEIKMVO.mjs";
8
- import "./chunk-IC2M2DZ7.mjs";
9
- import "./chunk-I7RYTI4G.mjs";
7
+ } from "./chunk-MBOH6XW3.mjs";
8
+ import "./chunk-QIK6ONMQ.mjs";
9
+ import "./chunk-ZJQZEIHA.mjs";
10
10
 
11
11
  // src/DepositModalReown.tsx
12
- import { useCallback } from "react";
12
+ import { useCallback, useMemo } from "react";
13
+ import { useAppKitProvider } from "@reown/appkit/react";
13
14
  import { jsx } from "react/jsx-runtime";
14
15
  function DepositModalWithReown(props) {
15
16
  const reown = useReownWallet();
17
+ const { walletProvider: solanaWalletProvider } = useAppKitProvider("solana");
18
+ const reownWithSolana = useMemo(
19
+ () => ({
20
+ ...reown,
21
+ solanaProvider: reown.isSolana ? solanaWalletProvider : void 0
22
+ }),
23
+ [reown, solanaWalletProvider]
24
+ );
16
25
  const handleConnect = useCallback(() => {
17
26
  reown.openConnect();
18
27
  }, [reown.openConnect]);
@@ -23,7 +32,7 @@ function DepositModalWithReown(props) {
23
32
  DepositModalInner,
24
33
  {
25
34
  ...props,
26
- reownWallet: reown,
35
+ reownWallet: reownWithSolana,
27
36
  onConnect: handleConnect,
28
37
  onDisconnect: handleDisconnect
29
38
  }
@@ -1,18 +1,27 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3O37UPSCcjs = require('./chunk-3O37UPSC.cjs');
3
+ var _chunkCDHUGROMcjs = require('./chunk-CDHUGROM.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkV7I5T4SWcjs = require('./chunk-V7I5T4SW.cjs');
8
- require('./chunk-AHOFT42H.cjs');
9
- require('./chunk-FLXTBFMZ.cjs');
7
+ var _chunkPWPW7GFBcjs = require('./chunk-PWPW7GFB.cjs');
8
+ require('./chunk-LT3QKJI2.cjs');
9
+ require('./chunk-NELAYNA3.cjs');
10
10
 
11
11
  // src/DepositModalReown.tsx
12
12
  var _react = require('react');
13
+ var _react3 = require('@reown/appkit/react');
13
14
  var _jsxruntime = require('react/jsx-runtime');
14
15
  function DepositModalWithReown(props) {
15
- const reown = _chunkV7I5T4SWcjs.useReownWallet.call(void 0, );
16
+ const reown = _chunkPWPW7GFBcjs.useReownWallet.call(void 0, );
17
+ const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0, "solana");
18
+ const reownWithSolana = _react.useMemo.call(void 0,
19
+ () => ({
20
+ ...reown,
21
+ solanaProvider: reown.isSolana ? solanaWalletProvider : void 0
22
+ }),
23
+ [reown, solanaWalletProvider]
24
+ );
16
25
  const handleConnect = _react.useCallback.call(void 0, () => {
17
26
  reown.openConnect();
18
27
  }, [reown.openConnect]);
@@ -20,17 +29,17 @@ function DepositModalWithReown(props) {
20
29
  reown.disconnect();
21
30
  }, [reown.disconnect]);
22
31
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
23
- _chunk3O37UPSCcjs.DepositModalInner,
32
+ _chunkCDHUGROMcjs.DepositModalInner,
24
33
  {
25
34
  ...props,
26
- reownWallet: reown,
35
+ reownWallet: reownWithSolana,
27
36
  onConnect: handleConnect,
28
37
  onDisconnect: handleDisconnect
29
38
  }
30
39
  );
31
40
  }
32
41
  function DepositModalReown(props) {
33
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV7I5T4SWcjs.ReownWalletProvider, { projectId: props.reownAppId, theme: props.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositModalWithReown, { ...props }) });
42
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPWPW7GFBcjs.ReownWalletProvider, { projectId: props.reownAppId, theme: props.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositModalWithReown, { ...props }) });
34
43
  }
35
44
 
36
45
 
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  WithdrawModalInner
3
- } from "./chunk-CFLZYWX7.mjs";
3
+ } from "./chunk-KWAFKVV6.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
- } from "./chunk-SJEIKMVO.mjs";
8
- import "./chunk-IC2M2DZ7.mjs";
9
- import "./chunk-I7RYTI4G.mjs";
7
+ } from "./chunk-MBOH6XW3.mjs";
8
+ import "./chunk-QIK6ONMQ.mjs";
9
+ import "./chunk-ZJQZEIHA.mjs";
10
10
 
11
11
  // src/WithdrawModalReown.tsx
12
12
  import { useCallback } from "react";
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkK7BHCDJQcjs = require('./chunk-K7BHCDJQ.cjs');
3
+ var _chunk37CTMJMOcjs = require('./chunk-37CTMJMO.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkV7I5T4SWcjs = require('./chunk-V7I5T4SW.cjs');
8
- require('./chunk-AHOFT42H.cjs');
9
- require('./chunk-FLXTBFMZ.cjs');
7
+ var _chunkPWPW7GFBcjs = require('./chunk-PWPW7GFB.cjs');
8
+ require('./chunk-LT3QKJI2.cjs');
9
+ require('./chunk-NELAYNA3.cjs');
10
10
 
11
11
  // src/WithdrawModalReown.tsx
12
12
  var _react = require('react');
13
13
  var _jsxruntime = require('react/jsx-runtime');
14
14
  function WithdrawModalWithReown(props) {
15
- const reown = _chunkV7I5T4SWcjs.useReownWallet.call(void 0, );
15
+ const reown = _chunkPWPW7GFBcjs.useReownWallet.call(void 0, );
16
16
  const handleConnect = _react.useCallback.call(void 0, () => {
17
17
  reown.openConnect();
18
18
  }, [reown.openConnect]);
@@ -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
- _chunkK7BHCDJQcjs.WithdrawModalInner,
23
+ _chunk37CTMJMOcjs.WithdrawModalInner,
24
24
  {
25
25
  ...props,
26
26
  reownWallet: reown,
@@ -30,7 +30,7 @@ function WithdrawModalWithReown(props) {
30
30
  );
31
31
  }
32
32
  function WithdrawModalReown(props) {
33
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV7I5T4SWcjs.ReownWalletProvider, { projectId: props.reownAppId, theme: props.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawModalWithReown, { ...props }) });
33
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPWPW7GFBcjs.ReownWalletProvider, { projectId: props.reownAppId, theme: props.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawModalWithReown, { ...props }) });
34
34
  }
35
35
 
36
36