@funkit/connect-rn 6.1.0 → 7.0.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 (209) hide show
  1. package/CHANGELOG.md +120 -0
  2. package/README.md +79 -4
  3. package/dist/{chunk-MKOPF7Y5.js → chunk-HRJNTNCV.js} +2 -2
  4. package/dist/{chunk-HMAJXI66.js → chunk-P3OLDPDC.js} +354 -49
  5. package/dist/chunk-P3OLDPDC.js.map +7 -0
  6. package/dist/clients/lighter.js +1 -1
  7. package/dist/clients/nado/useNadoWithdrawal.d.ts.map +1 -1
  8. package/dist/clients/nado.js +3 -3
  9. package/dist/clients/nado.js.map +2 -2
  10. package/dist/index.d.ts +7 -2
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +5992 -2320
  13. package/dist/index.js.map +4 -4
  14. package/dist/src/components/LoadingSpinner.d.ts.map +1 -1
  15. package/dist/src/components/PillButton.d.ts.map +1 -1
  16. package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
  17. package/dist/src/fiat/FiatChoiceField.d.ts +7 -1
  18. package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
  19. package/dist/src/fiat/FiatCountrySheet.d.ts +11 -0
  20. package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
  21. package/dist/src/fiat/FiatFailureBanner.d.ts +14 -0
  22. package/dist/src/fiat/FiatFailureBanner.d.ts.map +1 -0
  23. package/dist/src/fiat/FiatFormScreen.d.ts +11 -1
  24. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
  25. package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
  26. package/dist/src/fiat/FiatKycFieldControl.d.ts +9 -2
  27. package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
  28. package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -1
  29. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +15 -2
  30. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
  31. package/dist/src/fiat/FiatKycPhoneField.d.ts +21 -0
  32. package/dist/src/fiat/FiatKycPhoneField.d.ts.map +1 -0
  33. package/dist/src/fiat/FiatReceipt.d.ts +21 -0
  34. package/dist/src/fiat/FiatReceipt.d.ts.map +1 -0
  35. package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts +11 -0
  36. package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts.map +1 -0
  37. package/dist/src/fiat/FiatStatusScreen.d.ts.map +1 -1
  38. package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -1
  39. package/dist/src/fiat/FiatTermsNotice.d.ts +3 -1
  40. package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
  41. package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -1
  42. package/dist/src/fiat/ScreenSurfaceCover.d.ts +11 -0
  43. package/dist/src/fiat/ScreenSurfaceCover.d.ts.map +1 -0
  44. package/dist/src/fiat/SurfaceSlot.d.ts +12 -1
  45. package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
  46. package/dist/src/fiat/depositOutcome.d.ts +33 -0
  47. package/dist/src/fiat/depositOutcome.d.ts.map +1 -0
  48. package/dist/src/fiat/fieldAutofill.d.ts.map +1 -1
  49. package/dist/src/fiat/formLayout.d.ts +12 -5
  50. package/dist/src/fiat/formLayout.d.ts.map +1 -1
  51. package/dist/src/fiat/formScreenProps.d.ts +4 -2
  52. package/dist/src/fiat/formScreenProps.d.ts.map +1 -1
  53. package/dist/src/fiat/kycFormPosition.d.ts +25 -1
  54. package/dist/src/fiat/kycFormPosition.d.ts.map +1 -1
  55. package/dist/src/fiat/kycFormState.d.ts +10 -0
  56. package/dist/src/fiat/kycFormState.d.ts.map +1 -1
  57. package/dist/src/fiat/kycUnavailableAlert.d.ts +21 -1
  58. package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -1
  59. package/dist/src/fiat/methodName.d.ts +8 -0
  60. package/dist/src/fiat/methodName.d.ts.map +1 -0
  61. package/dist/src/fiat/otpScreenProps.d.ts +5 -0
  62. package/dist/src/fiat/otpScreenProps.d.ts.map +1 -1
  63. package/dist/src/fiat/providerFailover.d.ts +12 -0
  64. package/dist/src/fiat/providerFailover.d.ts.map +1 -0
  65. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +4 -2
  66. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
  67. package/dist/src/fiat/providers/StripeSessionAuthController.d.ts +29 -0
  68. package/dist/src/fiat/providers/StripeSessionAuthController.d.ts.map +1 -0
  69. package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts +10 -0
  70. package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts.map +1 -0
  71. package/dist/src/fiat/providers/adapter.d.ts +6 -0
  72. package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
  73. package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts +7 -3
  74. package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts.map +1 -1
  75. package/dist/src/fiat/providers/describeThrown.d.ts +14 -0
  76. package/dist/src/fiat/providers/describeThrown.d.ts.map +1 -0
  77. package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
  78. package/dist/src/fiat/providers/moonpayTrace.d.ts +25 -0
  79. package/dist/src/fiat/providers/moonpayTrace.d.ts.map +1 -0
  80. package/dist/src/fiat/providers/stripeAccountCreation.d.ts +12 -0
  81. package/dist/src/fiat/providers/stripeAccountCreation.d.ts.map +1 -0
  82. package/dist/src/fiat/providers/stripeAuthorize.d.ts +5 -0
  83. package/dist/src/fiat/providers/stripeAuthorize.d.ts.map +1 -0
  84. package/dist/src/fiat/providers/stripeCheckout.d.ts +28 -0
  85. package/dist/src/fiat/providers/stripeCheckout.d.ts.map +1 -0
  86. package/dist/src/fiat/providers/stripeKyc.d.ts +56 -0
  87. package/dist/src/fiat/providers/stripeKyc.d.ts.map +1 -0
  88. package/dist/src/fiat/providers/stripeKycInfo.d.ts +11 -0
  89. package/dist/src/fiat/providers/stripeKycInfo.d.ts.map +1 -0
  90. package/dist/src/fiat/providers/stripeOnramp.d.ts +135 -0
  91. package/dist/src/fiat/providers/stripeOnramp.d.ts.map +1 -0
  92. package/dist/src/fiat/providers/stripeOnrampBridge.d.ts +20 -0
  93. package/dist/src/fiat/providers/stripeOnrampBridge.d.ts.map +1 -0
  94. package/dist/src/fiat/providers/stripePayment.d.ts +34 -0
  95. package/dist/src/fiat/providers/stripePayment.d.ts.map +1 -0
  96. package/dist/src/fiat/providers/stripeSdk.d.ts +19 -0
  97. package/dist/src/fiat/providers/stripeSdk.d.ts.map +1 -0
  98. package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts +18 -0
  99. package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts.map +1 -0
  100. package/dist/src/fiat/providers/stripeSessionAuth.d.ts +43 -0
  101. package/dist/src/fiat/providers/stripeSessionAuth.d.ts.map +1 -0
  102. package/dist/src/fiat/providers/useStripeOnrampClient.d.ts +35 -0
  103. package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +1 -0
  104. package/dist/src/fiat/quoteRefusal.d.ts +6 -2
  105. package/dist/src/fiat/quoteRefusal.d.ts.map +1 -1
  106. package/dist/src/fiat/renderCaptureSurface.d.ts +1 -1
  107. package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
  108. package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
  109. package/dist/src/fiat/stepDetails.d.ts +5 -1
  110. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  111. package/dist/src/fiat/useKycCompletion.d.ts +11 -3
  112. package/dist/src/fiat/useKycCompletion.d.ts.map +1 -1
  113. package/dist/src/fiat/useStaleQuoteRecovery.d.ts +8 -1
  114. package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -1
  115. package/dist/src/flow/DepositAmountStep.d.ts +4 -2
  116. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  117. package/dist/src/flow/DepositFlowContent.d.ts +4 -1
  118. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  119. package/dist/src/flow/DepositReceivedToast.d.ts +17 -0
  120. package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -0
  121. package/dist/src/flow/Drawer.d.ts +3 -2
  122. package/dist/src/flow/Drawer.d.ts.map +1 -1
  123. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
  124. package/dist/src/flow/FiatDepositAmountStep.d.ts +6 -2
  125. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  126. package/dist/src/flow/FiatRegionBlockedStep.d.ts +14 -0
  127. package/dist/src/flow/FiatRegionBlockedStep.d.ts.map +1 -0
  128. package/dist/src/flow/FiatRegionPendingStep.d.ts +10 -0
  129. package/dist/src/flow/FiatRegionPendingStep.d.ts.map +1 -0
  130. package/dist/src/flow/FlowSheet.d.ts +10 -3
  131. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  132. package/dist/src/flow/FunkitFlowProvider.d.ts +11 -1
  133. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  134. package/dist/src/flow/StepPage.d.ts +16 -0
  135. package/dist/src/flow/StepPage.d.ts.map +1 -0
  136. package/dist/src/flow/accountContext.d.ts +6 -0
  137. package/dist/src/flow/accountContext.d.ts.map +1 -0
  138. package/dist/src/flow/depositFlowConfig.d.ts +95 -26
  139. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  140. package/dist/src/flow/depositMethods.d.ts +21 -0
  141. package/dist/src/flow/depositMethods.d.ts.map +1 -0
  142. package/dist/src/flow/depositRailCopy.d.ts +20 -0
  143. package/dist/src/flow/depositRailCopy.d.ts.map +1 -0
  144. package/dist/src/flow/flowError.d.ts +37 -0
  145. package/dist/src/flow/flowError.d.ts.map +1 -0
  146. package/dist/src/flow/useDepositReceivedToast.d.ts +22 -0
  147. package/dist/src/flow/useDepositReceivedToast.d.ts.map +1 -0
  148. package/dist/src/flow/withdrawalFlowConfig.d.ts +12 -5
  149. package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
  150. package/dist/src/geo/useFiatRegionSupport.d.ts +23 -0
  151. package/dist/src/geo/useFiatRegionSupport.d.ts.map +1 -0
  152. package/dist/src/hooks/useGuardedAmountInput.d.ts +15 -15
  153. package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
  154. package/dist/src/hooks/usePressScale.d.ts +22 -3
  155. package/dist/src/hooks/usePressScale.d.ts.map +1 -1
  156. package/dist/src/icons/FigmaSystemIcons.d.ts +1 -0
  157. package/dist/src/icons/FigmaSystemIcons.d.ts.map +1 -1
  158. package/dist/src/icons/KycIdentityIcon.d.ts +2 -1
  159. package/dist/src/icons/KycIdentityIcon.d.ts.map +1 -1
  160. package/dist/src/icons/KycStatusIcon.d.ts +1 -1
  161. package/dist/src/icons/KycStatusIcon.d.ts.map +1 -1
  162. package/dist/src/icons/kycArtwork.d.ts +15 -0
  163. package/dist/src/icons/kycArtwork.d.ts.map +1 -1
  164. package/dist/src/identity/IdentityContext.d.ts +3 -4
  165. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  166. package/dist/src/logging/debugBridge.d.ts +11 -0
  167. package/dist/src/logging/debugBridge.d.ts.map +1 -0
  168. package/dist/src/providers/FunkitProvider.d.ts +19 -1
  169. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  170. package/dist/src/providers/NativeCapabilitiesContext.d.ts +17 -4
  171. package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
  172. package/dist/src/providers/useFrozenIdentity.d.ts +19 -0
  173. package/dist/src/providers/useFrozenIdentity.d.ts.map +1 -0
  174. package/dist/src/screens/DepositAmountScreen.d.ts +1 -1
  175. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  176. package/dist/src/screens/FeeDetailsScreen.d.ts +16 -10
  177. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  178. package/dist/src/screens/depositMetrics.d.ts +2 -8
  179. package/dist/src/screens/depositMetrics.d.ts.map +1 -1
  180. package/dist/src/statsig/useStatsigReady.d.ts +11 -0
  181. package/dist/src/statsig/useStatsigReady.d.ts.map +1 -0
  182. package/dist/src/theme/buildFunkitTheme.d.ts +15 -11
  183. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  184. package/dist/src/theme/restyle.d.ts +495 -363
  185. package/dist/src/theme/restyle.d.ts.map +1 -1
  186. package/dist/src/theme/toRestyleTheme.d.ts +45 -33
  187. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  188. package/dist/src/theme/tokens.d.ts +5 -5
  189. package/dist/src/theme/tokens.d.ts.map +1 -1
  190. package/dist/src/transfer/hooks/useWithdrawalFops.d.ts.map +1 -1
  191. package/dist/src/utils/formatAmount.d.ts +4 -3
  192. package/dist/src/utils/formatAmount.d.ts.map +1 -1
  193. package/dist/src/utils/motion.d.ts +8 -0
  194. package/dist/src/utils/motion.d.ts.map +1 -1
  195. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
  196. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
  197. package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -1
  198. package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
  199. package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts +11 -0
  200. package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts.map +1 -0
  201. package/dist/src/withdrawal/walletlessWithdrawal.d.ts +7 -0
  202. package/dist/src/withdrawal/walletlessWithdrawal.d.ts.map +1 -0
  203. package/package.json +10 -5
  204. package/dist/chunk-HMAJXI66.js.map +0 -7
  205. package/dist/src/hooks/useMinimumAmountValidation.d.ts +0 -21
  206. package/dist/src/hooks/useMinimumAmountValidation.d.ts.map +0 -1
  207. package/dist/src/hooks/useTrailingTrue.d.ts +0 -7
  208. package/dist/src/hooks/useTrailingTrue.d.ts.map +0 -1
  209. /package/dist/{chunk-MKOPF7Y5.js.map → chunk-HRJNTNCV.js.map} +0 -0
