@funkit/connect-rn 3.6.0 → 3.8.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 +80 -0
- package/README.md +81 -0
- package/dist/{chunk-BNWA4HKO.js → chunk-UN5NP4RP.js} +342 -115
- package/dist/chunk-UN5NP4RP.js.map +7 -0
- package/dist/clients/lighter/index.d.ts +2 -0
- package/dist/clients/lighter/index.d.ts.map +1 -1
- package/dist/clients/lighter/lighterFastWithdrawal.d.ts.map +1 -1
- package/dist/clients/lighter/useLighterSecureWithdrawal.d.ts +42 -0
- package/dist/clients/lighter/useLighterSecureWithdrawal.d.ts.map +1 -0
- package/dist/clients/lighter/useLighterUnstakedFee.d.ts +12 -6
- package/dist/clients/lighter/useLighterUnstakedFee.d.ts.map +1 -1
- package/dist/clients/lighter/useLighterWithdrawal.d.ts.map +1 -1
- package/dist/clients/lighter/useLighterWithdrawalMethods.d.ts.map +1 -1
- package/dist/clients/lighter.js +170 -84
- package/dist/clients/lighter.js.map +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3455 -1550
- package/dist/index.js.map +4 -4
- package/dist/src/components/AmountDisplay.d.ts +18 -0
- package/dist/src/components/AmountDisplay.d.ts.map +1 -0
- package/dist/src/components/AssetGrid.d.ts +39 -0
- package/dist/src/components/AssetGrid.d.ts.map +1 -0
- package/dist/src/components/NumPad.d.ts +14 -0
- package/dist/src/components/NumPad.d.ts.map +1 -0
- package/dist/src/components/PillButton.d.ts +25 -0
- package/dist/src/components/PillButton.d.ts.map +1 -0
- package/dist/src/components/ReceiveAmountSummary.d.ts +27 -0
- package/dist/src/components/ReceiveAmountSummary.d.ts.map +1 -0
- package/dist/src/components/ReceiveAsRow.d.ts +14 -0
- package/dist/src/components/ReceiveAsRow.d.ts.map +1 -0
- package/dist/src/components/SearchInput.d.ts +15 -0
- package/dist/src/components/SearchInput.d.ts.map +1 -0
- package/dist/src/components/SelectableAssetRow.d.ts +14 -0
- package/dist/src/components/SelectableAssetRow.d.ts.map +1 -0
- package/dist/src/components/SkeletonBar.d.ts +10 -0
- package/dist/src/components/SkeletonBar.d.ts.map +1 -0
- package/dist/src/components/TopBar.d.ts +12 -0
- package/dist/src/components/TopBar.d.ts.map +1 -0
- package/dist/src/components/WalletAddressInput.d.ts +35 -0
- package/dist/src/components/WalletAddressInput.d.ts.map +1 -0
- package/dist/src/components/WithdrawSourceCard.d.ts +23 -0
- package/dist/src/components/WithdrawSourceCard.d.ts.map +1 -0
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +3 -1
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +11 -3
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts +4 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/sheetSizing.d.ts +22 -0
- package/dist/src/flow/sheetSizing.d.ts.map +1 -0
- package/dist/src/flow/useCopiedToast.d.ts.map +1 -1
- package/dist/src/flow/withdrawalFlowConfig.d.ts +7 -0
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/haptics/HapticsContext.d.ts +21 -0
- package/dist/src/haptics/HapticsContext.d.ts.map +1 -0
- package/dist/src/haptics/hapticTap.d.ts +13 -0
- package/dist/src/haptics/hapticTap.d.ts.map +1 -0
- package/dist/src/hooks/useIsStablecoin.d.ts +3 -0
- package/dist/src/hooks/useIsStablecoin.d.ts.map +1 -0
- package/dist/src/hooks/useNestedSheet.d.ts +17 -0
- package/dist/src/hooks/useNestedSheet.d.ts.map +1 -0
- package/dist/src/hooks/useNestedSheetHeight.d.ts +7 -0
- package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -0
- package/dist/src/hooks/usePulse.d.ts +7 -0
- package/dist/src/hooks/usePulse.d.ts.map +1 -0
- package/dist/src/icons/FigmaSystemIcons.d.ts +2 -0
- package/dist/src/icons/FigmaSystemIcons.d.ts.map +1 -1
- package/dist/src/icons/FunIcon.d.ts +5 -2
- package/dist/src/icons/FunIcon.d.ts.map +1 -1
- package/dist/src/icons/TokenChainIcon.d.ts +6 -1
- package/dist/src/icons/TokenChainIcon.d.ts.map +1 -1
- package/dist/src/identity/IdentityContext.d.ts +9 -0
- package/dist/src/identity/IdentityContext.d.ts.map +1 -1
- package/dist/src/providers/FunkitProvider.d.ts +17 -2
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
- package/dist/src/screens/QrCodeScreen.d.ts.map +1 -1
- package/dist/src/screens/SelectChainScreen.d.ts.map +1 -1
- package/dist/src/screens/SelectMethodScreen.d.ts.map +1 -1
- package/dist/src/screens/SelectReceiveTokenAndChainScreen.d.ts +18 -0
- package/dist/src/screens/SelectReceiveTokenAndChainScreen.d.ts.map +1 -0
- package/dist/src/screens/SelectReceiveTokenScreen.d.ts +13 -0
- package/dist/src/screens/SelectReceiveTokenScreen.d.ts.map +1 -0
- package/dist/src/screens/SelectSourceTokenScreen.d.ts.map +1 -1
- package/dist/src/screens/TransactionBreakdownScreen.d.ts +12 -0
- package/dist/src/screens/TransactionBreakdownScreen.d.ts.map +1 -0
- package/dist/src/screens/WithdrawAddressScreen.d.ts +48 -0
- package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -0
- package/dist/src/screens/WithdrawAmountScreen.d.ts +53 -0
- package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -0
- package/dist/src/screens/WithdrawCompleteScreen.d.ts +15 -4
- package/dist/src/screens/WithdrawCompleteScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCryptoComplete.d.ts +8 -1
- package/dist/src/screens/WithdrawCryptoComplete.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCryptoSteps.d.ts +40 -0
- package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -0
- package/dist/src/transfer/clipboard.d.ts +22 -0
- package/dist/src/transfer/clipboard.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useFops.d.ts +6 -0
- package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useWithdrawalFops.d.ts.map +1 -1
- package/dist/src/utils/amountGlyphs.d.ts +15 -0
- package/dist/src/utils/amountGlyphs.d.ts.map +1 -0
- package/dist/src/utils/assetGrid.d.ts +20 -0
- package/dist/src/utils/assetGrid.d.ts.map +1 -0
- package/dist/src/utils/executionErrorMessage.d.ts +13 -0
- package/dist/src/utils/executionErrorMessage.d.ts.map +1 -0
- package/dist/src/utils/formatAmount.d.ts +21 -0
- package/dist/src/utils/formatAmount.d.ts.map +1 -0
- package/dist/src/utils/motion.d.ts +3 -0
- package/dist/src/utils/motion.d.ts.map +1 -0
- package/dist/src/utils/numpadInput.d.ts +14 -0
- package/dist/src/utils/numpadInput.d.ts.map +1 -0
- package/dist/src/utils/safeArea.d.ts +3 -0
- package/dist/src/utils/safeArea.d.ts.map +1 -0
- package/dist/src/withdrawal/receiveDestination.d.ts +11 -0
- package/dist/src/withdrawal/receiveDestination.d.ts.map +1 -0
- package/dist/src/withdrawal/sourceToken.d.ts +4 -11
- package/dist/src/withdrawal/sourceToken.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts +6 -0
- package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +91 -0
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -0
- package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts +37 -0
- package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts.map +1 -0
- package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -1
- package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts +20 -0
- package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts.map +1 -0
- package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts +38 -0
- package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts.map +1 -0
- package/dist/src/withdrawal/useWithdrawalDestinationTokens.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalRisk.d.ts +2 -2
- package/dist/src/withdrawal/useWithdrawalRisk.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalStatus.d.ts +6 -2
- package/dist/src/withdrawal/useWithdrawalStatus.d.ts.map +1 -1
- package/dist/src/withdrawal/validation.d.ts +23 -5
- package/dist/src/withdrawal/validation.d.ts.map +1 -1
- package/package.json +8 -3
- package/dist/chunk-BNWA4HKO.js.map +0 -7
- package/dist/src/components/AmountInput.d.ts +0 -40
- package/dist/src/components/AmountInput.d.ts.map +0 -1
- package/dist/src/components/WithdrawFeeSummary.d.ts +0 -23
- package/dist/src/components/WithdrawFeeSummary.d.ts.map +0 -1
- package/dist/src/screens/SelectDestinationScreen.d.ts +0 -19
- package/dist/src/screens/SelectDestinationScreen.d.ts.map +0 -1
- package/dist/src/screens/WithdrawCryptoCta.d.ts +0 -20
- package/dist/src/screens/WithdrawCryptoCta.d.ts.map +0 -1
- package/dist/src/screens/WithdrawCryptoForm.d.ts +0 -28
- package/dist/src/screens/WithdrawCryptoForm.d.ts.map +0 -1
- package/dist/src/screens/WithdrawCryptoScreen.d.ts +0 -17
- package/dist/src/screens/WithdrawCryptoScreen.d.ts.map +0 -1
- package/dist/src/withdrawal/flatFee.d.ts +0 -9
- package/dist/src/withdrawal/flatFee.d.ts.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface AmountDisplayProps {
|
|
2
|
+
/** The typed amount, or `''` for the placeholder. */
|
|
3
|
+
value: string;
|
|
4
|
+
/** Written before the number. */
|
|
5
|
+
prefix?: string;
|
|
6
|
+
/** Tints the amount, matching the message that replaces the balance line. */
|
|
7
|
+
hasError?: boolean;
|
|
8
|
+
accessibilityLabel: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The withdrawal amount, read-only and driven by the numpad — it looks like a
|
|
12
|
+
* field but isn't one, so tapping it must not open a keyboard.
|
|
13
|
+
*
|
|
14
|
+
* Each character is its own node so it can move on its own: digits rise into the
|
|
15
|
+
* number and drop back out, while the placeholder lifts off the top instead.
|
|
16
|
+
*/
|
|
17
|
+
export declare function AmountDisplay({ value, prefix, hasError, accessibilityLabel, }: AmountDisplayProps): import("react").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=AmountDisplay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmountDisplay.d.ts","sourceRoot":"","sources":["../../../src/components/AmountDisplay.tsx"],"names":[],"mappings":"AA0CA,MAAM,WAAW,kBAAkB;IACjC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAA;IACb,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,MAAY,EACZ,QAAgB,EAChB,kBAAkB,GACnB,EAAE,kBAAkB,+BA0EpB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface AssetGridItemProps {
|
|
3
|
+
/** A token symbol, or a chain id. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Size it with `ASSET_GRID_AVATAR_SIZE`. */
|
|
6
|
+
icon: ReactNode;
|
|
7
|
+
label: string;
|
|
8
|
+
selected: boolean;
|
|
9
|
+
/** Offered but not pickable, e.g. a chain that doesn't carry the picked token. */
|
|
10
|
+
unsupported?: boolean;
|
|
11
|
+
onPress: () => void;
|
|
12
|
+
/** Defaults to `label`. */
|
|
13
|
+
accessibilityLabel?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface AssetGridOverflow {
|
|
16
|
+
/** Reads as a count, e.g. `+7 tokens`. */
|
|
17
|
+
label: string;
|
|
18
|
+
onPress: () => void;
|
|
19
|
+
accessibilityLabel: string;
|
|
20
|
+
}
|
|
21
|
+
export interface AssetGridProps {
|
|
22
|
+
/** Section header, e.g. "Select token". */
|
|
23
|
+
title: string;
|
|
24
|
+
items: AssetGridItemProps[];
|
|
25
|
+
/** The `+N tokens ›` row. Omit when nothing is hidden. */
|
|
26
|
+
overflow?: AssetGridOverflow;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A titled grid of asset cells, five to a row, over an optional row leading to the
|
|
30
|
+
* ones that didn't fit.
|
|
31
|
+
*
|
|
32
|
+
* Chunked into explicit rows of flexed columns, not wrapped on percentage widths:
|
|
33
|
+
* Android rounds a percentage up to the nearest physical pixel, so five 20% cells
|
|
34
|
+
* overflow their row and the fifth wraps.
|
|
35
|
+
*/
|
|
36
|
+
export declare function AssetGrid({ title, items, overflow }: AssetGridProps): import("react").JSX.Element;
|
|
37
|
+
/** One cell of the grid (Figma `icon/crypto-token` + its label). */
|
|
38
|
+
export declare function AssetGridItem({ icon, label, selected, unsupported, onPress, accessibilityLabel, }: AssetGridItemProps): import("react").JSX.Element;
|
|
39
|
+
//# sourceMappingURL=AssetGrid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssetGrid.d.ts","sourceRoot":"","sources":["../../../src/components/AssetGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAetC,MAAM,WAAW,kBAAkB;IACjC,qCAAqC;IACrC,EAAE,EAAE,MAAM,CAAA;IACV,6CAA6C;IAC7C,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,kFAAkF;IAClF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,2BAA2B;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,cAAc;IAC7B,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,kBAAkB,EAAE,CAAA;IAC3B,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC7B;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,cAAc,+BAqDnE;AAED,oEAAoE;AACpE,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,WAAmB,EACnB,OAAO,EACP,kBAAkB,GACnB,EAAE,kBAAkB,+BAkFpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { NumpadKey } from '../utils/numpadInput';
|
|
2
|
+
export interface NumPadProps {
|
|
3
|
+
onPressKey: (key: NumpadKey) => void;
|
|
4
|
+
/** The delete key carries a glyph, so its label can't come from the key. */
|
|
5
|
+
backspaceAccessibilityLabel: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The withdrawal amount keypad. Both dimensions come from the container, so
|
|
9
|
+
* the keys grow with the device rather than leaving a void above them.
|
|
10
|
+
*
|
|
11
|
+
* Emits keys rather than a value: `applyNumpadKey` owns the grammar.
|
|
12
|
+
*/
|
|
13
|
+
export declare function NumPad({ onPressKey, backspaceAccessibilityLabel, }: NumPadProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=NumPad.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumPad.d.ts","sourceRoot":"","sources":["../../../src/components/NumPad.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAgBrD,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,IAAI,CAAA;IACpC,4EAA4E;IAC5E,2BAA2B,EAAE,MAAM,CAAA;CACpC;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,EACrB,UAAU,EACV,2BAA2B,GAC5B,EAAE,WAAW,+BA6Cb"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { FunkitTheme } from '../theme/toRestyleTheme';
|
|
3
|
+
export type PillButtonSize = Extract<keyof FunkitTheme['sizes'], `button${string}`>;
|
|
4
|
+
export type PillButtonVariant = 'primary' | 'secondary';
|
|
5
|
+
export interface PillButtonProps {
|
|
6
|
+
label: string;
|
|
7
|
+
onPress: () => void;
|
|
8
|
+
/** Leading content inside the pill, e.g. a 16px icon. */
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
size?: PillButtonSize;
|
|
11
|
+
/** `secondary` is the quieter fill used for side-by-side actions. */
|
|
12
|
+
variant?: PillButtonVariant;
|
|
13
|
+
/** `element` squares the corners off where the design butts the button
|
|
14
|
+
* against a card of the same radius. */
|
|
15
|
+
radius?: Extract<keyof FunkitTheme['borderRadii'], 'button' | 'element'>;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Defaults to `label`. */
|
|
18
|
+
accessibilityLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The full-width primary action at the foot of a sheet — Confirm, Cancel, Done.
|
|
22
|
+
* Width comes from the container, so callers control the horizontal inset.
|
|
23
|
+
*/
|
|
24
|
+
export declare function PillButton({ label, onPress, icon, size, variant, radius, disabled, accessibilityLabel, }: PillButtonProps): import("react").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=PillButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PillButton.d.ts","sourceRoot":"","sources":["../../../src/components/PillButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D,MAAM,MAAM,cAAc,GAAG,OAAO,CAClC,MAAM,WAAW,CAAC,OAAO,CAAC,EAC1B,SAAS,MAAM,EAAE,CAClB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,WAAW,CAAA;AAEvD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,yDAAyD;IACzD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,qEAAqE;IACrE,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B;6CACyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,WAAW,CAAC,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAA;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2BAA2B;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,OAAO,EACP,IAAI,EACJ,IAAiB,EACjB,OAAmB,EACnB,MAAiB,EACjB,QAAgB,EAChB,kBAAkB,GACnB,EAAE,eAAe,+BA+CjB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface ReceiveAmountSummaryProps {
|
|
3
|
+
/** Sits above the label, e.g. the settled state's check. */
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
/** Names what the figure is, e.g. `You'll receive`. */
|
|
6
|
+
label: string;
|
|
7
|
+
/**
|
|
8
|
+
* The figure the screen leads with, in the user's currency. `undefined` until
|
|
9
|
+
* the quote settles, which is what the placeholders stand in for.
|
|
10
|
+
*/
|
|
11
|
+
usdLabel: string | undefined;
|
|
12
|
+
/** The same amount in the token that arrives, e.g. `99.78 USDC`. */
|
|
13
|
+
tokenLabel: string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Whether a missing figure is still on its way. `false` leaves its place
|
|
16
|
+
* empty: once the figures are frozen a placeholder would never resolve.
|
|
17
|
+
*/
|
|
18
|
+
isQuotePending?: boolean;
|
|
19
|
+
/** Opens the breakdown. Omit to drop the affordance with it. */
|
|
20
|
+
onPressBreakdown?: () => void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* What the withdrawal lands as: the figure, and the token it arrives in. The
|
|
24
|
+
* screen's centrepiece once there is a quote to show.
|
|
25
|
+
*/
|
|
26
|
+
export declare function ReceiveAmountSummary({ icon, label, usdLabel, tokenLabel, isQuotePending, onPressBreakdown, }: ReceiveAmountSummaryProps): import("react").JSX.Element;
|
|
27
|
+
//# sourceMappingURL=ReceiveAmountSummary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReceiveAmountSummary.d.ts","sourceRoot":"","sources":["../../../src/components/ReceiveAmountSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AA4CtC,MAAM,WAAW,yBAAyB;IACxC,4DAA4D;IAC5D,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,oEAAoE;IACpE,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,gEAAgE;IAChE,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,UAAU,EACV,cAAqB,EACrB,gBAAgB,GACjB,EAAE,yBAAyB,+BAmF3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { WithdrawalToken } from '../flow/withdrawalFlowConfig';
|
|
2
|
+
export interface ReceiveAsRowProps {
|
|
3
|
+
/** The picked destination, or `undefined` while the list is resolving. */
|
|
4
|
+
destinationToken: WithdrawalToken | undefined;
|
|
5
|
+
/** Opens the receive-token picker. */
|
|
6
|
+
onPress: () => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* What the withdrawal is received as, and the way to change it. Shared by the
|
|
10
|
+
* screens that show it — the row is the same on both, and a second copy is how
|
|
11
|
+
* the label and the token/chain wording drift apart.
|
|
12
|
+
*/
|
|
13
|
+
export declare function ReceiveAsRow({ destinationToken, onPress }: ReceiveAsRowProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=ReceiveAsRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReceiveAsRow.d.ts","sourceRoot":"","sources":["../../../src/components/ReceiveAsRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAKnE,MAAM,WAAW,iBAAiB;IAChC,0EAA0E;IAC1E,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;IAC7C,sCAAsC;IACtC,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAAE,gBAAgB,EAAE,OAAO,EAAE,EAAE,iBAAiB,+BAwB5E"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface SearchInputProps {
|
|
2
|
+
value: string;
|
|
3
|
+
onChangeValue: (value: string) => void;
|
|
4
|
+
placeholder: string;
|
|
5
|
+
accessibilityLabel: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A single-line filter field for long pick lists.
|
|
9
|
+
*
|
|
10
|
+
* Uses gorhom's `BottomSheetTextInput`, so the screen hosting it must set
|
|
11
|
+
* `keyboardAvoidEnabled` on `FlowSheet` — gorhom's native avoidance is inert
|
|
12
|
+
* under `enableDynamicSizing` (see `useKeyboardHeight`).
|
|
13
|
+
*/
|
|
14
|
+
export declare function SearchInput({ value, onChangeValue, placeholder, accessibilityLabel, }: SearchInputProps): import("react").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=SearchInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,aAAa,EACb,WAAW,EACX,kBAAkB,GACnB,EAAE,gBAAgB,+BAyClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface SelectableAssetRowProps {
|
|
3
|
+
name: string;
|
|
4
|
+
/** The 36px leading avatar — a token, a chain, or a token-on-chain pair. */
|
|
5
|
+
icon: ReactNode;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
/** Offered but not pickable, e.g. a chain that doesn't carry the picked token. */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onPress: () => void;
|
|
10
|
+
accessibilityLabel: string;
|
|
11
|
+
}
|
|
12
|
+
/** One row of a token or chain pick list (Figma `list-item/base`). */
|
|
13
|
+
export declare function SelectableAssetRow({ name, icon, selected, disabled, onPress, accessibilityLabel, }: SelectableAssetRowProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=SelectableAssetRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectableAssetRow.d.ts","sourceRoot":"","sources":["../../../src/components/SelectableAssetRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,4EAA4E;IAC5E,IAAI,EAAE,SAAS,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED,sEAAsE;AACtE,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,QAAgB,EAChB,OAAO,EACP,kBAAkB,GACnB,EAAE,uBAAuB,+BAqCzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface SkeletonBarProps {
|
|
2
|
+
/** Sized to the text it stands in for, so nothing moves when the value lands. */
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
/** The design rounds a text-height bar at 4, and a display-sized one further. */
|
|
6
|
+
borderRadius?: number;
|
|
7
|
+
}
|
|
8
|
+
/** A value that hasn't arrived yet. */
|
|
9
|
+
export declare function SkeletonBar({ width, height, borderRadius, }: SkeletonBarProps): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=SkeletonBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkeletonBar.d.ts","sourceRoot":"","sources":["../../../src/components/SkeletonBar.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,gBAAgB;IAC/B,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,iFAAiF;IACjF,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,uCAAuC;AACvC,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,MAAM,EACN,YAAgB,GACjB,EAAE,gBAAgB,+BAelB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface TopBarProps {
|
|
2
|
+
title: string;
|
|
3
|
+
/** Pops the screen. Omit at the root of a flow. */
|
|
4
|
+
onBack?: () => void;
|
|
5
|
+
/** Ends the flow. Omit where this screen can't be abandoned. */
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The sheet's header: back, title, close.
|
|
10
|
+
*/
|
|
11
|
+
export declare function TopBar({ title, onBack, onClose }: TopBarProps): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=TopBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../../src/components/TopBar.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,WAAW,+BAwC7D"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface WalletAddressInputProps {
|
|
2
|
+
value: string;
|
|
3
|
+
onChangeText: (value: string) => void;
|
|
4
|
+
/**
|
|
5
|
+
* Whether what has been typed is an address at all. `undefined` while the
|
|
6
|
+
* field is empty, where the design shows no verdict either way.
|
|
7
|
+
*/
|
|
8
|
+
isAddress: boolean | undefined;
|
|
9
|
+
/** Fills the field from the clipboard. */
|
|
10
|
+
onPaste: () => void;
|
|
11
|
+
/**
|
|
12
|
+
* A clipboard read is out. The read can block for seconds on the OS
|
|
13
|
+
* permission prompt, so Paste is held down until it lands rather than letting
|
|
14
|
+
* a second tap queue a second read.
|
|
15
|
+
*/
|
|
16
|
+
isPasting?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Fills the field with the connected wallet's own address. Omit to drop the
|
|
19
|
+
* shortcut (see `disableConnectedWallet` on the flow config).
|
|
20
|
+
*/
|
|
21
|
+
onUseConnected?: () => void;
|
|
22
|
+
/** A reason the address can't be used, past being well-formed. */
|
|
23
|
+
errorText?: string;
|
|
24
|
+
/** Non-blocking caution, e.g. a flagged-address notice. */
|
|
25
|
+
warningText?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The recipient field: the address, its verdict, and the two ways to fill it.
|
|
29
|
+
*
|
|
30
|
+
* `Paste` is the primary action while the field is empty — an address is pasted
|
|
31
|
+
* far more often than typed — and gives way to the quieter pair once there is
|
|
32
|
+
* something to clear.
|
|
33
|
+
*/
|
|
34
|
+
export declare function WalletAddressInput({ value, onChangeText, isAddress, onPaste, isPasting, onUseConnected, errorText, warningText, }: WalletAddressInputProps): import("react").JSX.Element;
|
|
35
|
+
//# sourceMappingURL=WalletAddressInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletAddressInput.d.ts","sourceRoot":"","sources":["../../../src/components/WalletAddressInput.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC;;;OAGG;IACH,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,0CAA0C;IAC1C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,YAAY,EACZ,SAAS,EACT,OAAO,EACP,SAAiB,EACjB,cAAc,EACd,SAAS,EACT,WAAW,GACZ,EAAE,uBAAuB,+BAiIzB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface WithdrawSourceCardProps {
|
|
3
|
+
/** The 36px token-on-chain avatar. */
|
|
4
|
+
icon: ReactNode;
|
|
5
|
+
/** The source as the host names it, e.g. `USDC (Perps)`. */
|
|
6
|
+
title: string;
|
|
7
|
+
/** The spendable balance, already grouped and denominated. */
|
|
8
|
+
subtitle?: string;
|
|
9
|
+
useMaxLabel: string;
|
|
10
|
+
/** Omitted once an amount is typed, or when no balance is known. */
|
|
11
|
+
onUseMax?: () => void;
|
|
12
|
+
/** Omitted when the host offers a single source — nothing to pick. */
|
|
13
|
+
onPress?: () => void;
|
|
14
|
+
accessibilityLabel: string;
|
|
15
|
+
/** Squares the foot of the card off for the button that overlaps it. */
|
|
16
|
+
attachedToButton?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* What the withdrawal is drawn from, sitting above the keypad: the source
|
|
20
|
+
* token, its balance, and the shortcut that spends all of it.
|
|
21
|
+
*/
|
|
22
|
+
export declare function WithdrawSourceCard({ icon, title, subtitle, useMaxLabel, onUseMax, onPress, accessibilityLabel, attachedToButton, }: WithdrawSourceCardProps): import("react").JSX.Element;
|
|
23
|
+
//# sourceMappingURL=WithdrawSourceCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawSourceCard.d.ts","sourceRoot":"","sources":["../../../src/components/WithdrawSourceCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAqBtC,MAAM,WAAW,uBAAuB;IACtC,sCAAsC;IACtC,IAAI,EAAE,SAAS,CAAA;IACf,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAA;IACb,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,OAAO,EACP,kBAAkB,EAClB,gBAAwB,GACzB,EAAE,uBAAuB,+BAoGzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAA;AAgCxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAS5D,OAAO,KAAK,EAEV,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAI5B,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAwB/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,OAAO,EACP,GAAG,EACH,eAAe,EACf,aAAa,EACb,SAAS,GACV,EAAE;IACD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,eAAe,EAAE,eAAe,CAAA;IAChC,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CA6OZ"}
|
|
@@ -28,6 +28,8 @@ export interface FlowSheetProps {
|
|
|
28
28
|
*/
|
|
29
29
|
keyboardAvoidEnabled?: boolean;
|
|
30
30
|
enableSwipeToDismiss?: boolean;
|
|
31
|
+
/** Let the sheet reach the top of the screen for a screen that is a full window tall. */
|
|
32
|
+
fullHeight?: boolean;
|
|
31
33
|
/** Optional blur behind the scrim. See {@link BackdropBlurRenderer}. */
|
|
32
34
|
renderBackdropBlur?: BackdropBlurRenderer;
|
|
33
35
|
}
|
|
@@ -41,7 +43,7 @@ export interface FlowSheetProps {
|
|
|
41
43
|
* `react-native-gesture-handler`, `react-native-reanimated`) and a
|
|
42
44
|
* `<GestureHandlerRootView>` at the app root.
|
|
43
45
|
*/
|
|
44
|
-
export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, renderBackdropBlur, }: FlowSheetProps): import("react").JSX.Element;
|
|
46
|
+
export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, fullHeight, renderBackdropBlur, }: FlowSheetProps): import("react").JSX.Element;
|
|
45
47
|
/**
|
|
46
48
|
* Sheet surface for the flow modal. gorhom sizes the sheet body to its content,
|
|
47
49
|
* so a flat background fills only the content area; over-dragging the sheet
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAEd,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;
|
|
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;AAQ7B;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kDAAkD;IAClD,OAAO,EAAE,SAAS,CAAA;IAClB,yDAAyD;IACzD,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,yFAAyF;IACzF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;CAC1C;AAQD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,EAC3B,UAAkB,EAClB,kBAAkB,GACnB,EAAE,cAAc,+BAyIhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,KAAK,GACN,EAAE,0BAA0B,+BAgB5B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import { type ClipboardWriter } from '../transfer/clipboard';
|
|
2
|
+
import { type ClipboardReader, type ClipboardWriter } from '../transfer/clipboard';
|
|
3
3
|
import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
|
|
4
4
|
import { type BackdropBlurRenderer } from './FlowSheet';
|
|
5
5
|
import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawalFlowConfig';
|
|
6
|
-
export type FlowScreen = 'addMoney' | 'transfer' | 'swapped' | 'withdrawMethod' | '
|
|
6
|
+
export type FlowScreen = 'addMoney' | 'transfer' | 'swapped' | 'withdrawMethod' | 'withdrawAmount' | 'withdrawAddress' | 'withdrawReceiveToken' | 'withdrawComplete';
|
|
7
7
|
interface FunkitFlowContextValue {
|
|
8
8
|
/** Open the managed deposit flow at the Add money screen. */
|
|
9
9
|
beginDeposit: (config: DepositFlowConfig, callbacks?: DepositFlowCallbacks) => void;
|
|
@@ -17,6 +17,12 @@ export interface FlowNav {
|
|
|
17
17
|
back: () => void;
|
|
18
18
|
/** Replace the whole stack with a single screen (never closes the sheet). */
|
|
19
19
|
reset: (s: FlowScreen) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Pop back to `s`, however many screens deep it is — what `back` can't do once
|
|
22
|
+
* a step lands between two that navigate to each other. A no-op when `s` isn't
|
|
23
|
+
* on the stack.
|
|
24
|
+
*/
|
|
25
|
+
popTo: (s: FlowScreen) => void;
|
|
20
26
|
closeFlow: () => void;
|
|
21
27
|
}
|
|
22
28
|
/**
|
|
@@ -25,10 +31,12 @@ export interface FlowNav {
|
|
|
25
31
|
* (host apps never render them directly), mirroring how `@funkit/connect`'s
|
|
26
32
|
* `FunkitProvider` owns the checkout modal.
|
|
27
33
|
*/
|
|
28
|
-
export declare function FunkitFlowProvider({ children, copyToClipboard, renderBackdropBlur, }: {
|
|
34
|
+
export declare function FunkitFlowProvider({ children, copyToClipboard, pasteFromClipboard, renderBackdropBlur, }: {
|
|
29
35
|
children: ReactNode;
|
|
30
36
|
/** Host clipboard override; defaults to the bare-RN clipboard peer. */
|
|
31
37
|
copyToClipboard?: ClipboardWriter;
|
|
38
|
+
/** Host clipboard-read override; defaults to the bare-RN clipboard peer. */
|
|
39
|
+
pasteFromClipboard?: ClipboardReader;
|
|
32
40
|
/** Host blur under the sheet's scrim. See {@link BackdropBlurRenderer}. */
|
|
33
41
|
renderBackdropBlur?: BackdropBlurRenderer;
|
|
34
42
|
}): import("react").JSX.Element;
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAId,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EAIrB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,KAAK,oBAAoB,EAAa,MAAM,aAAa,CAAA;AAIlE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAE/B,MAAM,MAAM,UAAU,GAClB,UAAU,GACV,UAAU,GACV,SAAS,GACT,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,GACjB,sBAAsB,GACtB,kBAAkB,CAAA;AA6CtB,UAAU,sBAAsB;IAC9B,6DAA6D;IAC7D,YAAY,EAAE,CACZ,MAAM,EAAE,iBAAiB,EACzB,SAAS,CAAC,EAAE,oBAAoB,KAC7B,IAAI,CAAA;IACT,oEAAoE;IACpE,eAAe,EAAE,CACf,MAAM,EAAE,oBAAoB,EAC5B,SAAS,CAAC,EAAE,uBAAuB,KAChC,IAAI,CAAA;IACT,sBAAsB;IACtB,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAID,MAAM,WAAW,OAAO;IACtB,QAAQ,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IACjC,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,6EAA6E;IAC7E,KAAK,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC9B;;;;OAIG;IACH,KAAK,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC9B,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,eAAwC,EACxC,kBAA8C,EAC9C,kBAAkB,GACnB,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,uEAAuE;IACvE,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,4EAA4E;IAC5E,kBAAkB,CAAC,EAAE,eAAe,CAAA;IACpC,2EAA2E;IAC3E,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;CAC1C,+BA0KA;AAID,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
+
import type { SafeClipboardReader } from '../transfer/clipboard';
|
|
2
3
|
import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
|
|
3
4
|
import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawalFlowConfig';
|
|
4
5
|
/**
|
|
@@ -9,10 +10,12 @@ import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawal
|
|
|
9
10
|
* FlowContent, mounted only while a withdrawal flow is open so its
|
|
10
11
|
* queries run only then.
|
|
11
12
|
*/
|
|
12
|
-
export declare function WithdrawalFlowContent({ config, callbacks, current, nav, }: {
|
|
13
|
+
export declare function WithdrawalFlowContent({ config, callbacks, current, nav, pasteFromClipboard, }: {
|
|
13
14
|
config: WithdrawalFlowConfig;
|
|
14
15
|
callbacks: WithdrawalFlowCallbacks;
|
|
15
16
|
current: FlowScreen | undefined;
|
|
16
17
|
nav: FlowNav;
|
|
18
|
+
/** Fills the recipient field on the address step. Guarded upstream. */
|
|
19
|
+
pasteFromClipboard: SafeClipboardReader;
|
|
17
20
|
}): ReactNode;
|
|
18
21
|
//# sourceMappingURL=WithdrawalFlowContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAiB7D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAW/B;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,
|
|
1
|
+
{"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAiB7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAW/B;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,EACH,kBAAkB,GACnB,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,uEAAuE;IACvE,kBAAkB,EAAE,mBAAmB,CAAA;CACxC,GAAG,SAAS,CA8OZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AAEpC,YAAY,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAEvE;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,GAC7D,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAA;AAE5C;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,2BAA2B,EAAE,GAAG,SAAS,EACrD,gBAAgB,EAAE,MAAM,GAAG,SAAS,GACnC,2BAA2B,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AAEpC,YAAY,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAEvE;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,GAC7D,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAA;AAE5C;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,2BAA2B,EAAE,GAAG,SAAS,EACrD,gBAAgB,EAAE,MAAM,GAAG,SAAS,GACnC,2BAA2B,GAAG,SAAS,CAczC;AAED;;;GAGG;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;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;OAKG;IACH,4BAA4B,CAAC,EAAE,2BAA2B,EAAE,CAAA;IAC5D;;;;;OAKG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAA;IACtC;;;OAGG;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,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sizing props for a `BottomSheetModal`; `topInset` stays with the caller. A
|
|
3
|
+
* gorhom scrollable reports only its own height, so a screen with one can't be
|
|
4
|
+
* measured — it takes a fixed detent and sizes itself.
|
|
5
|
+
*/
|
|
6
|
+
export declare function sheetSizing({ fullHeight }: {
|
|
7
|
+
fullHeight: boolean;
|
|
8
|
+
}): {
|
|
9
|
+
enableDynamicSizing: boolean;
|
|
10
|
+
snapPoints: string[];
|
|
11
|
+
} | {
|
|
12
|
+
enableDynamicSizing: boolean;
|
|
13
|
+
snapPoints?: undefined;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* `focusHook` that keeps `BottomSheetView`'s measuring but drops its
|
|
17
|
+
* static-view registration, which over-drags the sheet on first touch. Calls
|
|
18
|
+
* `useEffect` the way the default does, deps argument and all: React rejects a
|
|
19
|
+
* slot whose argument count changes when a screen flips between the two.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useInertScrollableFocus(_register: () => void): void;
|
|
22
|
+
//# sourceMappingURL=sheetSizing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheetSizing.d.ts","sourceRoot":"","sources":["../../../src/flow/sheetSizing.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE;;;;;;EAIlE;AAID;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,IAAI,QAE5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCopiedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/useCopiedToast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAA;AAoBhF,UAAU,WAAW;IACnB,yEAAyE;IACzE,KAAK,EAAE,SAAS,CAAA;IAChB,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,IAAI,WAAW,
|
|
1
|
+
{"version":3,"file":"useCopiedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/useCopiedToast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAA;AAoBhF,UAAU,WAAW;IACnB,yEAAyE;IACzE,KAAK,EAAE,SAAS,CAAA;IAChB,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAoD5C"}
|
|
@@ -114,6 +114,13 @@ export interface WithdrawalFlowConfig {
|
|
|
114
114
|
* not the fee summary.
|
|
115
115
|
*/
|
|
116
116
|
quoteInputFeeTokens?: number;
|
|
117
|
+
/**
|
|
118
|
+
* Whether `quoteInputFeeTokens` is the real fee yet, or a not-yet-resolved
|
|
119
|
+
* placeholder. Defaults to `true` (no fee to wait on). While `false`, the
|
|
120
|
+
* crypto rail holds off quoting rather than pricing a fee that is about to
|
|
121
|
+
* change under the user.
|
|
122
|
+
*/
|
|
123
|
+
quoteInputFeeSettled?: boolean;
|
|
117
124
|
/**
|
|
118
125
|
* A fee the venue bills as source-chain gas, in USD, added to the summary's
|
|
119
126
|
* network cost. Leave it unset when the quote's own gas figure already carries
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withdrawalFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/withdrawalFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC;;;;GAIG;AACH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IAC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AAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACzD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A short tactile tap confirming a discrete input, such as a keypad press.
|
|
4
|
+
*
|
|
5
|
+
* Taps are part of the design rather than a garnish, so the SDK provides them
|
|
6
|
+
* itself from the optional `react-native-haptic-feedback` peer — see
|
|
7
|
+
* {@link hapticTap}. Hosts on another module (`expo-haptics` in Expo Go), or
|
|
8
|
+
* wanting silence, pass their own through `FunkitProvider`.
|
|
9
|
+
*/
|
|
10
|
+
export type HapticFeedback = () => void | Promise<void>;
|
|
11
|
+
export declare function FunkitHapticsProvider({ hapticFeedback, children, }: {
|
|
12
|
+
hapticFeedback?: HapticFeedback;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
15
|
+
/**
|
|
16
|
+
* Fire-and-forget haptics. A host's native module must never take a keypress
|
|
17
|
+
* down with it, so a throw or a rejection is swallowed — the key still registers
|
|
18
|
+
* and the amount still changes.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useHapticFeedback(): () => void;
|
|
21
|
+
//# sourceMappingURL=HapticsContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HapticsContext.d.ts","sourceRoot":"","sources":["../../../src/haptics/HapticsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA0C,MAAM,OAAO,CAAA;AAK9E;;;;;;;GAOG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AAIvD,wBAAgB,qBAAqB,CAAC,EACpC,cAA0B,EAC1B,QAAQ,GACT,EAAE;IACD,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAMA;AAMD;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,IAAI,CAmB9C"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default haptics: lazily loads the optional `react-native-haptic-feedback`
|
|
3
|
+
* peer and taps through it. A host without it taps silently; one that wants a
|
|
4
|
+
* different module passes it to `FunkitProvider` as `hapticFeedback` instead —
|
|
5
|
+
* which is what an Expo Go app does, since it can only link Expo's own modules.
|
|
6
|
+
*
|
|
7
|
+
* The import is dynamic and inside a `try`, which is what makes the peer
|
|
8
|
+
* genuinely optional: Metro marks a dependency optional when its import can
|
|
9
|
+
* reject, and skips it at resolution rather than failing the bundle. It also
|
|
10
|
+
* keeps the native module unevaluated until a tap actually happens.
|
|
11
|
+
*/
|
|
12
|
+
export declare function hapticTap(): Promise<void>;
|
|
13
|
+
//# sourceMappingURL=hapticTap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hapticTap.d.ts","sourceRoot":"","sources":["../../../src/haptics/hapticTap.ts"],"names":[],"mappings":"AASA;;;;;;;;;;GAUG;AACH,wBAAsB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAI/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsStablecoin.d.ts","sourceRoot":"","sources":["../../../src/hooks/useIsStablecoin.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,cAAc,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAA;AAExD,wBAAgB,eAAe,IAAI,cAAc,CAShD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BottomSheetBackdrop, type BottomSheetModal } from '@gorhom/bottom-sheet';
|
|
2
|
+
import { type ComponentProps, type ReactNode, type RefObject } from 'react';
|
|
3
|
+
export interface NestedSheet<TScreen extends string> {
|
|
4
|
+
nestedSheetRef: RefObject<BottomSheetModal | null>;
|
|
5
|
+
nestedScreen: TScreen | null;
|
|
6
|
+
setNestedScreen: (screen: TScreen | null) => void;
|
|
7
|
+
openNestedScreen: (screen: TScreen) => void;
|
|
8
|
+
closeNestedScreen: () => void;
|
|
9
|
+
renderNestedBackdrop: (props: ComponentProps<typeof BottomSheetBackdrop>) => ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Which overlay screen is showing, plus the sheet handle and backdrop the
|
|
13
|
+
* caller feeds to its BottomSheetModal. `TScreen` is the flow's own union of
|
|
14
|
+
* overlay screen names, so each flow keeps its screens typed to its own set.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useNestedSheet<TScreen extends string>(): NestedSheet<TScreen>;
|
|
17
|
+
//# sourceMappingURL=useNestedSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNestedSheet.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNestedSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAEd,MAAM,WAAW,WAAW,CAAC,OAAO,SAAS,MAAM;IACjD,cAAc,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAA;IAClD,YAAY,EAAE,OAAO,GAAG,IAAI,CAAA;IAC5B,eAAe,EAAE,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IACjD,gBAAgB,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;IAC3C,iBAAiB,EAAE,MAAM,IAAI,CAAA;IAC7B,oBAAoB,EAAE,CACpB,KAAK,EAAE,cAAc,CAAC,OAAO,mBAAmB,CAAC,KAC9C,SAAS,CAAA;CACf;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,SAAS,MAAM,KAAK,WAAW,CAAC,OAAO,CAAC,CAiC7E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fills a nested sheet — the same `insets.top` its `BottomSheetModal` is capped
|
|
3
|
+
* by, so the screen and the sheet can't drift apart. A `FlowSheet` step waives
|
|
4
|
+
* that cap (`topInset={0}`) and takes the whole window instead.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useNestedSheetHeight(): number;
|
|
7
|
+
//# sourceMappingURL=useNestedSheetHeight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNestedSheetHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNestedSheetHeight.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,oBAAoB,WAInC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Animated } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* The breathing opacity every loading placeholder shares, so two skeletons on
|
|
4
|
+
* screen at once pulse as one thing rather than two.
|
|
5
|
+
*/
|
|
6
|
+
export declare function usePulse(): Animated.Value;
|
|
7
|
+
//# sourceMappingURL=usePulse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePulse.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePulse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAKvC;;;GAGG;AACH,wBAAgB,QAAQ,mBAqBvB"}
|