@rhinestone/deposit-modal 0.12.2 → 0.14.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 (68) hide show
  1. package/README.md +73 -18
  2. package/bridge-transcript.json +653 -0
  3. package/dist/ClaimModal-IKTJU43Y.cjs +13 -0
  4. package/dist/ClaimModal-SEKNWRMA.mjs +13 -0
  5. package/dist/{DepositModalReown-VG66OTIU.cjs → DepositModalReown-46LPVFB6.cjs} +58 -35
  6. package/dist/{DepositModalReown-TEC3MEZ4.mjs → DepositModalReown-Q2JMLT47.mjs} +45 -22
  7. package/dist/{QRCode-WUC652SH.mjs → QRCode-5RGIZZHL.mjs} +1 -1
  8. package/dist/{QRCode-5DXFNKI2.cjs → QRCode-JKXG4RHN.cjs} +2 -2
  9. package/dist/WithdrawModal-5ICGD4HJ.mjs +12 -0
  10. package/dist/WithdrawModal-VP6PMIRO.cjs +12 -0
  11. package/dist/{chunk-O7BCVQ6L.cjs → chunk-4KCSH4T3.cjs} +157 -199
  12. package/dist/chunk-6KG642KH.cjs +31 -0
  13. package/dist/{chunk-PWLEBV5V.cjs → chunk-7ICSHJFE.cjs} +296 -220
  14. package/dist/{chunk-J46WDSRD.mjs → chunk-7SR7ENVJ.mjs} +165 -89
  15. package/dist/{chunk-2TPSF77V.mjs → chunk-CFKC77SV.mjs} +455 -261
  16. package/dist/{chunk-75DVGSAX.cjs → chunk-DW2EQA2U.cjs} +6 -3
  17. package/dist/{chunk-FXXUIK4E.mjs → chunk-IN77XSWO.mjs} +899 -153
  18. package/dist/chunk-K4H6TGBE.mjs +31 -0
  19. package/dist/{chunk-SDSKIJC7.mjs → chunk-KTUVSKR4.mjs} +2410 -1177
  20. package/dist/{chunk-HL5NUKZW.cjs → chunk-LZFRL2AL.cjs} +3 -3
  21. package/dist/{chunk-UQIJU6HV.cjs → chunk-MTFJSE52.cjs} +499 -191
  22. package/dist/{chunk-FLVLYO64.mjs → chunk-PKML3XVS.mjs} +430 -122
  23. package/dist/{chunk-4ZXQPFNU.mjs → chunk-RN5VKWI6.mjs} +4 -1
  24. package/dist/{chunk-BRYNGLDM.cjs → chunk-V2OBGLJD.cjs} +961 -215
  25. package/dist/{chunk-3STTWRAN.mjs → chunk-VUATPOWJ.mjs} +147 -189
  26. package/dist/{chunk-JE4R5VA3.mjs → chunk-WUJIKCFU.mjs} +1 -1
  27. package/dist/chunk-X2IPAPXU.cjs +163 -0
  28. package/dist/{chunk-OIN4CXCP.cjs → chunk-YCQZJQO6.cjs} +2343 -1110
  29. package/dist/{chunk-TM7VGHAG.cjs → chunk-YWMWI7PZ.cjs} +462 -268
  30. package/dist/chunk-ZEO6ADM3.mjs +163 -0
  31. package/dist/claim.cjs +7 -6
  32. package/dist/claim.d.cts +11 -3
  33. package/dist/claim.d.ts +11 -3
  34. package/dist/claim.mjs +6 -5
  35. package/dist/{constants-FuzG3h4m.d.cts → constants-DBrWhJWE.d.cts} +12 -7
  36. package/dist/{constants-FuzG3h4m.d.ts → constants-DBrWhJWE.d.ts} +12 -7
  37. package/dist/constants.cjs +3 -9
  38. package/dist/constants.d.cts +2 -3
  39. package/dist/constants.d.ts +2 -3
  40. package/dist/constants.mjs +4 -10
  41. package/dist/deposit.cjs +8 -8
  42. package/dist/deposit.d.cts +2 -2
  43. package/dist/deposit.d.ts +2 -2
  44. package/dist/deposit.mjs +7 -7
  45. package/dist/embed.cjs +1476 -0
  46. package/dist/embed.d.cts +183 -0
  47. package/dist/embed.d.ts +183 -0
  48. package/dist/embed.mjs +1476 -0
  49. package/dist/index.cjs +11 -16
  50. package/dist/index.d.cts +3 -3
  51. package/dist/index.d.ts +3 -3
  52. package/dist/index.mjs +14 -19
  53. package/dist/modal-ui-state-OD1RmKkK.d.cts +30 -0
  54. package/dist/modal-ui-state-OD1RmKkK.d.ts +30 -0
  55. package/dist/polymarket.cjs +17 -7
  56. package/dist/polymarket.mjs +13 -3
  57. package/dist/styles.css +124 -98
  58. package/dist/types-Bho4OA03.d.ts +982 -0
  59. package/dist/types-DP_3KwlD.d.cts +982 -0
  60. package/dist/withdraw.cjs +6 -6
  61. package/dist/withdraw.d.cts +11 -3
  62. package/dist/withdraw.d.ts +11 -3
  63. package/dist/withdraw.mjs +5 -5
  64. package/package.json +59 -6
  65. package/dist/chunk-IAGFDSNC.mjs +0 -11
  66. package/dist/chunk-L32UI7LA.cjs +0 -11
  67. package/dist/types-BO4iP6fG.d.cts +0 -612
  68. package/dist/types-oFblf65g.d.ts +0 -612
