@funkit/connect-rn 9.0.1 → 9.1.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 +70 -0
- package/README.md +100 -0
- package/app.plugin.js +92 -0
- package/dist/{chunk-ZBWCG4O6.js → chunk-4EEB4ZBQ.js} +59 -6
- package/dist/chunk-4EEB4ZBQ.js.map +7 -0
- package/dist/{chunk-MMXSERQM.js → chunk-EWSXVFEF.js} +289 -65
- package/dist/chunk-EWSXVFEF.js.map +7 -0
- package/dist/{chunk-GCPIOARQ.js → chunk-FRXLZQRI.js} +6 -2
- package/dist/chunk-FRXLZQRI.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.js +5621 -3274
- package/dist/index.js.map +4 -4
- package/dist/preview.js +260 -11
- package/dist/preview.js.map +3 -3
- package/dist/src/components/v2/PaymentMethodPicker.d.ts +10 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/components/v2/methodMerge.d.ts +40 -0
- package/dist/src/components/v2/methodMerge.d.ts.map +1 -0
- package/dist/src/fiat/FiatContactScreen.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 +6 -3
- package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormScreen.d.ts +1 -4
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts +7 -2
- package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycIntroLayout.d.ts +34 -0
- package/dist/src/fiat/FiatKycIntroLayout.d.ts.map +1 -0
- package/dist/src/fiat/FiatKycIntroScreen.d.ts +2 -0
- package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOptionRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts +3 -8
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatOptionsScreen.d.ts +21 -0
- package/dist/src/fiat/FiatOptionsScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatOtpScreen.d.ts +1 -1
- package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatPaymentFailedSheet.d.ts +26 -0
- package/dist/src/fiat/FiatPaymentFailedSheet.d.ts.map +1 -0
- package/dist/src/fiat/FiatReceipt.d.ts +6 -3
- package/dist/src/fiat/FiatReceipt.d.ts.map +1 -1
- package/dist/src/fiat/FiatSharingConsentNotice.d.ts +3 -0
- package/dist/src/fiat/FiatSharingConsentNotice.d.ts.map +1 -0
- package/dist/src/fiat/FiatTermsNotice.d.ts +6 -0
- package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/PaymentDisclosureNotice.d.ts +6 -0
- package/dist/src/fiat/PaymentDisclosureNotice.d.ts.map +1 -0
- package/dist/src/fiat/ctaLabel.d.ts +2 -0
- package/dist/src/fiat/ctaLabel.d.ts.map +1 -1
- package/dist/src/fiat/depositMatch.d.ts +20 -0
- package/dist/src/fiat/depositMatch.d.ts.map +1 -0
- package/dist/src/fiat/disclosureFooter.d.ts +21 -0
- package/dist/src/fiat/disclosureFooter.d.ts.map +1 -0
- package/dist/src/fiat/disclosureFooterContent.d.ts +28 -0
- package/dist/src/fiat/disclosureFooterContent.d.ts.map +1 -0
- package/dist/src/fiat/formLayout.d.ts +18 -5
- package/dist/src/fiat/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/kycOptionRows.d.ts +23 -0
- package/dist/src/fiat/kycOptionRows.d.ts.map +1 -0
- package/dist/src/fiat/kycWait.d.ts +20 -0
- package/dist/src/fiat/kycWait.d.ts.map +1 -0
- package/dist/src/fiat/legalLinks.d.ts +2 -0
- package/dist/src/fiat/legalLinks.d.ts.map +1 -1
- package/dist/src/fiat/paymentReroute.d.ts +20 -2
- package/dist/src/fiat/paymentReroute.d.ts.map +1 -1
- package/dist/src/fiat/paymentSurfaceFailure.d.ts +4 -19
- package/dist/src/fiat/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/pricedLimit.d.ts +20 -0
- package/dist/src/fiat/pricedLimit.d.ts.map +1 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +2 -3
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts.map +1 -1
- package/dist/src/fiat/providers/SumsubKycSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/SumsubNativeKycSurface.d.ts +23 -0
- package/dist/src/fiat/providers/SumsubNativeKycSurface.d.ts.map +1 -0
- package/dist/src/fiat/providers/adapter.d.ts +20 -4
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/kycIntro.d.ts +15 -0
- package/dist/src/fiat/providers/kycIntro.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay.d.ts +3 -1
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayAuthStyle.d.ts +39 -0
- package/dist/src/fiat/providers/moonpayAuthStyle.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayFailureCopy.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayHandoffCard.d.ts +11 -0
- package/dist/src/fiat/providers/moonpayHandoffCard.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpayPaymentDisclosures.d.ts +15 -0
- package/dist/src/fiat/providers/moonpayPaymentDisclosures.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpayPreparedPayment.d.ts +7 -0
- package/dist/src/fiat/providers/moonpayPreparedPayment.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpaySharingConsent.d.ts +14 -0
- package/dist/src/fiat/providers/moonpaySharingConsent.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeAccountCreation.d.ts +10 -1
- package/dist/src/fiat/providers/stripeAccountCreation.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeApplePayButton.d.ts +15 -0
- package/dist/src/fiat/providers/stripeApplePayButton.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeKycIntro.d.ts +23 -1
- package/dist/src/fiat/providers/stripeKycIntro.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeOnramp.d.ts +7 -0
- package/dist/src/fiat/providers/stripeOnramp.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeSdk.d.ts +1 -1
- package/dist/src/fiat/providers/stripeSdk.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeSignInStep.d.ts +23 -0
- package/dist/src/fiat/providers/stripeSignInStep.d.ts.map +1 -0
- package/dist/src/fiat/providers/sumsubKyc.d.ts +6 -0
- package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsubNativeLaunch.d.ts +34 -0
- package/dist/src/fiat/providers/sumsubNativeLaunch.d.ts.map +1 -0
- package/dist/src/fiat/providers/sumsubSdk.d.ts +58 -0
- package/dist/src/fiat/providers/sumsubSdk.d.ts.map +1 -0
- package/dist/src/fiat/providers/sumsubTheme.d.ts +51 -0
- package/dist/src/fiat/providers/sumsubTheme.d.ts.map +1 -0
- package/dist/src/fiat/providers/useCreateStripeAccountWithExistingUserData.d.ts +41 -0
- package/dist/src/fiat/providers/useCreateStripeAccountWithExistingUserData.d.ts.map +1 -0
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts +1 -1
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +1 -1
- package/dist/src/fiat/providers/useStripeSessionAuth.d.ts +2 -8
- package/dist/src/fiat/providers/useStripeSessionAuth.d.ts.map +1 -1
- package/dist/src/fiat/quoteNoRoute.d.ts +25 -0
- package/dist/src/fiat/quoteNoRoute.d.ts.map +1 -1
- package/dist/src/fiat/renderCaptureSurface.d.ts +1 -1
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
- package/dist/src/fiat/sectionDetail.d.ts +3 -1
- package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
- package/dist/src/fiat/stepDetails.d.ts +6 -0
- package/dist/src/fiat/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/useKycCaptureRound.d.ts.map +1 -1
- package/dist/src/fiat/useKycRoundReporting.d.ts +12 -0
- package/dist/src/fiat/useKycRoundReporting.d.ts.map +1 -0
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts +68 -0
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts.map +1 -0
- package/dist/src/fiat/useResendCooldown.d.ts +25 -0
- package/dist/src/fiat/useResendCooldown.d.ts.map +1 -0
- package/dist/src/fiat/useSharingConsent.d.ts +15 -0
- package/dist/src/fiat/useSharingConsent.d.ts.map +1 -0
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositMatchSheet.d.ts +12 -0
- package/dist/src/flow/DepositMatchSheet.d.ts.map +1 -0
- package/dist/src/flow/DepositPreload.d.ts +13 -0
- package/dist/src/flow/DepositPreload.d.ts.map +1 -0
- package/dist/src/flow/Drawer.d.ts +7 -1
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +1 -4
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +5 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +11 -3
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositMethods.d.ts +8 -0
- package/dist/src/flow/depositMethods.d.ts.map +1 -1
- package/dist/src/flow/overlayStep.d.ts +25 -0
- package/dist/src/flow/overlayStep.d.ts.map +1 -0
- package/dist/src/flow/pageTurn.d.ts +19 -2
- package/dist/src/flow/pageTurn.d.ts.map +1 -1
- package/dist/src/flow/quickAmounts.d.ts +8 -0
- package/dist/src/flow/quickAmounts.d.ts.map +1 -0
- package/dist/src/flow/storedChain.d.ts +14 -0
- package/dist/src/flow/storedChain.d.ts.map +1 -0
- package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
- package/dist/src/flow/withdrawalFlowConfig.d.ts +3 -1
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/withdrawalMethods.d.ts +8 -0
- package/dist/src/flow/withdrawalMethods.d.ts.map +1 -0
- package/dist/src/geo/useUserIpInfo.d.ts +7 -0
- package/dist/src/geo/useUserIpInfo.d.ts.map +1 -1
- package/dist/src/hooks/useGuardedAmountInput.d.ts +11 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- package/dist/src/hooks/useNestedSheetHeight.d.ts +14 -0
- package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -1
- package/dist/src/icons/ApplePayMark.d.ts +3 -1
- package/dist/src/icons/ApplePayMark.d.ts.map +1 -1
- package/dist/src/preview/fixtures/kycForms.d.ts +2 -0
- package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -1
- package/dist/src/preview/flowPreview.d.ts +6 -3
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/previewFetch.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +56 -2
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts +11 -0
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +24 -4
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/DepositMatchScreen.d.ts +18 -0
- package/dist/src/screens/DepositMatchScreen.d.ts.map +1 -0
- package/dist/src/screens/FeeDetailsScreen.d.ts +2 -0
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts +2 -2
- package/dist/src/swapped/webViewSwappedTransport.d.ts +4 -35
- package/dist/src/swapped/webViewSwappedTransport.d.ts.map +1 -1
- package/dist/src/theme/FunkitThemeProvider.d.ts +6 -0
- package/dist/src/theme/FunkitThemeProvider.d.ts.map +1 -1
- package/dist/src/theme/buildFunkitTheme.d.ts +3 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/legibleBrandColor.d.ts +12 -0
- package/dist/src/theme/legibleBrandColor.d.ts.map +1 -0
- package/dist/src/theme/restyle.d.ts +99 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +9 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/typeScale.d.ts +18 -0
- package/dist/src/theme/typeScale.d.ts.map +1 -1
- package/dist/src/utils/formatAmount.d.ts +2 -0
- package/dist/src/utils/formatAmount.d.ts.map +1 -1
- package/ios/FunkitGlassEffect.podspec +2 -0
- package/ios/assets/funkit-connect-rn/sumsub-back.png +0 -0
- package/package.json +17 -9
- package/dist/chunk-GCPIOARQ.js.map +0 -7
- package/dist/chunk-MMXSERQM.js.map +0 -7
- package/dist/chunk-ZBWCG4O6.js.map +0 -7
- package/dist/src/fiat/FiatKycPosition.d.ts +0 -7
- package/dist/src/fiat/FiatKycPosition.d.ts.map +0 -1
- package/dist/src/fiat/kycWalk.d.ts +0 -22
- package/dist/src/fiat/kycWalk.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositMethods.d.ts","sourceRoot":"","sources":["../../../src/flow/depositMethods.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,cAAc,EAEpB,MAAM,qBAAqB,CAAA;AAiB5B,+DAA+D;AAC/D,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,iBAAiB,GACxB,qBAAqB,GAAG,SAAS,CAanC;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,iBAAiB,GACxB,aAAa,EAAE,GAAG,SAAS,CAU7B;AAED,+DAA+D;AAC/D,wBAAgB,aAAa,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAKhE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,iBAAiB,EACzB,cAAc,GAAE,qBAAqB,GAAG,SAAiC,GACxE,cAAc,GAAG,SAAS,CAqB5B;AAED,kFAAkF;AAClF,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,aAAa,EAAE,GAAG,SAAS,GACnC,OAAO,CAET"}
|
|
1
|
+
{"version":3,"file":"depositMethods.d.ts","sourceRoot":"","sources":["../../../src/flow/depositMethods.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,cAAc,EAEpB,MAAM,qBAAqB,CAAA;AAiB5B,+DAA+D;AAC/D,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,iBAAiB,GACxB,qBAAqB,GAAG,SAAS,CAanC;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,iBAAiB,GACxB,aAAa,EAAE,GAAG,SAAS,CAU7B;AAED,+DAA+D;AAC/D,wBAAgB,aAAa,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAKhE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,iBAAiB,EACzB,cAAc,GAAE,qBAAqB,GAAG,SAAiC,GACxE,cAAc,GAAG,SAAS,CAqB5B;AAED,kFAAkF;AAClF,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,aAAa,EAAE,GAAG,SAAS,GACnC,OAAO,CAET;AAED,0DAA0D;AAC1D,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,aAAa,EAAE,GAAG,SAAS,GACnC,OAAO,CAMT;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,iBAAiB,EACzB,iBAAiB,EAAE,OAAO,GACzB,OAAO,CAOT"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* What a provider's step draws: a page of its own, or nothing but `overlay`,
|
|
4
|
+
* run over whatever page is already up (a native sheet, say, that needs no
|
|
5
|
+
* screen beneath it to be its own).
|
|
6
|
+
*/
|
|
7
|
+
export type StepRender = {
|
|
8
|
+
page: ReactElement;
|
|
9
|
+
} | {
|
|
10
|
+
overlay: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export interface OverlayStepProps {
|
|
13
|
+
/** The amount with `overlay` mounted in it: shown when it was the last page. */
|
|
14
|
+
entry: ReactElement;
|
|
15
|
+
/** What the step runs over the page that is up. */
|
|
16
|
+
overlay: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A step with no page of its own. `FiatFlowSession` keeps up the page the
|
|
20
|
+
* buyer was last on and runs `overlay` beside it, rather than turning to a
|
|
21
|
+
* page for a step that draws nothing. Rendered by nothing; the session reads
|
|
22
|
+
* its props.
|
|
23
|
+
*/
|
|
24
|
+
export declare function OverlayStep(_props: OverlayStepProps): null;
|
|
25
|
+
//# sourceMappingURL=overlayStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlayStep.d.ts","sourceRoot":"","sources":["../../../src/flow/overlayStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEpD;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,SAAS,CAAA;CAAE,CAAA;AAExE,MAAM,WAAW,gBAAgB;IAC/B,gFAAgF;IAChF,KAAK,EAAE,YAAY,CAAA;IACnB,mDAAmD;IACnD,OAAO,EAAE,SAAS,CAAA;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAE1D"}
|
|
@@ -23,6 +23,23 @@ export interface PageStack {
|
|
|
23
23
|
* is dropped; a new one is pushed. The same key again is no turn.
|
|
24
24
|
*/
|
|
25
25
|
export declare function turnTo(stack: PageStack, key: string): PageStack;
|
|
26
|
-
/**
|
|
27
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Moving to `key` in a flow whose only way back is to `home`: any other page,
|
|
28
|
+
* even one seen before, is a turn forward.
|
|
29
|
+
*/
|
|
30
|
+
export declare function turnOnwardTo(stack: PageStack, key: string, home: string): PageStack;
|
|
31
|
+
export interface OnwardTurns {
|
|
32
|
+
/** The one page a turn goes back to. */
|
|
33
|
+
home: string;
|
|
34
|
+
/**
|
|
35
|
+
* Owned above a flow that remounts, so its first page also decides which way
|
|
36
|
+
* the last one leaves.
|
|
37
|
+
*/
|
|
38
|
+
exit: SharedValue<Direction>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The turn that brought the page named `key` up, judged against the pages
|
|
42
|
+
* visited before it. Given `onward`, only arriving home is a return.
|
|
43
|
+
*/
|
|
44
|
+
export declare function usePageTurn(key: string, onward?: OnwardTurns): PageTurn;
|
|
28
45
|
//# sourceMappingURL=pageTurn.d.ts.map
|
|
@@ -1 +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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ACX,SAAS,CAQX;AAID,MAAM,WAAW,WAAW;IAC1B,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;CAC7B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,QAAQ,CAiBvE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DepositAmountEntryConfig } from './depositFlowConfig';
|
|
2
|
+
export declare function quickAmountsFor(currency: string, config: Pick<DepositAmountEntryConfig, 'quickAmountsUsd' | 'quickAmountsByCurrency'>): readonly string[];
|
|
3
|
+
/** Held until the region names the currency, so no chip flips from dollars. */
|
|
4
|
+
export declare function quickAmountChips(currency: string | undefined, config: Pick<DepositAmountEntryConfig, 'quickAmountsUsd' | 'quickAmountsByCurrency'>): {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}[] | undefined;
|
|
8
|
+
//# sourceMappingURL=quickAmounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quickAmounts.d.ts","sourceRoot":"","sources":["../../../src/flow/quickAmounts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAanE,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,IAAI,CACV,wBAAwB,EACxB,iBAAiB,GAAG,wBAAwB,CAC7C,GACA,SAAS,MAAM,EAAE,CASnB;AAED,+EAA+E;AAC/E,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,MAAM,EAAE,IAAI,CACV,wBAAwB,EACxB,iBAAiB,GAAG,wBAAwB,CAC7C;;;gBASF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface StoredChain {
|
|
2
|
+
userId: string | undefined;
|
|
3
|
+
/** `null` when nothing is stored; `undefined` while it's still being read. */
|
|
4
|
+
chainId: string | null | undefined;
|
|
5
|
+
/** Persist the pick for this identity and apply it immediately. */
|
|
6
|
+
remember: (chainId: string) => void;
|
|
7
|
+
}
|
|
8
|
+
/** Read once for the identity, so a flow opened later restores it on its first render. */
|
|
9
|
+
export declare const StoredChainProvider: import("react").Provider<StoredChain | undefined>;
|
|
10
|
+
/** The identity's stored chain pick; reads nothing while `userId` is undefined. */
|
|
11
|
+
export declare function useStoredChainState(userId: string | undefined): StoredChain;
|
|
12
|
+
/** The provider's read when there is one; otherwise this component reads it. */
|
|
13
|
+
export declare function useStoredChain(userId: string): StoredChain;
|
|
14
|
+
//# sourceMappingURL=storedChain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storedChain.d.ts","sourceRoot":"","sources":["../../../src/flow/storedChain.tsx"],"names":[],"mappings":"AAcA,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,8EAA8E;IAC9E,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAClC,mEAAmE;IACnE,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACpC;AAID,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,mDAA8B,CAAA;AAE9D,mFAAmF;AACnF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CA0C3E;AAED,gFAAgF;AAChF,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CAK1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAOT,MAAM,cAAc,CAAA;AAErB;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE1D;AAED,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAA;CACzB;AAOD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAOT,MAAM,cAAc,CAAA;AAErB;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE1D;AAED,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAA;CACzB;AAOD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAoElE"}
|
|
@@ -127,7 +127,9 @@ export interface WithdrawalFlowConfig {
|
|
|
127
127
|
* from the client's omnibus account, so the host holds no keys for this user.
|
|
128
128
|
* The flow still renders and quotes (priced against the zero address), but it
|
|
129
129
|
* cannot put a transfer on-chain itself: cash payout methods are withheld,
|
|
130
|
-
* and submitting throws unless {@link submitWithdrawal} takes over.
|
|
130
|
+
* and submitting throws unless {@link submitWithdrawal} takes over. With at
|
|
131
|
+
* most one of {@link methods}, the flow then opens on the amount step instead
|
|
132
|
+
* of a method list holding a single row.
|
|
131
133
|
*/
|
|
132
134
|
withdrawalWallet?: WithdrawalClient;
|
|
133
135
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withdrawalFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/withdrawalFlowConfig.ts"],"names":[],"m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E,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAA;CAC7D;AAED,yDAAyD;AACzD,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACzD;;;;;;;OAOG;IACH,qBAAqB,CAAC,EAAE,CACtB,OAAO,EAAE,MAAM,EACf,oBAAoB,EAAE,MAAM,KACzB,IAAI,CAAA;IACT;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACzD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { WithdrawalFlowConfig } from './withdrawalFlowConfig';
|
|
2
|
+
/**
|
|
3
|
+
* Whether a withdrawal opens on its crypto amount step instead of the payout
|
|
4
|
+
* method list: without a signer, cash payout is withheld, so the list could
|
|
5
|
+
* only ever hold the one crypto method.
|
|
6
|
+
*/
|
|
7
|
+
export declare function opensOnCryptoWithdrawal(config: WithdrawalFlowConfig): boolean;
|
|
8
|
+
//# sourceMappingURL=withdrawalMethods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdrawalMethods.d.ts","sourceRoot":"","sources":["../../../src/flow/withdrawalMethods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAElE;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAE7E"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import type { QueryClient } from '@tanstack/react-query';
|
|
1
2
|
export type { FunkitUserIpInfo, UseUserIpInfoResult, } from '@funkit/connect-core';
|
|
2
3
|
export declare function useUserIpInfo(): import("@funkit/connect-core").UseUserIpInfoResult;
|
|
4
|
+
/**
|
|
5
|
+
* Re-asks for the location in the background; a cached answer keeps rendering
|
|
6
|
+
* until the new one lands. Matches the core hook's query key, which
|
|
7
|
+
* `useUserIpInfo.test.tsx` pins.
|
|
8
|
+
*/
|
|
9
|
+
export declare function refreshUserIpInfo(queryClient: QueryClient): void;
|
|
3
10
|
//# sourceMappingURL=useUserIpInfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUserIpInfo.d.ts","sourceRoot":"","sources":["../../../src/geo/useUserIpInfo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useUserIpInfo.d.ts","sourceRoot":"","sources":["../../../src/geo/useUserIpInfo.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAOxD,YAAY,EACV,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,sBAAsB,CAAA;AAO7B,wBAAgB,aAAa,uDAa5B;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAEhE"}
|
|
@@ -9,6 +9,17 @@ export declare function isAboveMaximum(value: string, limitUsd?: string): boolea
|
|
|
9
9
|
* state rather than a violation — there is nothing yet to be too small.
|
|
10
10
|
*/
|
|
11
11
|
export declare function isBelowMinimum(value: string, minLimitUsd?: string): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The edge of a gap nearer `value`: the lower range's reach or the upper
|
|
14
|
+
* range's floor, the lower on a tie. Neither edge is "the" bound inside a gap,
|
|
15
|
+
* so the buyer is sent the shorter way out. Both edges should already be
|
|
16
|
+
* whole cents (see {@link floorCent}, {@link ceilCent}).
|
|
17
|
+
*/
|
|
18
|
+
export declare function nearerEdge(value: number, reach: number, floor: number): number;
|
|
19
|
+
/** The highest whole cent at or under `amount`: the most a range reaching `amount` can be asked for. */
|
|
20
|
+
export declare function floorCent(amount: number): number;
|
|
21
|
+
/** The lowest whole cent at or over `amount`: the least a range starting at `amount` can be asked for. */
|
|
22
|
+
export declare function ceilCent(amount: number): number;
|
|
12
23
|
/**
|
|
13
24
|
* An amount screen's input policy, separate from its layout. Every way a value
|
|
14
25
|
* enters — a numpad key or a quick-amount chip — commits through this hook, so
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAuBrE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAKxE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAM3E;
|
|
1
|
+
{"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAuBrE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAKxE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAM3E;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,MAAM,CAER;AAED,wGAAwG;AACxG,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED,0GAA0G;AAC1G,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE/C;AAmBD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;;;;;;;;;;;wBA4DU,MAAM;2BA2BP,SAAS;;EAiClB"}
|
|
@@ -21,4 +21,18 @@ export declare function useFlowStepFrame(): {
|
|
|
21
21
|
height: number;
|
|
22
22
|
paddingTop: number;
|
|
23
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Fills whichever surface the screen is drawn on: a drawer, when it is in one
|
|
26
|
+
* (gorhom already keeps it below the status bar, so the screen owes no inset),
|
|
27
|
+
* or else the `FlowSheet` step. For a screen that is presented both ways.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useScreenFrame(): {
|
|
30
|
+
surface: "step";
|
|
31
|
+
height: number;
|
|
32
|
+
paddingTop: number;
|
|
33
|
+
} | {
|
|
34
|
+
height: number;
|
|
35
|
+
paddingTop: number;
|
|
36
|
+
surface: "drawer";
|
|
37
|
+
};
|
|
24
38
|
//# sourceMappingURL=useNestedSheetHeight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNestedSheetHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNestedSheetHeight.ts"],"names":[],"mappings":"AAIA,gHAAgH;AAChH,eAAO,MAAM,mBAAmB,KAAK,CAAA;AAErC,iFAAiF;AACjF,eAAO,MAAM,WAAW,6CAA+C,CAAA;AAQvE;;;;;GAKG;AACH,wBAAgB,oBAAoB,WAInC;AAED,2HAA2H;AAC3H,wBAAgB,eAAe,WAI9B;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB;;;EAI/B"}
|
|
1
|
+
{"version":3,"file":"useNestedSheetHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNestedSheetHeight.ts"],"names":[],"mappings":"AAIA,gHAAgH;AAChH,eAAO,MAAM,mBAAmB,KAAK,CAAA;AAErC,iFAAiF;AACjF,eAAO,MAAM,WAAW,6CAA+C,CAAA;AAQvE;;;;;GAKG;AACH,wBAAgB,oBAAoB,WAInC;AAED,2HAA2H;AAC3H,wBAAgB,eAAe,WAI9B;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB;;;EAI/B;AAED;;;;GAIG;AACH,wBAAgB,cAAc;;;;;;;;EAM7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplePayMark.d.ts","sourceRoot":"","sources":["../../../src/icons/ApplePayMark.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApplePayMark.d.ts","sourceRoot":"","sources":["../../../src/icons/ApplePayMark.tsx"],"names":[],"mappings":"AAUA,wBAAgB,YAAY,CAAC,EAAE,MAAoB,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,+BAYzE"}
|
|
@@ -16,6 +16,8 @@ export declare const PURPOSE_FORM: FormDescriptor;
|
|
|
16
16
|
* declarations and figures its questionnaire asks for, all in one form.
|
|
17
17
|
*/
|
|
18
18
|
export declare const DUE_DILIGENCE_FORM: FormDescriptor;
|
|
19
|
+
/** MoonPay's enhanced due diligence round: the profession, then the net worth. */
|
|
20
|
+
export declare const ENHANCED_DUE_DILIGENCE_FORM: FormDescriptor;
|
|
19
21
|
/** The additional-information round the L2 faceplate introduces. */
|
|
20
22
|
export declare const L2_FORM: FormDescriptor;
|
|
21
23
|
/** A form the native renderer has no drawing for. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kycForms.d.ts","sourceRoot":"","sources":["../../../../src/preview/fixtures/kycForms.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAa,KAAK,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"kycForms.d.ts","sourceRoot":"","sources":["../../../../src/preview/fixtures/kycForms.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAa,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAoB5E,wDAAwD;AACxD,eAAO,MAAM,QAAQ,EAAE,cA4BtB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,cAW5B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,cAU1B,CAAA;AAED,6EAA6E;AAC7E,eAAO,MAAM,aAAa,EAAE,cAS3B,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB,EAAE,cAU9B,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,EAAE,cAUlC,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,cAwB7B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,cAc1B,CAAA;AA+BD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,cA2ChC,CAAA;AAED,kFAAkF;AAClF,eAAO,MAAM,2BAA2B,EAAE,cAoBzC,CAAA;AAED,oEAAoE;AACpE,eAAO,MAAM,OAAO,EAAE,cAYrB,CAAA;AAED,qDAAqD;AACrD,eAAO,MAAM,gBAAgB,EAAE,cAU9B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAStB,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;CASxB,CAAA;AAED,qEAAqE;AACrE,eAAO,MAAM,aAAa;;;;;CAKzB,CAAA"}
|
|
@@ -23,6 +23,8 @@ export interface FiatPreviewSeed {
|
|
|
23
23
|
};
|
|
24
24
|
/** Past the document-capture intro, onto the provider's own surface. */
|
|
25
25
|
documentStarted?: boolean;
|
|
26
|
+
/** The provider asked for its capture again after the buyer finished one. */
|
|
27
|
+
captureReissued?: boolean;
|
|
26
28
|
/** The acknowledgement a finished identity form shows before its verdict. */
|
|
27
29
|
kycCompletion?: KycCompletion;
|
|
28
30
|
/** A provider surface that failed, as the adapter reports it. */
|
|
@@ -30,10 +32,10 @@ export interface FiatPreviewSeed {
|
|
|
30
32
|
code: string;
|
|
31
33
|
detail?: string;
|
|
32
34
|
};
|
|
33
|
-
/** The Apple Pay failure code the entry was rerouted past, onto another provider. */
|
|
34
|
-
reroutedFailureCode?: string;
|
|
35
35
|
/** Submits the seeded step's CTA with this id on open — how a failed send is reached. */
|
|
36
36
|
submitOnOpen?: string;
|
|
37
|
+
/** Turns the deposit-match preview on, as the host's internal flag does. */
|
|
38
|
+
depositMatch?: boolean;
|
|
37
39
|
}
|
|
38
40
|
export interface DepositPreviewSeed {
|
|
39
41
|
/** The screen the flow opens on; defaults to the root `beginDeposit` picks. Transfer opens above it. */
|
|
@@ -116,11 +118,12 @@ export declare const SEED: {
|
|
|
116
118
|
code: string;
|
|
117
119
|
detail?: string;
|
|
118
120
|
} | undefined;
|
|
119
|
-
|
|
121
|
+
fiatDepositMatch: (p: ActivePreview) => boolean | undefined;
|
|
120
122
|
kycCompletion: (p: ActivePreview) => "restricted" | "review" | "hold" | undefined;
|
|
121
123
|
identityPage: (p: ActivePreview) => "form" | "consent" | undefined;
|
|
122
124
|
identitySection: (p: ActivePreview) => KycSection | undefined;
|
|
123
125
|
documentStarted: (p: ActivePreview) => boolean | undefined;
|
|
126
|
+
fiatCaptureReissued: (p: ActivePreview) => boolean | undefined;
|
|
124
127
|
depositChainId: (p: ActivePreview) => string | undefined;
|
|
125
128
|
withdrawalMethodId: (p: ActivePreview) => string | undefined;
|
|
126
129
|
withdrawalAmount: (p: ActivePreview) => string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowPreview.d.ts","sourceRoot":"","sources":["../../../src/preview/flowPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EAMpB,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAE5D;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,kFAAkF;IAClF,IAAI,CAAC,EAAE,gBAAgB,CAAA;IACvB,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gGAAgG;IAChG,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wEAAwE;IACxE,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,UAAU,CAAA;KAAE,CAAA;IACvE,wEAAwE;IACxE,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,iEAAiE;IACjE,cAAc,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAClD,
|
|
1
|
+
{"version":3,"file":"flowPreview.d.ts","sourceRoot":"","sources":["../../../src/preview/flowPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EAMpB,MAAM,OAAO,CAAA;AAEd,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,UAAU,EACV,QAAQ,GACT,EAAE;IACD,OAAO,CAAC,EAAE,kBAAkB,CAAA;IAC5B,UAAU,CAAC,EAAE,qBAAqB,CAAA;IAClC,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAcA;AAED,yDAAyD;AACzD,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,aAAa,KAAK,CAAC,GAAG,SAAS,CAAA;AAEtE;;;GAGG;AACH,eAAO,MAAM,IAAI;;;;;;cAnIU,MAAM;iBAAW,MAAM;;;;;;;;;;;;;;CAwJF,CAAA;AAIhD;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,SAAS,CAc9D;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EACpB,OAAO,EAAE,CAAC,GACT,CAAC,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AACnC,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EACjC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EACpB,OAAO,EAAE,CAAC,EACV,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GACvB,CAAC,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"previewFetch.d.ts","sourceRoot":"","sources":["../../../src/preview/previewFetch.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"previewFetch.d.ts","sourceRoot":"","sources":["../../../src/preview/previewFetch.ts"],"names":[],"mappings":"AAIA,OAAO,EAKL,KAAK,eAAe,EACrB,MAAM,aAAa,CAAA;AAEpB,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAkIzB;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,eAAe,EACzB,WAAW,EAAE,KAAK,GACjB,KAAK,CA8EP"}
|
|
@@ -20,6 +20,12 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
20
20
|
readonly requires: "fiatRail";
|
|
21
21
|
readonly touches: string[];
|
|
22
22
|
};
|
|
23
|
+
readonly 'fiat.amount.depositMatch': {
|
|
24
|
+
readonly title: "Amount entry, deposit match (internal flag)";
|
|
25
|
+
readonly flow: "deposit";
|
|
26
|
+
readonly requires: "fiatRail";
|
|
27
|
+
readonly touches: readonly [...string[], "fiat/depositMatch.ts", "flow/DepositMatchSheet.tsx", "screens/DepositMatchScreen.tsx"];
|
|
28
|
+
};
|
|
23
29
|
readonly 'fiat.amount.empty': {
|
|
24
30
|
readonly title: "Amount entry, empty";
|
|
25
31
|
readonly flow: "deposit";
|
|
@@ -32,8 +38,8 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
32
38
|
readonly requires: "fiatRail";
|
|
33
39
|
readonly touches: string[];
|
|
34
40
|
};
|
|
35
|
-
readonly 'fiat.amount.
|
|
36
|
-
readonly title: "Amount entry,
|
|
41
|
+
readonly 'fiat.amount.otpThrottled': {
|
|
42
|
+
readonly title: "Amount entry, the provider will not send another code";
|
|
37
43
|
readonly flow: "deposit";
|
|
38
44
|
readonly requires: "fiatRail";
|
|
39
45
|
readonly touches: string[];
|
|
@@ -68,6 +74,12 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
68
74
|
readonly requires: "fiatRail";
|
|
69
75
|
readonly touches: string[];
|
|
70
76
|
};
|
|
77
|
+
readonly 'fiat.amount.gap': {
|
|
78
|
+
readonly title: "Amount entry, between two providers' ranges (Change to the nearer)";
|
|
79
|
+
readonly flow: "deposit";
|
|
80
|
+
readonly requires: "fiatRail";
|
|
81
|
+
readonly touches: string[];
|
|
82
|
+
};
|
|
71
83
|
readonly 'fiat.amount.currencyLookupFailed': {
|
|
72
84
|
readonly title: "Amount entry, the buyer's currency lookup failed";
|
|
73
85
|
readonly flow: "deposit";
|
|
@@ -158,6 +170,12 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
158
170
|
readonly requires: "fiatRail";
|
|
159
171
|
readonly touches: readonly [...string[], "fiat/providers/kycIntro.ts", "fiat/providers/stripeKycIntro.ts"];
|
|
160
172
|
};
|
|
173
|
+
readonly 'kyc.l2.moonpay-consent': {
|
|
174
|
+
readonly title: "KYC L2: MoonPay sharing consent";
|
|
175
|
+
readonly flow: "deposit";
|
|
176
|
+
readonly requires: "fiatRail";
|
|
177
|
+
readonly touches: readonly [...string[], "fiat/providers/kycIntro.ts", "fiat/FiatSharingConsentNotice.tsx", "fiat/useSharingConsent.ts"];
|
|
178
|
+
};
|
|
161
179
|
readonly 'kyc.l2.dob': {
|
|
162
180
|
readonly title: "KYC L2: age";
|
|
163
181
|
readonly flow: "deposit";
|
|
@@ -188,12 +206,30 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
188
206
|
readonly requires: "fiatRail";
|
|
189
207
|
readonly touches: string[];
|
|
190
208
|
};
|
|
209
|
+
readonly 'kyc.edd.profession': {
|
|
210
|
+
readonly title: "KYC: enhanced due diligence profession";
|
|
211
|
+
readonly flow: "deposit";
|
|
212
|
+
readonly requires: "fiatRail";
|
|
213
|
+
readonly touches: readonly [...string[], "fiat/FiatChoiceList.tsx"];
|
|
214
|
+
};
|
|
215
|
+
readonly 'kyc.edd.netWorth': {
|
|
216
|
+
readonly title: "KYC: enhanced due diligence net worth";
|
|
217
|
+
readonly flow: "deposit";
|
|
218
|
+
readonly requires: "fiatRail";
|
|
219
|
+
readonly touches: string[];
|
|
220
|
+
};
|
|
191
221
|
readonly 'kyc.form.unsupported': {
|
|
192
222
|
readonly title: "KYC: form this build cannot draw";
|
|
193
223
|
readonly flow: "deposit";
|
|
194
224
|
readonly requires: "fiatRail";
|
|
195
225
|
readonly touches: readonly string[];
|
|
196
226
|
};
|
|
227
|
+
readonly 'kyc.stepUp.afterReview': {
|
|
228
|
+
readonly title: "KYC: a second round after review";
|
|
229
|
+
readonly flow: "deposit";
|
|
230
|
+
readonly requires: "fiatRail";
|
|
231
|
+
readonly touches: readonly ["flow/pageTurn.ts", "fiat/FiatKycOutcomeScreen.tsx"];
|
|
232
|
+
};
|
|
197
233
|
readonly 'kyc.form.retry': {
|
|
198
234
|
readonly title: "KYC: form send failed";
|
|
199
235
|
readonly flow: "deposit";
|
|
@@ -206,6 +242,12 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
206
242
|
readonly requires: "fiatRail";
|
|
207
243
|
readonly touches: readonly ["fiat/FiatDocumentCaptureStep.tsx", "fiat/FiatKycIntroScreen.tsx"];
|
|
208
244
|
};
|
|
245
|
+
readonly 'kyc.capture.moonpay-handoff': {
|
|
246
|
+
readonly title: "KYC: MoonPay asks for more of its hosted check";
|
|
247
|
+
readonly flow: "deposit";
|
|
248
|
+
readonly requires: "fiatRail";
|
|
249
|
+
readonly touches: readonly ["fiat/providers/moonpayHandoffCard.tsx", "fiat/useKycCaptureRound.ts"];
|
|
250
|
+
};
|
|
209
251
|
readonly 'kyc.completion.review': {
|
|
210
252
|
readonly title: "KYC completion: in review";
|
|
211
253
|
readonly flow: "deposit";
|
|
@@ -224,6 +266,12 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
224
266
|
readonly requires: "fiatRail";
|
|
225
267
|
readonly touches: readonly ["fiat/FiatKycOutcomeScreen.tsx", "fiat/useKycCompletion.ts"];
|
|
226
268
|
};
|
|
269
|
+
readonly 'kyc.required': {
|
|
270
|
+
readonly title: "Amount entry, identity asked before a first deposit";
|
|
271
|
+
readonly flow: "deposit";
|
|
272
|
+
readonly requires: "fiatRail";
|
|
273
|
+
readonly touches: string[];
|
|
274
|
+
};
|
|
227
275
|
readonly 'kyc.verdict.review': {
|
|
228
276
|
readonly title: "Amount entry after KYC: in review";
|
|
229
277
|
readonly flow: "deposit";
|
|
@@ -326,6 +374,12 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
326
374
|
readonly requires: "fiatRail";
|
|
327
375
|
readonly touches: string[];
|
|
328
376
|
};
|
|
377
|
+
readonly 'fiat.paymentFailed': {
|
|
378
|
+
readonly title: "Apple Pay payment failed";
|
|
379
|
+
readonly flow: "deposit";
|
|
380
|
+
readonly requires: "fiatRail";
|
|
381
|
+
readonly touches: readonly ["fiat/FiatPaymentFailedSheet.tsx", "fiat/usePaymentFailureAnswer.ts"];
|
|
382
|
+
};
|
|
329
383
|
readonly 'fiat.retryable': {
|
|
330
384
|
readonly title: "Submission failed, retryable";
|
|
331
385
|
readonly flow: "deposit";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scenarioCatalog.d.ts","sourceRoot":"","sources":["../../../src/preview/scenarioCatalog.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,YAAY,CAAA;AAElD;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAC1B,UAAU,GACV,eAAe,GACf,kBAAkB,CAAA;AAEtB,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,WAAW,CAAA;IACjB,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,oFAAoF;IACpF,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CAC3B;AAmBD,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"scenarioCatalog.d.ts","sourceRoot":"","sources":["../../../src/preview/scenarioCatalog.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,YAAY,CAAA;AAElD;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAC1B,UAAU,GACV,eAAe,GACf,kBAAkB,CAAA;AAEtB,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,WAAW,CAAA;IACjB,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,oFAAoF;IACpF,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CAC3B;AAmBD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+coB,CAAA;AAEzD,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,wBAAwB,CAAA;AAErE,eAAO,MAAM,oBAAoB,EAE5B,iBAAiB,EAAE,CAAA"}
|
|
@@ -15,11 +15,22 @@ export type PreviewResponse = FiatStepResponse | {
|
|
|
15
15
|
* - All but `NO_CANDIDATE_LEGACY` follow fun-backend #4936 / #4875, which are not deployed yet.
|
|
16
16
|
*/
|
|
17
17
|
export type PreviewNoRouteReason = 'NO_CANDIDATE_LEGACY' | 'NO_CANDIDATE' | 'KYC_INSUFFICIENT' | 'USER_LIMIT' | 'PROVIDER_OUTAGE';
|
|
18
|
+
export type PreviewRange = readonly [
|
|
19
|
+
min: string,
|
|
20
|
+
max: string,
|
|
21
|
+
userMax: string | null
|
|
22
|
+
];
|
|
18
23
|
export interface PreviewBackend {
|
|
19
24
|
quote?: FiatStepResponse;
|
|
20
25
|
minimum?: string;
|
|
21
26
|
/** Every quote is refused with this no-route reason. */
|
|
22
27
|
noRoute?: PreviewNoRouteReason;
|
|
28
|
+
/**
|
|
29
|
+
* The only amounts served, as `[min, max, userMax]`: the routing table lists
|
|
30
|
+
* them, and a quote outside all of them is refused with them as
|
|
31
|
+
* `serviceableRanges`, the way fun-backend #5119 keeps a buyer cap's gap.
|
|
32
|
+
*/
|
|
33
|
+
ranges?: readonly PreviewRange[];
|
|
23
34
|
/** The country → currency lookup fails, so no quote is ever asked for. */
|
|
24
35
|
currencyLookupFails?: boolean;
|
|
25
36
|
responses?: Readonly<Record<string, PreviewResponse>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scenarios.d.ts","sourceRoot":"","sources":["../../../src/preview/scenarios.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"scenarios.d.ts","sourceRoot":"","sources":["../../../src/preview/scenarios.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,sBAAsB,CAAA;AAK5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAYpD,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACvB,MAAM,mBAAmB,CAAA;AAE1B,yFAAyF;AACzF,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAEnE;;;;GAIG;AACH;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAC5B,qBAAqB,GACrB,cAAc,GACd,kBAAkB,GAClB,YAAY,GACZ,iBAAiB,CAAA;AAErB,MAAM,MAAM,YAAY,GAAG,SAAS;IAClC,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,MAAM;IACX,OAAO,EAAE,MAAM,GAAG,IAAI;CACvB,CAAA;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,gBAAgB,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wDAAwD;IACxD,OAAO,CAAC,EAAE,oBAAoB,CAAA;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;IAChC,0EAA0E;IAC1E,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAA;CACtD;AAED,MAAM,WAAW,eAAgB,SAAQ,oBAAoB;IAC3D,EAAE,EAAE,iBAAiB,CAAA;IACrB,IAAI,EAAE,eAAe,CAAA;IACrB,OAAO,EAAE,cAAc,CAAA;CACxB;AA4iBD,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CACtC,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAUG,CAAA;AAE/C,8FAA8F;AAC9F,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,eAAe,GACxB,gBAAgB,GAAG,SAAS,CAE9B;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;kBAvjBmB,MAAM;;;;;;;;;CAujBhB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import { type ComponentType, type ReactNode } from 'react';
|
|
2
2
|
import { type AccountBalanceChipProps } from '../components/v2/AccountBalanceChip';
|
|
3
3
|
import { type QuickAmountOption } from '../components/v2/QuickAmountsRow';
|
|
4
4
|
import { type PaymentMethodPickerProps } from '../components/v2/PaymentMethodPicker';
|
|
@@ -13,14 +13,23 @@ export interface DepositAmountScreenProps {
|
|
|
13
13
|
onChangeInput: (input: string) => void;
|
|
14
14
|
/** Recommended amounts shown while the input is empty. */
|
|
15
15
|
quickAmounts?: QuickAmountOption[];
|
|
16
|
-
/**
|
|
16
|
+
/** ISO 4217 of `input` and both bounds; `USD` when omitted. */
|
|
17
|
+
currency?: string;
|
|
18
|
+
/** The currency is still being looked up: no symbol is drawn beside the amount. */
|
|
19
|
+
currencyPending?: boolean;
|
|
20
|
+
/** The payment source's maximum, in `currency`; a value past it is named, not refused. */
|
|
17
21
|
limitUsd?: string;
|
|
18
|
-
/** Smallest amount the payment source takes, in
|
|
22
|
+
/** Smallest amount the payment source takes, in `currency`. */
|
|
19
23
|
minLimitUsd?: string;
|
|
20
24
|
/** Locks `input`: disables the numpad, backspace/clear, and quick amounts. */
|
|
21
25
|
disabled?: boolean;
|
|
22
26
|
/** The full fee line for the entered amount (e.g. `$0.50 fee`). */
|
|
23
27
|
fee?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The run inside `fee` set in the brand colour, with the ⓘ (`$50 Deposit
|
|
30
|
+
* Match`). Passed as the substring so locales can seat it anywhere.
|
|
31
|
+
*/
|
|
32
|
+
feeHighlight?: string;
|
|
24
33
|
/**
|
|
25
34
|
* The shown fee no longer prices the current input (a keystroke invalidated
|
|
26
35
|
* the quote). The fee line fades out and stops answering taps until this
|
|
@@ -41,6 +50,12 @@ export interface DepositAmountScreenProps {
|
|
|
41
50
|
* method itself, so the fee line moves above it and drops `methodBadge`.
|
|
42
51
|
*/
|
|
43
52
|
paymentMethodPickerProps?: PaymentMethodPickerProps;
|
|
53
|
+
/**
|
|
54
|
+
* No provider will take the selected method at this amount. With a picker,
|
|
55
|
+
* the action folds into it and the picker is the screen's one button; with
|
|
56
|
+
* none, `renderSubmit` keeps the slot.
|
|
57
|
+
*/
|
|
58
|
+
methodUnavailable?: boolean;
|
|
44
59
|
/** Banner beneath the amount, e.g. an identity hold. */
|
|
45
60
|
notice?: ReactNode;
|
|
46
61
|
/** Consent copy beneath the keypad, replacing attribution while required. */
|
|
@@ -51,6 +66,11 @@ export interface DepositAmountScreenProps {
|
|
|
51
66
|
*/
|
|
52
67
|
disclosurePending?: boolean;
|
|
53
68
|
submitLabel: string;
|
|
69
|
+
/** The platform's own pay button, drawn in place of the submit pill. */
|
|
70
|
+
PayButton?: ComponentType<{
|
|
71
|
+
onPress: () => void;
|
|
72
|
+
disabled?: boolean;
|
|
73
|
+
}>;
|
|
54
74
|
canSubmit: boolean;
|
|
55
75
|
onSubmit: () => void;
|
|
56
76
|
/** A round already under way: its loader holds the slot over everything else. */
|
|
@@ -71,5 +91,5 @@ export interface DepositAmountScreenProps {
|
|
|
71
91
|
* source's limit — answers with a side-to-side shake, a brief warning tint and
|
|
72
92
|
* a haptic. While `disabled`, the input controls themselves are non-interactive.
|
|
73
93
|
*/
|
|
74
|
-
export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, minLimitUsd, disabled, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, paymentMethodPickerProps, notice, disclosure, disclosurePending, submitLabel, canSubmit, onSubmit, renderPending, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
|
|
94
|
+
export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, currency, currencyPending, limitUsd, minLimitUsd, disabled, fee, feeHighlight, feePending, onPressFee, feeAccessibilityLabel, methodBadge, paymentMethodPickerProps, methodUnavailable, notice, disclosure, disclosurePending, submitLabel, PayButton, canSubmit, onSubmit, renderPending, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
|
|
75
95
|
//# sourceMappingURL=DepositAmountScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,C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E,SAAS,CAAA;IAClB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,SAAS,CAAC,EAAE,aAAa,CAAC;QAAE,OAAO,EAAE,MAAM,IAAI,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;IACtE,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,iFAAiF;IACjF,aAAa,CAAC,EAAE,MAAM,SAAS,CAAA;IAC/B,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,SAAS,CAAA;IAC9B,wBAAwB,EAAE,MAAM,CAAA;IAChC,2BAA2B,EAAE,MAAM,CAAA;IACnC,2DAA2D;IAC3D,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,SAAS,EACT,cAAc,EACd,KAAK,EACL,aAAa,EACb,YAAY,EACZ,QAAgB,EAChB,eAAuB,EACvB,QAAQ,EACR,WAAW,EACX,QAAgB,EAChB,GAAG,EACH,YAAY,EACZ,UAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,wBAAwB,EACxB,iBAAyB,EACzB,MAAM,EACN,UAAU,EACV,iBAAyB,EACzB,WAAW,EACX,SAAS,EACT,SAAS,EACT,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,eAAuB,GACxB,EAAE,wBAAwB,+BA4W1B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface DepositMatchScreenProps {
|
|
2
|
+
/** The entered amount, formatted (`$50.00`). */
|
|
3
|
+
amount: string;
|
|
4
|
+
/** The fee's rate (`0.5%`); the row reads plain `Fee` without one. */
|
|
5
|
+
feeRate?: string;
|
|
6
|
+
/** The fee the match waives, struck through beside `FREE`; unpriced, omitted. */
|
|
7
|
+
waivedFee?: string;
|
|
8
|
+
/** The amount plus its match. */
|
|
9
|
+
totalWithBonus: string;
|
|
10
|
+
/** Where the deposit lands (`You'll receive USDC on Solana`). */
|
|
11
|
+
footnote?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The fee drawer for a deposit the host matches: the fee is waived and the
|
|
15
|
+
* total carries the bonus. Presented through `Drawer`, like the fee drawer.
|
|
16
|
+
*/
|
|
17
|
+
export declare function DepositMatchScreen({ amount, feeRate, waivedFee, totalWithBonus, footnote, }: DepositMatchScreenProps): import("react").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=DepositMatchScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DepositMatchScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositMatchScreen.tsx"],"names":[],"mappings":"AA4BA,MAAM,WAAW,uBAAuB;IACtC,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAA;IACd,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iCAAiC;IACjC,cAAc,EAAE,MAAM,CAAA;IACtB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,OAAO,EACP,SAAS,EACT,cAAc,EACd,QAAQ,GACT,EAAE,uBAAuB,+BAoGzB"}
|
|
@@ -33,4 +33,6 @@ export interface FeeDetailsScreenProps {
|
|
|
33
33
|
* the backdrop and accessibility escape — the drawer's only ways out.
|
|
34
34
|
*/
|
|
35
35
|
export declare function FeeDetailsScreen({ summary, rows, showAttribution, }: FeeDetailsScreenProps): import("react").JSX.Element;
|
|
36
|
+
/** Hairline between breakdown rows (Figma `Line 1`/`Line 2`, 313pt wide). */
|
|
37
|
+
export declare function RowDivider(): import("react").JSX.Element;
|
|
36
38
|
//# sourceMappingURL=FeeDetailsScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeeDetailsScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/FeeDetailsScreen.tsx"],"names":[],"mappings":"AA0BA,iDAAiD;AACjD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,mDAAmD;IACnD,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,IAAI,EACJ,eAAuB,GACxB,EAAE,qBAAqB,+BAwCvB"}
|
|
1
|
+
{"version":3,"file":"FeeDetailsScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/FeeDetailsScreen.tsx"],"names":[],"mappings":"AA0BA,iDAAiD;AACjD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,mDAAmD;IACnD,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,IAAI,EACJ,eAAuB,GACxB,EAAE,qBAAqB,+BAwCvB;AAkDD,6EAA6E;AAC7E,wBAAgB,UAAU,gCAUzB"}
|
|
@@ -16,8 +16,8 @@ export interface SwappedWebViewProps {
|
|
|
16
16
|
* Renders the Swapped embedded payment flow in a `WebView` and bridges its
|
|
17
17
|
* messages to the typed {@link SwappedTransport} contract — the React Native
|
|
18
18
|
* counterpart of web's iframe. The {@link SWAPPED_WEBVIEW_INJECTED_JS} bridge
|
|
19
|
-
* redirects the embed's `
|
|
20
|
-
* parsed + origin-validated before reaching the handler.
|
|
19
|
+
* redirects the embed's `parent`/`opener` posts to the native channel;
|
|
20
|
+
* `onMessage` is parsed + origin-validated before reaching the handler.
|
|
21
21
|
*/
|
|
22
22
|
export declare function SwappedWebView({ url, onMessage, onBack, style, }: SwappedWebViewProps): import("react").JSX.Element;
|
|
23
23
|
//# sourceMappingURL=SwappedWebView.d.ts.map
|