@funkit/connect-rn 3.5.0 → 3.7.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 (159) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/README.md +81 -0
  3. package/dist/chunk-VDKAH5Y5.js +1433 -0
  4. package/dist/chunk-VDKAH5Y5.js.map +7 -0
  5. package/dist/clients/lighter/index.d.ts +7 -0
  6. package/dist/clients/lighter/index.d.ts.map +1 -0
  7. package/dist/clients/lighter/lighterFastWithdrawal.d.ts +42 -0
  8. package/dist/clients/lighter/lighterFastWithdrawal.d.ts.map +1 -0
  9. package/dist/clients/lighter/lighterWithdrawalConfig.d.ts +70 -0
  10. package/dist/clients/lighter/lighterWithdrawalConfig.d.ts.map +1 -0
  11. package/dist/clients/lighter/useLighterSecureWithdrawal.d.ts +42 -0
  12. package/dist/clients/lighter/useLighterSecureWithdrawal.d.ts.map +1 -0
  13. package/dist/clients/lighter/useLighterUnstakedFee.d.ts +15 -0
  14. package/dist/clients/lighter/useLighterUnstakedFee.d.ts.map +1 -0
  15. package/dist/clients/lighter/useLighterWithdrawal.d.ts +21 -0
  16. package/dist/clients/lighter/useLighterWithdrawal.d.ts.map +1 -0
  17. package/dist/clients/lighter/useLighterWithdrawalMethods.d.ts +29 -0
  18. package/dist/clients/lighter/useLighterWithdrawalMethods.d.ts.map +1 -0
  19. package/dist/clients/lighter.d.ts +1 -0
  20. package/dist/clients/lighter.js +448 -0
  21. package/dist/clients/lighter.js.map +7 -0
  22. package/dist/index.d.ts +2 -1
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +7278 -6356
  25. package/dist/index.js.map +4 -4
  26. package/dist/src/components/AmountDisplay.d.ts +18 -0
  27. package/dist/src/components/AmountDisplay.d.ts.map +1 -0
  28. package/dist/src/components/AssetGrid.d.ts +39 -0
  29. package/dist/src/components/AssetGrid.d.ts.map +1 -0
  30. package/dist/src/components/NumPad.d.ts +14 -0
  31. package/dist/src/components/NumPad.d.ts.map +1 -0
  32. package/dist/src/components/PillButton.d.ts +25 -0
  33. package/dist/src/components/PillButton.d.ts.map +1 -0
  34. package/dist/src/components/ReceiveAmountSummary.d.ts +27 -0
  35. package/dist/src/components/ReceiveAmountSummary.d.ts.map +1 -0
  36. package/dist/src/components/ReceiveAsRow.d.ts +14 -0
  37. package/dist/src/components/ReceiveAsRow.d.ts.map +1 -0
  38. package/dist/src/components/SearchInput.d.ts +15 -0
  39. package/dist/src/components/SearchInput.d.ts.map +1 -0
  40. package/dist/src/components/SelectableAssetRow.d.ts +14 -0
  41. package/dist/src/components/SelectableAssetRow.d.ts.map +1 -0
  42. package/dist/src/components/SheetContent.d.ts +25 -0
  43. package/dist/src/components/SheetContent.d.ts.map +1 -0
  44. package/dist/src/components/SkeletonBar.d.ts +10 -0
  45. package/dist/src/components/SkeletonBar.d.ts.map +1 -0
  46. package/dist/src/components/TopBar.d.ts +12 -0
  47. package/dist/src/components/TopBar.d.ts.map +1 -0
  48. package/dist/src/components/WalletAddressInput.d.ts +35 -0
  49. package/dist/src/components/WalletAddressInput.d.ts.map +1 -0
  50. package/dist/src/components/WithdrawSourceCard.d.ts +23 -0
  51. package/dist/src/components/WithdrawSourceCard.d.ts.map +1 -0
  52. package/dist/src/flow/DepositFlowContent.d.ts +19 -0
  53. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -0
  54. package/dist/src/flow/FlowSheet.d.ts +3 -1
  55. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  56. package/dist/src/flow/FunkitFlowProvider.d.ts +18 -2
  57. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  58. package/dist/src/flow/WithdrawalFlowContent.d.ts +21 -0
  59. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -0
  60. package/dist/src/flow/useCopiedToast.d.ts +18 -0
  61. package/dist/src/flow/useCopiedToast.d.ts.map +1 -0
  62. package/dist/src/flow/withdrawalFlowConfig.d.ts +39 -0
  63. package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
  64. package/dist/src/haptics/HapticsContext.d.ts +21 -0
  65. package/dist/src/haptics/HapticsContext.d.ts.map +1 -0
  66. package/dist/src/haptics/hapticTap.d.ts +13 -0
  67. package/dist/src/haptics/hapticTap.d.ts.map +1 -0
  68. package/dist/src/hooks/useIsStablecoin.d.ts +3 -0
  69. package/dist/src/hooks/useIsStablecoin.d.ts.map +1 -0
  70. package/dist/src/hooks/useNestedSheet.d.ts +17 -0
  71. package/dist/src/hooks/useNestedSheet.d.ts.map +1 -0
  72. package/dist/src/hooks/useNestedSheetHeight.d.ts +7 -0
  73. package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -0
  74. package/dist/src/hooks/usePulse.d.ts +7 -0
  75. package/dist/src/hooks/usePulse.d.ts.map +1 -0
  76. package/dist/src/icons/FigmaSystemIcons.d.ts +2 -0
  77. package/dist/src/icons/FigmaSystemIcons.d.ts.map +1 -1
  78. package/dist/src/icons/FunIcon.d.ts +5 -2
  79. package/dist/src/icons/FunIcon.d.ts.map +1 -1
  80. package/dist/src/icons/TokenChainIcon.d.ts +6 -1
  81. package/dist/src/icons/TokenChainIcon.d.ts.map +1 -1
  82. package/dist/src/identity/IdentityContext.d.ts +12 -2
  83. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  84. package/dist/src/providers/FunkitProvider.d.ts +17 -2
  85. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  86. package/dist/src/screens/SelectChainScreen.d.ts.map +1 -1
  87. package/dist/src/screens/SelectMethodScreen.d.ts.map +1 -1
  88. package/dist/src/screens/SelectReceiveTokenAndChainScreen.d.ts +18 -0
  89. package/dist/src/screens/SelectReceiveTokenAndChainScreen.d.ts.map +1 -0
  90. package/dist/src/screens/SelectReceiveTokenScreen.d.ts +13 -0
  91. package/dist/src/screens/SelectReceiveTokenScreen.d.ts.map +1 -0
  92. package/dist/src/screens/SelectSourceTokenScreen.d.ts +16 -0
  93. package/dist/src/screens/SelectSourceTokenScreen.d.ts.map +1 -0
  94. package/dist/src/screens/TransactionBreakdownScreen.d.ts +12 -0
  95. package/dist/src/screens/TransactionBreakdownScreen.d.ts.map +1 -0
  96. package/dist/src/screens/WithdrawAddressScreen.d.ts +48 -0
  97. package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -0
  98. package/dist/src/screens/WithdrawAmountScreen.d.ts +53 -0
  99. package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -0
  100. package/dist/src/screens/WithdrawCompleteScreen.d.ts +15 -4
  101. package/dist/src/screens/WithdrawCompleteScreen.d.ts.map +1 -1
  102. package/dist/src/screens/WithdrawCryptoComplete.d.ts +8 -1
  103. package/dist/src/screens/WithdrawCryptoComplete.d.ts.map +1 -1
  104. package/dist/src/screens/WithdrawCryptoSteps.d.ts +39 -0
  105. package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -0
  106. package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
  107. package/dist/src/swapped/SwappedScreenShell.d.ts +2 -1
  108. package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
  109. package/dist/src/swapped/SwappedWithdrawScreen.d.ts.map +1 -1
  110. package/dist/src/transfer/clipboard.d.ts +22 -0
  111. package/dist/src/transfer/clipboard.d.ts.map +1 -1
  112. package/dist/src/utils/amountGlyphs.d.ts +15 -0
  113. package/dist/src/utils/amountGlyphs.d.ts.map +1 -0
  114. package/dist/src/utils/assetGrid.d.ts +20 -0
  115. package/dist/src/utils/assetGrid.d.ts.map +1 -0
  116. package/dist/src/utils/executionErrorMessage.d.ts +13 -0
  117. package/dist/src/utils/executionErrorMessage.d.ts.map +1 -0
  118. package/dist/src/utils/formatAmount.d.ts +21 -0
  119. package/dist/src/utils/formatAmount.d.ts.map +1 -0
  120. package/dist/src/utils/motion.d.ts +3 -0
  121. package/dist/src/utils/motion.d.ts.map +1 -0
  122. package/dist/src/utils/numpadInput.d.ts +14 -0
  123. package/dist/src/utils/numpadInput.d.ts.map +1 -0
  124. package/dist/src/utils/safeArea.d.ts +3 -0
  125. package/dist/src/utils/safeArea.d.ts.map +1 -0
  126. package/dist/src/withdrawal/receiveDestination.d.ts +11 -0
  127. package/dist/src/withdrawal/receiveDestination.d.ts.map +1 -0
  128. package/dist/src/withdrawal/sourceToken.d.ts +4 -11
  129. package/dist/src/withdrawal/sourceToken.d.ts.map +1 -1
  130. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts +8 -2
  131. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
  132. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +89 -0
  133. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -0
  134. package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts +37 -0
  135. package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts.map +1 -0
  136. package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -1
  137. package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts +20 -0
  138. package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts.map +1 -0
  139. package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts +38 -0
  140. package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts.map +1 -0
  141. package/dist/src/withdrawal/useWithdrawalRisk.d.ts +2 -2
  142. package/dist/src/withdrawal/useWithdrawalRisk.d.ts.map +1 -1
  143. package/dist/src/withdrawal/useWithdrawalStatus.d.ts +6 -2
  144. package/dist/src/withdrawal/useWithdrawalStatus.d.ts.map +1 -1
  145. package/dist/src/withdrawal/validation.d.ts +24 -6
  146. package/dist/src/withdrawal/validation.d.ts.map +1 -1
  147. package/package.json +12 -3
  148. package/dist/src/components/AmountInput.d.ts +0 -40
  149. package/dist/src/components/AmountInput.d.ts.map +0 -1
  150. package/dist/src/components/WithdrawFeeSummary.d.ts +0 -17
  151. package/dist/src/components/WithdrawFeeSummary.d.ts.map +0 -1
  152. package/dist/src/screens/SelectDestinationScreen.d.ts +0 -19
  153. package/dist/src/screens/SelectDestinationScreen.d.ts.map +0 -1
  154. package/dist/src/screens/WithdrawCryptoCta.d.ts +0 -20
  155. package/dist/src/screens/WithdrawCryptoCta.d.ts.map +0 -1
  156. package/dist/src/screens/WithdrawCryptoForm.d.ts +0 -17
  157. package/dist/src/screens/WithdrawCryptoForm.d.ts.map +0 -1
  158. package/dist/src/screens/WithdrawCryptoScreen.d.ts +0 -17
  159. package/dist/src/screens/WithdrawCryptoScreen.d.ts.map +0 -1
@@ -0,0 +1,18 @@
1
+ export interface AmountDisplayProps {
2
+ /** The typed amount, or `''` for the placeholder. */
3
+ value: string;
4
+ /** Written before the number. */
5
+ prefix?: string;
6
+ /** Tints the amount, matching the message that replaces the balance line. */
7
+ hasError?: boolean;
8
+ accessibilityLabel: string;
9
+ }
10
+ /**
11
+ * The withdrawal amount, read-only and driven by the numpad — it looks like a
12
+ * field but isn't one, so tapping it must not open a keyboard.
13
+ *
14
+ * Each character is its own node so it can move on its own: digits rise into the
15
+ * number and drop back out, while the placeholder lifts off the top instead.
16
+ */
17
+ export declare function AmountDisplay({ value, prefix, hasError, accessibilityLabel, }: AmountDisplayProps): import("react").JSX.Element;
18
+ //# sourceMappingURL=AmountDisplay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AmountDisplay.d.ts","sourceRoot":"","sources":["../../../src/components/AmountDisplay.tsx"],"names":[],"mappings":"AA0CA,MAAM,WAAW,kBAAkB;IACjC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAA;IACb,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,MAAY,EACZ,QAAgB,EAChB,kBAAkB,GACnB,EAAE,kBAAkB,+BA0EpB"}
@@ -0,0 +1,39 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface AssetGridItemProps {
3
+ /** A token symbol, or a chain id. */
4
+ id: string;
5
+ /** Size it with `ASSET_GRID_AVATAR_SIZE`. */
6
+ icon: ReactNode;
7
+ label: string;
8
+ selected: boolean;
9
+ /** Offered but not pickable, e.g. a chain that doesn't carry the picked token. */
10
+ unsupported?: boolean;
11
+ onPress: () => void;
12
+ /** Defaults to `label`. */
13
+ accessibilityLabel?: string;
14
+ }
15
+ export interface AssetGridOverflow {
16
+ /** Reads as a count, e.g. `+7 tokens`. */
17
+ label: string;
18
+ onPress: () => void;
19
+ accessibilityLabel: string;
20
+ }
21
+ export interface AssetGridProps {
22
+ /** Section header, e.g. "Select token". */
23
+ title: string;
24
+ items: AssetGridItemProps[];
25
+ /** The `+N tokens ›` row. Omit when nothing is hidden. */
26
+ overflow?: AssetGridOverflow;
27
+ }
28
+ /**
29
+ * A titled grid of asset cells, five to a row, over an optional row leading to the
30
+ * ones that didn't fit.
31
+ *
32
+ * Chunked into explicit rows of flexed columns, not wrapped on percentage widths:
33
+ * Android rounds a percentage up to the nearest physical pixel, so five 20% cells
34
+ * overflow their row and the fifth wraps.
35
+ */
36
+ export declare function AssetGrid({ title, items, overflow }: AssetGridProps): import("react").JSX.Element;
37
+ /** One cell of the grid (Figma `icon/crypto-token` + its label). */
38
+ export declare function AssetGridItem({ icon, label, selected, unsupported, onPress, accessibilityLabel, }: AssetGridItemProps): import("react").JSX.Element;
39
+ //# sourceMappingURL=AssetGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssetGrid.d.ts","sourceRoot":"","sources":["../../../src/components/AssetGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAetC,MAAM,WAAW,kBAAkB;IACjC,qCAAqC;IACrC,EAAE,EAAE,MAAM,CAAA;IACV,6CAA6C;IAC7C,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,kFAAkF;IAClF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,2BAA2B;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,cAAc;IAC7B,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,kBAAkB,EAAE,CAAA;IAC3B,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC7B;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,cAAc,+BAqDnE;AAED,oEAAoE;AACpE,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,WAAmB,EACnB,OAAO,EACP,kBAAkB,GACnB,EAAE,kBAAkB,+BAkFpB"}
@@ -0,0 +1,14 @@
1
+ import type { NumpadKey } from '../utils/numpadInput';
2
+ export interface NumPadProps {
3
+ onPressKey: (key: NumpadKey) => void;
4
+ /** The delete key carries a glyph, so its label can't come from the key. */
5
+ backspaceAccessibilityLabel: string;
6
+ }
7
+ /**
8
+ * The withdrawal amount keypad. Both dimensions come from the container, so
9
+ * the keys grow with the device rather than leaving a void above them.
10
+ *
11
+ * Emits keys rather than a value: `applyNumpadKey` owns the grammar.
12
+ */
13
+ export declare function NumPad({ onPressKey, backspaceAccessibilityLabel, }: NumPadProps): import("react").JSX.Element;
14
+ //# sourceMappingURL=NumPad.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumPad.d.ts","sourceRoot":"","sources":["../../../src/components/NumPad.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAgBrD,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,IAAI,CAAA;IACpC,4EAA4E;IAC5E,2BAA2B,EAAE,MAAM,CAAA;CACpC;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,EACrB,UAAU,EACV,2BAA2B,GAC5B,EAAE,WAAW,+BA6Cb"}
@@ -0,0 +1,25 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { FunkitTheme } from '../theme/toRestyleTheme';
3
+ export type PillButtonSize = Extract<keyof FunkitTheme['sizes'], `button${string}`>;
4
+ export type PillButtonVariant = 'primary' | 'secondary';
5
+ export interface PillButtonProps {
6
+ label: string;
7
+ onPress: () => void;
8
+ /** Leading content inside the pill, e.g. a 16px icon. */
9
+ icon?: ReactNode;
10
+ size?: PillButtonSize;
11
+ /** `secondary` is the quieter fill used for side-by-side actions. */
12
+ variant?: PillButtonVariant;
13
+ /** `element` squares the corners off where the design butts the button
14
+ * against a card of the same radius. */
15
+ radius?: Extract<keyof FunkitTheme['borderRadii'], 'button' | 'element'>;
16
+ disabled?: boolean;
17
+ /** Defaults to `label`. */
18
+ accessibilityLabel?: string;
19
+ }
20
+ /**
21
+ * The full-width primary action at the foot of a sheet — Confirm, Cancel, Done.
22
+ * Width comes from the container, so callers control the horizontal inset.
23
+ */
24
+ export declare function PillButton({ label, onPress, icon, size, variant, radius, disabled, accessibilityLabel, }: PillButtonProps): import("react").JSX.Element;
25
+ //# sourceMappingURL=PillButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PillButton.d.ts","sourceRoot":"","sources":["../../../src/components/PillButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D,MAAM,MAAM,cAAc,GAAG,OAAO,CAClC,MAAM,WAAW,CAAC,OAAO,CAAC,EAC1B,SAAS,MAAM,EAAE,CAClB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,WAAW,CAAA;AAEvD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,yDAAyD;IACzD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,qEAAqE;IACrE,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B;6CACyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,WAAW,CAAC,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAA;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2BAA2B;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,OAAO,EACP,IAAI,EACJ,IAAiB,EACjB,OAAmB,EACnB,MAAiB,EACjB,QAAgB,EAChB,kBAAkB,GACnB,EAAE,eAAe,+BA+CjB"}
@@ -0,0 +1,27 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface ReceiveAmountSummaryProps {
3
+ /** Sits above the label, e.g. the settled state's check. */
4
+ icon?: ReactNode;
5
+ /** Names what the figure is, e.g. `You'll receive`. */
6
+ label: string;
7
+ /**
8
+ * The figure the screen leads with, in the user's currency. `undefined` until
9
+ * the quote settles, which is what the placeholders stand in for.
10
+ */
11
+ usdLabel: string | undefined;
12
+ /** The same amount in the token that arrives, e.g. `99.78 USDC`. */
13
+ tokenLabel: string | undefined;
14
+ /**
15
+ * Whether a missing figure is still on its way. `false` leaves its place
16
+ * empty: once the figures are frozen a placeholder would never resolve.
17
+ */
18
+ isQuotePending?: boolean;
19
+ /** Opens the breakdown. Omit to drop the affordance with it. */
20
+ onPressBreakdown?: () => void;
21
+ }
22
+ /**
23
+ * What the withdrawal lands as: the figure, and the token it arrives in. The
24
+ * screen's centrepiece once there is a quote to show.
25
+ */
26
+ export declare function ReceiveAmountSummary({ icon, label, usdLabel, tokenLabel, isQuotePending, onPressBreakdown, }: ReceiveAmountSummaryProps): import("react").JSX.Element;
27
+ //# sourceMappingURL=ReceiveAmountSummary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReceiveAmountSummary.d.ts","sourceRoot":"","sources":["../../../src/components/ReceiveAmountSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AA0BtC,MAAM,WAAW,yBAAyB;IACxC,4DAA4D;IAC5D,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,oEAAoE;IACpE,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,gEAAgE;IAChE,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,UAAU,EACV,cAAqB,EACrB,gBAAgB,GACjB,EAAE,yBAAyB,+BAiE3B"}
@@ -0,0 +1,14 @@
1
+ import type { WithdrawalToken } from '../flow/withdrawalFlowConfig';
2
+ export interface ReceiveAsRowProps {
3
+ /** The picked destination, or `undefined` while the list is resolving. */
4
+ destinationToken: WithdrawalToken | undefined;
5
+ /** Opens the receive-token picker. */
6
+ onPress: () => void;
7
+ }
8
+ /**
9
+ * What the withdrawal is received as, and the way to change it. Shared by the
10
+ * screens that show it — the row is the same on both, and a second copy is how
11
+ * the label and the token/chain wording drift apart.
12
+ */
13
+ export declare function ReceiveAsRow({ destinationToken, onPress }: ReceiveAsRowProps): import("react").JSX.Element;
14
+ //# sourceMappingURL=ReceiveAsRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReceiveAsRow.d.ts","sourceRoot":"","sources":["../../../src/components/ReceiveAsRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAKnE,MAAM,WAAW,iBAAiB;IAChC,0EAA0E;IAC1E,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;IAC7C,sCAAsC;IACtC,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAAE,gBAAgB,EAAE,OAAO,EAAE,EAAE,iBAAiB,+BAwB5E"}
@@ -0,0 +1,15 @@
1
+ export interface SearchInputProps {
2
+ value: string;
3
+ onChangeValue: (value: string) => void;
4
+ placeholder: string;
5
+ accessibilityLabel: string;
6
+ }
7
+ /**
8
+ * A single-line filter field for long pick lists.
9
+ *
10
+ * Uses gorhom's `BottomSheetTextInput`, so the screen hosting it must set
11
+ * `keyboardAvoidEnabled` on `FlowSheet` — gorhom's native avoidance is inert
12
+ * under `enableDynamicSizing` (see `useKeyboardHeight`).
13
+ */
14
+ export declare function SearchInput({ value, onChangeValue, placeholder, accessibilityLabel, }: SearchInputProps): import("react").JSX.Element;
15
+ //# sourceMappingURL=SearchInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,aAAa,EACb,WAAW,EACX,kBAAkB,GACnB,EAAE,gBAAgB,+BAyClB"}
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface SelectableAssetRowProps {
3
+ name: string;
4
+ /** The 36px leading avatar — a token, a chain, or a token-on-chain pair. */
5
+ icon: ReactNode;
6
+ selected: boolean;
7
+ /** Offered but not pickable, e.g. a chain that doesn't carry the picked token. */
8
+ disabled?: boolean;
9
+ onPress: () => void;
10
+ accessibilityLabel: string;
11
+ }
12
+ /** One row of a token or chain pick list (Figma `list-item/base`). */
13
+ export declare function SelectableAssetRow({ name, icon, selected, disabled, onPress, accessibilityLabel, }: SelectableAssetRowProps): import("react").JSX.Element;
14
+ //# sourceMappingURL=SelectableAssetRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectableAssetRow.d.ts","sourceRoot":"","sources":["../../../src/components/SelectableAssetRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,4EAA4E;IAC5E,IAAI,EAAE,SAAS,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED,sEAAsE;AACtE,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,QAAgB,EAChB,OAAO,EACP,kBAAkB,GACnB,EAAE,uBAAuB,+BAqCzB"}
@@ -0,0 +1,25 @@
1
+ import type { ReactNode } from 'react';
2
+ /**
3
+ * Sizing props for a `BottomSheetModal`; `topInset` stays with the caller.
4
+ * A gorhom scrollable reports its content height as the sheet's, chrome
5
+ * excluded, so screens with one take a detent and set their own height —
6
+ * matching whatever `topInset` the caller pairs this with.
7
+ */
8
+ export declare function sheetSizing({ fullHeight }: {
9
+ fullHeight: boolean;
10
+ }): {
11
+ enableDynamicSizing: boolean;
12
+ snapPoints: string[];
13
+ } | {
14
+ enableDynamicSizing: boolean;
15
+ snapPoints?: undefined;
16
+ };
17
+ /**
18
+ * Only a hug-content screen is wrapped: `BottomSheetView` measures it, but also
19
+ * registers it as a static view, which over-drags the sheet on first touch.
20
+ */
21
+ export declare function SheetContent({ fullHeight, children, }: {
22
+ fullHeight: boolean;
23
+ children: ReactNode;
24
+ }): import("react").JSX.Element;
25
+ //# sourceMappingURL=SheetContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SheetContent.d.ts","sourceRoot":"","sources":["../../../src/components/SheetContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE;;;;;;EAIlE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,UAAU,EACV,QAAQ,GACT,EAAE;IACD,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAKA"}
@@ -0,0 +1,10 @@
1
+ export interface SkeletonBarProps {
2
+ /** Sized to the text it stands in for, so nothing moves when the value lands. */
3
+ width: number;
4
+ height: number;
5
+ /** The design rounds a text-height bar at 4, and a display-sized one further. */
6
+ borderRadius?: number;
7
+ }
8
+ /** A value that hasn't arrived yet. */
9
+ export declare function SkeletonBar({ width, height, borderRadius, }: SkeletonBarProps): import("react").JSX.Element;
10
+ //# sourceMappingURL=SkeletonBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SkeletonBar.d.ts","sourceRoot":"","sources":["../../../src/components/SkeletonBar.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,gBAAgB;IAC/B,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,iFAAiF;IACjF,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,uCAAuC;AACvC,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,MAAM,EACN,YAAgB,GACjB,EAAE,gBAAgB,+BAelB"}
@@ -0,0 +1,12 @@
1
+ export interface TopBarProps {
2
+ title: string;
3
+ /** Pops the screen. Omit at the root of a flow. */
4
+ onBack?: () => void;
5
+ /** Ends the flow. Omit where this screen can't be abandoned. */
6
+ onClose?: () => void;
7
+ }
8
+ /**
9
+ * The sheet's header: back, title, close.
10
+ */
11
+ export declare function TopBar({ title, onBack, onClose }: TopBarProps): import("react").JSX.Element;
12
+ //# sourceMappingURL=TopBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../../src/components/TopBar.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,WAAW,+BAwC7D"}
@@ -0,0 +1,35 @@
1
+ export interface WalletAddressInputProps {
2
+ value: string;
3
+ onChangeText: (value: string) => void;
4
+ /**
5
+ * Whether what has been typed is an address at all. `undefined` while the
6
+ * field is empty, where the design shows no verdict either way.
7
+ */
8
+ isAddress: boolean | undefined;
9
+ /** Fills the field from the clipboard. */
10
+ onPaste: () => void;
11
+ /**
12
+ * A clipboard read is out. The read can block for seconds on the OS
13
+ * permission prompt, so Paste is held down until it lands rather than letting
14
+ * a second tap queue a second read.
15
+ */
16
+ isPasting?: boolean;
17
+ /**
18
+ * Fills the field with the connected wallet's own address. Omit to drop the
19
+ * shortcut (see `disableConnectedWallet` on the flow config).
20
+ */
21
+ onUseConnected?: () => void;
22
+ /** A reason the address can't be used, past being well-formed. */
23
+ errorText?: string;
24
+ /** Non-blocking caution, e.g. a flagged-address notice. */
25
+ warningText?: string;
26
+ }
27
+ /**
28
+ * The recipient field: the address, its verdict, and the two ways to fill it.
29
+ *
30
+ * `Paste` is the primary action while the field is empty — an address is pasted
31
+ * far more often than typed — and gives way to the quieter pair once there is
32
+ * something to clear.
33
+ */
34
+ export declare function WalletAddressInput({ value, onChangeText, isAddress, onPaste, isPasting, onUseConnected, errorText, warningText, }: WalletAddressInputProps): import("react").JSX.Element;
35
+ //# sourceMappingURL=WalletAddressInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WalletAddressInput.d.ts","sourceRoot":"","sources":["../../../src/components/WalletAddressInput.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC;;;OAGG;IACH,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,0CAA0C;IAC1C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,YAAY,EACZ,SAAS,EACT,OAAO,EACP,SAAiB,EACjB,cAAc,EACd,SAAS,EACT,WAAW,GACZ,EAAE,uBAAuB,+BAiIzB"}
@@ -0,0 +1,23 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface WithdrawSourceCardProps {
3
+ /** The 36px token-on-chain avatar. */
4
+ icon: ReactNode;
5
+ /** The source as the host names it, e.g. `USDC (Perps)`. */
6
+ title: string;
7
+ /** The spendable balance, already grouped and denominated. */
8
+ subtitle?: string;
9
+ useMaxLabel: string;
10
+ /** Omitted once an amount is typed, or when no balance is known. */
11
+ onUseMax?: () => void;
12
+ /** Omitted when the host offers a single source — nothing to pick. */
13
+ onPress?: () => void;
14
+ accessibilityLabel: string;
15
+ /** Squares the foot of the card off for the button that overlaps it. */
16
+ attachedToButton?: boolean;
17
+ }
18
+ /**
19
+ * What the withdrawal is drawn from, sitting above the keypad: the source
20
+ * token, its balance, and the shortcut that spends all of it.
21
+ */
22
+ export declare function WithdrawSourceCard({ icon, title, subtitle, useMaxLabel, onUseMax, onPress, accessibilityLabel, attachedToButton, }: WithdrawSourceCardProps): import("react").JSX.Element;
23
+ //# sourceMappingURL=WithdrawSourceCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawSourceCard.d.ts","sourceRoot":"","sources":["../../../src/components/WithdrawSourceCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAqBtC,MAAM,WAAW,uBAAuB;IACtC,sCAAsC;IACtC,IAAI,EAAE,SAAS,CAAA;IACf,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAA;IACb,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,OAAO,EACP,kBAAkB,EAClB,gBAAwB,GACzB,EAAE,uBAAuB,+BAkGzB"}
@@ -0,0 +1,19 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { ClipboardWriter } from '../transfer/clipboard';
3
+ import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
4
+ import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
5
+ /**
6
+ * The live flow body. Drives the deposit-address + QR generation
7
+ * ({@link useTokenTransfer}) for the open flow and renders the active screen
8
+ * with the resolved data. Kept separate from the provider so its
9
+ * hooks run only while the modal is open (it isn't mounted when closed).
10
+ */
11
+ export declare function FlowContent({ config, current, nav, copyToClipboard, onCopySuccess, callbacks, }: {
12
+ config: DepositFlowConfig;
13
+ current: FlowScreen | undefined;
14
+ nav: FlowNav;
15
+ copyToClipboard: ClipboardWriter;
16
+ onCopySuccess: () => void;
17
+ callbacks: DepositFlowCallbacks;
18
+ }): ReactNode;
19
+ //# sourceMappingURL=DepositFlowContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAA;AAiCxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAS5D,OAAO,KAAK,EAEV,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAwB/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,OAAO,EACP,GAAG,EACH,eAAe,EACf,aAAa,EACb,SAAS,GACV,EAAE;IACD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,eAAe,EAAE,eAAe,CAAA;IAChC,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CAgOZ"}
@@ -28,6 +28,8 @@ export interface FlowSheetProps {
28
28
  */
29
29
  keyboardAvoidEnabled?: boolean;
30
30
  enableSwipeToDismiss?: boolean;
31
+ /** Let the sheet reach the top of the screen for a screen that is a full window tall. */
32
+ fullHeight?: boolean;
31
33
  /** Optional blur behind the scrim. See {@link BackdropBlurRenderer}. */
32
34
  renderBackdropBlur?: BackdropBlurRenderer;
33
35
  }
