@funkit/connect-rn 0.2.0-next.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +72 -0
  2. package/dist/index.d.ts +9 -6
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +2622 -1167
  5. package/dist/index.js.map +4 -4
  6. package/dist/src/flow/AddressCopiedToast.d.ts +18 -0
  7. package/dist/src/flow/AddressCopiedToast.d.ts.map +1 -0
  8. package/dist/src/flow/FlowSheet.d.ts +47 -0
  9. package/dist/src/flow/FlowSheet.d.ts.map +1 -0
  10. package/dist/src/flow/FunkitFlowProvider.d.ts +5 -2
  11. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  12. package/dist/src/flow/depositFlowConfig.d.ts +57 -26
  13. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  14. package/dist/src/flow/useKeyboardHeight.d.ts +21 -0
  15. package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -0
  16. package/dist/src/geo/isCountryBlocked.d.ts +3 -0
  17. package/dist/src/geo/isCountryBlocked.d.ts.map +1 -0
  18. package/dist/src/geo/useCheckoutBlocked.d.ts +10 -0
  19. package/dist/src/geo/useCheckoutBlocked.d.ts.map +1 -0
  20. package/dist/src/icons/CopyAddressIcon.d.ts +9 -0
  21. package/dist/src/icons/CopyAddressIcon.d.ts.map +1 -0
  22. package/dist/src/icons/CryptoBitcoinIcon.d.ts +9 -0
  23. package/dist/src/icons/CryptoBitcoinIcon.d.ts.map +1 -0
  24. package/dist/src/icons/CryptoTransferQRIcon.d.ts +9 -0
  25. package/dist/src/icons/CryptoTransferQRIcon.d.ts.map +1 -0
  26. package/dist/src/icons/FigmaSystemIcons.d.ts +19 -0
  27. package/dist/src/icons/FigmaSystemIcons.d.ts.map +1 -0
  28. package/dist/src/icons/FunIcon.d.ts +1 -1
  29. package/dist/src/icons/FunIcon.d.ts.map +1 -1
  30. package/dist/src/icons/PaymentBrandIcons.d.ts +24 -0
  31. package/dist/src/icons/PaymentBrandIcons.d.ts.map +1 -0
  32. package/dist/src/icons/QrChainCluster.d.ts +22 -0
  33. package/dist/src/icons/QrChainCluster.d.ts.map +1 -0
  34. package/dist/src/icons/SourceTokenCluster.d.ts +31 -0
  35. package/dist/src/icons/SourceTokenCluster.d.ts.map +1 -0
  36. package/dist/src/icons/TokenChainIcon.d.ts +19 -0
  37. package/dist/src/icons/TokenChainIcon.d.ts.map +1 -0
  38. package/dist/src/identity/IdentityContext.d.ts +1 -1
  39. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  40. package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
  41. package/dist/src/providers/FunkitProvider.d.ts +11 -1
  42. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  43. package/dist/src/providers/FunkitStatsigProvider.d.ts +1 -1
  44. package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
  45. package/dist/src/screens/AddMoneyScreen.d.ts +57 -2
  46. package/dist/src/screens/AddMoneyScreen.d.ts.map +1 -1
  47. package/dist/src/screens/AvailableChainsScreen.d.ts +33 -0
  48. package/dist/src/screens/AvailableChainsScreen.d.ts.map +1 -0
  49. package/dist/src/screens/CheckoutBlockedScreen.d.ts +2 -0
  50. package/dist/src/screens/CheckoutBlockedScreen.d.ts.map +1 -0
  51. package/dist/src/screens/NetworkSelector.d.ts +31 -0
  52. package/dist/src/screens/NetworkSelector.d.ts.map +1 -0
  53. package/dist/src/screens/QrCodeScreen.d.ts +30 -14
  54. package/dist/src/screens/QrCodeScreen.d.ts.map +1 -1
  55. package/dist/src/screens/TransferCryptoScreen.d.ts +25 -14
  56. package/dist/src/screens/TransferCryptoScreen.d.ts.map +1 -1
  57. package/dist/src/swapped/SwappedScreen.d.ts +1 -1
  58. package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
  59. package/dist/src/swapped/SwappedWebView.d.ts +2 -2
  60. package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
  61. package/dist/src/swapped/buildSwappedTheme.d.ts +31 -0
  62. package/dist/src/swapped/buildSwappedTheme.d.ts.map +1 -0
  63. package/dist/src/swapped/webViewSwappedTransport.d.ts +40 -13
  64. package/dist/src/swapped/webViewSwappedTransport.d.ts.map +1 -1
  65. package/dist/src/theme/FunkitThemeProvider.d.ts +1 -1
  66. package/dist/src/theme/FunkitThemeProvider.d.ts.map +1 -1
  67. package/dist/src/theme/restyle.d.ts +1010 -529
  68. package/dist/src/theme/restyle.d.ts.map +1 -1
  69. package/dist/src/theme/toRestyleTheme.d.ts +90 -48
  70. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  71. package/dist/src/theme/tokens.d.ts +52 -8
  72. package/dist/src/theme/tokens.d.ts.map +1 -1
  73. package/dist/src/transfer/QrCode.d.ts +12 -3
  74. package/dist/src/transfer/QrCode.d.ts.map +1 -1
  75. package/dist/src/transfer/availableChains.d.ts +53 -0
  76. package/dist/src/transfer/availableChains.d.ts.map +1 -0
  77. package/dist/src/transfer/clipboard.d.ts +16 -8
  78. package/dist/src/transfer/clipboard.d.ts.map +1 -1
  79. package/dist/src/transfer/hooks/useFops.d.ts +12 -3
  80. package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
  81. package/dist/src/transfer/hooks/useSupportedTokens.d.ts +1 -1
  82. package/dist/src/transfer/hooks/useSupportedTokens.d.ts.map +1 -1
  83. package/dist/src/transfer/supportedTokens.d.ts +20 -9
  84. package/dist/src/transfer/supportedTokens.d.ts.map +1 -1
  85. package/package.json +23 -4
  86. package/dist/src/icons/ChainClusterIcon.d.ts +0 -12
  87. package/dist/src/icons/ChainClusterIcon.d.ts.map +0 -1
  88. package/dist/src/providers/index.d.ts +0 -2
  89. package/dist/src/providers/index.d.ts.map +0 -1
  90. package/dist/src/screens/ChooseChainScreen.d.ts +0 -35
  91. package/dist/src/screens/ChooseChainScreen.d.ts.map +0 -1
  92. package/dist/src/screens/CryptoCashToggle.d.ts +0 -17
  93. package/dist/src/screens/CryptoCashToggle.d.ts.map +0 -1
  94. package/dist/src/screens/SupportedTokensScreen.d.ts +0 -44
  95. package/dist/src/screens/SupportedTokensScreen.d.ts.map +0 -1
  96. package/dist/src/theme/FunkitProvider.d.ts +0 -45
  97. package/dist/src/theme/FunkitProvider.d.ts.map +0 -1
  98. package/dist/src/theme/index.d.ts +0 -7
  99. package/dist/src/theme/index.d.ts.map +0 -1
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The "Address copied" confirmation pill (Figma: Fun Mobile deposit toast). A
3
+ * white rounded pill with the label + a green success check, matching the
4
+ * static reference used by the Storybook `screens-transfercrypto--address-copied`
5
+ * frame 1:1 (white bg, h42, px16, radius999, gap6, soft shadow, #111/16/500).
6
+ *
7
+ * Purely presentational + self-animating on mount/unmount — it owns NO timer and
8
+ * NO positioning. The parent (the deposit flow) mounts/unmounts it to show/hide
9
+ * and absolutely-positions it; mounting plays the enter animation, unmounting
10
+ * plays the exit. Built on `react-native-reanimated` layout animations, which
11
+ * run inside the gorhom bottom-sheet the flow renders in.
12
+ */
13
+ export interface AddressCopiedToastProps {
14
+ /** Pill label. Defaults to "Address copied". */
15
+ label?: string;
16
+ }
17
+ export declare function AddressCopiedToast({ label, }: AddressCopiedToastProps): import("react").JSX.Element;
18
+ //# sourceMappingURL=AddressCopiedToast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddressCopiedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/AddressCopiedToast.tsx"],"names":[],"mappings":"AAKA;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,uBAAuB;IACtC,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAoBD,wBAAgB,kBAAkB,CAAC,EACjC,KAAwB,GACzB,EAAE,uBAAuB,+BAazB"}
@@ -0,0 +1,47 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type BottomSheetBackgroundProps } from '@gorhom/bottom-sheet';
3
+ export interface FlowSheetProps {
4
+ isOpen: boolean;
5
+ /**
6
+ * Per-`beginDeposit` id. A change while open re-presents the sheet, which
7
+ * cancels an in-flight dismiss — so opening a new session mid-swipe-dismiss
8
+ * isn't closed by the previous session's late `onDismiss`.
9
+ */
10
+ session: number;
11
+ onClose: () => void;
12
+ /** The flow screens rendered inside the sheet. */
13
+ content: ReactNode;
14
+ /** The host app subtree the sheet is presented above. */
15
+ children: ReactNode;
16
+ /**
17
+ * Lift the sheet above the keyboard. Scoped to the screen that needs it (the
18
+ * Swapped embed's WebView): a generic flow screen with no inputs shouldn't
19
+ * subscribe to keyboard events, and a future `BottomSheetTextInput` screen
20
+ * would be handled by gorhom natively instead. See {@link useKeyboardHeight}.
21
+ */
22
+ keyboardAvoidEnabled?: boolean;
23
+ }
24
+ /**
25
+ * Host for the managed deposit-flow surface: a `@gorhom/bottom-sheet` modal
26
+ * (native gestures + spring physics), sized to its content. The flow screens
27
+ * draw their own grabber, so the sheet runs handle-less; its surface is painted
28
+ * by {@link FlowSheetBackground} (which also fills the over-drag gap).
29
+ *
30
+ * Requires the gorhom peer stack (`@gorhom/bottom-sheet`,
31
+ * `react-native-gesture-handler`, `react-native-reanimated`) and a
32
+ * `<GestureHandlerRootView>` at the app root.
33
+ */
34
+ export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, }: FlowSheetProps): import("react").JSX.Element;
35
+ /**
36
+ * Sheet surface for the flow modal. gorhom sizes the sheet body to its content,
37
+ * so a flat background fills only the content area; over-dragging the sheet
38
+ * above its content height lifts the body off the bottom and would otherwise
39
+ * expose the backdrop below it (ENG-4340: "you can see how the drawer ends").
40
+ *
41
+ * We paint the `bgModal` surface (matching each screen's own surface + rounded
42
+ * top) and hang a tall extension off the content's bottom edge. Anchored at
43
+ * `top: '100%'`, the extension tracks the body as it lifts, so the rubber-band
44
+ * over-drag reveals more surface instead of empty space — the bounce is kept.
45
+ */
46
+ export declare function FlowSheetBackground({ pointerEvents, style, }: BottomSheetBackgroundProps): import("react").JSX.Element;
47
+ //# sourceMappingURL=FlowSheet.d.ts.map
@@ -0,0 +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;AAM7B,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;CAC/B;AAQD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,GAC7B,EAAE,cAAc,+BAwGhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,KAAK,GACN,EAAE,0BAA0B,+BAgB5B"}
@@ -1,4 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
+ import { type ClipboardWriter } from '../transfer/clipboard';
2
3
  import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
3
4
  interface FunkitFlowContextValue {
4
5
  /** Open the managed deposit flow at the Add money screen. */
@@ -12,9 +13,11 @@ interface FunkitFlowContextValue {
12
13
  * (host apps never render them directly), mirroring how `@funkit/connect`'s
13
14
  * `FunkitProvider` owns the checkout modal.
14
15
  */
15
- export declare function FunkitFlowProvider({ children }: {
16
+ export declare function FunkitFlowProvider({ children, copyToClipboard, }: {
16
17
  children: ReactNode;
17
- }): import("react/jsx-runtime").JSX.Element;
18
+ /** Host clipboard override; defaults to the bare-RN clipboard peer. */
19
+ copyToClipboard?: ClipboardWriter;
20
+ }): import("react").JSX.Element;
18
21
  export declare function useFunkitFlow(): FunkitFlowContextValue;
19
22
  export {};
20
23
  //# sourceMappingURL=FunkitFlowProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AA2Bd,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAwB5B,UAAU,sBAAsB;IAC9B,6DAA6D;IAC7D,YAAY,EAAE,CACZ,MAAM,EAAE,iBAAiB,EACzB,SAAS,CAAC,EAAE,oBAAoB,KAC7B,IAAI,CAAA;IACT,sBAAsB;IACtB,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAUD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAgEvE;AAiPD,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
1
+ {"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,SAAS,EAOf,MAAM,OAAO,CAAA;AAiCd,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,uBAAuB,CAAA;AAQ9B,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAgC5B,UAAU,sBAAsB;IAC9B,6DAA6D;IAC7D,YAAY,EAAE,CACZ,MAAM,EAAE,iBAAiB,EACzB,SAAS,CAAC,EAAE,oBAAoB,KAC7B,IAAI,CAAA;IACT,sBAAsB;IACtB,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAUD;;;;;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,+BAmIA;AAycD,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
@@ -1,8 +1,42 @@
1
- import type { CheckoutTokenTransferConfig } from '@funkit/connect-core';
1
+ import type { CheckoutTokenTransferConfig, DynamicTargetAssetCandidate } from '@funkit/connect-core';
2
2
  import type { ReactNode } from 'react';
3
- import type { PaymentMethodOption } from '../screens/AddMoneyScreen';
4
- import type { ChainOption } from '../screens/ChooseChainScreen';
5
- import type { SupportedToken, TokenChainFilter } from '../screens/SupportedTokensScreen';
3
+ import type { SupportedToken, TokenChainFilter } from '../transfer/supportedTokens';
4
+ export type { DynamicTargetAssetCandidate } from '@funkit/connect-core';
5
+ /**
6
+ * Resolve the active target-asset candidate from a list + routing id (RN-only).
7
+ *
8
+ * This is intentionally NOT a drop-in equivalent of web's
9
+ * `getDefaultDynamicTargetAsset` (`packages/connect/src/utils/assets.ts`), which
10
+ * takes the whole checkout config (synthesizing a guaranteed fallback) and adds
11
+ * a `tokenSymbol === targetAssetTicker` match step. The RN flow only needs to
12
+ * pick a candidate from the configured list:
13
+ *
14
+ * 1. Match `dynamicRoutingId`
15
+ * 2. Match `isDefault`
16
+ * 3. First candidate
17
+ */
18
+ export declare function getDefaultDynamicTargetAsset(candidates: DynamicTargetAssetCandidate[] | undefined, dynamicRoutingId: string | undefined): DynamicTargetAssetCandidate | undefined;
19
+ /**
20
+ * One deposit network — a segment in the Transfer screen's network switcher.
21
+ * Derived internally by `buildDepositNetworks` from the curated chain list (NOT
22
+ * host-configured): every EVM chain collapses into one "EVM Chains" segment,
23
+ * each non-EVM chain (Solana / Tron / Bitcoin) is its own segment.
24
+ */
25
+ export interface ChainOption {
26
+ /** Stable id used for selection (e.g. the network id). */
27
+ id: string;
28
+ label: string;
29
+ /**
30
+ * CDN chain keys for the segment glyph: one → a single logo, several → a 2×2
31
+ * cluster (e.g. the EVM group).
32
+ */
33
+ iconKeys?: string[];
34
+ /**
35
+ * Numeric chain id this network selects — drives which generated deposit
36
+ * address + QR (EVM / Solana / Bitcoin / Tron) the flow shows.
37
+ */
38
+ chainId?: number;
39
+ }
6
40
  /**
7
41
  * Data the managed deposit flow renders.
8
42
  *
@@ -12,16 +46,21 @@ import type { SupportedToken, TokenChainFilter } from '../screens/SupportedToken
12
46
  * hooks. `depositAddress`/`qrCode` remain as optional host overrides / fallbacks
13
47
  * (shown while generation is loading or when no identity is configured).
14
48
  *
49
+ * The network switcher is now sourced internally too (`buildDepositNetworks`
50
+ * over the curated chain list — no host `depositChains`).
51
+ *
15
52
  * TODO(connect-rn): source the remaining lists internally too — payment methods
16
- * from config/Statsig, chains from `@funkit/chains`, supported tokens from
17
- * `@funkit/api-base` — so `beginDeposit` ultimately takes just a target, like
18
- * the web `beginCheckout`.
53
+ * from config/Statsig, supported tokens from `@funkit/api-base` — so
54
+ * `beginDeposit` ultimately takes just a target, like the web `beginCheckout`.
19
55
  */
20
56
  export interface DepositFlowConfig {
21
- /** Funding-source rows shown on the first (Add money) screen. */
22
- paymentMethods: PaymentMethodOption[];
23
- /** The payment-method id that routes into the crypto transfer screen. */
24
- cryptoMethodId: string;
57
+ /**
58
+ * Candidate target assets for the "Deposit to" row, following web's
59
+ * `FunkitCheckoutConfig.dynamicTargetAssetCandidates`. The active candidate is
60
+ * resolved via {@link getDefaultDynamicTargetAsset} using `dynamicRoutingId`.
61
+ * Omit to hide the deposit-target row.
62
+ */
63
+ dynamicTargetAssetCandidates?: DynamicTargetAssetCandidate[];
25
64
  /**
26
65
  * Destination of the deposit (target chain + asset). Drives deposit-address
27
66
  * generation via the transfer hooks. The web `FunkitCheckoutConfig` satisfies
@@ -29,30 +68,21 @@ export interface DepositFlowConfig {
29
68
  */
30
69
  checkoutConfig?: CheckoutTokenTransferConfig;
31
70
  /**
32
- * Chain the user sends funds on — selects which generated address (EVM /
33
- * Solana / Bitcoin / Tron) and QR type to show. Updated when the user picks a
34
- * chain on the choose-chain screen (if that `ChainOption` carries a `chainId`).
71
+ * Chain the user sends funds **from** (string id, matching web's
72
+ * `FunkitCheckoutConfig.sourceChain`) — selects which generated address (EVM /
73
+ * Solana / Bitcoin / Tron) and QR type to show, and which network-switcher
74
+ * segment starts selected. The switcher segments themselves are derived from
75
+ * the curated chain list (see `buildDepositNetworks`), not host-configured.
35
76
  */
36
- selectedChainId?: number;
77
+ sourceChain?: string;
37
78
  /** Dynamic-routing id used to resolve UDA params for `checkoutConfig`. */
38
79
  dynamicRoutingId?: string;
39
- /** Network selector label on the transfer screen, e.g. "EVM Chains". */
40
- networkLabel: string;
41
- /**
42
- * CDN chain keys for the network-cluster icon shown next to `networkLabel`
43
- * (and as the crypto payment-method icon), e.g.
44
- * `['ethereum', 'polygon', 'base', 'arbitrum']`. One key renders a single
45
- * logo; several render a 2×2 cluster. Omit for a themed placeholder.
46
- */
47
- networkIconChains?: string[];
48
80
  /**
49
81
  * Deposit address fallback/override. The flow prefers the SDK-generated
50
82
  * address; this is shown while it loads or when generation is unavailable
51
83
  * (no identity). Display formatting (truncation) is applied by the flow.
52
84
  */
53
85
  depositAddress?: string;
54
- /** Chains shown on the "Change" (choose-chain) screen. */
55
- depositChains: ChainOption[];
56
86
  /** Tokens shown on the supported-tokens screen (host-filtered). */
57
87
  supportedTokens?: SupportedToken[];
58
88
  tokenChainFilters?: TokenChainFilter[];
@@ -66,5 +96,6 @@ export interface DepositFlowConfig {
66
96
  export interface DepositFlowCallbacks {
67
97
  onOpen?: () => void;
68
98
  onClose?: () => void;
99
+ onCheckoutBlocked?: () => void;
69
100
  }
70
101
  //# sourceMappingURL=depositFlowConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,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AE,MAAM,IAAI,CAAA;CAC/B"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The on-screen keyboard height (0 when hidden), tracked from the global
3
+ * keyboard events. Pass `enabled` to scope it to the screen that needs it: when
4
+ * `false`, no listeners are registered and it always reports 0.
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.
16
+ *
17
+ * iOS emits the `Will` events (ahead of the keyboard animation, so the sheet
18
+ * lifts in sync); Android only reliably emits the `Did` events.
19
+ */
20
+ export declare function useKeyboardHeight(enabled: boolean): number;
21
+ //# sourceMappingURL=useKeyboardHeight.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,3 @@
1
+ import type { FunkitUserIpInfo } from './useUserIpInfo';
2
+ export declare function isCountryBlocked(blockedList: readonly string[], userIpInfo: FunkitUserIpInfo): boolean;
3
+ //# sourceMappingURL=isCountryBlocked.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isCountryBlocked.d.ts","sourceRoot":"","sources":["../../../src/geo/isCountryBlocked.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAIvD,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,SAAS,MAAM,EAAE,EAC9B,UAAU,EAAE,gBAAgB,GAC3B,OAAO,CAeT"}
@@ -0,0 +1,10 @@
1
+ interface UseCheckoutBlockedParams {
2
+ onCheckoutBlocked?: () => void;
3
+ }
4
+ interface UseCheckoutBlockedResult {
5
+ isGeoblocked: boolean;
6
+ isLoadingGeoCheck: boolean;
7
+ }
8
+ export declare function useCheckoutBlocked(params: UseCheckoutBlockedParams): UseCheckoutBlockedResult;
9
+ export {};
10
+ //# sourceMappingURL=useCheckoutBlocked.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCheckoutBlocked.d.ts","sourceRoot":"","sources":["../../../src/geo/useCheckoutBlocked.ts"],"names":[],"mappings":"AAMA,UAAU,wBAAwB;IAChC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;CAC/B;AAED,UAAU,wBAAwB;IAChC,YAAY,EAAE,OAAO,CAAA;IACrB,iBAAiB,EAAE,OAAO,CAAA;CAC3B;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,wBAAwB,GAC/B,wBAAwB,CAyB1B"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The "Copy address" button glyph — the RN port of web's
3
+ * `CopyDoubleRoundedSquareIcon`. Renders in the theme's secondary-button label
4
+ * color so it matches the button text.
5
+ */
6
+ export declare function CopyAddressIcon({ size }: {
7
+ size?: number;
8
+ }): import("react").JSX.Element;
9
+ //# sourceMappingURL=CopyAddressIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CopyAddressIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/CopyAddressIcon.tsx"],"names":[],"mappings":"AAYA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAAE,IAAS,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,+BAU/D"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The "Crypto" funding-source glyph (Figma: Add money crypto row leading) — the
3
+ * RN port of web's `CircleBitcoinIcon`. Renders the bitcoin disc in the theme's
4
+ * primary text color.
5
+ */
6
+ export declare function CryptoBitcoinIcon({ size }: {
7
+ size?: number;
8
+ }): import("react").JSX.Element;
9
+ //# sourceMappingURL=CryptoBitcoinIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CryptoBitcoinIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/CryptoBitcoinIcon.tsx"],"names":[],"mappings":"AAYA;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,IAAS,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,+BAUjE"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The Transfer Crypto top-bar QR glyph (Figma: Transfer Crypto top bar trailing)
3
+ * — the RN port of web's `CryptoTransferQRIcon`. Renders the QR-scan glyph in
4
+ * the theme's primary text color.
5
+ */
6
+ export declare function CryptoTransferQRIcon({ size }: {
7
+ size?: number;
8
+ }): import("react").JSX.Element;
9
+ //# sourceMappingURL=CryptoTransferQRIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CryptoTransferQRIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/CryptoTransferQRIcon.tsx"],"names":[],"mappings":"AAYA;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,IAAS,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,+BAUpE"}
@@ -0,0 +1,19 @@
1
+ type IconProps = {
2
+ size?: number;
3
+ color?: string;
4
+ };
5
+ export declare function FigmaCloseIcon({ size, color }: IconProps): import("react").JSX.Element;
6
+ export declare function FigmaQrScanIcon({ size, color }: IconProps): import("react").JSX.Element;
7
+ export declare function FigmaCopyIcon({ size, color }: IconProps): import("react").JSX.Element;
8
+ export declare function FigmaShareIcon({ size, color }: IconProps): import("react").JSX.Element;
9
+ export declare function FigmaChevronRightIcon({ size, color }: IconProps): import("react").JSX.Element;
10
+ export declare function FigmaChevronLeftIcon({ size, color }: IconProps): import("react").JSX.Element;
11
+ export declare function FigmaSuccessCheckIcon({ size }: {
12
+ size?: number;
13
+ }): import("react").JSX.Element;
14
+ export declare function FigmaChevronDownIcon({ size, color }: IconProps): import("react").JSX.Element;
15
+ export declare function FigmaCheckIcon({ size, color }: IconProps): import("react").JSX.Element;
16
+ export declare function FigmaInfoCircleIcon({ size, color }: IconProps): import("react").JSX.Element;
17
+ export declare function FigmaPlusIcon({ size, color }: IconProps): import("react").JSX.Element;
18
+ export {};
19
+ //# sourceMappingURL=FigmaSystemIcons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FigmaSystemIcons.d.ts","sourceRoot":"","sources":["../../../src/icons/FigmaSystemIcons.tsx"],"names":[],"mappings":"AAIA,KAAK,SAAS,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAqDD,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE7D;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE9D;AAED,wBAAgB,aAAa,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE5D;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE7D;AAED,wBAAgB,qBAAqB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAEpE;AAED,wBAAgB,oBAAoB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAEnE;AAED,wBAAgB,qBAAqB,CAAC,EAAE,IAAS,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,+BAErE;AAED,wBAAgB,oBAAoB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAEnE;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE7D;AAKD,wBAAgB,mBAAmB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAElE;AAUD,wBAAgB,aAAa,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE5D"}
@@ -14,5 +14,5 @@ export interface FunIconProps {
14
14
  */
15
15
  fallbackUri?: string;
16
16
  }
17
- export declare function FunIcon({ uri, size, fallbackUri }: FunIconProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function FunIcon({ uri, size, fallbackUri }: FunIconProps): import("react").JSX.Element;
18
18
  //# sourceMappingURL=FunIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FunIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/FunIcon.tsx"],"names":[],"mappings":"AA8BA;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,wBAAgB,OAAO,CAAC,EAAE,GAAG,EAAE,IAAS,EAAE,WAAW,EAAE,EAAE,YAAY,2CAsFpE"}
1
+ {"version":3,"file":"FunIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/FunIcon.tsx"],"names":[],"mappings":"AA8BA;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,wBAAgB,OAAO,CAAC,EAAE,GAAG,EAAE,IAAS,EAAE,WAAW,EAAE,EAAE,YAAY,+BAiGpE"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Payment-method brand glyphs for the "Add money" funding-source picker (Figma:
3
+ * Fun Mobile / Add money, node 11202:8263). Each is a byte-for-byte SVG export
4
+ * from that Figma frame — Mastercard keeps its brand colors; the monochrome
5
+ * marks (Apple, Revolut, Bank, Crypto) swap their fill/stroke to the theme's
6
+ * primary content color so they track light/dark. Host apps may pass their own
7
+ * brand icons instead; these are the package's design-matched defaults used by
8
+ * the stories.
9
+ */
10
+ type BrandIconProps = {
11
+ /** Glyph box size in px (the leading slot centers it). */
12
+ size?: number;
13
+ /** Override the monochrome color; defaults to the theme primary. */
14
+ color?: string;
15
+ };
16
+ export declare function MastercardIcon({ size }: {
17
+ size?: number;
18
+ }): import("react").JSX.Element;
19
+ export declare function ApplePayIcon({ size, color }: BrandIconProps): import("react").JSX.Element;
20
+ export declare function RevolutIcon({ size, color }: BrandIconProps): import("react").JSX.Element;
21
+ export declare function CryptoCoinIcon({ size, color }: BrandIconProps): import("react").JSX.Element;
22
+ export declare function BankIcon({ size, color }: BrandIconProps): import("react").JSX.Element;
23
+ export {};
24
+ //# sourceMappingURL=PaymentBrandIcons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaymentBrandIcons.d.ts","sourceRoot":"","sources":["../../../src/icons/PaymentBrandIcons.tsx"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AAEH,KAAK,cAAc,GAAG;IACpB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AA4BD,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,+BAE9D;AAED,wBAAgB,YAAY,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,cAAc,+BAUhE;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,cAAc,+BAU/D;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,cAAc,+BASlE;AAED,wBAAgB,QAAQ,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,cAAc,+BAS5D"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * The chain-logo cluster shown in the center of the deposit QR (Figma: qr-code
3
+ * → `icon/chain`). It reflects the selected network: a single network renders
4
+ * one large logo (e.g. Solana), a multi-chain network renders a 2×2 grid of
5
+ * small logos (e.g. EVM: Ethereum / Aptos / Base / BNB). Logos resolve from CDN
6
+ * chain keys OR full image URLs so the package stays asset-free.
7
+ *
8
+ * The QR behind it is drawn at high error-correction ({@link QrCode} `ecl="H"`),
9
+ * so this central occlusion stays scannable.
10
+ */
11
+ export interface QrChainClusterProps {
12
+ /**
13
+ * Logos for the selected network — either CDN chain **keys** (e.g.
14
+ * `['ethereum', 'bsc']`) or full image **URLs** (`@funkit/chains` `iconUrl`s).
15
+ * One entry → a single logo; 2–4 → a 2×2 grid.
16
+ */
17
+ iconKeys: string[];
18
+ /** Max logos in the grid before the rest are dropped (Figma shows 4). */
19
+ max?: number;
20
+ }
21
+ export declare function QrChainCluster({ iconKeys, max }: QrChainClusterProps): import("react").JSX.Element | null;
22
+ //# sourceMappingURL=QrChainCluster.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QrChainCluster.d.ts","sourceRoot":"","sources":["../../../src/icons/QrChainCluster.tsx"],"names":[],"mappings":"AAOA;;;;;;;;;GASG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,yEAAyE;IACzE,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAeD,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,GAAO,EAAE,EAAE,mBAAmB,sCAoCxE"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * The crypto-row trailing avatar stack (Figma: Add money `list-item/base` →
3
+ * `trailing` → `crypto2`). A short row of supported source-asset logos —
4
+ * 16px thin-bordered circles — followed by a "+N" pill counting the rest, e.g.
5
+ * `◇ ◎ ⬡ ⊖ +7`. Logos resolve from CDN chain keys so the package stays
6
+ * asset-free.
7
+ */
8
+ export interface SourceTokenClusterProps {
9
+ /**
10
+ * Logos to show — either CDN chain **keys** (e.g. `['ethereum', 'base', …]`)
11
+ * or full image **URLs** (e.g. `@funkit/chains` `iconUrl`s); each entry is
12
+ * resolved independently. The first `maxVisible` render as logos; the rest
13
+ * collapse into the "+N" pill.
14
+ */
15
+ icons: string[];
16
+ /** Logos shown before collapsing the rest into "+N". Defaults to 4 (Figma). */
17
+ maxVisible?: number;
18
+ /** Logo diameter in px. Defaults to 16 (Add money row); 20 on Transfer. */
19
+ size?: number;
20
+ /** Gap between chips. Figma: 2 on the Add money row, 4 on Transfer. */
21
+ gap?: number;
22
+ /**
23
+ * Overflow chip style. `'count'` (default) shows "+N" with the remaining count
24
+ * in a `pillPressed` circle (Transfer deposit row, Figma `tap-target`).
25
+ * `'plus'` shows a bare "+" glyph in a `bgSecondary` circle regardless of count
26
+ * (Add money Crypto row, Figma `crypto2`).
27
+ */
28
+ overflowMode?: 'count' | 'plus';
29
+ }
30
+ export declare function SourceTokenCluster({ icons, maxVisible, size, gap, overflowMode, }: SourceTokenClusterProps): import("react").JSX.Element;
31
+ //# sourceMappingURL=SourceTokenCluster.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SourceTokenCluster.d.ts","sourceRoot":"","sources":["../../../src/icons/SourceTokenCluster.tsx"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;;OAKG;IACH,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,+EAA+E;IAC/E,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;CAChC;AAOD,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,UAAc,EACd,IAAS,EACT,GAAO,EACP,YAAsB,GACvB,EAAE,uBAAuB,+BA2CzB"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * A token logo with a small chain badge overlaid bottom-right (Figma: the
3
+ * `icon/crypto` avatar) — the RN analogue of web's `FunAssetAvatar`. The token
4
+ * icon resolves from `iconSrc` (direct URL, matching web's
5
+ * `DynamicTargetAssetCandidate.iconSrc`) or falls back to CDN via `symbol`
6
+ * ({@link tokenLogoUri}). The badge resolves by CDN chain key. Omit `chainKey`
7
+ * to render the token logo alone.
8
+ */
9
+ export interface TokenChainIconProps {
10
+ /** Token symbol → CDN token logo fallback, e.g. `"USDG"`. */
11
+ symbol: string;
12
+ /** Direct URL for the token icon — preferred over CDN `symbol` lookup. */
13
+ iconSrc?: string;
14
+ /** CDN chain key for the badge overlay, e.g. `"ethereum"`. Omit to hide it. */
15
+ chainKey?: string;
16
+ size?: number;
17
+ }
18
+ export declare function TokenChainIcon({ symbol, iconSrc, chainKey, size, }: TokenChainIconProps): import("react").JSX.Element;
19
+ //# sourceMappingURL=TokenChainIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TokenChainIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/TokenChainIcon.tsx"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAA;IACd,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,OAAO,EACP,QAAQ,EACR,IAAS,GACV,EAAE,mBAAmB,+BA0BrB"}
@@ -47,6 +47,6 @@ export declare function resolveFunkitIdentity(config: FunkitConfig, walletAddres
47
47
  export declare function FunkitIdentityProvider({ identity, children, }: {
48
48
  identity: FunkitIdentity;
49
49
  children: ReactNode;
50
- }): import("react/jsx-runtime").JSX.Element;
50
+ }): import("react").JSX.Element;
51
51
  export declare function useFunkitIdentity(): FunkitIdentity;
52
52
  //# sourceMappingURL=IdentityContext.d.ts.map
@@ -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;AAEjE;;;;;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;CACnB;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;CACnB;AAYD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,cAAc,CAWhB;AAID,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,cAAc,CAAA;IACxB,QAAQ,EAAE,SAAS,CAAA;CACpB,2CAMA;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;AAEjE;;;;;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;CACnB;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;CACnB;AAYD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,cAAc,CAWhB;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,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BD,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"}
@@ -2,6 +2,7 @@ import { QueryClient } from '@tanstack/react-query';
2
2
  import { type ReactNode } from 'react';
3
3
  import { type FunkitConfig } from '../identity/IdentityContext';
4
4
  import { type FunkitThemeProviderProps } from '../theme/FunkitThemeProvider';
5
+ import type { ClipboardWriter } from '../transfer/clipboard';
5
6
  export interface FunkitProviderProps {
6
7
  children: ReactNode;
7
8
  /**
@@ -39,6 +40,15 @@ export interface FunkitProviderProps {
39
40
  * Mirrors `@funkit/connect`'s `debug`.
40
41
  */
41
42
  debug?: boolean;
43
+ /**
44
+ * Clipboard write used by the deposit flow's "Copy address" buttons. Defaults
45
+ * to the bare-RN `@react-native-clipboard/clipboard` peer (lazily loaded).
46
+ * Inject your own to use a different module — e.g. pass `setStringAsync` from
47
+ * `expo-clipboard` when running in **Expo Go**, where the native module isn't
48
+ * linked. Return the write's success to drive the "Copied!" confirmation; a
49
+ * `void` return is treated as success.
50
+ */
51
+ copyToClipboard?: ClipboardWriter;
42
52
  }
43
53
  /**
44
54
  * Top-level, user-facing provider for `@funkit/connect-rn` — the single
@@ -51,5 +61,5 @@ export interface FunkitProviderProps {
51
61
  * the {@link QueryClientProvider}. Host integration stays a single
52
62
  * `<FunkitProvider>`.
53
63
  */
54
- export declare function FunkitProvider({ children, config, walletAddress, queryClient, themes, colorScheme, debug, }: FunkitProviderProps): import("react/jsx-runtime").JSX.Element;
64
+ export declare function FunkitProvider({ children, config, walletAddress, queryClient, themes, colorScheme, debug, copyToClipboard, }: FunkitProviderProps): import("react").JSX.Element;
55
65
  //# 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;AAGlE,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,8BAA8B,CAAA;AAIrC,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;CAChB;AAQD;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,MAAM,EACN,aAAa,EACb,WAAW,EACX,MAAM,EACN,WAAW,EACX,KAAa,GACd,EAAE,mBAAmB,2CAiDrB"}
1
+ {"version":3,"file":"FunkitProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAA;AACxE,OAAO,EAAE,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAA;AAGlE,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAI5D,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;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,eAAe,CAAA;CAClC;AAQD;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,MAAM,EACN,aAAa,EACb,WAAW,EACX,MAAM,EACN,WAAW,EACX,KAAa,EACb,eAAe,GAChB,EAAE,mBAAmB,+BAmDrB"}
@@ -8,6 +8,6 @@ interface FunkitStatsigProviderProps {
8
8
  userId: string;
9
9
  isDevelopment?: boolean;
10
10
  }
11
- export declare function FunkitStatsigProvider({ children, apiKey, userId, isDevelopment, }: FunkitStatsigProviderProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function FunkitStatsigProvider({ children, apiKey, userId, isDevelopment, }: FunkitStatsigProviderProps): import("react").JSX.Element;
12
12
  export {};
13
13
  //# sourceMappingURL=FunkitStatsigProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FunkitStatsigProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitStatsigProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAA;AAW/C,eAAO,MAAM,kBAAkB,EAC7B,oDAA6D,CAAA;AAE/D,UAAU,0BAA0B;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB,qFAAqF;IACrF,MAAM,EAAE,MAAM,CAAA;IACd,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,MAAM,EACN,MAAM,EACN,aAAqB,GACtB,EAAE,0BAA0B,2CA2B5B"}
1
+ {"version":3,"file":"FunkitStatsigProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitStatsigProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAA;AAW/C,eAAO,MAAM,kBAAkB,EAC7B,oDAA6D,CAAA;AAE/D,UAAU,0BAA0B;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB,qFAAqF;IACrF,MAAM,EAAE,MAAM,CAAA;IACd,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,MAAM,EACN,MAAM,EACN,aAAqB,GACtB,EAAE,0BAA0B,+BA2B5B"}