@funkit/connect-rn 3.3.0 → 3.5.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 (107) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/index.d.ts +2 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +3654 -1430
  5. package/dist/index.js.map +4 -4
  6. package/dist/src/components/AmountInput.d.ts +40 -0
  7. package/dist/src/components/AmountInput.d.ts.map +1 -0
  8. package/dist/src/components/Grabber.d.ts +8 -0
  9. package/dist/src/components/Grabber.d.ts.map +1 -0
  10. package/dist/src/components/RecipientAddressInput.d.ts +28 -0
  11. package/dist/src/components/RecipientAddressInput.d.ts.map +1 -0
  12. package/dist/src/components/ScrollFade.d.ts +26 -0
  13. package/dist/src/components/ScrollFade.d.ts.map +1 -0
  14. package/dist/src/components/SelectedChainRow.d.ts +16 -0
  15. package/dist/src/components/SelectedChainRow.d.ts.map +1 -0
  16. package/dist/src/components/WithdrawFeeSummary.d.ts +17 -0
  17. package/dist/src/components/WithdrawFeeSummary.d.ts.map +1 -0
  18. package/dist/src/flow/FlowSheet.d.ts +10 -1
  19. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  20. package/dist/src/flow/FunkitFlowProvider.d.ts +4 -1
  21. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  22. package/dist/src/flow/depositFlowConfig.d.ts +4 -12
  23. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  24. package/dist/src/flow/guardHostCallbacks.d.ts +11 -0
  25. package/dist/src/flow/guardHostCallbacks.d.ts.map +1 -0
  26. package/dist/src/flow/selectedChainStorage.d.ts +4 -0
  27. package/dist/src/flow/selectedChainStorage.d.ts.map +1 -0
  28. package/dist/src/flow/useKeyboardHeight.d.ts +4 -10
  29. package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
  30. package/dist/src/flow/withdrawalFlowConfig.d.ts +61 -9
  31. package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
  32. package/dist/src/geo/useUserIpInfo.d.ts.map +1 -1
  33. package/dist/src/icons/ChainAvatar.d.ts +12 -0
  34. package/dist/src/icons/ChainAvatar.d.ts.map +1 -0
  35. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  36. package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
  37. package/dist/src/logging/serializeLogBatch.d.ts +9 -0
  38. package/dist/src/logging/serializeLogBatch.d.ts.map +1 -0
  39. package/dist/src/providers/FunkitProvider.d.ts +9 -1
  40. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  41. package/dist/src/screens/QrCodeScreen.d.ts.map +1 -1
  42. package/dist/src/screens/SelectChainScreen.d.ts +27 -0
  43. package/dist/src/screens/SelectChainScreen.d.ts.map +1 -0
  44. package/dist/src/screens/SelectDestinationScreen.d.ts +19 -0
  45. package/dist/src/screens/SelectDestinationScreen.d.ts.map +1 -0
  46. package/dist/src/screens/SelectMethodScreen.d.ts +11 -0
  47. package/dist/src/screens/SelectMethodScreen.d.ts.map +1 -1
  48. package/dist/src/screens/TransferCryptoScreen.d.ts +13 -20
  49. package/dist/src/screens/TransferCryptoScreen.d.ts.map +1 -1
  50. package/dist/src/screens/WithdrawCompleteScreen.d.ts +17 -0
  51. package/dist/src/screens/WithdrawCompleteScreen.d.ts.map +1 -0
  52. package/dist/src/screens/WithdrawCryptoComplete.d.ts +16 -0
  53. package/dist/src/screens/WithdrawCryptoComplete.d.ts.map +1 -0
  54. package/dist/src/screens/WithdrawCryptoCta.d.ts +20 -0
  55. package/dist/src/screens/WithdrawCryptoCta.d.ts.map +1 -0
  56. package/dist/src/screens/WithdrawCryptoForm.d.ts +17 -0
  57. package/dist/src/screens/WithdrawCryptoForm.d.ts.map +1 -0
  58. package/dist/src/screens/WithdrawCryptoScreen.d.ts +17 -0
  59. package/dist/src/screens/WithdrawCryptoScreen.d.ts.map +1 -0
  60. package/dist/src/screens/WithdrawMethodScreen.d.ts +2 -0
  61. package/dist/src/screens/WithdrawMethodScreen.d.ts.map +1 -1
  62. package/dist/src/theme/buildFunkitTheme.d.ts +1 -0
  63. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  64. package/dist/src/theme/restyle.d.ts +33 -0
  65. package/dist/src/theme/restyle.d.ts.map +1 -1
  66. package/dist/src/theme/toRestyleTheme.d.ts +3 -0
  67. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  68. package/dist/src/theme/tokens.d.ts +6 -0
  69. package/dist/src/theme/tokens.d.ts.map +1 -1
  70. package/dist/src/transfer/availableChains.d.ts +15 -22
  71. package/dist/src/transfer/availableChains.d.ts.map +1 -1
  72. package/dist/src/transfer/hooks/useCopyDepositAddress.d.ts +17 -0
  73. package/dist/src/transfer/hooks/useCopyDepositAddress.d.ts.map +1 -0
  74. package/dist/src/transfer/hooks/useLighterDepositRecipientOverride.d.ts +23 -0
  75. package/dist/src/transfer/hooks/useLighterDepositRecipientOverride.d.ts.map +1 -0
  76. package/dist/src/transfer/hooks/useTransferInit.d.ts +3 -2
  77. package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
  78. package/dist/src/utils/chainDisplay.d.ts +8 -0
  79. package/dist/src/utils/chainDisplay.d.ts.map +1 -0
  80. package/dist/src/utils/customers.d.ts +1 -0
  81. package/dist/src/utils/customers.d.ts.map +1 -1
  82. package/dist/src/withdrawal/sourceToken.d.ts +17 -0
  83. package/dist/src/withdrawal/sourceToken.d.ts.map +1 -0
  84. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts +44 -0
  85. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -0
  86. package/dist/src/withdrawal/useCryptoWithdrawalQuote.d.ts +42 -0
  87. package/dist/src/withdrawal/useCryptoWithdrawalQuote.d.ts.map +1 -0
  88. package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts +24 -0
  89. package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -0
  90. package/dist/src/withdrawal/useSourceTokenDecimals.d.ts +13 -0
  91. package/dist/src/withdrawal/useSourceTokenDecimals.d.ts.map +1 -0
  92. package/dist/src/withdrawal/useWithdrawalDestinationTokens.d.ts +32 -0
  93. package/dist/src/withdrawal/useWithdrawalDestinationTokens.d.ts.map +1 -0
  94. package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
  95. package/dist/src/withdrawal/useWithdrawalRisk.d.ts +16 -0
  96. package/dist/src/withdrawal/useWithdrawalRisk.d.ts.map +1 -0
  97. package/dist/src/withdrawal/useWithdrawalStatus.d.ts +31 -0
  98. package/dist/src/withdrawal/useWithdrawalStatus.d.ts.map +1 -0
  99. package/dist/src/withdrawal/validation.d.ts +48 -0
  100. package/dist/src/withdrawal/validation.d.ts.map +1 -0
  101. package/package.json +3 -3
  102. package/dist/src/screens/AvailableChainsScreen.d.ts +0 -32
  103. package/dist/src/screens/AvailableChainsScreen.d.ts.map +0 -1
  104. package/dist/src/screens/NetworkSelector.d.ts +0 -31
  105. package/dist/src/screens/NetworkSelector.d.ts.map +0 -1
  106. package/dist/src/withdrawal/publicClient.d.ts +0 -10
  107. package/dist/src/withdrawal/publicClient.d.ts.map +0 -1
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Keep only what a decimal amount can contain: digits and a single decimal
3
+ * point. Normalised rather than trusted — a `decimal-pad` emits the locale's
4
+ * separator (`,` across much of Europe) and a paste bypasses the keypad.
5
+ *
6
+ * Separators are read by shape, not by locale, so `1.000,50` and `1,000.50`
7
+ * both give 1000.50:
8
+ * - A lone separator is the decimal point. A pasted `1,000` therefore reads as
9
+ * one — ambiguous by construction, and the field echoes what we read.
10
+ * - Grouping needs triples throughout AND one separator character, which is
11
+ * what tells `1,000,123` (a million) from `1,000.123` (a thousand).
12
+ * - Anything else is a mistyped decimal (`1.5.`): the first separator stands.
13
+ */
14
+ export declare function sanitizeDecimalInput(raw: string): string;
15
+ export interface AmountInputProps {
16
+ /** Amount in the source token's units, as typed. */
17
+ value: string;
18
+ onChangeValue: (value: string) => void;
19
+ /** Rendered beside the amount, e.g. `USDC`. */
20
+ tokenSymbol: string;
21
+ /** Spendable balance line under the amount, e.g. `120.5 USDC available`. */
22
+ balanceLabel?: string;
23
+ /** Fills the field with the whole balance. Omit to hide the button. */
24
+ onPressMax?: () => void;
25
+ maxLabel?: string;
26
+ /** Shown in place of the balance line; also tints the amount. */
27
+ errorText?: string;
28
+ autoFocus?: boolean;
29
+ }
30
+ /**
31
+ * The withdrawal amount field: a large amount that behaves like a display but
32
+ * is editable, with the balance and a Max shortcut underneath.
33
+ *
34
+ * Uses gorhom's `BottomSheetTextInput`, but the sheet is lifted by
35
+ * `FlowSheet`'s own spacer — gorhom's native avoidance is inert under
36
+ * `enableDynamicSizing` (see `useKeyboardHeight`), so the screen hosting this
37
+ * must set `keyboardAvoidEnabled`.
38
+ */
39
+ export declare function AmountInput({ value, onChangeValue, tokenSymbol, balanceLabel, onPressMax, maxLabel, errorText, autoFocus, }: AmountInputProps): import("react").JSX.Element;
40
+ //# sourceMappingURL=AmountInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AmountInput.d.ts","sourceRoot":"","sources":["../../../src/components/AmountInput.tsx"],"names":[],"mappings":"AAKA;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAiBxD;AAUD,MAAM,WAAW,gBAAgB;IAC/B,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,+CAA+C;IAC/C,WAAW,EAAE,MAAM,CAAA;IACnB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,aAAa,EACb,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,SAAS,EACT,SAAS,GACV,EAAE,gBAAgB,+BAwElB"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The bottom-sheet drag affordance. Absolutely positioned so each top bar lays
3
+ * out its own content independently. Sheets rendering this must pass
4
+ * `handleComponent={null}` to gorhom, or its default handle draws a second
5
+ * grabber above it.
6
+ */
7
+ export declare function Grabber(): import("react").JSX.Element;
8
+ //# sourceMappingURL=Grabber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Grabber.d.ts","sourceRoot":"","sources":["../../../src/components/Grabber.tsx"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,OAAO,gCAiBtB"}
@@ -0,0 +1,28 @@
1
+ export interface RecipientAddressInputProps {
2
+ /** Section label above the field, e.g. `Send to`. */
3
+ label: string;
4
+ value: string;
5
+ onChangeText: (value: string) => void;
6
+ placeholder: string;
7
+ /**
8
+ * Fills the field with the connected wallet's own address. Omit to hide the
9
+ * shortcut (see `disableConnectedWallet` on the flow config).
10
+ */
11
+ onUseConnectedWallet?: () => void;
12
+ useConnectedWalletLabel?: string;
13
+ /** Blocking problem — tints the border and replaces the helper line. */
14
+ errorText?: string;
15
+ /** Non-blocking caution, e.g. a flagged-address notice. */
16
+ warningText?: string;
17
+ }
18
+ /**
19
+ * The withdrawal recipient field. Addresses are long and usually pasted, so the
20
+ * field wraps to a second line rather than scrolling a single line sideways.
21
+ *
22
+ * Uses gorhom's `BottomSheetTextInput`, but the sheet is lifted by
23
+ * `FlowSheet`'s own spacer — gorhom's native avoidance is inert under
24
+ * `enableDynamicSizing` (see `useKeyboardHeight`), so the screen hosting this
25
+ * must set `keyboardAvoidEnabled`.
26
+ */
27
+ export declare function RecipientAddressInput({ label, value, onChangeText, placeholder, onUseConnectedWallet, useConnectedWalletLabel, errorText, warningText, }: RecipientAddressInputProps): import("react").JSX.Element;
28
+ //# sourceMappingURL=RecipientAddressInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecipientAddressInput.d.ts","sourceRoot":"","sources":["../../../src/components/RecipientAddressInput.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,0BAA0B;IACzC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAA;IACjC,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,wEAAwE;IACxE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,KAAK,EACL,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,uBAAuB,EACvB,SAAS,EACT,WAAW,GACZ,EAAE,0BAA0B,+BAgF5B"}
@@ -0,0 +1,26 @@
1
+ import type { LayoutChangeEvent, NativeScrollEvent, NativeSyntheticEvent } from 'react-native';
2
+ /**
3
+ * Fades a scrolling list into the modal surface at one edge. Uses
4
+ * react-native-svg since RN has no CSS gradient. Pair with
5
+ * `useScrollEdgeFades` to decide when each edge shows.
6
+ */
7
+ export declare function ScrollFade({ edge, color, id, }: {
8
+ edge: 'top' | 'bottom';
9
+ color: string;
10
+ /** Gradient id prefix — must be unique per screen on one mounted tree. */
11
+ id: string;
12
+ }): import("react").JSX.Element;
13
+ /**
14
+ * Tracks which edges of a `ScrollView` still have content beyond them, for
15
+ * `ScrollFade`. Spread `scrollProps` onto the `ScrollView`.
16
+ */
17
+ export declare function useScrollEdgeFades(): {
18
+ showTopFade: boolean;
19
+ showBottomFade: boolean;
20
+ scrollProps: {
21
+ onScroll: (e: NativeSyntheticEvent<NativeScrollEvent>) => void;
22
+ onLayout: (e: LayoutChangeEvent) => void;
23
+ onContentSizeChange: (_w: number, h: number) => void;
24
+ };
25
+ };
26
+ //# sourceMappingURL=ScrollFade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollFade.d.ts","sourceRoot":"","sources":["../../../src/components/ScrollFade.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,cAAc,CAAA;AAUrB;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,KAAK,EACL,EAAE,GACH,EAAE;IACD,IAAI,EAAE,KAAK,GAAG,QAAQ,CAAA;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,0EAA0E;IAC1E,EAAE,EAAE,MAAM,CAAA;CACX,+BAiCA;AAED;;;GAGG;AACH,wBAAgB,kBAAkB;;;;sBAcX,oBAAoB,CAAC,iBAAiB,CAAC;sBAIvC,iBAAiB;kCAIL,MAAM,KAAK,MAAM;;EAiBnD"}
@@ -0,0 +1,16 @@
1
+ export interface SelectedChainRowProps {
2
+ /** Section label above the chain name, e.g. `Selected chain`. */
3
+ label: string;
4
+ /** The chain's display name, e.g. `Base`. */
5
+ name: string;
6
+ /** Full CDN logo URL for the 32px chain icon. */
7
+ iconUri: string;
8
+ accessibilityLabel: string;
9
+ onPress?: () => void;
10
+ }
11
+ /**
12
+ * The tappable "Selected chain" card on the Transfer screen. Shows the chain the
13
+ * deposit address was generated for and opens the chain picker to change it.
14
+ */
15
+ export declare function SelectedChainRow({ label, name, iconUri, accessibilityLabel, onPress, }: SelectedChainRowProps): import("react").JSX.Element;
16
+ //# sourceMappingURL=SelectedChainRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectedChainRow.d.ts","sourceRoot":"","sources":["../../../src/components/SelectedChainRow.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,qBAAqB;IACpC,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAA;IACb,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAA;IACZ,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAA;IACf,kBAAkB,EAAE,MAAM,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,IAAI,EACJ,OAAO,EACP,kBAAkB,EAClB,OAAO,GACR,EAAE,qBAAqB,+BAwCvB"}
@@ -0,0 +1,17 @@
1
+ import type { FeeBreakdownV2 } from '@funkit/api-base';
2
+ export interface WithdrawFeeSummaryProps {
3
+ /** Absent until a quote arrives — which is not the same as costing nothing. */
4
+ fees: FeeBreakdownV2 | undefined;
5
+ /** Destination-token amount the recipient receives. */
6
+ receiveAmount: string | undefined;
7
+ destinationSymbol: string;
8
+ isLoading?: boolean;
9
+ /** Quote failed — the rows would all read zero, so say so instead. */
10
+ errorText?: string;
11
+ }
12
+ /**
13
+ * What the withdrawal costs, mirroring web's `PaymentFeesSummary` rows: what
14
+ * arrives, network cost, price impact, and the slippage floor.
15
+ */
16
+ export declare function WithdrawFeeSummary({ fees, receiveAmount, destinationSymbol, isLoading, errorText, }: WithdrawFeeSummaryProps): import("react").JSX.Element;
17
+ //# sourceMappingURL=WithdrawFeeSummary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawFeeSummary.d.ts","sourceRoot":"","sources":["../../../src/components/WithdrawFeeSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAMtD,MAAM,WAAW,uBAAuB;IACtC,+EAA+E;IAC/E,IAAI,EAAE,cAAc,GAAG,SAAS,CAAA;IAChC,uDAAuD;IACvD,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAQD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,SAAS,GACV,EAAE,uBAAuB,+BAiEzB"}
@@ -1,5 +1,12 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type BottomSheetBackgroundProps } from '@gorhom/bottom-sheet';
3
+ /**
4
+ * Host-supplied blur laid under the sheet's scrim. The package ships no blur
5
+ * module of its own — every option is native, so it would cost consumers a
6
+ * rebuild and a peer-dep bump. Rendered into a full-bleed container, so
7
+ * `flex: 1` or `StyleSheet.absoluteFill` fills the screen.
8
+ */
9
+ export type BackdropBlurRenderer = () => ReactNode;
3
10
  export interface FlowSheetProps {
4
11
  isOpen: boolean;
5
12
  /**
@@ -21,6 +28,8 @@ export interface FlowSheetProps {
21
28
  */
22
29
  keyboardAvoidEnabled?: boolean;
23
30
  enableSwipeToDismiss?: boolean;
31
+ /** Optional blur behind the scrim. See {@link BackdropBlurRenderer}. */
32
+ renderBackdropBlur?: BackdropBlurRenderer;
24
33
  }
