@funkit/connect-rn 9.4.0 → 9.5.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 (139) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/{chunk-7EDY3KSV.js → chunk-BIIYR5K5.js} +2 -2
  3. package/dist/{chunk-EKU6Y6IC.js → chunk-JDGIKSWZ.js} +66 -9
  4. package/dist/chunk-JDGIKSWZ.js.map +7 -0
  5. package/dist/clients/lighter/lighterFastWithdrawal.d.ts.map +1 -1
  6. package/dist/clients/lighter/useLighterSecureWithdrawal.d.ts.map +1 -1
  7. package/dist/clients/lighter/useLighterUnstakedFee.d.ts.map +1 -1
  8. package/dist/clients/lighter/useLighterWithdrawalMethods.d.ts.map +1 -1
  9. package/dist/clients/lighter.js +25 -13
  10. package/dist/clients/lighter.js.map +3 -3
  11. package/dist/clients/nado.js +2 -2
  12. package/dist/index.js +5802 -3533
  13. package/dist/index.js.map +4 -4
  14. package/dist/preview.js +8 -1
  15. package/dist/preview.js.map +2 -2
  16. package/dist/src/components/AttributionWatermark.d.ts +4 -1
  17. package/dist/src/components/AttributionWatermark.d.ts.map +1 -1
  18. package/dist/src/components/TopBar.d.ts +6 -1
  19. package/dist/src/components/TopBar.d.ts.map +1 -1
  20. package/dist/src/components/v2/IconDisc.d.ts +5 -2
  21. package/dist/src/components/v2/IconDisc.d.ts.map +1 -1
  22. package/dist/src/components/v2/QuickAmountsRow.d.ts +1 -1
  23. package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
  24. package/dist/src/fiat/FiatContactScreen.d.ts +2 -1
  25. package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
  26. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +2 -1
  27. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -1
  28. package/dist/src/fiat/FiatIdentityStep.d.ts +2 -1
  29. package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
  30. package/dist/src/fiat/SurfaceSlot.d.ts +15 -2
  31. package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
  32. package/dist/src/fiat/contactRound.d.ts +9 -3
  33. package/dist/src/fiat/contactRound.d.ts.map +1 -1
  34. package/dist/src/fiat/kyc/kycCapture.d.ts +4 -1
  35. package/dist/src/fiat/kyc/kycCapture.d.ts.map +1 -1
  36. package/dist/src/fiat/kyc/kycForm.d.ts +3 -1
  37. package/dist/src/fiat/kyc/kycForm.d.ts.map +1 -1
  38. package/dist/src/fiat/kyc/kycRoutes.d.ts +2 -1
  39. package/dist/src/fiat/kyc/kycRoutes.d.ts.map +1 -1
  40. package/dist/src/fiat/providers/moonpay/moonpaySharingConsent.d.ts +2 -1
  41. package/dist/src/fiat/providers/moonpay/moonpaySharingConsent.d.ts.map +1 -1
  42. package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts +7 -2
  43. package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts.map +1 -1
  44. package/dist/src/fiat/providers/sumsub/SumsubKycSurface.d.ts +3 -1
  45. package/dist/src/fiat/providers/sumsub/SumsubKycSurface.d.ts.map +1 -1
  46. package/dist/src/fiat/providers/sumsub/SumsubNativeKycSurface.d.ts +2 -1
  47. package/dist/src/fiat/providers/sumsub/SumsubNativeKycSurface.d.ts.map +1 -1
  48. package/dist/src/fiat/providers/sumsub/sumsubKyc.d.ts +1 -1
  49. package/dist/src/fiat/providers/sumsub/sumsubKyc.d.ts.map +1 -1
  50. package/dist/src/fiat/providers/sumsub/sumsubNativeLaunch.d.ts +1 -0
  51. package/dist/src/fiat/providers/sumsub/sumsubNativeLaunch.d.ts.map +1 -1
  52. package/dist/src/fiat/quoteRouting.d.ts +2 -1
  53. package/dist/src/fiat/quoteRouting.d.ts.map +1 -1
  54. package/dist/src/fiat/stepSurface.d.ts +2 -2
  55. package/dist/src/fiat/stepSurface.d.ts.map +1 -1
  56. package/dist/src/fiat/useCaptureHold.d.ts +2 -1
  57. package/dist/src/fiat/useCaptureHold.d.ts.map +1 -1
  58. package/dist/src/fiat/useDepositSettlement.d.ts +3 -1
  59. package/dist/src/fiat/useDepositSettlement.d.ts.map +1 -1
  60. package/dist/src/fiat/useEntryQuote.d.ts +4 -0
  61. package/dist/src/fiat/useEntryQuote.d.ts.map +1 -1
  62. package/dist/src/fiat/useEntrySubmit.d.ts +13 -3
  63. package/dist/src/fiat/useEntrySubmit.d.ts.map +1 -1
  64. package/dist/src/fiat/useStaleQuoteRecovery.d.ts +3 -1
  65. package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -1
  66. package/dist/src/flow/CryptoAddressPage.d.ts.map +1 -1
  67. package/dist/src/flow/CryptoDepositStep.d.ts +15 -9
  68. package/dist/src/flow/CryptoDepositStep.d.ts.map +1 -1
  69. package/dist/src/flow/CryptoLearnMorePage.d.ts +21 -0
  70. package/dist/src/flow/CryptoLearnMorePage.d.ts.map +1 -0
  71. package/dist/src/flow/CryptoListPage.d.ts.map +1 -1
  72. package/dist/src/flow/CryptoTokenPage.d.ts.map +1 -1
  73. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  74. package/dist/src/flow/FiatDepositAmountStep.d.ts +2 -1
  75. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  76. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  77. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
  78. package/dist/src/flow/cryptoDepositFlow.d.ts +7 -8
  79. package/dist/src/flow/cryptoDepositFlow.d.ts.map +1 -1
  80. package/dist/src/flow/depositMethods.d.ts +10 -1
  81. package/dist/src/flow/depositMethods.d.ts.map +1 -1
  82. package/dist/src/flow/entryBanners.d.ts +2 -0
  83. package/dist/src/flow/entryBanners.d.ts.map +1 -1
  84. package/dist/src/flow/fiatStepScreens.d.ts +4 -1
  85. package/dist/src/flow/fiatStepScreens.d.ts.map +1 -1
  86. package/dist/src/flow/fiatSubmitRenderer.d.ts +14 -5
  87. package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
  88. package/dist/src/flow/renderFiatFlowScreen.d.ts +27 -5
  89. package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
  90. package/dist/src/hooks/track/QuoteDisclosureObserver.d.ts +8 -0
  91. package/dist/src/hooks/track/QuoteDisclosureObserver.d.ts.map +1 -0
  92. package/dist/src/hooks/track/events.d.ts +264 -0
  93. package/dist/src/hooks/track/events.d.ts.map +1 -1
  94. package/dist/src/hooks/track/quoteTtlMs.d.ts +2 -0
  95. package/dist/src/hooks/track/quoteTtlMs.d.ts.map +1 -0
  96. package/dist/src/hooks/track/useDepositFlowEvents.d.ts +24 -0
  97. package/dist/src/hooks/track/useDepositFlowEvents.d.ts.map +1 -0
  98. package/dist/src/hooks/track/useDepositOutcomeEvents.d.ts +12 -0
  99. package/dist/src/hooks/track/useDepositOutcomeEvents.d.ts.map +1 -0
  100. package/dist/src/hooks/track/usePaymentButtonEvents.d.ts +31 -0
  101. package/dist/src/hooks/track/usePaymentButtonEvents.d.ts.map +1 -0
  102. package/dist/src/hooks/track/useTrackFiatDepositQuoteEvents.d.ts +41 -0
  103. package/dist/src/hooks/track/useTrackFiatDepositQuoteEvents.d.ts.map +1 -0
  104. package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts +56 -0
  105. package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts.map +1 -0
  106. package/dist/src/hooks/track/useTrackKycEvents.d.ts +14 -0
  107. package/dist/src/hooks/track/useTrackKycEvents.d.ts.map +1 -0
  108. package/dist/src/hooks/track/useTrackSessionAuthEvents.d.ts +13 -0
  109. package/dist/src/hooks/track/useTrackSessionAuthEvents.d.ts.map +1 -0
  110. package/dist/src/hooks/track/useTrackV2.d.ts +1 -1
  111. package/dist/src/hooks/track/useTrackV2.d.ts.map +1 -1
  112. package/dist/src/hooks/track/useWithdrawalFlowEvents.d.ts +7 -0
  113. package/dist/src/hooks/track/useWithdrawalFlowEvents.d.ts.map +1 -0
  114. package/dist/src/hooks/useEnclosingSheetOpen.d.ts +0 -6
  115. package/dist/src/hooks/useEnclosingSheetOpen.d.ts.map +1 -1
  116. package/dist/src/hooks/useGuardedAmountInput.d.ts +3 -2
  117. package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
  118. package/dist/src/icons/CryptoTransferQRIcon.d.ts +3 -1
  119. package/dist/src/icons/CryptoTransferQRIcon.d.ts.map +1 -1
  120. package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
  121. package/dist/src/preview/scenarios.d.ts.map +1 -1
  122. package/dist/src/screens/DepositAmountScreen.d.ts +3 -1
  123. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  124. package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts +2 -1
  125. package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts.map +1 -1
  126. package/dist/src/theme/buildFunkitTheme.d.ts +2 -0
  127. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  128. package/dist/src/theme/restyle.d.ts +66 -0
  129. package/dist/src/theme/restyle.d.ts.map +1 -1
  130. package/dist/src/theme/toRestyleTheme.d.ts +6 -0
  131. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  132. package/dist/src/theme/typeScale.d.ts +12 -0
  133. package/dist/src/theme/typeScale.d.ts.map +1 -1
  134. package/dist/src/transfer/fops.d.ts +8 -1
  135. package/dist/src/transfer/fops.d.ts.map +1 -1
  136. package/dist/src/transfer/hooks/useLighterDepositRecipientOverride.d.ts.map +1 -1
  137. package/package.json +6 -6
  138. package/dist/chunk-EKU6Y6IC.js.map +0 -7
  139. /package/dist/{chunk-7EDY3KSV.js.map → chunk-BIIYR5K5.js.map} +0 -0
