@funkit/connect-rn 5.0.0 → 6.1.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 (146) hide show
  1. package/CHANGELOG.md +112 -0
  2. package/README.md +61 -0
  3. package/dist/{chunk-X4RK3XTG.js → chunk-HMAJXI66.js} +447 -39
  4. package/dist/chunk-HMAJXI66.js.map +7 -0
  5. package/dist/{chunk-KPP7KXYB.js → chunk-MKOPF7Y5.js} +2 -2
  6. package/dist/clients/lighter.js +1 -1
  7. package/dist/clients/nado.js +4 -4
  8. package/dist/clients/nado.js.map +2 -2
  9. package/dist/index.js +5560 -3292
  10. package/dist/index.js.map +4 -4
  11. package/dist/src/components/ActionLoading.d.ts +19 -0
  12. package/dist/src/components/ActionLoading.d.ts.map +1 -0
  13. package/dist/src/components/DepositActionMotion.d.ts +33 -2
  14. package/dist/src/components/DepositActionMotion.d.ts.map +1 -1
  15. package/dist/src/components/LoadingSpinner.d.ts +23 -0
  16. package/dist/src/components/LoadingSpinner.d.ts.map +1 -0
  17. package/dist/src/components/PillButton.d.ts.map +1 -1
  18. package/dist/src/components/ScrollFade.d.ts +7 -1
  19. package/dist/src/components/ScrollFade.d.ts.map +1 -1
  20. package/dist/src/components/v2/AmountDisplay.d.ts +2 -8
  21. package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
  22. package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
  23. package/dist/src/fiat/FiatActionButton.d.ts.map +1 -1
  24. package/dist/src/fiat/FiatBirthDateField.d.ts +5 -1
  25. package/dist/src/fiat/FiatBirthDateField.d.ts.map +1 -1
  26. package/dist/src/fiat/FiatChoiceField.d.ts +1 -1
  27. package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
  28. package/dist/src/fiat/FiatChoiceList.d.ts +19 -0
  29. package/dist/src/fiat/FiatChoiceList.d.ts.map +1 -0
  30. package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
  31. package/dist/src/fiat/FiatCountryIndexRail.d.ts +26 -0
  32. package/dist/src/fiat/FiatCountryIndexRail.d.ts.map +1 -0
  33. package/dist/src/fiat/FiatCountrySheet.d.ts +18 -0
  34. package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -0
  35. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -1
  36. package/dist/src/fiat/FiatFormAdvance.d.ts +21 -6
  37. package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -1
  38. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
  39. package/dist/src/fiat/FiatKycFieldControl.d.ts +8 -1
  40. package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
  41. package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
  42. package/dist/src/fiat/FiatKycNotice.d.ts +12 -2
  43. package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -1
  44. package/dist/src/fiat/FiatKycOptionRow.d.ts +15 -0
  45. package/dist/src/fiat/FiatKycOptionRow.d.ts.map +1 -0
  46. package/dist/src/fiat/FiatKycOptionsScreen.d.ts +21 -0
  47. package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -0
  48. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
  49. package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
  50. package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -1
  51. package/dist/src/fiat/SurfaceSlot.d.ts +17 -4
  52. package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
  53. package/dist/src/fiat/countryListEntries.d.ts +63 -0
  54. package/dist/src/fiat/countryListEntries.d.ts.map +1 -0
  55. package/dist/src/fiat/countrySections.d.ts +25 -0
  56. package/dist/src/fiat/countrySections.d.ts.map +1 -0
  57. package/dist/src/fiat/formLayout.d.ts +1 -0
  58. package/dist/src/fiat/formLayout.d.ts.map +1 -1
  59. package/dist/src/fiat/kycFormState.d.ts.map +1 -1
  60. package/dist/src/fiat/kycFormTheme.d.ts +23 -8
  61. package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
  62. package/dist/src/fiat/nativeDatePicker.d.ts.map +1 -1
  63. package/dist/src/fiat/phoneCountries.d.ts +9 -2
  64. package/dist/src/fiat/phoneCountries.d.ts.map +1 -1
  65. package/dist/src/fiat/phoneDraft.d.ts +10 -3
  66. package/dist/src/fiat/phoneDraft.d.ts.map +1 -1
  67. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
  68. package/dist/src/fiat/providers/HostedControlFrame.d.ts +23 -0
  69. package/dist/src/fiat/providers/HostedControlFrame.d.ts.map +1 -0
  70. package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -1
  71. package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts +14 -0
  72. package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts.map +1 -0
  73. package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
  74. package/dist/src/fiat/providers/transakApplePay.d.ts.map +1 -1
  75. package/dist/src/fiat/stepDetails.d.ts +8 -5
  76. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  77. package/dist/src/fiat/useContactEligibility.d.ts.map +1 -1
  78. package/dist/src/fiat/useCountrySheet.d.ts +21 -0
  79. package/dist/src/fiat/useCountrySheet.d.ts.map +1 -0
  80. package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -1
  81. package/dist/src/fiat/useFiatDirectDelivery.d.ts +32 -0
  82. package/dist/src/fiat/useFiatDirectDelivery.d.ts.map +1 -0
  83. package/dist/src/fiat/useKycCompletion.d.ts +13 -0
  84. package/dist/src/fiat/useKycCompletion.d.ts.map +1 -0
  85. package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +1 -1
  86. package/dist/src/fiat/useOtpReceipt.d.ts.map +1 -1
  87. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  88. package/dist/src/flow/Drawer.d.ts +23 -0
  89. package/dist/src/flow/Drawer.d.ts.map +1 -0
  90. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
  91. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  92. package/dist/src/flow/FlowSheet.d.ts +4 -18
  93. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  94. package/dist/src/flow/depositFlowConfig.d.ts +14 -1
  95. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  96. package/dist/src/flow/useV2DrawerMotion.d.ts +4 -0
  97. package/dist/src/flow/useV2DrawerMotion.d.ts.map +1 -0
  98. package/dist/src/hooks/useDelayedSpinner.d.ts +10 -0
  99. package/dist/src/hooks/useDelayedSpinner.d.ts.map +1 -0
  100. package/dist/src/hooks/useGuardedAmountInput.d.ts +19 -2
  101. package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
  102. package/dist/src/hooks/useMinimumAmountValidation.d.ts +21 -0
  103. package/dist/src/hooks/useMinimumAmountValidation.d.ts.map +1 -0
  104. package/dist/src/hooks/useNestedSheet.d.ts.map +1 -1
  105. package/dist/src/hooks/useTrailingTrue.d.ts +7 -0
  106. package/dist/src/hooks/useTrailingTrue.d.ts.map +1 -0
  107. package/dist/src/icons/KycStatusIcon.d.ts +10 -0
  108. package/dist/src/icons/KycStatusIcon.d.ts.map +1 -0
  109. package/dist/src/screens/DepositAmountScreen.d.ts +3 -1
  110. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  111. package/dist/src/screens/FeeDetailsScreen.d.ts +3 -4
  112. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  113. package/dist/src/screens/depositMetrics.d.ts +6 -0
  114. package/dist/src/screens/depositMetrics.d.ts.map +1 -1
  115. package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
  116. package/dist/src/theme/FunkitThemeProvider.d.ts.map +1 -1
  117. package/dist/src/theme/buttonRadius.d.ts +10 -0
  118. package/dist/src/theme/buttonRadius.d.ts.map +1 -0
  119. package/dist/src/theme/cornerCurve.d.ts +11 -0
  120. package/dist/src/theme/cornerCurve.d.ts.map +1 -0
  121. package/dist/src/theme/textStyle.d.ts +16 -0
  122. package/dist/src/theme/textStyle.d.ts.map +1 -0
  123. package/dist/src/theme/useFunkitTheme.d.ts.map +1 -1
  124. package/dist/src/transfer/hooks/useDepositRecipient.d.ts +29 -0
  125. package/dist/src/transfer/hooks/useDepositRecipient.d.ts.map +1 -0
  126. package/dist/src/transfer/hooks/useSupportedTokens.d.ts.map +1 -1
  127. package/dist/src/transfer/hooks/useTokenTransfer.d.ts +4 -0
  128. package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
  129. package/dist/src/transfer/hooks/useTransferInit.d.ts +8 -1
  130. package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
  131. package/dist/src/utils/colorMotion.d.ts +14 -0
  132. package/dist/src/utils/colorMotion.d.ts.map +1 -0
  133. package/dist/src/utils/formatAmount.d.ts +10 -1
  134. package/dist/src/utils/formatAmount.d.ts.map +1 -1
  135. package/dist/src/utils/motion.d.ts +34 -0
  136. package/dist/src/utils/motion.d.ts.map +1 -1
  137. package/dist/src/utils/v2/amountRowGeometry.d.ts +6 -0
  138. package/dist/src/utils/v2/amountRowGeometry.d.ts.map +1 -0
  139. package/dist/src/withdrawal/validation.d.ts.map +1 -1
  140. package/package.json +6 -6
  141. package/dist/chunk-X4RK3XTG.js.map +0 -7
  142. package/dist/src/fiat/FiatCountryDock.d.ts +0 -17
  143. package/dist/src/fiat/FiatCountryDock.d.ts.map +0 -1
  144. package/dist/src/fiat/useCountryDock.d.ts +0 -21
  145. package/dist/src/fiat/useCountryDock.d.ts.map +0 -1
  146. /package/dist/{chunk-KPP7KXYB.js.map → chunk-MKOPF7Y5.js.map} +0 -0
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The floor's verdict on the typed amount, shared by everything that acts on
3
+ * it — the notice, the action that replaces the CTA, and the quote.
4
+ *
5
+ * `isResolved` is the seam that matters: while the typing is unsettled the
6
+ * verdict is not yet known, and a caller that would spend something on the
7
+ * amount (a quote) must wait for it rather than race it.
8
+ *
9
+ * `offerMinimum` is the same verdict held back further, for the action that
10
+ * takes the user to the floor.
11
+ *
12
+ * One-directional on purpose. The verdict is withheld while typing, but a valid
13
+ * amount clears it at once — `isBelowMinimum` is checked against the live value
14
+ * too, so reaching the floor drops the notice without waiting out the debounce.
15
+ */
16
+ export declare function useMinimumAmountValidation(input: string, minLimitUsd?: string): {
17
+ belowMinimum: boolean;
18
+ isResolved: boolean;
19
+ offerMinimum: boolean;
20
+ };
21
+ //# sourceMappingURL=useMinimumAmountValidation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMinimumAmountValidation.d.ts","sourceRoot":"","sources":["../../../src/hooks/useMinimumAmountValidation.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,MAAM,GACnB;IAAE,YAAY,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAAE,CAmBvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"useNestedSheet.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNestedSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAEd,MAAM,WAAW,WAAW,CAAC,OAAO,SAAS,MAAM;IACjD,cAAc,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAA;IAClD,YAAY,EAAE,OAAO,GAAG,IAAI,CAAA;IAC5B,eAAe,EAAE,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IACjD,gBAAgB,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;IAC3C,iBAAiB,EAAE,MAAM,IAAI,CAAA;IAC7B,oBAAoB,EAAE,CACpB,KAAK,EAAE,cAAc,CAAC,OAAO,mBAAmB,CAAC,KAC9C,SAAS,CAAA;CACf;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,SAAS,MAAM,KAAK,WAAW,CAAC,OAAO,CAAC,CAiC7E"}
1
+ {"version":3,"file":"useNestedSheet.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNestedSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAEd,MAAM,WAAW,WAAW,CAAC,OAAO,SAAS,MAAM;IACjD,cAAc,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAA;IAClD,YAAY,EAAE,OAAO,GAAG,IAAI,CAAA;IAC5B,eAAe,EAAE,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IACjD,gBAAgB,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;IAC3C,iBAAiB,EAAE,MAAM,IAAI,CAAA;IAC7B,oBAAoB,EAAE,CACpB,KAAK,EAAE,cAAc,CAAC,OAAO,mBAAmB,CAAC,KAC9C,SAAS,CAAA;CACf;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,SAAS,MAAM,KAAK,WAAW,CAAC,OAAO,CAAC,CA4C7E"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Whether `value` has been continuously true for `delayMs`. It falls back to
3
+ * false the moment `value` does, and a dip restarts the wait — so the delay is
4
+ * paid again rather than carried over from the earlier stretch.
5
+ */
6
+ export declare function useTrailingTrue(value: boolean, delayMs: number): boolean;
7
+ //# sourceMappingURL=useTrailingTrue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTrailingTrue.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTrailingTrue.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAWxE"}
@@ -0,0 +1,10 @@
1
+ export type KycStatusGlyph = 'complete' | 'pending' | 'soft' | 'hard' | 'required';
2
+ export declare function KycStatusIcon({ glyph, color, faded, height: drawn, }: {
3
+ glyph: KycStatusGlyph;
4
+ color?: string;
5
+ /** The card's vertical fade; the banner leaves it off. */
6
+ faded?: boolean;
7
+ /** Drawn height; the width follows. The banner omits it, the card sets it. */
8
+ height?: number;
9
+ }): import("react").JSX.Element;
10
+ //# sourceMappingURL=KycStatusIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KycStatusIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycStatusIcon.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GACtB,UAAU,GACV,SAAS,GACT,MAAM,GACN,MAAM,GACN,UAAU,CAAA;AAoDd,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,KAAK,EACL,KAAa,EACb,MAAM,EAAE,KAAK,GACd,EAAE;IACD,KAAK,EAAE,cAAc,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,+BAsBA"}
@@ -15,6 +15,8 @@ export interface DepositAmountScreenProps {
15
15
  quickAmounts?: QuickAmountOption[];
16
16
  /** Hard input cap in dollars — the payment source's limit. */
17
17
  limitUsd?: string;
18
+ /** Smallest amount the payment source takes, in dollars. */
19
+ minLimitUsd?: string;
18
20
  /** Locks `input`: disables the numpad, backspace/clear, and quick amounts. */
19
21
  disabled?: boolean;
20
22
  /** The full fee line for the entered amount (e.g. `$0.50 fee`). */
@@ -57,5 +59,5 @@ export interface DepositAmountScreenProps {
57
59
  * source's limit — answers with a side-to-side shake, a brief warning tint and
58
60
  * a haptic. While `disabled`, the input controls themselves are non-interactive.
59
61
  */
60
- export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, disabled, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, notice, disclosure, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
62
+ export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, minLimitUsd, disabled, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, notice, disclosure, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
61
63
  //# sourceMappingURL=DepositAmountScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAoB3D,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAwBzC,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAOhE;AAID,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,uBAAuB,CAAA;IACxC,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,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,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,SAAS,CAAA;IAC9B,wBAAwB,EAAE,MAAM,CAAA;IAChC,2BAA2B,EAAE,MAAM,CAAA;IACnC,2DAA2D;IAC3D,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,SAAS,EACT,cAAc,EACd,KAAK,EACL,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,QAAgB,EAChB,GAAG,EACH,UAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,MAAM,EACN,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,eAAuB,GACxB,EAAE,wBAAwB,+BA2N1B"}
@@ -15,7 +15,6 @@ export interface FeeDetailsScreenProps {
15
15
  */
16
16
  summary?: string;
17
17
  rows: FeeDetailsRow[];
18
- onClose: () => void;
19
18
  /**
20
19
  * Floor for the drawer's height. It is content-sized, and short content would
21
20
  * leave the fee line that opened it showing above its own drawer.
@@ -27,8 +26,8 @@ export interface FeeDetailsScreenProps {
27
26
  * presents the transaction's top-level cost: a written summary of the fee, then
28
27
  * the amount, the fee and what the two come to.
29
28
  *
30
- * Presented as a nested bottom sheet over the amount screen, so it is dismissed
31
- * by swiping down, tapping the overlayFill, or its own close button.
29
+ * Presented through `Drawer`, which draws the grabber and owns every way out
30
+ * of it — the gesture, the backdrop and accessibility escape.
32
31
  */
33
- export declare function FeeDetailsScreen({ summary, rows, onClose, minHeight, }: FeeDetailsScreenProps): import("react").JSX.Element;
32
+ export declare function FeeDetailsScreen({ summary, rows, minHeight, }: FeeDetailsScreenProps): import("react").JSX.Element;
34
33
  //# sourceMappingURL=FeeDetailsScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeeDetailsScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/FeeDetailsScreen.tsx"],"names":[],"mappings":"AAwBA,iDAAiD;AACjD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,GACV,EAAE,qBAAqB,+BA0CvB"}
1
+ {"version":3,"file":"FeeDetailsScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/FeeDetailsScreen.tsx"],"names":[],"mappings":"AAUA,iDAAiD;AACjD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,IAAI,EACJ,SAAS,GACV,EAAE,qBAAqB,+BAuCvB"}
@@ -99,6 +99,12 @@ export declare const DEPOSIT_METRICS: {
99
99
  readonly watermarkTop: 818;
100
100
  };
101
101
  export declare function depositSideMargin(width: number): number;
102
+ /**
103
+ * The payment mark's left edge, measured from the action area. It follows the
104
+ * shortcut row rather than the screen margin — the row is what it reads as
105
+ * aligned to, and the row moves inward as the screen gets wider.
106
+ */
107
+ export declare function depositMethodInset(width: number): number;
102
108
  export declare const DEPOSIT_ACTIONS_HEIGHT: number;
103
109
  /**
104
110
  * The notice is pinned above the action row and is taller than the row itself,
@@ -1 +1 @@
1
- {"version":3,"file":"depositMetrics.d.ts","sourceRoot":"","sources":["../../../src/screens/depositMetrics.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwElB,CAAA;AAEV,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIvD;AAED,eAAO,MAAM,sBAAsB,QAGP,CAAA;AAE5B;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAKlE;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAM/D;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,cAAc,SAAI,GACjB,MAAM,CA8BR;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GAClB,MAAM,CAYR"}
1
+ {"version":3,"file":"depositMetrics.d.ts","sourceRoot":"","sources":["../../../src/screens/depositMetrics.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwElB,CAAA;AAEV,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIvD;AAcD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,eAAO,MAAM,sBAAsB,QAGP,CAAA;AAE5B;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAKlE;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAM/D;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,cAAc,SAAI,GACjB,MAAM,CA8BR;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GAClB,MAAM,CAYR"}
@@ -1 +1 @@
1
- {"version":3,"file":"SwappedWebView.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedWebView.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,cAAc,CAAA;AAiBrB,MAAM,WAAW,mBAAmB;IAClC,4EAA4E;IAC5E,GAAG,EAAE,MAAM,CAAA;IACX,+DAA+D;IAC/D,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,SAAS,EACT,MAAM,EACN,KAAK,GACN,EAAE,mBAAmB,+BAoOrB"}
1
+ {"version":3,"file":"SwappedWebView.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedWebView.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,cAAc,CAAA;AAiBrB,MAAM,WAAW,mBAAmB;IAClC,4EAA4E;IAC5E,GAAG,EAAE,MAAM,CAAA;IACX,+DAA+D;IAC/D,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,SAAS,EACT,MAAM,EACN,KAAK,GACN,EAAE,mBAAmB,+BAyOrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"FunkitThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/theme/FunkitThemeProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAGd,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,KAAK,cAAc,EAAe,MAAM,kBAAkB,CAAA;AAOnE,UAAU,sBAAsB;IAC9B,yCAAyC;IACzC,WAAW,EAAE,WAAW,CAAA;IACxB;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,KAAK,IAAI,CAAA;IAC/C,+FAA+F;IAC/F,YAAY,EAAE,OAAO,CAAA;CACtB;AAMD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,SAAS,CAAA;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,MAAuB,EACvB,WAAW,GACZ,EAAE,wBAAwB,+BAqC1B;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,sBAAsB,CAM7D"}
1
+ {"version":3,"file":"FunkitThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/theme/FunkitThemeProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAGd,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,KAAK,cAAc,EAAe,MAAM,kBAAkB,CAAA;AAOnE,UAAU,sBAAsB;IAC9B,yCAAyC;IACzC,WAAW,EAAE,WAAW,CAAA;IACxB;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,KAAK,IAAI,CAAA;IAC/C,+FAA+F;IAC/F,YAAY,EAAE,OAAO,CAAA;CACtB;AAMD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,SAAS,CAAA;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,MAAuB,EACvB,WAAW,GACZ,EAAE,wBAAwB,+BAqC1B;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,sBAAsB,CAM7D"}
@@ -0,0 +1,10 @@
1
+ import type { FunkitTheme } from './toRestyleTheme';
2
+ /**
3
+ * The button token's corner radius at a given height, for controls that clip
4
+ * their own content and so need the number rather than the token name.
5
+ *
6
+ * Capped at half the height: the token's pill default (999) would otherwise
7
+ * clip past the control's own corners on anything but a `borderRadius` prop.
8
+ */
9
+ export declare function buttonRadius(theme: FunkitTheme, height: number): number;
10
+ //# sourceMappingURL=buttonRadius.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buttonRadius.d.ts","sourceRoot":"","sources":["../../../src/theme/buttonRadius.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvE"}
@@ -0,0 +1,11 @@
1
+ import type { ViewStyle } from 'react-native';
2
+ /**
3
+ * Apple's continuous ("squircle") corner — Figma's 60% corner smoothing — for a
4
+ * control of this corner radius and height.
5
+ *
6
+ * - Only for a corner that leaves a straight edge to curve into: at half the
7
+ * height the radius already draws a stadium or a circle, and smoothing those
8
+ * ends flattens them instead of softening them.
9
+ */
10
+ export declare function cornerCurve(radius: number, height: number): ViewStyle['borderCurve'];
11
+ //# sourceMappingURL=cornerCurve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cornerCurve.d.ts","sourceRoot":"","sources":["../../../src/theme/cornerCurve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C;;;;;;;GAOG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,SAAS,CAAC,aAAa,CAAC,CAE1B"}
@@ -0,0 +1,16 @@
1
+ import type { TextStyle } from 'react-native';
2
+ import type { FunkitTheme } from './toRestyleTheme';
3
+ import type { FunkitFontWeight } from './tokens';
4
+ /**
5
+ * A theme's text style as a flat array, for the nodes that cannot afford
6
+ * {@link Text}.
7
+ *
8
+ * Restyle resolves its style props and reads the theme per node, per render,
9
+ * which a list of 245 rows or a strip of 27 letters redraws too often to pay
10
+ * for. Those draw plain `Text` over this instead — one place where the order
11
+ * lives, so a fast path cannot layer them differently from the rest.
12
+ */
13
+ export declare function flatTextStyle(theme: FunkitTheme, options?: {
14
+ weight?: FunkitFontWeight;
15
+ }): TextStyle[];
16
+ //# sourceMappingURL=textStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textStyle.d.ts","sourceRoot":"","sources":["../../../src/theme/textStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,WAAW,EAClB,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAAO,GAC1C,SAAS,EAAE,CAWb"}
@@ -1 +1 @@
1
- {"version":3,"file":"useFunkitTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/useFunkitTheme.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,KAAK,iBAAiB,EAAkB,MAAM,kBAAkB,CAAA;AAEzE;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GACtB;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,IAAI,CAAC,EAAE,WAAW,CAAA;CAAE,GAC1C;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,WAAW,CAAA;CAAE,CAAA;AAO9C;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,cAAc,EACxB,MAAM,EAAE,iBAAiB,GACxB,WAAW,CAab;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,GAAE,cAAkC,GAC3C,WAAW,CAQb"}
1
+ {"version":3,"file":"useFunkitTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/useFunkitTheme.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,KAAK,iBAAiB,EAAkB,MAAM,kBAAkB,CAAA;AAEzE;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GACtB;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,IAAI,CAAC,EAAE,WAAW,CAAA;CAAE,GAC1C;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,WAAW,CAAA;CAAE,CAAA;AAO9C;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,cAAc,EACxB,MAAM,EAAE,iBAAiB,GACxB,WAAW,CAab;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,GAAE,cAAkC,GAC3C,WAAW,CAQb"}
@@ -0,0 +1,29 @@
1
+ import type { FunAddress } from '@funkit/api-base';
2
+ import type { CheckoutTokenTransferConfig } from '@funkit/connect-core';
3
+ export interface UseDepositRecipientResult {
4
+ /** Who ends up with the funds; `0x` when nothing names one. */
5
+ recipient: FunAddress;
6
+ /** A Lighter deposit whose main-account index has not resolved. */
7
+ isLighterWalletFallback: boolean;
8
+ isLighterDeposit: boolean;
9
+ /** The resolved L2 main-account index, when there is one. */
10
+ lighterRecipientOverride: string | undefined;
11
+ isLookupFetching: boolean;
12
+ lookupStatus: string;
13
+ }
14
+ /**
15
+ * Who a deposit pays, resolved once.
16
+ *
17
+ * Mirrors web's `useCheckoutTransferInit` priority: a resolved Lighter L2
18
+ * main-account index outranks an explicit `recipientAddr`, which outranks the
19
+ * host's configured `customRecipient`, which outranks the wallet. Its own hook
20
+ * so a caller can read the recipient *before* deciding whether to mint a
21
+ * deposit address for it.
22
+ */
23
+ export declare function useDepositRecipient({ checkoutConfig, recipientAddr, udaTargetChain, }: {
24
+ checkoutConfig: CheckoutTokenTransferConfig | undefined;
25
+ recipientAddr?: FunAddress;
26
+ /** Target chain of the resolved UDA params, which decides Lighter. */
27
+ udaTargetChain: string | undefined;
28
+ }): UseDepositRecipientResult;
29
+ //# sourceMappingURL=useDepositRecipient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDepositRecipient.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useDepositRecipient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAKvE,MAAM,WAAW,yBAAyB;IACxC,+DAA+D;IAC/D,SAAS,EAAE,UAAU,CAAA;IACrB,mEAAmE;IACnE,uBAAuB,EAAE,OAAO,CAAA;IAChC,gBAAgB,EAAE,OAAO,CAAA;IACzB,6DAA6D;IAC7D,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5C,gBAAgB,EAAE,OAAO,CAAA;IACzB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,cAAc,EACd,aAAa,EACb,cAAc,GACf,EAAE;IACD,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,sEAAsE;IACtE,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;CACnC,GAAG,yBAAyB,CAyC5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSupportedTokens.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useSupportedTokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kBAAkB,CAAA;AAYzE,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,wBAAwB;IACvC,0EAA0E;IAC1E,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,6CAA6C;IAC7C,YAAY,EAAE,gBAAgB,EAAE,CAAA;IAChC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAc,EACd,YAAY,GACb,GAAE;IACD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,iCAAiC,CAAA;CAC5C,GAAG,wBAAwB,CA0ChC"}
1
+ {"version":3,"file":"useSupportedTokens.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useSupportedTokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kBAAkB,CAAA;AAYzE,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAEtB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,wBAAwB;IACvC,0EAA0E;IAC1E,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,6CAA6C;IAC7C,YAAY,EAAE,gBAAgB,EAAE,CAAA;IAChC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAc,EACd,YAAY,GACb,GAAE;IACD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,iCAAiC,CAAA;CAC5C,GAAG,wBAAwB,CA0ChC"}
@@ -23,6 +23,10 @@ export interface UseTokenTransferResult {
23
23
  qrCodeUri: QRCodeUri | undefined;
24
24
  blockchain: TransferTokenQrCodeType;
25
25
  isLoading: boolean;
26
+ /** The deposit-address lookup failed; nothing can be delivered without it. */
27
+ depositAddressError: Error | undefined;
28
+ /** Replays the deposit-address lookup. */
29
+ retryDepositAddress: () => void;
26
30
  }
27
31
  /**
28
32
  * Thin RN reimplementation of `@funkit/connect`'s `useTokenTransfer`: resolves
@@ -1 +1 @@
1
- {"version":3,"file":"useTokenTransfer.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTokenTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,UAAU,EACX,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,SAAS,EACd,KAAK,uBAAuB,EAG7B,MAAM,sBAAsB,CAAA;AAuB7B,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,8CAA8C;IAC9C,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mEAAmE;IACnE,cAAc,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAA;IACtC,gFAAgF;IAChF,YAAY,EAAE,iCAAiC,GAAG,SAAS,CAAA;IAC3D,sCAAsC;IACtC,aAAa,EAAE,MAAM,CAAA;IACrB,0CAA0C;IAC1C,kBAAkB,EAAE,MAAM,CAAA;IAC1B,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,UAAU,EAAE,uBAAuB,CAAA;IACnC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,OAAO,GACR,EAAE,sBAAsB,GAAG,sBAAsB,CAiCjD"}
1
+ {"version":3,"file":"useTokenTransfer.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTokenTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,UAAU,EACX,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,SAAS,EACd,KAAK,uBAAuB,EAG7B,MAAM,sBAAsB,CAAA;AAuB7B,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,8CAA8C;IAC9C,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mEAAmE;IACnE,cAAc,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAA;IACtC,gFAAgF;IAChF,YAAY,EAAE,iCAAiC,GAAG,SAAS,CAAA;IAC3D,sCAAsC;IACtC,aAAa,EAAE,MAAM,CAAA;IACrB,0CAA0C;IAC1C,kBAAkB,EAAE,MAAM,CAAA;IAC1B,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,UAAU,EAAE,uBAAuB,CAAA;IACnC,SAAS,EAAE,OAAO,CAAA;IAClB,8EAA8E;IAC9E,mBAAmB,EAAE,KAAK,GAAG,SAAS,CAAA;IACtC,0CAA0C;IAC1C,mBAAmB,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,OAAO,GACR,EAAE,sBAAsB,GAAG,sBAAsB,CAoCjD"}
@@ -4,7 +4,10 @@ import type { DepositClientMetadata } from '../../flow/depositFlowConfig';
4
4
  export interface UseTransferInitParams {
5
5
  /** Destination chain/asset to derive the deposit address for. */
6
6
  checkoutConfig: CheckoutTokenTransferConfig | undefined;
7
- /** Final recipient. Defaults to the identity's wallet address. */
7
+ /**
8
+ * Final recipient, outranking the config's `customRecipient`. Both default
9
+ * to the identity's wallet address.
10
+ */
8
11
  recipientAddr?: FunAddress;
9
12
  /** Dynamic-routing id used to resolve UDA params. */
10
13
  dynamicRoutingId?: string;
@@ -27,6 +30,10 @@ export interface UseTransferInitResult {
27
30
  recipientAddr: FunAddress;
28
31
  isLoading: boolean;
29
32
  isFetching: boolean;
33
+ /** The `/eoa` call that mints the deposit address failed. */
34
+ error: Error | undefined;
35
+ /** Replays that call, for a caller that puts a retry on screen. */
36
+ retry: () => void;
30
37
  }
31
38
  /**
32
39
  * Thin RN reimplementation of `@funkit/connect`'s `useCheckoutTransferInit`:
@@ -1 +1 @@
1
- {"version":3,"file":"useTransferInit.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTransferInit.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iCAAiC,EACtC,KAAK,UAAU,EAEhB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,sBAAsB,CAAA;AAQ7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAErE,MAAM,WAAW,qBAAqB;IACpC,iEAAiE;IACjE,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,kEAAkE;IAClE,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAA;IACtC,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,iCAAiC,GAAG,SAAS,CAAA;IAC3D,aAAa,EAAE,UAAU,CAAA;IACzB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,OAAO,CAAA;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC9B,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,OAAc,GACf,EAAE,qBAAqB,GAAG,qBAAqB,CA6F/C"}
1
+ {"version":3,"file":"useTransferInit.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTransferInit.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iCAAiC,EACtC,KAAK,UAAU,EAEhB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,sBAAsB,CAAA;AAQ7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAErE,MAAM,WAAW,qBAAqB;IACpC,iEAAiE;IACjE,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD;;;OAGG;IACH,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAA;IACtC,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,iCAAiC,GAAG,SAAS,CAAA;IAC3D,aAAa,EAAE,UAAU,CAAA;IACzB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,OAAO,CAAA;IACnB,6DAA6D;IAC7D,KAAK,EAAE,KAAK,GAAG,SAAS,CAAA;IACxB,mEAAmE;IACnE,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC9B,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,OAAc,GACf,EAAE,qBAAqB,GAAG,qBAAqB,CAkF/C"}
@@ -0,0 +1,14 @@
1
+ /** Where each {@link hsbRamp} stop sits in a 0–1 crossing. */
2
+ export declare const RAMP_PROGRESS: number[];
3
+ /**
4
+ * The path from one fill colour to the next sampled through HSB, as stops a
5
+ * plain colour interpolation can follow on the UI thread (Neil, ENG-6125:
6
+ * white → green travels by brightness, not along the RGB line).
7
+ *
8
+ * An unsaturated colour has no hue of its own, so it borrows the other end's:
9
+ * white otherwise leaves at hue 0 and the crossing flashes yellow on its way
10
+ * to green. A colour `colord` cannot read crosses nowhere — every stop is the
11
+ * colour being crossed to, as a wrong colour is worse than no motion.
12
+ */
13
+ export declare function hsbRamp(from: string, to: string): string[];
14
+ //# sourceMappingURL=colorMotion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorMotion.d.ts","sourceRoot":"","sources":["../../../src/utils/colorMotion.ts"],"names":[],"mappings":"AAMA,8DAA8D;AAC9D,eAAO,MAAM,aAAa,EAAE,MAAM,EAGjC,CAAA;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CA4B1D"}
@@ -5,7 +5,8 @@
5
5
  export declare function groupThousands(amount: string): string;
6
6
  /**
7
7
  * A rate as its percentage: `0.005` → `0.5%`. Trailing zeros are dropped, so a
8
- * whole percent reads `1%` rather than `1.00%`.
8
+ * whole percent reads `1%` rather than `1.00%`. A rate too small to round to a
9
+ * tenth reads `<0.1%`, since the row beside it still charges a real amount.
9
10
  */
10
11
  export declare function formatPercent(rate: number): string;
11
12
  /**
@@ -25,4 +26,12 @@ export declare function formatTokenAmount(amount: string, maxDecimals?: number):
25
26
  export declare function formatUsd(value: number): string;
26
27
  /** `99.94, 'AUD'` → `A$99.94`. Fiat amounts are not always dollars. */
27
28
  export declare function formatFiat(value: number, currency: string): string;
29
+ /**
30
+ * `2, 'USD'` → `$2`, `2.5, 'USD'` → `$2.50`.
31
+ *
32
+ * For the deposit limit disclaimers only: a threshold reads the way the rail
33
+ * states it ("the minimum for this purchase is 2 USD"), and cents the user
34
+ * never has to think about are noise. Amounts they pay keep {@link formatFiat}.
35
+ */
36
+ export declare function formatFiatWhole(value: number, currency: string): string;
28
37
  //# sourceMappingURL=formatAmount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatAmount.d.ts","sourceRoot":"","sources":["../../../src/utils/formatAmount.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIrD;AAKD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIlD;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,IAAI,CAAA;AAE/B;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,WAAW,GAAE,MAAuB,GACnC,MAAM,CAKR;AAED,8EAA8E;AAC9E,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/C;AAcD,uEAAuE;AACvE,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAIlE"}
1
+ {"version":3,"file":"formatAmount.d.ts","sourceRoot":"","sources":["../../../src/utils/formatAmount.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIrD;AAQD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQlD;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,IAAI,CAAA;AAE/B;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,WAAW,GAAE,MAAuB,GACnC,MAAM,CAKR;AAED,8EAA8E;AAC9E,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/C;AAmBD,uEAAuE;AACvE,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGvE"}
@@ -6,6 +6,7 @@ export declare const MOTION_TIMING: {
6
6
  duration: number;
7
7
  easing: import("react-native-reanimated").EasingFunctionFactory;
8
8
  };
9
+ export declare const SPINNER_APPEAR_DELAY_MS = 150;
9
10
  export declare const GLYPH_LAYOUT: LinearTransition;
10
11
  export declare const DIGIT_ENTER_SCALE = 0.5;
11
12
  export declare const DIGIT_TRAVEL_RATIO = 0.4;
@@ -19,6 +20,17 @@ export declare function digitKeyframes(travel: number, delay?: number): {
19
20
  exiting: import("react-native-reanimated").ReanimatedKeyframe;
20
21
  };
21
22
  export declare const SMOOTH_EASING: import("react-native-reanimated").EasingFunctionFactory;
23
+ /**
24
+ * The deposit action changing phase: its fill crosses between phase colours on
25
+ * the amount screen's own clock, and the label and spinner arrive once that
26
+ * crossing is visibly under way rather than with it.
27
+ */
28
+ export declare const CONTENT_FADE_DELAY = 60;
29
+ export declare const CONTENT_FADE_DURATION = 120;
30
+ export declare const CONTENT_FADE_TIMING: {
31
+ duration: number;
32
+ easing: import("react-native-reanimated").EasingFunctionFactory;
33
+ };
22
34
  /**
23
35
  * A keyboard action rising into place. Deposit amount fills use
24
36
  * DepositActionLayers so state changes can replay without remounting.
@@ -58,4 +70,26 @@ export declare const CHECK_ROTATE_FROM = "80deg";
58
70
  export declare const CHECK_BOB_DISTANCE = 40;
59
71
  export declare const CHECK_BOB_EASING: import("react-native-reanimated").EasingFunctionFactory;
60
72
  export declare const CHECK_ENTERING: import("react-native-reanimated").ReanimatedKeyframe;
73
+ /**
74
+ * A keyboard action arriving. Short travel on purpose: a longer rise reads as
75
+ * the button coming out from behind the keyboard, and the fade carries the
76
+ * arrival instead.
77
+ */
78
+ export declare const ACTION_ENTER_TRAVEL = 12;
79
+ export declare const ACTION_ENTER_DURATION = 300;
80
+ export declare const ACTION_ENTER_TIMING: {
81
+ duration: number;
82
+ easing: import("react-native-reanimated").EasingFunction;
83
+ };
84
+ /**
85
+ * The same arrival as a keyframe pair, for whatever stands in the action's
86
+ * slot beside it: a notice that replaces the button has to come and go the
87
+ * way the button does, or the swap reads as one of them glitching.
88
+ *
89
+ * Leaving is quicker than arriving, so the slot is clear before its next
90
+ * occupant rises into it.
91
+ */
92
+ export declare const ACTION_EXIT_DURATION = 150;
93
+ export declare const ACTION_ENTERING: import("react-native-reanimated").ReanimatedKeyframe;
94
+ export declare const ACTION_EXITING: import("react-native-reanimated").ReanimatedKeyframe;
61
95
  //# sourceMappingURL=motion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../../src/utils/motion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI5E,eAAO,MAAM,eAAe,MAAM,CAAA;AAClC,eAAO,MAAM,aAAa,yDAAkC,CAAA;AAC5D,mFAAmF;AACnF,eAAO,MAAM,aAAa;;;CAGzB,CAAA;AAID,eAAO,MAAM,YAAY,kBACyC,CAAA;AAKlE,eAAO,MAAM,iBAAiB,MAAM,CAAA;AACpC,eAAO,MAAM,kBAAkB,MAAM,CAAA;AAIrC,eAAO,MAAM,aAAa,KAAK,CAAA;AAE/B;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,SAAI;;;EAwBvD;AAKD,eAAO,MAAM,aAAa,yDAAkC,CAAA;AAE5D;;;GAGG;AACH,eAAO,MAAM,WAAW,KAAK,CAAA;AAC7B,eAAO,MAAM,aAAa,sDAGE,CAAA;AAC5B,eAAO,MAAM,YAAY,sDAOG,CAAA;AAE5B;;;GAGG;AACH,eAAO,MAAM,mBAAmB,MAAM,CAAA;AACtC,eAAO,MAAM,oBAAoB,MAAM,CAAA;AACvC,eAAO,MAAM,WAAW,OAAO,CAAA;AAC/B,eAAO,MAAM,cAAc,sDAGK,CAAA;AAChC,eAAO,MAAM,aAAa,sDAOO,CAAA;AAEjC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,MAAM,CAAA;AACrC,eAAO,MAAM,mBAAmB,IAAI,CAAA;AACpC,eAAO,MAAM,WAAW;;;CAGvB,CAAA;AACD,0DAA0D;AAC1D,wBAAgB,YAAY,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,wDAQ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AAa,sDAOO,CAAA;AAEjC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,MAAM,CAAA;AACrC,eAAO,MAAM,mBAAmB,IAAI,CAAA;AACpC,eAAO,MAAM,WAAW;;;CAGvB,CAAA;AACD,0DAA0D;AAC1D,wBAAgB,YAAY,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,wDAQ7C;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,MAAM,CAAA;AACjC,eAAO,MAAM,iBAAiB,UAAU,CAAA;AACxC,eAAO,MAAM,kBAAkB,KAAK,CAAA;AACpC,eAAO,MAAM,gBAAgB,yDAAqC,CAAA;AAClE,eAAO,MAAM,cAAc,sDAaA,CAAA;AAE3B;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,KAAK,CAAA;AACrC,eAAO,MAAM,qBAAqB,MAAM,CAAA;AACxC,eAAO,MAAM,mBAAmB;;;CAG/B,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,MAAM,CAAA;AACvC,eAAO,MAAM,eAAe,sDAOM,CAAA;AAClC,eAAO,MAAM,cAAc,sDAOM,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare function fitScale(measured: number, available: number): number;
2
+ export declare function amountRowGeometry(measured: number, available: number): {
3
+ scale: number;
4
+ translateX: number;
5
+ };
6
+ //# sourceMappingURL=amountRowGeometry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amountRowGeometry.d.ts","sourceRoot":"","sources":["../../../../src/utils/v2/amountRowGeometry.ts"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAKpE;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;EAOpE"}
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/validation.ts"],"names":[],"mappings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CAAA;IACxB,sBAAsB,EAAE,OAAO,CAAA;IAC/B,uBAAuB,EAAE,OAAO,CAAA;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,gBAAgB,EAAE,0BAA0B,CAAA;IAC5C,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;CAC9C,GAAG,kBAAkB,GAAG,SAAS,CA6BjC;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,cAAc,EACd,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,GAAG,OAAO,CAiBV"}
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAQhC,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,8BAA8B,CAAA;AAMrC;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAC1B,iBAAiB,GACjB,uBAAuB,GACvB,0BAA0B,GAC1B,cAAc,GACd,cAAc,GACd,oBAAoB,GACpB,mBAAmB,CAAA;AAEvB;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,MAAM,EACN,OAAO,GACR,EAAE;IACD,MAAM,EAAE,IAAI,CACV,oBAAoB,EAClB,wBAAwB,GACxB,qBAAqB,GACrB,qBAAqB,GACrB,wBAAwB,CAC3B,CAAA;IACD,WAAW,EAAE,eAAe,CAAA;IAC5B,0DAA0D;IAC1D,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,4EAA4E;IAC5E,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B,GAAG,0BAA0B,CAmC7B;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,WAAW,GACZ,EAAE;IACD,gBAAgB,EAAE,MAAM,CAAA;IACxB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,eAAe,CAAA;IAC5B,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;IAC7C,WAAW,EAAE,OAAO,CAAA;CACrB,GAAG,OAAO,CAgBV;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,MAAM,EACN,gBAAgB,EAChB,gBAAgB,GACjB,EAAE;IACD,gBAAgB,EAAE,MAAM,CAAA;IACxB,sBAAsB,EAAE,OAAO,CAAA;IAC/B,uBAAuB,EAAE,OAAO,CAAA;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,gBAAgB,EAAE,0BAA0B,CAAA;IAC5C,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;CAC9C,GAAG,kBAAkB,GAAG,SAAS,CA6BjC;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,cAAc,EACd,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,GAAG,OAAO,CAiBV"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect-rn",
3
- "version": "5.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "React Native bindings for @funkit/connect. Re-exports the headless @funkit/connect-core logic; the RN platform halves (Restyle theme, WebView Swapped transport, Transfer/Swapped screens, logging) land in later releases.",
5
5
  "files": [
6
6
  "dist",
@@ -35,16 +35,16 @@
35
35
  "author": "https://fun.xyz/",
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
- "@moonpay/platform-sdk-react-native": "1.16.0",
38
+ "@moonpay/platform-sdk-react-native": "1.17.0",
39
39
  "@shopify/restyle": "^2.4.5",
40
40
  "@tanstack/react-form": "1.33.5",
41
41
  "@transak/ui-components-core": "0.5.0",
42
42
  "colord": "2.10.0",
43
43
  "libphonenumber-js": "1.13.6",
44
44
  "react-i18next": "12.3.1",
45
- "@funkit/api-base": "8.3.0",
46
- "@funkit/connect-core": "7.0.0",
47
- "@funkit/chains": "2.4.0"
45
+ "@funkit/chains": "2.4.0",
46
+ "@funkit/connect-core": "8.1.0",
47
+ "@funkit/api-base": "8.4.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@gorhom/bottom-sheet": ">=5",
@@ -117,7 +117,7 @@
117
117
  "prebuild": "pnpm typegen",
118
118
  "typecheck": "pnpm tsc --noEmit",
119
119
  "typegen": "tsc --project tsconfig.build.json --emitDeclarationOnly && tsc-alias",
120
- "typegen:watch": "tsc --project tsconfig.build.json --emitDeclarationOnly --watch",
120
+ "typegen:watch": "tsc --project tsconfig.build.json --emitDeclarationOnly --watch & tsc-alias --project tsconfig.build.json --watch",
121
121
  "lint": "oxlint",
122
122
  "lint:fix": "oxlint --fix",
123
123
  "test": "vitest",