@rhinestone/deposit-modal 0.3.0 → 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 (44) hide show
  1. package/dist/{DepositModalReown-DNW4GH6L.cjs → DepositModalReown-KFTMS2WX.cjs} +9 -7
  2. package/dist/{DepositModalReown-6SUEC5IU.mjs → DepositModalReown-PC7EX5VK.mjs} +6 -4
  3. package/dist/{WithdrawModalReown-7UAGSOSU.mjs → WithdrawModalReown-BE23LUMT.mjs} +5 -4
  4. package/dist/{WithdrawModalReown-OUWBSKSM.cjs → WithdrawModalReown-Z2YF2FSJ.cjs} +8 -7
  5. package/dist/{caip-CrQ2KKU-.d.cts → caip-CsslyHGL.d.cts} +1 -1
  6. package/dist/{caip-CrQ2KKU-.d.ts → caip-CsslyHGL.d.ts} +1 -1
  7. package/dist/{chunk-33H6O5UU.cjs → chunk-3MXWIYAT.cjs} +16 -6
  8. package/dist/{chunk-KJ2RR2D4.mjs → chunk-3PVDRSJ7.mjs} +930 -682
  9. package/dist/{chunk-VVJAIMKB.cjs → chunk-7MP2UWIQ.cjs} +1091 -843
  10. package/dist/{chunk-MILJQWPT.cjs → chunk-ABVRVW3P.cjs} +133 -8
  11. package/dist/{chunk-2SMS542Q.cjs → chunk-AE5LHTPM.cjs} +122 -100
  12. package/dist/chunk-F7P4MV72.mjs +295 -0
  13. package/dist/chunk-FJWLC4AM.mjs +212 -0
  14. package/dist/{chunk-KAWJABTW.mjs → chunk-GKC22JC4.mjs} +901 -717
  15. package/dist/chunk-NRNJAQUA.cjs +212 -0
  16. package/dist/{chunk-RABZINV3.cjs → chunk-OQVLEVNR.cjs} +758 -574
  17. package/dist/chunk-UEKPBRBY.cjs +295 -0
  18. package/dist/{chunk-GPSBM66J.mjs → chunk-UFKFSGT3.mjs} +14 -4
  19. package/dist/{chunk-TKQYTBU6.mjs → chunk-WCIGOV34.mjs} +36 -14
  20. package/dist/{chunk-6YRDD462.mjs → chunk-WJX3TJFK.mjs} +135 -10
  21. package/dist/constants.cjs +2 -2
  22. package/dist/constants.d.cts +1 -1
  23. package/dist/constants.d.ts +1 -1
  24. package/dist/constants.mjs +1 -1
  25. package/dist/deposit.cjs +6 -4
  26. package/dist/deposit.d.cts +4 -4
  27. package/dist/deposit.d.ts +4 -4
  28. package/dist/deposit.mjs +5 -3
  29. package/dist/index.cjs +7 -5
  30. package/dist/index.d.cts +4 -3
  31. package/dist/index.d.ts +4 -3
  32. package/dist/index.mjs +6 -4
  33. package/dist/polymarket.cjs +64 -0
  34. package/dist/polymarket.d.cts +57 -0
  35. package/dist/polymarket.d.ts +57 -0
  36. package/dist/polymarket.mjs +64 -0
  37. package/dist/styles.css +252 -9
  38. package/dist/{types-BMcGO5k_.d.cts → types-CFRuisqK.d.cts} +10 -1
  39. package/dist/{types-BMcGO5k_.d.ts → types-CFRuisqK.d.ts} +10 -1
  40. package/dist/withdraw.cjs +5 -4
  41. package/dist/withdraw.d.cts +4 -4
  42. package/dist/withdraw.d.ts +4 -4
  43. package/dist/withdraw.mjs +4 -3
  44. package/package.json +15 -2
@@ -1,12 +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 _chunkVVJAIMKBcjs = require('./chunk-VVJAIMKB.cjs');
3
+ var _chunk7MP2UWIQcjs = require('./chunk-7MP2UWIQ.cjs');
4
+ require('./chunk-NRNJAQUA.cjs');
4
5
 
5
6
 
6
7
 
7
- var _chunk33H6O5UUcjs = require('./chunk-33H6O5UU.cjs');
8
- require('./chunk-RABZINV3.cjs');
9
- 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');
10
12
 
11
13
  // src/DepositModalReown.tsx
12
14
  var _react = require('react');
@@ -14,7 +16,7 @@ var _react3 = require('@reown/appkit/react');
14
16
  var _react5 = require('@reown/appkit-adapter-solana/react');
15
17
  var _jsxruntime = require('react/jsx-runtime');
