@funkit/connect-rn 3.10.0 → 3.11.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 (170) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/chunk-5IWD2I7N.js +94 -0
  3. package/dist/chunk-5IWD2I7N.js.map +7 -0
  4. package/dist/chunk-75TJE4HO.js +1656 -0
  5. package/dist/chunk-75TJE4HO.js.map +7 -0
  6. package/dist/chunk-EL2UG6WN.js +1690 -0
  7. package/dist/chunk-EL2UG6WN.js.map +7 -0
  8. package/dist/chunk-FTD4HETU.js +94 -0
  9. package/dist/chunk-FTD4HETU.js.map +7 -0
  10. package/dist/chunk-KQEQB6MZ.js +94 -0
  11. package/dist/chunk-KQEQB6MZ.js.map +7 -0
  12. package/dist/chunk-L26YKVZ7.js +94 -0
  13. package/dist/chunk-L26YKVZ7.js.map +7 -0
  14. package/dist/chunk-LIOQVZV4.js +1753 -0
  15. package/dist/chunk-LIOQVZV4.js.map +7 -0
  16. package/dist/chunk-LKILQNGD.js +1655 -0
  17. package/dist/chunk-LKILQNGD.js.map +7 -0
  18. package/dist/chunk-LPJDURB5.js +1675 -0
  19. package/dist/chunk-LPJDURB5.js.map +7 -0
  20. package/dist/chunk-MJ4QBNTD.js +94 -0
  21. package/dist/chunk-MJ4QBNTD.js.map +7 -0
  22. package/dist/chunk-NNEV7EFP.js +94 -0
  23. package/dist/chunk-NNEV7EFP.js.map +7 -0
  24. package/dist/chunk-NYW4N5SQ.js +1328 -0
  25. package/dist/chunk-NYW4N5SQ.js.map +7 -0
  26. package/dist/chunk-OI54J6E6.js +1951 -0
  27. package/dist/chunk-OI54J6E6.js.map +7 -0
  28. package/dist/chunk-OIXZMXFJ.js +1681 -0
  29. package/dist/chunk-OIXZMXFJ.js.map +7 -0
  30. package/dist/chunk-OQVPCP4W.js +94 -0
  31. package/dist/chunk-OQVPCP4W.js.map +7 -0
  32. package/dist/chunk-PHUM52HD.js +1542 -0
  33. package/dist/chunk-PHUM52HD.js.map +7 -0
  34. package/dist/chunk-Q5OFOALX.js +94 -0
  35. package/dist/chunk-Q5OFOALX.js.map +7 -0
  36. package/dist/chunk-QNAMNQZX.js +1660 -0
  37. package/dist/chunk-QNAMNQZX.js.map +7 -0
  38. package/dist/chunk-RTQ4MJHE.js +1209 -0
  39. package/dist/chunk-RTQ4MJHE.js.map +7 -0
  40. package/dist/chunk-V23HUIDS.js +1744 -0
  41. package/dist/chunk-V23HUIDS.js.map +7 -0
  42. package/dist/chunk-V4LN3XNI.js +94 -0
  43. package/dist/chunk-V4LN3XNI.js.map +7 -0
  44. package/dist/chunk-VE6N6BHJ.js +94 -0
  45. package/dist/chunk-VE6N6BHJ.js.map +7 -0
  46. package/dist/chunk-VL4WQDU7.js +1654 -0
  47. package/dist/chunk-VL4WQDU7.js.map +7 -0
  48. package/dist/chunk-X2X2GENE.js +94 -0
  49. package/dist/chunk-X2X2GENE.js.map +7 -0
  50. package/dist/clients/lighter.js +1 -1
  51. package/dist/clients/nado/withdrawalSubmit.d.ts.map +1 -1
  52. package/dist/clients/nado.js +8 -6
  53. package/dist/clients/nado.js.map +2 -2
  54. package/dist/index.d.ts +2 -1
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +2632 -1255
  57. package/dist/index.js.map +4 -4
  58. package/dist/src/branding/BrandingContext.d.ts +15 -0
  59. package/dist/src/branding/BrandingContext.d.ts.map +1 -0
  60. package/dist/src/components/AccountBalanceChip.d.ts +19 -0
  61. package/dist/src/components/AccountBalanceChip.d.ts.map +1 -0
  62. package/dist/src/components/AmountChipsRow.d.ts +17 -0
  63. package/dist/src/components/AmountChipsRow.d.ts.map +1 -0
  64. package/dist/src/components/AmountInput.d.ts +40 -0
  65. package/dist/src/components/AmountInput.d.ts.map +1 -0
  66. package/dist/src/components/AttributionWatermark.d.ts +10 -0
  67. package/dist/src/components/AttributionWatermark.d.ts.map +1 -0
  68. package/dist/src/components/Grabber.d.ts +7 -1
  69. package/dist/src/components/Grabber.d.ts.map +1 -1
  70. package/dist/src/components/PillButton.d.ts +3 -1
  71. package/dist/src/components/PillButton.d.ts.map +1 -1
  72. package/dist/src/components/RollingAmount.d.ts +20 -0
  73. package/dist/src/components/RollingAmount.d.ts.map +1 -0
  74. package/dist/src/components/SegmentedControl.d.ts +12 -0
  75. package/dist/src/components/SegmentedControl.d.ts.map +1 -0
  76. package/dist/src/components/WithdrawFeeSummary.d.ts +23 -0
  77. package/dist/src/components/WithdrawFeeSummary.d.ts.map +1 -0
  78. package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
  79. package/dist/src/components/v2/NumPad.d.ts +1 -1
  80. package/dist/src/components/v2/NumPad.d.ts.map +1 -1
  81. package/dist/src/components/v2/QuickAmountsRow.d.ts +1 -1
  82. package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
  83. package/dist/src/fiat/FiatStatusScreen.d.ts +19 -0
  84. package/dist/src/fiat/FiatStatusScreen.d.ts.map +1 -0
  85. package/dist/src/fiat/SurfaceSlot.d.ts +8 -0
  86. package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -0
  87. package/dist/src/fiat/ctaLabel.d.ts +19 -0
  88. package/dist/src/fiat/ctaLabel.d.ts.map +1 -0
  89. package/dist/src/fiat/providers/TransakApplePaySurface.d.ts +7 -0
  90. package/dist/src/fiat/providers/TransakApplePaySurface.d.ts.map +1 -0
  91. package/dist/src/fiat/renderCaptureSurface.d.ts +12 -0
  92. package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -0
  93. package/dist/src/fiat/stepDetails.d.ts +18 -0
  94. package/dist/src/fiat/stepDetails.d.ts.map +1 -0
  95. package/dist/src/flow/BackdropBlurContext.d.ts +9 -0
  96. package/dist/src/flow/BackdropBlurContext.d.ts.map +1 -0
  97. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  98. package/dist/src/flow/DepositFlowContent.d.ts +1 -3
  99. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  100. package/dist/src/flow/FiatDepositAmountStep.d.ts +9 -0
  101. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -0
  102. package/dist/src/flow/FlowSheet.d.ts +34 -5
  103. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  104. package/dist/src/flow/FunkitFlowProvider.d.ts +1 -1
  105. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  106. package/dist/src/flow/WithdrawalFlowContent.d.ts +1 -4
  107. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
  108. package/dist/src/flow/depositFlowConfig.d.ts +24 -3
  109. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  110. package/dist/src/hooks/useGuardedAmountInput.d.ts +9 -5
  111. package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
  112. package/dist/src/hooks/usePressScale.d.ts +18 -0
  113. package/dist/src/hooks/usePressScale.d.ts.map +1 -0
  114. package/dist/src/identity/IdentityContext.d.ts +10 -0
  115. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  116. package/dist/src/logging/consoleLogTransport.d.ts +10 -0
  117. package/dist/src/logging/consoleLogTransport.d.ts.map +1 -0
  118. package/dist/src/providers/FunkitProvider.d.ts +6 -5
  119. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  120. package/dist/src/providers/NativeCapabilitiesContext.d.ts +43 -0
  121. package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -0
  122. package/dist/src/screens/AddMoneyScreen.d.ts +86 -0
  123. package/dist/src/screens/AddMoneyScreen.d.ts.map +1 -0
  124. package/dist/src/screens/AvailableChainsScreen.d.ts +32 -0
  125. package/dist/src/screens/AvailableChainsScreen.d.ts.map +1 -0
  126. package/dist/src/screens/DepositAmountScreen.d.ts +27 -11
  127. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  128. package/dist/src/screens/FeeDetailsScreen.d.ts +36 -0
  129. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -0
  130. package/dist/src/screens/NetworkSelector.d.ts +31 -0
  131. package/dist/src/screens/NetworkSelector.d.ts.map +1 -0
  132. package/dist/src/screens/SelectDestinationScreen.d.ts +19 -0
  133. package/dist/src/screens/SelectDestinationScreen.d.ts.map +1 -0
  134. package/dist/src/screens/WithdrawCryptoCta.d.ts +20 -0
  135. package/dist/src/screens/WithdrawCryptoCta.d.ts.map +1 -0
  136. package/dist/src/screens/WithdrawCryptoForm.d.ts +28 -0
  137. package/dist/src/screens/WithdrawCryptoForm.d.ts.map +1 -0
  138. package/dist/src/screens/WithdrawCryptoScreen.d.ts +17 -0
  139. package/dist/src/screens/WithdrawCryptoScreen.d.ts.map +1 -0
  140. package/dist/src/statsig/StatsigProviderRN.d.ts +7 -0
  141. package/dist/src/statsig/StatsigProviderRN.d.ts.map +1 -0
  142. package/dist/src/statsig/useClientBootstrapInitRN.d.ts +4 -0
  143. package/dist/src/statsig/useClientBootstrapInitRN.d.ts.map +1 -0
  144. package/dist/src/theme/buildFunkitTheme.d.ts +8 -0
  145. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  146. package/dist/src/theme/restyle.d.ts +264 -0
  147. package/dist/src/theme/restyle.d.ts.map +1 -1
  148. package/dist/src/theme/toRestyleTheme.d.ts +24 -0
  149. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  150. package/dist/src/theme/tokens.d.ts +4 -1
  151. package/dist/src/theme/tokens.d.ts.map +1 -1
  152. package/dist/src/utils/formatAmount.d.ts +5 -0
  153. package/dist/src/utils/formatAmount.d.ts.map +1 -1
  154. package/dist/src/utils/motion.d.ts +5 -0
  155. package/dist/src/utils/motion.d.ts.map +1 -1
  156. package/dist/src/utils/numpadInput.d.ts +2 -1
  157. package/dist/src/utils/numpadInput.d.ts.map +1 -1
  158. package/dist/src/utils/v2/amountGlyphs.d.ts +5 -4
  159. package/dist/src/utils/v2/amountGlyphs.d.ts.map +1 -1
  160. package/dist/src/utils/v2/numberFormat.d.ts +36 -0
  161. package/dist/src/utils/v2/numberFormat.d.ts.map +1 -0
  162. package/dist/src/utils/withAlpha.d.ts +13 -0
  163. package/dist/src/utils/withAlpha.d.ts.map +1 -0
  164. package/dist/src/withdrawal/publicClient.d.ts +10 -0
  165. package/dist/src/withdrawal/publicClient.d.ts.map +1 -0
  166. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
  167. package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -1
  168. package/dist/src/withdrawal/validation.d.ts +5 -1
  169. package/dist/src/withdrawal/validation.d.ts.map +1 -1
  170. package/package.json +6 -4
