@funkit/connect-rn 3.5.0 → 3.7.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 +88 -0
- package/README.md +81 -0
- package/dist/chunk-VDKAH5Y5.js +1433 -0
- package/dist/chunk-VDKAH5Y5.js.map +7 -0
- package/dist/clients/lighter/index.d.ts +7 -0
- package/dist/clients/lighter/index.d.ts.map +1 -0
- package/dist/clients/lighter/lighterFastWithdrawal.d.ts +42 -0
- package/dist/clients/lighter/lighterFastWithdrawal.d.ts.map +1 -0
- package/dist/clients/lighter/lighterWithdrawalConfig.d.ts +70 -0
- package/dist/clients/lighter/lighterWithdrawalConfig.d.ts.map +1 -0
- 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 +15 -0
- package/dist/clients/lighter/useLighterUnstakedFee.d.ts.map +1 -0
- package/dist/clients/lighter/useLighterWithdrawal.d.ts +21 -0
- package/dist/clients/lighter/useLighterWithdrawal.d.ts.map +1 -0
- package/dist/clients/lighter/useLighterWithdrawalMethods.d.ts +29 -0
- package/dist/clients/lighter/useLighterWithdrawalMethods.d.ts.map +1 -0
- package/dist/clients/lighter.d.ts +1 -0
- package/dist/clients/lighter.js +448 -0
- package/dist/clients/lighter.js.map +7 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7278 -6356
- 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/SheetContent.d.ts +25 -0
- package/dist/src/components/SheetContent.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 +19 -0
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -0
- 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 +18 -2
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts +21 -0
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -0
- package/dist/src/flow/useCopiedToast.d.ts +18 -0
- package/dist/src/flow/useCopiedToast.d.ts.map +1 -0
- package/dist/src/flow/withdrawalFlowConfig.d.ts +39 -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 +12 -2
- 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/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 +16 -0
- package/dist/src/screens/SelectSourceTokenScreen.d.ts.map +1 -0
- 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 +39 -0
- package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -0
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +2 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWithdrawScreen.d.ts.map +1 -1
- package/dist/src/transfer/clipboard.d.ts +22 -0
- package/dist/src/transfer/clipboard.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 +8 -2
- package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +89 -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/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 +24 -6
- package/dist/src/withdrawal/validation.d.ts.map +1 -1
- package/package.json +12 -3
- 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 -17
- 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 -17
- 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
|
@@ -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"}
|
|
@@ -12,9 +12,11 @@ export declare function FigmaSuccessCheckIcon({ size }: {
|
|
|
12
12
|
size?: number;
|
|
13
13
|
}): import("react").JSX.Element;
|
|
14
14
|
export declare function FigmaChevronDownIcon({ size, color }: IconProps): import("react").JSX.Element;
|
|
15
|
+
export declare function FigmaSwapIcon({ size, color }: IconProps): import("react").JSX.Element;
|
|
15
16
|
export declare function FigmaCheckIcon({ size, color }: IconProps): import("react").JSX.Element;
|
|
16
17
|
export declare function FigmaInfoCircleIcon({ size, color }: IconProps): import("react").JSX.Element;
|
|
17
18
|
export declare function FigmaPlusIcon({ size, color }: IconProps): import("react").JSX.Element;
|
|
19
|
+
export declare function FigmaSearchIcon({ size, color }: IconProps): import("react").JSX.Element;
|
|
18
20
|
export declare function FigmaAlertCircleIcon({ size, color }: IconProps): import("react").JSX.Element;
|
|
19
21
|
export {};
|
|
20
22
|
//# sourceMappingURL=FigmaSystemIcons.d.ts.map
|
|
@@ -1 +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;
|
|
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;AA0DD,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,aAAa,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE5D;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;AAOD,wBAAgB,eAAe,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE9D;AAKD,wBAAgB,oBAAoB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAEnE"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Renders a Fun CDN icon. SVG URLs (chain logos) are fetched, viewBox-normalized
|
|
3
|
-
* and drawn via `
|
|
4
|
-
*
|
|
3
|
+
* and drawn via `SvgCss` (RN's built-in `Image` can't render SVG); raster URLs
|
|
4
|
+
* (token PNGs) go through `Image`. Clipped to a circle.
|
|
5
|
+
*
|
|
6
|
+
* `SvgCss` over `SvgXml` because many CDN logos style their paths only through a
|
|
7
|
+
* `<style>` block, which `SvgXml` drops — leaving them to paint black.
|
|
5
8
|
*/
|
|
6
9
|
export interface FunIconProps {
|
|
7
10
|
uri: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/FunIcon.tsx"],"names":[],"mappings":"AA8BA
|
|
1
|
+
{"version":3,"file":"FunIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/FunIcon.tsx"],"names":[],"mappings":"AA8BA;;;;;;;GAOG;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,+BAoGpE"}
|
|
@@ -13,7 +13,12 @@ export interface TokenChainIconProps {
|
|
|
13
13
|
iconSrc?: string;
|
|
14
14
|
/** CDN chain key for the badge overlay, e.g. `"ethereum"`. Omit to hide it. */
|
|
15
15
|
chainKey?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Direct URL for the badge — preferred over `chainKey`, and the way to badge
|
|
18
|
+
* by chain id, whose logo comes from `@funkit/chains` rather than the CDN key.
|
|
19
|
+
*/
|
|
20
|
+
chainIconSrc?: string;
|
|
16
21
|
size?: number;
|
|
17
22
|
}
|
|
18
|
-
export declare function TokenChainIcon({ symbol, iconSrc, chainKey, size, }: TokenChainIconProps): import("react").JSX.Element;
|
|
23
|
+
export declare function TokenChainIcon({ symbol, iconSrc, chainKey, chainIconSrc, size, }: TokenChainIconProps): import("react").JSX.Element;
|
|
19
24
|
//# sourceMappingURL=TokenChainIcon.d.ts.map
|
|
@@ -1 +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,+
|
|
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;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,IAAS,GACV,EAAE,mBAAmB,+BA+BrB"}
|
|
@@ -43,13 +43,23 @@ export interface FunkitConfig {
|
|
|
43
43
|
*/
|
|
44
44
|
prefillFiatEmail?: string;
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Stands in for `walletAddress` when the host supplies none. Not a valid
|
|
48
|
+
* address — callers that surface it to the user must check for it.
|
|
49
|
+
*/
|
|
50
|
+
export declare const UNSET_WALLET_ADDRESS = "0x";
|
|
51
|
+
/**
|
|
52
|
+
* Whether the host's address can be put in front of the user — offered as a
|
|
53
|
+
* withdrawal recipient, the zero address burns the funds.
|
|
54
|
+
*/
|
|
55
|
+
export declare function isUsableWalletAddress(address: string | undefined): boolean;
|
|
46
56
|
/**
|
|
47
57
|
* Resolve the host's {@link FunkitConfig} + connected wallet address into the
|
|
48
58
|
* internal {@link FunkitIdentity} the transfer hooks read. Mirrors the web
|
|
49
59
|
* default (non-customer) path of `resolveUserId`/`resolveWalletAddress`: prefer
|
|
50
60
|
* a synthetic id from `externalUserId`, else fall back to the wallet address;
|
|
51
|
-
* missing values become
|
|
52
|
-
* (see `getCheckoutTokenTransferParams`).
|
|
61
|
+
* missing values become {@link UNSET_WALLET_ADDRESS}, which disables the
|
|
62
|
+
* transfer query (see `getCheckoutTokenTransferParams`).
|
|
53
63
|
*/
|
|
54
64
|
export declare function resolveFunkitIdentity(config: FunkitConfig, walletAddress: string | undefined): FunkitIdentity;
|
|
55
65
|
export declare function FunkitIdentityProvider({ identity, children, }: {
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"IdentityContext.d.ts","sourceRoot":"","sources":["../../../src/identity/IdentityContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAA;AAIjE;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAA;IACrB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAgBD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,OAAO,CAAA;AASxC;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAM1E;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,cAAc,CAYhB;AAID,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,cAAc,CAAA;IACxB,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAMA;AAED,wBAAgB,iBAAiB,IAAI,cAAc,CAQlD"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { QueryClient } from '@tanstack/react-query';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
3
|
import type { BackdropBlurRenderer } from '../flow/FlowSheet';
|
|
4
|
+
import { type HapticFeedback } from '../haptics/HapticsContext';
|
|
4
5
|
import { type FunkitConfig } from '../identity/IdentityContext';
|
|
5
6
|
import type { Locale } from '../locales/i18n';
|
|
6
7
|
import { type FunkitThemeProviderProps } from '../theme/FunkitThemeProvider';
|
|
7
|
-
import type { ClipboardWriter } from '../transfer/clipboard';
|
|
8
|
+
import type { ClipboardReader, ClipboardWriter } from '../transfer/clipboard';
|
|
8
9
|
export interface FunkitProviderProps {
|
|
9
10
|
children: ReactNode;
|
|
10
11
|
/**
|
|
@@ -56,6 +57,12 @@ export interface FunkitProviderProps {
|
|
|
56
57
|
* `void` return is treated as success.
|
|
57
58
|
*/
|
|
58
59
|
copyToClipboard?: ClipboardWriter;
|
|
60
|
+
/**
|
|
61
|
+
* Clipboard read behind the withdrawal's "Paste" button. Defaults to the same
|
|
62
|
+
* bare-RN peer as {@link FunkitProviderProps.copyToClipboard} — inject your own
|
|
63
|
+
* (e.g. `getStringAsync` from `expo-clipboard`) where that module isn't linked.
|
|
64
|
+
*/
|
|
65
|
+
pasteFromClipboard?: ClipboardReader;
|
|
59
66
|
/**
|
|
60
67
|
* Blur behind the flow sheet's scrim. The SDK ships the scrim only (no native
|
|
61
68
|
* blur dependency), so pass your own blur view — e.g.
|
|
@@ -63,6 +70,14 @@ export interface FunkitProviderProps {
|
|
|
63
70
|
* design's blurred backdrop.
|
|
64
71
|
*/
|
|
65
72
|
renderBackdropBlur?: BackdropBlurRenderer;
|
|
73
|
+
/**
|
|
74
|
+
* Tactile tap for the withdrawal keypad. Omitted, the SDK taps through the
|
|
75
|
+
* optional `react-native-haptic-feedback` peer when it is installed, and
|
|
76
|
+
* stays silent when it isn't. Pass your own to use another module —
|
|
77
|
+
* `expo-haptics` in Expo Go, which links only Expo's own — or a no-op for
|
|
78
|
+
* silence.
|
|
79
|
+
*/
|
|
80
|
+
hapticFeedback?: HapticFeedback;
|
|
66
81
|
}
|
|
67
82
|
/**
|
|
68
83
|
* Top-level, user-facing provider for `@funkit/connect-rn` — the single
|
|
@@ -75,5 +90,5 @@ export interface FunkitProviderProps {
|
|
|
75
90
|
* the {@link QueryClientProvider}. Host integration stays a single
|
|
76
91
|
* `<FunkitProvider>`.
|
|
77
92
|
*/
|
|
78
|
-
export declare function FunkitProvider({ children, config, walletAddress, queryClient, themes, colorScheme, debug, locale, copyToClipboard, renderBackdropBlur, }: FunkitProviderProps): import("react").JSX.Element;
|
|
93
|
+
export declare function FunkitProvider({ children, config, walletAddress, queryClient, themes, colorScheme, debug, locale, copyToClipboard, pasteFromClipboard, renderBackdropBlur, hapticFeedback, }: FunkitProviderProps): import("react").JSX.Element;
|
|
79
94
|
//# 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,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE7C,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;
|
|
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,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE7C,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAK7E,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAA;IAC3C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC,aAAa,CAAC,CAAA;IACrD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,eAAe,CAAA;IACpC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IACzC;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC;AA8BD;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,MAAM,EACN,aAAa,EACb,WAAW,EACX,MAAM,EACN,WAAW,EACX,KAAoB,EACpB,MAAM,EACN,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,GACf,EAAE,mBAAmB,+BA6DrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectChainScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectChainScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectChainScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectChainScreen.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAEjE,UAAU,cAAc;IACtB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,cAAc,CAAA;IAC9B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAA;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAqE9D;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAwD9D"}
|
|
@@ -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;
|
|
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;AA4EnE;;;;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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { WithdrawalToken } from '../flow/withdrawalFlowConfig';
|
|
2
|
+
import type { DestinationChain } from '../withdrawal/useWithdrawalDestinationTokens';
|
|
3
|
+
export interface SelectReceiveTokenAndChainScreenProps {
|
|
4
|
+
chains: DestinationChain[];
|
|
5
|
+
/** What the withdrawal uses now. The draft opens on it; Confirm replaces it. */
|
|
6
|
+
committed?: WithdrawalToken;
|
|
7
|
+
onConfirm: (chainId: number, token: string) => void;
|
|
8
|
+
onBack: () => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Pick the token and chain a withdrawal lands as. Taps draft, Confirm commits.
|
|
12
|
+
*
|
|
13
|
+
* A step rather than a sheet, so `back` pops it and popping is what discards the
|
|
14
|
+
* draft. The `+N` row's list is a sheet *over* this screen, which therefore stays
|
|
15
|
+
* mounted — a token picked there is still drafted on the way back.
|
|
16
|
+
*/
|
|
17
|
+
export declare function SelectReceiveTokenAndChainScreen({ chains, committed, onConfirm, onBack, }: SelectReceiveTokenAndChainScreenProps): import("react").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=SelectReceiveTokenAndChainScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectReceiveTokenAndChainScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectReceiveTokenAndChainScreen.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAkBnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAA;AAGpF,MAAM,WAAW,qCAAqC;IACpD,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAC1B,gFAAgF;IAChF,SAAS,CAAC,EAAE,eAAe,CAAA;IAC3B,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnD,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAAC,EAC/C,MAAM,EACN,SAAS,EACT,SAAS,EACT,MAAM,GACP,EAAE,qCAAqC,+BAwKvC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface SelectReceiveTokenScreenProps {
|
|
2
|
+
tokens: string[];
|
|
3
|
+
selectedToken?: string;
|
|
4
|
+
/** Drafts the token and hands control back to the screen underneath. */
|
|
5
|
+
onSelectToken: (token: string) => void;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Every token a withdrawal can be received as, searchable — the tail behind the
|
|
10
|
+
* grid's `+N tokens` row. A tap drafts and returns; only the grid commits.
|
|
11
|
+
*/
|
|
12
|
+
export declare function SelectReceiveTokenScreen({ tokens, selectedToken, onSelectToken, onClose, }: SelectReceiveTokenScreenProps): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=SelectReceiveTokenScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectReceiveTokenScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectReceiveTokenScreen.tsx"],"names":[],"mappings":"AAgBA,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,wEAAwE;IACxE,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,MAAM,EACN,aAAa,EACb,aAAa,EACb,OAAO,GACR,EAAE,6BAA6B,+BAiF/B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { WithdrawalSourceTokenOption } from '../flow/withdrawalFlowConfig';
|
|
2
|
+
export interface SelectSourceTokenScreenProps {
|
|
3
|
+
options: WithdrawalSourceTokenOption[];
|
|
4
|
+
/** Index into `options` — two options can share a symbol (perps vs spot). */
|
|
5
|
+
selectedIndex: number;
|
|
6
|
+
onSelect: (index: number) => void;
|
|
7
|
+
onBack: () => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Pick which balance the withdrawal comes out of. Flat, not grouped by chain:
|
|
11
|
+
* the sources a host offers are balances on one venue, and two of them can
|
|
12
|
+
* share a symbol (Lighter's perps and spot USDC), so the row identity is the
|
|
13
|
+
* option itself rather than its symbol.
|
|
14
|
+
*/
|
|
15
|
+
export declare function SelectSourceTokenScreen({ options, selectedIndex, onSelect, onBack, }: SelectSourceTokenScreenProps): import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=SelectSourceTokenScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectSourceTokenScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectSourceTokenScreen.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAA;AAM/E,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,2BAA2B,EAAE,CAAA;IACtC,6EAA6E;IAC7E,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,aAAa,EACb,QAAQ,EACR,MAAM,GACP,EAAE,4BAA4B,+BA0G9B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface TransactionBreakdownScreenProps {
|
|
2
|
+
/** What the recipient should expect, e.g. `$99.94`. */
|
|
3
|
+
usdLabel: string;
|
|
4
|
+
/** The floor the trade won't execute below, e.g. `$99.81`. */
|
|
5
|
+
floorLabel: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* What the quoted amount means, in prose: it is an estimate, it has a floor, and
|
|
9
|
+
* it settles in seconds. Opened from the ⓘ beside the amount.
|
|
10
|
+
*/
|
|
11
|
+
export declare function TransactionBreakdownScreen({ usdLabel, floorLabel, }: TransactionBreakdownScreenProps): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=TransactionBreakdownScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionBreakdownScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/TransactionBreakdownScreen.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,+BAA+B;IAC9C,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAA;IAChB,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,UAAU,GACX,EAAE,+BAA+B,+BAgCjC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { WithdrawalToken } from '../flow/withdrawalFlowConfig';
|
|
2
|
+
export interface WithdrawAddressScreenProps {
|
|
3
|
+
/** Names the amount already confirmed, e.g. `Withdraw $100`. */
|
|
4
|
+
title: string;
|
|
5
|
+
/** The typed recipient. */
|
|
6
|
+
recipient: string;
|
|
7
|
+
onChangeRecipient: (value: string) => void;
|
|
8
|
+
/** Whether the recipient is an address at all; `undefined` while empty. */
|
|
9
|
+
isAddress: boolean | undefined;
|
|
10
|
+
onPaste: () => void;
|
|
11
|
+
/** A clipboard read is out — the Paste action is held down until it lands. */
|
|
12
|
+
isPasting?: boolean;
|
|
13
|
+
/** Omit to drop the connected-wallet shortcut. */
|
|
14
|
+
onUseConnected?: () => void;
|
|
15
|
+
/** A reason the address can't be used, past being well-formed. */
|
|
16
|
+
errorText?: string;
|
|
17
|
+
/** Non-blocking caution, e.g. a flagged-address notice. */
|
|
18
|
+
warningText?: string;
|
|
19
|
+
/** What the withdrawal is received as, and the picker for it. */
|
|
20
|
+
destinationToken: WithdrawalToken | undefined;
|
|
21
|
+
onPressReceive: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* What the recipient gets, in the currency the screen leads with. `undefined`
|
|
24
|
+
* until the quote settles.
|
|
25
|
+
*/
|
|
26
|
+
usdLabel: string | undefined;
|
|
27
|
+
/** The same amount in the token that arrives, e.g. `99.78 USDC`. */
|
|
28
|
+
tokenLabel: string | undefined;
|
|
29
|
+
onPressBreakdown: () => void;
|
|
30
|
+
/** The quote couldn't be got — shown where the figure would be. */
|
|
31
|
+
quoteErrorText?: string;
|
|
32
|
+
canSubmit: boolean;
|
|
33
|
+
/** The signature is in flight, or the quote it needs isn't settled. */
|
|
34
|
+
isBusy: boolean;
|
|
35
|
+
/** The signature specifically — what the button reports while it is out. */
|
|
36
|
+
isSubmitting: boolean;
|
|
37
|
+
onSubmit: () => void;
|
|
38
|
+
/** An unrecoverable failure from the last attempt. */
|
|
39
|
+
executionErrorText?: string;
|
|
40
|
+
onBack: () => void;
|
|
41
|
+
onClose: () => void;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Step two of the crypto withdrawal: where the money goes, and what it arrives
|
|
45
|
+
* as. The amount was taken on the step before and is named in the title.
|
|
46
|
+
*/
|
|
47
|
+
export declare function WithdrawAddressScreen({ title, recipient, onChangeRecipient, isAddress, onPaste, isPasting, onUseConnected, errorText, warningText, destinationToken, onPressReceive, usdLabel, tokenLabel, onPressBreakdown, quoteErrorText, canSubmit, isBusy, isSubmitting, onSubmit, executionErrorText, onBack, onClose, }: WithdrawAddressScreenProps): import("react").JSX.Element;
|
|
48
|
+
//# sourceMappingURL=WithdrawAddressScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawAddressScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawAddressScreen.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAMnE,MAAM,WAAW,0BAA0B;IACzC,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAA;IACb,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,2EAA2E;IAC3E,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,kDAAkD;IAClD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iEAAiE;IACjE,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;IAC7C,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,oEAAoE;IACpE,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,uEAAuE;IACvE,MAAM,EAAE,OAAO,CAAA;IACf,4EAA4E;IAC5E,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,OAAO,EACP,SAAS,EACT,cAAc,EACd,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,kBAAkB,EAClB,MAAM,EACN,OAAO,GACR,EAAE,0BAA0B,+BAsG5B"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export interface WithdrawAmountSource {
|
|
2
|
+
/** The source as the host names it, e.g. `USDC (Perps)`. */
|
|
3
|
+
label: string;
|
|
4
|
+
/** What the amount and the balance are denominated in, e.g. `USDG`. */
|
|
5
|
+
symbol: string;
|
|
6
|
+
chainId: number;
|
|
7
|
+
/** Direct token logo URL; falls back to a CDN lookup by symbol. */
|
|
8
|
+
iconSrc?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface WithdrawAmountScreenProps {
|
|
11
|
+
title: string;
|
|
12
|
+
/** The withdrawal amount, in source-token units. */
|
|
13
|
+
amount: string;
|
|
14
|
+
/** Sets the amount outright, in source-token units (Use Max). */
|
|
15
|
+
onChangeAmount: (amount: string) => void;
|
|
16
|
+
/**
|
|
17
|
+
* The number in the amount display, which the numpad edits — dollars when
|
|
18
|
+
* {@link inUsd}, else source-token units. Held by the caller so it survives
|
|
19
|
+
* this screen leaving the stack.
|
|
20
|
+
*/
|
|
21
|
+
input: string;
|
|
22
|
+
onChangeInput: (input: string) => void;
|
|
23
|
+
/** Whether the amount is being typed in dollars rather than token units. */
|
|
24
|
+
inUsd: boolean;
|
|
25
|
+
/** The amount in dollars. `undefined` when nothing prices it. */
|
|
26
|
+
usdLabel: string | undefined;
|
|
27
|
+
/** Switches denomination. `undefined` drops the swap entirely. */
|
|
28
|
+
onSwapDenomination: (() => void) | undefined;
|
|
29
|
+
/** Fraction digits the source token carries; caps what the numpad accepts. */
|
|
30
|
+
sourceDecimals?: number;
|
|
31
|
+
/** Spendable balance in source-token units. Omit to drop Use Max. */
|
|
32
|
+
balance?: string;
|
|
33
|
+
/** What the withdrawal is drawn from. */
|
|
34
|
+
source: WithdrawAmountSource;
|
|
35
|
+
/** Opens the source picker. Omit when the host offers a single source. */
|
|
36
|
+
onPressSource?: () => void;
|
|
37
|
+
/** Replaces the converted amount and tints the amount. */
|
|
38
|
+
errorText?: string;
|
|
39
|
+
canContinue: boolean;
|
|
40
|
+
onContinue: () => void;
|
|
41
|
+
onBack: () => void;
|
|
42
|
+
onClose: () => void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Step one of the crypto withdrawal: how much, and what it comes out of. The
|
|
46
|
+
* destination, the recipient, the fees and the signature are the step that
|
|
47
|
+
* follows.
|
|
48
|
+
*
|
|
49
|
+
* The amount is driven by an in-app numpad rather than the system keyboard, so
|
|
50
|
+
* the sheet never has to move out from under it.
|
|
51
|
+
*/
|
|
52
|
+
export declare function WithdrawAmountScreen({ title, amount, onChangeAmount, input, onChangeInput, inUsd, usdLabel, onSwapDenomination, sourceDecimals, balance, source, onPressSource, errorText, canContinue, onContinue, onBack, onClose, }: WithdrawAmountScreenProps): import("react").JSX.Element;
|
|
53
|
+
//# sourceMappingURL=WithdrawAmountScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawAmountScreen.tsx"],"names":[],"mappings":"AA4CA,MAAM,WAAW,oBAAoB;IACnC,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAA;IACd,iEAAiE;IACjE,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,4EAA4E;IAC5E,KAAK,EAAE,OAAO,CAAA;IACd,iEAAiE;IACjE,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,kEAAkE;IAClE,kBAAkB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;IAC5C,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,yCAAyC;IACzC,MAAM,EAAE,oBAAoB,CAAA;IAC5B,0EAA0E;IAC1E,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,MAAM,EACN,cAAc,EACd,KAAK,EACL,aAAa,EACb,KAAK,EACL,QAAQ,EACR,kBAAkB,EAClB,cAAc,EACd,OAAO,EACP,MAAM,EACN,aAAa,EACb,SAAS,EACT,WAAW,EACX,UAAU,EACV,MAAM,EACN,OAAO,GACR,EAAE,yBAAyB,+BAmJ3B"}
|
|
@@ -5,13 +5,24 @@ export interface WithdrawCompleteScreenProps {
|
|
|
5
5
|
isFailed?: boolean;
|
|
6
6
|
/** Failed, and the funds are on their way back to the sender. */
|
|
7
7
|
isRefunded?: boolean;
|
|
8
|
+
/** What left the account, for the copy a failure needs. */
|
|
8
9
|
amountLabel: string;
|
|
10
|
+
/**
|
|
11
|
+
* What arrived, frozen at submission — the quote is long gone by now, so
|
|
12
|
+
* `undefined` means it was never priced rather than not priced yet.
|
|
13
|
+
*/
|
|
14
|
+
usdLabel: string | undefined;
|
|
15
|
+
tokenLabel: string | undefined;
|
|
9
16
|
onDone: () => void;
|
|
10
17
|
}
|
|
11
18
|
/**
|
|
12
|
-
* The outcome of a submitted
|
|
13
|
-
*
|
|
14
|
-
*
|
|
19
|
+
* The outcome of a submitted withdrawal, on the figure the recipient step ended
|
|
20
|
+
* on: the amount stays where it was and the chrome around it is gone, so
|
|
21
|
+
* arriving here reads as the same screen settling rather than a new one.
|
|
22
|
+
*
|
|
23
|
+
* A missing or slow record reads as "still settling" rather than a failure — it
|
|
24
|
+
* is written best-effort and the funds have already moved — but an explicit
|
|
25
|
+
* terminal failure is shown as one.
|
|
15
26
|
*/
|
|
16
|
-
export declare function WithdrawCompleteScreen({ isPending, isFailed, isRefunded, amountLabel, onDone, }: WithdrawCompleteScreenProps): import("react").JSX.Element;
|
|
27
|
+
export declare function WithdrawCompleteScreen({ isPending, isFailed, isRefunded, amountLabel, usdLabel, tokenLabel, onDone, }: WithdrawCompleteScreenProps): import("react").JSX.Element;
|
|
17
28
|
//# sourceMappingURL=WithdrawCompleteScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawCompleteScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCompleteScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WithdrawCompleteScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCompleteScreen.tsx"],"names":[],"mappings":"AAoBA,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,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,QAAgB,EAChB,UAAkB,EAClB,WAAW,EACX,QAAQ,EACR,UAAU,EACV,MAAM,GACP,EAAE,2BAA2B,+BAiE7B"}
|
|
@@ -6,10 +6,17 @@ import type { WithdrawalFlowCallbacks } from '../flow/withdrawalFlowConfig';
|
|
|
6
6
|
*
|
|
7
7
|
* The callbacks are fired from an effect, where a throw would unmount the tree —
|
|
8
8
|
* they arrive guarded (`guardHostCallbacks`), which is what makes that safe.
|
|
9
|
+
*
|
|
10
|
+
* Closing the flow ends the follow with it — the SDK runs no work behind a shut
|
|
11
|
+
* sheet. The host still holds the hash `onWithdrawalSubmitted` gave it at submit
|
|
12
|
+
* and can settle the transfer itself; the log below is how often that happens.
|
|
9
13
|
*/
|
|
10
|
-
export declare function WithdrawCryptoComplete({ txHash, amountLabel, callbacks, onDone, }: {
|
|
14
|
+
export declare function WithdrawCryptoComplete({ txHash, amountLabel, usdLabel, tokenLabel, callbacks, onDone, }: {
|
|
11
15
|
txHash: string;
|
|
12
16
|
amountLabel: string;
|
|
17
|
+
/** What arrived, frozen at submission. */
|
|
18
|
+
usdLabel: string | undefined;
|
|
19
|
+
tokenLabel: string | undefined;
|
|
13
20
|
callbacks: WithdrawalFlowCallbacks;
|
|
14
21
|
onDone: () => void;
|
|
15
22
|
}): import("react").JSX.Element;
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"WithdrawCryptoComplete.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoComplete.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAK3E;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,WAAW,EACX,QAAQ,EACR,UAAU,EACV,SAAS,EACT,MAAM,GACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,SAAS,EAAE,uBAAuB,CAAA;IAClC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,+BA0CA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { FlowNav, FlowScreen } from '../flow/FunkitFlowProvider';
|
|
2
|
+
import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from '../flow/withdrawalFlowConfig';
|
|
3
|
+
import type { SafeClipboardReader } from '../transfer/clipboard';
|
|
4
|
+
/**
|
|
5
|
+
* The crypto rail's screens, and the one withdrawal they are all building.
|
|
6
|
+
*
|
|
7
|
+
* Each screen is its own entry in the flow's stack — `back` leaves the screen,
|
|
8
|
+
* not the rail — while the state behind them lives here, so navigating between
|
|
9
|
+
* them keeps the amount, the source and the quote. A screen added later (the
|
|
10
|
+
* recipient's address is next) is a case below and a `nav.navigate` from the one
|
|
11
|
+
* before it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function WithdrawCryptoSteps({ config, callbacks, current, nav, quoteInputFeeTokens, extraSourceGasUsd, pasteFromClipboard, onSubmitted, }: {
|
|
14
|
+
config: WithdrawalFlowConfig;
|
|
15
|
+
callbacks: WithdrawalFlowCallbacks;
|
|
16
|
+
current: FlowScreen | undefined;
|
|
17
|
+
nav: FlowNav;
|
|
18
|
+
/**
|
|
19
|
+
* A flat fee the venue takes off the withdrawal before it is quoted, in
|
|
20
|
+
* source-token units, or 0. The SDK only knows the number, never who charges
|
|
21
|
+
* it.
|
|
22
|
+
*/
|
|
23
|
+
quoteInputFeeTokens: number;
|
|
24
|
+
/**
|
|
25
|
+
* A venue fee billed as source-chain gas, in USD, for the summary's network
|
|
26
|
+
* row, or 0.
|
|
27
|
+
*/
|
|
28
|
+
extraSourceGasUsd: number;
|
|
29
|
+
/** Fills the recipient field from the clipboard. Guarded upstream. */
|
|
30
|
+
pasteFromClipboard: SafeClipboardReader;
|
|
31
|
+
onSubmitted: (result: {
|
|
32
|
+
txHash: string;
|
|
33
|
+
amountLabel: string;
|
|
34
|
+
/** What arrived, frozen here: the quote refreshes, the outcome doesn't. */
|
|
35
|
+
usdLabel: string | undefined;
|
|
36
|
+
tokenLabel: string | undefined;
|
|
37
|
+
}) => void;
|
|
38
|
+
}): import("react").JSX.Element;
|
|
39
|
+
//# sourceMappingURL=WithdrawCryptoSteps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawCryptoSteps.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoSteps.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAKrC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAiBhE;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,EACH,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,GACZ,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;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB,sEAAsE;IACtE,kBAAkB,EAAE,mBAAmB,CAAA;IACvC,WAAW,EAAE,CAAC,MAAM,EAAE;QACpB,MAAM,EAAE,MAAM,CAAA;QACd,WAAW,EAAE,MAAM,CAAA;QACnB,2EAA2E;QAC3E,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;QAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;KAC/B,KAAK,IAAI,CAAA;CACX,+BAmNA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwappedScreen.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreen.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,GAAG,EACH,OAAO,EACP,MAAM,EACN,SAAS,GACV,EAAE,kBAAkB,+
|
|
1
|
+
{"version":3,"file":"SwappedScreen.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreen.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,GAAG,EACH,OAAO,EACP,MAAM,EACN,SAAS,GACV,EAAE,kBAAkB,+BAiCpB"}
|
|
@@ -15,7 +15,8 @@ interface SwappedScreenShellProps {
|
|
|
15
15
|
/**
|
|
16
16
|
* Full-screen host frame for the Swapped embedded payment flow
|
|
17
17
|
* ({@link SwappedWebView}). The embed ships its own top bar, so we render no
|
|
18
|
-
* RN header. Mode-agnostic message handling (error logging)
|
|
18
|
+
* RN header. Mode-agnostic message handling (error and navigation logging)
|
|
19
|
+
* lives here;
|
|
19
20
|
* mode-specific dispatch lives in `SwappedScreen` (deposit) and
|
|
20
21
|
* `SwappedWithdrawScreen` (withdrawal).
|
|
21
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwappedScreenShell.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreenShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAQjE,yEAAyE;AACzE,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,GAAG,EAAE,MAAM,CAAA;IACX,kEAAkE;IAClE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,qDAAqD;IACrD,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,UAAU,uBAAuB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;CAChD;AAED
|
|
1
|
+
{"version":3,"file":"SwappedScreenShell.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreenShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAQjE,yEAAyE;AACzE,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,GAAG,EAAE,MAAM,CAAA;IACX,kEAAkE;IAClE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,qDAAqD;IACrD,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,UAAU,uBAAuB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;CAChD;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,GAAG,EACH,SAAS,GACV,EAAE,uBAAuB,+BA8CzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwappedWithdrawScreen.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedWithdrawScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,EAE1B,MAAM,sBAAsB,CAAA;AAI7B,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB;IACxE,2DAA2D;IAC3D,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C,6FAA6F;IAC7F,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAA;CACpD;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,GAAG,EACH,OAAO,EACP,MAAM,EACN,eAAe,EACf,mBAAmB,EACnB,WAAW,GACZ,EAAE,0BAA0B,+
|
|
1
|
+
{"version":3,"file":"SwappedWithdrawScreen.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedWithdrawScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,EAE1B,MAAM,sBAAsB,CAAA;AAI7B,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB;IACxE,2DAA2D;IAC3D,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C,6FAA6F;IAC7F,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAA;CACpD;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,GAAG,EACH,OAAO,EACP,MAAM,EACN,eAAe,EACf,mBAAmB,EACnB,WAAW,GACZ,EAAE,0BAA0B,+BA+C5B"}
|
|
@@ -20,4 +20,26 @@ export type ClipboardWriter = (value: string) => void | Promise<boolean>;
|
|
|
20
20
|
* Returns whether the copy succeeded.
|
|
21
21
|
*/
|
|
22
22
|
export declare function copyToClipboard(value: string): Promise<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* A clipboard read the host can inject via `FunkitProvider`'s
|
|
25
|
+
* `pasteFromClipboard`, for the same reason as {@link ClipboardWriter}: the
|
|
26
|
+
* bare-RN native module isn't linked everywhere. Returns the clipboard's text,
|
|
27
|
+
* or `undefined` when it can't be read.
|
|
28
|
+
*/
|
|
29
|
+
export type ClipboardReader = () => string | undefined | Promise<string | undefined>;
|
|
30
|
+
/** A {@link ClipboardReader} that resolves to `undefined` instead of rejecting. */
|
|
31
|
+
export type SafeClipboardReader = () => Promise<string | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* Wraps a host-injected reader where it enters the SDK, so no paste call site
|
|
34
|
+
* has to defend itself. Only injected readers can fail; the default below is
|
|
35
|
+
* already guarded, and the type lets a host throw as easily as reject.
|
|
36
|
+
*/
|
|
37
|
+
export declare function guardClipboardReader(read: ClipboardReader): SafeClipboardReader;
|
|
38
|
+
/**
|
|
39
|
+
* Default clipboard read — the mirror of {@link copyToClipboard}, and dynamic for
|
|
40
|
+
* the same reason: the native module is only evaluated when a paste actually
|
|
41
|
+
* happens, so a host that hasn't linked it degrades to a warning instead of
|
|
42
|
+
* crashing at startup.
|
|
43
|
+
*/
|
|
44
|
+
export declare function pasteFromClipboard(): Promise<string | undefined>;
|
|
23
45
|
//# sourceMappingURL=clipboard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../src/transfer/clipboard.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;AAExE;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAerE"}
|
|
1
|
+
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../src/transfer/clipboard.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;AAExE;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAerE;AAED;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,MAC1B,MAAM,GACN,SAAS,GACT,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAE/B,mFAAmF;AACnF,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAEnE;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,eAAe,GACpB,mBAAmB,CAuBrB;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CActE"}
|