25
34
  /**
26
35
  * Host for the managed deposit-flow surface: a `@gorhom/bottom-sheet` modal
@@ -32,7 +41,7 @@ export interface FlowSheetProps {
32
41
  * `react-native-gesture-handler`, `react-native-reanimated`) and a
33
42
  * `<GestureHandlerRootView>` at the app root.
34
43
  */
35
- export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, }: FlowSheetProps): import("react").JSX.Element;
44
+ export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, renderBackdropBlur, }: FlowSheetProps): import("react").JSX.Element;
36
45
  /**
37
46
  * Sheet surface for the flow modal. gorhom sizes the sheet body to its content,
38
47
  * 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,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kDAAkD;IAClD,OAAO,EAAE,SAAS,CAAA;IAClB,yDAAyD;IACzD,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAQD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,GAC5B,EAAE,cAAc,+BAgHhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,KAAK,GACN,EAAE,0BAA0B,+BAgB5B"}
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,IAAI,CAAA;IACnB,kDAAkD;IAClD,OAAO,EAAE,SAAS,CAAA;IAClB,yDAAyD;IACzD,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;CAC1C;AAQD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,EAC3B,kBAAkB,GACnB,EAAE,cAAc,+BAkIhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,KAAK,GACN,EAAE,0BAA0B,+BAgB5B"}
@@ -1,6 +1,7 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type ClipboardWriter } from '../transfer/clipboard';
3
3
  import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
4
+ import { type BackdropBlurRenderer } from './FlowSheet';
4
5
  import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawalFlowConfig';
5
6
  interface FunkitFlowContextValue {
6
7
  /** Open the managed deposit flow at the Add money screen. */
