@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.
- package/CHANGELOG.md +55 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3654 -1430
- package/dist/index.js.map +4 -4
- package/dist/src/components/AmountInput.d.ts +40 -0
- package/dist/src/components/AmountInput.d.ts.map +1 -0
- package/dist/src/components/Grabber.d.ts +8 -0
- package/dist/src/components/Grabber.d.ts.map +1 -0
- package/dist/src/components/RecipientAddressInput.d.ts +28 -0
- package/dist/src/components/RecipientAddressInput.d.ts.map +1 -0
- package/dist/src/components/ScrollFade.d.ts +26 -0
- package/dist/src/components/ScrollFade.d.ts.map +1 -0
- package/dist/src/components/SelectedChainRow.d.ts +16 -0
- package/dist/src/components/SelectedChainRow.d.ts.map +1 -0
- package/dist/src/components/WithdrawFeeSummary.d.ts +17 -0
- package/dist/src/components/WithdrawFeeSummary.d.ts.map +1 -0
- package/dist/src/flow/FlowSheet.d.ts +10 -1
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +4 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +4 -12
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/guardHostCallbacks.d.ts +11 -0
- package/dist/src/flow/guardHostCallbacks.d.ts.map +1 -0
- package/dist/src/flow/selectedChainStorage.d.ts +4 -0
- package/dist/src/flow/selectedChainStorage.d.ts.map +1 -0
- package/dist/src/flow/useKeyboardHeight.d.ts +4 -10
- package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
- package/dist/src/flow/withdrawalFlowConfig.d.ts +61 -9
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/geo/useUserIpInfo.d.ts.map +1 -1
- package/dist/src/icons/ChainAvatar.d.ts +12 -0
- package/dist/src/icons/ChainAvatar.d.ts.map +1 -0
- package/dist/src/identity/IdentityContext.d.ts.map +1 -1
- package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
- package/dist/src/logging/serializeLogBatch.d.ts +9 -0
- package/dist/src/logging/serializeLogBatch.d.ts.map +1 -0
- package/dist/src/providers/FunkitProvider.d.ts +9 -1
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/screens/QrCodeScreen.d.ts.map +1 -1
- package/dist/src/screens/SelectChainScreen.d.ts +27 -0
- package/dist/src/screens/SelectChainScreen.d.ts.map +1 -0
- package/dist/src/screens/SelectDestinationScreen.d.ts +19 -0
- package/dist/src/screens/SelectDestinationScreen.d.ts.map +1 -0
- package/dist/src/screens/SelectMethodScreen.d.ts +11 -0
- package/dist/src/screens/SelectMethodScreen.d.ts.map +1 -1
- package/dist/src/screens/TransferCryptoScreen.d.ts +13 -20
- package/dist/src/screens/TransferCryptoScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCompleteScreen.d.ts +17 -0
- package/dist/src/screens/WithdrawCompleteScreen.d.ts.map +1 -0
- package/dist/src/screens/WithdrawCryptoComplete.d.ts +16 -0
- package/dist/src/screens/WithdrawCryptoComplete.d.ts.map +1 -0
- package/dist/src/screens/WithdrawCryptoCta.d.ts +20 -0
- package/dist/src/screens/WithdrawCryptoCta.d.ts.map +1 -0
- package/dist/src/screens/WithdrawCryptoForm.d.ts +17 -0
- package/dist/src/screens/WithdrawCryptoForm.d.ts.map +1 -0
- package/dist/src/screens/WithdrawCryptoScreen.d.ts +17 -0
- package/dist/src/screens/WithdrawCryptoScreen.d.ts.map +1 -0
- package/dist/src/screens/WithdrawMethodScreen.d.ts +2 -0
- package/dist/src/screens/WithdrawMethodScreen.d.ts.map +1 -1
- package/dist/src/theme/buildFunkitTheme.d.ts +1 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +33 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +3 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +6 -0
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/transfer/availableChains.d.ts +15 -22
- package/dist/src/transfer/availableChains.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useCopyDepositAddress.d.ts +17 -0
- package/dist/src/transfer/hooks/useCopyDepositAddress.d.ts.map +1 -0
- package/dist/src/transfer/hooks/useLighterDepositRecipientOverride.d.ts +23 -0
- package/dist/src/transfer/hooks/useLighterDepositRecipientOverride.d.ts.map +1 -0
- package/dist/src/transfer/hooks/useTransferInit.d.ts +3 -2
- package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
- package/dist/src/utils/chainDisplay.d.ts +8 -0
- package/dist/src/utils/chainDisplay.d.ts.map +1 -0
- package/dist/src/utils/customers.d.ts +1 -0
- package/dist/src/utils/customers.d.ts.map +1 -1
- package/dist/src/withdrawal/sourceToken.d.ts +17 -0
- package/dist/src/withdrawal/sourceToken.d.ts.map +1 -0
- package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts +44 -0
- package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -0
- package/dist/src/withdrawal/useCryptoWithdrawalQuote.d.ts +42 -0
- package/dist/src/withdrawal/useCryptoWithdrawalQuote.d.ts.map +1 -0
- package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts +24 -0
- package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -0
- package/dist/src/withdrawal/useSourceTokenDecimals.d.ts +13 -0
- package/dist/src/withdrawal/useSourceTokenDecimals.d.ts.map +1 -0
- package/dist/src/withdrawal/useWithdrawalDestinationTokens.d.ts +32 -0
- package/dist/src/withdrawal/useWithdrawalDestinationTokens.d.ts.map +1 -0
- package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalRisk.d.ts +16 -0
- package/dist/src/withdrawal/useWithdrawalRisk.d.ts.map +1 -0
- package/dist/src/withdrawal/useWithdrawalStatus.d.ts +31 -0
- package/dist/src/withdrawal/useWithdrawalStatus.d.ts.map +1 -0
- package/dist/src/withdrawal/validation.d.ts +48 -0
- package/dist/src/withdrawal/validation.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/src/screens/AvailableChainsScreen.d.ts +0 -32
- package/dist/src/screens/AvailableChainsScreen.d.ts.map +0 -1
- package/dist/src/screens/NetworkSelector.d.ts +0 -31
- package/dist/src/screens/NetworkSelector.d.ts.map +0 -1
- package/dist/src/withdrawal/publicClient.d.ts +0 -10
- package/dist/src/withdrawal/publicClient.d.ts.map +0 -1
|
@@ -14,6 +14,11 @@ export interface PaymentMethodOption {
|
|
|
14
14
|
icon?: ReactNode;
|
|
15
15
|
/** Trailing accessory, e.g. a token cluster for the Crypto row. */
|
|
16
16
|
trailing?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Shown but not selectable — e.g. a cash payout whose minimum the balance
|
|
19
|
+
* can't meet. Dimmed rather than hidden so the option stays discoverable.
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
17
22
|
}
|
|
18
23
|
/**
|
|
19
24
|
* One option in the "Deposit to" receive-token dropdown (Figma: Fun Mobile /
|
|
@@ -69,6 +74,12 @@ export interface SelectMethodScreenProps {
|
|
|
69
74
|
* tap the trigger.
|
|
70
75
|
*/
|
|
71
76
|
initialDropdownOpen?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Secondary line under the list, for why part of it is missing (web's
|
|
79
|
+
* `NoCashMethodsNote`). A note, not a takeover: the rows that DID load stay
|
|
80
|
+
* usable.
|
|
81
|
+
*/
|
|
82
|
+
note?: string;
|
|
72
83
|
}
|
|
73
84
|
/**
|
|
74
85
|
* The "Add money" funding-source picker (Figma: Fun Mobile / Add money). A
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectMethodScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectMethodScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAA;AA2EnE;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mDAAmD;IACnD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"SelectMethodScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectMethodScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAA;AA2EnE;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mDAAmD;IACnD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,mBAAmB,EAAE,CAAA;IAC9B,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,aAAa,CAAC,EAAE,kBAAkB,EAAE,CAAA;IACpC,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,oBAAoB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;uCACmC;IACnC,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,+BAmLhE"}
|
|
@@ -1,33 +1,26 @@
|
|
|
1
|
-
import { type NetworkOption } from './NetworkSelector';
|
|
2
1
|
/**
|
|
3
|
-
* The Transfer Crypto / Universal-Deposit-Address screen
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* (the deposit-address resolution lives in the transfer hooks).
|
|
2
|
+
* The Transfer Crypto / Universal-Deposit-Address screen. A themed bottom-sheet
|
|
3
|
+
* surface: a back + QR top bar, the tappable selected-chain card, a centered
|
|
4
|
+
* deposit-address card with the chain's minimum, and full-width Copy / Share
|
|
5
|
+
* buttons. UI only — the host wires the data + callbacks (the deposit-address
|
|
6
|
+
* resolution lives in the transfer hooks).
|
|
9
7
|
*/
|
|
10
8
|
export interface TransferCryptoScreenProps {
|
|
11
9
|
/** Pre-formatted deposit address, e.g. `0x7854...5139F0`. */
|
|
12
10
|
depositAddress: string;
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* opens the "Available chains" screen). Omit to hide the preview.
|
|
20
|
-
*/
|
|
21
|
-
supportedTokenIcons?: string[];
|
|
22
|
-
/** Single-network minimum deposit text, e.g. `Min $3` for Solana. */
|
|
23
|
-
minimumDepositLabel?: string;
|
|
11
|
+
/** The chain the address was generated for, with its minimum-deposit label. */
|
|
12
|
+
selectedChain: {
|
|
13
|
+
name: string;
|
|
14
|
+
iconUri: string;
|
|
15
|
+
minLabel?: string;
|
|
16
|
+
};
|
|
24
17
|
/** How long the "Copied" confirmation stays on the Copy button (ms). */
|
|
25
18
|
copiedFeedbackMs?: number;
|
|
26
19
|
/** Leading top-bar action — returns to the Add money screen. */
|
|
27
20
|
onBack?: () => void;
|
|
28
21
|
onShowQrCode?: () => void;
|
|
29
|
-
/** Tapping the chain
|
|
30
|
-
|
|
22
|
+
/** Tapping the selected-chain card (opens the chain picker). */
|
|
23
|
+
onChangeChain?: () => void;
|
|
31
24
|
onCopyAddress?: () => void;
|
|
32
25
|
onShareAddress?: () => void;
|
|
33
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransferCryptoScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/TransferCryptoScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TransferCryptoScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/TransferCryptoScreen.tsx"],"names":[],"mappings":"AAeA;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,6DAA6D;IAC7D,cAAc,EAAE,MAAM,CAAA;IACtB,+EAA+E;IAC/E,aAAa,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACnE,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,gEAAgE;IAChE,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;CAC5B;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,+BAsJpE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface WithdrawCompleteScreenProps {
|
|
2
|
+
/** Still settling on-chain; the transfer itself is already submitted. */
|
|
3
|
+
isPending: boolean;
|
|
4
|
+
/** The relay reported a terminal failure — not merely a slow settle. */
|
|
5
|
+
isFailed?: boolean;
|
|
6
|
+
/** Failed, and the funds are on their way back to the sender. */
|
|
7
|
+
isRefunded?: boolean;
|
|
8
|
+
amountLabel: string;
|
|
9
|
+
onDone: () => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The outcome of a submitted transfer. A missing or slow record reads as "still
|
|
13
|
+
* settling" rather than a failure — it is written best-effort and the funds have
|
|
14
|
+
* already moved — but an explicit terminal failure is shown as one.
|
|
15
|
+
*/
|
|
16
|
+
export declare function WithdrawCompleteScreen({ isPending, isFailed, isRefunded, amountLabel, onDone, }: WithdrawCompleteScreenProps): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=WithdrawCompleteScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawCompleteScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCompleteScreen.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,2BAA2B;IAC1C,yEAAyE;IACzE,SAAS,EAAE,OAAO,CAAA;IAClB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iEAAiE;IACjE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,QAAgB,EAChB,UAAkB,EAClB,WAAW,EACX,MAAM,GACP,EAAE,2BAA2B,+BAyD7B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { WithdrawalFlowCallbacks } from '../flow/withdrawalFlowConfig';
|
|
2
|
+
/**
|
|
3
|
+
* Follows a submitted crypto withdrawal to a terminal state. Split from the
|
|
4
|
+
* screen so the polling query unmounts with it, and so the host is told exactly
|
|
5
|
+
* once, when the chain settles rather than when we submitted.
|
|
6
|
+
*
|
|
7
|
+
* The callbacks are fired from an effect, where a throw would unmount the tree —
|
|
8
|
+
* they arrive guarded (`guardHostCallbacks`), which is what makes that safe.
|
|
9
|
+
*/
|
|
10
|
+
export declare function WithdrawCryptoComplete({ txHash, amountLabel, callbacks, onDone, }: {
|
|
11
|
+
txHash: string;
|
|
12
|
+
amountLabel: string;
|
|
13
|
+
callbacks: WithdrawalFlowCallbacks;
|
|
14
|
+
onDone: () => void;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=WithdrawCryptoComplete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawCryptoComplete.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoComplete.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAI3E;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,WAAW,EACX,SAAS,EACT,MAAM,GACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,uBAAuB,CAAA;IAClC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,+BAgCA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { WithdrawCtaBlocker } from '../withdrawal/validation';
|
|
2
|
+
export interface WithdrawCryptoCtaProps {
|
|
3
|
+
/** What the user has left to fix, or `undefined` when the form is complete. */
|
|
4
|
+
blocker: WithdrawCtaBlocker | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* Whether the form may submit, decided by the caller — a complete form is not
|
|
7
|
+
* a submittable one, and the async verdicts that settle it (risk screening, a
|
|
8
|
+
* priced quote) are the caller's to hold.
|
|
9
|
+
*/
|
|
10
|
+
canSubmit: boolean;
|
|
11
|
+
/** A quote or screening is in flight; the form is valid but not yet priced. */
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
onPress: () => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The form's submit button. It doubles as the validation summary: the label
|
|
17
|
+
* names the single thing left to fix, so the form needs no inline error list.
|
|
18
|
+
*/
|
|
19
|
+
export declare function WithdrawCryptoCta({ blocker, canSubmit, isLoading, onPress, }: WithdrawCryptoCtaProps): import("react").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=WithdrawCryptoCta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawCryptoCta.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoCta.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAElE,MAAM,WAAW,sBAAsB;IACrC,+EAA+E;IAC/E,OAAO,EAAE,kBAAkB,GAAG,SAAS,CAAA;IACvC;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB,+EAA+E;IAC/E,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,SAAS,EACT,SAAS,EACT,OAAO,GACR,EAAE,sBAAsB,+BAoCxB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from '../flow/withdrawalFlowConfig';
|
|
2
|
+
/**
|
|
3
|
+
* The send-to-address form: what the user has typed, and the host config it is
|
|
4
|
+
* read against. The destination picker and the fee summary land in the parts
|
|
5
|
+
* that follow.
|
|
6
|
+
*/
|
|
7
|
+
export declare function WithdrawCryptoForm({ config, callbacks, title, onBack, onSubmitted, }: {
|
|
8
|
+
config: WithdrawalFlowConfig;
|
|
9
|
+
callbacks: WithdrawalFlowCallbacks;
|
|
10
|
+
title: string;
|
|
11
|
+
onBack: () => void;
|
|
12
|
+
onSubmitted: (result: {
|
|
13
|
+
txHash: string;
|
|
14
|
+
amountLabel: string;
|
|
15
|
+
}) => void;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=WithdrawCryptoForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawCryptoForm.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoForm.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAuBrC;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,SAAS,EACT,KAAK,EACL,MAAM,EACN,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,WAAW,EAAE,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACvE,+BAyNA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface WithdrawCryptoScreenProps {
|
|
3
|
+
title: string;
|
|
4
|
+
backAccessibilityLabel: string;
|
|
5
|
+
onBack: () => void;
|
|
6
|
+
/**
|
|
7
|
+
* The form. Empty for now — the amount and recipient fields, the destination
|
|
8
|
+
* picker and the fee summary are added in the parts that follow, each landing
|
|
9
|
+
* on this screen so it can be exercised as it grows.
|
|
10
|
+
*/
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
/** Submit button, pinned under the form body. */
|
|
13
|
+
cta?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/** The send-to-address withdrawal form: sheet chrome plus the form body. */
|
|
16
|
+
export declare function WithdrawCryptoScreen({ title, backAccessibilityLabel, onBack, children, cta, }: WithdrawCryptoScreenProps): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=WithdrawCryptoScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawCryptoScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOtC,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAA;IACb,sBAAsB,EAAE,MAAM,CAAA;IAC9B,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,iDAAiD;IACjD,GAAG,CAAC,EAAE,SAAS,CAAA;CAChB;AAED,4EAA4E;AAC5E,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,sBAAsB,EACtB,MAAM,EACN,QAAQ,EACR,GAAG,GACJ,EAAE,yBAAyB,+BAkC3B"}
|
|
@@ -19,6 +19,8 @@ export interface WithdrawMethodScreenProps {
|
|
|
19
19
|
* message instead of methods that would all reject.
|
|
20
20
|
*/
|
|
21
21
|
isBelowMinimum?: boolean;
|
|
22
|
+
/** Why the cash rails are missing (web's `NoCashMethodsNote`). */
|
|
23
|
+
note?: string;
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* The withdrawal payout-method picker: the entry screen of `beginWithdrawal`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawMethodScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawMethodScreen.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,yBAAyB;IACxC,sDAAsD;IACtD,OAAO,EAAE,mBAAmB,EAAE,CAAA;IAC9B,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"WithdrawMethodScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawMethodScreen.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,yBAAyB;IACxC,sDAAsD;IACtD,OAAO,EAAE,mBAAmB,EAAE,CAAA;IAC9B,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,kEAAkE;IAClE,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAuBD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,+BAyCpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildFunkitTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/buildFunkitTheme.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,UAAU,CAAA;AAYjB;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"buildFunkitTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/buildFunkitTheme.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,UAAU,CAAA;AAYjB;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4GpD"}
|
|
@@ -25,6 +25,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
25
25
|
pressed: string;
|
|
26
26
|
disabled: string;
|
|
27
27
|
};
|
|
28
|
+
overlay: string;
|
|
28
29
|
};
|
|
29
30
|
content: {
|
|
30
31
|
elements: {
|
|
@@ -201,6 +202,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
201
202
|
pressed: string;
|
|
202
203
|
disabled: string;
|
|
203
204
|
};
|
|
205
|
+
overlay: string;
|
|
204
206
|
};
|
|
205
207
|
content: {
|
|
206
208
|
elements: {
|
|
@@ -377,6 +379,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
377
379
|
pressed: string;
|
|
378
380
|
disabled: string;
|
|
379
381
|
};
|
|
382
|
+
overlay: string;
|
|
380
383
|
};
|
|
381
384
|
content: {
|
|
382
385
|
elements: {
|
|
@@ -553,6 +556,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
553
556
|
pressed: string;
|
|
554
557
|
disabled: string;
|
|
555
558
|
};
|
|
559
|
+
overlay: string;
|
|
556
560
|
};
|
|
557
561
|
content: {
|
|
558
562
|
elements: {
|
|
@@ -729,6 +733,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
729
733
|
pressed: string;
|
|
730
734
|
disabled: string;
|
|
731
735
|
};
|
|
736
|
+
overlay: string;
|
|
732
737
|
};
|
|
733
738
|
content: {
|
|
734
739
|
elements: {
|
|
@@ -1063,6 +1068,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
1063
1068
|
pressed: string;
|
|
1064
1069
|
disabled: string;
|
|
1065
1070
|
};
|
|
1071
|
+
overlay: string;
|
|
1066
1072
|
};
|
|
1067
1073
|
content: {
|
|
1068
1074
|
elements: {
|
|
@@ -1239,6 +1245,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
1239
1245
|
pressed: string;
|
|
1240
1246
|
disabled: string;
|
|
1241
1247
|
};
|
|
1248
|
+
overlay: string;
|
|
1242
1249
|
};
|
|
1243
1250
|
content: {
|
|
1244
1251
|
elements: {
|
|
@@ -1418,6 +1425,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
1418
1425
|
pressed: string;
|
|
1419
1426
|
disabled: string;
|
|
1420
1427
|
};
|
|
1428
|
+
overlay: string;
|
|
1421
1429
|
};
|
|
1422
1430
|
content: {
|
|
1423
1431
|
elements: {
|
|
@@ -1594,6 +1602,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
1594
1602
|
pressed: string;
|
|
1595
1603
|
disabled: string;
|
|
1596
1604
|
};
|
|
1605
|
+
overlay: string;
|
|
1597
1606
|
};
|
|
1598
1607
|
content: {
|
|
1599
1608
|
elements: {
|
|
@@ -1770,6 +1779,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
1770
1779
|
pressed: string;
|
|
1771
1780
|
disabled: string;
|
|
1772
1781
|
};
|
|
1782
|
+
overlay: string;
|
|
1773
1783
|
};
|
|
1774
1784
|
content: {
|
|
1775
1785
|
elements: {
|
|
@@ -1946,6 +1956,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
1946
1956
|
pressed: string;
|
|
1947
1957
|
disabled: string;
|
|
1948
1958
|
};
|
|
1959
|
+
overlay: string;
|
|
1949
1960
|
};
|
|
1950
1961
|
content: {
|
|
1951
1962
|
elements: {
|
|
@@ -2122,6 +2133,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
2122
2133
|
pressed: string;
|
|
2123
2134
|
disabled: string;
|
|
2124
2135
|
};
|
|
2136
|
+
overlay: string;
|
|
2125
2137
|
};
|
|
2126
2138
|
content: {
|
|
2127
2139
|
elements: {
|
|
@@ -2456,6 +2468,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
2456
2468
|
pressed: string;
|
|
2457
2469
|
disabled: string;
|
|
2458
2470
|
};
|
|
2471
|
+
overlay: string;
|
|
2459
2472
|
};
|
|
2460
2473
|
content: {
|
|
2461
2474
|
elements: {
|
|
@@ -2632,6 +2645,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<import("@sho
|
|
|
2632
2645
|
pressed: string;
|
|
2633
2646
|
disabled: string;
|
|
2634
2647
|
};
|
|
2648
|
+
overlay: string;
|
|
2635
2649
|
};
|
|
2636
2650
|
content: {
|
|
2637
2651
|
elements: {
|
|
@@ -2812,6 +2826,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
2812
2826
|
pressed: string;
|
|
2813
2827
|
disabled: string;
|
|
2814
2828
|
};
|
|
2829
|
+
overlay: string;
|
|
2815
2830
|
};
|
|
2816
2831
|
content: {
|
|
2817
2832
|
elements: {
|
|
@@ -2988,6 +3003,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
2988
3003
|
pressed: string;
|
|
2989
3004
|
disabled: string;
|
|
2990
3005
|
};
|
|
3006
|
+
overlay: string;
|
|
2991
3007
|
};
|
|
2992
3008
|
content: {
|
|
2993
3009
|
elements: {
|
|
@@ -3164,6 +3180,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
3164
3180
|
pressed: string;
|
|
3165
3181
|
disabled: string;
|
|
3166
3182
|
};
|
|
3183
|
+
overlay: string;
|
|
3167
3184
|
};
|
|
3168
3185
|
content: {
|
|
3169
3186
|
elements: {
|
|
@@ -3340,6 +3357,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
3340
3357
|
pressed: string;
|
|
3341
3358
|
disabled: string;
|
|
3342
3359
|
};
|
|
3360
|
+
overlay: string;
|
|
3343
3361
|
};
|
|
3344
3362
|
content: {
|
|
3345
3363
|
elements: {
|
|
@@ -3516,6 +3534,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
3516
3534
|
pressed: string;
|
|
3517
3535
|
disabled: string;
|
|
3518
3536
|
};
|
|
3537
|
+
overlay: string;
|
|
3519
3538
|
};
|
|
3520
3539
|
content: {
|
|
3521
3540
|
elements: {
|
|
@@ -3692,6 +3711,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
3692
3711
|
pressed: string;
|
|
3693
3712
|
disabled: string;
|
|
3694
3713
|
};
|
|
3714
|
+
overlay: string;
|
|
3695
3715
|
};
|
|
3696
3716
|
content: {
|
|
3697
3717
|
elements: {
|
|
@@ -3885,6 +3905,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
3885
3905
|
pressed: string;
|
|
3886
3906
|
disabled: string;
|
|
3887
3907
|
};
|
|
3908
|
+
overlay: string;
|
|
3888
3909
|
};
|
|
3889
3910
|
content: {
|
|
3890
3911
|
elements: {
|
|
@@ -4061,6 +4082,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
4061
4082
|
pressed: string;
|
|
4062
4083
|
disabled: string;
|
|
4063
4084
|
};
|
|
4085
|
+
overlay: string;
|
|
4064
4086
|
};
|
|
4065
4087
|
content: {
|
|
4066
4088
|
elements: {
|
|
@@ -4239,6 +4261,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
4239
4261
|
pressed: string;
|
|
4240
4262
|
disabled: string;
|
|
4241
4263
|
};
|
|
4264
|
+
overlay: string;
|
|
4242
4265
|
};
|
|
4243
4266
|
content: {
|
|
4244
4267
|
elements: {
|
|
@@ -4416,6 +4439,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
4416
4439
|
pressed: string;
|
|
4417
4440
|
disabled: string;
|
|
4418
4441
|
};
|
|
4442
|
+
overlay: string;
|
|
4419
4443
|
};
|
|
4420
4444
|
content: {
|
|
4421
4445
|
elements: {
|
|
@@ -4592,6 +4616,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
4592
4616
|
pressed: string;
|
|
4593
4617
|
disabled: string;
|
|
4594
4618
|
};
|
|
4619
|
+
overlay: string;
|
|
4595
4620
|
};
|
|
4596
4621
|
content: {
|
|
4597
4622
|
elements: {
|
|
@@ -4768,6 +4793,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
4768
4793
|
pressed: string;
|
|
4769
4794
|
disabled: string;
|
|
4770
4795
|
};
|
|
4796
|
+
overlay: string;
|
|
4771
4797
|
};
|
|
4772
4798
|
content: {
|
|
4773
4799
|
elements: {
|
|
@@ -4944,6 +4970,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
4944
4970
|
pressed: string;
|
|
4945
4971
|
disabled: string;
|
|
4946
4972
|
};
|
|
4973
|
+
overlay: string;
|
|
4947
4974
|
};
|
|
4948
4975
|
content: {
|
|
4949
4976
|
elements: {
|
|
@@ -5120,6 +5147,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
5120
5147
|
pressed: string;
|
|
5121
5148
|
disabled: string;
|
|
5122
5149
|
};
|
|
5150
|
+
overlay: string;
|
|
5123
5151
|
};
|
|
5124
5152
|
content: {
|
|
5125
5153
|
elements: {
|
|
@@ -5296,6 +5324,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
5296
5324
|
pressed: string;
|
|
5297
5325
|
disabled: string;
|
|
5298
5326
|
};
|
|
5327
|
+
overlay: string;
|
|
5299
5328
|
};
|
|
5300
5329
|
content: {
|
|
5301
5330
|
elements: {
|
|
@@ -5489,6 +5518,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
5489
5518
|
pressed: string;
|
|
5490
5519
|
disabled: string;
|
|
5491
5520
|
};
|
|
5521
|
+
overlay: string;
|
|
5492
5522
|
};
|
|
5493
5523
|
content: {
|
|
5494
5524
|
elements: {
|
|
@@ -5665,6 +5695,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
5665
5695
|
pressed: string;
|
|
5666
5696
|
disabled: string;
|
|
5667
5697
|
};
|
|
5698
|
+
overlay: string;
|
|
5668
5699
|
};
|
|
5669
5700
|
content: {
|
|
5670
5701
|
elements: {
|
|
@@ -5843,6 +5874,7 @@ declare const RestyleText: import("react").ForwardRefExoticComponent<import("@sh
|
|
|
5843
5874
|
pressed: string;
|
|
5844
5875
|
disabled: string;
|
|
5845
5876
|
};
|
|
5877
|
+
overlay: string;
|
|
5846
5878
|
};
|
|
5847
5879
|
content: {
|
|
5848
5880
|
elements: {
|
|
@@ -6038,6 +6070,7 @@ export declare const useTheme: () => {
|
|
|
6038
6070
|
pressed: string;
|
|
6039
6071
|
disabled: string;
|
|
6040
6072
|
};
|
|
6073
|
+
overlay: string;
|
|
6041
6074
|
};
|
|
6042
6075
|
content: {
|
|
6043
6076
|
elements: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restyle.d.ts","sourceRoot":"","sources":["../../../src/theme/restyle.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,cAAc,EAIpB,MAAM,OAAO,CAAA;AAGd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"restyle.d.ts","sourceRoot":"","sources":["../../../src/theme/restyle.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,cAAc,EAIpB,MAAM,OAAO,CAAA;AAGd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4B,CAAA;AAE7C,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,OAAO,WAAW,CAAC;IACnE;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAC1B;AAED;;;;GAIG;AACH,eAAO,MAAM,IAAI,4GAsBhB,CAAA;AAED,0EAA0E;AAC1E,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA"}
|
|
@@ -24,6 +24,7 @@ export declare function toRestyleTheme(tokens: FunkitTokens): {
|
|
|
24
24
|
pressed: string;
|
|
25
25
|
disabled: string;
|
|
26
26
|
};
|
|
27
|
+
overlay: string;
|
|
27
28
|
};
|
|
28
29
|
content: {
|
|
29
30
|
elements: {
|
|
@@ -204,6 +205,7 @@ export declare const defaultLightTheme: {
|
|
|
204
205
|
pressed: string;
|
|
205
206
|
disabled: string;
|
|
206
207
|
};
|
|
208
|
+
overlay: string;
|
|
207
209
|
};
|
|
208
210
|
content: {
|
|
209
211
|
elements: {
|
|
@@ -381,6 +383,7 @@ export declare const defaultDarkTheme: {
|
|
|
381
383
|
pressed: string;
|
|
382
384
|
disabled: string;
|
|
383
385
|
};
|
|
386
|
+
overlay: string;
|
|
384
387
|
};
|
|
385
388
|
content: {
|
|
386
389
|
elements: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toRestyleTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/toRestyleTheme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAA2B,MAAM,UAAU,CAAA;AAErE;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"toRestyleTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/toRestyleTheme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAA2B,MAAM,UAAU,CAAA;AAErE;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAElD;AAED,4EAA4E;AAC5E,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D,wFAAwF;AACxF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA8B,CAAA;AAC5D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6B,CAAA"}
|
|
@@ -65,6 +65,12 @@ export interface FunkitTokens {
|
|
|
65
65
|
pressed: string;
|
|
66
66
|
disabled: string;
|
|
67
67
|
};
|
|
68
|
+
/**
|
|
69
|
+
* Scrim dimming the host app behind the flow sheet. NOT yet a Fun Variable
|
|
70
|
+
* — the design (13315:9391) hardcodes it — so it lives here to stay
|
|
71
|
+
* per-client overridable. Fold it in when the export gains the variable.
|
|
72
|
+
*/
|
|
73
|
+
overlay: string;
|
|
68
74
|
};
|
|
69
75
|
/** `opacity/disabled` — a percentage (0–100); divide by 100 for RN `opacity`. */
|
|
70
76
|
opacity: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,QAAQ,CAAA;AAEtD,uFAAuF;AACvF,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,CAAA;AAEhD,qFAAqF;AACrF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE;QACJ;;;;WAIG;QACH,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,EAAE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,CAAA;QACrD,IAAI,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;Y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MAAM,UAAU,EAAE,YA2ExB,CAAA"}
|
|
@@ -1,38 +1,31 @@
|
|
|
1
1
|
import { type MinDepositTarget, type MinTransferConfig } from '@funkit/connect-core';
|
|
2
2
|
import type { TFunction } from 'i18next';
|
|
3
|
-
import type { ChainOption } from '../flow/depositFlowConfig';
|
|
4
|
-
import type { AvailableChain } from '../screens/AvailableChainsScreen';
|
|
5
3
|
import type { TokenChainFilter } from './supportedTokens';
|
|
6
|
-
/**
|
|
7
|
-
export
|
|
8
|
-
/**
|
|
9
|
-
|
|
4
|
+
/** A curated deposit chain the user can pick to send funds on. */
|
|
5
|
+
export interface AvailableChain {
|
|
6
|
+
/** Numeric chain id as a string. */
|
|
7
|
+
id: string;
|
|
8
|
+
/** Display name, e.g. `Ethereum`, `Binance Smart Chain`. */
|
|
9
|
+
name: string;
|
|
10
|
+
/** Full CDN logo URL. */
|
|
11
|
+
iconUri: string;
|
|
12
|
+
/** Minimum-deposit label, e.g. `$10 minimum`. */
|
|
13
|
+
minLabel?: string;
|
|
14
|
+
}
|
|
10
15
|
/**
|
|
11
|
-
* Build the
|
|
12
|
-
* `tokentransferconfig` chains resolved by `useSupportedTokens`, as
|
|
13
|
-
*
|
|
14
|
-
* minimum-deposit label.
|
|
16
|
+
* Build the chain-picker rows from the curated chain list (the
|
|
17
|
+
* `tokentransferconfig` chains resolved by `useSupportedTokens`, as chain-filter
|
|
18
|
+
* chips), enriched with `@funkit/chains` logos and the per-chain minimum.
|
|
15
19
|
*
|
|
16
20
|
* The minimum mirrors web's `TransferToken`:
|
|
17
21
|
* `ceil(getMinTransferValueForChain(chainId, mintokentransfervalue) +
|
|
18
22
|
* getMinDepositUSD(target))`.
|
|
19
23
|
*/
|
|
20
|
-
export declare function buildAvailableChains({ t, chainFilters,
|
|
24
|
+
export declare function buildAvailableChains({ t, chainFilters, minTransferLimits, target, }: {
|
|
21
25
|
t: TFunction;
|
|
22
26
|
/** `useSupportedTokens().chainFilters` — `All` + one chip per curated chain. */
|
|
23
27
|
chainFilters: TokenChainFilter[];
|
|
24
|
-
/** Representative chainId of the selected network (decides EVM vs single). */
|
|
25
|
-
networkChainId: number | undefined;
|
|
26
28
|
minTransferLimits: MinTransferConfig;
|
|
27
29
|
target?: MinDepositTarget;
|
|
28
30
|
}): AvailableChain[];
|
|
29
|
-
/**
|
|
30
|
-
* Derive the Transfer screen's network-switcher segments from the curated chain
|
|
31
|
-
* list (the `tokentransferconfig` chains resolved by `useSupportedTokens`). The
|
|
32
|
-
* networks are NOT host-configured — every EVM chain collapses into a single
|
|
33
|
-
* "EVM Chains" segment (they share one deposit address), and each non-EVM chain
|
|
34
|
-
* is its own single-chain segment. Segment glyphs use
|
|
35
|
-
* `@funkit/chains` logo URLs.
|
|
36
|
-
*/
|
|
37
|
-
export declare function buildDepositNetworks(t: TFunction, chainFilters: TokenChainFilter[]): ChainOption[];
|
|
38
31
|
//# sourceMappingURL=availableChains.d.ts.map
|