@@ -1,7 +1,31 @@
1
+ import type { FiatProvider, FiatStepResponse, KYCProvider } from '@funkit/connect-core';
2
+ import type { SurfaceReadySource } from '../../fiat/SurfaceSlot';
1
3
  export declare enum AnalyticsEvent {
4
+ DEPOSIT_FAILED = "fc_deposit_failed",
5
+ DEPOSIT_METHOD_SELECTED = "fc_deposit_method_selected",
6
+ DEPOSIT_PAYMENT_AUTHORIZED = "fc_deposit_payment_authorized",
7
+ DEPOSIT_PAYMENT_BUTTON_CLICKED = "fc_deposit_payment_button_clicked",
8
+ DEPOSIT_PAYMENT_BUTTON_READY = "fc_deposit_payment_button_ready",
9
+ DEPOSIT_PAYMENT_FAILED = "fc_deposit_payment_failed",
10
+ DEPOSIT_QUOTE_CONFIRMED = "fc_deposit_quote_confirmed",
11
+ DEPOSIT_QUOTE_DISPLAYED = "fc_deposit_quote_displayed",
12
+ DEPOSIT_STALLED = "fc_deposit_stalled",
13
+ DEPOSIT_SUCCEEDED = "fc_deposit_succeeded",
14
+ DEPOSIT_TRANSACTION_SUBMITTED = "fc_deposit_transaction_submitted",
15
+ CONTACT_SUBMITTED = "fc_contact_submitted",
16
+ OTP_VERIFIED = "fc_otp_verified",
17
+ KYC_COMPLETED = "fc_kyc_completed",
18
+ KYC_FAILED = "fc_kyc_failed",
19
+ KYC_FORM_SUBMITTED = "fc_kyc_form_submitted",
20
+ KYC_STARTED = "fc_kyc_started",
21
+ MODAL_CLOSED = "fc_modal_closed",
2
22
  MODAL_OPENED = "fc_modal_opened"
3
23
  }
4
24
  export type AnalyticsFlow = 'deposit' | 'withdraw';