@@ -0,0 +1,163 @@
1
+ import {
2
+ debugError,
3
+ debugLog
4
+ } from "./chunk-IN77XSWO.mjs";
5
+ import {
6
+ serviceHeaders
7
+ } from "./chunk-K4H6TGBE.mjs";
8
+
9
+ // src/core/recovery.ts
10
+ var RECOVER_DOMAIN = {
11
+ name: "Rhinestone Deposit Recovery",
12
+ version: "1"
13
+ };
14
+ var RECOVER_TYPES = {
15
+ RecoverDeposit: [
16
+ { name: "depositId", type: "uint256" },
17
+ { name: "destination", type: "address" }
18
+ ]
19
+ };
20
+ var RecoveryError = class extends Error {
21
+ constructor(message, status, code, retryable = false, phase = "response") {
22
+ super(message);
23
+ this.name = "RecoveryError";
24
+ this.status = status;
25
+ this.code = code;
26
+ this.retryable = retryable;
27
+ this.phase = phase;
28
+ }
29
+ };
30
+ function formatRecoveryError(status, code, serverMessage) {
31
+ switch (code) {
32
+ case "DEPOSIT_NOT_RECOVERABLE":
33
+ return {
34
+ message: "This deposit can't be recovered \u2014 it may already have been claimed.",
35
+ retryable: false
36
+ };
37
+ case "RECOVERY_UNSUPPORTED":
38
+ return {
39
+ message: "This deposit can't be recovered automatically. Contact support to get your funds back.",
40
+ retryable: false
41
+ };
42
+ case "SIGNATURE_INVALID":
43
+ return {
44
+ message: "That signature wasn't accepted for this wallet. Contact support to recover this deposit.",
45
+ retryable: false
46
+ };
47
+ case "VERIFICATION_UNAVAILABLE":
48
+ return {
49
+ message: "Couldn't verify your signature just now. Try again shortly.",
50
+ retryable: true
51
+ };
52
+ case "REFUND_RECONCILIATION_REQUIRED":
53
+ return {
54
+ message: "Your recovery is being reviewed. Contact support with this deposit if it doesn't arrive.",
55
+ retryable: false
56
+ };
57
+ case "REFUND_FAILED":
58
+ return {
59
+ message: serverMessage ?? "The recovery couldn't be completed. Please try again or contact support.",
60
+ retryable: true
61
+ };
62
+ default:
63
+ if (status === 0) {
64
+ return {
65
+ message: "Couldn't reach the recovery service. Check your connection and try again.",
66
+ retryable: true
67
+ };
68
+ }
69
+ return {
70
+ message: serverMessage ?? "The recovery couldn't be completed. Please try again or contact support.",
71
+ retryable: true
72
+ };
73
+ }
74
+ }
75
+ async function submitSignedRecovery(params) {
76
+ const { backendUrl, chainId, depositId, signer, destination, signRecovery, debug } = params;
77
+ const scope = "service:recovery";
78
+ const typedData = {
79
+ domain: RECOVER_DOMAIN,
80
+ types: RECOVER_TYPES,
81
+ primaryType: "RecoverDeposit",
82
+ message: { depositId: BigInt(depositId), destination }
83
+ };
84
+ let signature;
85
+ try {
86
+ signature = await signRecovery({
87
+ typedData,
88
+ chainId,
89
+ signer,
90
+ depositId,
91
+ destination
92
+ });
93
+ } catch (error) {
94
+ debugError(debug, scope, "signRecovery:failed", error);
95
+ throw new RecoveryError(
96
+ "Signature request was declined. Approve it in your wallet to recover this deposit.",
97
+ 0,
98
+ void 0,
99
+ true,
100
+ "signature"
101
+ );
102
+ }
103
+ if (!signature) {
104
+ throw new RecoveryError(
105
+ "Signature request was declined. Approve it in your wallet to recover this deposit.",
106
+ 0,
107
+ void 0,
108
+ true,
109
+ "signature"
110
+ );
111
+ }
112
+ const url = `${backendUrl.replace(/\/$/, "")}/deposits/recover`;
113
+ debugLog(debug, scope, "submitSignedRecovery:request", {
114
+ url,
115
+ depositId,
116
+ signer
117
+ });
118
+ let response;
119
+ try {
120
+ response = await fetch(url, {
121
+ method: "POST",
122
+ // The shared const, so recovery carries `x-deposit-modal-version` like
123
+ // every other backend call. Without it this path would be invisible in the
124
+ // per-client version telemetry the processor records.
125
+ headers: serviceHeaders(),
126
+ // `depositId` as a string: it is a uint256 upstream and JSON numbers lose
127
+ // precision well before that range.
128
+ body: JSON.stringify({ depositId, destination, signature })
129
+ });
130
+ } catch (error) {
131
+ debugError(debug, scope, "submitSignedRecovery:network", error);
132
+ const { message, retryable } = formatRecoveryError(0);
133
+ throw new RecoveryError(message, 0, void 0, retryable, "request");
134
+ }
135
+ if (!response.ok) {
136
+ const body = await response.json().catch(() => ({}));
137
+ debugError(debug, scope, "submitSignedRecovery:failed", body, {
138
+ status: response.status
139
+ });
140
+ const { message, retryable } = formatRecoveryError(
141
+ response.status,
142
+ body.code,
143
+ body.error
144
+ );
145
+ throw new RecoveryError(
146
+ message,
147
+ response.status,
148
+ body.code,
149
+ retryable,
150
+ "response"
151
+ );
152
+ }
153
+ const result = await response.json();
154
+ debugLog(debug, scope, "submitSignedRecovery:success", {
155
+ transactionHash: result.transactionHash
156
+ });
157
+ return result;
158
+ }
159
+
160
+ export {
161
+ RecoveryError,
162
+ submitSignedRecovery
163
+ };
package/dist/claim.cjs CHANGED
@@ -1,10 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkTM7VGHAGcjs = require('./chunk-TM7VGHAG.cjs');
4
- require('./chunk-HL5NUKZW.cjs');
5
- require('./chunk-BRYNGLDM.cjs');
6
- require('./chunk-L32UI7LA.cjs');
7
- require('./chunk-O7BCVQ6L.cjs');
3
+ var _chunkYWMWI7PZcjs = require('./chunk-YWMWI7PZ.cjs');
4
+ require('./chunk-X2IPAPXU.cjs');
5
+ require('./chunk-LZFRL2AL.cjs');
6
+ require('./chunk-V2OBGLJD.cjs');
7
+ require('./chunk-6KG642KH.cjs');
8
+ require('./chunk-4KCSH4T3.cjs');
8
9
 
