@rhinestone/deposit-modal 0.18.0 → 0.19.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 (48) hide show
  1. package/README.md +49 -8
  2. package/dist/{DepositModalReown-TVO3ZQQK.cjs → DepositModalReown-UITYXJ6W.cjs} +16 -16
  3. package/dist/{DepositModalReown-VCY65DJX.mjs → DepositModalReown-XBNY6QCI.mjs} +3 -3
  4. package/dist/{WithdrawModal-RMCYJJ4S.mjs → WithdrawModal-DY6A55OA.mjs} +3 -3
  5. package/dist/WithdrawModal-V42OK7L3.cjs +11 -0
  6. package/dist/{chunk-AIZKGFVA.mjs → chunk-5NWLS5BQ.mjs} +69 -19
  7. package/dist/{chunk-R2B6VD4E.mjs → chunk-BIL4ENC3.mjs} +1 -1
  8. package/dist/{chunk-34JVJZEZ.cjs → chunk-EG4H7OMC.cjs} +71 -71
  9. package/dist/{chunk-N3AAT6BS.cjs → chunk-HMUGY66O.cjs} +226 -176
  10. package/dist/{chunk-O4JZKKCZ.cjs → chunk-ISLVD5HQ.cjs} +2 -2
  11. package/dist/{chunk-EKC2IRQG.mjs → chunk-NITKDXHR.mjs} +211 -31
  12. package/dist/{chunk-JV5OGG53.cjs → chunk-OCWSMLOP.cjs} +724 -544
  13. package/dist/{chunk-N6JJG57R.cjs → chunk-PYOC6K24.cjs} +1 -1
  14. package/dist/{chunk-3TEVMP76.mjs → chunk-X6N2XPTO.mjs} +1 -1
  15. package/dist/{chunk-X4EUXBHJ.mjs → chunk-ZGHVJ2XM.mjs} +1 -1
  16. package/dist/compliance.cjs +4 -4
  17. package/dist/compliance.mjs +2 -2
  18. package/dist/constants.cjs +2 -2
  19. package/dist/constants.d.cts +1 -1
  20. package/dist/constants.d.ts +1 -1
  21. package/dist/constants.mjs +1 -1
  22. package/dist/deposit.cjs +4 -4
  23. package/dist/deposit.d.cts +2 -2
  24. package/dist/deposit.d.ts +2 -2
  25. package/dist/deposit.mjs +3 -3
  26. package/dist/embed.cjs +14 -14
  27. package/dist/embed.d.cts +1 -1
  28. package/dist/embed.d.ts +1 -1
  29. package/dist/embed.mjs +4 -4
  30. package/dist/index.cjs +5 -5
  31. package/dist/index.d.cts +1 -1
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.mjs +4 -4
  34. package/dist/offramp.cjs +9 -9
  35. package/dist/offramp.mjs +7 -7
  36. package/dist/onramp.cjs +24 -11
  37. package/dist/onramp.d.cts +24 -6
  38. package/dist/onramp.d.ts +24 -6
  39. package/dist/onramp.mjs +22 -9
  40. package/dist/styles.css +25 -0
  41. package/dist/{types-CZYypODQ.d.ts → types-BOxa1DE-.d.ts} +37 -2
  42. package/dist/{types-CbUs4boj.d.cts → types-BShYNpvO.d.cts} +37 -2
  43. package/dist/withdraw.cjs +4 -4
  44. package/dist/withdraw.d.cts +2 -2
  45. package/dist/withdraw.d.ts +2 -2
  46. package/dist/withdraw.mjs +3 -3
  47. package/package.json +5 -5
  48. package/dist/WithdrawModal-GR3HLYXU.cjs +0 -11
package/dist/onramp.d.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  import { C as CustomerSessionOptions } from './bearer-transport-CVHNBgoV.js';
2
2
  export { a as CustomerSession, S as ScopedRequestError } from './bearer-transport-CVHNBgoV.js';
3
- import { f as RampCurrency, B as BankIntent, R as RampPayment, P as PaymentLegStatus, a as PaymentReturnStatus, b as RampSession, c as RampPage, d as RampOption, e as RampPagination } from './ramp-types-C6aUz4SZ.js';
4
- export { H as HostedNextAction } from './ramp-types-C6aUz4SZ.js';
3
+ import { f as RampCurrency, H as HostedNextAction, B as BankIntent, R as RampPayment, P as PaymentLegStatus, a as PaymentReturnStatus, c as RampPage, d as RampOption, e as RampPagination } from './ramp-types-C6aUz4SZ.js';
5
4
 