25
+ export type AnalyticsFiatProvider = Lowercase<FiatProvider>;
26
+ export type KycPath = 'fun_form' | 'stripe' | 'moonpay' | Lowercase<KYCProvider>;
27
+ export declare function kycProviderPath(provider: KYCProvider): Lowercase<KYCProvider>;
28
+ export declare function analyticsFiatProvider(provider: FiatProvider | null | undefined): AnalyticsFiatProvider | null;
5
29
  export type CommonProperties = {
6
30
  api_key: string;
7
31
  checkout_id: string;
@@ -11,6 +35,7 @@ export type CommonProperties = {
11
35
  };
12
36
  /** React Native modal-opening payload. */
13
37
  export type ModalOpenedProperties = {
38
+ dynamic_routing_id: string | null;
14
39
  /** Deposit: unset until the user picks a source chain (nullable, like web). Withdrawal: the token withdrawn from. */
15
40
  source_asset: string | null;
16
41
  source_asset_ticker: string | null;
@@ -22,8 +47,247 @@ export type ModalOpenedProperties = {
22
47
  /** 1 when the host supplied a usable wallet address, else 0 — RN has no multi-wallet. */
23
48
  wallet_count: number;
24
49
  };
50
+ /**
51
+ * `default` means configured entry from the SDK's perspective, including a method
52
+ * the user chose in the host's menu. `manual` means a choice inside the SDK.
53
+ * Each opening has its own checkout ID; these values do not identify a browsing session.
54
+ */
55
+ export type MethodSelectionType = 'default' | 'manual';
56
+ /** React Native deposit-method selection payload. */
57
+ export type DepositMethodSelectedProperties = {
58
+ payment_method: string;
59
+ payment_rail: 'swapped' | null;
60
+ select_type: MethodSelectionType;
61
+ connection_status: 'new' | 'existing' | null;
62
+ /** Saved cash methods offered when selected. 0 when no cash list was shown (default entry, cash hidden or off); null if the list is unresolved. */
63
+ saved_payment_method_count: number | null;
64
+ source_asset: string | null;
65
+ source_asset_ticker: string | null;
66
+ source_chain: string | null;
67
+ target_asset: string | null;
68
+ target_asset_ticker: string | null;
69
+ target_chain: string | null;
70
+ };
71
+ export type DepositQuoteRefreshReason = 'amount_changed' | 'expired' | 'kyc_requote' | 'provider_failover' | 'retry';
72
+ export type DepositQuoteSelectionType = 'default' | 'restored' | 'manual' | 'min' | 'max' | 'preset';
73
+ /**
74
+ * `default` is an untouched starting amount; `restored` comes from a pending
75
+ * order. `preset` means a tapped quick-amount chip, with its label in `presetAmount`.
76
+ */
77
+ export type DepositAmountSelection = {
78
+ selectType: Exclude<DepositQuoteSelectionType, 'preset'>;
79
+ presetAmount: null;
80
+ } | {
81
+ selectType: 'preset';
82
+ presetAmount: string;
83
+ };
84
+ export declare const MANUAL_AMOUNT_SELECTION: DepositAmountSelection;
85
+ /**
86
+ * `FeeLine.id` is intentionally open in fiat-contract so the backend can add
87
+ * localized fee rows without a client release. Keep those server-owned ids
88
+ * namespaced rather than treating the currently known ids as a closed enum.
89
+ */
90
+ type FlattenedFeeBreakdownProperties = {
91
+ [key: `fee_breakdown.${string}`]: string | undefined;
92
+ };
93
+ /** Quote fields displayed on the mobile fiat amount screen. */
94
+ export type DepositQuoteDisplayedProperties = FlattenedFeeBreakdownProperties & {
95
+ destination_address: string | null;
96
+ dynamic_routing_id: string | null;
97
+ fiat_amount: string;
98
+ fiat_currency: string;
99
+ num_quote_refreshes: number;
100
+ payment_method: string;
101
+ preset_amount: string | null;
102
+ provider: AnalyticsFiatProvider | null;
103
+ quote_ref: string;
104
+ quote_ttl_ms: number | null;
105
+ refresh_reason: DepositQuoteRefreshReason;
106
+ select_type: DepositQuoteSelectionType;
107
+ source_amount: string;
108
+ target_amount: string | null;
109
+ target_asset: string | null;
110
+ target_asset_ticker: string | null;
111
+ target_chain: string | null;
112
+ total_fee: string;
113
+ trade_type: 'EXACT_IN' | 'EXACT_OUT';
114
+ };
115
+ /**
116
+ * Confirmation requires the matching quote to have reached visible UI, not
117
+ * successful delivery of its display event to Statsig.
118
+ */
119
+ export type DepositQuoteConfirmedProperties = DepositQuoteDisplayedProperties;
120
+ export type PaymentSurfacePlacement = 'inline' | 'screen';
121
+ /**
122
+ * The quote a payment sheet's outcome belongs to. A narrow slice of
123
+ * {@link DepositQuoteDisplayedProperties} rather than the full breakdown —
124
+ * the sheet's own callback carries no more than this, and refetching the
125
+ * rest would attribute figures to a quote that may have since refreshed.
126
+ */
127
+ export type DepositPaymentQuoteContext = {
128
+ fiat_amount: string | null;
129
+ fiat_currency: string | null;
130
+ payment_method: string;
131
+ provider: AnalyticsFiatProvider | null;
132
+ quote_ref: string | null;
133
+ total_fee: string | null;
134
+ };
135
+ export type DepositPaymentButtonReadyProperties = DepositPaymentQuoteContext & {
136
+ attempt: number;
137
+ load_ms: number;
138
+ placement: PaymentSurfacePlacement;
139
+ ready_source: SurfaceReadySource;
140
+ };
141
+ export type DepositPaymentButtonClickedProperties = DepositPaymentQuoteContext & {
142
+ attempt: number;
143
+ ms_since_ready: number;
144
+ placement: PaymentSurfacePlacement;
145
+ ready_source: SurfaceReadySource;
146
+ tap_index: number;
147
+ };
148
+ /** Confirmed provider payment authorization; handoff returns alone do not prove it. */
149
+ export type DepositPaymentAuthorizedProperties = DepositPaymentQuoteContext & {
150
+ attempt: number;
151
+ request_id: string | null;
152
+ };
153
+ /**
154
+ * Provider callbacks use the same cancellation and card-refusal classification
155
+ * as the flow. Coinbase and MoonPay dismissals that keep their button reusable
156
+ * stay local to their adapters and do not end the surface attempt.
157
+ */
158
+ export type PaymentFailureReason = 'cancelled' | 'declined' | 'provider_error';
159
+ export type DepositPaymentFailedProperties = DepositPaymentQuoteContext & {
160
+ attempt: number;
161
+ error_code: string;
162
+ reason: PaymentFailureReason;
163
+ };
164
+ export type DepositPaymentOrderContext = DepositPaymentQuoteContext & {
165
+ order_id: string;
166
+ quote_ref: string | null;
167
+ request_id: string | null;
168
+ };
169
+ export type DepositTransactionSubmittedProperties = DepositPaymentOrderContext & {
170
+ time_to_submit_ms: number | null;
171
+ };
172
+ export type DepositFailureCode = 'failed' | 'expired' | 'cancelled' | 'refunded' | 'blocked';
173
+ export type DepositStalledReason = 'poll_gave_up';
174
+ /**
175
+ * Derived through connect-core rather than imported from `fiat-contract`:
176
+ * connect-rn does not depend on the contract package directly, and this keeps
177
+ * the union in step with whatever version core resolves.
178
+ */
179
+ export type DepositBlockedReason = Extract<FiatStepResponse['state'], {
180
+ kind: 'BLOCKED';
181
+ }>['reason'];
182
+ export type DepositFailedProperties = {
183
+ error_code: DepositFailureCode;
184
+ /**
185
+ * Only `ALL_PROVIDERS_DECLINED` is a deposit that failed — the other reasons
186
+ * are pre-payment routing refusals. Carried so the two populations stay
187
+ * separable downstream instead of both inflating the failure rate.
188
+ */
189
+ blocked_reason: DepositBlockedReason | null;
190
+ order_id: string | null;
191
+ payment_method: string;
192
+ provider: AnalyticsFiatProvider | null;
193
+ quote_ref: string | null;
194
+ request_id: string | null;
195
+ };
196
+ export type DepositStalledProperties = {
197
+ payment_method: string;
198
+ provider: AnalyticsFiatProvider | null;
199
+ error_code: DepositStalledReason;
200
+ order_id: string | null;
201
+ quote_ref: string | null;
202
+ request_id: string | null;
203
+ stage: 'kyc_review' | 'order';
204
+ };
205
+ export type DepositSucceededProperties = DepositPaymentOrderContext & {
206
+ fulfillment_time_ms: number | null;
207
+ tx_hash: string | null;
208
+ };
209
+ export type KycStartedProperties = {
210
+ payment_method: string;
211
+ /** Lowercase fiat provider, or null when the response unexpectedly omits it. */
212
+ provider: AnalyticsFiatProvider | null;
213
+ quote_ref: string | null;
214
+ start_path: KycPath;
215
+ };
216
+ /** Close context will be added once RN has an authoritative step model. */
217
+ export type ModalClosedProperties = Record<never, never>;
218
+ /**
219
+ * A completion is conservative rather than a pure provider-success signal:
220
+ * - it waits for a payment/order state, so quote-review dwell is included;
221
+ * - abandoning before that state emits neither a completed nor failed outcome.
222
+ */
223
+ export type KycCompletedProperties = {
224
+ quote_ref: string | null;
225
+ completion_path: KycPath;
226
+ payment_method: string;
227
+ /** Lowercase fiat provider from the terminal outcome response. */
228
+ provider: AnalyticsFiatProvider | null;
229
+ /** Number of backend forms that advanced to another state. */
230
+ rounds_completed: number;
231
+ /** Wall-clock time from accepting the first KYC faceplate to the outcome. */
232
+ time_in_kyc_ms: number;
233
+ };
234
+ export type KycFailedProperties = KycCompletedProperties & {
235
+ reason: 'rejected' | 'retryable_rejection' | 'on_hold';
236
+ };
237
+ export type ContactSubmittedProperties = {
238
+ quote_ref: string | null;
239
+ /** One for the first valid submission from this contact screen. */
240
+ attempts: number;
241
+ /** Whether the rendered contact screen collected each delivery channel. */
242
+ has_email: boolean;
243
+ has_phone: boolean;
244
+ payment_method: string;
245
+ /** Lowercase fiat provider, or null when the response unexpectedly omits it. */
246
+ provider: AnalyticsFiatProvider | null;
247
+ };
248
+ export type OtpVerifiedProperties = {
249
+ quote_ref: string | null;
250
+ /**
251
+ * Verify submissions on the completed OTP screen. A transport retry is not
252
+ * one: it replays the same code through `flow.retry()`, never the screen.
253
+ */
254
+ attempts: number;
255
+ channel: 'email' | 'sms';
256
+ payment_method: string;
257
+ /** Lowercase fiat provider from the challenge that was answered. */
258
+ provider: AnalyticsFiatProvider | null;
259
+ };
260
+ export type KycFormSubmittedProperties = {
261
+ quote_ref: string | null;
262
+ /** One-based count of consecutive submissions for this KYC form or surface. */
263
+ attempts: number;
264
+ /** Opaque backend form identifier; provider surfaces may not expose one. */
265
+ form_id: string | null;
266
+ payment_method: string;
267
+ provider: AnalyticsFiatProvider | null;
268
+ submission_path: KycPath;
269
+ };
25
270
  export type AnalyticsEventProperties = {
271
+ [AnalyticsEvent.MODAL_CLOSED]: ModalClosedProperties;
272
+ [AnalyticsEvent.DEPOSIT_FAILED]: DepositFailedProperties;
26
273
  [AnalyticsEvent.MODAL_OPENED]: ModalOpenedProperties;
274
+ [AnalyticsEvent.DEPOSIT_METHOD_SELECTED]: DepositMethodSelectedProperties;
275
+ [AnalyticsEvent.DEPOSIT_PAYMENT_AUTHORIZED]: DepositPaymentAuthorizedProperties;
276
+ [AnalyticsEvent.DEPOSIT_PAYMENT_BUTTON_CLICKED]: DepositPaymentButtonClickedProperties;
277
+ [AnalyticsEvent.DEPOSIT_PAYMENT_BUTTON_READY]: DepositPaymentButtonReadyProperties;
278
+ [AnalyticsEvent.DEPOSIT_PAYMENT_FAILED]: DepositPaymentFailedProperties;
279
+ [AnalyticsEvent.DEPOSIT_QUOTE_CONFIRMED]: DepositQuoteConfirmedProperties;
280
+ [AnalyticsEvent.DEPOSIT_QUOTE_DISPLAYED]: DepositQuoteDisplayedProperties;
281
+ [AnalyticsEvent.DEPOSIT_STALLED]: DepositStalledProperties;
282
+ [AnalyticsEvent.DEPOSIT_SUCCEEDED]: DepositSucceededProperties;
283
+ [AnalyticsEvent.DEPOSIT_TRANSACTION_SUBMITTED]: DepositTransactionSubmittedProperties;
284
+ [AnalyticsEvent.CONTACT_SUBMITTED]: ContactSubmittedProperties;
285
+ [AnalyticsEvent.OTP_VERIFIED]: OtpVerifiedProperties;
286
+ [AnalyticsEvent.KYC_COMPLETED]: KycCompletedProperties;
287
+ [AnalyticsEvent.KYC_FAILED]: KycFailedProperties;
288
+ [AnalyticsEvent.KYC_FORM_SUBMITTED]: KycFormSubmittedProperties;
289
+ [AnalyticsEvent.KYC_STARTED]: KycStartedProperties;
27
290
  };
28
291
  export type AnalyticsEventPayload<T extends AnalyticsEvent> = CommonProperties & AnalyticsEventProperties[T];
292
+ export {};
29
293
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/events.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,YAAY,oBAAoB;CACjC;AAED,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,UAAU,CAAA;AAElD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,aAAa,CAAA;IACnB,QAAQ,EAAE,cAAc,CAAA;IACxB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CACvB,CAAA;AAED,0CAA0C;AAC1C,MAAM,MAAM,qBAAqB,GAAG;IAClC,qHAAqH;IACrH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mEAAmE;IACnE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,yFAAyF;IACzF,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE,qBAAqB,CAAA;CACrD,CAAA;AAED,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,cAAc,IAAI,gBAAgB,GAC5E,wBAA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,CAAC,EAAE,0BAA0B,CAAA;IAC9D,CAAC,cAAc,CAAC,6BAA6B,CAAC,EAAE,qCAAqC,CAAA;IACrF,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,0BAA0B,CAAA;IAC9D,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE,qBAAqB,CAAA;IACpD,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,sBAAsB,CAAA;IACtD,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAA;IAChD,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,0BAA0B,CAAA;IAC/D,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,oBAAoB,CAAA;CACnD,CAAA;AAED,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,cAAc,IAAI,gBAAgB,GAC5E,wBAAwB,CAAC,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare function quoteTtlMs(expiresAt: string, nowMs?: number): number | null;
2
+ //# sourceMappingURL=quoteTtlMs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quoteTtlMs.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/quoteTtlMs.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CACxB,SAAS,EAAE,MAAM,EACjB,KAAK,SAAa,GACjB,MAAM,GAAG,IAAI,CAMf"}
@@ -0,0 +1,24 @@
1
+ import type { DepositCheckoutConfig, FiatRailConfig } from '../../flow/depositFlowConfig';
2
+ interface DepositFlowEventTarget {
3
+ activeCheckoutConfig: DepositCheckoutConfig | undefined;
4
+ activeDynamicRoutingId: string | undefined;
5
+ ticker: string | undefined;
6
+ }
7
+ export declare function getDepositMethodAssetContext(targetAsset: Omit<DepositFlowEventTarget, 'activeDynamicRoutingId'>): {
8
+ source_asset: null;
9
+ source_asset_ticker: null;
10
+ source_chain: null;
11
+ target_asset: `0x${string}` | `1${string}` | `2${string}` | `m${string}` | `p${string}` | `g${string}` | `a${string}` | `b${string}` | `i${string}` | `q${string}` | `s${string}` | `u${string}` | `3${string}` | `4${string}` | `5${string}` | `6${string}` | `7${string}` | `8${string}` | `9${string}` | `A${string}` | `B${string}` | `C${string}` | `D${string}` | `E${string}` | `F${string}` | `G${string}` | `H${string}` | `J${string}` | `K${string}` | `L${string}` | `M${string}` | `N${string}` | `P${string}` | `Q${string}` | `R${string}` | `S${string}` | `T${string}` | `U${string}` | `V${string}` | `W${string}` | `X${string}` | `Y${string}` | `Z${string}` | `c${string}` | `d${string}` | `e${string}` | `f${string}` | `h${string}` | `j${string}` | `k${string}` | `n${string}` | `o${string}` | `r${string}` | `t${string}` | `v${string}` | `w${string}` | `x${string}` | `y${string}` | `z${string}` | null;
12
+ target_asset_ticker: string | null;
13
+ target_chain: string | null;
14
+ };
15
+ export declare function useDepositFlowEvents({ checkoutId, selectedChainId, targetAsset, walletAddress, defaultFiatMethod, defaultCryptoMethod, }: {
16
+ checkoutId: string;
17
+ selectedChainId: string | undefined;
18
+ targetAsset: DepositFlowEventTarget;
19
+ walletAddress: string;
20
+ defaultFiatMethod: FiatRailConfig | undefined;
21
+ defaultCryptoMethod?: boolean;
22
+ }): void;
23
+ export {};
24
+ //# sourceMappingURL=useDepositFlowEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDepositFlowEvents.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/useDepositFlowEvents.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACf,MAAM,8BAA8B,CAAA;AAGrC,UAAU,sBAAsB;IAC9B,oBAAoB,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACvD,sBAAsB,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1C,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B;AAID,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,IAAI,CAAC,sBAAsB,EAAE,wBAAwB,CAAC;;;;;;;EAWpE;AAED,wBAAgB,oBAAoB,CAAC,EACnC,UAAU,EACV,eAAe,EACf,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,mBAA2B,GAC5B,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,WAAW,EAAE,sBAAsB,CAAA;IACnC,aAAa,EAAE,MAAM,CAAA;IACrB,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAA;IAC7C,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,QA6CA"}
@@ -0,0 +1,12 @@
1
+ import type { FiatFlow, Quote } from '@funkit/connect-core';
2
+ import { type RefObject } from 'react';
3
+ import type { useBlockedState } from '../../fiat/quoteRouting';
4
+ import type { SurfaceFailure } from '../../flow/screenBundles';
5
+ import type { PaymentAnalytics } from './usePaymentButtonEvents';
6
+ export declare function useDepositFailureEvents(flow: FiatFlow, quotedRound: ReturnType<typeof useBlockedState>['quotedRound'], quoteRefusalAttempt: RefObject<number>, providerPaymentFailure: SurfaceFailure | undefined, paymentAnalytics: PaymentAnalytics): void;
7
+ export declare function useDepositOrderEvents(flow: FiatFlow, isDirect: boolean, acceptedPaymentQuote: RefObject<Quote | undefined>, paymentAnalytics: PaymentAnalytics): {
8
+ providerSettled: "PAID" | "SENT" | undefined;
9
+ setProviderSettled: import("react").Dispatch<import("react").SetStateAction<"PAID" | "SENT" | undefined>>;
10
+ };
11
+ export declare function trackDepositPollGaveUp(flow: FiatFlow, paymentAnalytics: PaymentAnalytics): void;
12
+ //# sourceMappingURL=useDepositOutcomeEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDepositOutcomeEvents.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/useDepositOutcomeEvents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAEhE,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,QAAQ,EACd,WAAW,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,aAAa,CAAC,EAC9D,mBAAmB,EAAE,SAAS,CAAC,MAAM,CAAC,EACtC,sBAAsB,EAAE,cAAc,GAAG,SAAS,EAClD,gBAAgB,EAAE,gBAAgB,QAqCnC;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,QAAQ,EACd,QAAQ,EAAE,OAAO,EACjB,oBAAoB,EAAE,SAAS,CAAC,KAAK,GAAG,SAAS,CAAC,EAClD,gBAAgB,EAAE,gBAAgB;;;EAkBnC;AAED,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,QAAQ,EACd,gBAAgB,EAAE,gBAAgB,QAanC"}
@@ -0,0 +1,31 @@
1
+ import type { FiatProvider, Quote, Surface, SurfaceResult } from '@funkit/connect-core';
2
+ import { type ComponentProps } from 'react';
3
+ import { SurfaceSlot } from '../../fiat/SurfaceSlot';
4
+ import type { PaymentSurfacePlacement } from './events';
5
+ import type { useTrackFiatPaymentEvents } from './useTrackFiatPaymentEvents';
6
+ export type PaymentAnalytics = ReturnType<typeof useTrackFiatPaymentEvents>;
7
+ interface PaymentButtonContext {
8
+ attempt: number;
9
+ placement: PaymentSurfacePlacement;
10
+ /** Native buttons and KYC SDKs use the quoted provider. */
11
+ surface?: Surface;
12
+ quoteProvider: FiatProvider | undefined;
13
+ quote: Quote | undefined;
14
+ surfaceKey: string;
15
+ }
16
+ export interface PaymentSurfaceEvents {
17
+ /** Spread onto the payment `SurfaceSlot`. */
18
+ slot: Pick<ComponentProps<typeof SurfaceSlot>, 'onSurfaceReady' | 'onSurfaceTap'>;
19
+ trackAuthorized: (result: SurfaceResult) => void;
20
+ trackFailed: (errorCode: string) => void;
21
+ }
22
+ export type PaymentButtonEvents = (context: PaymentButtonContext) => PaymentSurfaceEvents;
23
+ /**
24
+ * Events for a payment `SurfaceSlot`: when its button is ready, every tap on it,
25
+ * and how the attempt ended. Not a wrapper component, so the slot keeps one
26
+ * element type across the quote, the held page and the capture and is never
27
+ * remounted by tracking.
28
+ */
29
+ export declare function usePaymentButtonEvents(paymentAnalytics: PaymentAnalytics): PaymentButtonEvents;
30
+ export {};
31
+ //# sourceMappingURL=usePaymentButtonEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePaymentButtonEvents.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/usePaymentButtonEvents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,KAAK,EACL,OAAO,EACP,aAAa,EACd,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,cAAc,EAAU,MAAM,OAAO,CAAA;AACnD,OAAO,EACL,WAAW,EAGZ,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AACvD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE3E,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,uBAAuB,CAAA;IAClC,2DAA2D;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,YAAY,GAAG,SAAS,CAAA;IACvC,KAAK,EAAE,KAAK,GAAG,SAAS,CAAA;IACxB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,6CAA6C;IAC7C,IAAI,EAAE,IAAI,CACR,cAAc,CAAC,OAAO,WAAW,CAAC,EAClC,gBAAgB,GAAG,cAAc,CAClC,CAAA;IACD,eAAe,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAA;IAChD,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CACzC;AAED,MAAM,MAAM,mBAAmB,GAAG,CAChC,OAAO,EAAE,oBAAoB,KAC1B,oBAAoB,CAAA;AAEzB;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,mBAAmB,CAoErB"}
@@ -0,0 +1,41 @@
1
+ import type { FiatProvider, Quote } from '@funkit/connect-core';
2
+ import type { FeeQuote } from '../../fiat/stepDetails';
3
+ import { type DepositAmountSelection, type DepositQuoteRefreshReason } from './events';
4
+ /** A quote as the UI disclosed it. */
5
+ export interface QuoteDisclosure {
6
+ quote: Quote;
7
+ /** Provider price shown by the UI, before any fee subsidy. */
8
+ displayedFeeQuote?: FeeQuote;
9
+ destinationAddress: string | undefined;
10
+ isDirect: boolean;
11
+ provider: FiatProvider | undefined;
12
+ }
13
+ /** The tap that submits a disclosed quote. */
14
+ export interface QuoteConfirmation {
15
+ /** Each screen confirms a given quote once, however often it is tapped. */
16
+ screen: 'entry' | 'review';
17
+ quote: Quote;
18
+ provider: FiatProvider | undefined;
19
+ }
20
+ interface QuoteAttribution {
21
+ dynamicRoutingId: string | null;
22
+ paymentMethod: string;
23
+ targetAsset: string | null;
24
+ targetAssetTicker: string | null;
25
+ targetChain: string | null;
26
+ }
27
+ /**
28
+ * Tracks the quote-lifecycle events for one mobile fiat checkout:
29
+ * `fc_deposit_quote_displayed` once per distinct quote, and
30
+ * `fc_deposit_quote_confirmed` for the tap that submits it. Both share the
31
+ * same quote-context payload — mirrors web's `useTrackDepositQuoteEvents`
32
+ * (`~/modals/CheckoutModal/ConfirmationStep/useTrackDepositQuoteEvents.ts`).
33
+ */
34
+ export declare function useTrackFiatDepositQuoteEvents({ dynamicRoutingId, paymentMethod, targetAsset, targetAssetTicker, targetChain, }: QuoteAttribution): {
35
+ markAmountChanged: (nextSelection: DepositAmountSelection) => void;
36
+ markRefreshReason: (reason: DepositQuoteRefreshReason) => void;
37
+ trackQuoteConfirmed: ({ screen, quote, provider }: QuoteConfirmation, destinationAddress: string | undefined) => void;
38
+ trackQuoteDisplayed: (disclosure: QuoteDisclosure) => void;
39
+ };
40
+ export {};
41
+ //# sourceMappingURL=useTrackFiatDepositQuoteEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTrackFiatDepositQuoteEvents.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/useTrackFiatDepositQuoteEvents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAE/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAGtD,OAAO,EAEL,KAAK,sBAAsB,EAE3B,KAAK,yBAAyB,EAE/B,MAAM,UAAU,CAAA;AAIjB,sCAAsC;AACtC,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,KAAK,CAAA;IACZ,8DAA8D;IAC9D,iBAAiB,CAAC,EAAE,QAAQ,CAAA;IAC5B,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAA;IACtC,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;CACnC;AAED,8CAA8C;AAC9C,MAAM,WAAW,iBAAiB;IAChC,2EAA2E;IAC3E,MAAM,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC1B,KAAK,EAAE,KAAK,CAAA;IACZ,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;CACnC;AAED,UAAU,gBAAgB;IACxB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B;AAQD;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAAC,EAC7C,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,WAAW,GACZ,EAAE,gBAAgB;uCAYC,sBAAsB;gCAOO,yBAAyB;uDAqDvC,iBAAiB,sBAE1B,MAAM,GAAG,SAAS;sCAlD3B,eAAe;EA6E/B"}
@@ -0,0 +1,56 @@
1
+ import type { FiatProvider, FiatStepResponse, Quote } from '@funkit/connect-core';
2
+ import type { SurfaceReadySource } from '../../fiat/SurfaceSlot';
3
+ import { type DepositBlockedReason, type DepositFailureCode, type DepositStalledProperties, type DepositStalledReason, type PaymentSurfacePlacement } from './events';
4
+ export type DepositFailedInput = {
5
+ blockedReason?: DepositBlockedReason | null;
6
+ dedupeKey?: string;
7
+ failureCode: DepositFailureCode;
8
+ orderId: string | null;
9
+ provider?: FiatProvider | null;
10
+ };
11
+ export type DepositStalledInput = {
12
+ failureCode: DepositStalledReason;
13
+ orderId: string | null;
14
+ provider?: FiatProvider | null;
15
+ quoteRef?: string | null;
16
+ stage: DepositStalledProperties['stage'];
17
+ };
18
+ export declare function useTrackFiatPaymentEvents({ flowRun, paymentMethod, }: {
19
+ flowRun: number;
20
+ paymentMethod: string;
21
+ }): {
22
+ clearAuthorization: () => void;
23
+ trackDepositFailed: ({ blockedReason, dedupeKey, failureCode, orderId, provider, }: DepositFailedInput) => void;
24
+ trackDepositStalled: ({ failureCode, orderId, provider, quoteRef, stage, }: DepositStalledInput) => void;
25
+ trackPaymentAuthorized: ({ attempt, provider, quote, requestId, }: {
26
+ attempt: number;
27
+ provider: FiatProvider | null;
28
+ quote: Quote | undefined;
29
+ requestId: string | null;
30
+ }) => boolean;
31
+ trackPaymentButtonClicked: ({ attempt, msSinceReady, placement, provider, quote, readySource, tapIndex, }: {
32
+ attempt: number;
33
+ msSinceReady: number;
34
+ placement: PaymentSurfacePlacement;
35
+ provider: FiatProvider | null;
36
+ quote: Quote | undefined;
37
+ readySource: SurfaceReadySource;
38
+ tapIndex: number;
39
+ }) => void;
40
+ trackPaymentButtonReady: ({ attempt, loadMs, placement, provider, quote, readySource, }: {
41
+ attempt: number;
42
+ loadMs: number;
43
+ placement: PaymentSurfacePlacement;
44
+ provider: FiatProvider | null;
45
+ quote: Quote | undefined;
46
+ readySource: SurfaceReadySource;
47
+ }) => void;
48
+ trackPaymentFailed: ({ attempt, errorCode, provider, quote, }: {
49
+ attempt: number;
50
+ errorCode: string;
51
+ provider: FiatProvider | null;
52
+ quote: Quote | undefined;
53
+ }) => boolean;
54
+ trackOrderEvents: (stepResponse: FiatStepResponse, quote?: Quote, productSucceeded?: boolean) => void;
55
+ };
56
+ //# sourceMappingURL=useTrackFiatPaymentEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTrackFiatPaymentEvents.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/useTrackFiatPaymentEvents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,KAAK,EACN,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAChE,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EAGvB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EAEzB,KAAK,uBAAuB,EAE7B,MAAM,UAAU,CAAA;AAsHjB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAA;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,QAAQ,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,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@@ -0,0 +1,14 @@
1
+ import { type FiatProvider, type FiatStepResponse, type KYCProvider } from '@funkit/connect-core';
2
+ import { type KycPath } from './events';
3
+ export declare function useTrackKycEvents(): {
4
+ observeKycResponse: (stepResponse: FiatStepResponse, paymentMethod: string) => void;
5
+ trackKycStarted: (provider: FiatProvider | undefined, paymentMethod: string, startPath: KycPath, quoteRef?: string | null) => void;
6
+ trackKycFormSubmitted: (stepResponse: FiatStepResponse | undefined, paymentMethod: string, quoteRef?: string | null) => void;
7
+ trackKycSurfaceSubmitted: ({ kycProvider, provider, paymentMethod, quoteRef, }: {
8
+ kycProvider: KYCProvider;
9
+ provider: FiatProvider | undefined;
10
+ paymentMethod: string;
11
+ quoteRef?: string | null;
12
+ }) => void;
13
+ };
14
+ //# sourceMappingURL=useTrackKycEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTrackKycEvents.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/useTrackKycEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAGjB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EAIL,KAAK,OAAO,EAGb,MAAM,UAAU,CAAA;AAuDjB,wBAAgB,iBAAiB;uCA8Gd,gBAAgB,iBAAiB,MAAM;gCAxG1C,YAAY,GAAG,SAAS,iBACnB,MAAM,aACV,OAAO,aACR,MAAM,GAAG,IAAI;0CA6BT,gBAAgB,GAAG,SAAS,iBAC3B,MAAM,aACX,MAAM,GAAG,IAAI;oFA0CtB;QACD,WAAW,EAAE,WAAW,CAAA;QACxB,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;QAClC,aAAa,EAAE,MAAM,CAAA;QACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KACzB;EAqHJ"}
@@ -0,0 +1,13 @@
1
+ import type { FiatProvider, FiatStepResponse } from '@funkit/connect-core';
2
+ type SessionContactChannels = {
3
+ email: boolean;
4
+ sms: boolean;
5
+ };
6
+ export declare function useTrackSessionAuthEvents(): {
7
+ observeOtpResent: (response: FiatStepResponse | undefined, page: string) => void;
8
+ observeSessionAuthResponse: (response: FiatStepResponse, page: string) => void;
9
+ trackContactSubmitted: (channels: SessionContactChannels, attempts: number, provider: FiatProvider | undefined, paymentMethod: string, quoteRef?: string | null) => void;
10
+ trackOtpSubmitted: (response: FiatStepResponse | undefined, page: string, paymentMethod: string, quoteRef?: string | null) => void;
11
+ };
12
+ export {};
13
+ //# sourceMappingURL=useTrackSessionAuthEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTrackSessionAuthEvents.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/useTrackSessionAuthEvents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAM1E,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,OAAO,CAAA;IACd,GAAG,EAAE,OAAO,CAAA;CACb,CAAA;AAkDD,wBAAgB,yBAAyB;iCAgJ1B,gBAAgB,GAAG,SAAS,QAAQ,MAAM;2CA9G1C,gBAAgB,QAAQ,MAAM;sCAvB7B,sBAAsB,YACtB,MAAM,YACN,YAAY,GAAG,SAAS,iBACnB,MAAM,aACX,MAAM,GAAG,IAAI;kCA4Fb,gBAAgB,GAAG,SAAS,QAChC,MAAM,iBACG,MAAM,aACX,MAAM,GAAG,IAAI;EA2D5B"}
@@ -4,5 +4,5 @@ import type { AnalyticsEvent, AnalyticsEventProperties, CommonProperties } from
4
4
  * callers supply catalog-checked event metadata. The mount fence makes
5
5
  * callbacks retained by provider surfaces inert after their flow unmounts.
6
6
  */
7
- export declare function useTrackV2(): <T extends AnalyticsEvent>(event: T, buildMetadata: () => AnalyticsEventProperties[T] & Partial<CommonProperties>) => void;
7
+ export declare function useTrackV2(): <T extends AnalyticsEvent>(event: T, buildMetadata: () => AnalyticsEventProperties[T] & Partial<CommonProperties>) => boolean;
8
8
  //# sourceMappingURL=useTrackV2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTrackV2.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/useTrackV2.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,cAAc,EACd,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAIjB;;;;GAIG;AACH,wBAAgB,UAAU,KAiBrB,CAAC,SAAS,cAAc,SAChB,CAAC,iBACO,MAAM,wBAAwB,CAAC,CAAC,CAAC,GAC9C,OAAO,CAAC,gBAAgB,CAAC,UAiBhC"}
1
+ {"version":3,"file":"useTrackV2.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/useTrackV2.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,cAAc,EACd,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAIjB;;;;GAIG;AACH,wBAAgB,UAAU,KAkBrB,CAAC,SAAS,cAAc,iCAEF,wBAAwB,CAAC,CAAC,CAAC,GAC9C,OAAO,CAAC,gBAAgB,CAAC,aAgBhC"}
@@ -0,0 +1,7 @@
1
+ import type { WithdrawalToken } from '../../flow/withdrawalFlowConfig';
2
+ export declare function useWithdrawalFlowEvents({ checkoutId, sourceToken, walletAddress, }: {
3
+ checkoutId: string;
4
+ sourceToken: WithdrawalToken;
5
+ walletAddress: string;
6
+ }): void;
7
+ //# sourceMappingURL=useWithdrawalFlowEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWithdrawalFlowEvents.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/useWithdrawalFlowEvents.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAEtE,wBAAgB,uBAAuB,CAAC,EACtC,UAAU,EACV,WAAW,EACX,aAAa,GACd,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,eAAe,CAAA;IAC5B,aAAa,EAAE,MAAM,CAAA;CACtB,QAgBA"}
@@ -5,10 +5,4 @@
5
5
  * (Storybook, tests, an embedded screen) there is nothing to wait for.
6
6
  */
7
7
  export declare function useEnclosingSheetOpen(): boolean;
8
- /**
9
- * Whether the gorhom sheet this is rendered in stands above its lowest detent,
10
- * dragged or scrolled up from its opening peek. Outside a sheet there is no
11
- * peek to rise from, so it reads as raised.
12
- */
13
- export declare function useEnclosingSheetRaised(): boolean;
14
8
  //# sourceMappingURL=useEnclosingSheetOpen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useEnclosingSheetOpen.d.ts","sourceRoot":"","sources":["../../../src/hooks/useEnclosingSheetOpen.ts"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAmB/C;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,IAAI,OAAO,CAkBjD"}
1
+ {"version":3,"file":"useEnclosingSheetOpen.d.ts","sourceRoot":"","sources":["../../../src/hooks/useEnclosingSheetOpen.ts"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAmB/C"}
@@ -1,4 +1,5 @@
1
1
  import { type NumpadKey } from '../utils/numpadInput';
2
+ import { type DepositAmountSelection } from './track/events';
2
3
  /**
3
4
  * The value sits over the source's ceiling — the floor's mirror, and read the
4
5
  * same way: a state the amount is allowed to hold while the screen names it.
@@ -31,7 +32,7 @@ export declare function boundAsInput(bound: string): string;
31
32
  */
32
33
  export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd, disabled, }: {
33
34
  input: string;
34
- onChangeInput: (input: string) => void;
35
+ onChangeInput: (input: string, selection: DepositAmountSelection) => void;
35
36
  /** The source's maximum; a value past it lands and the screen names it. */
36
37
  limitUsd?: string;
37
38
  /** Locks the value: every numpad/chip commit rejects instead of applying. */
@@ -47,7 +48,7 @@ export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd,
47
48
  translateX?: undefined;
48
49
  })[];
49
50
  }>;
50
- commitInput: (next: string) => void;
51
+ commitInput: (next: string, selection?: DepositAmountSelection) => void;
51
52
  handleNumpadKey: (key: NumpadKey) => void;
52
53
  pulseAmount: () => void;
53
54
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAuBrE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAKxE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAM3E;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElD;AAOD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;;;;;;;;;;;wBA4DU,MAAM;2BA2BP,SAAS;;EAiClB"}
1
+ {"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AACrE,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,gBAAgB,CAAA;AAuBvB;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAKxE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAM3E;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElD;AAOD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,KAAK,IAAI,CAAA;IACzE,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;;;;;;;;;;;wBA6DW,MAAM,cACD,sBAAsB;2BA4B7B,SAAS;;EAqClB"}
@@ -3,7 +3,9 @@
3
3
  * — the RN port of web's `CryptoTransferQRIcon`. Renders the QR-scan glyph in
4
4
  * the theme's primary text color.
5
5
  */
6
- export declare function CryptoTransferQRIcon({ size }: {
6
+ export declare function CryptoTransferQRIcon({ size, color, }: {
7
7
  size?: number;
8
+ /** Defaults to the theme's primary text color. */
9
+ color?: string;
8
10
  }): import("react").JSX.Element;
9
11
  //# sourceMappingURL=CryptoTransferQRIcon.d.ts.map