9
10
 
10
- exports.ClaimModal = _chunkTM7VGHAGcjs.ClaimModal;
11
+ exports.ClaimModal = _chunkYWMWI7PZcjs.ClaimModal;
package/dist/claim.d.cts CHANGED
@@ -1,9 +1,17 @@
1
1
  import * as react from 'react';
2
- import { d as ClaimModalProps } from './types-BO4iP6fG.cjs';
3
- export { b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, E as ErrorEventData, s as RecoveryErrorCode, R as RpcUrlMap, S as SignRecovery, t as SignRecoveryPayload } from './types-BO4iP6fG.cjs';
2
+ import { M as ModalUiState } from './modal-ui-state-OD1RmKkK.cjs';
3
+ import { o as ClaimModalProps } from './types-DP_3KwlD.cjs';
4
+ export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsEvent, i as ClaimAnalyticsEventPayload, j as ClaimAnalyticsFailureReason, k as ClaimAnalyticsSessionProperties, l as ClaimAnalyticsStep, m as ClaimAnalyticsUiOutcome, n as ClaimLifecycleEvent, V as ErrorEventData, ac as RecoveryErrorCode, Z as RpcUrlMap, ad as SignRecovery, ae as SignRecoveryPayload } from './types-DP_3KwlD.cjs';
4
5
  import 'viem';
5
6
  import './caip-D8aRWdEY.cjs';
6
7
 
7
- declare function ClaimModal({ signRecovery, isOpen, onClose, inline, closeOnOverlayClick, backendUrl, rpcUrls: rpcUrlsProp, defaultTxHash, defaultRefundDestination, theme, uiConfig, className, onReady, onLifecycle, onEvent, onError, debug, }: ClaimModalProps): react.JSX.Element;
8
+ /**
9
+ * Not part of `ClaimModalProps`: the native embed is the only consumer, and a
10
+ * published prop is immediately someone else's import.
11
+ */
12
+ interface ClaimModalInternalProps {
13
+ onUiState?: (state: ModalUiState) => void;
14
+ }
15
+ declare function ClaimModal({ signRecovery, isOpen, onClose, inline, closeOnOverlayClick, backendUrl, rpcUrls: rpcUrlsProp, defaultTxHash, defaultRefundDestination, theme, uiConfig, className, onReady, onLifecycle, onEvent, onError, enableAnalyticsIngest, analyticsIngestUrl, debug, onUiState, }: ClaimModalProps & ClaimModalInternalProps): react.JSX.Element;
8
16
 
9
17
  export { ClaimModal, ClaimModalProps };
