@rhinestone/deposit-modal 0.3.1 → 0.4.0

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-MECHBE6P.cjs → DepositModalReown-KFTMS2WX.cjs} +9 -9
  2. package/dist/{DepositModalReown-G7UX4IBZ.mjs → DepositModalReown-PC7EX5VK.mjs} +6 -6
  3. package/dist/{WithdrawModalReown-CUJAFUQM.mjs → WithdrawModalReown-BE23LUMT.mjs} +5 -5
  4. package/dist/{WithdrawModalReown-WJ6VBZKK.cjs → WithdrawModalReown-Z2YF2FSJ.cjs} +8 -8
  5. package/dist/{chunk-ULEAK63T.cjs → chunk-3MXWIYAT.cjs} +16 -6
  6. package/dist/{chunk-QYSCCX4K.mjs → chunk-3PVDRSJ7.mjs} +539 -412
  7. package/dist/{chunk-SPUZLWQS.cjs → chunk-7MP2UWIQ.cjs} +519 -392
  8. package/dist/{chunk-MILJQWPT.cjs → chunk-ABVRVW3P.cjs} +133 -8
  9. package/dist/{chunk-LEL6GMEQ.cjs → chunk-AE5LHTPM.cjs} +121 -101
  10. package/dist/{chunk-TQ2AYMWS.mjs → chunk-F7P4MV72.mjs} +1 -1
  11. package/dist/{chunk-BAEB5AFZ.mjs → chunk-FJWLC4AM.mjs} +1 -1
  12. package/dist/{chunk-3C35DVPE.mjs → chunk-GKC22JC4.mjs} +901 -428
  13. package/dist/{chunk-R5CPOBCF.cjs → chunk-NRNJAQUA.cjs} +4 -4
  14. package/dist/{chunk-MQIJZNTP.cjs → chunk-OQVLEVNR.cjs} +760 -287
  15. package/dist/{chunk-AJHFNHG3.cjs → chunk-UEKPBRBY.cjs} +3 -3
  16. package/dist/{chunk-R5WDHHVM.mjs → chunk-UFKFSGT3.mjs} +14 -4
  17. package/dist/{chunk-DZQD3DAV.mjs → chunk-WCIGOV34.mjs} +32 -12
  18. package/dist/{chunk-6YRDD462.mjs → chunk-WJX3TJFK.mjs} +135 -10
  19. package/dist/constants.cjs +2 -2
  20. package/dist/constants.mjs +1 -1
  21. package/dist/deposit.cjs +6 -6
  22. package/dist/deposit.d.cts +2 -2
  23. package/dist/deposit.d.ts +2 -2
  24. package/dist/deposit.mjs +5 -5
  25. package/dist/index.cjs +7 -7
  26. package/dist/index.d.cts +1 -1
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.mjs +6 -6
  29. package/dist/polymarket.cjs +6 -6
  30. package/dist/polymarket.mjs +3 -3
  31. package/dist/styles.css +218 -9
  32. package/dist/{types-RzfAD14B.d.ts → types-CFRuisqK.d.cts} +1 -1
  33. package/dist/{types-RzfAD14B.d.cts → types-CFRuisqK.d.ts} +1 -1
  34. package/dist/withdraw.cjs +5 -5
  35. package/dist/withdraw.d.cts +2 -2
  36. package/dist/withdraw.d.ts +2 -2
  37. package/dist/withdraw.mjs +4 -4
  38. package/package.json +1 -1