@@ -41,7 +43,7 @@ export interface FlowSheetProps {
41
43
  * `react-native-gesture-handler`, `react-native-reanimated`) and a
42
44
  * `<GestureHandlerRootView>` at the app root.
43
45
  */
44
- export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, renderBackdropBlur, }: FlowSheetProps): import("react").JSX.Element;
46
+ export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, fullHeight, renderBackdropBlur, }: FlowSheetProps): import("react").JSX.Element;
45
47
  /**
46
48
  * Sheet surface for the flow modal. gorhom sizes the sheet body to its content,
47
49
  * so a flat background fills only the content area; over-dragging the sheet
@@ -1 +1 @@
1
- {"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAEd,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;AAO7B;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,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C1C;AAQD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,EAC3B,UAAkB,EAClB,kBAAkB,GACnB,EAAE,cAAc,+BAmIhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,KAAK,GACN,EAAE,0BAA0B,+BAgB5B"}
@@ -1,8 +1,9 @@
1
1
  import { type ReactNode } from 'react';
2
- import { type ClipboardWriter } from '../transfer/clipboard';
2
+ import { type ClipboardReader, type ClipboardWriter } from '../transfer/clipboard';
3
3
  import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
4
4
  import { type BackdropBlurRenderer } from './FlowSheet';
5
5
  import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawalFlowConfig';
6
+ export type FlowScreen = 'addMoney' | 'transfer' | 'swapped' | 'withdrawMethod' | 'withdrawAmount' | 'withdrawAddress' | 'withdrawReceiveToken' | 'withdrawComplete';
6
7
  interface FunkitFlowContextValue {
7
8
  /** Open the managed deposit flow at the Add money screen. */