@@ -0,0 +1,43 @@
1
+ import type { FiatStepResponse, SubmitTransition, Surface, SurfaceResult } from '@funkit/connect-core';
2
+ import type { StripeAuthorizeResult, StripeOnrampError } from './stripeOnramp';
3
+ export interface StripeSessionAuthStart {
4
+ transition: SubmitTransition;
5
+ verifiedEmail: string;
6
+ }
7
+ /**
8
+ * Reads the frozen Stripe auth-start seam from a generic `SESSION_AUTH` step.
9
+ * The backend owns the email and transition; the client only runs its local
10
+ * Link-account prerequisite before firing them.
11
+ */
12
+ export declare function stripeSessionAuthStart(step: FiatStepResponse | undefined, ctas: readonly SubmitTransition[]): StripeSessionAuthStart | undefined;
13
+ export type StripeAuthSurface = {
14
+ action: 'AUTHORIZE';
15
+ linkAuthIntentId: string;
16
+ } | {
17
+ action: 'AUTHENTICATE_WITH_TOKEN';
18
+ linkAuthTokenClientSecret: string;
19
+ };
20
+ /** Narrows the two Stripe native authentication surfaces at the adapter boundary. */
21
+ export declare function stripeAuthSurface(surface: Surface): StripeAuthSurface | undefined;
22
+ /**
23
+ * Flat, like `stripeAuthorizationReport` beside it and for the same reason: this
24
+ * surface answers a SUBMIT, and `injectExpects` fills nothing for a transition
25
+ * that is not a `CLIENT_SURFACE`. Nested under `result` the outcome was dropped
26
+ * during body assembly, so the buyer's consent never left the device.
27
+ */
28
+ export declare const stripeSeamlessAuthReport: (authenticated: boolean) => SurfaceResult;
29
+ /**
30
+ * Maps Stripe's SDK union onto the frozen wire outcomes, one key per declared
31
+ * input. Flat rather than nested under `result`: the transition carrying this
32
+ * is a SUBMIT, so body assembly takes each value by the input name the
33
+ * envelope declares, and `customerId` stays conditional by being absent on
34
+ * anything but consent rather than by being undefined inside a wrapper.
35
+ */
36
+ export declare function stripeAuthorizationReport(result: StripeAuthorizeResult): SurfaceResult | undefined;
37
+ /**
38
+ * Takes the error optionally. The SDK's result is declared as a union whose
39
+ * failure member always carries one, but an undeclared shape does reach here at
40
+ * runtime, and reading `.code` off it threw rather than reporting no outcome.
41
+ */
42
+ export declare function isStripeCancellation(error?: StripeOnrampError): boolean;
43
+ //# sourceMappingURL=stripeSessionAuth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripeSessionAuth.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeSessionAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,EACP,aAAa,EACd,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAE9E,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,gBAAgB,CAAA;IAC5B,aAAa,EAAE,MAAM,CAAA;CACtB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,gBAAgB,GAAG,SAAS,EAClC,IAAI,EAAE,SAAS,gBAAgB,EAAE,GAChC,sBAAsB,GAAG,SAAS,CA0BpC;AAED,MAAM,MAAM,iBAAiB,GACzB;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAE,GACjD;IACE,MAAM,EAAE,yBAAyB,CAAA;IACjC,yBAAyB,EAAE,MAAM,CAAA;CAClC,CAAA;AAEL,qFAAqF;AACrF,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,GACf,iBAAiB,GAAG,SAAS,CA4B/B;AAED;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GACnC,eAAe,OAAO,KACrB,aAED,CAAA;AAEF;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,qBAAqB,GAC5B,aAAa,GAAG,SAAS,CAa3B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAEvE"}
@@ -0,0 +1,35 @@
1
+ import type { StripeOnrampClient } from './stripeOnramp';
2
+ import type { StripeSdk } from './stripeSdk';
3
+ /**
4
+ * What a host must supply to turn Stripe on: its own Stripe account's
5
+ * publishable key, and the Apple Merchant ID baked into the app's entitlements.
6
+ * Data only — the host installs `@stripe/stripe-react-native` (an optional peer)
7
+ * and this package binds it (see {@link useStripeOnrampClient}), so a host wires
8
+ * three strings, not an implementation.
9
+ */
10
+ export interface StripeOnrampConfig {
11
+ /** Publishable key for the Stripe account the onramp settles into. */
12
+ publishableKey: string;
13
+ /** Shown on Stripe's own sheets. Defaults to the app's display name. */
14
+ merchantDisplayName: string;
15
+ /**
16
+ * Apple Merchant ID (`merchant.example.app`). Required for Apple Pay: it is
17
+ * an app entitlement, so only the host knows it, and Stripe decrypts the
18
+ * payment against the certificate bound to it.
19
+ */
20
+ merchantIdentifier?: string;
21
+ /** Deep-link scheme Stripe returns to after a redirect (3DS, KYC). */
22
+ urlScheme?: string;
23
+ }
24
+ /**
25
+ * Binds Stripe's native SDK to the {@link StripeOnrampClient} the fiat surfaces
26
+ * call. Takes the SDK as an argument because it is an optional peer, loaded by
27
+ * `StripeOnrampBridge` only after a host configured Stripe.
28
+ *
29
+ * `initStripe` is idempotent per config but not free, so it runs once per
30
+ * distinct config and every call awaits that same promise — the SDK rejects
31
+ * calls made before it resolves. A failed init clears the cache so the next
32
+ * call retries rather than latching the failure forever.
33
+ */
34
+ export declare function useStripeOnrampClient({ initStripe, isPlatformPaySupported, useOnramp }: StripeSdk, config: StripeOnrampConfig): StripeOnrampClient;
35
+ //# sourceMappingURL=useStripeOnrampClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStripeOnrampClient.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useStripeOnrampClient.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,cAAc,EAAE,MAAM,CAAA;IACtB,wEAAwE;IACxE,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,EAAE,UAAU,EAAE,sBAAsB,EAAE,SAAS,EAAE,EAAE,SAAS,EAC5D,MAAM,EAAE,kBAAkB,GACzB,kBAAkB,CA0JpB"}
@@ -15,10 +15,14 @@ export interface QuoteRefusalAlert {
15
15
  message: string;
16
16
  }
