@rhinestone/deposit-modal 0.2.2 → 0.2.3

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.
@@ -1,6 +1,6 @@
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 _chunkOPCYL3OIcjs = require('./chunk-OPCYL3OI.cjs');
3
+ var _chunkTYJEZX6Scjs = require('./chunk-TYJEZX6S.cjs');
4
4
 
5
5
 
6
6
 
@@ -32,7 +32,7 @@ function DepositModalWithReown(props) {
32
32
  reown.disconnect();
33
33
  }, [reown.disconnect]);
34
34
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
35
- _chunkOPCYL3OIcjs.DepositModalInner,
35
+ _chunkTYJEZX6Scjs.DepositModalInner,
36
36
  {
37
37
  ...props,
38
38
  reownWallet: reownWithSolana,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-UTQ7EYXO.mjs";
3
+ } from "./chunk-DGT2DZXN.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
@@ -3780,7 +3780,7 @@ function DepositFlow({
3780
3780
  setStep({ type: "setup" });
3781
3781
  }, []);
3782
3782
  const handleNewDeposit = useCallback5(() => {
3783
- onSmartAccountChangeRef.current?.(null);
3783
+ onSmartAccountChangeRef.current?.({ evm: null, solana: null });
3784
3784
  setFlowMode(null);
3785
3785
  setStep({ type: "setup" });
3786
3786
  setIsConnectSelectionConfirmed(false);
@@ -3794,7 +3794,10 @@ function DepositFlow({
3794
3794
  hasSolanaDepositAddress: Boolean(solanaDepositAddress),
3795
3795
  flowMode: isDepositAddressMode ? "deposit-address" : isSolanaWalletMode ? "solana-wallet" : "wallet"
3796
3796
  });
3797
- onSmartAccountChangeRef.current?.(smartAccount);
3797
+ onSmartAccountChangeRef.current?.({
3798
+ evm: smartAccount,
3799
+ solana: solanaDepositAddress ?? null
3800
+ });
3798
3801
  if (isDepositAddressMode) {
3799
3802
  setStep({
3800
3803
  type: "deposit-address",
@@ -4697,8 +4700,15 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
4697
4700
  // src/DepositModal.tsx
4698
4701
  import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
4699
4702
  var ReownDepositInner = lazy(
4700
- () => import("./DepositModalReown-3H4EAZIF.mjs").then((m) => ({ default: m.DepositModalReown }))
4703
+ () => import("./DepositModalReown-SJHEU6RQ.mjs").then((m) => ({ default: m.DepositModalReown }))
4701
4704
  );
4705
+ function sortByCreatedAtDesc(items) {
4706
+ return [...items].sort((a, b) => {
4707
+ const at = a.createdAt ? Date.parse(a.createdAt) : 0;
4708
+ const bt = b.createdAt ? Date.parse(b.createdAt) : 0;
4709
+ return bt - at;
4710
+ });
4711
+ }
4702
4712
  function DepositModal(props) {
4703
4713
  const needsReown = !!props.reownAppId;
4704
4714
  const hasDappWalletClientProp = Object.prototype.hasOwnProperty.call(
@@ -4773,13 +4783,18 @@ function DepositModalInner({
4773
4783
  const [totalBalanceUsd, setTotalBalanceUsd] = useState12(null);
4774
4784
  const backHandlerRef = useRef8(void 0);
4775
4785
  const showHistoryButton = uiConfig?.showHistoryButton ?? false;
4776
- const [activeSmartAccount, setActiveSmartAccount] = useState12(null);
4786
+ const [activeEvmAccount, setActiveEvmAccount] = useState12(null);
4787
+ const [activeSolanaAccount, setActiveSolanaAccount] = useState12(
4788
+ null
4789
+ );
4777
4790
  const [historyOpen, setHistoryOpen] = useState12(false);
4778
4791
  const [historyDeposits, setHistoryDeposits] = useState12([]);
4779
- const [historyNextCursor, setHistoryNextCursor] = useState12(null);
4792
+ const [hasMoreHistory, setHasMoreHistory] = useState12(false);
4780
4793
  const [historyLoading, setHistoryLoading] = useState12(false);
4781
4794
  const [historyLoadingMore, setHistoryLoadingMore] = useState12(false);
4782
4795
  const [historyError, setHistoryError] = useState12(null);
4796
+ const evmCursorRef = useRef8(null);
4797
+ const solanaCursorRef = useRef8(null);
4783
4798
  const historyStaleRef = useRef8(false);
4784
4799
  const historyLoadedRef = useRef8(false);
4785
4800
  const targetChain = getChainId(targetChainProp);
@@ -4823,18 +4838,19 @@ function DepositModalInner({
4823
4838
  backHandlerRef.current?.();
4824
4839
  }, []);
4825
4840
  const handleSmartAccountChange = useCallback7(
4826
- (account) => {
4827
- setActiveSmartAccount(account);
4828
- if (!account) {
4841
+ ({ evm, solana }) => {
4842
+ setActiveEvmAccount(evm);
4843
+ setActiveSolanaAccount(solana);
4844
+ if (!evm && !solana) {
4829
4845
  historyStaleRef.current = true;
4830
4846
  }
4831
4847
  },
4832
4848
  []
4833
4849
  );
4834
4850
  const fetchHistory = useCallback7(
4835
- async (cursor) => {
4836
- if (!activeSmartAccount) return;
4837
- const isInitial = !cursor;
4851
+ async (mode = "initial") => {
4852
+ if (!activeEvmAccount && !activeSolanaAccount) return;
4853
+ const isInitial = mode === "initial";
4838
4854
  if (isInitial) {
4839
4855
  setHistoryLoading(true);
4840
4856
  } else {
@@ -4842,17 +4858,54 @@ function DepositModalInner({
4842
4858
  }
4843
4859
  setHistoryError(null);
4844
4860
  try {
4845
- const result = await service.fetchDepositHistory({
4846
- account: activeSmartAccount,
4847
- limit: 20,
4848
- cursor
4849
- });
4861
+ const evmCursor = isInitial ? null : evmCursorRef.current;
4862
+ const solanaCursor = isInitial ? null : solanaCursorRef.current;
4863
+ const requests = [];
4864
+ if (activeEvmAccount && (isInitial || evmCursor)) {
4865
+ requests.push(
4866
+ service.fetchDepositHistory({
4867
+ account: activeEvmAccount,
4868
+ limit: 20,
4869
+ cursor: evmCursor ?? void 0
4870
+ }).then((r) => ({
4871
+ deposits: r.deposits,
4872
+ nextCursor: r.nextCursor ?? null,
4873
+ source: "evm"
4874
+ }))
4875
+ );
4876
+ }
4877
+ if (activeSolanaAccount && (isInitial || solanaCursor)) {
4878
+ requests.push(
4879
+ service.fetchDepositHistory({
4880
+ account: activeSolanaAccount,
4881
+ limit: 20,
4882
+ cursor: solanaCursor ?? void 0
4883
+ }).then((r) => ({
4884
+ deposits: r.deposits,
4885
+ nextCursor: r.nextCursor ?? null,
4886
+ source: "solana"
4887
+ }))
4888
+ );
4889
+ }
4890
+ const results = await Promise.all(requests);
4891
+ let nextEvm = isInitial ? null : evmCursor;
4892
+ let nextSolana = isInitial ? null : solanaCursor;
4893
+ const incoming = [];
4894
+ for (const r of results) {
4895
+ incoming.push(...r.deposits);
4896
+ if (r.source === "evm") nextEvm = r.nextCursor;
4897
+ else nextSolana = r.nextCursor;
4898
+ }
4850
4899
  if (isInitial) {
4851
- setHistoryDeposits(result.deposits);
4900
+ setHistoryDeposits(sortByCreatedAtDesc(incoming));
4852
4901
  } else {
4853
- setHistoryDeposits((prev) => [...prev, ...result.deposits]);
4902
+ setHistoryDeposits(
4903
+ (prev) => sortByCreatedAtDesc([...prev, ...incoming])
4904
+ );
4854
4905
  }
4855
- setHistoryNextCursor(result.nextCursor ?? null);
4906
+ evmCursorRef.current = nextEvm;
4907
+ solanaCursorRef.current = nextSolana;
4908
+ setHasMoreHistory(Boolean(nextEvm || nextSolana));
4856
4909
  historyStaleRef.current = false;
4857
4910
  historyLoadedRef.current = true;
4858
4911
  } catch (err) {
@@ -4867,26 +4920,24 @@ function DepositModalInner({
4867
4920
  }
4868
4921
  }
4869
4922
  },
4870
- [activeSmartAccount, service]
4923
+ [activeEvmAccount, activeSolanaAccount, service]
4871
4924
  );
4872
4925
  const handleHistoryOpen = useCallback7(() => {
4873
4926
  setHistoryOpen(true);
4874
4927
  if (!historyLoadedRef.current || historyStaleRef.current) {
4875
- fetchHistory();
4928
+ fetchHistory("initial");
4876
4929
  }
4877
4930
  }, [fetchHistory]);
4878
4931
  const handleHistoryClose = useCallback7(() => {
4879
4932
  setHistoryOpen(false);
4880
4933
  }, []);
4881
4934
  const handleHistoryLoadMore = useCallback7(() => {
4882
- if (historyNextCursor) {
4883
- fetchHistory(historyNextCursor);
4884
- }
4885
- }, [fetchHistory, historyNextCursor]);
4935
+ fetchHistory("more");
4936
+ }, [fetchHistory]);
4886
4937
  const markHistoryStale = useCallback7(() => {
4887
4938
  historyStaleRef.current = true;
4888
4939
  if (historyOpen) {
4889
- fetchHistory();
4940
+ fetchHistory("initial");
4890
4941
  }
4891
4942
  }, [historyOpen, fetchHistory]);
4892
4943
  const onDepositSubmittedRef = useLatestRef(onDepositSubmitted);
@@ -4917,9 +4968,12 @@ function DepositModalInner({
4917
4968
  if (!isOpen) {
4918
4969
  setHistoryOpen(false);
4919
4970
  setHistoryDeposits([]);
4920
- setHistoryNextCursor(null);
4971
+ setHasMoreHistory(false);
4921
4972
  setHistoryError(null);
4922
- setActiveSmartAccount(null);
4973
+ setActiveEvmAccount(null);
4974
+ setActiveSolanaAccount(null);
4975
+ evmCursorRef.current = null;
4976
+ solanaCursorRef.current = null;
4923
4977
  historyStaleRef.current = false;
4924
4978
  historyLoadedRef.current = false;
4925
4979
  }
@@ -5036,7 +5090,7 @@ function DepositModalInner({
5036
5090
  className: "rs-modal-header-history",
5037
5091
  "aria-label": "Deposit history",
5038
5092
  onClick: handleHistoryOpen,
5039
- disabled: !activeSmartAccount,
5093
+ disabled: !activeEvmAccount && !activeSolanaAccount,
5040
5094
  children: /* @__PURE__ */ jsx14(
5041
5095
  "svg",
5042
5096
  {
@@ -5132,7 +5186,7 @@ function DepositModalInner({
5132
5186
  deposits: historyDeposits,
5133
5187
  isLoading: historyLoading,
5134
5188
  error: historyError,
5135
- hasMore: Boolean(historyNextCursor),
5189
+ hasMore: hasMoreHistory,
5136
5190
  isLoadingMore: historyLoadingMore,
5137
5191
  onLoadMore: handleHistoryLoadMore,
5138
5192
  onClose: handleHistoryClose
@@ -3780,7 +3780,7 @@ function DepositFlow({
3780
3780
  setStep({ type: "setup" });
3781
3781
  }, []);
3782
3782
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
3783
- _optionalChain([onSmartAccountChangeRef, 'access', _129 => _129.current, 'optionalCall', _130 => _130(null)]);
3783
+ _optionalChain([onSmartAccountChangeRef, 'access', _129 => _129.current, 'optionalCall', _130 => _130({ evm: null, solana: null })]);
3784
3784
  setFlowMode(null);
3785
3785
  setStep({ type: "setup" });
3786
3786
  setIsConnectSelectionConfirmed(false);
@@ -3794,7 +3794,10 @@ function DepositFlow({
3794
3794
  hasSolanaDepositAddress: Boolean(solanaDepositAddress),
3795
3795
  flowMode: isDepositAddressMode ? "deposit-address" : isSolanaWalletMode ? "solana-wallet" : "wallet"
3796
3796
  });
3797
- _optionalChain([onSmartAccountChangeRef, 'access', _131 => _131.current, 'optionalCall', _132 => _132(smartAccount)]);
3797
+ _optionalChain([onSmartAccountChangeRef, 'access', _131 => _131.current, 'optionalCall', _132 => _132({
3798
+ evm: smartAccount,
3799
+ solana: _nullishCoalesce(solanaDepositAddress, () => ( null))
3800
+ })]);
3798
3801
  if (isDepositAddressMode) {
3799
3802
  setStep({
3800
3803
  type: "deposit-address",
@@ -4697,8 +4700,15 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
4697
4700
  // src/DepositModal.tsx
4698
4701
 
4699
4702
  var ReownDepositInner = _react.lazy.call(void 0,
4700
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-WGRUAIY3.cjs"))).then((m) => ({ default: m.DepositModalReown }))
4703
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-QPJ5TT57.cjs"))).then((m) => ({ default: m.DepositModalReown }))
4701
4704
  );
4705
+ function sortByCreatedAtDesc(items) {
4706
+ return [...items].sort((a, b) => {
4707
+ const at = a.createdAt ? Date.parse(a.createdAt) : 0;
4708
+ const bt = b.createdAt ? Date.parse(b.createdAt) : 0;
4709
+ return bt - at;
4710
+ });
4711
+ }
4702
4712
  function DepositModal(props) {
4703
4713
  const needsReown = !!props.reownAppId;
4704
4714
  const hasDappWalletClientProp = Object.prototype.hasOwnProperty.call(
@@ -4773,13 +4783,18 @@ function DepositModalInner({
4773
4783
  const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, null);
4774
4784
  const backHandlerRef = _react.useRef.call(void 0, void 0);
4775
4785
  const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _167 => _167.showHistoryButton]), () => ( false));
4776
- const [activeSmartAccount, setActiveSmartAccount] = _react.useState.call(void 0, null);
4786
+ const [activeEvmAccount, setActiveEvmAccount] = _react.useState.call(void 0, null);
4787
+ const [activeSolanaAccount, setActiveSolanaAccount] = _react.useState.call(void 0,
4788
+ null
4789
+ );
4777
4790
  const [historyOpen, setHistoryOpen] = _react.useState.call(void 0, false);
4778
4791
  const [historyDeposits, setHistoryDeposits] = _react.useState.call(void 0, []);
4779
- const [historyNextCursor, setHistoryNextCursor] = _react.useState.call(void 0, null);
4792
+ const [hasMoreHistory, setHasMoreHistory] = _react.useState.call(void 0, false);
4780
4793
  const [historyLoading, setHistoryLoading] = _react.useState.call(void 0, false);
4781
4794
  const [historyLoadingMore, setHistoryLoadingMore] = _react.useState.call(void 0, false);
4782
4795
  const [historyError, setHistoryError] = _react.useState.call(void 0, null);
4796
+ const evmCursorRef = _react.useRef.call(void 0, null);
4797
+ const solanaCursorRef = _react.useRef.call(void 0, null);
4783
4798
  const historyStaleRef = _react.useRef.call(void 0, false);
4784
4799
  const historyLoadedRef = _react.useRef.call(void 0, false);
4785
4800
  const targetChain = _chunkMUWVDVY4cjs.getChainId.call(void 0, targetChainProp);
@@ -4823,18 +4838,19 @@ function DepositModalInner({
4823
4838
  _optionalChain([backHandlerRef, 'access', _170 => _170.current, 'optionalCall', _171 => _171()]);
4824
4839
  }, []);
4825
4840
  const handleSmartAccountChange = _react.useCallback.call(void 0,
4826
- (account) => {
4827
- setActiveSmartAccount(account);
4828
- if (!account) {
4841
+ ({ evm, solana }) => {
4842
+ setActiveEvmAccount(evm);
4843
+ setActiveSolanaAccount(solana);
4844
+ if (!evm && !solana) {
4829
4845
  historyStaleRef.current = true;
4830
4846
  }
4831
4847
  },
4832
4848
  []
4833
4849
  );
4834
4850
  const fetchHistory = _react.useCallback.call(void 0,
4835
- async (cursor) => {
4836
- if (!activeSmartAccount) return;
4837
- const isInitial = !cursor;
4851
+ async (mode = "initial") => {
4852
+ if (!activeEvmAccount && !activeSolanaAccount) return;
4853
+ const isInitial = mode === "initial";
4838
4854
  if (isInitial) {
4839
4855
  setHistoryLoading(true);
4840
4856
  } else {
@@ -4842,17 +4858,54 @@ function DepositModalInner({
4842
4858
  }
4843
4859
  setHistoryError(null);
4844
4860
  try {
4845
- const result = await service.fetchDepositHistory({
4846
- account: activeSmartAccount,
4847
- limit: 20,
4848
- cursor
4849
- });
4861
+ const evmCursor = isInitial ? null : evmCursorRef.current;
4862
+ const solanaCursor = isInitial ? null : solanaCursorRef.current;
4863
+ const requests = [];
4864
+ if (activeEvmAccount && (isInitial || evmCursor)) {
4865
+ requests.push(
4866
+ service.fetchDepositHistory({
4867
+ account: activeEvmAccount,
4868
+ limit: 20,
4869
+ cursor: _nullishCoalesce(evmCursor, () => ( void 0))
4870
+ }).then((r) => ({
4871
+ deposits: r.deposits,
4872
+ nextCursor: _nullishCoalesce(r.nextCursor, () => ( null)),
4873
+ source: "evm"
4874
+ }))
4875
+ );
4876
+ }
4877
+ if (activeSolanaAccount && (isInitial || solanaCursor)) {
4878
+ requests.push(
4879
+ service.fetchDepositHistory({
4880
+ account: activeSolanaAccount,
4881
+ limit: 20,
4882
+ cursor: _nullishCoalesce(solanaCursor, () => ( void 0))
4883
+ }).then((r) => ({
4884
+ deposits: r.deposits,
4885
+ nextCursor: _nullishCoalesce(r.nextCursor, () => ( null)),
4886
+ source: "solana"
4887
+ }))
4888
+ );
4889
+ }
4890
+ const results = await Promise.all(requests);
4891
+ let nextEvm = isInitial ? null : evmCursor;
4892
+ let nextSolana = isInitial ? null : solanaCursor;
4893
+ const incoming = [];
4894
+ for (const r of results) {
4895
+ incoming.push(...r.deposits);
4896
+ if (r.source === "evm") nextEvm = r.nextCursor;
4897
+ else nextSolana = r.nextCursor;
4898
+ }
4850
4899
  if (isInitial) {
4851
- setHistoryDeposits(result.deposits);
4900
+ setHistoryDeposits(sortByCreatedAtDesc(incoming));
4852
4901
  } else {
4853
- setHistoryDeposits((prev) => [...prev, ...result.deposits]);
4902
+ setHistoryDeposits(
4903
+ (prev) => sortByCreatedAtDesc([...prev, ...incoming])
4904
+ );
4854
4905
  }
4855
- setHistoryNextCursor(_nullishCoalesce(result.nextCursor, () => ( null)));
4906
+ evmCursorRef.current = nextEvm;
4907
+ solanaCursorRef.current = nextSolana;
4908
+ setHasMoreHistory(Boolean(nextEvm || nextSolana));
4856
4909
  historyStaleRef.current = false;
4857
4910
  historyLoadedRef.current = true;
4858
4911
  } catch (err) {
@@ -4867,26 +4920,24 @@ function DepositModalInner({
4867
4920
  }
4868
4921
  }
4869
4922
  },
4870
- [activeSmartAccount, service]
4923
+ [activeEvmAccount, activeSolanaAccount, service]
4871
4924
  );
4872
4925
  const handleHistoryOpen = _react.useCallback.call(void 0, () => {
4873
4926
  setHistoryOpen(true);
4874
4927
  if (!historyLoadedRef.current || historyStaleRef.current) {
4875
- fetchHistory();
4928
+ fetchHistory("initial");
4876
4929
  }
4877
4930
  }, [fetchHistory]);
4878
4931
  const handleHistoryClose = _react.useCallback.call(void 0, () => {
4879
4932
  setHistoryOpen(false);
4880
4933
  }, []);
4881
4934
  const handleHistoryLoadMore = _react.useCallback.call(void 0, () => {
4882
- if (historyNextCursor) {
4883
- fetchHistory(historyNextCursor);
4884
- }
4885
- }, [fetchHistory, historyNextCursor]);
4935
+ fetchHistory("more");
4936
+ }, [fetchHistory]);
4886
4937
  const markHistoryStale = _react.useCallback.call(void 0, () => {
4887
4938
  historyStaleRef.current = true;
4888
4939
  if (historyOpen) {
4889
- fetchHistory();
4940
+ fetchHistory("initial");
4890
4941
  }
4891
4942
  }, [historyOpen, fetchHistory]);
4892
4943
  const onDepositSubmittedRef = _chunkT2KOQH57cjs.useLatestRef.call(void 0, onDepositSubmitted);
@@ -4917,9 +4968,12 @@ function DepositModalInner({
4917
4968
  if (!isOpen) {
4918
4969
  setHistoryOpen(false);
4919
4970
  setHistoryDeposits([]);
4920
- setHistoryNextCursor(null);
4971
+ setHasMoreHistory(false);
4921
4972
  setHistoryError(null);
4922
- setActiveSmartAccount(null);
4973
+ setActiveEvmAccount(null);
4974
+ setActiveSolanaAccount(null);
4975
+ evmCursorRef.current = null;
4976
+ solanaCursorRef.current = null;
4923
4977
  historyStaleRef.current = false;
4924
4978
  historyLoadedRef.current = false;
4925
4979
  }
@@ -5036,7 +5090,7 @@ function DepositModalInner({
5036
5090
  className: "rs-modal-header-history",
5037
5091
  "aria-label": "Deposit history",
5038
5092
  onClick: handleHistoryOpen,
5039
- disabled: !activeSmartAccount,
5093
+ disabled: !activeEvmAccount && !activeSolanaAccount,
5040
5094
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5041
5095
  "svg",
5042
5096
  {
@@ -5132,7 +5186,7 @@ function DepositModalInner({
5132
5186
  deposits: historyDeposits,
5133
5187
  isLoading: historyLoading,
5134
5188
  error: historyError,
5135
- hasMore: Boolean(historyNextCursor),
5189
+ hasMore: hasMoreHistory,
5136
5190
  isLoadingMore: historyLoadingMore,
5137
5191
  onLoadMore: handleHistoryLoadMore,
5138
5192
  onClose: handleHistoryClose
package/dist/deposit.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOPCYL3OIcjs = require('./chunk-OPCYL3OI.cjs');
3
+ var _chunkTYJEZX6Scjs = require('./chunk-TYJEZX6S.cjs');
4
4
  require('./chunk-T2KOQH57.cjs');
5
5
  require('./chunk-MUWVDVY4.cjs');
6
6
 
7
7
 
8
- exports.DepositModal = _chunkOPCYL3OIcjs.DepositModal;
8
+ exports.DepositModal = _chunkTYJEZX6Scjs.DepositModal;
package/dist/deposit.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-UTQ7EYXO.mjs";
3
+ } from "./chunk-DGT2DZXN.mjs";
4
4
  import "./chunk-JRNGXHWQ.mjs";
5
5
  import "./chunk-SDZKKUCJ.mjs";
6
6
  export {
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOPCYL3OIcjs = require('./chunk-OPCYL3OI.cjs');
3
+ var _chunkTYJEZX6Scjs = require('./chunk-TYJEZX6S.cjs');
4
4
 
5
5
 
6
6
  var _chunk5EU7N73Mcjs = require('./chunk-5EU7N73M.cjs');
@@ -70,4 +70,4 @@ var _chunkMUWVDVY4cjs = require('./chunk-MUWVDVY4.cjs');
70
70
 
71
71
 
72
72
 
73
- exports.CHAIN_BY_ID = _chunkMUWVDVY4cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkMUWVDVY4cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkMUWVDVY4cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkOPCYL3OIcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkMUWVDVY4cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkMUWVDVY4cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkMUWVDVY4cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunk5EU7N73Mcjs.WithdrawModal; exports.chainRegistry = _chunkMUWVDVY4cjs.chainRegistry; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet; exports.findChainIdForToken = _chunkMUWVDVY4cjs.findChainIdForToken; exports.getChainBadge = _chunkMUWVDVY4cjs.getChainBadge; exports.getChainIcon = _chunkMUWVDVY4cjs.getChainIcon; exports.getChainId = _chunkMUWVDVY4cjs.getChainId; exports.getChainName = _chunkMUWVDVY4cjs.getChainName; exports.getChainObject = _chunkMUWVDVY4cjs.getChainObject; exports.getExplorerName = _chunkMUWVDVY4cjs.getExplorerName; exports.getExplorerTxUrl = _chunkMUWVDVY4cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkMUWVDVY4cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkMUWVDVY4cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkMUWVDVY4cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkMUWVDVY4cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkMUWVDVY4cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkMUWVDVY4cjs.getTokenAddress; exports.getTokenDecimals = _chunkMUWVDVY4cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkMUWVDVY4cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkMUWVDVY4cjs.getTokenIcon; exports.getTokenSymbol = _chunkMUWVDVY4cjs.getTokenSymbol; exports.getUsdcAddress = _chunkMUWVDVY4cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkMUWVDVY4cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkMUWVDVY4cjs.isSupportedTokenAddressForChain;
73
+ exports.CHAIN_BY_ID = _chunkMUWVDVY4cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkMUWVDVY4cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkMUWVDVY4cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkTYJEZX6Scjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkMUWVDVY4cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkMUWVDVY4cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkMUWVDVY4cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunk5EU7N73Mcjs.WithdrawModal; exports.chainRegistry = _chunkMUWVDVY4cjs.chainRegistry; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet; exports.findChainIdForToken = _chunkMUWVDVY4cjs.findChainIdForToken; exports.getChainBadge = _chunkMUWVDVY4cjs.getChainBadge; exports.getChainIcon = _chunkMUWVDVY4cjs.getChainIcon; exports.getChainId = _chunkMUWVDVY4cjs.getChainId; exports.getChainName = _chunkMUWVDVY4cjs.getChainName; exports.getChainObject = _chunkMUWVDVY4cjs.getChainObject; exports.getExplorerName = _chunkMUWVDVY4cjs.getExplorerName; exports.getExplorerTxUrl = _chunkMUWVDVY4cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkMUWVDVY4cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkMUWVDVY4cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkMUWVDVY4cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkMUWVDVY4cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkMUWVDVY4cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkMUWVDVY4cjs.getTokenAddress; exports.getTokenDecimals = _chunkMUWVDVY4cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkMUWVDVY4cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkMUWVDVY4cjs.getTokenIcon; exports.getTokenSymbol = _chunkMUWVDVY4cjs.getTokenSymbol; exports.getUsdcAddress = _chunkMUWVDVY4cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkMUWVDVY4cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkMUWVDVY4cjs.isSupportedTokenAddressForChain;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-UTQ7EYXO.mjs";
3
+ } from "./chunk-DGT2DZXN.mjs";
4
4
  import {
5
5
  WithdrawModal
6
6
  } from "./chunk-MKO5TNVQ.mjs";
package/dist/reown.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOPCYL3OIcjs = require('./chunk-OPCYL3OI.cjs');
3
+ var _chunkTYJEZX6Scjs = require('./chunk-TYJEZX6S.cjs');
4
4
 
5
5
 
6
6
  var _chunk5EU7N73Mcjs = require('./chunk-5EU7N73M.cjs');
@@ -13,4 +13,4 @@ require('./chunk-MUWVDVY4.cjs');
13
13
 
14
14
 
15
15
 
16
- exports.DepositModal = _chunkOPCYL3OIcjs.DepositModal; exports.WithdrawModal = _chunk5EU7N73Mcjs.WithdrawModal; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet;
16
+ exports.DepositModal = _chunkTYJEZX6Scjs.DepositModal; exports.WithdrawModal = _chunk5EU7N73Mcjs.WithdrawModal; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet;
package/dist/reown.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-UTQ7EYXO.mjs";
3
+ } from "./chunk-DGT2DZXN.mjs";
4
4
  import {
5
5
  WithdrawModal
6
6
  } from "./chunk-MKO5TNVQ.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {