@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.
- package/README.md +72 -0
- package/dist/index.d.ts +9 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2622 -1167
- package/dist/index.js.map +4 -4
- package/dist/src/flow/AddressCopiedToast.d.ts +18 -0
- package/dist/src/flow/AddressCopiedToast.d.ts.map +1 -0
- package/dist/src/flow/FlowSheet.d.ts +47 -0
- package/dist/src/flow/FlowSheet.d.ts.map +1 -0
- package/dist/src/flow/FunkitFlowProvider.d.ts +5 -2
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +57 -26
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/useKeyboardHeight.d.ts +21 -0
- package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -0
- package/dist/src/geo/isCountryBlocked.d.ts +3 -0
- package/dist/src/geo/isCountryBlocked.d.ts.map +1 -0
- package/dist/src/geo/useCheckoutBlocked.d.ts +10 -0
- package/dist/src/geo/useCheckoutBlocked.d.ts.map +1 -0
- package/dist/src/icons/CopyAddressIcon.d.ts +9 -0
- package/dist/src/icons/CopyAddressIcon.d.ts.map +1 -0
- package/dist/src/icons/CryptoBitcoinIcon.d.ts +9 -0
- package/dist/src/icons/CryptoBitcoinIcon.d.ts.map +1 -0
- package/dist/src/icons/CryptoTransferQRIcon.d.ts +9 -0
- package/dist/src/icons/CryptoTransferQRIcon.d.ts.map +1 -0
- package/dist/src/icons/FigmaSystemIcons.d.ts +19 -0
- package/dist/src/icons/FigmaSystemIcons.d.ts.map +1 -0
- package/dist/src/icons/FunIcon.d.ts +1 -1
- package/dist/src/icons/FunIcon.d.ts.map +1 -1
- package/dist/src/icons/PaymentBrandIcons.d.ts +24 -0
- package/dist/src/icons/PaymentBrandIcons.d.ts.map +1 -0
- package/dist/src/icons/QrChainCluster.d.ts +22 -0
- package/dist/src/icons/QrChainCluster.d.ts.map +1 -0
- package/dist/src/icons/SourceTokenCluster.d.ts +31 -0
- package/dist/src/icons/SourceTokenCluster.d.ts.map +1 -0
- package/dist/src/icons/TokenChainIcon.d.ts +19 -0
- package/dist/src/icons/TokenChainIcon.d.ts.map +1 -0
- package/dist/src/identity/IdentityContext.d.ts +1 -1
- package/dist/src/identity/IdentityContext.d.ts.map +1 -1
- package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
- package/dist/src/providers/FunkitProvider.d.ts +11 -1
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigProvider.d.ts +1 -1
- package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
- package/dist/src/screens/AddMoneyScreen.d.ts +57 -2
- package/dist/src/screens/AddMoneyScreen.d.ts.map +1 -1
- package/dist/src/screens/AvailableChainsScreen.d.ts +33 -0
- package/dist/src/screens/AvailableChainsScreen.d.ts.map +1 -0
- package/dist/src/screens/CheckoutBlockedScreen.d.ts +2 -0
- package/dist/src/screens/CheckoutBlockedScreen.d.ts.map +1 -0
- package/dist/src/screens/NetworkSelector.d.ts +31 -0
- package/dist/src/screens/NetworkSelector.d.ts.map +1 -0
- package/dist/src/screens/QrCodeScreen.d.ts +30 -14
- package/dist/src/screens/QrCodeScreen.d.ts.map +1 -1
- package/dist/src/screens/TransferCryptoScreen.d.ts +25 -14
- package/dist/src/screens/TransferCryptoScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreen.d.ts +1 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts +2 -2
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/buildSwappedTheme.d.ts +31 -0
- package/dist/src/swapped/buildSwappedTheme.d.ts.map +1 -0
- package/dist/src/swapped/webViewSwappedTransport.d.ts +40 -13
- package/dist/src/swapped/webViewSwappedTransport.d.ts.map +1 -1
- package/dist/src/theme/FunkitThemeProvider.d.ts +1 -1
- package/dist/src/theme/FunkitThemeProvider.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +1010 -529
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +90 -48
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +52 -8
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/transfer/QrCode.d.ts +12 -3
- package/dist/src/transfer/QrCode.d.ts.map +1 -1
- package/dist/src/transfer/availableChains.d.ts +53 -0
- package/dist/src/transfer/availableChains.d.ts.map +1 -0
- package/dist/src/transfer/clipboard.d.ts +16 -8
- package/dist/src/transfer/clipboard.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useFops.d.ts +12 -3
- package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useSupportedTokens.d.ts +1 -1
- package/dist/src/transfer/hooks/useSupportedTokens.d.ts.map +1 -1
- package/dist/src/transfer/supportedTokens.d.ts +20 -9
- package/dist/src/transfer/supportedTokens.d.ts.map +1 -1
- package/package.json +23 -4
- package/dist/src/icons/ChainClusterIcon.d.ts +0 -12
- package/dist/src/icons/ChainClusterIcon.d.ts.map +0 -1
- package/dist/src/providers/index.d.ts +0 -2
- package/dist/src/providers/index.d.ts.map +0 -1
- package/dist/src/screens/ChooseChainScreen.d.ts +0 -35
- package/dist/src/screens/ChooseChainScreen.d.ts.map +0 -1
- package/dist/src/screens/CryptoCashToggle.d.ts +0 -17
- package/dist/src/screens/CryptoCashToggle.d.ts.map +0 -1
- package/dist/src/screens/SupportedTokensScreen.d.ts +0 -44
- package/dist/src/screens/SupportedTokensScreen.d.ts.map +0 -1
- package/dist/src/theme/FunkitProvider.d.ts +0 -45
- package/dist/src/theme/FunkitProvider.d.ts.map +0 -1
- package/dist/src/theme/index.d.ts +0 -7
- 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
|
-
|
|
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":"
|
|
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 {
|
|
4
|
-
|
|
5
|
-
|
|
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,
|
|
17
|
-
*
|
|
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
|
-
/**
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
|
33
|
-
*
|
|
34
|
-
*
|
|
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
|
-
|
|
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,KAAK,
|
|
1
|
+
{"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC5B,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;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,2BAA2B,EAAE,GAAG,SAAS,EACrD,gBAAgB,EAAE,MAAM,GAAG,SAAS,GACnC,2BAA2B,GAAG,SAAS,CAUzC;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B,0DAA0D;IAC1D,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;OAKG;IACH,4BAA4B,CAAC,EAAE,2BAA2B,EAAE,CAAA;IAC5D;;;;OAIG;IACH,cAAc,CAAC,EAAE,2BAA2B,CAAA;IAC5C;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0EAA0E;IAC1E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,eAAe,CAAC,EAAE,cAAc,EAAE,CAAA;IAClC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB;AAED,yDAAyD;AACzD,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,iBAAiB,CAAC,EAAE,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 @@
|
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,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;
|
|
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;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
|
|
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;
|
|
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
|
|
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
|
|
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"}
|