17
17
  export declare function showPaymentUnavailableAlert(t: TFunction, applePay: boolean, scheme?: 'light' | 'dark'): void;
18
- export declare function showQuoteRefusalAlert(error: FailureReason, t: TFunction, scheme?: 'light' | 'dark'): void;
18
+ export declare function showQuoteRefusalAlert(error: FailureReason, t: TFunction, scheme?: 'light' | 'dark',
19
+ /** The ceiling the refusing response reported, already formatted. */
20
+ max?: string): void;
19
21
  /** The error a step response carries back onto the quote, if it does. */
20
22
  export declare function quoteRefusal(stepResponse: FiatStepResponse | undefined): FailureReason | undefined;
21
- export declare function quoteRefusalAlert(error: FailureReason, t: TFunction): QuoteRefusalAlert;
23
+ /** The ceiling a refusing response carries, when it re-presents the quote. */
24
+ export declare function quoteRefusalLimit(stepResponse: FiatStepResponse | undefined): string | undefined;
25
+ export declare function quoteRefusalAlert(error: FailureReason, t: TFunction, max?: string): QuoteRefusalAlert;
22
26
  /** Select the contact-screen recovery, if the refusal belongs on that screen. */
23
27
  export declare function contactRefusal(error: FailureReason | undefined): 'reverify' | 'change' | 'rate-limited' | undefined;