8
9
  beginDeposit: (config: DepositFlowConfig, callbacks?: DepositFlowCallbacks) => void;
@@ -11,16 +12,31 @@ interface FunkitFlowContextValue {
11
12
  /** Close the flow. */
12
13
  closeFlow: () => void;
13
14
  }
15
+ export interface FlowNav {
16
+ navigate: (s: FlowScreen) => void;
17
+ back: () => void;
18
+ /** Replace the whole stack with a single screen (never closes the sheet). */
19
+ reset: (s: FlowScreen) => void;
20
+ /**
21
+ * Pop back to `s`, however many screens deep it is — what `back` can't do once
22
+ * a step lands between two that navigate to each other. A no-op when `s` isn't
23
+ * on the stack.
24
+ */
25
+ popTo: (s: FlowScreen) => void;
26
+ closeFlow: () => void;
27
+ }
14
28
  /**
15
29
  * Mounts the managed deposit-flow modal and exposes `beginDeposit` to
16
30
  * {@link useFunkitCheckout}. The five screens are rendered + navigated here
17
31
  * (host apps never render them directly), mirroring how `@funkit/connect`'s
18
32
  * `FunkitProvider` owns the checkout modal.
19
33
  */
20
- export declare function FunkitFlowProvider({ children, copyToClipboard, renderBackdropBlur, }: {
34
+ export declare function FunkitFlowProvider({ children, copyToClipboard, pasteFromClipboard, renderBackdropBlur, }: {
21
35
  children: ReactNode;
22
36
  /** Host clipboard override; defaults to the bare-RN clipboard peer. */
23
37
  copyToClipboard?: ClipboardWriter;
38
+ /** Host clipboard-read override; defaults to the bare-RN clipboard peer. */
39
+ pasteFromClipboard?: ClipboardReader;
24
40
  /** Host blur under the sheet's scrim. See {@link BackdropBlurRenderer}. */
25
41
  renderBackdropBlur?: BackdropBlurRenderer;
26
42
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,SAAS,EASf,MAAM,OAAO,CAAA;AAiCd,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,uBAAuB,CAAA;AAmB9B,OAAO,KAAK,EAEV,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,KAAK,oBAAoB,EAG1B,MAAM,aAAa,CAAA;AAMpB,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAiD/B,UAAU,sBAAsB;IAC9B,6DAA6D;IAC7D,YAAY,EAAE,CACZ,MAAM,EAAE,iBAAiB,EACzB,SAAS,CAAC,EAAE,oBAAoB,KAC7B,IAAI,CAAA;IACT,oEAAoE;IACpE,eAAe,EAAE,CACf,MAAM,EAAE,oBAAoB,EAC5B,SAAS,CAAC,EAAE,uBAAuB,KAChC,IAAI,CAAA;IACT,sBAAsB;IACtB,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAYD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAA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A;IAChB,6EAA6E;IAC7E,KAAK,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC9B;;;;OAIG;IACH,KAAK,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC9B,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,eAAwC,EACxC,kBAA8C,EAC9C,kBAAkB,GACnB,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,uEAAuE;IACvE,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,4EAA4E;IAC5E,kBAAkB,CAAC,EAAE,eAAe,CAAA;IACpC,2EAA2E;IAC3E,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;CAC1C,+BAkKA;AAID,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
@@ -0,0 +1,21 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { SafeClipboardReader } from '../transfer/clipboard';
3
+ import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
4
+ import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawalFlowConfig';
5
+ /**
6
+ * The live withdrawal-flow body (Swapped fiat offramp): payout-method list →
7
+ * the Swapped sell embed → on a validated order, the on-chain leg
8
+ * ({@link useWithdrawalExecution}) delivers the exact ordered amount to
9
+ * Swapped's deposit address through the host wallet. Sibling of the deposit
10
+ * FlowContent, mounted only while a withdrawal flow is open so its
11
+ * queries run only then.
12
+ */
13
+ export declare function WithdrawalFlowContent({ config, callbacks, current, nav, pasteFromClipboard, }: {
14
+ config: WithdrawalFlowConfig;
15
+ callbacks: WithdrawalFlowCallbacks;
16
+ current: FlowScreen | undefined;
17
+ nav: FlowNav;
18
+ /** Fills the recipient field on the address step. Guarded upstream. */
19
+ pasteFromClipboard: SafeClipboardReader;
20
+ }): ReactNode;
21
+ //# sourceMappingURL=WithdrawalFlowContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAiB7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAW/B;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,EACH,kBAAkB,GACnB,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,uEAAuE;IACvE,kBAAkB,EAAE,mBAAmB,CAAA;CACxC,GAAG,SAAS,CAyOZ"}
@@ -0,0 +1,18 @@
1
+ import { type ReactNode } from 'react';
2
+ interface CopiedToast {
3
+ /** The overlay to render; caller owns only where it sits in the tree. */
4
+ toast: ReactNode;
5
+ showCopiedToast: () => void;
6
+ clearToast: () => void;
7
+ }
8
+ /**
9
+ * The "Address copied" toast: its timing state and the overlay that shows it.
10
+ *
11
+ * Two pieces of state: `copiedToastShown` drives the pill's mount (its
12
+ * reanimated enter/exit plays on mount/unmount), and `toastMounted` keeps
13
+ * the overlay mounted across the pill's exit animation so the fade-out
14
+ * isn't cut off by tearing the View down on the same frame.
15
+ */
16
+ export declare function useCopiedToast(): CopiedToast;
17
+ export {};
18
+ //# sourceMappingURL=useCopiedToast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCopiedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/useCopiedToast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAA;AAoBhF,UAAU,WAAW;IACnB,yEAAyE;IACzE,KAAK,EAAE,SAAS,CAAA;IAChB,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,IAAI,WAAW,CA4C5C"}
@@ -1,10 +1,24 @@
1
1
  import type { SwappedSellOrderData, WithdrawalClient } from '@funkit/connect-core';
2
+ import type { ReactNode } from 'react';
2
3
  import type { Address } from 'viem';
3
4
  /**
4
5
  * A token in a withdrawal — the source the user sells, or the token Swapped
5
6
  * accepts on-chain. `decimals` only matters for the accepted token (skips an
6
7
  * on-chain read during execution).
7
8
  */
9
+ /**
10
+ * One selectable withdrawal method. The user picks it on the method screen and
11
+ * `config` is what the flow then runs — a concrete config, never one that
12
+ * carries `methods` itself.
13
+ */
14
+ export interface WithdrawalMethodOption {
15
+ /** Stable id, also used for tracking. */
16
+ id: string;
17
+ title: string;
18
+ subtitle?: string;
19
+ icon?: ReactNode;
20
+ config: WithdrawalFlowConfig;
21
+ }
8
22
  export interface WithdrawalToken {
9
23
  /** Numeric chain id as a string (web-aligned, e.g. `'8453'`). */
10
24
  chainId: string;
@@ -60,6 +74,12 @@ export interface WithdrawalFlowConfig {
60
74
  getMinWithdrawalAmount?: (params: WithdrawalSourceTokenParams) => number;
61
75
  /** Crypto rail: maximum withdrawal in USD. Unlimited when omitted. */
62
76
  getMaxWithdrawalUSD?: (params: WithdrawalSourceTokenParams) => number;
77
+ /**
78
+ * Ceiling in source-token units. Takes priority over `getMaxWithdrawalUSD`,
79
+ * which needs a resolvable spot price and so goes unenforced for a source the
80
+ * price API doesn't know (an L2 balance addressed by index, say).
81
+ */
82
+ getMaxWithdrawalAmount?: (params: WithdrawalSourceTokenParams) => number;
63
83
  /** Crypto rail: token symbol to preselect as the destination. */
64
84
  defaultReceiveToken?: string;
65
85
  /**
@@ -81,6 +101,25 @@ export interface WithdrawalFlowConfig {
81
101
  withdrawalWallet: WithdrawalClient;
82
102
  /** Sheet title; defaults to 'Withdraw'. */
83
103
  title?: string;
104
+ /**
105
+ * Replaces the single crypto row on the method screen with a choice of
106
+ * methods, each running its own config. Built by a client module (see
107
+ * `@funkit/connect-rn/clients/*`) so no venue is named here; the fields above
108
+ * still describe the Swapped offramp.
109
+ */
110
+ methods?: WithdrawalMethodOption[];
111
+ /**
112
+ * Flat fee in source-token units taken from the amount **before** quoting, so
113
+ * the quote prices what the venue will actually move. It changes the amount,
114
+ * not the fee summary.
115
+ */
116
+ quoteInputFeeTokens?: number;
117
+ /**
118
+ * A fee the venue bills as source-chain gas, in USD, added to the summary's
119
+ * network cost. Leave it unset when the quote's own gas figure already carries
120
+ * the fee, or the row counts it twice.
121
+ */
122
+ extraSourceGasUsd?: number;
84
123
  /**
85
124
  * Spendable source balance in **USD**. The SDK caps the Swapped sell to it
86
125
  * (USD→EUR via live rates) and blocks cash methods below Swapped's minimum.
@@ -1 +1 @@
1
- {"version":3,"file":"withdrawalFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/withdrawalFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,qDAAqD;IACrD,MAAM,EAAE,MAAM,CAAA;IACd,sEAAsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,eAAe,CAAA;IACtB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAA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AW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACzD;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACjE;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACzD"}
@@ -0,0 +1,21 @@
1
+ import { type ReactNode } from 'react';
2
+ /**
3
+ * A short tactile tap confirming a discrete input, such as a keypad press.
4
+ *
5
+ * Taps are part of the design rather than a garnish, so the SDK provides them
6
+ * itself from the optional `react-native-haptic-feedback` peer — see
7
+ * {@link hapticTap}. Hosts on another module (`expo-haptics` in Expo Go), or
8
+ * wanting silence, pass their own through `FunkitProvider`.
9
+ */
10
+ export type HapticFeedback = () => void | Promise<void>;
11
+ export declare function FunkitHapticsProvider({ hapticFeedback, children, }: {
12
+ hapticFeedback?: HapticFeedback;
13
+ children: ReactNode;
14
+ }): import("react").JSX.Element;
15
+ /**
16
+ * Fire-and-forget haptics. A host's native module must never take a keypress
17
+ * down with it, so a throw or a rejection is swallowed — the key still registers
18
+ * and the amount still changes.
19
+ */
20
+ export declare function useHapticFeedback(): () => void;
21
+ //# sourceMappingURL=HapticsContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HapticsContext.d.ts","sourceRoot":"","sources":["../../../src/haptics/HapticsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA0C,MAAM,OAAO,CAAA;AAK9E;;;;;;;GAOG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AAIvD,wBAAgB,qBAAqB,CAAC,EACpC,cAA0B,EAC1B,QAAQ,GACT,EAAE;IACD,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAMA;AAMD;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,IAAI,CAiB9C"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Default haptics: lazily loads the optional `react-native-haptic-feedback`
3
+ * peer and taps through it. A host without it taps silently; one that wants a
4
+ * different module passes it to `FunkitProvider` as `hapticFeedback` instead —
5
+ * which is what an Expo Go app does, since it can only link Expo's own modules.
6
+ *
7
+ * The import is dynamic and inside a `try`, which is what makes the peer
8
+ * genuinely optional: Metro marks a dependency optional when its import can
9
+ * reject, and skips it at resolution rather than failing the bundle. It also
10
+ * keeps the native module unevaluated until a tap actually happens.
11
+ */
12
+ export declare function hapticTap(): Promise<void>;
13
+ //# sourceMappingURL=hapticTap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hapticTap.d.ts","sourceRoot":"","sources":["../../../src/haptics/hapticTap.ts"],"names":[],"mappings":"AASA;;;;;;;;;;GAUG;AACH,wBAAsB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAI/C"}