@rhinestone/deposit-modal 0.1.40 → 0.1.41

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 (38) hide show
  1. package/dist/{DepositModalReown-ZZKRN6J3.cjs → DepositModalReown-GAQLILGK.cjs} +17 -8
  2. package/dist/{DepositModalReown-3HNOCOOO.mjs → DepositModalReown-WS6WNWJP.mjs} +15 -6
  3. package/dist/{WithdrawModalReown-XXCOZYVU.mjs → WithdrawModalReown-7CSCY55U.mjs} +4 -4
  4. package/dist/{WithdrawModalReown-2CWNDVJD.cjs → WithdrawModalReown-GCOVYZN2.cjs} +7 -7
  5. package/dist/{chunk-K7BHCDJQ.cjs → chunk-37CTMJMO.cjs} +181 -96
  6. package/dist/{chunk-F5S6RHUI.mjs → chunk-6PRJUXTM.mjs} +1488 -301
  7. package/dist/{chunk-CFLZYWX7.mjs → chunk-KWAFKVV6.mjs} +120 -35
  8. package/dist/{chunk-AHOFT42H.cjs → chunk-LT3QKJI2.cjs} +458 -115
  9. package/dist/{chunk-SJEIKMVO.mjs → chunk-MBOH6XW3.mjs} +26 -13
  10. package/dist/{chunk-FLXTBFMZ.cjs → chunk-NELAYNA3.cjs} +11 -0
  11. package/dist/{chunk-3O37UPSC.cjs → chunk-PTSYSG4U.cjs} +1552 -365
  12. package/dist/{chunk-V7I5T4SW.cjs → chunk-PWPW7GFB.cjs} +25 -12
  13. package/dist/{chunk-IC2M2DZ7.mjs → chunk-QIK6ONMQ.mjs} +392 -49
  14. package/dist/{chunk-I7RYTI4G.mjs → chunk-ZJQZEIHA.mjs} +11 -0
  15. package/dist/constants.cjs +2 -2
  16. package/dist/constants.d.cts +6 -6
  17. package/dist/constants.d.ts +6 -6
  18. package/dist/constants.mjs +1 -1
  19. package/dist/deposit.cjs +4 -4
  20. package/dist/deposit.d.cts +2 -2
  21. package/dist/deposit.d.ts +2 -2
  22. package/dist/deposit.mjs +3 -3
  23. package/dist/index.cjs +5 -5
  24. package/dist/index.d.cts +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.mjs +4 -4
  27. package/dist/reown.cjs +5 -5
  28. package/dist/reown.d.cts +1 -1
  29. package/dist/reown.d.ts +1 -1
  30. package/dist/reown.mjs +4 -4
  31. package/dist/styles.css +64 -0
  32. package/dist/{types-CIaQPR6F.d.cts → types-CybmMKTE.d.cts} +9 -7
  33. package/dist/{types-Bp2n2RQ3.d.ts → types-e8CHSm2u.d.ts} +9 -7
  34. package/dist/withdraw.cjs +4 -4
  35. package/dist/withdraw.d.cts +2 -2
  36. package/dist/withdraw.d.ts +2 -2
  37. package/dist/withdraw.mjs +3 -3
  38. package/package.json +18 -1
@@ -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 _chunkPTSYSG4Ucjs = require('./chunk-PTSYSG4U.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
+ _chunkPTSYSG4Ucjs.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,18 +1,27 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-F5S6RHUI.mjs";
3
+ } from "./chunk-6PRJUXTM.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,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