package/dist/claim.d.ts CHANGED
@@ -1,9 +1,17 @@
1
1
  import * as react from 'react';
2
- import { d as ClaimModalProps } from './types-oFblf65g.js';
3
- export { b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, E as ErrorEventData, s as RecoveryErrorCode, R as RpcUrlMap, S as SignRecovery, t as SignRecoveryPayload } from './types-oFblf65g.js';
2
+ import { M as ModalUiState } from './modal-ui-state-OD1RmKkK.js';
3
+ import { o as ClaimModalProps } from './types-Bho4OA03.js';
4
+ export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsEvent, i as ClaimAnalyticsEventPayload, j as ClaimAnalyticsFailureReason, k as ClaimAnalyticsSessionProperties, l as ClaimAnalyticsStep, m as ClaimAnalyticsUiOutcome, n as ClaimLifecycleEvent, V as ErrorEventData, ac as RecoveryErrorCode, Z as RpcUrlMap, ad as SignRecovery, ae as SignRecoveryPayload } from './types-Bho4OA03.js';
4
5
  import 'viem';
5
6
  import './caip-D8aRWdEY.js';
6
7
 
7
- declare function ClaimModal({ signRecovery, isOpen, onClose, inline, closeOnOverlayClick, backendUrl, rpcUrls: rpcUrlsProp, defaultTxHash, defaultRefundDestination, theme, uiConfig, className, onReady, onLifecycle, onEvent, onError, debug, }: ClaimModalProps): react.JSX.Element;
8
+ /**
9
+ * Not part of `ClaimModalProps`: the native embed is the only consumer, and a
10
+ * published prop is immediately someone else's import.
11
+ */
12
+ interface ClaimModalInternalProps {
13
+ onUiState?: (state: ModalUiState) => void;
14
+ }
15
+ declare function ClaimModal({ signRecovery, isOpen, onClose, inline, closeOnOverlayClick, backendUrl, rpcUrls: rpcUrlsProp, defaultTxHash, defaultRefundDestination, theme, uiConfig, className, onReady, onLifecycle, onEvent, onError, enableAnalyticsIngest, analyticsIngestUrl, debug, onUiState, }: ClaimModalProps & ClaimModalInternalProps): react.JSX.Element;
8
16
 
9
17
  export { ClaimModal, ClaimModalProps };
package/dist/claim.mjs CHANGED
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  ClaimModal
3
- } from "./chunk-2TPSF77V.mjs";
4
- import "./chunk-JE4R5VA3.mjs";
5
- import "./chunk-FXXUIK4E.mjs";
6
- import "./chunk-IAGFDSNC.mjs";
7
- import "./chunk-3STTWRAN.mjs";
3
+ } from "./chunk-CFKC77SV.mjs";
4
+ import "./chunk-ZEO6ADM3.mjs";
5
+ import "./chunk-WUJIKCFU.mjs";
6
+ import "./chunk-IN77XSWO.mjs";
7
+ import "./chunk-K4H6TGBE.mjs";
8
+ import "./chunk-VUATPOWJ.mjs";
8
9
  export {
9
10
  ClaimModal
10
11
  };
@@ -1,4 +1,3 @@
1
- import { Chain } from 'viem/chains';
2
1
  import { Address } from 'viem';
3
2
 
4
3
  declare function getChainIcon(chainId: number | "solana" | "hypercore"): string | undefined;
@@ -13,9 +12,14 @@ declare function tokenIconUrl(symbol: string): string;
13
12
  declare function getTokenIcon(symbol: string): string;
14
13
 
15
14
  declare const NATIVE_TOKEN_ADDRESS: Address;
