@rhinestone/deposit-modal 0.3.0-alpha.6 → 0.3.0-alpha.8

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-SBSP5ZW2.cjs → DepositModalReown-LWGABUOF.cjs} +12 -9
  2. package/dist/{DepositModalReown-3N7YYGB4.mjs → DepositModalReown-TYHATVOM.mjs} +9 -6
  3. package/dist/{WithdrawModalReown-4B6IMTBB.cjs → WithdrawModalReown-FCWED55P.cjs} +7 -7
  4. package/dist/{WithdrawModalReown-BB3MZAIO.mjs → WithdrawModalReown-H7HA3JP3.mjs} +4 -4
  5. package/dist/{chunk-CTYKQ4B4.mjs → chunk-5ZS4ZJPW.mjs} +272 -145
  6. package/dist/chunk-7JIDIX27.cjs +554 -0
  7. package/dist/{chunk-QI6Q7V6O.mjs → chunk-DW276H63.mjs} +26 -34
  8. package/dist/{chunk-5YXAQB6A.mjs → chunk-E46WOBZQ.mjs} +56 -16
  9. package/dist/{chunk-UVIIWUWP.cjs → chunk-GBFOGYMH.cjs} +1193 -862
  10. package/dist/{chunk-EJH36TH2.mjs → chunk-H7QMSMM5.mjs} +1247 -916
  11. package/dist/{chunk-YQFH2WSW.cjs → chunk-PKD7W5JG.cjs} +54 -14
  12. package/dist/chunk-SZIYS42B.mjs +554 -0
  13. package/dist/{chunk-BB6UVRAV.cjs → chunk-U3OLJZBT.cjs} +110 -118
  14. package/dist/{chunk-DX2D2TRZ.cjs → chunk-UELVNPGE.cjs} +312 -185
  15. package/dist/constants-DqVn968d.d.cts +52 -0
  16. package/dist/constants-DqVn968d.d.ts +52 -0
  17. package/dist/constants.cjs +8 -2
  18. package/dist/constants.d.cts +17 -48
  19. package/dist/constants.d.ts +17 -48
  20. package/dist/constants.mjs +7 -1
  21. package/dist/deposit.cjs +4 -4
  22. package/dist/deposit.d.cts +2 -2
  23. package/dist/deposit.d.ts +2 -2
  24. package/dist/deposit.mjs +3 -3
  25. package/dist/index.cjs +6 -6
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.mjs +5 -5
  29. package/dist/styles.css +180 -34
  30. package/dist/{types-xSHZSlrT.d.cts → types-D8Q4TMk7.d.cts} +17 -5
  31. package/dist/{types-xSHZSlrT.d.ts → types-D8Q4TMk7.d.ts} +17 -5
  32. package/dist/withdraw.cjs +4 -4
  33. package/dist/withdraw.d.cts +2 -2
  34. package/dist/withdraw.d.ts +2 -2
  35. package/dist/withdraw.mjs +3 -3
  36. package/package.json +5 -5
  37. package/dist/chunk-IVTXEYB2.cjs +0 -507
  38. package/dist/chunk-VA3ANS7D.mjs +0 -507
