@funkit/connect-rn 4.3.0 → 5.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 (202) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/dist/{chunk-5YSMFPBG.js → chunk-KPP7KXYB.js} +2 -2
  3. package/dist/{chunk-PIAR365R.js → chunk-X4RK3XTG.js} +460 -58
  4. package/dist/chunk-X4RK3XTG.js.map +7 -0
  5. package/dist/clients/lighter.js +1 -1
  6. package/dist/clients/nado.js +2 -2
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +5995 -2617
  10. package/dist/index.js.map +4 -4
  11. package/dist/src/components/DepositActionMotion.d.ts +12 -0
  12. package/dist/src/components/DepositActionMotion.d.ts.map +1 -0
  13. package/dist/src/components/PillButton.d.ts +1 -1
  14. package/dist/src/components/PillButton.d.ts.map +1 -1
  15. package/dist/src/components/v2/AccountBalanceChip.d.ts.map +1 -1
  16. package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
  17. package/dist/src/components/v2/NumPad.d.ts +3 -4
  18. package/dist/src/components/v2/NumPad.d.ts.map +1 -1
  19. package/dist/src/components/v2/QuickAmountsRow.d.ts +3 -3
  20. package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
  21. package/dist/src/fiat/FiatActionButton.d.ts +3 -0
  22. package/dist/src/fiat/FiatActionButton.d.ts.map +1 -0
  23. package/dist/src/fiat/FiatBirthDateField.d.ts +9 -0
  24. package/dist/src/fiat/FiatBirthDateField.d.ts.map +1 -0
  25. package/dist/src/fiat/FiatChoiceField.d.ts +16 -0
  26. package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -0
  27. package/dist/src/fiat/FiatContactScreen.d.ts +17 -1
  28. package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
  29. package/dist/src/fiat/FiatCountryDock.d.ts.map +1 -1
  30. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +9 -0
  31. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -0
  32. package/dist/src/fiat/FiatErrorNotice.d.ts +4 -0
  33. package/dist/src/fiat/FiatErrorNotice.d.ts.map +1 -0
  34. package/dist/src/fiat/FiatFormAdvance.d.ts +18 -6
  35. package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -1
  36. package/dist/src/fiat/FiatFormFieldRow.d.ts +10 -5
  37. package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
  38. package/dist/src/fiat/FiatFormScreen.d.ts +12 -3
  39. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
  40. package/dist/src/fiat/FiatIdentityStep.d.ts +3 -0
  41. package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -0
  42. package/dist/src/fiat/FiatKycFieldControl.d.ts +8 -0
  43. package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -0
  44. package/dist/src/fiat/FiatKycIntroScreen.d.ts +7 -10
  45. package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
  46. package/dist/src/fiat/FiatKycNotice.d.ts +1 -6
  47. package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -1
  48. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +11 -0
  49. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -0
  50. package/dist/src/fiat/FiatKycPosition.d.ts +5 -0
  51. package/dist/src/fiat/FiatKycPosition.d.ts.map +1 -0
  52. package/dist/src/fiat/FiatOtpScreen.d.ts +7 -1
  53. package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
  54. package/dist/src/fiat/FiatPendingOrderScreen.d.ts +7 -0
  55. package/dist/src/fiat/FiatPendingOrderScreen.d.ts.map +1 -0
  56. package/dist/src/fiat/FiatPhoneField.d.ts +3 -2
  57. package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -1
  58. package/dist/src/fiat/FiatSsnField.d.ts +13 -0
  59. package/dist/src/fiat/FiatSsnField.d.ts.map +1 -0
  60. package/dist/src/fiat/FiatStatusScreen.d.ts +7 -2
  61. package/dist/src/fiat/FiatStatusScreen.d.ts.map +1 -1
  62. package/dist/src/fiat/FiatSubmissionIndicator.d.ts +2 -0
  63. package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -0
  64. package/dist/src/fiat/FiatTermsNotice.d.ts +1 -7
  65. package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
  66. package/dist/src/fiat/KycGlassBackdrop.d.ts +3 -0
  67. package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -0
  68. package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
  69. package/dist/src/fiat/formLayout.d.ts +4 -6
  70. package/dist/src/fiat/formLayout.d.ts.map +1 -1
  71. package/dist/src/fiat/formValidationError.d.ts +13 -0
  72. package/dist/src/fiat/formValidationError.d.ts.map +1 -0
  73. package/dist/src/fiat/isAdditionalKycForm.d.ts +8 -0
  74. package/dist/src/fiat/isAdditionalKycForm.d.ts.map +1 -0
  75. package/dist/src/fiat/kycFieldValidators.d.ts +11 -0
  76. package/dist/src/fiat/kycFieldValidators.d.ts.map +1 -0
  77. package/dist/src/fiat/kycFormAttempt.d.ts +34 -0
  78. package/dist/src/fiat/kycFormAttempt.d.ts.map +1 -0
  79. package/dist/src/fiat/kycFormPosition.d.ts +4 -0
  80. package/dist/src/fiat/kycFormPosition.d.ts.map +1 -0
  81. package/dist/src/fiat/kycFormState.d.ts +41 -0
  82. package/dist/src/fiat/kycFormState.d.ts.map +1 -0
  83. package/dist/src/fiat/kycFormTheme.d.ts +2 -5
  84. package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
  85. package/dist/src/fiat/kycSupport.d.ts +2 -0
  86. package/dist/src/fiat/kycSupport.d.ts.map +1 -0
  87. package/dist/src/fiat/kycUnavailableAlert.d.ts +8 -0
  88. package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -0
  89. package/dist/src/fiat/legalLinks.d.ts +7 -2
  90. package/dist/src/fiat/legalLinks.d.ts.map +1 -1
  91. package/dist/src/fiat/nativeDatePicker.d.ts +1 -1
  92. package/dist/src/fiat/nativeDatePicker.d.ts.map +1 -1
  93. package/dist/src/fiat/otpScreenProps.d.ts.map +1 -1
  94. package/dist/src/fiat/phoneDraft.d.ts +10 -0
  95. package/dist/src/fiat/phoneDraft.d.ts.map +1 -0
  96. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +11 -8
  97. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
  98. package/dist/src/fiat/providers/coinbaseApplePay.d.ts +4 -3
  99. package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -1
  100. package/dist/src/fiat/providers/moonpay.d.ts +3 -0
  101. package/dist/src/fiat/providers/moonpay.d.ts.map +1 -0
  102. package/dist/src/fiat/providers/sumsubKyc.d.ts +1 -2
  103. package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -1
  104. package/dist/src/fiat/quoteRefusal.d.ts +24 -0
  105. package/dist/src/fiat/quoteRefusal.d.ts.map +1 -0
  106. package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
  107. package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
  108. package/dist/src/fiat/sessionContact.d.ts +18 -6
  109. package/dist/src/fiat/sessionContact.d.ts.map +1 -1
  110. package/dist/src/fiat/ssnLength.d.ts +4 -0
  111. package/dist/src/fiat/ssnLength.d.ts.map +1 -0
  112. package/dist/src/fiat/stepDetails.d.ts +5 -0
  113. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  114. package/dist/src/fiat/useContactEligibility.d.ts +4 -0
  115. package/dist/src/fiat/useContactEligibility.d.ts.map +1 -0
  116. package/dist/src/fiat/useDatePickerDock.d.ts +2 -0
  117. package/dist/src/fiat/useDatePickerDock.d.ts.map +1 -1
  118. package/dist/src/fiat/useFiatCheckoutPreparation.d.ts +10 -0
  119. package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -0
  120. package/dist/src/fiat/useOtpAutoSubmit.d.ts +8 -0
  121. package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +1 -0
  122. package/dist/src/fiat/useOtpReceipt.d.ts +14 -0
  123. package/dist/src/fiat/useOtpReceipt.d.ts.map +1 -0
  124. package/dist/src/fiat/useReplayableFailure.d.ts +13 -0
  125. package/dist/src/fiat/useReplayableFailure.d.ts.map +1 -0
  126. package/dist/src/flow/DepositAmountStep.d.ts +9 -2
  127. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  128. package/dist/src/flow/DepositFlowContent.d.ts +4 -2
  129. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  130. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
  131. package/dist/src/flow/FiatDepositAmountStep.d.ts +12 -2
  132. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  133. package/dist/src/flow/FlowDismissLock.d.ts +13 -0
  134. package/dist/src/flow/FlowDismissLock.d.ts.map +1 -0
  135. package/dist/src/flow/FlowSheet.d.ts +11 -14
  136. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  137. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  138. package/dist/src/flow/WithdrawalFlowContent.d.ts +2 -1
  139. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
  140. package/dist/src/flow/depositFlowConfig.d.ts +39 -0
  141. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  142. package/dist/src/flow/useKeyboardHeight.d.ts +20 -0
  143. package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
  144. package/dist/src/flow/validateClientMetadata.d.ts +8 -0
  145. package/dist/src/flow/validateClientMetadata.d.ts.map +1 -0
  146. package/dist/src/flow/validateInitialAmount.d.ts +9 -0
  147. package/dist/src/flow/validateInitialAmount.d.ts.map +1 -0
  148. package/dist/src/hooks/useGuardedAmountInput.d.ts +7 -4
  149. package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
  150. package/dist/src/icons/ApplePayMark.d.ts +2 -0
  151. package/dist/src/icons/ApplePayMark.d.ts.map +1 -0
  152. package/dist/src/icons/DepositChevronIcon.d.ts +4 -0
  153. package/dist/src/icons/DepositChevronIcon.d.ts.map +1 -0
  154. package/dist/src/icons/DepositInfoCircleIcon.d.ts +4 -0
  155. package/dist/src/icons/DepositInfoCircleIcon.d.ts.map +1 -0
  156. package/dist/src/icons/FiatBackIcon.d.ts +4 -0
  157. package/dist/src/icons/FiatBackIcon.d.ts.map +1 -0
  158. package/dist/src/icons/KycDocumentIcon.d.ts +2 -0
  159. package/dist/src/icons/KycDocumentIcon.d.ts.map +1 -0
  160. package/dist/src/icons/KycExternalLinkIcon.d.ts +4 -0
  161. package/dist/src/icons/KycExternalLinkIcon.d.ts.map +1 -0
  162. package/dist/src/icons/KycIdentityIcon.d.ts +8 -0
  163. package/dist/src/icons/KycIdentityIcon.d.ts.map +1 -0
  164. package/dist/src/icons/KycLimitIcon.d.ts +4 -0
  165. package/dist/src/icons/KycLimitIcon.d.ts.map +1 -0
  166. package/dist/src/icons/KycOutcomeIcon.d.ts +5 -0
  167. package/dist/src/icons/KycOutcomeIcon.d.ts.map +1 -0
  168. package/dist/src/icons/KycSecurityIcon.d.ts +4 -0
  169. package/dist/src/icons/KycSecurityIcon.d.ts.map +1 -0
  170. package/dist/src/icons/KycVerifiedIcon.d.ts +2 -0
  171. package/dist/src/icons/KycVerifiedIcon.d.ts.map +1 -0
  172. package/dist/src/icons/kycArtwork.d.ts +3 -0
  173. package/dist/src/icons/kycArtwork.d.ts.map +1 -0
  174. package/dist/src/locales/i18n.d.ts.map +1 -1
  175. package/dist/src/providers/FunkitTrans.d.ts +15 -0
  176. package/dist/src/providers/FunkitTrans.d.ts.map +1 -0
  177. package/dist/src/screens/DepositAmountScreen.d.ts +8 -17
  178. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  179. package/dist/src/screens/FeeDetailsScreen.d.ts +1 -3
  180. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  181. package/dist/src/screens/depositMetrics.d.ts +112 -0
  182. package/dist/src/screens/depositMetrics.d.ts.map +1 -0
  183. package/dist/src/swapped/SwappedScreen.d.ts +2 -1
  184. package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
  185. package/dist/src/swapped/SwappedScreenShell.d.ts +2 -1
  186. package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
  187. package/dist/src/theme/inputTextStyle.d.ts +13 -0
  188. package/dist/src/theme/inputTextStyle.d.ts.map +1 -0
  189. package/dist/src/theme/tokens.d.ts.map +1 -1
  190. package/dist/src/transfer/hooks/useFops.d.ts +8 -2
  191. package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
  192. package/dist/src/transfer/hooks/useTokenTransfer.d.ts +5 -1
  193. package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
  194. package/dist/src/transfer/hooks/useTransferInit.d.ts +13 -1
  195. package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
  196. package/dist/src/utils/motion.d.ts +40 -0
  197. package/dist/src/utils/motion.d.ts.map +1 -1
  198. package/package.json +9 -4
  199. package/dist/chunk-PIAR365R.js.map +0 -7
  200. package/dist/src/fiat/formNotice.d.ts +0 -13
  201. package/dist/src/fiat/formNotice.d.ts.map +0 -1
  202. /package/dist/{chunk-5YSMFPBG.js.map → chunk-KPP7KXYB.js.map} +0 -0
