@funkit/connect-rn 8.0.0 → 8.2.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 +45 -0
- package/README.md +20 -0
- package/dist/{chunk-SRVRWQO6.js → chunk-GG2WCQ6N.js} +26 -10
- package/dist/chunk-GG2WCQ6N.js.map +7 -0
- package/dist/{chunk-KZOSYNGV.js → chunk-J5K2FSAI.js} +225 -17
- package/dist/chunk-J5K2FSAI.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +3 -3
- package/dist/clients/nado.js.map +2 -2
- package/dist/index.js +21070 -18675
- package/dist/index.js.map +4 -4
- package/dist/src/components/AssetGrid.d.ts.map +1 -1
- package/dist/src/components/BlurBand.d.ts +14 -0
- package/dist/src/components/BlurBand.d.ts.map +1 -0
- package/dist/src/components/GlassSurface.d.ts +14 -0
- package/dist/src/components/GlassSurface.d.ts.map +1 -0
- package/dist/src/components/InfoTooltip.d.ts +28 -0
- package/dist/src/components/InfoTooltip.d.ts.map +1 -0
- package/dist/src/components/ScrollingDots.d.ts +24 -0
- package/dist/src/components/ScrollingDots.d.ts.map +1 -0
- package/dist/src/fiat/FiatBackButton.d.ts +4 -0
- package/dist/src/fiat/FiatBackButton.d.ts.map +1 -1
- package/dist/src/fiat/FiatBirthDateField.d.ts.map +1 -1
- package/dist/src/fiat/FiatChoiceField.d.ts +8 -1
- package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
- package/dist/src/fiat/FiatCountrySheet.d.ts +22 -7
- package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +2 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormScreen.d.ts +1 -1
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts +4 -0
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycIntroScreen.d.ts +3 -1
- package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycPosition.d.ts +5 -3
- package/dist/src/fiat/FiatKycPosition.d.ts.map +1 -1
- package/dist/src/fiat/FiatTermsNotice.d.ts +1 -0
- package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/SurfaceSlot.d.ts +8 -2
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/countryListEntries.d.ts +9 -13
- package/dist/src/fiat/countryListEntries.d.ts.map +1 -1
- package/dist/src/fiat/countrySections.d.ts +12 -6
- package/dist/src/fiat/countrySections.d.ts.map +1 -1
- package/dist/src/fiat/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/kycFieldValidators.d.ts +5 -1
- package/dist/src/fiat/kycFieldValidators.d.ts.map +1 -1
- package/dist/src/fiat/kycFormTheme.d.ts +0 -2
- package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/kycWalk.d.ts +22 -0
- package/dist/src/fiat/kycWalk.d.ts.map +1 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/HostedControlFrame.d.ts.map +1 -1
- package/dist/src/fiat/providers/adapter.d.ts +15 -1
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/applePayButtonMetrics.d.ts +28 -0
- package/dist/src/fiat/providers/applePayButtonMetrics.d.ts.map +1 -0
- package/dist/src/fiat/providers/applePayPaintGate.d.ts +21 -0
- package/dist/src/fiat/providers/applePayPaintGate.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay.d.ts +4 -0
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts +7 -0
- package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts +12 -0
- package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts.map +1 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts +4 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
- package/dist/src/fiat/subdivisions.d.ts +15 -0
- package/dist/src/fiat/subdivisions.d.ts.map +1 -0
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -1
- package/dist/src/flow/AddressCopiedToast.d.ts +3 -1
- package/dist/src/flow/AddressCopiedToast.d.ts.map +1 -1
- package/dist/src/flow/DepositAssetPicker.d.ts +11 -0
- package/dist/src/flow/DepositAssetPicker.d.ts.map +1 -0
- package/dist/src/flow/DepositFlowContent.d.ts +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +27 -9
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowPage.d.ts +20 -0
- package/dist/src/flow/FlowPage.d.ts.map +1 -0
- package/dist/src/flow/FlowSheet.d.ts +8 -1
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts +18 -4
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +3 -0
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/isLockedDeposit.d.ts +6 -0
- package/dist/src/flow/isLockedDeposit.d.ts.map +1 -0
- package/dist/src/flow/pageMotion.d.ts +37 -0
- package/dist/src/flow/pageMotion.d.ts.map +1 -0
- package/dist/src/flow/pageTurn.d.ts +28 -0
- package/dist/src/flow/pageTurn.d.ts.map +1 -0
- package/dist/src/flow/sheetSizing.d.ts +6 -5
- package/dist/src/flow/sheetSizing.d.ts.map +1 -1
- package/dist/src/flow/useCopiedToast.d.ts +1 -1
- package/dist/src/flow/useCopiedToast.d.ts.map +1 -1
- package/dist/src/flow/withdrawalFlowConfig.d.ts +18 -5
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/hooks/useNestedSheetHeight.d.ts +10 -3
- package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -1
- package/dist/src/hooks/useSheetFade.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +6 -1
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/LockedTransferCryptoScreen.d.ts +19 -0
- package/dist/src/screens/LockedTransferCryptoScreen.d.ts.map +1 -0
- package/dist/src/screens/SelectChainScreen.d.ts +1 -0
- package/dist/src/screens/SelectChainScreen.d.ts.map +1 -1
- package/dist/src/screens/SelectReceiveTokenAndChainScreen.d.ts +0 -8
- package/dist/src/screens/SelectReceiveTokenAndChainScreen.d.ts.map +1 -1
- package/dist/src/screens/TokenAndChainPickerScreen.d.ts +16 -0
- package/dist/src/screens/TokenAndChainPickerScreen.d.ts.map +1 -0
- package/dist/src/screens/WithdrawAddressScreen.d.ts +4 -1
- package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawAmountScreen.d.ts +16 -8
- package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/theme/buildFunkitTheme.d.ts +1 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +33 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +3 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +6 -0
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/transfer/clipboard.d.ts +2 -0
- package/dist/src/transfer/clipboard.d.ts.map +1 -1
- package/dist/src/transfer/depositAssets.d.ts +35 -0
- package/dist/src/transfer/depositAssets.d.ts.map +1 -0
- package/dist/src/transfer/hooks/useCopyDepositAddress.d.ts +7 -6
- package/dist/src/transfer/hooks/useCopyDepositAddress.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useDepositAssets.d.ts +14 -0
- package/dist/src/transfer/hooks/useDepositAssets.d.ts.map +1 -0
- package/dist/src/transfer/hooks/useFiatExchangeRates.d.ts +5 -8
- package/dist/src/transfer/hooks/useFiatExchangeRates.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts +10 -0
- package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts.map +1 -0
- package/dist/src/transfer/lockedTokenAmount.d.ts +9 -0
- package/dist/src/transfer/lockedTokenAmount.d.ts.map +1 -0
- package/dist/src/transfer/supportedTokens.d.ts +5 -0
- package/dist/src/transfer/supportedTokens.d.ts.map +1 -1
- package/dist/src/utils/assetGrid.d.ts +5 -0
- package/dist/src/utils/assetGrid.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +0 -15
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/utils/tokenAndChainPicker.d.ts +15 -0
- package/dist/src/utils/tokenAndChainPicker.d.ts.map +1 -0
- package/dist/src/withdrawal/maxWithdrawAmount.d.ts +43 -0
- package/dist/src/withdrawal/maxWithdrawAmount.d.ts.map +1 -0
- package/dist/src/withdrawal/receiveDestination.d.ts +0 -7
- package/dist/src/withdrawal/receiveDestination.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +6 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts +6 -1
- package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -1
- package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts +17 -3
- package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts +8 -5
- package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalFiatPrice.d.ts +6 -0
- package/dist/src/withdrawal/useWithdrawalFiatPrice.d.ts.map +1 -0
- package/dist/src/withdrawal/useWithdrawalMaximum.d.ts +19 -0
- package/dist/src/withdrawal/useWithdrawalMaximum.d.ts.map +1 -0
- package/dist/src/withdrawal/validation.d.ts +6 -2
- package/dist/src/withdrawal/validation.d.ts.map +1 -1
- package/package.json +8 -5
- package/dist/chunk-KZOSYNGV.js.map +0 -7
- package/dist/chunk-SRVRWQO6.js.map +0 -7
- package/dist/src/fiat/kycFormPosition.d.ts +0 -28
- package/dist/src/fiat/kycFormPosition.d.ts.map +0 -1
- package/dist/src/flow/StepPage.d.ts +0 -16
- package/dist/src/flow/StepPage.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Surface, SurfaceResult } from '@funkit/connect-core';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* Who operates the control.
|
|
5
5
|
*
|
|
@@ -24,6 +24,12 @@ export interface SurfaceContext {
|
|
|
24
24
|
onFailed: (code: string, detail?: string) => void;
|
|
25
25
|
/** Leaves the flow — a handoff draws its own chrome, close included. */
|
|
26
26
|
onClose: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* An `INLINE` control found it needs the buyer and the whole canvas (a
|
|
29
|
+
* sign-in to work through). The screen turns to a page of the provider's
|
|
30
|
+
* and renders the surface again with `placement: 'SCREEN'`.
|
|
31
|
+
*/
|
|
32
|
+
onHandoff?: () => void;
|
|
27
33
|
/**
|
|
28
34
|
* The provider's own page says the crypto is sent. Optional both ways: only
|
|
29
35
|
* a rail that watches its transfer can say it, and only a screen that can
|
|
@@ -32,6 +38,14 @@ export interface SurfaceContext {
|
|
|
32
38
|
onSettled?: () => void;
|
|
33
39
|
report: (result: SurfaceResult) => void;
|
|
34
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Mounted once by a screen, above every place its surfaces can render — the
|
|
43
|
+
* amount slot and the page a handoff turns to — for state those mounts share.
|
|
44
|
+
* MoonPay keeps a session's credentials inside one provider instance.
|
|
45
|
+
*/
|
|
46
|
+
export type SurfaceHost = ComponentType<{
|
|
47
|
+
children: ReactNode;
|
|
48
|
+
}>;
|
|
35
49
|
export interface ClaimedSurface {
|
|
36
50
|
control: SurfaceControlModel;
|
|
37
51
|
render: (context: SurfaceContext) => ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,SAAS,CAAA;AAExD,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC9B,wEAAwE;IACxE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;;;OAMG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACjD,wEAAwE;IACxE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAA;CACxC;AAED;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,CAAC,CAAA;AAEhE,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,mBAAmB,CAAA;IAC5B,MAAM,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,SAAS,CAAA;CAC/C;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,cAAc,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { FunkitTheme } from '../../theme/toRestyleTheme';
|
|
2
|
+
/**
|
|
3
|
+
* How a provider's hosted Apple Pay button is drawn, shared by every frame
|
|
4
|
+
* that clips one: the slot it fills and the CSS that sizes Apple's element
|
|
5
|
+
* to it.
|
|
6
|
+
*/
|
|
7
|
+
export interface ApplePayButtonMetrics {
|
|
8
|
+
height: number;
|
|
9
|
+
radius: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Apple draws the label to the element's inner height, so this vertical inset
|
|
13
|
+
* is what sets the text size, and every provider's button uses the same one.
|
|
14
|
+
*/
|
|
15
|
+
export declare const APPLE_PAY_LABEL_INSET = 10;
|
|
16
|
+
/** The slot's size: the theme's large button, at its radius. */
|
|
17
|
+
export declare function applePayButtonMetrics(theme: FunkitTheme): ApplePayButtonMetrics;
|
|
18
|
+
/**
|
|
19
|
+
* Apple's documented custom properties for the `apple-pay-button` element,
|
|
20
|
+
* valued for the slot. Only these go on the element: its shadow button reads
|
|
21
|
+
* them, and plain box styles on the host would inset it a second time.
|
|
22
|
+
*/
|
|
23
|
+
export declare function applePayElementProperties({ height, radius, }: ApplePayButtonMetrics): Record<string, string>;
|
|
24
|
+
/** The same shape for a button drawn with `-webkit-appearance`. */
|
|
25
|
+
export declare function applePayNativeStyles({ height, radius, }: ApplePayButtonMetrics): Record<string, string>;
|
|
26
|
+
/** The element's properties as one rule for an injected stylesheet. */
|
|
27
|
+
export declare function applePayButtonRule(metrics: ApplePayButtonMetrics): string;
|
|
28
|
+
//# sourceMappingURL=applePayButtonMetrics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applePayButtonMetrics.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/applePayButtonMetrics.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE7D;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAA;AAEvC,gEAAgE;AAChE,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,WAAW,GACjB,qBAAqB,CAGvB;AAID;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,EACN,MAAM,GACP,EAAE,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQhD;AAED,mEAAmE;AACnE,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,MAAM,GACP,EAAE,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQhD;AAED,uEAAuE;AACvE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAKzE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** The token a page's paint report names, if `data` is one. */
|
|
2
|
+
export declare function readApplePayPaintReport(data: string): string | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* Runs in the hosted page. Apple's element is only drawn once its script has
|
|
5
|
+
* defined it, so a box of the right size is not yet a button; two frames after
|
|
6
|
+
* that is when it is on screen.
|
|
7
|
+
*/
|
|
8
|
+
export declare function applePayPaintedScript(token: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Ready once the page has said so and Apple's button is on screen, so the
|
|
11
|
+
* slot, the fee and the footer all appear with the button rather than before.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useApplePayPaintGate(onReady: () => void, log: {
|
|
14
|
+
provider: string;
|
|
15
|
+
environment: string;
|
|
16
|
+
}): {
|
|
17
|
+
paintToken: string;
|
|
18
|
+
markPageReady: () => void;
|
|
19
|
+
markPainted: () => void;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=applePayPaintGate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applePayPaintGate.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/applePayPaintGate.ts"],"names":[],"mappings":"AAmBA,+DAA+D;AAC/D,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAcxE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CA0C3D;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,IAAI,EACnB,GAAG,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAC7C;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,CAkCA"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
1
2
|
import type { SurfaceAdapter } from './adapter';
|
|
2
3
|
export declare const moonpay: SurfaceAdapter;
|
|
4
|
+
export declare function MoonPaySurfaceHost({ children }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
3
7
|
//# sourceMappingURL=moonpay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpay.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpay.tsx"],"names":[],"mappings":"AAkBA,OAAO,EACL,KAAK,SAAS,EAQf,MAAM,OAAO,CAAA;AAOd,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AA4F/D,eAAO,MAAM,OAAO,EAAE,cAqCrB,CAAA;AAkGD,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAMvE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TraceableTransport } from './moonpayTrace';
|
|
2
|
+
/** Consumes the page's paint report so MoonPay's router never sees it. */
|
|
3
|
+
export declare function wrapPaintSignal(proto: TraceableTransport): void;
|
|
4
|
+
/** Guarded like the trace tap: a MoonPay release without the export must not break the flow. */
|
|
5
|
+
export declare function installApplePayPaintSignal(): void;
|
|
6
|
+
export declare function onApplePayPainted(token: string, listener: () => void): () => void;
|
|
7
|
+
//# sourceMappingURL=moonpayApplePayPainted.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayApplePayPainted.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpayApplePayPainted.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAUxD,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAe/D;AAED,gGAAgG;AAChG,wBAAgB,0BAA0B,IAAI,IAAI,CAQjD;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,IAAI,GACnB,MAAM,IAAI,CAOZ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ApplePayButtonMetrics } from './applePayButtonMetrics';
|
|
2
|
+
/**
|
|
3
|
+
* Styles MoonPay's hosted Apple Pay button to the slot it stands in.
|
|
4
|
+
*
|
|
5
|
+
* MoonPay renders Apple's `apple-pay-button` element with a `<style>` block of
|
|
6
|
+
* its own (44px tall, 16px radius, 8px 16px padding) placed after anything in
|
|
7
|
+
* `<head>`, so a stylesheet alone loses the cascade. The size is set inline on
|
|
8
|
+
* the element with `!important` instead, and re-applied whenever the frame
|
|
9
|
+
* re-renders it.
|
|
10
|
+
*/
|
|
11
|
+
export declare function applePayButtonStyle(metrics: ApplePayButtonMetrics): string;
|
|
12
|
+
//# sourceMappingURL=moonpayApplePayStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayApplePayStyle.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpayApplePayStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAI3B,MAAM,yBAAyB,CAAA;AAEhC;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAwC1E"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { Surface } from '@funkit/connect-core';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
import type { SurfaceAdapter, SurfaceContext, SurfaceControlModel } from './providers/adapter';
|
|
4
|
+
/** Every registered adapter's host, around the screen that renders surfaces. */
|
|
5
|
+
export declare function SurfaceHosts({ children }: {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}): ReactNode;
|
|
4
8
|
/**
|
|
5
9
|
* How this surface is operated, or `undefined` when nothing can draw it.
|
|
6
10
|
* Asked before rendering, because the two models want different chrome.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,
|
|
1
|
+
{"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,EAEpB,MAAM,qBAAqB,CAAA;AAsB5B,gFAAgF;AAChF,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,aAKjE;AAmBD;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,SAAS,cAAc,EAAO,GACvC,mBAAmB,GAAG,SAAS,CAEjC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,cAAc,GAAG;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;CACrC,GAAG,SAAS,CAEZ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A country's ISO 3166-2 subdivisions as choices, keyed by the code the
|
|
3
|
+
* providers take for a state (`CA` for California, not `US-CA`). `undefined`
|
|
4
|
+
* for a country the table has none for, which is left to type.
|
|
5
|
+
*/
|
|
6
|
+
export declare function subdivisionOptions(alpha2: string | undefined): {
|
|
7
|
+
id: string;
|
|
8
|
+
labelFallback: string;
|
|
9
|
+
}[] | undefined;
|
|
10
|
+
/** The states a region field picks from, when it is the residential one. */
|
|
11
|
+
export declare function regionOptions(fieldId: string, alpha2: string | undefined): {
|
|
12
|
+
id: string;
|
|
13
|
+
labelFallback: string;
|
|
14
|
+
}[] | undefined;
|
|
15
|
+
//# sourceMappingURL=subdivisions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subdivisions.d.ts","sourceRoot":"","sources":["../../../src/fiat/subdivisions.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,SAAS,CAcrD;AAED,4EAA4E;AAC5E,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,SAAS,CAIrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFiatCheckoutPreparation.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatCheckoutPreparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useFiatCheckoutPreparation.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatCheckoutPreparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EAEb,MAAM,sBAAsB,CAAA;AAwD7B,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,OAAO,GACR,EAAE;IACD,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,GAAG,OAAO,CAkCV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressCopiedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/AddressCopiedToast.tsx"],"names":[],"mappings":"AAuCA,wBAAgB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"AddressCopiedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/AddressCopiedToast.tsx"],"names":[],"mappings":"AAuCA,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EAAE,aAAa,GACrB,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,+BAgBzB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AvailableChain } from '../transfer/availableChains';
|
|
2
|
+
import { type DepositAsset, type DepositSourceToken } from '../transfer/depositAssets';
|
|
3
|
+
export declare function DepositAssetPicker({ assets, chains, selectedToken, loading, onSelect, onClose, }: {
|
|
4
|
+
assets: DepositAsset[];
|
|
5
|
+
chains: AvailableChain[];
|
|
6
|
+
selectedToken?: DepositSourceToken;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
onSelect: (token: DepositSourceToken, chain: AvailableChain) => void;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=DepositAssetPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DepositAssetPicker.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAssetPicker.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EAGxB,MAAM,2BAA2B,CAAA;AAElC,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,MAAM,EACN,aAAa,EACb,OAAO,EACP,QAAQ,EACR,OAAO,GACR,EAAE;IACD,MAAM,EAAE,YAAY,EAAE,CAAA;IACtB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,aAAa,CAAC,EAAE,kBAAkB,CAAA;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAA;IACpE,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BA0CA"}
|
|
@@ -14,7 +14,7 @@ export declare function FlowContent({ checkoutId, clientMetadata, config, curren
|
|
|
14
14
|
config: DepositFlowConfig;
|
|
15
15
|
current: FlowScreen | undefined;
|
|
16
16
|
nav: FlowNav;
|
|
17
|
-
onCopySuccess: () => void;
|
|
17
|
+
onCopySuccess: (label?: string) => void;
|
|
18
18
|
/** Raises the SDK's deposit confirmation, which outlives this content. */
|
|
19
19
|
showDepositToast: (receipt: DepositReceipt) => void;
|
|
20
20
|
callbacks: DepositFlowCallbacks;
|
|
@@ -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":"AAGA,OAAO,EACL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAyDd,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAG/D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AA6E/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,cAAc,EACd,MAAM,EACN,OAAO,EACP,GAAG,EACH,aAAa,EACb,gBAAgB,EAChB,SAAS,GACV,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,aAAa,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,0EAA0E;IAC1E,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CAkYZ"}
|
|
@@ -3,22 +3,40 @@ import type { NestedSheet } from '../hooks/useNestedSheet';
|
|
|
3
3
|
export interface DrawerProps<TScreen extends string> {
|
|
4
4
|
sheet: NestedSheet<TScreen>;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Stand at the full drawer height rather than sizing to the content: the
|
|
7
|
+
* window below the status bar, or, opened from another drawer, that
|
|
8
|
+
* drawer's height less `NESTED_DRAWER_INSET`. A drawer whose content scrolls
|
|
9
|
+
* has to take a fixed detent, because a gorhom scrollable reports only its
|
|
10
|
+
* own height (see `sheetSizing`).
|
|
9
11
|
*/
|
|
10
12
|
fullHeight?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* A plain panel in place of the glass: pure white or pure black, so nothing
|
|
15
|
+
* of the step behind it reads through. What a drawer holding a whole answer
|
|
16
|
+
* takes; the glass is for a drawer read alongside the step it covers.
|
|
17
|
+
*/
|
|
18
|
+
solid?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* A bar laid over the content's head in place of the grabber. It is the
|
|
21
|
+
* drawer's handle: a pull anywhere on it moves the drawer however far the
|
|
22
|
+
* list under it is scrolled, and its own controls still take their taps.
|
|
23
|
+
*/
|
|
24
|
+
header?: ReactNode;
|
|
11
25
|
children: ReactNode;
|
|
12
26
|
}
|
|
13
27
|
/**
|
|
14
28
|
* Every drawer that opens over the deposit sheet: the fee breakdown, the
|
|
15
29
|
* country list and the KYC choosers all present through this one component, so
|
|
16
|
-
* they are dismissed the same way
|
|
30
|
+
* they are dismissed the same way. `solid` picks which surface they are drawn
|
|
31
|
+
* on.
|
|
17
32
|
*
|
|
18
|
-
* The drawer owns its grabber,
|
|
19
|
-
* it stays put while a list scrolls under it.
|
|
20
|
-
*
|
|
21
|
-
*
|
|
33
|
+
* The drawer owns its grabber, in gorhom's handle slot but laid over the
|
|
34
|
+
* content rather than above it, so it stays put while a list scrolls under it.
|
|
35
|
+
* The slot matters: a pull on the content only moves the drawer while the list
|
|
36
|
+
* under it is at its top, a pull on the handle moves it wherever the list is.
|
|
37
|
+
* A close button is the screen's to draw where the design gives it one (the
|
|
38
|
+
* fee breakdown does); the gesture, the grabber and the backdrop are the
|
|
39
|
+
* drawer's.
|
|
22
40
|
*/
|
|
23
|
-
export declare function Drawer<TScreen extends string>({ sheet, fullHeight, children, }: DrawerProps<TScreen>): import("react").JSX.Element;
|
|
41
|
+
export declare function Drawer<TScreen extends string>({ sheet, fullHeight, solid, header, children, }: DrawerProps<TScreen>): import("react").JSX.Element;
|
|
24
42
|
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/flow/Drawer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAGf,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/flow/Drawer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAGf,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAmB1D,MAAM,WAAW,WAAW,CAAC,OAAO,SAAS,MAAM;IACjD,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC3B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CAAC,OAAO,SAAS,MAAM,EAAE,EAC7C,KAAK,EACL,UAAkB,EAClB,KAAa,EACb,MAAM,EACN,QAAQ,GACT,EAAE,WAAW,CAAC,OAAO,CAAC,+BAwFtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AA0JA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EAEpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAgG/D,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,gBAAgB,CAAC,CAAA;IAC9E,yEAAyE;IACzE,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BA2DA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type PageMotion } from './pageMotion';
|
|
3
|
+
import type { PageTurn } from './pageTurn';
|
|
4
|
+
export interface FlowPageProps {
|
|
5
|
+
motion: PageMotion;
|
|
6
|
+
turn: PageTurn;
|
|
7
|
+
/** Off for the page a flow opens on: there is nothing for it to turn from. */
|
|
8
|
+
animateIn?: boolean;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* One page of a flow, so a move between pages is a turn rather than a cut.
|
|
13
|
+
*
|
|
14
|
+
* A pushed page is a screen: it fills its frame absolutely, so the one
|
|
15
|
+
* leaving and the one arriving stand in it together, and a page that arrived
|
|
16
|
+
* forward stays over one that is returning. A nudged page is a block in its
|
|
17
|
+
* screen's own flow.
|
|
18
|
+
*/
|
|
19
|
+
export declare function FlowPage({ motion, turn, animateIn, children, }: FlowPageProps): import("react").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=FlowPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowPage.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,EACL,KAAK,UAAU,EAIhB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAE1C,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,QAAQ,CAAA;IACd,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,EACvB,MAAM,EACN,IAAI,EACJ,SAAgB,EAChB,QAAQ,GACT,EAAE,aAAa,+BA2Bf"}
|
|
@@ -65,8 +65,15 @@ export declare function FlowSheetBackground(props: BottomSheetBackgroundProps):
|
|
|
65
65
|
export declare function GlassSheetBackground({ pointerEvents, style, }: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
66
66
|
/**
|
|
67
67
|
* {@link FlowSheetBackground} for a screen stacked over another sheet — the
|
|
68
|
-
*
|
|
68
|
+
* fee breakdown (4006:4707). Glass rather than a panel, so the step it was
|
|
69
69
|
* raised from still reads faintly underneath it.
|
|
70
70
|
*/
|
|
71
71
|
export declare function StackedSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
72
|
+
/**
|
|
73
|
+
* {@link StackedSheetBackground} as a plain panel: the `drawer` fill alone, no
|
|
74
|
+
* material and no glass. A drawer the whole answer is read out of covers the
|
|
75
|
+
* step it was raised from rather than refracting it.
|
|
76
|
+
*/
|
|
77
|
+
export declare function SolidStackedSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
78
|
+
export declare const STACKED_TOP_RADIUS = 32;
|
|
72
79
|
//# sourceMappingURL=FlowSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAuBd;;;;;;GAMG;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;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,yFAAyF;IACzF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAsBD,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,EAC3B,aAAqB,EACrB,UAAkB,EAClB,KAAa,GACd,EAAE,cAAc,+BAgLhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,0BAA0B,+BAEpE;AAaD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,aAAa,EACb,KAAK,GACN,EAAE,0BAA0B,+BAqB5B;AAkBD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,0BAA0B,+BAUvE;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,0BAA0B,+BAU5E;AAOD,eAAO,MAAM,kBAAkB,KAAK,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,SAAS,EASf,MAAM,OAAO,CAAA;AAId,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EAIrB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,EAEV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAS5B,OAAO,EAAE,KAAK,oBAAoB,EAAa,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,SAAS,EASf,MAAM,OAAO,CAAA;AAId,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EAIrB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,EAEV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAS5B,OAAO,EAAE,KAAK,oBAAoB,EAAa,MAAM,aAAa,CAAA;AASlE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAG/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,y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A;IACjC;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;CACzC,+BAmTA;AAqFD,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
import type { BackdropBlurRenderer } from './FlowSheet';
|
|
2
2
|
/**
|
|
3
|
-
* The
|
|
4
|
-
*
|
|
3
|
+
* The corner everything React Native draws for the material takes, since only
|
|
4
|
+
* the glass can follow the screen's: the device's own, which a full-bleed slab
|
|
5
|
+
* meets without a seam.
|
|
6
|
+
*/
|
|
7
|
+
export declare const MATERIAL_CORNER_RADIUS = 65;
|
|
8
|
+
/**
|
|
9
|
+
* The material under every translucent flow surface: a blur of the host app
|
|
10
|
+
* with iOS 26 Liquid Glass refracting through it where the binary links the
|
|
5
11
|
* SDK's pod. Elsewhere the blur stands alone and the surface paints its fill.
|
|
12
|
+
*
|
|
13
|
+
* Dark or light as the theme's modal fill is, since the glass drops that fill
|
|
14
|
+
* out from under the surface and stands in for it.
|
|
6
15
|
*/
|
|
7
|
-
export declare function SheetMaterial({
|
|
8
|
-
|
|
16
|
+
export declare function SheetMaterial({ corner, }: {
|
|
17
|
+
/**
|
|
18
|
+
* A fixed corner for the whole material, for a surface that never meets the
|
|
19
|
+
* screen edge (a drawer stacked on the sheet). Left out, the material takes
|
|
20
|
+
* the screen's corner: the slab at the device's, the glass concentric with it.
|
|
21
|
+
*/
|
|
22
|
+
corner?: number;
|
|
9
23
|
}): import("react").JSX.Element;
|
|
10
24
|
export declare const renderSheetMaterial: BackdropBlurRenderer;
|
|
11
25
|
//# sourceMappingURL=SheetMaterial.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetMaterial.d.ts","sourceRoot":"","sources":["../../../src/flow/SheetMaterial.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SheetMaterial.d.ts","sourceRoot":"","sources":["../../../src/flow/SheetMaterial.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIvD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAA;AAiBxC;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAC5B,MAAM,GACP,EAAE;IACD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,+BA+BA;AAED,eAAO,MAAM,mBAAmB,EAAE,oBAA8C,CAAA"}
|
|
@@ -269,6 +269,9 @@ export interface DepositFlowConfig {
|
|
|
269
269
|
/**
|
|
270
270
|
* Locks the prefilled amount for the life of the attempt: typing,
|
|
271
271
|
* quick-amount taps, back navigation, and remounts all leave it unchanged.
|
|
272
|
+
* On Transfer Crypto, shows a periodically refreshed source-token estimate of
|
|
273
|
+
* {@link initialAmount} with asset selection followed by its supported networks.
|
|
274
|
+
* This display estimate does not authorize or enforce a backend deposit cap.
|
|
272
275
|
* Requires {@link initialAmount} — validated in `beginDeposit` and dropped
|
|
273
276
|
* (logged, not thrown) if set without it.
|
|
274
277
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,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,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,YAAY,EAAE,2BAA2B,EAAE,M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AM,IAAI,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA;IAC7E;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAA;IACjD;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DepositFlowConfig, DepositInitialAmount } from './depositFlowConfig';
|
|
2
|
+
/** Narrows a deposit config to one with an amount that is explicitly locked. */
|
|
3
|
+
export declare function isLockedDeposit(config: DepositFlowConfig): config is DepositFlowConfig & {
|
|
4
|
+
initialAmount: DepositInitialAmount;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=isLockedDeposit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isLockedDeposit.d.ts","sourceRoot":"","sources":["../../../src/flow/isLockedDeposit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAE5B,gFAAgF;AAChF,wBAAgB,eAAe,CAC7B,MAAM,EAAE,iBAAiB,GACxB,MAAM,IAAI,iBAAiB,GAAG;IAAE,aAAa,EAAE,oBAAoB,CAAA;CAAE,CAEvE"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ReduceMotion } from 'react-native-reanimated';
|
|
2
|
+
/** +1 is a turn forward through the flow, -1 a return. */
|
|
3
|
+
export type Direction = 1 | -1;
|
|
4
|
+
/**
|
|
5
|
+
* How a page moves when a turn brings it in or takes it away.
|
|
6
|
+
*
|
|
7
|
+
* - `push`: a screen over another, as a navigation stack turns — the page in
|
|
8
|
+
* front crosses the whole width, the one behind a third of it and fades.
|
|
9
|
+
* - `nudge`: transitions.dev "Page side-by-side" — a short shift with a fade,
|
|
10
|
+
* for the pages of one screen turning inside it.
|
|
11
|
+
*/
|
|
12
|
+
export type PageMotion = 'push' | 'nudge';
|
|
13
|
+
export declare const PUSH_DURATION = 350;
|
|
14
|
+
export declare const PUSH_BEHIND_RATIO: number;
|
|
15
|
+
export declare const NUDGE_DURATION = 250;
|
|
16
|
+
export declare const NUDGE_DISTANCE = 40;
|
|
17
|
+
/** The nudge as a `withTiming` config, for whatever moves in step with one. */
|
|
18
|
+
export declare const NUDGE_TIMING: {
|
|
19
|
+
duration: number;
|
|
20
|
+
easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
21
|
+
reduceMotion: ReduceMotion;
|
|
22
|
+
};
|
|
23
|
+
export declare function pageTiming(motion: PageMotion): {
|
|
24
|
+
duration: number;
|
|
25
|
+
easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
26
|
+
reduceMotion: ReduceMotion;
|
|
27
|
+
};
|
|
28
|
+
export interface PageRest {
|
|
29
|
+
x: number;
|
|
30
|
+
opacity: number;
|
|
31
|
+
}
|
|
32
|
+
/** Where a page waits before a turn in `direction` brings it in. */
|
|
33
|
+
export declare function arrivalRest(motion: PageMotion, direction: Direction, width: number): PageRest;
|
|
34
|
+
/** Where a page comes to rest once a turn in `direction` has taken it away. */
|
|
35
|
+
export declare function departureRest(motion: PageMotion, direction: Direction, width: number): PageRest;
|
|
36
|
+
export declare function arrivalKeyframe(motion: PageMotion, direction: Direction, width: number): import("react-native-reanimated").ReanimatedKeyframe;
|
|
37
|
+
//# sourceMappingURL=pageMotion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageMotion.d.ts","sourceRoot":"","sources":["../../../src/flow/pageMotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAIhE,0DAA0D;AAC1D,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;AAE9B;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,CAAA;AAEzC,eAAO,MAAM,aAAa,MAAM,CAAA;AAChC,eAAO,MAAM,iBAAiB,QAAQ,CAAA;AACtC,eAAO,MAAM,cAAc,MAAM,CAAA;AACjC,eAAO,MAAM,cAAc,KAAK,CAAA;AAChC,+EAA+E;AAC/E,eAAO,MAAM,YAAY;;;;CAIxB,CAAA;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU;;;;EAI5C;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAA;IACT,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,oEAAoE;AACpE,wBAAgB,WAAW,CACzB,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,GACZ,QAAQ,CAQV;AAED,+EAA+E;AAC/E,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,GACZ,QAAQ,CAQV;AAED,wBAAgB,eAAe,CAC7B,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,wDASd"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type SharedValue } from 'react-native-reanimated';
|
|
2
|
+
import type { Direction } from './pageMotion';
|
|
3
|
+
/**
|
|
4
|
+
* The turn a page takes part in: the direction it arrives by, and the one it
|
|
5
|
+
* will leave by. The latter is unknowable until the turn that removes the page
|
|
6
|
+
* happens, so it is read on the UI thread as the page goes; a page whose
|
|
7
|
+
* departure is fixed carries a plain direction instead.
|
|
8
|
+
*/
|
|
9
|
+
export interface PageTurn {
|
|
10
|
+
enter: Direction;
|
|
11
|
+
exit: Direction | SharedValue<Direction>;
|
|
12
|
+
/** False until the first turn away from the page the flow opened on. */
|
|
13
|
+
moved: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** The page a flow opens on and returns to: covered by a turn forward, uncovered by a return. */
|
|
16
|
+
export declare const OPENING_PAGE: PageTurn;
|
|
17
|
+
export interface PageStack {
|
|
18
|
+
keys: readonly string[];
|
|
19
|
+
direction: Direction;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Moving to `key`: a key on the stack is returned to, and everything above it
|
|
23
|
+
* is dropped; a new one is pushed. The same key again is no turn.
|
|
24
|
+
*/
|
|
25
|
+
export declare function turnTo(stack: PageStack, key: string): PageStack;
|
|
26
|
+
/** The turn that brought the page named `key` up, judged against the pages visited before it. */
|
|
27
|
+
export declare function usePageTurn(key: string): PageTurn;
|
|
28
|
+
//# sourceMappingURL=pageTurn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageTurn.d.ts","sourceRoot":"","sources":["../../../src/flow/pageTurn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C;;;;;GAKG;AACH,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,SAAS,CAAA;IAChB,IAAI,EAAE,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC,CAAA;IACxC,wEAAwE;IACxE,KAAK,EAAE,OAAO,CAAA;CACf;AAED,iGAAiG;AACjG,eAAO,MAAM,YAAY,EAAE,QAA8C,CAAA;AAEzE,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;CACrB;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAS/D;AAID,iGAAiG;AACjG,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAajD"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
export type SheetDetent = number | `${number}%`;
|
|
1
2
|
/**
|
|
2
3
|
* Sizing props for a `BottomSheetModal`; `topInset` stays with the caller. A
|
|
3
4
|
* gorhom scrollable reports only its own height, so a screen with one can't be
|
|
4
|
-
* measured — it takes
|
|
5
|
+
* measured — it takes the fixed `detent` and sizes itself.
|
|
5
6
|
*/
|
|
6
|
-
export declare function sheetSizing({
|
|
7
|
-
|
|
7
|
+
export declare function sheetSizing({ detent }: {
|
|
8
|
+
detent?: SheetDetent;
|
|
8
9
|
}): {
|
|
9
10
|
enableDynamicSizing: boolean;
|
|
10
|
-
snapPoints
|
|
11
|
+
snapPoints?: undefined;
|
|
11
12
|
} | {
|
|
12
13
|
enableDynamicSizing: boolean;
|
|
13
|
-
snapPoints
|
|
14
|
+
snapPoints: SheetDetent[];
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
16
17
|
* `focusHook` that keeps `BottomSheetView`'s measuring but drops its
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheetSizing.d.ts","sourceRoot":"","sources":["../../../src/flow/sheetSizing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sheetSizing.d.ts","sourceRoot":"","sources":["../../../src/flow/sheetSizing.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,GAAG,MAAM,GAAG,CAAA;AAK/C;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAA;CAAE;;;;;;EAU/D;AAID;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,IAAI,QAE5D"}
|
|
@@ -2,7 +2,7 @@ import { type ReactNode } from 'react';
|
|
|
2
2
|
interface CopiedToast {
|
|
3
3
|
/** The overlay to render; caller owns only where it sits in the tree. */
|
|
4
4
|
toast: ReactNode;
|
|
5
|
-
showCopiedToast: () => void;
|
|
5
|
+
showCopiedToast: (label?: string) => void;
|
|
6
6
|
clearToast: () => void;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
@@ -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;
|
|
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,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAuD5C"}
|