@@ -1,14 +1,14 @@
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 _chunkSPUZLWQScjs = require('./chunk-SPUZLWQS.cjs');
4
- require('./chunk-R5CPOBCF.cjs');
3
+ var _chunk7MP2UWIQcjs = require('./chunk-7MP2UWIQ.cjs');
4
+ require('./chunk-NRNJAQUA.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkULEAK63Tcjs = require('./chunk-ULEAK63T.cjs');
9
- require('./chunk-MQIJZNTP.cjs');
10
- require('./chunk-AJHFNHG3.cjs');
11
- require('./chunk-MILJQWPT.cjs');
8
+ var _chunk3MXWIYATcjs = require('./chunk-3MXWIYAT.cjs');
9
+ require('./chunk-OQVLEVNR.cjs');
10
+ require('./chunk-UEKPBRBY.cjs');
11
+ require('./chunk-ABVRVW3P.cjs');
12
12
 
13
13
  // src/DepositModalReown.tsx
14
14
  var _react = require('react');
@@ -16,7 +16,7 @@ var _react3 = require('@reown/appkit/react');
16
16
  var _react5 = require('@reown/appkit-adapter-solana/react');
17
17
  var _jsxruntime = require('react/jsx-runtime');
18
18
  function DepositModalWithReown(props) {
19
- const reown = _chunkULEAK63Tcjs.useReownWallet.call(void 0, );
19
+ const reown = _chunk3MXWIYATcjs.useReownWallet.call(void 0, );
20
20
  const enableSolana = _nullishCoalesce(props.enableSolana, () => ( true));
21
21
  const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0,
22
22
  enableSolana ? "solana" : "eip155"
@@ -37,7 +37,7 @@ function DepositModalWithReown(props) {
37
37
  reown.disconnect();
38
38
  }, [reown.disconnect]);
39
39
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
40
- _chunkSPUZLWQScjs.DepositModalInner,
40
+ _chunk7MP2UWIQcjs.DepositModalInner,
41
41
  {
42
42
  ...props,
43
43
  reownWallet: reownWithSolana,
@@ -48,7 +48,7 @@ function DepositModalWithReown(props) {
48
48
  }
49
49
  function DepositModalReown(props) {
50
50
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
51
- _chunkULEAK63Tcjs.ReownWalletProvider,
51
+ _chunk3MXWIYATcjs.ReownWalletProvider,
52
52
  {
53
53
  projectId: props.reownAppId,
54
54
  theme: props.theme,
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-QYSCCX4K.mjs";
4
- import "./chunk-BAEB5AFZ.mjs";
3
+ } from "./chunk-3PVDRSJ7.mjs";
4
+ import "./chunk-FJWLC4AM.mjs";
5
5
  import {
6
6
  ReownWalletProvider,
7
7
  useReownWallet
8
- } from "./chunk-R5WDHHVM.mjs";
9
- import "./chunk-3C35DVPE.mjs";
10
- import "./chunk-TQ2AYMWS.mjs";
11
- import "./chunk-6YRDD462.mjs";
8
+ } from "./chunk-UFKFSGT3.mjs";
9
+ import "./chunk-GKC22JC4.mjs";
10
+ import "./chunk-F7P4MV72.mjs";
11
+ import "./chunk-WJX3TJFK.mjs";
12
12
 
13
13
  // src/DepositModalReown.tsx
14
14
  import { useCallback, useMemo } from "react";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  WithdrawModalInner
3
- } from "./chunk-DZQD3DAV.mjs";
3
+ } from "./chunk-WCIGOV34.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
- } from "./chunk-R5WDHHVM.mjs";
8
- import "./chunk-3C35DVPE.mjs";
9
- import "./chunk-TQ2AYMWS.mjs";
10
- import "./chunk-6YRDD462.mjs";
7
+ } from "./chunk-UFKFSGT3.mjs";
8
+ import "./chunk-GKC22JC4.mjs";
9
+ import "./chunk-F7P4MV72.mjs";
10
+ import "./chunk-WJX3TJFK.mjs";
11
11
 
12
12
  // src/WithdrawModalReown.tsx
13
13
  import { useCallback } from "react";