@@ -0,0 +1,8 @@
1
+ export declare function useOtpAutoSubmit({ code, length, isSubmitting, hasError, onSubmit, }: {
2
+ code: string;
3
+ length: number;
4
+ isSubmitting: boolean;
5
+ hasError: boolean;
6
+ onSubmit: () => void;
7
+ }): void;
8
+ //# sourceMappingURL=useOtpAutoSubmit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOtpAutoSubmit.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpAutoSubmit.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,QAkBA"}
@@ -0,0 +1,14 @@
1
+ import type { FiatFlow } from '@funkit/connect-core';
2
+ import type { FiatOtpScreenProps } from './FiatOtpScreen';
3
+ type OtpProps = Omit<FiatOtpScreenProps, 'onClose'>;
4
+ interface Submission {
5
+ props: OtpProps;
6
+ code: string;
7
+ }
8
+ /** Hold the verified code briefly without delaying the server's next transition. */
9
+ export declare function useOtpReceipt(flow: FiatFlow): {
10
+ bind: (props: OtpProps) => OtpProps;
11
+ receipt: Submission | undefined;
12
+ };
13
+ export {};
14
+ //# sourceMappingURL=useOtpReceipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOtpReceipt.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,KAAK,QAAQ,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAA;AACnD,UAAU,UAAU;IAClB,KAAK,EAAE,QAAQ,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ;kBAiCrB,QAAQ,KAAG,QAAQ;;EAYzC"}
@@ -0,0 +1,13 @@
1
+ import type { FiatFlow } from '@funkit/connect-core';
2
+ type ReplayableFlow = Pick<FiatFlow, 'phase' | 'collected'>;
3
+ /**
4
+ * Whether a send that failed in transit can go out again as it was.
5
+ *
6
+ * A replay re-sends the body under its idempotency key, so a server that took
7
+ * the first request but lost the answer sees one attempt rather than two. That
8
+ * only holds while the body is still the one that failed: an edit since makes
9
+ * it a new request, which has to be sent afresh under a key of its own.
10
+ */
11
+ export declare function useReplayableFailure(flow: ReplayableFlow): boolean;
12
+ export {};
13
+ //# sourceMappingURL=useReplayableFailure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useReplayableFailure.d.ts","sourceRoot":"","sources":["../../../src/fiat/useReplayableFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,KAAK,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,WAAW,CAAC,CAAA;AAE3D;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAWlE"}
@@ -1,12 +1,19 @@
1
- import type { DepositAmountEntryConfig, DepositFlowCallbacks } from './depositFlowConfig';
1
+ import type { DepositAmountEntryConfig, DepositFlowCallbacks, DepositInitialAmount } 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, }: {
8
+ export declare function DepositAmountStep({ config, callbacks, initialAmount, lockAmount, }: {
9
9
  config: DepositAmountEntryConfig;
10
10
  callbacks: DepositFlowCallbacks;
11
+ /** Prefills the typed amount. */
12
+ initialAmount?: DepositInitialAmount;
13
+ /**
14
+ * Locks the prefilled amount against edits: typing, backspace/clear, and
15
+ * quick-amount taps all reject.
16
+ */
17
+ lockAmount?: boolean;
11
18
  }): import("react").JSX.Element;
12
19
  //# sourceMappingURL=DepositAmountStep.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAU5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,SAAS,EAAE,oBAAoB,CAAA;CAChC,+BAoHA"}
1
+ {"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AASA,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,+BAqHA"}
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
- import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
2
+ import type { DepositClientMetadata, DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
3
3
  import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
4
4
  /**
5
5
  * The live flow body. Drives the deposit-address + QR generation
@@ -7,7 +7,9 @@ import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
7
7
  * with the resolved data. Kept separate from the provider so its
8
8
  * hooks run only while the modal is open (it isn't mounted when closed).
9
9
  */
10
- export declare function FlowContent({ config, current, nav, onCopySuccess, callbacks, }: {
10
+ export declare function FlowContent({ checkoutId, clientMetadata, config, current, nav, onCopySuccess, callbacks, }: {
11
+ checkoutId: string;
12
+ clientMetadata: DepositClientMetadata | undefined;
11
13
  config: DepositFlowConfig;
12
14
  current: FlowScreen | undefined;
13
15
  nav: FlowNav;
@@ -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,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,MAAM,EACN,OAAO,EACP,GAAG,EACH,aAAa,EACb,SAAS,GACV,EAAE;IACD,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,CA0PZ"}
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 +1 @@
1
- {"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAE1E,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAA;AAUpC,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,+BA2DA"}
1
+ {"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAE1E,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAA;AAapC,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,+BA2DA"}
@@ -1,9 +1,19 @@
1
- import type { DepositAmountEntryConfig, DepositCheckoutConfig, FiatRailConfig } from './depositFlowConfig';
2
- export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dynamicRoutingId, onCloseFlow, }: {
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, }: {
3
3
  config: DepositAmountEntryConfig;
4
4
  fiat: FiatRailConfig;
5
5
  checkoutConfig: DepositCheckoutConfig | undefined;
6
6
  dynamicRoutingId: string | undefined;
7
+ /** Host fallback for local/dev clients that do not mint an EOA. */
8
+ depositAddressOverride?: string;
9
+ checkoutId: string;
10
+ clientMetadata: DepositClientMetadata | undefined;
11
+ /**
12
+ * Prefills the quoted amount.
13
+ */
14
+ initialAmount?: DepositInitialAmount;
15
+ /** Locks the prefilled amount against numpad and quick-amount edits. */
16
+ lockAmount?: boolean;
7
17
  onCloseFlow: () => void;
8
18
  }): import("react").JSX.Element;
9
19
  //# sourceMappingURL=FiatDepositAmountStep.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAuB5B,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,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,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BAiBA"}
1
+ {"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AA4FA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAmD5B,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,+BAqBA"}
@@ -0,0 +1,13 @@
1
+ /** Takes a lock on the sheet's dismissal; the return releases it. */
2
+ export type AcquireDismissLock = () => () => void;
3
+ export declare const FlowDismissLockProvider: import("react").Provider<AcquireDismissLock>;
4
+ /**
5
+ * Holds the flow sheet closed to swipes and backdrop taps while `locked`.
6
+ *
7
+ * A step at the root of the flow stack is dismissable by design, but a step
8
+ * can carry screens of its own — the fiat rail's contact, code and identity
9
+ * screens all render inside the amount step. Those are screens the user is
10
+ * part-way through, and the only way off them is their own back control.
11
+ */
12
+ export declare function useLockFlowDismiss(locked: boolean): void;
13
+ //# sourceMappingURL=FlowDismissLock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlowDismissLock.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowDismissLock.tsx"],"names":[],"mappings":"AAEA,qEAAqE;AACrE,MAAM,MAAM,kBAAkB,GAAG,MAAM,MAAM,IAAI,CAAA;AAQjD,eAAO,MAAM,uBAAuB,8CAAkC,CAAA;AAEtE;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAGxD"}
@@ -28,25 +28,21 @@ export interface FlowSheetProps {
28
28
  */
29
29
  keyboardAvoidEnabled?: boolean;
30
30
  enableSwipeToDismiss?: boolean;
31
+ /**
32
+ * Hold the sheet still: no swipe-to-dismiss, no rubber-band drag, no
33
+ * backdrop tap. For a step whose own screens the user is part-way through
34
+ * (see {@link useLockFlowDismiss}); their back controls are the way off.
35
+ */
36
+ dismissLocked?: boolean;
31
37
  /** Let the sheet reach the top of the screen for a screen that is a full window tall. */
32
38
  fullHeight?: boolean;
33
39
  /**
34
40
  * Draw the sheet as glass rather than a panel — the V2 deposit surface, which
35
- * the design lays over the host app at 30%. See {@link GlassSheetBackground}.
41
+ * the design lays over the host app. See {@link GlassSheetBackground}.
36
42
  */
37
43
  glass?: boolean;
38
44
  }
39
- /**
40
- * Host for the managed deposit-flow surface: a `@gorhom/bottom-sheet` modal
41
- * (native gestures + spring physics), sized to its content. The flow screens
42
- * draw their own grabber, so the sheet runs handle-less; its surface is painted
43
- * by {@link FlowSheetBackground} (which also fills the over-drag gap).
44
- *
45
- * Requires the gorhom peer stack (`@gorhom/bottom-sheet`,
46
- * `react-native-gesture-handler`, `react-native-reanimated`) and a
47
- * `<GestureHandlerRootView>` at the app root.
48
- */
49
- export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, fullHeight, glass, }: FlowSheetProps): import("react").JSX.Element;
45
+ export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, dismissLocked, fullHeight, glass, }: FlowSheetProps): import("react").JSX.Element;
50
46
  /**
51
47
  * Sheet surface for the flow modal. gorhom sizes the sheet body to its content,
52
48
  * so a flat background fills only the content area; over-dragging the sheet
@@ -68,8 +64,9 @@ export declare function FlowSheetBackground(props: BottomSheetBackgroundProps):
68
64
  export declare function GlassSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
69
65
  /**
70
66
  * {@link FlowSheetBackground} for a drawer that opens over another sheet: the
71
- * same surface, laid on at {@link DRAWER_SURFACE_OPACITY} so the screen it was
72
- * opened from reads through it (dimmed by the drawer's own overlay).
67
+ * opaque material with the design's soft lift. Dark themes use the fixed
68
+ * material in the design; light/custom themes keep their own modal color so
69
+ * customer text tokens remain legible.
73
70
  */