@@ -45,13 +45,23 @@ export interface ChainOption {
45
45
  /**
46
46
  * The V2 amount-first deposit surface (Fun Mobile MVP). Present on
47
47
  * {@link DepositFlowConfig.amountEntry}, it opens the flow on the full-screen
48
- * amount screen instead of the Add money method list. The payment rail behind
49
- * the submit is not wired yet — submission lands on
48
+ * amount screen instead of the Add money method list. Without {@link fiat},
49
+ * the payment rail behind the submit is not wired — submission lands on
50
50
  * {@link DepositFlowCallbacks.onSubmitAmount}.
51
51
  */
52
52
  export interface DepositAmountEntryConfig {
53
- /** Fee charged on the entered amount, as a fraction (0.005 = 0.5%). */
53
+ /**
54
+ * Fee charged on the entered amount, as a fraction (0.005 = 0.5%). With
55
+ * {@link fiat} configured the displayed fee comes from live quotes instead
56
+ * and this rate is unused.
57
+ */
54
58
  feeRate: number;
59
+ /**
60
+ * The payment rail the fee belongs to, e.g. `Apple Pay`. Names the rail in
61
+ * the fee-details drawer's written summary; without it the drawer opens on
62
+ * the figures alone.
63
+ */
64
+ methodName?: string;
55
65
  /** Submit CTA label naming the rail (e.g. "Deposit with Apple Pay"). */
56
66
  submitLabel: string;
57
67
  /** Quick-amount presets in whole dollars; defaults to 10/20/50/100. */
@@ -71,6 +81,17 @@ export interface DepositAmountEntryConfig {
71
81
  /** Links back out to the host context (e.g. the profile page). */
72
82
  onPress?: () => void;
73
83
  };
84
+ /** Routes amount entry through the fiat backend. */
85
+ fiat?: FiatRailConfig;
86
+ }
87
+ /** The fiat onramp rail behind the V2 amount screen. */
88
+ export interface FiatRailConfig {
89
+ /** The rail quoted and fired, e.g. `apple_pay`. */
90
+ paymentMethod: string;
91
+ /** Token the fiat buys, as its ticker (e.g. `USDC`). */
92
+ cryptoCurrencyCode: string;
93
+ /** Destination chain id used for the quote. */
94
+ chainId: string;
74
95
  }
75
96
  /**
76
97
  * Data the managed deposit flow renders.
@@ -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,EAAE,MAAM,GAAG,SAAS,GACnC,2BAA2B,GAAG,SAAS,CAczC;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,0DAA0D;IAC1D,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC,uEAAuE;IACvE,OAAO,EAAE,MAAM,CAAA;I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C,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7C"}
@@ -3,9 +3,9 @@ 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 empty, or typing past `limitUsd` — answers with a
6
+ * refuses — deleting from zero, or typing past `limitUsd` — answers with a
7
7
  * side-to-side shake, a brief warning tint and a haptic instead of changing
8
- * the value.
8
+ * the value; a zero typed onto zero is a no-op that swells to acknowledge it.
9
9
  */
10
10
  export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd, }: {
11
11
  input: string;
@@ -14,10 +14,14 @@ export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd,
14
14
  limitUsd?: string;
15
15
  }): {
16
16
  hasWarning: boolean;
17
- shakeStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
18
- transform: {
17
+ feedbackStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
18
+ transform: ({
19
19
  translateX: number;
20
- }[];
20
+ scale?: undefined;
21
+ } | {
22
+ scale: number;
23
+ translateX?: undefined;
24
+ })[];
21
25
  }>;