16
18
  function DepositModalWithReown(props) {
17
- const reown = _chunk33H6O5UUcjs.useReownWallet.call(void 0, );
19
+ const reown = _chunk3MXWIYATcjs.useReownWallet.call(void 0, );
18
20
  const enableSolana = _nullishCoalesce(props.enableSolana, () => ( true));
19
21
  const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0,
20
22
  enableSolana ? "solana" : "eip155"
@@ -35,7 +37,7 @@ function DepositModalWithReown(props) {
35
37
  reown.disconnect();
36
38
  }, [reown.disconnect]);
37
39
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
38
- _chunkVVJAIMKBcjs.DepositModalInner,
40
+ _chunk7MP2UWIQcjs.DepositModalInner,
39
41
  {
40
42
  ...props,
41
43
  reownWallet: reownWithSolana,
@@ -46,7 +48,7 @@ function DepositModalWithReown(props) {
46
48
  }
47
49
  function DepositModalReown(props) {
48
50
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
49
- _chunk33H6O5UUcjs.ReownWalletProvider,
51
+ _chunk3MXWIYATcjs.ReownWalletProvider,
50
52
  {
51
53
  projectId: props.reownAppId,
52
54
  theme: props.theme,
@@ -1,12 +1,14 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-KJ2RR2D4.mjs";
3
+ } from "./chunk-3PVDRSJ7.mjs";
4
+ import "./chunk-FJWLC4AM.mjs";
4
5
  import {
5
6
  ReownWalletProvider,
6
7
  useReownWallet
7
- } from "./chunk-GPSBM66J.mjs";
8
- import "./chunk-KAWJABTW.mjs";
9
- import "./chunk-6YRDD462.mjs";
8
+ } from "./chunk-UFKFSGT3.mjs";
9
+ import "./chunk-GKC22JC4.mjs";
10
+ import "./chunk-F7P4MV72.mjs";
11
+ import "./chunk-WJX3TJFK.mjs";
10
12
 
11
13
  // src/DepositModalReown.tsx
12
14
  import { useCallback, useMemo } from "react";
@@ -1,12 +1,13 @@
1
1
  import {
2
2
  WithdrawModalInner
3
- } from "./chunk-TKQYTBU6.mjs";
3
+ } from "./chunk-WCIGOV34.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
- } from "./chunk-GPSBM66J.mjs";
8
- import "./chunk-KAWJABTW.mjs";
9
- import "./chunk-6YRDD462.mjs";
7
+ } from "./chunk-UFKFSGT3.mjs";
8
+ import "./chunk-GKC22JC4.mjs";
9
+ import "./chunk-F7P4MV72.mjs";
10
+ import "./chunk-WJX3TJFK.mjs";
10
11
 
11
12
  // src/WithdrawModalReown.tsx
12
13
  import { useCallback } from "react";
@@ -1,18 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2SMS542Qcjs = require('./chunk-2SMS542Q.cjs');
3
+ var _chunkAE5LHTPMcjs = require('./chunk-AE5LHTPM.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunk33H6O5UUcjs = require('./chunk-33H6O5UU.cjs');
8
- require('./chunk-RABZINV3.cjs');
9
- 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');
10
11
 
11
12
  // src/WithdrawModalReown.tsx
12
13
  var _react = require('react');
13
14
  var _jsxruntime = require('react/jsx-runtime');
14
15
  function WithdrawModalWithReown(props) {
15
- const reown = _chunk33H6O5UUcjs.useReownWallet.call(void 0, );
16
+ const reown = _chunk3MXWIYATcjs.useReownWallet.call(void 0, );
16
17
  const handleConnect = _react.useCallback.call(void 0, () => {
17
18
  reown.openConnect();
18
19
  }, [reown.openConnect]);
@@ -20,7 +21,7 @@ function WithdrawModalWithReown(props) {
20
21
  reown.disconnect();
21
22
  }, [reown.disconnect]);
22
23
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
23
- _chunk2SMS542Qcjs.WithdrawModalInner,
24
+ _chunkAE5LHTPMcjs.WithdrawModalInner,
24
25
  {
25
26
  ...props,
26
27
  reownWallet: reown,
@@ -30,7 +31,7 @@ function WithdrawModalWithReown(props) {
30
31
  );
31
32
  }
32
33
  function WithdrawModalReown(props) {
33
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk33H6O5UUcjs.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 }) });
34
35
  }
35
36
 
36
37
 
@@ -59,4 +59,4 @@ declare const HYPERCORE_CHAIN_ID = 1337;
59
59
  /** Canonical USDC on HyperEVM (999), the HyperCore settlement chain. */