24
28
  //# sourceMappingURL=quoteRefusal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"quoteRefusal.d.ts","sourceRoot":"","sources":["../../../src/fiat/quoteRefusal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,a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BAAgB,qBAAqB,CACnC,KAAK,EAAE,aAAa,EACpB,CAAC,EAAE,SAAS,EACZ,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;AACzB,qEAAqE;AACrE,GAAG,CAAC,EAAE,MAAM,QAkBb;AAED,yEAAyE;AACzE,wBAAgB,YAAY,CAC1B,YAAY,EAAE,gBAAgB,GAAG,SAAS,GACzC,aAAa,GAAG,SAAS,CAG3B;AAED,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,gBAAgB,GAAG,SAAS,GACzC,MAAM,GAAG,SAAS,CAGpB;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,EACpB,CAAC,EAAE,SAAS,EACZ,GAAG,CAAC,EAAE,MAAM,GACX,iBAAiB,CAoCnB;AAED,iFAAiF;AACjF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,aAAa,GAAG,SAAS,GAC/B,UAAU,GAAG,QAAQ,GAAG,cAAc,GAAG,SAAS,CAepD"}
@@ -5,7 +5,7 @@ import type { SurfaceAdapter, SurfaceContext, SurfaceControlModel } from './prov
5
5
  * How this surface is operated, or `undefined` when nothing can draw it.
6
6
  * Asked before rendering, because the two models want different chrome.
7
7
  */