6
- interface OnrampSessionRequest extends BankIntent {
5
+ interface OnrampSetupRequest extends BankIntent {
7
6
  purpose: "account_setup";
8
7
  }
9
8
  interface OnrampOptionsRequest extends BankIntent {
@@ -23,15 +22,34 @@ interface OnrampAccount {
23
22
  paymentMethod: "bank_transfer";
24
23
  status: "pending" | "active" | "disabled";
25
24
  }
25
+ /**
26
+ * The result of one account setup. Unlike an offramp session it carries no
27
+ * status and no expiry: the call either configured the account named here, or
28
+ * it failed. There is nothing to poll and nothing that lapses.
29
+ */
30
+ interface OnrampSetup {
31
+ id: string;
32
+ account: OnrampAccount;
33
+ }
34
+ /** Where the customer reads their own bank coordinates; never returned here. */
35
+ interface OnrampAccountDetails {
36
+ nextAction: HostedNextAction;
37
+ }
26
38
  /** No requests until an onramp method is called. */
27
39
  declare function createOnrampService(options: CustomerSessionOptions): {
28
- createSession: (body: OnrampSessionRequest) => Promise<RampSession>;
29
- getSession: (id: string) => Promise<RampSession>;
40
+ createSetup: (body: OnrampSetupRequest) => Promise<OnrampSetup>;
41
+ getSetup: (id: string) => Promise<OnrampSetup>;
30
42
  getOptions: (intent: OnrampOptionsRequest) => Promise<RampPage<RampOption>>;
31
43
  listAccounts: (page?: RampPagination) => Promise<RampPage<OnrampAccount>>;
32
44
  getAccount: (id: string) => Promise<OnrampAccount>;
45
+ /**
46
+ * Mint a hosted address for the customer to read their account number or
47
+ * international account number from. A POST because minting one is a
48
+ * provider write; the coordinates themselves never cross this API.
49
+ */
50
+ getAccountDetails: (id: string) => Promise<OnrampAccountDetails>;
33
51
  listPayments: (page?: RampPagination) => Promise<RampPage<OnrampPayment>>;
34
52
  getPayment: (id: string) => Promise<OnrampPayment>;
35
53
  };
36
54
 
37
- export { CustomerSessionOptions, type OnrampAccount, type OnrampOptionsRequest, type OnrampPayment, type OnrampSessionRequest, PaymentLegStatus, PaymentReturnStatus, RampCurrency, RampOption, RampPage, RampPagination, RampSession, createOnrampService };
55
+ export { CustomerSessionOptions, HostedNextAction, type OnrampAccount, type OnrampAccountDetails, type OnrampOptionsRequest, type OnrampPayment, type OnrampSetup, type OnrampSetupRequest, PaymentLegStatus, PaymentReturnStatus, RampCurrency, RampOption, RampPage, RampPagination, createOnrampService };
package/dist/onramp.mjs CHANGED
@@ -5,20 +5,33 @@ import {
5
5
  import {
6
6
  ScopedRequestError,
7
7
  createBearerTransport
8
- } from "./chunk-X4EUXBHJ.mjs";
9
- import "./chunk-3TEVMP76.mjs";
8
+ } from "./chunk-ZGHVJ2XM.mjs";
9
+ import "./chunk-X6N2XPTO.mjs";
10
10
 
11
11
  // src/core/onramp-service.ts
12
12
  function createOnrampService(options) {
13
13
  const request = createBearerTransport(options);
14
14
  return {
15
- createSession: (body) => request("/onramp/sessions", body),
16
- getSession: (id) => request(`/onramp/sessions/${rampResourceId(id)}`),
17
- getOptions: (intent) => request(`/onramp/options?${rampQuery(intent)}`),
18
- listAccounts: (page = {}) => request(`/onramp/accounts?${rampQuery(page)}`),
19
- getAccount: (id) => request(`/onramp/accounts/${rampResourceId(id)}`),
20
- listPayments: (page = {}) => request(`/onramp/payments?${rampQuery(page)}`),
21
- getPayment: (id) => request(`/onramp/payments/${rampResourceId(id)}`)
15
+ createSetup: (body) => request("/onramp/noah/setup", body),
16
+ getSetup: (id) => request(`/onramp/noah/setup/${rampResourceId(id)}`),
17
+ getOptions: (intent) => request(`/onramp/noah/options?${rampQuery(intent)}`),
18
+ listAccounts: (page = {}) => request(
19
+ `/onramp/noah/accounts?${rampQuery(page)}`
20
+ ),
21
+ getAccount: (id) => request(`/onramp/noah/accounts/${rampResourceId(id)}`),
22
+ /**
23
+ * Mint a hosted address for the customer to read their account number or
24
+ * international account number from. A POST because minting one is a
25
+ * provider write; the coordinates themselves never cross this API.
26
+ */
27
+ getAccountDetails: (id) => request(
28
+ `/onramp/noah/accounts/${rampResourceId(id)}/details`,
29
+ {}
30
+ ),
31
+ listPayments: (page = {}) => request(
32
+ `/onramp/noah/payments?${rampQuery(page)}`
33
+ ),
34
+ getPayment: (id) => request(`/onramp/noah/payments/${rampResourceId(id)}`)
22
35
  };
23
36
  }
24
37
  export {
package/dist/styles.css CHANGED
@@ -2176,6 +2176,18 @@
2176
2176
  font-feature-settings: "tnum";
2177
2177
  }
2178
2178
 
2179
+ /* Payment mode's price. Same weight as the input it replaces, but sized down:
2180
+ a token amount carries more digits than a USD figure and must not wrap. */
2181
+ .rs-amount-fixed {
2182
+ width: 100%;
2183
+ font-size: 40px;
2184
+ font-weight: 700;
2185
+ line-height: 1.1;
2186
+ color: var(--rs-foreground);
2187
+ font-feature-settings: "tnum";
2188
+ overflow-wrap: anywhere;
2189
+ }
2190
+
2179
2191
  .rs-amount-prefix {
2180
2192
  flex: none;
2181
2193
  user-select: none;
@@ -3491,6 +3503,19 @@
3491
3503
  height: 190px;
3492
3504
  }
3493
3505
 
3506
+ /* Sits above the address and outranks it: the amount is the instruction the
3507
+ payer has to get right, the address is what the QR already carries. */
3508
+ .rs-deposit-address-amount {
3509
+ width: 100%;
3510
+ padding: 0 16px 4px;
3511
+ font-size: 15px;
3512
+ font-weight: 600;
3513
+ line-height: normal;
3514
+ color: var(--rs-foreground);
3515
+ text-align: center;
3516
+ font-feature-settings: "tnum";
3517
+ }
3518
+
3494
3519
  .rs-deposit-address-value {
3495
3520
  width: 100%;
3496
3521
  padding: 0 16px 12px;
@@ -199,6 +199,32 @@ interface FiatMethodsConfig {
199
199
  "bank-transfer"?: boolean;
200
200
  "apple-pay"?: boolean;
201
201
  }
202
+ /**
203
+ * Turns the modal into a checkout for one order: the amount is the merchant's
204
+ * price rather than the payer's choice, and the account is the order's rather
205
+ * than the recipient's.
206
+ *
207
+ * Every funding method stays available, and only the wallet path can hold a
208
+ * payer to the amount — a QR, exchange or card payer can still send the wrong
209
+ * one. Reconcile what arrives; `destinationAmount` on the `complete` lifecycle
210
+ * event is the delivered figure.
211
+ */
212
+ interface PaymentConfig {
213
+ /**
214
+ * The order's account salt, as the merchant's server registered it. Both sides
215
+ * must pass the same 32 bytes: the address is derived from it, so a different
216
+ * salt is a different account and the payment lands somewhere the merchant is
217
+ * not watching. It replaces the (recipient, target) derivation entirely, which
218
+ * is what lets one recipient hold many orders.
219
+ */
220
+ salt: Hex;
221
+ /**
222
+ * Required destination amount, in base units of `targetToken`. NOT a USD
223
+ * figure — the amount screen's own input is USD, and this is deliberately not
224
+ * that, since it is the quantity the merchant must receive.
225
+ */
226
+ amount: string;
227
+ }
202
228
  interface DepositModalProps {
203
229
  /**
204
230
  * A wallet the host app already has connected. Pass this to reuse the user's
@@ -227,6 +253,8 @@ interface DepositModalProps {
227
253
  */
228
254
  defaultAmount?: string;
229
255
  recipient: Address | string;
256
+ /** Renders the modal as a checkout for one order. See {@link PaymentConfig}. */
257
+ payment?: PaymentConfig;
230
258
  /**
231
259
  * The user's current in-app balance, in USD, as the consuming app displays
232
260
  * it. When provided, the amount screen shows a "Balance after deposit" row
@@ -487,6 +515,13 @@ type DepositLifecycleEvent = {
487
515
  destinationTxHash?: string;
488
516
  /** Source-token base units (e.g. "1100000" for 1.10 USDC). */
489
517
  amount: string;
518
+ /**
519
+ * What actually arrived, in `targetToken` base units, once the bridge
520
+ * reports it — the only field that answers "was the invoice paid in
521
+ * full?". `amount` is the source side and says nothing about delivery.
522
+ * Absent until the completing event carries a destination leg.
523
+ */
524
+ destinationAmount?: string;
490
525
  sourceChain: ChainId | "unknown";
491
526
  sourceToken?: string;
492
527
  /**
@@ -894,7 +929,7 @@ type WithdrawAnalyticsEvent = WithdrawAnalyticsEventPayload & AnalyticsEventEnve
894
929
  */
895
930
  type ClaimAnalyticsStep = "lookup" | "select" | "review" | "submit";
896
931
  /** Every reason has a call site in the claim flow; none is aspirational. */
897
- type ClaimAnalyticsFailureReason = RoutableAnalyticsReason<"lookup_transaction_hash_invalid" | "lookup_failed" | "lookup_no_deposits_found" | "lookup_no_eligible_deposits" | "refund_destination_invalid" | "recovery_deposit_data_incomplete" | "signature_rejected" | "signature_invalid" | "recovery_deposit_not_recoverable" | "recovery_unsupported" | "signature_verification_unavailable" | "refund_reconciliation_required" | "refund_failed" | "refund_service_unreachable" | "modal_close_refused_in_flight">;
932
+ type ClaimAnalyticsFailureReason = RoutableAnalyticsReason<"lookup_transaction_hash_invalid" | "lookup_failed" | "lookup_no_deposits_found" | "lookup_no_eligible_deposits" | "refund_destination_invalid" | "refund_destination_is_deposit_address" | "recovery_deposit_data_incomplete" | "signature_rejected" | "signature_invalid" | "recovery_deposit_not_recoverable" | "recovery_unsupported" | "signature_verification_unavailable" | "refund_reconciliation_required" | "refund_failed" | "refund_service_unreachable" | "modal_close_refused_in_flight">;
898
933
  type ClaimAnalyticsAbandonmentReason = "back" | "modal_close";
899
934
  type ClaimAnalyticsCloseSource = "header_button" | "escape" | "overlay" | "host_controlled" | "success_done" | "failure_cancel"
900
935
  /** The labelled control back to the history list a recovery was started from. */
@@ -1017,4 +1052,4 @@ interface AnalyticsIngestFailureEvent {
1017
1052
  }
1018
1053
  type ModalAnalyticsEvent = DepositAnalyticsEvent | WithdrawAnalyticsEvent | ClaimAnalyticsEvent | AnalyticsIngestFailureEvent;
1019
1054
 
1020
- export type { OutputTokenRule as $, AnalyticsEventEnvelope as A, DepositAnalyticsStep as B, ChainId as C, DepositAnalyticsAbandonmentReason as D, DepositAnalyticsTransferStep as E, DepositAnalyticsUiOutcome as F, DepositAnalyticsWalletStep as G, DepositAssetMigrationMethodIdentifiers as H, DepositCompleteEventData as I, DepositExchangeConnectMethodIdentifiers as J, DepositFailedEventData as K, DepositFiatOnrampMethodIdentifiers as L, DepositFundingMethod as M, DepositLifecycleEvent as N, DepositModalProps as O, DepositModalTheme as P, DepositModalUIConfig as Q, DepositSubmittedEventData as R, DepositTransferHandoffIdentifiers as S, DepositWalletIntegration as T, DepositWalletMethodIdentifiers as U, ErrorEventData as V, FiatMethodsConfig as W, HistoryAnalyticsBadge as X, HistoryClaimEntrySource as Y, HistoryStatus as Z, ModalAnalyticsEvent as _, AnalyticsIngestFailureEvent as a, RecoveryErrorCode as a0, RpcUrlMap as a1, SignRecovery as a2, SignRecoveryPayload as a3, WithdrawAnalyticsAbandonmentReason as a4, WithdrawAnalyticsCloseSource as a5, WithdrawAnalyticsEvent as a6, WithdrawAnalyticsEventPayload as a7, WithdrawAnalyticsFailureReason as a8, WithdrawAnalyticsSessionProperties as a9, WithdrawAnalyticsStep as aa, WithdrawAnalyticsUiOutcome as ab, WithdrawCompleteEventData as ac, WithdrawFailedEventData as ad, WithdrawLifecycleEvent as ae, WithdrawModalProps as af, WithdrawSubmittedEventData as ag, WithdrawTransferRequest as ah, AnalyticsIngestFailureReason as b, AnalyticsReasonFamily as c, AssetMigrationsConfig as d, AssetOption as e, ClaimAnalyticsAbandonmentReason as f, ClaimAnalyticsCloseSource as g, ClaimAnalyticsCorrelation as h, ClaimAnalyticsEntrySource as i, ClaimAnalyticsEvent as j, ClaimAnalyticsEventPayload as k, ClaimAnalyticsFailureReason as l, ClaimAnalyticsSessionProperties as m, ClaimAnalyticsStep as n, ClaimAnalyticsUiOutcome as o, ConnectedEventData as p, DepositAnalyticsCloseSource as q, DepositAnalyticsCorrelator as r, DepositAnalyticsEvent as s, DepositAnalyticsEventPayload as t, DepositAnalyticsExchangeStep as u, DepositAnalyticsFailureReason as v, DepositAnalyticsFiatStep as w, DepositAnalyticsMigrationStep as x, DepositAnalyticsSessionProperties as y, DepositAnalyticsSharedStep as z };
1055
+ export type { OutputTokenRule as $, AnalyticsEventEnvelope as A, DepositAnalyticsStep as B, ChainId as C, DepositAnalyticsAbandonmentReason as D, DepositAnalyticsTransferStep as E, DepositAnalyticsUiOutcome as F, DepositAnalyticsWalletStep as G, DepositAssetMigrationMethodIdentifiers as H, DepositCompleteEventData as I, DepositExchangeConnectMethodIdentifiers as J, DepositFailedEventData as K, DepositFiatOnrampMethodIdentifiers as L, DepositFundingMethod as M, DepositLifecycleEvent as N, DepositModalProps as O, DepositModalTheme as P, DepositModalUIConfig as Q, DepositSubmittedEventData as R, DepositTransferHandoffIdentifiers as S, DepositWalletIntegration as T, DepositWalletMethodIdentifiers as U, ErrorEventData as V, FiatMethodsConfig as W, HistoryAnalyticsBadge as X, HistoryClaimEntrySource as Y, HistoryStatus as Z, ModalAnalyticsEvent as _, AnalyticsIngestFailureEvent as a, PaymentConfig as a0, RecoveryErrorCode as a1, RpcUrlMap as a2, SignRecovery as a3, SignRecoveryPayload as a4, WithdrawAnalyticsAbandonmentReason as a5, WithdrawAnalyticsCloseSource as a6, WithdrawAnalyticsEvent as a7, WithdrawAnalyticsEventPayload as a8, WithdrawAnalyticsFailureReason as a9, WithdrawAnalyticsSessionProperties as aa, WithdrawAnalyticsStep as ab, WithdrawAnalyticsUiOutcome as ac, WithdrawCompleteEventData as ad, WithdrawFailedEventData as ae, WithdrawLifecycleEvent as af, WithdrawModalProps as ag, WithdrawSubmittedEventData as ah, WithdrawTransferRequest as ai, AnalyticsIngestFailureReason as b, AnalyticsReasonFamily as c, AssetMigrationsConfig as d, AssetOption as e, ClaimAnalyticsAbandonmentReason as f, ClaimAnalyticsCloseSource as g, ClaimAnalyticsCorrelation as h, ClaimAnalyticsEntrySource as i, ClaimAnalyticsEvent as j, ClaimAnalyticsEventPayload as k, ClaimAnalyticsFailureReason as l, ClaimAnalyticsSessionProperties as m, ClaimAnalyticsStep as n, ClaimAnalyticsUiOutcome as o, ConnectedEventData as p, DepositAnalyticsCloseSource as q, DepositAnalyticsCorrelator as r, DepositAnalyticsEvent as s, DepositAnalyticsEventPayload as t, DepositAnalyticsExchangeStep as u, DepositAnalyticsFailureReason as v, DepositAnalyticsFiatStep as w, DepositAnalyticsMigrationStep as x, DepositAnalyticsSessionProperties as y, DepositAnalyticsSharedStep as z };
@@ -199,6 +199,32 @@ interface FiatMethodsConfig {
199
199
  "bank-transfer"?: boolean;
200
200
  "apple-pay"?: boolean;
201
201
  }
202
+ /**
203
+ * Turns the modal into a checkout for one order: the amount is the merchant's
204
+ * price rather than the payer's choice, and the account is the order's rather
205
+ * than the recipient's.
206
+ *
207
+ * Every funding method stays available, and only the wallet path can hold a
208
+ * payer to the amount — a QR, exchange or card payer can still send the wrong
209
+ * one. Reconcile what arrives; `destinationAmount` on the `complete` lifecycle
210
+ * event is the delivered figure.
211
+ */
212
+ interface PaymentConfig {
213
+ /**
214
+ * The order's account salt, as the merchant's server registered it. Both sides
215
+ * must pass the same 32 bytes: the address is derived from it, so a different
216
+ * salt is a different account and the payment lands somewhere the merchant is
217
+ * not watching. It replaces the (recipient, target) derivation entirely, which
218
+ * is what lets one recipient hold many orders.
219
+ */
220
+ salt: Hex;
221
+ /**
222
+ * Required destination amount, in base units of `targetToken`. NOT a USD
223
+ * figure — the amount screen's own input is USD, and this is deliberately not
224
+ * that, since it is the quantity the merchant must receive.
225
+ */
226
+ amount: string;
227
+ }
202
228
  interface DepositModalProps {
203
229
  /**
204
230
  * A wallet the host app already has connected. Pass this to reuse the user's
@@ -227,6 +253,8 @@ interface DepositModalProps {
227
253
  */
228
254
  defaultAmount?: string;
229
255
  recipient: Address | string;
256
+ /** Renders the modal as a checkout for one order. See {@link PaymentConfig}. */
257
+ payment?: PaymentConfig;
230
258
  /**
231
259
  * The user's current in-app balance, in USD, as the consuming app displays
232
260
  * it. When provided, the amount screen shows a "Balance after deposit" row
@@ -487,6 +515,13 @@ type DepositLifecycleEvent = {
487
515
  destinationTxHash?: string;
488
516
  /** Source-token base units (e.g. "1100000" for 1.10 USDC). */
489
517
  amount: string;
518
+ /**
519
+ * What actually arrived, in `targetToken` base units, once the bridge
520
+ * reports it — the only field that answers "was the invoice paid in
521
+ * full?". `amount` is the source side and says nothing about delivery.
522
+ * Absent until the completing event carries a destination leg.
523
+ */
524
+ destinationAmount?: string;
490
525
  sourceChain: ChainId | "unknown";
491
526
  sourceToken?: string;
492
527
  /**
@@ -894,7 +929,7 @@ type WithdrawAnalyticsEvent = WithdrawAnalyticsEventPayload & AnalyticsEventEnve
894
929
  */
895
930
  type ClaimAnalyticsStep = "lookup" | "select" | "review" | "submit";
896
931
  /** Every reason has a call site in the claim flow; none is aspirational. */
897
- type ClaimAnalyticsFailureReason = RoutableAnalyticsReason<"lookup_transaction_hash_invalid" | "lookup_failed" | "lookup_no_deposits_found" | "lookup_no_eligible_deposits" | "refund_destination_invalid" | "recovery_deposit_data_incomplete" | "signature_rejected" | "signature_invalid" | "recovery_deposit_not_recoverable" | "recovery_unsupported" | "signature_verification_unavailable" | "refund_reconciliation_required" | "refund_failed" | "refund_service_unreachable" | "modal_close_refused_in_flight">;
932
+ type ClaimAnalyticsFailureReason = RoutableAnalyticsReason<"lookup_transaction_hash_invalid" | "lookup_failed" | "lookup_no_deposits_found" | "lookup_no_eligible_deposits" | "refund_destination_invalid" | "refund_destination_is_deposit_address" | "recovery_deposit_data_incomplete" | "signature_rejected" | "signature_invalid" | "recovery_deposit_not_recoverable" | "recovery_unsupported" | "signature_verification_unavailable" | "refund_reconciliation_required" | "refund_failed" | "refund_service_unreachable" | "modal_close_refused_in_flight">;
898
933
  type ClaimAnalyticsAbandonmentReason = "back" | "modal_close";
899
934
  type ClaimAnalyticsCloseSource = "header_button" | "escape" | "overlay" | "host_controlled" | "success_done" | "failure_cancel"
900
935
  /** The labelled control back to the history list a recovery was started from. */
@@ -1017,4 +1052,4 @@ interface AnalyticsIngestFailureEvent {
1017
1052
  }
1018
1053
  type ModalAnalyticsEvent = DepositAnalyticsEvent | WithdrawAnalyticsEvent | ClaimAnalyticsEvent | AnalyticsIngestFailureEvent;
1019
1054
 
1020
- export type { OutputTokenRule as $, AnalyticsEventEnvelope as A, DepositAnalyticsStep as B, ChainId as C, DepositAnalyticsAbandonmentReason as D, DepositAnalyticsTransferStep as E, DepositAnalyticsUiOutcome as F, DepositAnalyticsWalletStep as G, DepositAssetMigrationMethodIdentifiers as H, DepositCompleteEventData as I, DepositExchangeConnectMethodIdentifiers as J, DepositFailedEventData as K, DepositFiatOnrampMethodIdentifiers as L, DepositFundingMethod as M, DepositLifecycleEvent as N, DepositModalProps as O, DepositModalTheme as P, DepositModalUIConfig as Q, DepositSubmittedEventData as R, DepositTransferHandoffIdentifiers as S, DepositWalletIntegration as T, DepositWalletMethodIdentifiers as U, ErrorEventData as V, FiatMethodsConfig as W, HistoryAnalyticsBadge as X, HistoryClaimEntrySource as Y, HistoryStatus as Z, ModalAnalyticsEvent as _, AnalyticsIngestFailureEvent as a, RecoveryErrorCode as a0, RpcUrlMap as a1, SignRecovery as a2, SignRecoveryPayload as a3, WithdrawAnalyticsAbandonmentReason as a4, WithdrawAnalyticsCloseSource as a5, WithdrawAnalyticsEvent as a6, WithdrawAnalyticsEventPayload as a7, WithdrawAnalyticsFailureReason as a8, WithdrawAnalyticsSessionProperties as a9, WithdrawAnalyticsStep as aa, WithdrawAnalyticsUiOutcome as ab, WithdrawCompleteEventData as ac, WithdrawFailedEventData as ad, WithdrawLifecycleEvent as ae, WithdrawModalProps as af, WithdrawSubmittedEventData as ag, WithdrawTransferRequest as ah, AnalyticsIngestFailureReason as b, AnalyticsReasonFamily as c, AssetMigrationsConfig as d, AssetOption as e, ClaimAnalyticsAbandonmentReason as f, ClaimAnalyticsCloseSource as g, ClaimAnalyticsCorrelation as h, ClaimAnalyticsEntrySource as i, ClaimAnalyticsEvent as j, ClaimAnalyticsEventPayload as k, ClaimAnalyticsFailureReason as l, ClaimAnalyticsSessionProperties as m, ClaimAnalyticsStep as n, ClaimAnalyticsUiOutcome as o, ConnectedEventData as p, DepositAnalyticsCloseSource as q, DepositAnalyticsCorrelator as r, DepositAnalyticsEvent as s, DepositAnalyticsEventPayload as t, DepositAnalyticsExchangeStep as u, DepositAnalyticsFailureReason as v, DepositAnalyticsFiatStep as w, DepositAnalyticsMigrationStep as x, DepositAnalyticsSessionProperties as y, DepositAnalyticsSharedStep as z };
1055
+ export type { OutputTokenRule as $, AnalyticsEventEnvelope as A, DepositAnalyticsStep as B, ChainId as C, DepositAnalyticsAbandonmentReason as D, DepositAnalyticsTransferStep as E, DepositAnalyticsUiOutcome as F, DepositAnalyticsWalletStep as G, DepositAssetMigrationMethodIdentifiers as H, DepositCompleteEventData as I, DepositExchangeConnectMethodIdentifiers as J, DepositFailedEventData as K, DepositFiatOnrampMethodIdentifiers as L, DepositFundingMethod as M, DepositLifecycleEvent as N, DepositModalProps as O, DepositModalTheme as P, DepositModalUIConfig as Q, DepositSubmittedEventData as R, DepositTransferHandoffIdentifiers as S, DepositWalletIntegration as T, DepositWalletMethodIdentifiers as U, ErrorEventData as V, FiatMethodsConfig as W, HistoryAnalyticsBadge as X, HistoryClaimEntrySource as Y, HistoryStatus as Z, ModalAnalyticsEvent as _, AnalyticsIngestFailureEvent as a, PaymentConfig as a0, RecoveryErrorCode as a1, RpcUrlMap as a2, SignRecovery as a3, SignRecoveryPayload as a4, WithdrawAnalyticsAbandonmentReason as a5, WithdrawAnalyticsCloseSource as a6, WithdrawAnalyticsEvent as a7, WithdrawAnalyticsEventPayload as a8, WithdrawAnalyticsFailureReason as a9, WithdrawAnalyticsSessionProperties as aa, WithdrawAnalyticsStep as ab, WithdrawAnalyticsUiOutcome as ac, WithdrawCompleteEventData as ad, WithdrawFailedEventData as ae, WithdrawLifecycleEvent as af, WithdrawModalProps as ag, WithdrawSubmittedEventData as ah, WithdrawTransferRequest as ai, AnalyticsIngestFailureReason as b, AnalyticsReasonFamily as c, AssetMigrationsConfig as d, AssetOption as e, ClaimAnalyticsAbandonmentReason as f, ClaimAnalyticsCloseSource as g, ClaimAnalyticsCorrelation as h, ClaimAnalyticsEntrySource as i, ClaimAnalyticsEvent as j, ClaimAnalyticsEventPayload as k, ClaimAnalyticsFailureReason as l, ClaimAnalyticsSessionProperties as m, ClaimAnalyticsStep as n, ClaimAnalyticsUiOutcome as o, ConnectedEventData as p, DepositAnalyticsCloseSource as q, DepositAnalyticsCorrelator as r, DepositAnalyticsEvent as s, DepositAnalyticsEventPayload as t, DepositAnalyticsExchangeStep as u, DepositAnalyticsFailureReason as v, DepositAnalyticsFiatStep as w, DepositAnalyticsMigrationStep as x, DepositAnalyticsSessionProperties as y, DepositAnalyticsSharedStep as z };
package/dist/withdraw.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk34JVJZEZcjs = require('./chunk-34JVJZEZ.cjs');
4
- require('./chunk-N3AAT6BS.cjs');
3
+ var _chunkEG4H7OMCcjs = require('./chunk-EG4H7OMC.cjs');
4
+ require('./chunk-HMUGY66O.cjs');
5
5
  require('./chunk-OY5N3E6L.cjs');
6
- require('./chunk-N6JJG57R.cjs');
6
+ require('./chunk-PYOC6K24.cjs');
7
7
 
8
8
 
9
- exports.WithdrawModal = _chunk34JVJZEZcjs.WithdrawModal;
9
+ exports.WithdrawModal = _chunkEG4H7OMCcjs.WithdrawModal;
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { af as WithdrawModalProps } from './types-CbUs4boj.cjs';
3
- export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, e as AssetOption, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, V as ErrorEventData, X as HistoryAnalyticsBadge, Y as HistoryClaimEntrySource, Z as HistoryStatus, a0 as RecoveryErrorCode, a1 as RpcUrlMap, a2 as SignRecovery, a3 as SignRecoveryPayload, a4 as WithdrawAnalyticsAbandonmentReason, a5 as WithdrawAnalyticsCloseSource, a6 as WithdrawAnalyticsEvent, a7 as WithdrawAnalyticsEventPayload, a8 as WithdrawAnalyticsFailureReason, a9 as WithdrawAnalyticsSessionProperties, aa as WithdrawAnalyticsStep, ab as WithdrawAnalyticsUiOutcome, ac as WithdrawCompleteEventData, ad as WithdrawFailedEventData, ag as WithdrawSubmittedEventData, ah as WithdrawTransferRequest } from './types-CbUs4boj.cjs';
2
+ import { ag as WithdrawModalProps } from './types-BShYNpvO.cjs';
3
+ export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, e as AssetOption, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, V as ErrorEventData, X as HistoryAnalyticsBadge, Y as HistoryClaimEntrySource, Z as HistoryStatus, a1 as RecoveryErrorCode, a2 as RpcUrlMap, a3 as SignRecovery, a4 as SignRecoveryPayload, a5 as WithdrawAnalyticsAbandonmentReason, a6 as WithdrawAnalyticsCloseSource, a7 as WithdrawAnalyticsEvent, a8 as WithdrawAnalyticsEventPayload, a9 as WithdrawAnalyticsFailureReason, aa as WithdrawAnalyticsSessionProperties, ab as WithdrawAnalyticsStep, ac as WithdrawAnalyticsUiOutcome, ad as WithdrawCompleteEventData, ae as WithdrawFailedEventData, ah as WithdrawSubmittedEventData, ai as WithdrawTransferRequest } from './types-BShYNpvO.cjs';
4
4
  import './caip-BMi-9t09.cjs';
5
5
  import 'viem';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { af as WithdrawModalProps } from './types-CZYypODQ.js';
3
- export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, e as AssetOption, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, V as ErrorEventData, X as HistoryAnalyticsBadge, Y as HistoryClaimEntrySource, Z as HistoryStatus, a0 as RecoveryErrorCode, a1 as RpcUrlMap, a2 as SignRecovery, a3 as SignRecoveryPayload, a4 as WithdrawAnalyticsAbandonmentReason, a5 as WithdrawAnalyticsCloseSource, a6 as WithdrawAnalyticsEvent, a7 as WithdrawAnalyticsEventPayload, a8 as WithdrawAnalyticsFailureReason, a9 as WithdrawAnalyticsSessionProperties, aa as WithdrawAnalyticsStep, ab as WithdrawAnalyticsUiOutcome, ac as WithdrawCompleteEventData, ad as WithdrawFailedEventData, ag as WithdrawSubmittedEventData, ah as WithdrawTransferRequest } from './types-CZYypODQ.js';
2
+ import { ag as WithdrawModalProps } from './types-BOxa1DE-.js';
3
+ export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, e as AssetOption, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, V as ErrorEventData, X as HistoryAnalyticsBadge, Y as HistoryClaimEntrySource, Z as HistoryStatus, a1 as RecoveryErrorCode, a2 as RpcUrlMap, a3 as SignRecovery, a4 as SignRecoveryPayload, a5 as WithdrawAnalyticsAbandonmentReason, a6 as WithdrawAnalyticsCloseSource, a7 as WithdrawAnalyticsEvent, a8 as WithdrawAnalyticsEventPayload, a9 as WithdrawAnalyticsFailureReason, aa as WithdrawAnalyticsSessionProperties, ab as WithdrawAnalyticsStep, ac as WithdrawAnalyticsUiOutcome, ad as WithdrawCompleteEventData, ae as WithdrawFailedEventData, ah as WithdrawSubmittedEventData, ai as WithdrawTransferRequest } from './types-BOxa1DE-.js';
4
4
  import './caip-BMi-9t09.js';
5
5
  import 'viem';
6
6
 
package/dist/withdraw.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-R2B6VD4E.mjs";
4
- import "./chunk-AIZKGFVA.mjs";
3
+ } from "./chunk-BIL4ENC3.mjs";
4
+ import "./chunk-5NWLS5BQ.mjs";
5
5
  import "./chunk-EAGMY3QE.mjs";