16
- declare const CHAIN_BY_ID: Record<number, Chain>;
17
- declare const SOURCE_CHAINS: Chain[];
18
- declare const SUPPORTED_CHAINS: Chain[];
15
+ /**
16
+ * Source chains this release knows by name, in picker order.
17
+ *
18
+ * Ids, not viem `Chain` objects: `/chains` is the source of truth for what a
19
+ * chain IS — its name, RPC, explorer, gas token — and this is only the
20
+ * curated subset with a bundled token matrix and display order.
21
+ */
22
+ declare const SUPPORTED_CHAIN_IDS: readonly number[];
19
23
  type ChainRegistryToken = {
20
24
  symbol: string;
21
25
  address: Address;
@@ -31,8 +35,9 @@ type SupportedTokenOption = {
31
35
  address: Address;
32
36
  decimals: number;
33
37
  };
34
- declare function getChainId(chain: Chain | number): number;
35
- declare function getChainObject(chain: Chain | number): Chain | undefined;
38
+ declare function getChainId(chain: {
39
+ id: number;
40
+ } | number): number;
36
41
  declare function getUsdcAddress(chainId: number): Address | undefined;
37
42
  declare function getUsdcDecimals(chainId: number): number;
38
43
  declare function getTokenAddress(symbol: string, chainId: number): Address | undefined;
@@ -55,4 +60,4 @@ declare function getExplorerUrl(chainId: number | "solana" | "hypercore"): strin
55
60
  declare function getExplorerTxUrl(chainId: number | "solana" | "hypercore", txHash: string): string | undefined;
56
61
  declare function getExplorerName(chainId: number | "solana" | "hypercore"): string;
57
62
 
58
- export { CHAIN_BY_ID as C, NATIVE_TOKEN_ADDRESS as N, SOURCE_CHAINS as S, SUPPORTED_CHAINS as a, getChainIcon as b, chainRegistry as c, getChainId as d, getChainName as e, findChainIdForToken as f, getChainBadge as g, getChainObject as h, getExplorerName as i, getExplorerTxUrl as j, getExplorerUrl as k, getSupportedChainIds as l, getSupportedTargetTokens as m, getSupportedTokenSymbolsForChain as n, getTargetTokenSymbolsForChain as o, getTokenAddress as p, getTokenDecimals as q, getTokenDecimalsByAddress as r, getTokenIcon as s, getTokenSymbol as t, getUsdcAddress as u, getUsdcDecimals as v, isSupportedTokenAddressForChain as w, tokenIconUrl as x, type SupportedTokenOption as y };
63
+ export { NATIVE_TOKEN_ADDRESS as N, SUPPORTED_CHAIN_IDS as S, getChainIcon as a, getChainId as b, chainRegistry as c, getChainName as d, getExplorerName as e, findChainIdForToken as f, getChainBadge as g, getExplorerTxUrl as h, getExplorerUrl as i, getSupportedChainIds as j, getSupportedTargetTokens as k, getSupportedTokenSymbolsForChain as l, getTargetTokenSymbolsForChain as m, getTokenAddress as n, getTokenDecimals as o, getTokenDecimalsByAddress as p, getTokenIcon as q, getTokenSymbol as r, getUsdcAddress as s, getUsdcDecimals as t, isSupportedTokenAddressForChain as u, tokenIconUrl as v, type SupportedTokenOption as w };
@@ -1,4 +1,3 @@
1
- import { Chain } from 'viem/chains';
2
1
  import { Address } from 'viem';
3
2
 
4
3
  declare function getChainIcon(chainId: number | "solana" | "hypercore"): string | undefined;
@@ -13,9 +12,14 @@ declare function tokenIconUrl(symbol: string): string;
13
12
  declare function getTokenIcon(symbol: string): string;
14
13
 
15
14
  declare const NATIVE_TOKEN_ADDRESS: Address;
16
- declare const CHAIN_BY_ID: Record<number, Chain>;
17
- declare const SOURCE_CHAINS: Chain[];
18
- declare const SUPPORTED_CHAINS: Chain[];
15
+ /**
16
+ * Source chains this release knows by name, in picker order.
17
+ *
18
+ * Ids, not viem `Chain` objects: `/chains` is the source of truth for what a
19
+ * chain IS — its name, RPC, explorer, gas token — and this is only the
20
+ * curated subset with a bundled token matrix and display order.
21
+ */
22
+ declare const SUPPORTED_CHAIN_IDS: readonly number[];
19
23
  type ChainRegistryToken = {
20
24
  symbol: string;
21
25
  address: Address;
@@ -31,8 +35,9 @@ type SupportedTokenOption = {
31
35
  address: Address;
32
36
  decimals: number;
33
37
  };
34
- declare function getChainId(chain: Chain | number): number;
35
- declare function getChainObject(chain: Chain | number): Chain | undefined;
38
+ declare function getChainId(chain: {
39
+ id: number;
40
+ } | number): number;
36
41
  declare function getUsdcAddress(chainId: number): Address | undefined;
37
42
  declare function getUsdcDecimals(chainId: number): number;
38
43
  declare function getTokenAddress(symbol: string, chainId: number): Address | undefined;
@@ -55,4 +60,4 @@ declare function getExplorerUrl(chainId: number | "solana" | "hypercore"): strin
55
60
  declare function getExplorerTxUrl(chainId: number | "solana" | "hypercore", txHash: string): string | undefined;
56
61
  declare function getExplorerName(chainId: number | "solana" | "hypercore"): string;
57
62
 
58
- export { CHAIN_BY_ID as C, NATIVE_TOKEN_ADDRESS as N, SOURCE_CHAINS as S, SUPPORTED_CHAINS as a, getChainIcon as b, chainRegistry as c, getChainId as d, getChainName as e, findChainIdForToken as f, getChainBadge as g, getChainObject as h, getExplorerName as i, getExplorerTxUrl as j, getExplorerUrl as k, getSupportedChainIds as l, getSupportedTargetTokens as m, getSupportedTokenSymbolsForChain as n, getTargetTokenSymbolsForChain as o, getTokenAddress as p, getTokenDecimals as q, getTokenDecimalsByAddress as r, getTokenIcon as s, getTokenSymbol as t, getUsdcAddress as u, getUsdcDecimals as v, isSupportedTokenAddressForChain as w, tokenIconUrl as x, type SupportedTokenOption as y };
63
+ export { NATIVE_TOKEN_ADDRESS as N, SUPPORTED_CHAIN_IDS as S, getChainIcon as a, getChainId as b, chainRegistry as c, getChainName as d, getExplorerName as e, findChainIdForToken as f, getChainBadge as g, getExplorerTxUrl as h, getExplorerUrl as i, getSupportedChainIds as j, getSupportedTargetTokens as k, getSupportedTokenSymbolsForChain as l, getTargetTokenSymbolsForChain as m, getTokenAddress as n, getTokenDecimals as o, getTokenDecimalsByAddress as p, getTokenIcon as q, getTokenSymbol as r, getUsdcAddress as s, getUsdcDecimals as t, isSupportedTokenAddressForChain as u, tokenIconUrl as v, type SupportedTokenOption as w };
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkL32UI7LAcjs = require('./chunk-L32UI7LA.cjs');
3
+ var _chunk6KG642KHcjs = require('./chunk-6KG642KH.cjs');
4
4
 
5
5
 
6
6
 
@@ -32,10 +32,10 @@ var _chunkL32UI7LAcjs = require('./chunk-L32UI7LA.cjs');
32
32
 
33
33
 
34
34
 
35
+ var _chunk4KCSH4T3cjs = require('./chunk-4KCSH4T3.cjs');
35
36
 
36
37
 
37
38
 
38
- var _chunkO7BCVQ6Lcjs = require('./chunk-O7BCVQ6L.cjs');
39
39
 
40
40
 
41
41
 
@@ -65,10 +65,4 @@ var _chunkO7BCVQ6Lcjs = require('./chunk-O7BCVQ6L.cjs');
65
65
 
66
66
 
67
67
 
68
-
69
-
70
-
71
-
72
-
73
-
74
- exports.CHAIN_BY_ID = _chunkO7BCVQ6Lcjs.CHAIN_BY_ID; exports.HYPERCORE_CHAIN_ID = _chunkO7BCVQ6Lcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunkO7BCVQ6Lcjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunkO7BCVQ6Lcjs.HYPERCORE_USDC_ADDRESS; exports.MODAL_VERSION = _chunkL32UI7LAcjs.MODAL_VERSION; exports.NATIVE_TOKEN_ADDRESS = _chunkO7BCVQ6Lcjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunkO7BCVQ6Lcjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunkO7BCVQ6Lcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkO7BCVQ6Lcjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkO7BCVQ6Lcjs.chainRegistry; exports.findChainIdForToken = _chunkO7BCVQ6Lcjs.findChainIdForToken; exports.getChainBadge = _chunkO7BCVQ6Lcjs.getChainBadge; exports.getChainIcon = _chunkO7BCVQ6Lcjs.getChainIcon; exports.getChainId = _chunkO7BCVQ6Lcjs.getChainId; exports.getChainName = _chunkO7BCVQ6Lcjs.getChainName; exports.getChainObject = _chunkO7BCVQ6Lcjs.getChainObject; exports.getExplorerName = _chunkO7BCVQ6Lcjs.getExplorerName; exports.getExplorerTxUrl = _chunkO7BCVQ6Lcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkO7BCVQ6Lcjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunkO7BCVQ6Lcjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunkO7BCVQ6Lcjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunkO7BCVQ6Lcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkO7BCVQ6Lcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkO7BCVQ6Lcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkO7BCVQ6Lcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkO7BCVQ6Lcjs.getTokenAddress; exports.getTokenDecimals = _chunkO7BCVQ6Lcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkO7BCVQ6Lcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkO7BCVQ6Lcjs.getTokenIcon; exports.getTokenSymbol = _chunkO7BCVQ6Lcjs.getTokenSymbol; exports.getUsdcAddress = _chunkO7BCVQ6Lcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkO7BCVQ6Lcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkO7BCVQ6Lcjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkO7BCVQ6Lcjs.tokenIconUrl;
68
+ exports.HYPERCORE_CHAIN_ID = _chunk4KCSH4T3cjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunk4KCSH4T3cjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunk4KCSH4T3cjs.HYPERCORE_USDC_ADDRESS; exports.MODAL_VERSION = _chunk6KG642KHcjs.MODAL_VERSION; exports.NATIVE_TOKEN_ADDRESS = _chunk4KCSH4T3cjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunk4KCSH4T3cjs.SOLANA_TOKENS; exports.SUPPORTED_CHAIN_IDS = _chunk4KCSH4T3cjs.SUPPORTED_CHAIN_IDS; exports.chainRegistry = _chunk4KCSH4T3cjs.chainRegistry; exports.findChainIdForToken = _chunk4KCSH4T3cjs.findChainIdForToken; exports.getChainBadge = _chunk4KCSH4T3cjs.getChainBadge; exports.getChainIcon = _chunk4KCSH4T3cjs.getChainIcon; exports.getChainId = _chunk4KCSH4T3cjs.getChainId; exports.getChainName = _chunk4KCSH4T3cjs.getChainName; exports.getExplorerName = _chunk4KCSH4T3cjs.getExplorerName; exports.getExplorerTxUrl = _chunk4KCSH4T3cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunk4KCSH4T3cjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunk4KCSH4T3cjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunk4KCSH4T3cjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunk4KCSH4T3cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunk4KCSH4T3cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunk4KCSH4T3cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunk4KCSH4T3cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunk4KCSH4T3cjs.getTokenAddress; exports.getTokenDecimals = _chunk4KCSH4T3cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunk4KCSH4T3cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunk4KCSH4T3cjs.getTokenIcon; exports.getTokenSymbol = _chunk4KCSH4T3cjs.getTokenSymbol; exports.getUsdcAddress = _chunk4KCSH4T3cjs.getUsdcAddress; exports.getUsdcDecimals = _chunk4KCSH4T3cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunk4KCSH4T3cjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunk4KCSH4T3cjs.tokenIconUrl;
@@ -1,9 +1,8 @@
1
- export { C as CHAIN_BY_ID, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, a as SUPPORTED_CHAINS, y as SupportedTokenOption, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, b as getChainIcon, d as getChainId, e as getChainName, h as getChainObject, i as getExplorerName, j as getExplorerTxUrl, k as getExplorerUrl, l as getSupportedChainIds, m as getSupportedTargetTokens, n as getSupportedTokenSymbolsForChain, o as getTargetTokenSymbolsForChain, p as getTokenAddress, q as getTokenDecimals, r as getTokenDecimalsByAddress, s as getTokenIcon, t as getTokenSymbol, u as getUsdcAddress, v as getUsdcDecimals, w as isSupportedTokenAddressForChain, x as tokenIconUrl } from './constants-FuzG3h4m.cjs';
1
+ export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, w as SupportedTokenOption, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, a as getChainIcon, b as getChainId, d as getChainName, e as getExplorerName, h as getExplorerTxUrl, i as getExplorerUrl, j as getSupportedChainIds, k as getSupportedTargetTokens, l as getSupportedTokenSymbolsForChain, m as getTargetTokenSymbolsForChain, n as getTokenAddress, o as getTokenDecimals, p as getTokenDecimalsByAddress, q as getTokenIcon, r as getTokenSymbol, s as getUsdcAddress, t as getUsdcDecimals, u as isSupportedTokenAddressForChain, v as tokenIconUrl } from './constants-DBrWhJWE.cjs';
2
2
  export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS } from './caip-D8aRWdEY.cjs';