8
- export declare function captureControl(surface: Surface): SurfaceControlModel | undefined;
8
+ export declare function captureControl(surface: Surface, adapters?: readonly SurfaceAdapter[]): SurfaceControlModel | undefined;
9
9
  /**
10
10
  * `adapters` are tried before the registry, for a screen that can build one
11
11
  * the registry cannot — the identity SDK needs the quote its capture belongs
@@ -1 +1 @@
1
- {"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,EACpB,MAAM,qBAAqB,CAAA;AAqC5B;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,GACf,mBAAmB,GAAG,SAAS,CAEjC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,cAAc,GAAG;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;CACrC,GAAG,SAAS,CAEZ"}
1
+ {"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,EACpB,MAAM,qBAAqB,CAAA;AAqC5B;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,SAAS,cAAc,EAAO,GACvC,mBAAmB,GAAG,SAAS,CAEjC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,cAAc,GAAG;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;CACrC,GAAG,SAAS,CAEZ"}
@@ -1 +1 @@
1
- {"version":3,"file":"sectionDetail.d.ts","sourceRoot":"","sources":["../../../src/fiat/sectionDetail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAmBvE"}
1
+ {"version":3,"file":"sectionDetail.d.ts","sourceRoot":"","sources":["../../../src/fiat/sectionDetail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CA+BvE"}
@@ -33,7 +33,7 @@ export declare function quoteFeeSummary(quote: Quote | undefined, method: string
33
33
  * A step's own error, worded for the banner it renders as. The contract sends
34
34
  * no message — `code` is a copy key — so the category is what the copy keys off.
35
35
  */
36
- export declare function roundErrorMessage(error: FailureReason | undefined, t: TFunction): string | undefined;
36
+ export declare function roundErrorMessage(error: FailureReason | undefined, t: TFunction, provider?: string): string | undefined;
37
37
  /**
38
38
  * A cooling-off hold's comeback date, worded as the ISO day it names.
39
39
  *
@@ -49,4 +49,8 @@ export declare function kycHoldRetryDetail(flow: FiatFlow, t: TFunction): string
49
49
  */
50
50
  export declare function rejectedDetail(flow: FiatFlow, t: TFunction): string | undefined;
51
51
  export declare function blockedRetryDetail(flow: FiatFlow): string | undefined;
52
+ /** The marker a KYC round carries when its quote lapsed while the form was open. */
53
+ export declare function isExpiredQuoteMarker(error: FailureReason): boolean;
54
+ /** The recipient as the buyer knows it; the wire id is upper case. */
55
+ export declare function providerName(provider: string | undefined): string;
52
56
  //# sourceMappingURL=stepDetails.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../src/fiat/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EA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AY,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAKjE;AAED,0EAA0E;AAC1E,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAGpB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAKrE;AAkBD,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAElE;AAED,sEAAsE;AACtE,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAKjE"}
@@ -2,12 +2,20 @@ import type { FiatFlow } from '@funkit/connect-core';
2
2
  import type { FiatKycOutcomeScreenProps } from './FiatKycOutcomeScreen';
3
3
  export type KycCompletion = FiatKycOutcomeScreenProps['outcome'];
4
4
  /**
5
- * The acknowledgement owed to a finished identity form, which the quote-time
6
- * banner cannot give: that one reports a verdict returned with a price, so a
7
- * form answered with a price says nothing.
5
+ * The acknowledgement owed to a finished identity form whose verdict is not
6
+ * yet in: review, hold, or refusal. A form answered with the next step needs
7
+ * none; that step is the acknowledgement.
8
8
  *
9
9
  * Derived in render, not an effect — the amount screen must not paint in the
10
10
  * gap. Capture is excluded: a provider surface reporting back is not a form.
11
11
  */
12
12
  export declare function useKycCompletion(flow: FiatFlow): KycCompletion | undefined;
13
+ /**
14
+ * The wait an acknowledgement makes before it gives up its verdict.
15
+ *
16
+ * - Counted from the moment the screen is up, not from when the answer landed:
17
+ * the verdict is often decided while another screen still owns the frame,
18
+ * and a wait spent behind one is a wait the buyer never had.
19
+ */
20
+ export declare function useKycCompletionHold(): boolean;
13
21
  //# sourceMappingURL=useKycCompletion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useKycCompletion.d.ts","sourceRoot":"","sources":["../../../src/fiat/useKycCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAIpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAEvE,MAAM,MAAM,aAAa,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAA;AAIhE;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,SAAS,CAa1E"}