22
26
  commitInput: (next: string) => void;
23
27
  handleNumpadKey: (key: NumpadKey) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAOrE;;;;;;;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;;;;;;;wBA+B4B,MAAM;2BAQH,SAAS;EASxC"}
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"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Press feedback for a control the design gives no pressed fill: it dips under
3
+ * the finger on press-in and springs back on press-out. Scale takes the label
4
+ * and any icon with it, which is what makes it read as one physical object.
5
+ *
6
+ * Reduced motion holds the control still — the press already commits something
7
+ * visible, so nothing is lost by dropping the dip.
8
+ */
9
+ export declare function usePressScale(): {
10
+ pressStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
11
+ transform: {
12
+ scale: number;
13
+ }[];
14
+ }>;
15
+ onPressIn: () => void;
16
+ onPressOut: () => void;
17
+ };
18
+ //# sourceMappingURL=usePressScale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePressScale.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePressScale.ts"],"names":[],"mappings":"AAeA;;;;;;;GAOG;AACH,wBAAgB,aAAa;;;;;;;;EAwB5B"}
@@ -18,6 +18,8 @@ export interface FunkitIdentity {
18
18
  prefillFiatEmail?: string;
19
19
  /** See {@link FunkitConfig.hideCryptoDeposit}. Defaulted to false here. */
20
20
  hideCryptoDeposit: boolean;
21
+ /** See {@link FunkitConfig.getAuthToken}. */
22
+ getAuthToken?: () => Promise<string>;
21
23
  }