@@ -1,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkLEL6GMEQcjs = require('./chunk-LEL6GMEQ.cjs');
3
+ var _chunkAE5LHTPMcjs = require('./chunk-AE5LHTPM.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkULEAK63Tcjs = require('./chunk-ULEAK63T.cjs');
8
- require('./chunk-MQIJZNTP.cjs');
9
- require('./chunk-AJHFNHG3.cjs');
10
- require('./chunk-MILJQWPT.cjs');
7
+ var _chunk3MXWIYATcjs = require('./chunk-3MXWIYAT.cjs');
8
+ require('./chunk-OQVLEVNR.cjs');
9
+ require('./chunk-UEKPBRBY.cjs');
10
+ require('./chunk-ABVRVW3P.cjs');
11
11
 
12
12
  // src/WithdrawModalReown.tsx
13
13
  var _react = require('react');
14
14
  var _jsxruntime = require('react/jsx-runtime');
15
15
  function WithdrawModalWithReown(props) {
16
- const reown = _chunkULEAK63Tcjs.useReownWallet.call(void 0, );
16
+ const reown = _chunk3MXWIYATcjs.useReownWallet.call(void 0, );
17
17
  const handleConnect = _react.useCallback.call(void 0, () => {
18
18
  reown.openConnect();
19
19
  }, [reown.openConnect]);
@@ -21,7 +21,7 @@ function WithdrawModalWithReown(props) {
21
21
  reown.disconnect();
22
22
  }, [reown.disconnect]);
23
23
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
24
- _chunkLEL6GMEQcjs.WithdrawModalInner,
24
+ _chunkAE5LHTPMcjs.WithdrawModalInner,
25
25
  {
26
26
  ...props,
27
27
  reownWallet: reown,
@@ -31,7 +31,7 @@ function WithdrawModalWithReown(props) {
31
31
  );
32
32
  }
33
33
  function WithdrawModalReown(props) {
34
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkULEAK63Tcjs.ReownWalletProvider, { projectId: props.reownAppId, theme: props.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawModalWithReown, { ...props }) });
34
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3MXWIYATcjs.ReownWalletProvider, { projectId: props.reownAppId, theme: props.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawModalWithReown, { ...props }) });
35
35
  }
36
36
 
37
37
 
@@ -1,10 +1,10 @@
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
- var _chunkMQIJZNTPcjs = require('./chunk-MQIJZNTP.cjs');
3
+ var _chunkOQVLEVNRcjs = require('./chunk-OQVLEVNR.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkMILJQWPTcjs = require('./chunk-MILJQWPT.cjs');
7
+ var _chunkABVRVW3Pcjs = require('./chunk-ABVRVW3P.cjs');
8
8
 
9
9
  // src/core/reown.tsx
10
10
  var _react = require('react');
@@ -35,6 +35,11 @@ var _networks = require('@reown/appkit/networks');
35
35
 
36
36
 
37
37
 
38
+
39
+
40
+
41
+
42
+
38
43
  var APPKIT_NETWORK_BY_ID = {
39
44
  [_networks.mainnet.id]: _networks.mainnet,
40
45
  [_networks.optimism.id]: _networks.optimism,
@@ -43,9 +48,14 @@ var APPKIT_NETWORK_BY_ID = {
43
48
  [_networks.base.id]: _networks.base,
44
49
  [_networks.bsc.id]: _networks.bsc,
45
50
  [_networks.soneium.id]: _networks.soneium,
46
- [_networks.plasma.id]: _networks.plasma
51
+ [_networks.plasma.id]: _networks.plasma,
52
+ [_networks.gnosis.id]: _networks.gnosis,
53
+ [_networks.sonic.id]: _networks.sonic,
54
+ [_networks.monad.id]: _networks.monad,
55
+ [_networks.unichain.id]: _networks.unichain,
56
+ [_networks.katana.id]: _networks.katana
47
57
  };
48
- var EVM_NETWORKS = _chunkMILJQWPTcjs.SUPPORTED_CHAINS.map((chain) => {
58
+ var EVM_NETWORKS = _chunkABVRVW3Pcjs.SUPPORTED_CHAINS.map((chain) => {
49
59
  const network = APPKIT_NETWORK_BY_ID[chain.id];
50
60
  if (!network) {
51
61
  throw new Error(
@@ -145,9 +155,9 @@ function useReownWallet() {
145
155
  await switchChainAsync({ chainId });
146
156
  }
147
157
  } catch (err) {
148
- if (_chunkMQIJZNTPcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
158
+ if (_chunkOQVLEVNRcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
149
159
  throw new Error(
150
- `Switch to ${_chunkMILJQWPTcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
160
+ `Switch to ${_chunkABVRVW3Pcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
151
161
  );
152
162
  }
153
163
  throw err;