1
+ {"version":3,"file":"useKycCompletion.d.ts","sourceRoot":"","sources":["../../../src/fiat/useKycCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAIpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAEvE,MAAM,MAAM,aAAa,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAA;AAOhE;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,SAAS,CAa1E;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAO9C"}
@@ -19,6 +19,13 @@ export interface StaleQuoteRecovery {
19
19
  * query is off, so there is no replacement to wait for, and the way to a new
20
20
  * price is giving the round up.
21
21
  */
22
- export declare function useStaleQuoteRecovery(flow: RecoverableFlow, quote: RecoverableQuote): StaleQuoteRecovery;
22
+ export declare function useStaleQuoteRecovery(flow: RecoverableFlow, quote: RecoverableQuote, { hold, }?: {
23
+ /**
24
+ * The failed send followed a completed capture, so a replacement price
25
+ * would open a second sheet on a card already charged. Nothing is replaced
26
+ * while this holds.
27
+ */
28
+ hold?: boolean;
29
+ }): StaleQuoteRecovery;
23
30
  export {};
24
31
  //# sourceMappingURL=useStaleQuoteRecovery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useStaleQuoteRecovery.d.ts","sourceRoot":"","sources":["../../../src/fiat/useStaleQuoteRecovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMxE,KAAK,eAAe,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,aAAa,GAAG,cAAc,CAAC,CAAA;AAE/E,KAAK,gBAAgB,GAAG,IAAI,CAC1B,kBAAkB,EAClB,OAAO,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,GAAG,aAAa,CACvE,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,WAAW,EAAE,OAAO,CAAA;IACpB,uEAAuE;IACvE,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,gBAAgB,GACtB,kBAAkB,CAwEpB"}
1
+ {"version":3,"file":"useStaleQuoteRecovery.d.ts","sourceRoot":"","sources":["../../../src/fiat/useStaleQuoteRecovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMxE,KAAK,eAAe,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,aAAa,GAAG,cAAc,CAAC,CAAA;AAE/E,KAAK,gBAAgB,GAAG,IAAI,CAC1B,kBAAkB,EAClB,OAAO,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,GAAG,aAAa,CACvE,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,WAAW,EAAE,OAAO,CAAA;IACpB,uEAAuE;IACvE,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,gBAAgB,EACvB,EACE,IAAY,GACb,GAAE;IACD;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACV,GACL,kBAAkB,CA8EpB"}
@@ -1,12 +1,14 @@
1
- import type { DepositAmountEntryConfig, DepositFlowCallbacks, DepositInitialAmount } from './depositFlowConfig';
1
+ import type { DepositAmountEntryConfig, DepositFlowCallbacks, DepositInitialAmount, DepositMethod } from './depositFlowConfig';
2
2
  /**
3
3
  * Container for the V2 amount-entry screen: owns the typed amount, prices the
4
4
  * fee from the configured rate and hands submission to the host. The payment
5
5
  * rail behind the submit is not part of this step — `onSubmitAmount` is the
6
6
  * seam it will attach to.
7
7
  */
8
- export declare function DepositAmountStep({ config, callbacks, initialAmount, lockAmount, }: {
8
+ export declare function DepositAmountStep({ config, method, callbacks, initialAmount, lockAmount, }: {
9
9
  config: DepositAmountEntryConfig;
10
+ /** The method the submit stands for; it words the button and the drawer. */
11
+ method?: DepositMethod;
10
12
  callbacks: DepositFlowCallbacks;
11
13
  /** Prefills the typed amount. */
12
14
  initialAmount?: DepositInitialAmount;
@@ -1 +1 @@
1
- {"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAU5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,GACX,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,SAAS,EAAE,oBAAoB,CAAA;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BA2HA"}
1
+ {"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACd,MAAM,qBAAqB,CAAA;AAY5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,GACX,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,4EAA4E;IAC5E,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,SAAS,EAAE,oBAAoB,CAAA;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BAgIA"}
@@ -1,5 +1,6 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import type { DepositClientMetadata, DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
3
+ import type { DepositReceipt } from './useDepositReceivedToast';
3
4
  import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
4
5
  /**
5
6
  * The live flow body. Drives the deposit-address + QR generation
@@ -7,13 +8,15 @@ import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
7
8
  * with the resolved data. Kept separate from the provider so its
8
9
  * hooks run only while the modal is open (it isn't mounted when closed).
9
10
  */
10
- export declare function FlowContent({ checkoutId, clientMetadata, config, current, nav, onCopySuccess, callbacks, }: {
11
+ export declare function FlowContent({ checkoutId, clientMetadata, config, current, nav, onCopySuccess, showDepositToast, callbacks, }: {
11
12
  checkoutId: string;
12
13
  clientMetadata: DepositClientMetadata | undefined;
13
14
  config: DepositFlowConfig;
14
15
  current: FlowScreen | undefined;
15
16
  nav: FlowNav;
16
17
  onCopySuccess: () => void;
18
+ /** Raises the SDK's deposit confirmation, which outlives this content. */
19
+ showDepositToast: (receipt: DepositReceipt) => void;
17
20
  callbacks: DepositFlowCallbacks;
18
21
  }): ReactNode;
19
22
  //# sourceMappingURL=DepositFlowContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAA;AA2CxE,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAI5B,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AA6D/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,cAAc,EACd,MAAM,EACN,OAAO,EACP,GAAG,EACH,aAAa,EACb,SAAS,GACV,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CAyQZ"}
1
+ {"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAA;AA8CxE,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAG/D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AA6D/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,cAAc,EACd,MAAM,EACN,OAAO,EACP,GAAG,EACH,aAAa,EACb,gBAAgB,EAChB,SAAS,GACV,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,0EAA0E;IAC1E,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CAiSZ"}
@@ -0,0 +1,17 @@
1
+ export interface DepositReceivedToastProps {
2
+ /** The amount that landed, e.g. "$99.50 deposit received". */
3
+ title: string;
4
+ /** Where it came from, e.g. "from ApplePay". */
5
+ detail: string;
6
+ }
7
+ /**
8
+ * The deposit confirmation that replaces the payment sheet.
9
+ *
10
+ * - Owns no timer and no positioning: whatever mounts it decides both.
11
+ * - Outlives the sheet — the flow closes on a cleared charge, and this is what
12
+ * says the money arrived.
13
+ * - Glass like GlassSheetBackground: a glass host owns the tint, so the fill
14
+ * drops out under it rather than flattening the refraction.
15
+ */
16
+ export declare function DepositReceivedToast({ title, detail, }: DepositReceivedToastProps): import("react").JSX.Element;
17
+ //# sourceMappingURL=DepositReceivedToast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepositReceivedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositReceivedToast.tsx"],"names":[],"mappings":"AAiCA,MAAM,WAAW,yBAAyB;IACxC,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAA;IACb,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,MAAM,GACP,EAAE,yBAAyB,+BAgD3B"}
@@ -16,8 +16,9 @@ export interface DrawerProps<TScreen extends string> {
16
16
  * they are dismissed the same way and drawn on the same material.
17
17
  *
18
18
  * The drawer owns its grabber, drawn over the content rather than above it, so
19
- * it stays put while a list scrolls under it. Nothing here draws a close
20
- * button — the gesture, the grabber and the backdrop are the way out.
19
+ * it stays put while a list scrolls under it. A close button is the screen's
20
+ * to draw where the design gives it one (the fee breakdown does); the gesture,
21
+ * the grabber and the backdrop are the drawer's.
21
22
  */
22
23
  export declare function Drawer<TScreen extends string>({ sheet, fullHeight, children, }: DrawerProps<TScreen>): import("react").JSX.Element;
23
24
  //# sourceMappingURL=Drawer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/flow/Drawer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAGf,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAe1D,MAAM,WAAW,WAAW,CAAC,OAAO,SAAS,MAAM;IACjD,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC3B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,OAAO,SAAS,MAAM,EAAE,EAC7C,KAAK,EACL,UAAkB,EAClB,QAAQ,GACT,EAAE,WAAW,CAAC,OAAO,CAAC,+BAqFtB"}
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/flow/Drawer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAGf,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAc1D,MAAM,WAAW,WAAW,CAAC,OAAO,SAAS,MAAM;IACjD,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC3B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,OAAO,SAAS,MAAM,EAAE,EAC7C,KAAK,EACL,UAAkB,EAClB,QAAQ,GACT,EAAE,WAAW,CAAC,OAAO,CAAC,+BA8EtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAE1E,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAA;AAOpC,iEAAiE;AACjE,wBAAgB,kBAAkB,IAAI;IACpC,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B,CAWA;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,OAAO,GACR,EAAE;IACD,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,+BAiBA"}
1
+ {"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAA;AAGpC,iEAAiE;AACjE,wBAAgB,kBAAkB,IAAI;IACpC,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B,CAWA;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,OAAO,GACR,EAAE;IACD,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,+BAeA"}
@@ -1,5 +1,6 @@
1
- import type { DepositAmountEntryConfig, DepositCheckoutConfig, DepositClientMetadata, DepositInitialAmount, FiatRailConfig } from './depositFlowConfig';
2
- export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dynamicRoutingId, depositAddressOverride, checkoutId, clientMetadata, initialAmount, lockAmount, onCloseFlow, }: {
1
+ import type { DepositAmountEntryConfig, DepositCheckoutConfig, DepositClientMetadata, DepositFlowCallbacks, DepositInitialAmount, FiatRailConfig } from './depositFlowConfig';
2
+ import type { DepositReceipt } from './useDepositReceivedToast';
3
+ export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dynamicRoutingId, depositAddressOverride, checkoutId, clientMetadata, initialAmount, lockAmount, callbacks, showDepositToast, onCloseFlow, }: {
3
4
  config: DepositAmountEntryConfig;
4
5
  fiat: FiatRailConfig;
5
6
  checkoutConfig: DepositCheckoutConfig | undefined;
@@ -14,6 +15,9 @@ export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dy
14
15
  initialAmount?: DepositInitialAmount;
15
16
  /** Locks the prefilled amount against numpad and quick-amount edits. */
16
17
  lockAmount?: boolean;
18
+ callbacks: Pick<DepositFlowCallbacks, 'onDepositSubmitted' | 'onDepositError'>;
19
+ /** Raises the SDK's deposit confirmation, which outlives this screen. */
20
+ showDepositToast: (receipt: DepositReceipt) => void;
17
21
  onCloseFlow: () => void;
18
22
  }): import("react").JSX.Element;
19
23
  //# sourceMappingURL=FiatDepositAmountStep.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAoD5B,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BA2BA"}
1
+ {"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAkJA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EAEpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAyF/D,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,gBAAgB,CAAC,CAAA;IAC9E,yEAAyE;IACzE,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BAqDA"}
@@ -0,0 +1,14 @@
1
+ import type { DepositFlowCallbacks } from './depositFlowConfig';
2
+ /**
3
+ * The region refusal raised before a deposit has started.
4
+ *
5
+ * The host hears it on the deposit's own error channel rather than
6
+ * `onCheckoutBlocked`: that one says the user is barred from checkout, and a
7
+ * corridor we do not serve is a different fact.
8
+ */
9
+ export declare function FiatRegionBlockedStep({ checkoutId, callbacks, onClose, }: {
10
+ checkoutId: string;
11
+ callbacks: Pick<DepositFlowCallbacks, 'onDepositError'>;
12
+ onClose: () => void;
13
+ }): import("react").JSX.Element;
14
+ //# sourceMappingURL=FiatRegionBlockedStep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatRegionBlockedStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatRegionBlockedStep.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAG/D;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,UAAU,EACV,SAAS,EACT,OAAO,GACR,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAA;IACvD,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAoBA"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Held while the region verdict is still provisional.
3
+ *
4
+ * Nothing of the deposit mounts behind this. Mounting the amount screen first
5
+ * and swapping it out on a refusal would let the buyer start typing into a
6
+ * flow that was never open to them, and would report the deposit `cancelled`
7
+ * on the way out — on top of the refusal the host is about to hear.
8
+ */
9
+ export declare function FiatRegionPendingStep(): import("react").JSX.Element;
10
+ //# sourceMappingURL=FiatRegionPendingStep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatRegionPendingStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatRegionPendingStep.tsx"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,gCAiBpC"}
@@ -1,12 +1,19 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type BottomSheetBackgroundProps } from '@gorhom/bottom-sheet';
3
3
  /**
4
- * Host-supplied blur laid under the sheet's overlay. The package ships no blur
5
- * module of its own — every option is native, so it would cost consumers a
4
+ * Host-supplied material laid under the sheet's overlay. The package ships no
5
+ * material of its own — every option is native, so it would cost consumers a
6
6
  * rebuild and a peer-dep bump. Rendered into a full-bleed container, so
7
7
  * `flex: 1` or `StyleSheet.absoluteFill` fills the screen.
8
+ *
9
+ * A glass host (see `liquidGlass`) is handed the surface's `tint` and paints
10
+ * it itself, because a refractive material has to tint what it refracts — a
11
+ * fill laid over it would mute the refraction to a flat panel.
8
12
  */
9
- export type BackdropBlurRenderer = () => ReactNode;
13
+ export type BackdropBlurRenderer = (props: {
14
+ /** The surface fill the material replaces, alpha included. */
15
+ tint: string;
16
+ }) => ReactNode;
10
17
  export interface FlowSheetProps {
11
18
  isOpen: boolean;
12
19
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAEd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M,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE;IACzC,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAA;CACb,KAAK,SAAS,CAAA;AAEf,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kDAAkD;IAClD,OAAO,EAAE,SAAS,CAAA;IAClB,yDAAyD;IACzD,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,yFAAyF;IACzF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAsBD,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,EAC3B,aAAqB,EACrB,UAAkB,EAClB,KAAa,GACd,EAAE,cAAc,+BA2KhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,0BAA0B,+BAEpE;AAcD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,0BAA0B,+BAcrE;AAeD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,0BAA0B,+BASvE"}
@@ -3,6 +3,7 @@ import { type ClipboardReader, type ClipboardWriter } from '../transfer/clipboar
3
3
  import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
4
4
  import { type BackdropBlurRenderer } from './FlowSheet';
5
5
  import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawalFlowConfig';
6
+ import type { StripeOnrampConfig } from '../fiat/providers/useStripeOnrampClient';
6
7
  export type FlowScreen = 'depositAmount' | 'addMoney' | 'transfer' | 'swapped' | 'withdrawMethod' | 'withdrawAmount' | 'withdrawAddress' | 'withdrawReceiveToken' | 'withdrawComplete';
7
8
  interface FunkitFlowContextValue {
8
9
  /** Open the managed deposit flow at the Add money screen. */
@@ -31,7 +32,7 @@ export interface FlowNav {
31
32
  * (host apps never render them directly), mirroring how `@funkit/connect`'s
32
33
  * `FunkitProvider` owns the checkout modal.
33
34
  */
34
- export declare function FunkitFlowProvider({ children, copyToClipboard, pasteFromClipboard, renderBackdropBlur, }: {
35
+ export declare function FunkitFlowProvider({ children, copyToClipboard, pasteFromClipboard, renderBackdropBlur, liquidGlass, stripeOnramp, onOpenChange, }: {
35
36
  children: ReactNode;
36
37
  /** Host clipboard override; defaults to the bare-RN clipboard peer. */
37
38
  copyToClipboard?: ClipboardWriter;
@@ -39,6 +40,15 @@ export declare function FunkitFlowProvider({ children, copyToClipboard, pasteFro
39
40
  pasteFromClipboard?: ClipboardReader;
40
41
  /** Host blur under the sheet's overlay. See {@link BackdropBlurRenderer}. */
41
42
  renderBackdropBlur?: BackdropBlurRenderer;
43
+ /** Set when that renderer returns iOS 26 Liquid Glass rather than a blur. */
44
+ liquidGlass?: boolean;
45
+ /** Stripe account config; the client is built from it here. */
46
+ stripeOnramp?: StripeOnrampConfig;
47
+ /**
48
+ * Fires on the closed→open and open→closed transitions, and again with
49
+ * `true` when a `begin*` call replaces a flow that is already open.
50
+ */
51
+ onOpenChange?: (isOpen: boolean) => void;
42
52
  }): import("react").JSX.Element;
43
53
  export declare function useFunkitFlow(): FunkitFlowContextValue;
44
54
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAId,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EAIr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AK,IAAI,CAAA;IAC9B;;;;OAIG;IACH,KAAK,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC9B,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,eAAwC,EACxC,kBAA8C,EAC9C,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,YAAY,GACb,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,uEAAuE;IACvE,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,4EAA4E;IAC5E,kBAAkB,CAAC,EAAE,eAAe,CAAA;IACpC,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IACzC,6EAA6E;IAC7E,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;CACzC,+BAuSA;AAwCD,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
@@ -0,0 +1,16 @@
1
+ import type { ReactNode } from 'react';
2
+ /**
3
+ * One page of a step, so a move between them is a turn rather than a cut.
4
+ *
5
+ * - `side` is where the page sits in the flow: `ahead` arrives from and leaves
6
+ * to the right, `behind` the left, so the two cross as they swap.
7
+ * - Both pages stand in the frame while the turn runs, so each fills it
8
+ * absolutely and the frame keeps the step's height.
9
+ */
10
+ export declare function StepPage({ side, animateIn, children, }: {
11
+ side: 'ahead' | 'behind';
12
+ /** Off for the page the step opens on: there is nothing for it to turn from. */
13
+ animateIn?: boolean;
14
+ children: ReactNode;
15
+ }): import("react").JSX.Element;
16
+ //# sourceMappingURL=StepPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepPage.d.ts","sourceRoot":"","sources":["../../../src/flow/StepPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,SAAgB,EAChB,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAA;IACxB,gFAAgF;IAChF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAWA"}
@@ -0,0 +1,6 @@
1
+ import type { AccountBalanceChipProps } from '../components/v2/AccountBalanceChip';
2
+ import type { Locale } from '../locales/i18n';
3
+ import type { DepositAccountContext } from './depositFlowConfig';
4
+ /** The chip's props; a deprecated preformatted `value` still wins. */
5
+ export declare function accountBalanceChipProps(context: DepositAccountContext | undefined, locale: Locale): AccountBalanceChipProps | undefined;
6
+ //# sourceMappingURL=accountContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountContext.d.ts","sourceRoot":"","sources":["../../../src/flow/accountContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAA;AAClF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAkBhE,sEAAsE;AACtE,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,qBAAqB,GAAG,SAAS,EAC1C,MAAM,EAAE,MAAM,GACb,uBAAuB,GAAG,SAAS,CAMrC"}