22
24
  /**
23
25
  * Host-facing identity config, mirroring the identity-relevant subset of the
@@ -51,6 +53,14 @@ export interface FunkitConfig {
51
53
  * has no such option yet.
52
54
  */
53
55
  hideCryptoDeposit?: boolean;
56
+ /**
57
+ * Drop the "powered by Fun" mark from the foot of the flow. The design shows
58
+ * it by default; a host whose agreement covers unbranded use turns it off.
59
+ * Read through `useFunkitBranding`, not identity.
60
+ */
61
+ hideAttribution?: boolean;
62
+ /** Mints the short-lived user auth token required by fiat requests. */
63
+ getAuthToken?: () => Promise<string>;
54
64
  }
55
65
  /**
56
66
  * Stands in for `walletAddress` when the host supplies none. Not a valid
@@ -1 +1 @@
1
- {"version":3,"file":"IdentityContext.d.ts","sourceRoot":"","sources":["../../../src/identity/IdentityContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAA;AAIjE;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAA;IACrB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,2EAA2E;IAC3E,iBAAiB,EAAE,OAAO,CAAA;CAC3B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;A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AA;IACzB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;CACrC;AAgBD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,OAAO,CAAA;AASxC;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAQ1E;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,cAAc,CAchB;AAID,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,cAAc,CAAA;IACxB,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAMA;AAED,wBAAgB,iBAAiB,IAAI,cAAc,CAQlD"}
@@ -0,0 +1,10 @@
1
+ import type { LogRecord, LogTransport } from '@funkit/connect-core';
2
+ /**
3
+ * Minimal `LogTransport` that writes to `console`. Useful as a development
4
+ * sink (visible in Metro / Flipper) where shipping to Datadog isn't wanted.
5
+ * No-op-free and dependency-free.
6
+ */
7
+ export declare class ConsoleLogTransport implements LogTransport {
8
+ log({ level, title, context, error }: LogRecord): void;
9
+ }
10
+ //# sourceMappingURL=consoleLogTransport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consoleLogTransport.d.ts","sourceRoot":"","sources":["../../../src/logging/consoleLogTransport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnE;;;;GAIG;AACH,qBAAa,mBAAoB,YAAW,YAAY;IACtD,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,SAAS,GAAG,IAAI;CAgBvD"}
@@ -64,7 +64,7 @@ export interface FunkitProviderProps {
64
64
  */
65
65
  pasteFromClipboard?: ClipboardReader;
66
66
  /**
67
- * Blur behind the flow sheet's scrim. The SDK ships the scrim only (no native
67
+ * Blur behind the flow sheet's overlay. The SDK ships the overlay only (no native
68
68
  * blur dependency), so pass your own blur view — e.g.
69
69
  * `() => <BlurView style={StyleSheet.absoluteFill} />` — to complete the
70
70
  * design's blurred backdrop.
@@ -84,10 +84,11 @@ export interface FunkitProviderProps {
84
84
  * provider host apps mount around their tree.
85
85
  *
86
86
  * Composes the platform halves, mirroring the web `FunkitProvider` nesting
87
- * (Statsig flags → React Query → identity → theme → i18n → the managed flow). Statsig
88
- * stays outermost so flags are available everywhere; the deposit-flow query
89
- * hooks below it read identity from {@link FunkitIdentityProvider} and run on
90
- * the {@link QueryClientProvider}. Host integration stays a single
87
+ * (Statsig flags → React Query → identity → branding → theme → i18n → the
88
+ * managed flow). Statsig stays outermost so flags are available everywhere;
89
+ * the deposit-flow query hooks below it read identity from
90
+ * {@link FunkitIdentityProvider} and run on the {@link QueryClientProvider}.
91
+ * Host integration stays a single
91
92
  * `<FunkitProvider>`.
92
93
  */
93
94
  export declare function FunkitProvider({ children, config, walletAddress, queryClient, themes, colorScheme, debug, locale, copyToClipboard, pasteFromClipboard, renderBackdropBlur, hapticFeedback, }: FunkitProviderProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"FunkitProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAA;AACxE,OAAO,EAAE,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAA;AAGlE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE7C,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAK7E,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAA;IAC3C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC,aAAa,CAAC,CAAA;IACrD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,eAAe,CAAA;IACpC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IACzC;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC;AA8BD;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,MAAM,EACN,aAAa,EACb,WAAW,EACX,MAAM,EACN,WAAW,EACX,KAAoB,EACpB,MAAM,EACN,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,GACf,EAAE,mBAAmB,+BA6DrB"}
1
+ {"version":3,"file":"FunkitProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB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B,MAAM,EACN,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,GACf,EAAE,mBAAmB,+BA+DrB"}
@@ -0,0 +1,43 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { BackdropBlurRenderer } from '../flow/FlowSheet';
3
+ import { type ClipboardWriter, type SafeClipboardReader } from '../transfer/clipboard';
4
+ /**
5
+ * Host-injected, natively-backed abilities. The package ships no native modules
6
+ * of its own — each would cost consumers a rebuild and a peer-dep bump — so
7
+ * anything native-backed is handed in by the host and carried here, in reach of
8
+ * every screen rather than just where the host handed it in.
9
+ */
10
+ export interface NativeCapabilities {
11
+ /**
12
+ * Blur material for the flow's translucent surfaces. A drawer that opens over
13
+ * a translucent sheet needs the same blur behind it, and it is presented from
14
+ * a step several levels below the host. See {@link BackdropBlurRenderer}.
15
+ */
16
+ renderBackdropBlur?: BackdropBlurRenderer;
17
+ /**
18
+ * Clipboard write, host override or the bare-RN default. Unguarded: its
19
+ * `false`/throw is meaningful to callers that confirm the copy landed (see
20
+ * useCopyDepositAddress), so wrapping happens where the result is compared.
21
+ */
22
+ copyToClipboard?: ClipboardWriter;
23
+ /** Clipboard read, already guarded — a denied or failed read is `undefined`. */
24
+ pasteFromClipboard?: SafeClipboardReader;
25
+ }
26
+ /** {@link NativeCapabilities} with the package defaults filled in. */
27
+ export type ResolvedNativeCapabilities = NativeCapabilities & {
28
+ copyToClipboard: ClipboardWriter;
29
+ pasteFromClipboard: SafeClipboardReader;
30
+ };
31
+ export declare function NativeCapabilitiesProvider({ capabilities, children, }: {
32
+ capabilities: NativeCapabilities;
33
+ children: ReactNode;
34
+ }): import("react").JSX.Element;
35
+ /**
36
+ * The capabilities with the clipboard pair resolved to the bare-RN defaults, so
37
+ * a subtree rendered without the provider (unit tests, Storybook) still has a
38
+ * working clipboard. The blur has no package default — see the field's doc.
39
+ */
40
+ export declare function useNativeCapabilities(): ResolvedNativeCapabilities;
41
+ /** The host's blur renderer, or `undefined` when it supplied none. */
42
+ export declare function useBackdropBlur(): BackdropBlurRenderer | undefined;
43
+ //# sourceMappingURL=NativeCapabilitiesContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeCapabilitiesContext.d.ts","sourceRoot":"","sources":["../../../src/providers/NativeCapabilitiesContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAsC,MAAM,OAAO,CAAA;AAE1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,mBAAmB,EAIzB,MAAM,uBAAuB,CAAA;AAE9B;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IACzC;;;;OAIG;IACH,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,gFAAgF;IAChF,kBAAkB,CAAC,EAAE,mBAAmB,CAAA;CACzC;AAED,sEAAsE;AACtE,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,GAAG;IAC5D,eAAe,EAAE,eAAe,CAAA;IAChC,kBAAkB,EAAE,mBAAmB,CAAA;CACxC,CAAA;AAMD,wBAAgB,0BAA0B,CAAC,EACzC,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,YAAY,EAAE,kBAAkB,CAAA;IAChC,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAMA;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,0BAA0B,CAWlE;AAED,sEAAsE;AACtE,wBAAgB,eAAe,IAAI,oBAAoB,GAAG,SAAS,CAElE"}
@@ -0,0 +1,86 @@
1
+ import { type ReactNode } from 'react';
2
+ /**
3
+ * One selectable funding source in {@link AddMoneyScreen}. Brand icons are
4
+ * host-supplied (`icon` / `trailing`) so the package stays asset- and
5
+ * `react-native-svg`-free; the screen renders a themed circular slot for each.
6
+ */
7
+ export interface PaymentMethodOption {
8
+ /** Stable id passed back to `onSelectMethod`. */
9
+ id: string;
10
+ title: string;
11
+ /** Secondary line: balance, limit, timing, etc. */
12
+ subtitle?: string;
13
+ /** Leading icon, centered in the themed circle. */
14
+ icon?: ReactNode;
15
+ /** Trailing accessory, e.g. a token cluster for the Crypto row. */
16
+ trailing?: ReactNode;
17
+ }
18
+ /**
19
+ * One option in the "Deposit to" receive-token dropdown (Figma: Fun Mobile /
20
+ * Add money). Mirrors web's `ReceiveTokenDropdown` items. The icon is supplied
21
+ * by the flow (keeping this screen asset-free) and `label` is the composed
22
+ * destination text, e.g. `"USDG (Perps)"`.
23
+ */
24
+ export interface ReceiveTokenOption {
25
+ id: string;
26
+ label: string;
27
+ icon?: ReactNode;
28
+ }
29
+ export interface AddMoneyScreenProps {
30
+ methods: PaymentMethodOption[];
31
+ onSelectMethod: (id: string) => void;
32
+ title?: string;
33
+ /**
34
+ * Receive-token candidates shown in the "Deposit to" dropdown above the
35
+ * payment methods (web: `ReceiveTokenDropdown`). When set, the screen shows
36
+ * the dropdown + a "Pay with" section label. Omit to render just the
37
+ * methods list (back-compat with hosts that don't pass candidates).
38
+ */
39
+ receiveTokens?: ReceiveTokenOption[];
40
+ selectedReceiveTokenId?: string;
41
+ onSelectReceiveToken?: (id: string) => void;
42
+ depositToLabel?: string;
43
+ payWithLabel?: string;
44
+ /**
45
+ * Show the loading skeleton instead of the method list (Figma: Fun Mobile /
46
+ * Add money, loading). Set while the funding sources are still being fetched
47
+ * (e.g. the Swapped cash methods) so the list doesn't pop in row-by-row.
48
+ */
49
+ loading?: boolean;
50
+ /**
51
+ * Number of skeleton rows rendered while `loading`. Defaults to 5 when the
52
+ * deposit selector shows, 6 otherwise (it reclaims the selector's room).
53
+ */
54
+ skeletonCount?: number;
55
+ /**
56
+ * Show the error state instead of the list (Figma: Fun Mobile / Add money,
57
+ * error) — a "Something went wrong" message + a "Try again" button. Takes
58
+ * precedence over `loading`. Set when fetching the funding sources failed.
59
+ */
60
+ error?: boolean;
61
+ /** "Try again" handler shown with the error state. */
62
+ onRetry?: () => void;
63
+ errorTitle?: string;
64
+ errorMessage?: string;
65
+ retryLabel?: string;
66
+ /**
67
+ * Open the "Deposit to" dropdown on mount. For previews/tests of the expanded
68
+ * state (Figma node 11200:8055); hosts leave this `false` and let the user
69
+ * tap the trigger.
70
+ */
71
+ initialDropdownOpen?: boolean;
72
+ }
73
+ /**
74
+ * The "Add money" funding-source picker (Figma: Fun Mobile / Add money). A
75
+ * bottom-sheet-style surface — grabber + centered title + a scrollable list of
76
+ * payment methods — built from the connect-rn Restyle theme so it tracks the
77
+ * active light/dark scheme. Selecting a method (e.g. Crypto) routes the host to
78
+ * the next screen (Transfer/UDA).
79
+ *
80
+ * When `receiveTokens` are given, a fixed "Deposit to" selector sits above the
81
+ * scrollable list. Opening it floats the option list as an overlay (it does
82
+ * NOT reflow the list) over a dimming scrim — matching web's
83
+ * `ReceiveTokenDropdown`.
84
+ */
85
+ export declare function AddMoneyScreen({ methods, onSelectMethod, title, loading, skeletonCount, error, onRetry, errorTitle, errorMessage, retryLabel, receiveTokens, selectedReceiveTokenId, onSelectReceiveToken, depositToLabel, payWithLabel, initialDropdownOpen, }: AddMoneyScreenProps): import("react").JSX.Element;
86
+ //# sourceMappingURL=AddMoneyScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddMoneyScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/AddMoneyScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAA;AAyEnE;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mDAAmD;IACnD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;;GAKG;AACH,MA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en} — a member chain of the
3
+ * selected deposit network (e.g. Ethereum within the EVM group). The SDK
4
+ * derives these from the curated `tokentransferconfig` + `@funkit/chains`
5
+ * metadata + the `mintokentransfervalue` config (see `buildAvailableChains`).
6
+ */
7
+ export interface AvailableChain {
8
+ id: string;
9
+ /** Display name, e.g. `Ethereum`, `Binance Smart Chain`. */
10
+ name: string;
11
+ /** Full CDN logo URL for the 36px chain icon. */
12
+ iconUri: string;
13
+ /** Minimum-deposit label shown on the trailing side, e.g. `Min $10`. */
14
+ minLabel?: string;
15
+ }
16
+ /**
17
+ * The "Available {network} Chains" screen — reached by tapping the chain-logo
18
+ * cluster on the Transfer screen. An X-close + centered title bar, then a
19
+ * read-only list of the
20
+ * network's member chains with their minimum-deposit amounts. Presentational:
21
+ * the host supplies the chain rows.
22
+ */
23
+ export interface AvailableChainsScreenProps {
24
+ /** Network whose chains are listed; the title reads `Available {networkLabel}`. */
25
+ networkLabel: string;
26
+ chains: AvailableChain[];
27
+ loading?: boolean;
28
+ skeletonCount?: number;
29
+ onClose?: () => void;
30
+ }
31
+ export declare function AvailableChainsScreen(props: AvailableChainsScreenProps): import("react").JSX.Element;
32
+ //# sourceMappingURL=AvailableChainsScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvailableChainsScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/AvailableChainsScreen.tsx"],"names":[],"mappings":"AAyBA;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAA;IACZ,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAA;IACf,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,0BAA0B;IACzC,mFAAmF;IACnF,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,+BA0JtE"}
@@ -2,15 +2,14 @@ import { type ReactNode } from 'react';
2
2
  import { type AccountBalanceChipProps } from '../components/v2/AccountBalanceChip';
3
3
  import { type QuickAmountOption } from '../components/v2/QuickAmountsRow';
4
4
  /**
5
- * The fee split around its number, so the words hold still while the digits
6
- * roll: `{ before: '', amount: '$0.50', after: ' fee' }` in English; locales
7
- * that write the word first fill `before` instead.
5
+ * How much of the screen's foot the action area occupies — the fee line, the
6
+ * submit button and the keypad below them.
7
+ *
8
+ * A drawer opened from the fee line has to cover at least this, or the line
9
+ * that opened it sits stranded above its own drawer. Derived here rather than
10
+ * guessed by the caller, so the two can't drift apart.
8
11
  */
9
- export interface FeeLabelParts {
10
- before: string;
11
- amount: string;
12
- after: string;
13
- }
12
+ export declare function depositActionsHeight(insetBottom: number): number;
14
13
  export interface DepositAmountScreenProps {
15
14
  title: string;
16
15
  /** Brand glyph beside the title (host-supplied). */
@@ -24,15 +23,32 @@ export interface DepositAmountScreenProps {
24
23
  quickAmounts?: QuickAmountOption[];
25
24
  /** Hard input cap in dollars — the payment source's limit. */
26
25
  limitUsd?: string;
27
- /** The computed fee for the entered amount, split around the number. */
28
- fee?: FeeLabelParts;
26
+ /** The full fee line for the entered amount (e.g. `$0.50 fee`). */
27
+ fee?: string;
28
+ /**
29
+ * The shown fee no longer prices the current input (a keystroke invalidated
30
+ * the quote). The fee line fades out and stops answering taps until this
31
+ * clears with the next settled quote.
32
+ */
33
+ feePending?: boolean;
34
+ /**
35
+ * Opens the fee-details drawer. Omit to leave the fee line as plain text —
36
+ * the ⓘ then says there is more to read when there isn't.
37
+ */
38
+ onPressFee?: () => void;
39
+ /** Accessible name for the fee line's tap target. */
40
+ feeAccessibilityLabel?: string;
29
41
  /** Badge on the fee line's leading side (e.g. an Apple Pay mark). */
30
42
  methodBadge?: ReactNode;
31
43
  submitLabel: string;
32
44
  canSubmit: boolean;
33
45
  onSubmit: () => void;
46
+ /** Replaces the submit pill with provider UI. */
47
+ renderSubmit?: () => ReactNode;
34
48
  amountAccessibilityLabel: string;
35
49
  backspaceAccessibilityLabel: string;
50
+ /** Draw the "powered by Fun" mark at the screen's foot. */
51
+ showAttribution?: boolean;
36
52
  }
37
53
  /**
38
54
  * The V2 deposit surface: a full-height sheet where the amount is the whole
@@ -43,5 +59,5 @@ export interface DepositAmountScreenProps {
43
59
  * limit — answers with a side-to-side shake, a brief warning tint and a haptic
44
60
  * instead of changing the value.
45
61
  */
46
- export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, fee, methodBadge, submitLabel, canSubmit, onSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, }: DepositAmountScreenProps): import("react").JSX.Element;
62
+ export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
47
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,EAAE,MAAM,OAAO,CAAA;AAKtC,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAmCzC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd;AAED,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,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,0DAA0D;IAC1D,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAClC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,wEAAwE;IACxE,GAAG,CAAC,EAAE,aAAa,CAAA;IACnB,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,wBAAwB,EAAE,MAAM,CAAA;IAChC,2BAA2B,EAAE,MAAM,CAAA;CACpC;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,SAAS,EACT,cAAc,EACd,KAAK,EACL,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,GAAG,EACH,WAAW,EACX,WAAW,EACX,SAAS,EACT,QAAQ,EACR,wBAAwB,EACxB,2BAA2B,GAC5B,EAAE,wBAAwB,+BAyG1B"}
1
+ {"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAA;AAcjD,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAsBzC;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,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H1B"}
@@ -0,0 +1,36 @@
1
+ /** One `label · value` line of the breakdown. */
2
+ export interface FeeDetailsRow {
3
+ label: string;
4
+ value: string;
5
+ /**
6
+ * The summed line the rest add up to — set in the heavier cut, and the only
7
+ * row the design emphasises.
8
+ */
9
+ isTotal?: boolean;
10
+ }
11
+ export interface FeeDetailsScreenProps {
12
+ /**
13
+ * What the fees are and where they land, in prose. Omitted when the host
14
+ * hasn't named a payment method.
15
+ */
16
+ summary?: string;
17
+ rows: FeeDetailsRow[];
18
+ onClose: () => void;
19
+ /** Draw the "powered by Fun" mark (the drawer covers the screen's own). */
20
+ showAttribution?: boolean;
21
+ /**
22
+ * Floor for the drawer's height. It is content-sized, and short content would
23
+ * leave the fee line that opened it showing above its own drawer.
24
+ */
25
+ minHeight?: number;
26
+ }
27
+ /**
28
+ * The fee disclosure drawer. Opened from the fee line on the amount screen, it
29
+ * presents the transaction's top-level cost: a written summary of the fee, then
30
+ * the amount, the fee and what the two come to.
31
+ *
32
+ * Presented as a nested bottom sheet over the amount screen, so it is dismissed
33
+ * by swiping down, tapping the overlayFill, or its own close button.
34
+ */
35
+ export declare function FeeDetailsScreen({ summary, rows, onClose, showAttribution, minHeight, }: FeeDetailsScreenProps): import("react").JSX.Element;
36
+ //# sourceMappingURL=FeeDetailsScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeeDetailsScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/FeeDetailsScreen.tsx"],"names":[],"mappings":"AAyBA,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,2EAA2E;IAC3E,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,IAAI,EACJ,OAAO,EACP,eAAuB,EACvB,SAAS,GACV,EAAE,qBAAqB,+BA4CvB"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * One network in {@link NetworkSelector}. The leading glyph is built from chain
3
+ * logos (asset-free): a single entry renders one logo, several render a 2×2
4
+ * cluster (e.g. the EVM group).
5
+ */
6
+ export interface NetworkOption {
7
+ /** Stable id passed back to `onSelect` (e.g. the deposit-chain id). */
8
+ id: string;
9
+ /** Label shown when this network is selected, e.g. `"EVM Chains"`. */
10
+ label: string;
11
+ /**
12
+ * Chain logos — either CDN chain **keys** (e.g. `['ethereum']`) or full image
13
+ * **URLs** (`@funkit/chains` `iconUrl`s). One → single logo, several → a 2×2
14
+ * cluster.
15
+ */
16
+ iconKeys: string[];
17
+ }
18
+ export interface NetworkSelectorProps {
19
+ networks: NetworkOption[];
20
+ selectedId: string;
21
+ onSelect: (id: string) => void;
22
+ }
23
+ /**
24
+ * The Transfer Crypto network switcher (Figma: Fun Mobile / Transfer Crypto
25
+ * `selector-v2`). A pill-shaped segmented control: the selected network expands
26
+ * to a white pill with its glyph + label, the rest collapse to icon-only
27
+ * buttons. Built from the connect-rn Restyle theme; chain glyphs resolve from
28
+ * the CDN so the package stays asset-free.
29
+ */
30
+ export declare function NetworkSelector({ networks, selectedId, onSelect, }: NetworkSelectorProps): import("react").JSX.Element;
31
+ //# sourceMappingURL=NetworkSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NetworkSelector.d.ts","sourceRoot":"","sources":["../../../src/screens/NetworkSelector.tsx"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,uEAAuE;IACvE,EAAE,EAAE,MAAM,CAAA;IACV,sEAAsE;IACtE,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAOD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,aAAa,EAAE,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAC/B;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,UAAU,EACV,QAAQ,GACT,EAAE,oBAAoB,+BA+EtB"}
@@ -0,0 +1,19 @@
1
+ import type { DestinationChain } from '../withdrawal/useWithdrawalDestinationTokens';
2
+ export interface SelectDestinationScreenProps {
3
+ chains: DestinationChain[];
4
+ /** Chain logo URL by chain id, supplied by the flow to keep this asset-free. */
5
+ chainIconUri: (chainId: number) => string;
6
+ chainName: (chainId: number) => string;
7
+ selectedChainId?: string;
8
+ selectedSymbol?: string;
9
+ onSelect: (chainId: number, symbol: string) => void;
10
+ onBack: () => void;
11
+ loading?: boolean;
12
+ }
13
+ /**
14
+ * Pick what the withdrawal is received as. Grouped by chain, because the same
15
+ * symbol on two chains is two different destinations and the pair is what the
16
+ * quote is priced against.
17
+ */
18
+ export declare function SelectDestinationScreen({ chains, chainIconUri, chainName, selectedChainId, selectedSymbol, onSelect, onBack, loading, }: SelectDestinationScreenProps): import("react").JSX.Element;
19
+ //# sourceMappingURL=SelectDestinationScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectDestinationScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectDestinationScreen.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAA;AAEpF,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAC1B,gFAAgF;IAChF,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAA;IACzC,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAA;IACtC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACnD,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,YAAY,EACZ,SAAS,EACT,eAAe,EACf,cAAc,EACd,QAAQ,EACR,MAAM,EACN,OAAO,GACR,EAAE,4BAA4B,+BA+H9B"}
@@ -0,0 +1,20 @@
1
+ import type { WithdrawCtaBlocker } from '../withdrawal/validation';
2
+ export interface WithdrawCryptoCtaProps {
3
+ /** What the user has left to fix, or `undefined` when the form is complete. */
4
+ blocker: WithdrawCtaBlocker | undefined;
5
+ /**
6
+ * Whether the form may submit, decided by the caller — a complete form is not
7
+ * a submittable one, and the async verdicts that settle it (risk screening, a
8
+ * priced quote) are the caller's to hold.
9
+ */
10
+ canSubmit: boolean;
11
+ /** A quote or screening is in flight; the form is valid but not yet priced. */
12
+ isLoading: boolean;
13
+ onPress: () => void;
14
+ }
15
+ /**
16
+ * The form's submit button. It doubles as the validation summary: the label
17
+ * names the single thing left to fix, so the form needs no inline error list.
18
+ */
19
+ export declare function WithdrawCryptoCta({ blocker, canSubmit, isLoading, onPress, }: WithdrawCryptoCtaProps): import("react").JSX.Element;
20
+ //# sourceMappingURL=WithdrawCryptoCta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawCryptoCta.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoCta.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAElE,MAAM,WAAW,sBAAsB;IACrC,+EAA+E;IAC/E,OAAO,EAAE,kBAAkB,GAAG,SAAS,CAAA;IACvC;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB,+EAA+E;IAC/E,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,SAAS,EACT,SAAS,EACT,OAAO,GACR,EAAE,sBAAsB,+BAoCxB"}
@@ -0,0 +1,28 @@
1
+ import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from '../flow/withdrawalFlowConfig';
2
+ /**
3
+ * The send-to-address form: what the user has typed, and the host config it is
4
+ * read against. The destination picker and the fee summary land in the parts
5
+ * that follow.
6
+ */
7
+ export declare function WithdrawCryptoForm({ config, callbacks, title, quoteInputFeeTokens, extraSourceGasUsd, onBack, onSubmitted, }: {
8
+ config: WithdrawalFlowConfig;
9
+ callbacks: WithdrawalFlowCallbacks;
10
+ title: string;
11
+ /**
12
+ * A flat fee the venue takes off the withdrawal before it is quoted, in
13
+ * source-token units, or 0. The SDK only knows the number, never who charges
14
+ * it.
15
+ */
16
+ quoteInputFeeTokens: number;
17
+ /**
18
+ * A venue fee billed as source-chain gas, in USD, for the summary's network
19
+ * row, or 0.
20
+ */
21
+ extraSourceGasUsd: number;
22
+ onBack: () => void;
23
+ onSubmitted: (result: {
24
+ txHash: string;
25
+ amountLabel: string;
26
+ }) => void;
27
+ }): import("react").JSX.Element;
28
+ //# sourceMappingURL=WithdrawCryptoForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawCryptoForm.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoForm.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAqCrC;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,SAAS,EACT,KAAK,EACL,mBAAmB,EACnB,iBAAiB,EACjB,MAAM,EACN,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,WAAW,EAAE,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACvE,+BA+UA"}