@@ -1,29 +1,32 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkUVIIWUWPcjs = require('./chunk-UVIIWUWP.cjs');
3
+ var _chunkGBFOGYMHcjs = require('./chunk-GBFOGYMH.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkYQFH2WSWcjs = require('./chunk-YQFH2WSW.cjs');
8
- require('./chunk-DX2D2TRZ.cjs');
9
- require('./chunk-IVTXEYB2.cjs');
7
+ var _chunkPKD7W5JGcjs = require('./chunk-PKD7W5JG.cjs');
8
+ require('./chunk-UELVNPGE.cjs');
9
+ require('./chunk-7JIDIX27.cjs');
10
10
 
11
11
  // src/DepositModalReown.tsx
12
12
  var _react = require('react');
13
13
  var _react3 = require('@reown/appkit/react');
14
+ var _react5 = require('@reown/appkit-adapter-solana/react');
14
15
  var _jsxruntime = require('react/jsx-runtime');
15
16
  function DepositModalWithReown(props) {
16
- const reown = _chunkYQFH2WSWcjs.useReownWallet.call(void 0, );
17
+ const reown = _chunkPKD7W5JGcjs.useReownWallet.call(void 0, );
17
18
  const enableSolana = _nullishCoalesce(props.enableSolana, () => ( true));
18
19
  const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0,
19
20
  enableSolana ? "solana" : "eip155"
20
21
  );
22
+ const { connection: solanaConnection } = _react5.useAppKitConnection.call(void 0, );
21
23
  const reownWithSolana = _react.useMemo.call(void 0,
22
24
  () => ({
23
25
  ...reown,
24
- solanaProvider: enableSolana && reown.isSolana ? solanaWalletProvider : void 0
26
+ solanaProvider: enableSolana && reown.isSolana ? solanaWalletProvider : void 0,
27
+ solanaConnection: enableSolana && reown.isSolana ? solanaConnection : void 0
25
28
  }),
26
- [enableSolana, reown, solanaWalletProvider]
29
+ [enableSolana, reown, solanaWalletProvider, solanaConnection]
27
30
  );
28
31
  const handleConnect = _react.useCallback.call(void 0, () => {
29
32
  reown.openConnect();
@@ -32,7 +35,7 @@ function DepositModalWithReown(props) {
32
35
  reown.disconnect();
33
36
  }, [reown.disconnect]);
34
37
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
35
- _chunkUVIIWUWPcjs.DepositModalInner,
38
+ _chunkGBFOGYMHcjs.DepositModalInner,
36
39
  {
37
40
  ...props,
38
41
  reownWallet: reownWithSolana,
@@ -43,7 +46,7 @@ function DepositModalWithReown(props) {
43
46
  }
44
47
  function DepositModalReown(props) {
45
48
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
46
- _chunkYQFH2WSWcjs.ReownWalletProvider,
49
+ _chunkPKD7W5JGcjs.ReownWalletProvider,
47
50
  {
48
51
  projectId: props.reownAppId,
49
52
  theme: props.theme,
@@ -1,16 +1,17 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-EJH36TH2.mjs";
3
+ } from "./chunk-H7QMSMM5.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
- } from "./chunk-5YXAQB6A.mjs";
8
- import "./chunk-CTYKQ4B4.mjs";
9
- import "./chunk-VA3ANS7D.mjs";
7
+ } from "./chunk-E46WOBZQ.mjs";
8
+ import "./chunk-5ZS4ZJPW.mjs";
9
+ import "./chunk-SZIYS42B.mjs";
10
10
 
11
11
  // src/DepositModalReown.tsx
12
12
  import { useCallback, useMemo } from "react";
13
13
  import { useAppKitProvider } from "@reown/appkit/react";
14
+ import { useAppKitConnection } from "@reown/appkit-adapter-solana/react";
14
15
  import { jsx } from "react/jsx-runtime";
15
16
  function DepositModalWithReown(props) {
16
17
  const reown = useReownWallet();
@@ -18,12 +19,14 @@ function DepositModalWithReown(props) {
18
19
  const { walletProvider: solanaWalletProvider } = useAppKitProvider(
19
20
  enableSolana ? "solana" : "eip155"
20
21
  );
22
+ const { connection: solanaConnection } = useAppKitConnection();
21
23
  const reownWithSolana = useMemo(
22
24
  () => ({
23
25
  ...reown,
24
- solanaProvider: enableSolana && reown.isSolana ? solanaWalletProvider : void 0
26
+ solanaProvider: enableSolana && reown.isSolana ? solanaWalletProvider : void 0,
27
+ solanaConnection: enableSolana && reown.isSolana ? solanaConnection : void 0
25
28
  }),
26
- [enableSolana, reown, solanaWalletProvider]
29
+ [enableSolana, reown, solanaWalletProvider, solanaConnection]
27
30
  );
28
31
  const handleConnect = useCallback(() => {
29
32
  reown.openConnect();
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBB6UVRAVcjs = require('./chunk-BB6UVRAV.cjs');
3
+ var _chunkU3OLJZBTcjs = require('./chunk-U3OLJZBT.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkYQFH2WSWcjs = require('./chunk-YQFH2WSW.cjs');
8
- require('./chunk-DX2D2TRZ.cjs');
9
- require('./chunk-IVTXEYB2.cjs');
7
+ var _chunkPKD7W5JGcjs = require('./chunk-PKD7W5JG.cjs');
8
+ require('./chunk-UELVNPGE.cjs');
9
+ require('./chunk-7JIDIX27.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 = _chunkYQFH2WSWcjs.useReownWallet.call(void 0, );
15
+ const reown = _chunkPKD7W5JGcjs.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
- _chunkBB6UVRAVcjs.WithdrawModalInner,
23
+ _chunkU3OLJZBTcjs.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, _chunkYQFH2WSWcjs.ReownWalletProvider, { projectId: props.reownAppId, theme: props.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawModalWithReown, { ...props }) });
33
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPKD7W5JGcjs.ReownWalletProvider, { projectId: props.reownAppId, theme: props.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawModalWithReown, { ...props }) });
34
34
  }
35
35
 
36
36
 
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  WithdrawModalInner
3
- } from "./chunk-QI6Q7V6O.mjs";
3
+ } from "./chunk-DW276H63.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
- } from "./chunk-5YXAQB6A.mjs";
8
- import "./chunk-CTYKQ4B4.mjs";
9
- import "./chunk-VA3ANS7D.mjs";
7
+ } from "./chunk-E46WOBZQ.mjs";
8
+ import "./chunk-5ZS4ZJPW.mjs";
9
+ import "./chunk-SZIYS42B.mjs";
10
10
 
11
11
  // src/WithdrawModalReown.tsx
12
12
  import { useCallback } from "react";