3
- import 'viem/chains';
4
3
  import 'viem';
5
4
 
6
- declare const MODAL_VERSION = "0.12.2";
5
+ declare const MODAL_VERSION = "0.14.0";
7
6
 
8
7
  /**
9
8
  * Lightweight Solana token registry — no `@solana/web3.js` dependency, so it
@@ -1,9 +1,8 @@
1
- export { C as CHAIN_BY_ID, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, a as SUPPORTED_CHAINS, y as SupportedTokenOption, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, b as getChainIcon, d as getChainId, e as getChainName, h as getChainObject, i as getExplorerName, j as getExplorerTxUrl, k as getExplorerUrl, l as getSupportedChainIds, m as getSupportedTargetTokens, n as getSupportedTokenSymbolsForChain, o as getTargetTokenSymbolsForChain, p as getTokenAddress, q as getTokenDecimals, r as getTokenDecimalsByAddress, s as getTokenIcon, t as getTokenSymbol, u as getUsdcAddress, v as getUsdcDecimals, w as isSupportedTokenAddressForChain, x as tokenIconUrl } from './constants-FuzG3h4m.js';
1
+ export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, w as SupportedTokenOption, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, a as getChainIcon, b as getChainId, d as getChainName, e as getExplorerName, h as getExplorerTxUrl, i as getExplorerUrl, j as getSupportedChainIds, k as getSupportedTargetTokens, l as getSupportedTokenSymbolsForChain, m as getTargetTokenSymbolsForChain, n as getTokenAddress, o as getTokenDecimals, p as getTokenDecimalsByAddress, q as getTokenIcon, r as getTokenSymbol, s as getUsdcAddress, t as getUsdcDecimals, u as isSupportedTokenAddressForChain, v as tokenIconUrl } from './constants-DBrWhJWE.js';
2
2
  export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS } from './caip-D8aRWdEY.js';
3
- import 'viem/chains';
4
3
  import 'viem';
5
4
 
6
- declare const MODAL_VERSION = "0.12.2";
5
+ declare const MODAL_VERSION = "0.14.0";
7
6
 
8
7
  /**
9
8
  * Lightweight Solana token registry — no `@solana/web3.js` dependency, so it
@@ -1,22 +1,19 @@
1
1
  import {
2
2
  MODAL_VERSION
3
- } from "./chunk-IAGFDSNC.mjs";
3
+ } from "./chunk-K4H6TGBE.mjs";
4
4
  import {
5
- CHAIN_BY_ID,
6
5
  HYPERCORE_CHAIN_ID,
7
6
  HYPERCORE_SPOT_CAIP2,
8
7
  HYPERCORE_USDC_ADDRESS,
9
8
  NATIVE_TOKEN_ADDRESS,
10
9
  SOLANA_TOKENS,
11
- SOURCE_CHAINS,
12
- SUPPORTED_CHAINS,
10
+ SUPPORTED_CHAIN_IDS,
13
11
  chainRegistry,
14
12
  findChainIdForToken,
15
13
  getChainBadge,
16
14
  getChainIcon,
17
15
  getChainId,
18
16
  getChainName,
19
- getChainObject,
20
17
  getExplorerName,
21
18
  getExplorerTxUrl,
22
19
  getExplorerUrl,
@@ -35,24 +32,21 @@ import {
35
32
  getUsdcDecimals,
36
33
  isSupportedTokenAddressForChain,
37
34
  tokenIconUrl
38
- } from "./chunk-3STTWRAN.mjs";
35
+ } from "./chunk-VUATPOWJ.mjs";
39
36
  export {
40
- CHAIN_BY_ID,
41
37
  HYPERCORE_CHAIN_ID,
42
38
  HYPERCORE_SPOT_CAIP2,
43
39
  HYPERCORE_USDC_ADDRESS,
44
40
  MODAL_VERSION,
45
41
  NATIVE_TOKEN_ADDRESS,
46
42
  SOLANA_TOKENS,
47
- SOURCE_CHAINS,
48
- SUPPORTED_CHAINS,
43
+ SUPPORTED_CHAIN_IDS,
49
44
  chainRegistry,
50
45
  findChainIdForToken,
51
46
  getChainBadge,
52
47
  getChainIcon,
53
48
  getChainId,
54
49
  getChainName,
55
- getChainObject,
56
50
  getExplorerName,
57
51
  getExplorerTxUrl,
58
52
  getExplorerUrl,
package/dist/deposit.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOIN4CXCPcjs = require('./chunk-OIN4CXCP.cjs');
4
- require('./chunk-PWLEBV5V.cjs');
5
- require('./chunk-HL5NUKZW.cjs');
6
- require('./chunk-BRYNGLDM.cjs');
7
- require('./chunk-L32UI7LA.cjs');
8
- require('./chunk-75DVGSAX.cjs');
9
- require('./chunk-O7BCVQ6L.cjs');
3
+ var _chunkYCQZJQO6cjs = require('./chunk-YCQZJQO6.cjs');
4
+ require('./chunk-7ICSHJFE.cjs');
5
+ require('./chunk-LZFRL2AL.cjs');
6
+ require('./chunk-V2OBGLJD.cjs');
7
+ require('./chunk-6KG642KH.cjs');
8
+ require('./chunk-DW2EQA2U.cjs');
9
+ require('./chunk-4KCSH4T3.cjs');
10
10
 
11
11
 
12
- exports.DepositModal = _chunkOIN4CXCPcjs.DepositModal;
12
+ exports.DepositModal = _chunkYCQZJQO6cjs.DepositModal;
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { i as DepositModalProps } from './types-BO4iP6fG.cjs';
3
- export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-BO4iP6fG.cjs';
2
+ import { O as DepositModalProps } from './types-DP_3KwlD.cjs';
3
+ export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, Z as RpcUrlMap } from './types-DP_3KwlD.cjs';
4
4
  import 'viem';
5
5
  import './caip-D8aRWdEY.cjs';
6
6
 
package/dist/deposit.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { i as DepositModalProps } from './types-oFblf65g.js';
3
- export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-oFblf65g.js';
2
+ import { O as DepositModalProps } from './types-Bho4OA03.js';
3
+ export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, Z as RpcUrlMap } from './types-Bho4OA03.js';
4
4
  import 'viem';
5
5
  import './caip-D8aRWdEY.js';
6
6
 
package/dist/deposit.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-SDSKIJC7.mjs";
4
- import "./chunk-J46WDSRD.mjs";
5
- import "./chunk-JE4R5VA3.mjs";
6
- import "./chunk-FXXUIK4E.mjs";
7
- import "./chunk-IAGFDSNC.mjs";
8
- import "./chunk-4ZXQPFNU.mjs";
9
- import "./chunk-3STTWRAN.mjs";
3
+ } from "./chunk-KTUVSKR4.mjs";
4
+ import "./chunk-7SR7ENVJ.mjs";
5
+ import "./chunk-WUJIKCFU.mjs";
6
+ import "./chunk-IN77XSWO.mjs";
7
+ import "./chunk-K4H6TGBE.mjs";
8
+ import "./chunk-RN5VKWI6.mjs";
9
+ import "./chunk-VUATPOWJ.mjs";
10
10
  export {
11
11
  DepositModal
12
12
  };