60
60
  declare const HYPERCORE_USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
61
61
 
62
- export { CHAIN_BY_ID as C, DEFAULT_BACKEND_URL as D, HYPERCORE_CHAIN_ID as H, NATIVE_TOKEN_ADDRESS as N, SOURCE_CHAINS as S, DEFAULT_SIGNER_ADDRESS as a, HYPERCORE_USDC_ADDRESS as b, SUPPORTED_CHAINS as c, chainRegistry as d, getChainIcon as e, findChainIdForToken as f, getChainBadge as g, getChainId as h, getChainName as i, getChainObject as j, getExplorerName as k, getExplorerTxUrl as l, getExplorerUrl as m, getSupportedChainIds as n, getSupportedTargetTokens as o, getSupportedTokenSymbolsForChain as p, getTargetTokenSymbolsForChain as q, getTokenAddress as r, getTokenDecimals as s, getTokenDecimalsByAddress as t, getTokenIcon as u, getTokenSymbol as v, getUsdcAddress as w, getUsdcDecimals as x, isSupportedTokenAddressForChain as y, type SupportedTokenOption as z };
62
+ export { CHAIN_BY_ID as C, DEFAULT_BACKEND_URL as D, HYPERCORE_CHAIN_ID as H, NATIVE_TOKEN_ADDRESS as N, SOURCE_CHAINS as S, DEFAULT_SIGNER_ADDRESS as a, HYPERCORE_USDC_ADDRESS as b, SUPPORTED_CHAINS as c, type SupportedTokenOption as d, chainRegistry as e, findChainIdForToken as f, getChainBadge as g, getChainIcon as h, getChainId as i, getChainName as j, getChainObject as k, getExplorerName as l, getExplorerTxUrl as m, getExplorerUrl as n, getSupportedChainIds as o, getSupportedTargetTokens as p, getSupportedTokenSymbolsForChain as q, getTargetTokenSymbolsForChain as r, getTokenAddress as s, getTokenDecimals as t, getTokenDecimalsByAddress as u, getTokenIcon as v, getTokenSymbol as w, getUsdcAddress as x, getUsdcDecimals as y, isSupportedTokenAddressForChain as z };
@@ -59,4 +59,4 @@ declare const HYPERCORE_CHAIN_ID = 1337;
59
59
  /** Canonical USDC on HyperEVM (999), the HyperCore settlement chain. */
60
60
  declare const HYPERCORE_USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
61
61
 
62
- export { CHAIN_BY_ID as C, DEFAULT_BACKEND_URL as D, HYPERCORE_CHAIN_ID as H, NATIVE_TOKEN_ADDRESS as N, SOURCE_CHAINS as S, DEFAULT_SIGNER_ADDRESS as a, HYPERCORE_USDC_ADDRESS as b, SUPPORTED_CHAINS as c, chainRegistry as d, getChainIcon as e, findChainIdForToken as f, getChainBadge as g, getChainId as h, getChainName as i, getChainObject as j, getExplorerName as k, getExplorerTxUrl as l, getExplorerUrl as m, getSupportedChainIds as n, getSupportedTargetTokens as o, getSupportedTokenSymbolsForChain as p, getTargetTokenSymbolsForChain as q, getTokenAddress as r, getTokenDecimals as s, getTokenDecimalsByAddress as t, getTokenIcon as u, getTokenSymbol as v, getUsdcAddress as w, getUsdcDecimals as x, isSupportedTokenAddressForChain as y, type SupportedTokenOption as z };
62
+ export { CHAIN_BY_ID as C, DEFAULT_BACKEND_URL as D, HYPERCORE_CHAIN_ID as H, NATIVE_TOKEN_ADDRESS as N, SOURCE_CHAINS as S, DEFAULT_SIGNER_ADDRESS as a, HYPERCORE_USDC_ADDRESS as b, SUPPORTED_CHAINS as c, type SupportedTokenOption as d, chainRegistry as e, findChainIdForToken as f, getChainBadge as g, getChainIcon as h, getChainId as i, getChainName as j, getChainObject as k, getExplorerName as l, getExplorerTxUrl as m, getExplorerUrl as n, getSupportedChainIds as o, getSupportedTargetTokens as p, getSupportedTokenSymbolsForChain as q, getTargetTokenSymbolsForChain as r, getTokenAddress as s, getTokenDecimals as t, getTokenDecimalsByAddress as u, getTokenIcon as v, getTokenSymbol as w, getUsdcAddress as x, getUsdcDecimals as y, isSupportedTokenAddressForChain as z };
@@ -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 _chunkRABZINV3cjs = require('./chunk-RABZINV3.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 (_chunkRABZINV3cjs.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;