@rhinestone/deposit-modal 0.3.0-alpha.0 → 0.3.0-alpha.10

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 (40) hide show
  1. package/dist/{DepositModalReown-GXY65HZP.mjs → DepositModalReown-2S76TEXU.mjs} +9 -6
  2. package/dist/{DepositModalReown-HVIEA6YA.cjs → DepositModalReown-4NV6JM2U.cjs} +12 -9
  3. package/dist/{QRCode-SMMYPUQC.cjs → QRCode-KG47KTGX.cjs} +1 -1
  4. package/dist/{QRCode-YMQTKSSK.mjs → QRCode-YJ3EGWQS.mjs} +1 -1
  5. package/dist/{WithdrawModalReown-O6V6KRH6.mjs → WithdrawModalReown-QEQPCSWT.mjs} +4 -4
  6. package/dist/{WithdrawModalReown-4M3PBY2T.cjs → WithdrawModalReown-Z5JVENP6.cjs} +7 -7
  7. package/dist/{chunk-Y3RA3YGA.cjs → chunk-2TWQGPPB.cjs} +1323 -590
  8. package/dist/chunk-7JIDIX27.cjs +554 -0
  9. package/dist/{chunk-FKPTIHU7.mjs → chunk-7MZNQ4C2.mjs} +76 -351
  10. package/dist/{chunk-YQFH2WSW.cjs → chunk-FGVSNARE.cjs} +55 -25
  11. package/dist/{chunk-7SYZG47X.cjs → chunk-HUPEN2T5.cjs} +2820 -1509
  12. package/dist/{chunk-U5QIFNG4.mjs → chunk-N5NOJ4ZV.mjs} +2746 -1435
  13. package/dist/{chunk-5YXAQB6A.mjs → chunk-QXIJLRKC.mjs} +56 -26
  14. package/dist/chunk-SZIYS42B.mjs +554 -0
  15. package/dist/{chunk-UIHAYD7J.mjs → chunk-WVE3JN3C.mjs} +1308 -575
  16. package/dist/{chunk-Z2SIC2TH.cjs → chunk-YI63OMXN.cjs} +157 -432
  17. package/dist/constants-DqVn968d.d.cts +52 -0
  18. package/dist/constants-DqVn968d.d.ts +52 -0
  19. package/dist/constants.cjs +8 -2
  20. package/dist/constants.d.cts +17 -48
  21. package/dist/constants.d.ts +17 -48
  22. package/dist/constants.mjs +7 -1
  23. package/dist/deposit.cjs +4 -4
  24. package/dist/deposit.d.cts +2 -2
  25. package/dist/deposit.d.ts +2 -2
  26. package/dist/deposit.mjs +3 -3
  27. package/dist/index.cjs +16 -7
  28. package/dist/index.d.cts +2 -2
  29. package/dist/index.d.ts +2 -2
  30. package/dist/index.mjs +16 -7
  31. package/dist/styles.css +656 -207
  32. package/dist/{types-DRou84ZM.d.cts → types-D6wrO4Ow.d.cts} +33 -8
  33. package/dist/{types-DRou84ZM.d.ts → types-D6wrO4Ow.d.ts} +33 -8
  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 +5 -5
  39. package/dist/chunk-EEHUOFIW.mjs +0 -524
  40. package/dist/chunk-XCAF6B3D.cjs +0 -524
@@ -1,16 +1,17 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-U5QIFNG4.mjs";
3
+ } from "./chunk-N5NOJ4ZV.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
- } from "./chunk-5YXAQB6A.mjs";
8
- import "./chunk-UIHAYD7J.mjs";
9
- import "./chunk-EEHUOFIW.mjs";
7
+ } from "./chunk-QXIJLRKC.mjs";
8
+ import "./chunk-WVE3JN3C.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,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 _chunk7SYZG47Xcjs = require('./chunk-7SYZG47X.cjs');
3
+ var _chunkHUPEN2T5cjs = require('./chunk-HUPEN2T5.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkYQFH2WSWcjs = require('./chunk-YQFH2WSW.cjs');
8
- require('./chunk-Y3RA3YGA.cjs');
9
- require('./chunk-XCAF6B3D.cjs');
7
+ var _chunkFGVSNAREcjs = require('./chunk-FGVSNARE.cjs');
8
+ require('./chunk-2TWQGPPB.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 = _chunkFGVSNAREcjs.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
- _chunk7SYZG47Xcjs.DepositModalInner,
38
+ _chunkHUPEN2T5cjs.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
+ _chunkFGVSNAREcjs.ReownWalletProvider,
47
50
  {
48
51
  projectId: props.reownAppId,
49
52
  theme: props.theme,
@@ -38,7 +38,7 @@ function QRCode({ value, size = 200, iconSrc, className }) {
38
38
  value,
39
39
  size,
40
40
  qrStyle: "dots",
41
- eyeRadius: [10, 10, 10],
41
+ eyeRadius: 50,
42
42
  ecLevel: "H",
43
43
  logoImage: iconSrc,
44
44
  logoWidth: size * 0.22,
@@ -38,7 +38,7 @@ function QRCode({ value, size = 200, iconSrc, className }) {
38
38
  value,
39
39
  size,
40
40
  qrStyle: "dots",
41
- eyeRadius: [10, 10, 10],
41
+ eyeRadius: 50,
42
42
  ecLevel: "H",
43
43
  logoImage: iconSrc,
44
44
  logoWidth: size * 0.22,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  WithdrawModalInner
3
- } from "./chunk-FKPTIHU7.mjs";
3
+ } from "./chunk-7MZNQ4C2.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
- } from "./chunk-5YXAQB6A.mjs";
8
- import "./chunk-UIHAYD7J.mjs";
9
- import "./chunk-EEHUOFIW.mjs";
7
+ } from "./chunk-QXIJLRKC.mjs";
8
+ import "./chunk-WVE3JN3C.mjs";
9
+ import "./chunk-SZIYS42B.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 _chunkZ2SIC2THcjs = require('./chunk-Z2SIC2TH.cjs');
3
+ var _chunkYI63OMXNcjs = require('./chunk-YI63OMXN.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkYQFH2WSWcjs = require('./chunk-YQFH2WSW.cjs');
8
- require('./chunk-Y3RA3YGA.cjs');
9
- require('./chunk-XCAF6B3D.cjs');
7
+ var _chunkFGVSNAREcjs = require('./chunk-FGVSNARE.cjs');
8
+ require('./chunk-2TWQGPPB.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 = _chunkFGVSNAREcjs.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
- _chunkZ2SIC2THcjs.WithdrawModalInner,
23
+ _chunkYI63OMXNcjs.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, _chunkFGVSNAREcjs.ReownWalletProvider, { projectId: props.reownAppId, theme: props.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawModalWithReown, { ...props }) });
34
34
  }
35
35
 
36
36