74
71
  export declare function DrawerSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
75
72
  /**
@@ -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;AAGd,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;AAU7B;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,SAAS,CAAA;AAElD,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,E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IG;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,+BA0KhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,0BAA0B,+BAEpE;AAcD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,0BAA0B,+BAErE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,+BActE;AAoED;;;;;GAKG;AACH;;;;;GAKG;AACH,wBAAgB,aAAa,gCA4B5B"}
@@ -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,EAIrB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,KAAK,oBAAoB,EAAa,MAAM,aAAa,CAAA;AAIlE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAE/B,MAAM,MAAM,UAAU,GAClB,eAAe,GACf,UAAU,GACV,UAAU,GACV,SAAS,GACT,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,GACjB,sBAAsB,GACtB,kBAAkB,CAAA;AAoDtB,UAAU,sBAAsB;IAC9B,6DAA6D;IA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sBAAsB,CAMtD"}
@@ -9,7 +9,8 @@ import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawal
9
9
  * FlowContent, mounted only while a withdrawal flow is open so its
10
10
  * queries run only then.
11
11
  */
12
- export declare function WithdrawalFlowContent({ config, callbacks, current, nav, }: {
12
+ export declare function WithdrawalFlowContent({ checkoutId, config, callbacks, current, nav, }: {
13
+ checkoutId: string;
13
14
  config: WithdrawalFlowConfig;
14
15
  callbacks: WithdrawalFlowCallbacks;
15
16
  current: FlowScreen | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAmB7D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAW/B;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,GACJ,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;CACb,GAAG,SAAS,CAgPZ"}
1
+ {"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAmB7D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAW/B;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,UAAU,EACV,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,GACJ,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;CACb,GAAG,SAAS,CAkPZ"}
@@ -2,6 +2,18 @@ import type { CheckoutTokenTransferConfig, DynamicTargetAssetCandidate, MinDepos
2
2
  import type { ReactNode } from 'react';
3
3
  import type { SupportedToken, TokenChainFilter } from '../transfer/supportedTokens';
4
4
  export type { DynamicTargetAssetCandidate } from '@funkit/connect-core';
5
+ /**
6
+ * Host-supplied identifiers correlating this deposit with the host's own
7
+ * transaction/user records. Passed through to `POST /eoa` alongside
8
+ * `checkoutId`. Validated in `beginDeposit`: an invalid field is dropped
9
+ * (logged, not thrown) rather than failing the whole flow.
10
+ */
11
+ export interface DepositClientMetadata {
12
+ /** Must be a non-empty string. */
13
+ externalUserId?: string;
14
+ /** Must be a string representation of a positive, safe integer. */
15
+ clientTransactionId?: `${number}`;
16
+ }
5
17
  /**
6
18
  * Destination chain/asset for a deposit, plus the customer `getMinDepositUSD`
7
19
  * closure that feeds the transfer minimums and the fiat (Swapped) buy floor.
@@ -84,6 +96,19 @@ export interface DepositAmountEntryConfig {
84
96
  /** Routes amount entry through the fiat backend. */
85
97
  fiat?: FiatRailConfig;
86
98
  }
99
+ /**
100
+ * A fixed fiat amount to prefill the deposit amount screen with — the value
101
+ * the user pays, not a crypto amount. Distinct from any provider's approved
102
+ * output amount (e.g. an authorized USDC amount elsewhere in a payment
103
+ * provider's contract): this is fiat input, never derived from or converted
104
+ * into that figure.
105
+ */
106
+ export interface DepositInitialAmount {
107
+ /** Decimal string, e.g. `"150.00"`. Must be a valid positive amount. */
108
+ value: string;
109
+ /** ISO 4217 currency code, e.g. `"USD"`. */
110
+ currency: string;
111
+ }
87
112
  /** The fiat onramp rail behind the V2 amount screen. */
88
113
  export interface FiatRailConfig {
89
114
  /** The rail quoted and fired, e.g. `apple_pay`. */
@@ -147,6 +172,20 @@ export interface DepositFlowConfig {
147
172
  * with `react-native-qrcode-svg`; supply a node only to override.
148
173
  */
149
174
  qrCode?: ReactNode;
175
+ /** See {@link DepositClientMetadata}. */
176
+ clientMetadata?: DepositClientMetadata;
177
+ /**
178
+ * Prefills the amount screen with a fixed fiat value + currency. Validated
179
+ * in `beginDeposit` — an invalid value is dropped (logged, not thrown).
180
+ */
181
+ initialAmount?: DepositInitialAmount;
182
+ /**
183
+ * Locks the prefilled amount for the life of the attempt: typing,
184
+ * quick-amount taps, back navigation, and remounts all leave it unchanged.
185
+ * Requires {@link initialAmount} — validated in `beginDeposit` and dropped
186
+ * (logged, not thrown) if set without it.
187
+ */
188
+ lockAmount?: boolean;
150
189
  }
151
190
  /** Lifecycle callbacks passed to `useFunkitCheckout`. */
152
191
  export interface DepositFlowCallbacks {
@@ -1 +1 @@
1
- {"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AAEpC,YAAY,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAEvE;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,GAC7D,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAA;AAE5C;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,2BAA2B,EAAE,GAAG,SAAS,EACrD,gBAAgB,EA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
3
  * The on-screen keyboard height (0 when hidden), tracked from the global
3
4
  * keyboard events. Pass `enabled` to scope it to the screen that needs it: when
@@ -12,4 +13,23 @@
12
13
  * lifts in sync); Android only reliably emits the `Did` events.
13
14
  */
14
15
  export declare function useKeyboardHeight(enabled: boolean): number;
16
+ export interface KeyboardFollow {
17
+ /** Where the keyboard is heading, the moment the event says so. */
18
+ height: number;
19
+ /**
20
+ * The same height gliding there on the keyboard's own clock. For a footer
21
+ * that rides the keyboard: iOS posts a fresh `WillShow` each time its
22
+ * suggestion strip appears or goes, and a footer that snaps to each new
23
+ * height while the keyboard itself glides is the jolt that reads as broken.
24
+ */
25
+ animated: Animated.Value;
26
+ }
27
+ /**
28
+ * {@link useKeyboardHeight}, plus an `Animated.Value` that follows it on the
29
+ * keyboard's curve. Plain `Animated`, not Reanimated: the screens that ride
30
+ * the keyboard already drive their frames with it, and React Native's
31
+ * `LayoutAnimation` — the other way to glide a layout — is not safe beside
32
+ * Reanimated's entering and exiting transitions.
33
+ */
34
+ export declare function useKeyboardFollow(enabled: boolean): KeyboardFollow;
15
35
  //# sourceMappingURL=useKeyboardHeight.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAqB1D"}
1
+ {"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAA8B,MAAM,cAAc,CAAA;AAEnE;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE1D;AAED,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAA;CACzB;AAOD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAwClE"}
@@ -0,0 +1,8 @@
1
+ import type { DepositClientMetadata } from './depositFlowConfig';
2
+ /**
3
+ * Drops invalid clientMetadata fields instead of failing the whole flow — a
4
+ * malformed externalUserId/clientTransactionId shouldn't block a deposit the
5
+ * host may not be able to react to synchronously.
6
+ */
7
+ export declare function validateClientMetadata(clientMetadata: DepositClientMetadata | undefined): DepositClientMetadata | undefined;
8
+ //# sourceMappingURL=validateClientMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateClientMetadata.d.ts","sourceRoot":"","sources":["../../../src/flow/validateClientMetadata.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAEhE;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,qBAAqB,GAAG,SAAS,GAChD,qBAAqB,GAAG,SAAS,CAqCnC"}
@@ -0,0 +1,9 @@
1
+ import type { DepositFlowConfig } from './depositFlowConfig';
2
+ /**
3
+ * Drops an invalid initialAmount/lockAmount instead of failing the whole
4
+ * flow — mirrors `validateClientMetadata`. `lockAmount` requires a valid
5
+ * `initialAmount`; without one it is dropped too, since there would be
6
+ * nothing to lock.
7
+ */
8
+ export declare function validateInitialAmount({ initialAmount, lockAmount, }: Pick<DepositFlowConfig, 'initialAmount' | 'lockAmount'>): Pick<DepositFlowConfig, 'initialAmount' | 'lockAmount'>;
9
+ //# sourceMappingURL=validateInitialAmount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateInitialAmount.d.ts","sourceRoot":"","sources":["../../../src/flow/validateInitialAmount.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAI5B;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,aAAa,EACb,UAAU,GACX,EAAE,IAAI,CAAC,iBAAiB,EAAE,eAAe,GAAG,YAAY,CAAC,GAAG,IAAI,CAC/D,iBAAiB,EACjB,eAAe,GAAG,YAAY,CAC/B,CA+CA"}
@@ -3,15 +3,18 @@ import { type NumpadKey } from '../utils/numpadInput';
3
3
  * An amount screen's input policy, separate from its layout. Every way a value
4
4
  * enters — a numpad key or a quick-amount chip — commits through `commitInput`,
5
5
  * so the source's hard cap is enforced in exactly one place. Input the policy
6
- * refuses — deleting from zero, or typing past `limitUsd` — answers with a
7
- * side-to-side shake, a brief warning tint and a haptic instead of changing
8
- * the value; a zero typed onto zero is a no-op that swells to acknowledge it.
6
+ * refuses — deleting from zero, typing past `limitUsd`, or any edit at all
7
+ * while `disabled` — answers with a side-to-side shake, a brief warning tint
8
+ * and a haptic instead of changing the value; a zero typed onto zero is a
9
+ * no-op that swells to acknowledge it.
9
10
  */
10
- export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd, }: {
11
+ export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd, disabled, }: {
11
12
  input: string;
12
13
  onChangeInput: (input: string) => void;
13
14
  /** Hard input cap in dollars; omit when the source defines no limit. */
14
15
  limitUsd?: string;
16
+ /** Locks the value: every numpad/chip commit rejects instead of applying. */
17
+ disabled?: boolean;
15
18
  }): {
16
19
  hasWarning: boolean;
17
20
  feedbackStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
@@ -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;AAmBrE;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,aAAa,EACb,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;;;;;;;;;;;wBAgDU,MAAM;2BAYP,SAAS;EAuBlB"}
1
+ {"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAmBrE;;;;;;;;GAQG;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,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;;;;;;;;;;;wBAgDU,MAAM;2BAoBP,SAAS;EA2BlB"}
@@ -0,0 +1,2 @@
1
+ export declare function ApplePayMark(): import("react").JSX.Element;
2
+ //# sourceMappingURL=ApplePayMark.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApplePayMark.d.ts","sourceRoot":"","sources":["../../../src/icons/ApplePayMark.tsx"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,gCAY3B"}
@@ -0,0 +1,4 @@
1
+ export declare function DepositChevronIcon({ color }: {
2
+ color: string;
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=DepositChevronIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepositChevronIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/DepositChevronIcon.tsx"],"names":[],"mappings":"AAMA,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAI9D"}
@@ -0,0 +1,4 @@
1
+ export declare function DepositInfoCircleIcon({ color }: {
2
+ color: string;
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=DepositInfoCircleIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepositInfoCircleIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/DepositInfoCircleIcon.tsx"],"names":[],"mappings":"AAMA,wBAAgB,qBAAqB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAIjE"}
@@ -0,0 +1,4 @@
1
+ export declare function FiatBackIcon({ color }: {
2
+ color: string;
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=FiatBackIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatBackIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/FiatBackIcon.tsx"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAIxD"}
@@ -0,0 +1,2 @@
1
+ export declare function KycDocumentIcon(): import("react").JSX.Element;
2
+ //# sourceMappingURL=KycDocumentIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KycDocumentIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycDocumentIcon.tsx"],"names":[],"mappings":"AAQA,wBAAgB,eAAe,gCAG9B"}
@@ -0,0 +1,4 @@
1
+ export declare function KycExternalLinkIcon({ color }: {
2
+ color: string;
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=KycExternalLinkIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KycExternalLinkIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycExternalLinkIcon.tsx"],"names":[],"mappings":"AAMA,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAI/D"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The export carries opacity but no colour, so the ramp has to be tinted or it
3
+ * falls back to black and vanishes on a dark modal.
4
+ */
5
+ export declare function KycIdentityIcon({ color }: {
6
+ color: string;
7
+ }): import("react").JSX.Element;
8
+ //# sourceMappingURL=KycIdentityIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KycIdentityIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycIdentityIcon.tsx"],"names":[],"mappings":"AAQA;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAS3D"}
@@ -0,0 +1,4 @@
1
+ export declare function KycLimitIcon({ color }: {
2
+ color: string;
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=KycLimitIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KycLimitIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycLimitIcon.tsx"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAQxD"}
@@ -0,0 +1,5 @@
1
+ /** Original SF symbols exported from KYC R2 review and restriction frames. */
2
+ export declare function KycOutcomeIcon({ restricted, }: {
3
+ restricted?: boolean;
4
+ }): import("react").JSX.Element;
5
+ //# sourceMappingURL=KycOutcomeIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KycOutcomeIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycOutcomeIcon.tsx"],"names":[],"mappings":"AAQA,8EAA8E;AAC9E,wBAAgB,cAAc,CAAC,EAC7B,UAAkB,GACnB,EAAE;IACD,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BAMA"}
@@ -0,0 +1,4 @@
1
+ export declare function KycSecurityIcon({ color }: {
2
+ color: string;
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=KycSecurityIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KycSecurityIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycSecurityIcon.tsx"],"names":[],"mappings":"AAKA,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAI3D"}
@@ -0,0 +1,2 @@
1
+ export declare function KycVerifiedIcon(): import("react").JSX.Element;
2
+ //# sourceMappingURL=KycVerifiedIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KycVerifiedIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycVerifiedIcon.tsx"],"names":[],"mappings":"AAIA,wBAAgB,eAAe,gCAS9B"}
@@ -0,0 +1,3 @@
1
+ import type { FunkitTheme } from '../theme/toRestyleTheme';
2
+ export declare function tintKycArtwork(xml: string, theme: FunkitTheme, color?: string): string;
3
+ //# sourceMappingURL=kycArtwork.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kycArtwork.d.ts","sourceRoot":"","sources":["../../../src/icons/kycArtwork.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,WAAW,EAClB,KAAK,SAAiC,UAevC"}
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/locales/i18n.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,IAAI,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAW5D,uCAAuC;AACvC,eAAO,MAAM,aAAa;;;;;;;;;CAShB,CAAA;AACV,MAAM,MAAM,MAAM,GAAG,MAAM,OAAO,aAAa,CAAA;AAM/C,eAAO,MAAM,IAAI,EAAE,YAAuC,CAAA"}
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/locales/i18n.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,IAAI,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAW5D,uCAAuC;AACvC,eAAO,MAAM,aAAa;;;;;;;;;CAShB,CAAA;AACV,MAAM,MAAM,MAAM,GAAG,MAAM,OAAO,aAAa,CAAA;AAO/C,eAAO,MAAM,IAAI,EAAE,YAAuC,CAAA"}
@@ -0,0 +1,15 @@
1
+ import type { ComponentProps } from 'react';
2
+ import { Trans } from 'react-i18next/TransWithoutContext';
3
+ type FunkitTransProps = Omit<ComponentProps<typeof Trans>, 'i18n' | 't'>;
4
+ /**
5
+ * The SDK's `<Trans>`: copy with tagged spans (`<terms>…</terms>`) rendered
6
+ * through the `components` map, bound to the SDK's private i18next instance.
7
+ *
8
+ * The context-free `Trans` is deliberate: the host app may wrap the sheet in
9
+ * its own react-i18next provider, and the contextual one would read that
10
+ * provider's namespace. `t` comes from the SDK provider so the copy follows
11
+ * the SDK locale, not the host's.
12
+ */
13
+ export declare function FunkitTrans(props: FunkitTransProps): import("react").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=FunkitTrans.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunkitTrans.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitTrans.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAA;AAKzD,KAAK,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,CAAA;AAExE;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAGlD"}