6
- import "./chunk-3TEVMP76.mjs";
6
+ import "./chunk-X6N2XPTO.mjs";
7
7
  export {
8
8
  WithdrawModal
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {
@@ -201,7 +201,7 @@
201
201
  {
202
202
  "name": "Total Bundle (Everything)",
203
203
  "path": "dist/index.mjs",
204
- "limit": "99.25 kB",
204
+ "limit": "100.5 kB",
205
205
  "ignore": [
206
206
  "react",
207
207
  "react-dom",
@@ -220,7 +220,7 @@
220
220
  {
221
221
  "name": "Native Embed (deposit & withdraw)",
222
222
  "path": "dist/embed.mjs",
223
- "limit": "105.75 kB",
223
+ "limit": "107 kB",
224
224
  "ignore": [
225
225
  "react",
226
226
  "react-dom",
@@ -240,7 +240,7 @@
240
240
  "name": "Deposit & Withdraw Modals Only",
241
241
  "path": "dist/index.mjs",
242
242
  "import": "{ DepositModal, WithdrawModal }",
243
- "limit": "98.75 kB",
243
+ "limit": "100 kB",
244
244
  "ignore": [
245
245
  "react",
246
246
  "react-dom",
@@ -259,7 +259,7 @@
259
259
  {
260
260
  "name": "Withdraw Modal Only",
261
261
  "path": "dist/withdraw.mjs",
262
- "limit": "46.75 kB",
262
+ "limit": "47.1 kB",
263
263
  "ignore": [
264
264
  "react",
265
265
  "react-dom",
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunk34JVJZEZcjs = require('./chunk-34JVJZEZ.cjs');
5
- require('./chunk-N3AAT6BS.cjs');
6
- require('./chunk-OY5N3E6L.cjs');
7
- require('./chunk-N6JJG57R.cjs');
8
-
9
-
10
-
11
- exports.WithdrawModal = _chunk34JVJZEZcjs.WithdrawModal; exports.buildWithdrawAnalyticsSessionProperties = _chunk34JVJZEZcjs.buildWithdrawAnalyticsSessionProperties;