@@ -16,10 +17,12 @@ interface FunkitFlowContextValue {
16
17
  * (host apps never render them directly), mirroring how `@funkit/connect`'s
17
18
  * `FunkitProvider` owns the checkout modal.
18
19
  */
19
- export declare function FunkitFlowProvider({ children, copyToClipboard, }: {
20
+ export declare function FunkitFlowProvider({ children, copyToClipboard, renderBackdropBlur, }: {
20
21
  children: ReactNode;
21
22
  /** Host clipboard override; defaults to the bare-RN clipboard peer. */
22
23
  copyToClipboard?: ClipboardWriter;
24
+ /** Host blur under the sheet's scrim. See {@link BackdropBlurRenderer}. */
25
+ renderBackdropBlur?: BackdropBlurRenderer;
23
26
  }): import("react").JSX.Element;
24
27
  export declare function useFunkitFlow(): FunkitFlowContextValue;
25
28
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,SAAS,EAQf,MAAM,OAAO,CAAA;AA8Bd,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,uBAAuB,CAAA;AAc9B,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AA2C/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,CAAC,EACjC,QAAQ,EACR,eAAwC,GACzC,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,uEAAuE;IACvE,eAAe,CAAC,EAAE,eAAe,CAAA;CAClC,+BAyKA;AAsqBD,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
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,CAAC,EACjC,QAAQ,EACR,eAAwC,EACxC,kBAAkB,GACnB,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,uEAAuE;IACvE,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,2EAA2E;IAC3E,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;CAC1C,+BAqLA;AAmeD,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
@@ -24,10 +24,8 @@ export type DepositCheckoutConfig = CheckoutTokenTransferConfig & Pick<MinDeposi
24
24
  */
25
25
  export declare function getDefaultDynamicTargetAsset(candidates: DynamicTargetAssetCandidate[] | undefined, dynamicRoutingId: string | undefined): DynamicTargetAssetCandidate | undefined;
26
26
  /**
27
- * One deposit network — a segment in the Transfer screen's network switcher.
28
- * Derived internally by `buildDepositNetworks` from the curated chain list (NOT
29
- * host-configured): every EVM chain collapses into one "EVM Chains" segment,
30
- * each non-EVM chain (Solana / Tron / Bitcoin) is its own segment.
27
+ * @deprecated Unused — the deposit chain is chosen on the Select chain screen,
28
+ * which lists every curated chain individually instead of network segments.
31
29
  */
32
30
  export interface ChainOption {
33
31
  /** Stable id used for selection (e.g. the network id). */
@@ -53,9 +51,6 @@ export interface ChainOption {
53
51
  * hooks. `depositAddress`/`qrCode` remain as optional host overrides / fallbacks
54
52
  * (shown while generation is loading or when no identity is configured).
55
53
  *
56
- * The network switcher is now sourced internally too (`buildDepositNetworks`
57
- * over the curated chain list — no host `depositChains`).
58
- *
59
54
  * TODO(connect-rn): source the remaining lists internally too — payment methods
60
55
  * from config/Statsig, supported tokens from `@funkit/api-base` — so
61
56
  * `beginDeposit` ultimately takes just a target, like the web `beginCheckout`.
@@ -76,11 +71,8 @@ export interface DepositFlowConfig {
76
71
  */
77
72
  checkoutConfig?: DepositCheckoutConfig;
78
73
  /**
79
- * Chain the user sends funds **from** (string id, matching web's
80
- * `FunkitCheckoutConfig.sourceChain`) — selects which generated address (EVM /
81
- * Solana / Bitcoin / Tron) and QR type to show, and which network-switcher
82
- * segment starts selected. The switcher segments themselves are derived from
83
- * the curated chain list (see `buildDepositNetworks`), not host-configured.
74
+ * @deprecated Ignored — the user picks the source chain on the Select chain
75
+ * screen, which drives the generated address and QR type.
84
76
  */
85
77
  sourceChain?: string;
86
78
  /** Dynamic-routing id used to resolve UDA params for `checkoutConfig`. */
@@ -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,gB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B"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Wraps every function on a host callback object so an integrator's throw stays
3
+ * the integrator's problem.
4
+ *
5
+ * Applied where callbacks enter the SDK rather than at each call site: some of
6
+ * those sites can't defend themselves usefully — `onClose` runs inside a
7
+ * `setState` updater, `onOpen` runs before the sheet is open — and a call site
8
+ * added later would otherwise be unguarded by default.
9
+ */
10
+ export declare function guardHostCallbacks<T extends object>(callbacks: T): T;
11
+ //# sourceMappingURL=guardHostCallbacks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guardHostCallbacks.d.ts","sourceRoot":"","sources":["../../../src/flow/guardHostCallbacks.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,GAAG,CAAC,CASpE"}
@@ -0,0 +1,4 @@
1
+ /** Null when nothing is stored, or the read failed — the caller just asks. */
2
+ export declare function readSelectedChainId(userId: string): Promise<string | null>;
3
+ export declare function writeSelectedChainId(userId: string, chainId: string): Promise<void>;
4
+ //# sourceMappingURL=selectedChainStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectedChainStorage.d.ts","sourceRoot":"","sources":["../../../src/flow/selectedChainStorage.ts"],"names":[],"mappings":"AASA,8EAA8E;AAC9E,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CASxB;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CASf"}
@@ -3,16 +3,10 @@
3
3
  * keyboard events. Pass `enabled` to scope it to the screen that needs it: when
4
4
  * `false`, no listeners are registered and it always reports 0.
5
5
  *
6
- * `@gorhom/bottom-sheet`'s built-in keyboard handling only reacts to a focused
7
- * `BottomSheetTextInput`. The Swapped embed's WebView focuses its input in the
8
- * web context, invisible to gorhom, so the sheet never moves on its own. These
9
- * events, by contrast, fire for the WebView's web inputs too, letting the host
10
- * lift the sheet itself.
11
- *
12
- * Because these are *global* keyboard events, a screen that DOES use gorhom's
13
- * native avoidance (a `BottomSheetTextInput`) would otherwise be double-counted
14
- * — gorhom shifting the sheet AND this growing it. Gating on `enabled` keeps the
15
- * two from overlapping: only the Swapped screen opts in.
6
+ * This is the ONLY thing that lifts the flow sheet, for native inputs and the
7
+ * Swapped WebView alike: gorhom's own avoidance runs `keyboardBehavior="extend"`
8
+ * under `enableDynamicSizing`, where the max snap point is already the content
9
+ * height — a no-op, verified on device even with a `BottomSheetTextInput`.
16
10
  *
17
11
  * iOS emits the `Will` events (ahead of the keyboard animation, so the sheet
18
12
  * lifts in sync); Android only reliably emits the `Did` events.
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAqB1D"}
1
+ {"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAqB1D"}
@@ -15,13 +15,58 @@ export interface WithdrawalToken {
15
15
  decimals?: number;
16
16
  }
17
17
  /**
18
- * Data the managed withdrawal (Swapped fiat offramp) flow renders and executes
19
- * against. Mirrors the web `FunkitWithdrawalConfig` family where the concepts
20
- * overlap; the RN flow is offramp-only (no send-to-address withdrawal).
18
+ * One selectable source token. Present only when the host offers a choice;
19
+ * with a single source, `WithdrawalFlowConfig.sourceToken` is enough.
20
+ */
21
+ export interface WithdrawalSourceTokenOption {
22
+ token: WithdrawalToken;
23
+ /** Row label; defaults to the token symbol. */
24
+ label?: string;
25
+ iconSrc?: string;
26
+ }
27
+ /** Which source token a balance / limit callback is being asked about. */
28
+ export interface WithdrawalSourceTokenParams {
29
+ sourceToken: WithdrawalToken;
30
+ }
31
+ /**
32
+ * Data the managed withdrawal flow renders and executes against. Mirrors the
33
+ * web `FunkitWithdrawalConfig` family where the concepts overlap.
34
+ *
35
+ * Two rails share this config: the Swapped fiat offramp, and the crypto
36
+ * send-to-address rail. Fields marked "crypto rail" are ignored by the offramp.
21
37
  */
22
38
  export interface WithdrawalFlowConfig {
23
- /** Token being sold to fiat. */
39
+ /** The token being withdrawn; the default pick when `sourceTokens` is set. */
24
40
  sourceToken: WithdrawalToken;
41
+ /**
42
+ * Crypto rail: source tokens the user can pick between. Omit for a single
43
+ * source — `sourceToken` is then the only option and no picker is shown.
44
+ */
45
+ sourceTokens?: WithdrawalSourceTokenOption[];
46
+ /**
47
+ * Crypto rail: spendable balance of a source token, in that token's units.
48
+ * The integrator is authoritative — it knows about locks, pending orders and
49
+ * borrow limits the SDK can't see on-chain. Called on render, so keep it
50
+ * cheap and referentially stable; a throw or a nonsense value is treated as
51
+ * a zero balance rather than breaking the form.
52
+ */
53
+ withdrawalSourceTokenBalance?: (params: WithdrawalSourceTokenParams) => string | number;
54
+ /** Crypto rail: minimum withdrawal in USD. Defaults to $0.01. */
55
+ getMinWithdrawalUSD?: (params: WithdrawalSourceTokenParams) => number;
56
+ /**
57
+ * Crypto rail: minimum as the user sees it — the source token's own units,
58
+ * not base units. Takes priority over {@link getMinWithdrawalUSD}.
59
+ */
60
+ getMinWithdrawalAmount?: (params: WithdrawalSourceTokenParams) => number;
61
+ /** Crypto rail: maximum withdrawal in USD. Unlimited when omitted. */
62
+ getMaxWithdrawalUSD?: (params: WithdrawalSourceTokenParams) => number;
63
+ /** Crypto rail: token symbol to preselect as the destination. */
64
+ defaultReceiveToken?: string;
65
+ /**
66
+ * Crypto rail: hide the shortcut that fills the recipient field with the
67
+ * connected wallet's own address.
68
+ */
69
+ disableConnectedWallet?: boolean;
25
70
  /**
26
71
  * The token Swapped accepts on-chain (the leg the quote delivers), when it
27
72
  * differs from the source. Omit when Swapped accepts the source token; a
@@ -51,14 +96,21 @@ export interface WithdrawalFlowCallbacks {
51
96
  onClose?: () => void;
52
97
  onCheckoutBlocked?: () => void;
53
98
  /**
54
- * The embed emitted a validated sell order (deposit address + exact amount
55
- * of the accepted token). Fired before the SDK executes — observability /
56
- * escape hatch for hosts that track orders themselves.
99
+ * Offramp only: the embed emitted a validated sell order (deposit address +
100
+ * exact amount of the accepted token). Fired before the SDK executes —
101
+ * observability / escape hatch for hosts that track orders themselves.
57
102
  */
58
103
  onWithdrawalOrder?: (order: SwappedSellOrderData) => void;
59
- /** The on-chain leg landed: provider order id ↔ transaction hash. */
104
+ /**
105
+ * The on-chain leg landed. The first argument identifies the withdrawal: the
106
+ * provider order id on the offramp, and an SDK-minted submission id on the
107
+ * crypto rail (which has no provider).
108
+ */
60
109
  onWithdrawalSubmitted?: (orderId: string, txHash: string) => void;
61
- /** Swapped confirmed the fiat payout side (SWAPPED_WITHDRAWAL_SUCCESSFUL). */
110
+ /**
111
+ * The withdrawal completed: Swapped confirmed the fiat payout, or the crypto
112
+ * transfer reached a terminal on-chain state.
113
+ */
62
114
  onWithdrawalSuccess?: (data?: unknown) => void;
63
115
  /** Unrecoverable execution failure (user rejections are not errors). */
64
116
  onWithdrawalError?: (error: {
@@ -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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;;OAMG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAA;CAC7D;AAED,yDAAyD;AACzD,MAAM,WAAW,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"useUserIpInfo.d.ts","sourceRoot":"","sources":["../../../src/geo/useUserIpInfo.ts"],"names":[],"mappings":"AAMA,YAAY,EACV,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,sBAAsB,CAAA;AAM7B,wBAAgB,aAAa,uDAO5B"}
1
+ {"version":3,"file":"useUserIpInfo.d.ts","sourceRoot":"","sources":["../../../src/geo/useUserIpInfo.ts"],"names":[],"mappings":"AAOA,YAAY,EACV,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,sBAAsB,CAAA;AAO7B,wBAAgB,aAAa,uDAU5B"}
@@ -0,0 +1,12 @@
1
+ export interface ChainAvatarProps {
2
+ /** Full CDN logo URL, e.g. `chainIconUri('base')`. */
3
+ uri: string;
4
+ size?: number;
5
+ }
6
+ /**
7
+ * A chain logo clipped to a circle with a hairline border. Centering a same-size
8
+ * {@link FunIcon} keeps it from sitting 1px off, since the border-box hairline
9
+ * shrinks the content box.
10
+ */
11
+ export declare function ChainAvatar({ uri, size }: ChainAvatarProps): import("react").JSX.Element;
12
+ //# sourceMappingURL=ChainAvatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainAvatar.d.ts","sourceRoot":"","sources":["../../../src/icons/ChainAvatar.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,gBAAgB;IAC/B,sDAAsD;IACtD,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,GAAG,EAAE,IAAS,EAAE,EAAE,gBAAgB,+BAM/D"}
@@ -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;AAGjE;;;;;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;CAC1B;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;CAC1B;AAiBD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,cAAc,CAYhB;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"}
1
+ {"version":3,"file":"IdentityContext.d.ts","sourceRoot":"","sources":["../../../src/identity/IdentityContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAA;AAGjE;;;;;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;CAC1B;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;CAC1B;AAgBD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,cAAc,CAYhB;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"}
@@ -1 +1 @@
1
- {"version":3,"file":"datadogHttpLogTransport.d.ts","sourceRoot":"","sources":["../../../src/logging/datadogHttpLogTransport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACZ,eAAe,EAChB,MAAM,sBAAsB,CAAA;AAE7B;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,8BAA8B;IAC7C,kEAAkE;IAClE,WAAW,EAAE,MAAM,CAAA;IACnB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,6DAA6D;IAC7D,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAiBD,qBAAa,uBAAwB,YAAW,YAAY;IAC1D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAQ;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAQ;IAChC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAQ;IACxC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAQ;IAErC,OAAO,CAAC,GAAG,CAAoB;IAC/B,OAAO,CAAC,OAAO,CAA6B;IAC5C,OAAO,CAAC,KAAK,CAAwB;IACrC,OAAO,CAAC,UAAU,CAA6C;gBAEnD,OAAO,EAAE,8BAA8B;IAanD,MAAM,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAIjC,kBAAkB,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;IASlD,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,SAAS,GAAG,IAAI;IAmCtD,8EAA8E;IAC9E,KAAK,IAAI,IAAI;IA4Bb,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,UAAU;CAMnB"}
1
+ {"version":3,"file":"datadogHttpLogTransport.d.ts","sourceRoot":"","sources":["../../../src/logging/datadogHttpLogTransport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACZ,eAAe,EAChB,MAAM,sBAAsB,CAAA;AAI7B;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,8BAA8B;IAC7C,kEAAkE;IAClE,WAAW,EAAE,MAAM,CAAA;IACnB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,6DAA6D;IAC7D,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAiBD,qBAAa,uBAAwB,YAAW,YAAY;IAC1D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAQ;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAQ;IAChC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAQ;IACxC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAQ;IAErC,OAAO,CAAC,GAAG,CAAoB;IAC/B,OAAO,CAAC,OAAO,CAA6B;IAC5C,OAAO,CAAC,KAAK,CAAwB;IACrC,OAAO,CAAC,UAAU,CAA6C;gBAEnD,OAAO,EAAE,8BAA8B;IAanD,MAAM,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAIjC,kBAAkB,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;IASlD,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,SAAS,GAAG,IAAI;IAmCtD,8EAA8E;IAC9E,KAAK,IAAI,IAAI;IAuBb,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,UAAU;CAMnB"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Serialize log records to a JSON body. Always succeeds.
3
+ *
4
+ * Web gets this from `@datadog/browser-logs`; the raw-`fetch` RN transport has
5
+ * no such layer and serializes inside the caller's `log()`, so a throw would
6
+ * land in a user flow.
7
+ */
8
+ export declare function serializeLogBatch(batch: readonly object[]): string;
9
+ //# sourceMappingURL=serializeLogBatch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializeLogBatch.d.ts","sourceRoot":"","sources":["../../../src/logging/serializeLogBatch.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAMlE"}
@@ -1,5 +1,6 @@
1
1
  import { QueryClient } from '@tanstack/react-query';
2
2
  import { type ReactNode } from 'react';
3
+ import type { BackdropBlurRenderer } from '../flow/FlowSheet';
3
4
  import { type FunkitConfig } from '../identity/IdentityContext';
4
5
  import type { Locale } from '../locales/i18n';
5
6
  import { type FunkitThemeProviderProps } from '../theme/FunkitThemeProvider';
@@ -55,6 +56,13 @@ export interface FunkitProviderProps {
55
56
  * `void` return is treated as success.
56
57
  */
57
58
  copyToClipboard?: ClipboardWriter;
59
+ /**
60
+ * Blur behind the flow sheet's scrim. The SDK ships the scrim only (no native
61
+ * blur dependency), so pass your own blur view — e.g.
62
+ * `() => <BlurView style={StyleSheet.absoluteFill} />` — to complete the
63
+ * design's blurred backdrop.
64
+ */
65
+ renderBackdropBlur?: BackdropBlurRenderer;
58
66
  }
59
67
  /**
60
68
  * Top-level, user-facing provider for `@funkit/connect-rn` — the single
@@ -67,5 +75,5 @@ export interface FunkitProviderProps {
67
75
  * the {@link QueryClientProvider}. Host integration stays a single
68
76
  * `<FunkitProvider>`.
69
77
  */
70
- export declare function FunkitProvider({ children, config, walletAddress, queryClient, themes, colorScheme, debug, locale, copyToClipboard, }: FunkitProviderProps): import("react").JSX.Element;
78
+ export declare function FunkitProvider({ children, config, walletAddress, queryClient, themes, colorScheme, debug, locale, copyToClipboard, renderBackdropBlur, }: FunkitProviderProps): import("react").JSX.Element;
71
79
  //# sourceMappingURL=FunkitProvider.d.ts.map
@@ -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;AAIlE,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,MAAM,uBAAuB,CAAA;AAK5D,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;CAClC;AA8BD;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,MAAM,EACN,aAAa,EACb,WAAW,EACX,MAAM,EACN,WAAW,EACX,KAAoB,EACpB,MAAM,EACN,eAAe,GAChB,EAAE,mBAAmB,+BAuDrB"}
1
+ {"version":3,"file":"FunkitProvider.d.ts","sourceRoot":"","sources":["../../../src/provid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odeScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/QrCodeScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAA;AAQnE;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,iBAAiB;IAChC,iDAAiD;IACjD,MAAM,EAAE,SAAS,CAAA;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CAC9C;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BA2JpD"}
1
+ {"version":3,"file":"QrCodeScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/QrCodeScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAA;AASnE;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,iBAAiB;IAChC,iDAAiD;IACjD,MAAM,EAAE,SAAS,CAAA;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CAC9C;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAwJpD"}
@@ -0,0 +1,27 @@
1
+ import type { AvailableChain } from '../transfer/availableChains';
2
+ interface ChainListProps {
3
+ chains: AvailableChain[];
4
+ /** Marks a row selected: `background/secondary` fill + a trailing check. */
5
+ selectedChain?: AvailableChain;
6
+ onSelectChain?: (chain: AvailableChain) => void;
7
+ loading?: boolean;
8
+ skeletonCount?: number;
9
+ }
10
+ /**
11
+ * The "Deposit crypto" chain picker — the first-run variant, shown before the
12
+ * user has chosen a deposit network.
13
+ */
14
+ export interface SelectChainScreenProps extends ChainListProps {
15
+ onBack?: () => void;
16
+ }
17
+ export declare function SelectChainScreen(props: SelectChainScreenProps): import("react").JSX.Element;
18
+ /**
19
+ * The "Select a chain" picker — the same list reopened from Transfer to change
20
+ * networks. Cancel dismisses; the current chain is checked.
21
+ */
22
+ export interface ChangeChainScreenProps extends ChainListProps {
23
+ onCancel?: () => void;
24
+ }
25
+ export declare function ChangeChainScreen(props: ChangeChainScreenProps): import("react").JSX.Element;
26
+ export {};
27
+ //# sourceMappingURL=SelectChainScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectChainScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectChainScreen.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAEjE,UAAU,cAAc;IACtB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,cAAc,CAAA;IAC9B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAA;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAoE9D;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAsD9D"}
@@ -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"}