@funkit/connect-rn 9.0.0 → 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 +89 -0
- package/README.md +100 -0
- package/app.plugin.js +92 -0
- package/dist/{chunk-BC4RXFI7.js → chunk-4EEB4ZBQ.js} +59 -5
- package/dist/chunk-4EEB4ZBQ.js.map +7 -0
- package/dist/{chunk-MVQH4YFI.js → chunk-EWSXVFEF.js} +561 -129
- package/dist/chunk-EWSXVFEF.js.map +7 -0
- package/dist/{chunk-3ZNAGQHD.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 +6493 -3838
- package/dist/index.js.map +4 -4
- package/dist/preview.js +265 -6
- package/dist/preview.js.map +3 -3
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/v2/AccountBalanceChip.d.ts.map +1 -1
- package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
- package/dist/src/components/v2/NumPad.d.ts.map +1 -1
- 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/FiatChoiceField.d.ts.map +1 -1
- package/dist/src/fiat/FiatChoiceList.d.ts.map +1 -1
- package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
- 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/FiatErrorNotice.d.ts.map +1 -1
- package/dist/src/fiat/FiatFailureBanner.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/FiatFormHeading.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/FiatKycNotice.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/FiatPhoneField.d.ts.map +1 -1
- 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/closeFailure.d.ts.map +1 -1
- 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/kycFormTheme.d.ts +2 -29
- package/dist/src/fiat/kycFormTheme.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 +48 -0
- package/dist/src/fiat/paymentReroute.d.ts.map +1 -0
- package/dist/src/fiat/paymentSurfaceFailure.d.ts +7 -22
- 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 +35 -9
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts +7 -2
- package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts.map +1 -1
- package/dist/src/fiat/providers/kycIntro.d.ts +16 -1
- 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 +15 -0
- package/dist/src/fiat/providers/moonpayFailureCopy.d.ts.map +1 -0
- 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/stripeCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeFailureCopy.d.ts +16 -0
- package/dist/src/fiat/providers/stripeFailureCopy.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/stripePayment.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 +2 -2
- 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/DepositReceivedToast.d.ts.map +1 -1
- 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 +3 -6
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.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/SheetMaterial.d.ts +1 -9
- package/dist/src/flow/SheetMaterial.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/useDepositReceivedToast.d.ts +10 -1
- package/dist/src/flow/useDepositReceivedToast.d.ts.map +1 -1
- 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 -0
- 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 +60 -0
- 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/screens/depositMetrics.d.ts +2 -25
- package/dist/src/screens/depositMetrics.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 +17 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/inputTextStyle.d.ts +3 -2
- package/dist/src/theme/inputTextStyle.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 +528 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/textStyle.d.ts +1 -0
- package/dist/src/theme/textStyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +48 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/typeScale.d.ts +116 -0
- package/dist/src/theme/typeScale.d.ts.map +1 -0
- 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-3ZNAGQHD.js.map +0 -7
- package/dist/chunk-BC4RXFI7.js.map +0 -7
- package/dist/chunk-MVQH4YFI.js.map +0 -7
- package/dist/src/fiat/FiatGradientTitle.d.ts +0 -15
- package/dist/src/fiat/FiatGradientTitle.d.ts.map +0 -1
- 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
|
@@ -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. */
|
|
@@ -32,6 +34,8 @@ export interface FiatPreviewSeed {
|
|
|
32
34
|
};
|
|
33
35
|
/** Submits the seeded step's CTA with this id on open — how a failed send is reached. */
|
|
34
36
|
submitOnOpen?: string;
|
|
37
|
+
/** Turns the deposit-match preview on, as the host's internal flag does. */
|
|
38
|
+
depositMatch?: boolean;
|
|
35
39
|
}
|
|
36
40
|
export interface DepositPreviewSeed {
|
|
37
41
|
/** The screen the flow opens on; defaults to the root `beginDeposit` picks. Transfer opens above it. */
|
|
@@ -114,10 +118,12 @@ export declare const SEED: {
|
|
|
114
118
|
code: string;
|
|
115
119
|
detail?: string;
|
|
116
120
|
} | undefined;
|
|
121
|
+
fiatDepositMatch: (p: ActivePreview) => boolean | undefined;
|
|
117
122
|
kycCompletion: (p: ActivePreview) => "restricted" | "review" | "hold" | undefined;
|
|
118
123
|
identityPage: (p: ActivePreview) => "form" | "consent" | undefined;
|
|
119
124
|
identitySection: (p: ActivePreview) => KycSection | undefined;
|
|
120
125
|
documentStarted: (p: ActivePreview) => boolean | undefined;
|
|
126
|
+
fiatCaptureReissued: (p: ActivePreview) => boolean | undefined;
|
|
121
127
|
depositChainId: (p: ActivePreview) => string | undefined;
|
|
122
128
|
withdrawalMethodId: (p: ActivePreview) => string | undefined;
|
|
123
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,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}
|
|
@@ -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,6 +38,12 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
32
38
|
readonly requires: "fiatRail";
|
|
33
39
|
readonly touches: string[];
|
|
34
40
|
};
|
|
41
|
+
readonly 'fiat.amount.otpThrottled': {
|
|
42
|
+
readonly title: "Amount entry, the provider will not send another code";
|
|
43
|
+
readonly flow: "deposit";
|
|
44
|
+
readonly requires: "fiatRail";
|
|
45
|
+
readonly touches: string[];
|
|
46
|
+
};
|
|
35
47
|
readonly 'fiat.amount.noProvider': {
|
|
36
48
|
readonly title: "Amount entry, no provider serves this buyer (fun-backend #4936)";
|
|
37
49
|
readonly flow: "deposit";
|
|
@@ -62,6 +74,12 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
62
74
|
readonly requires: "fiatRail";
|
|
63
75
|
readonly touches: string[];
|
|
64
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
|
+
};
|
|
65
83
|
readonly 'fiat.amount.currencyLookupFailed': {
|
|
66
84
|
readonly title: "Amount entry, the buyer's currency lookup failed";
|
|
67
85
|
readonly flow: "deposit";
|
|
@@ -152,6 +170,12 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
152
170
|
readonly requires: "fiatRail";
|
|
153
171
|
readonly touches: readonly [...string[], "fiat/providers/kycIntro.ts", "fiat/providers/stripeKycIntro.ts"];
|
|
154
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
|
+
};
|
|
155
179
|
readonly 'kyc.l2.dob': {
|
|
156
180
|
readonly title: "KYC L2: age";
|
|
157
181
|
readonly flow: "deposit";
|
|
@@ -182,12 +206,30 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
182
206
|
readonly requires: "fiatRail";
|
|
183
207
|
readonly touches: string[];
|
|
184
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
|
+
};
|
|
185
221
|
readonly 'kyc.form.unsupported': {
|
|
186
222
|
readonly title: "KYC: form this build cannot draw";
|
|
187
223
|
readonly flow: "deposit";
|
|
188
224
|
readonly requires: "fiatRail";
|
|
189
225
|
readonly touches: readonly string[];
|
|
190
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
|
+
};
|
|
191
233
|
readonly 'kyc.form.retry': {
|
|
192
234
|
readonly title: "KYC: form send failed";
|
|
193
235
|
readonly flow: "deposit";
|
|
@@ -200,6 +242,12 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
200
242
|
readonly requires: "fiatRail";
|
|
201
243
|
readonly touches: readonly ["fiat/FiatDocumentCaptureStep.tsx", "fiat/FiatKycIntroScreen.tsx"];
|
|
202
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
|
+
};
|
|
203
251
|
readonly 'kyc.completion.review': {
|
|
204
252
|
readonly title: "KYC completion: in review";
|
|
205
253
|
readonly flow: "deposit";
|
|
@@ -218,6 +266,12 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
218
266
|
readonly requires: "fiatRail";
|
|
219
267
|
readonly touches: readonly ["fiat/FiatKycOutcomeScreen.tsx", "fiat/useKycCompletion.ts"];
|
|
220
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
|
+
};
|
|
221
275
|
readonly 'kyc.verdict.review': {
|
|
222
276
|
readonly title: "Amount entry after KYC: in review";
|
|
223
277
|
readonly flow: "deposit";
|
|
@@ -320,6 +374,12 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
320
374
|
readonly requires: "fiatRail";
|
|
321
375
|
readonly touches: string[];
|
|
322
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
|
+
};
|
|
323
383
|
readonly 'fiat.retryable': {
|
|
324
384
|
readonly title: "Submission failed, retryable";
|
|
325
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,CAAA;AAmB/E,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAKzC,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,sCAAsC,CAAA;AA8C7C,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,uBAAuB,CAAA;IACxC,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,0DAA0D;IAC1D,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAClC,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mFAAmF;IACnF,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mEAAmE;IACnE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH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,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":"
|
|
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"}
|
|
@@ -18,26 +18,15 @@ export declare const DEPOSIT_METRICS: {
|
|
|
18
18
|
readonly top: 92;
|
|
19
19
|
readonly height: 32;
|
|
20
20
|
readonly titleTop: 100;
|
|
21
|
-
readonly titleSize: 24;
|
|
22
|
-
readonly titleLineHeight: 23.76;
|
|
23
21
|
};
|
|
24
22
|
readonly balance: {
|
|
25
|
-
readonly labelSize: 12;
|
|
26
|
-
readonly labelLineHeight: 13.8;
|
|
27
|
-
readonly labelTracking: -0.36;
|
|
28
23
|
readonly labelTop: 93;
|
|
29
|
-
readonly valueSize: 15;
|
|
30
|
-
readonly valueLineHeight: 17.25;
|
|
31
|
-
readonly valueTracking: -0.48;
|
|
32
24
|
readonly valueTop: 107;
|
|
33
|
-
readonly centsSize: 10.5;
|
|
34
25
|
readonly avatarSize: 32;
|
|
35
26
|
readonly avatarRight: 16;
|
|
36
27
|
readonly avatarGap: 6;
|
|
37
28
|
};
|
|
38
29
|
readonly amount: {
|
|
39
|
-
readonly size: 96;
|
|
40
|
-
readonly tracking: -1.44;
|
|
41
30
|
readonly height: 114;
|
|
42
31
|
readonly centerY: 291;
|
|
43
32
|
readonly placeholderOpacity: 0.1;
|
|
@@ -57,9 +46,6 @@ export declare const DEPOSIT_METRICS: {
|
|
|
57
46
|
readonly iconSize: 26;
|
|
58
47
|
readonly trailingWidth: 56;
|
|
59
48
|
readonly chevronSize: 20;
|
|
60
|
-
readonly labelSize: 17;
|
|
61
|
-
readonly labelLineHeight: 22;
|
|
62
|
-
readonly labelTracking: -0.425;
|
|
63
49
|
readonly amountCenterY: 253;
|
|
64
50
|
readonly feeGap: 20;
|
|
65
51
|
};
|
|
@@ -67,9 +53,6 @@ export declare const DEPOSIT_METRICS: {
|
|
|
67
53
|
readonly bottom: 126;
|
|
68
54
|
};
|
|
69
55
|
readonly fee: {
|
|
70
|
-
readonly size: 15;
|
|
71
|
-
readonly lineHeight: 15;
|
|
72
|
-
readonly tracking: -0.6;
|
|
73
56
|
readonly rightInset: 2;
|
|
74
57
|
readonly centerY: 459.5;
|
|
75
58
|
readonly buttonGap: 21;
|
|
@@ -83,25 +66,19 @@ export declare const DEPOSIT_METRICS: {
|
|
|
83
66
|
readonly chipHeight: 48;
|
|
84
67
|
readonly gap: 8;
|
|
85
68
|
readonly radius: 14;
|
|
86
|
-
readonly tracking: -0.28;
|
|
87
69
|
};
|
|
88
70
|
readonly button: {
|
|
89
71
|
readonly height: 56;
|
|
90
72
|
readonly top: 488;
|
|
91
73
|
readonly radius: 999;
|
|
92
|
-
readonly fontSize: 17;
|
|
93
|
-
readonly tracking: -0.68;
|
|
94
74
|
};
|
|
95
75
|
readonly numpad: {
|
|
96
76
|
readonly width: 274;
|
|
97
77
|
readonly height: 198;
|
|
98
78
|
readonly top: 574;
|
|
99
79
|
readonly rowPitch: 60;
|
|
100
|
-
|
|
101
|
-
readonly
|
|
102
|
-
readonly tracking: -0.36;
|
|
103
|
-
readonly decimalSize: 48;
|
|
104
|
-
readonly decimalTracking: -0.72;
|
|
80
|
+
/** The height Figma bounds each row of glyphs to, inside its pitch. */
|
|
81
|
+
readonly glyphRowHeight: 18;
|
|
105
82
|
readonly decimalOffsetY: -10;
|
|
106
83
|
readonly buttonGap: 30;
|
|
107
84
|
readonly bottomGap: 80;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositMetrics.d.ts","sourceRoot":"","sources":["../../../src/screens/depositMetrics.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"depositMetrics.d.ts","sourceRoot":"","sources":["../../../src/screens/depositMetrics.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8DxB,uEAAuE;;;;;;;;;;;;;;;CAUjE,CAAA;AAEV,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIvD;AAKD,eAAO,MAAM,sBAAsB,QACU,CAAA;AAE7C;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,sBAAsB,EAAE,OAAO,GAAG,MAAM,CAI5E;AAKD,2DAA2D;AAC3D,wBAAgB,mBAAmB,CAAC,sBAAsB,EAAE,OAAO,GAAG,MAAM,CAI3E;AAED,gFAAgF;AAChF,wBAAgB,mBAAmB,CAAC,sBAAsB,EAAE,OAAO,GAAG,MAAM,CAM3E;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,sBAAsB,EAAE,OAAO,GAAG,MAAM,CAM1E;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,MAAM,EACpB,sBAAsB,UAAQ,GAC7B,MAAM,CAOR;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAM/D;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAU9D;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,cAAc,SAAI,EAClB,sBAAsB,UAAQ,GAC7B,MAAM,CAkCR;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,sBAAsB,UAAQ,GAC7B,MAAM,CAaR"}
|
|
@@ -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
|
|
@@ -1,41 +1,10 @@
|
|
|
1
1
|
import { type SwappedInboundMessage, type SwappedOutboundMessage, type SwappedTransport } from '@funkit/connect-core';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* to the page; everything unmarked is embed traffic and goes to native.
|
|
6
|
-
*/
|
|
7
|
-
export declare const FUNKIT_ENVELOPE_KEY = "__funkitSwapped";
|
|
8
|
-
/**
|
|
9
|
-
* Injected into the Swapped WebView before its content loads. Installs one
|
|
10
|
-
* bridged `postMessage` that routes BOTH directions:
|
|
11
|
-
*
|
|
12
|
-
* - **embed → native**: the embed talks to its host by calling
|
|
13
|
-
* `window.parent.postMessage(obj, origin)` (the web iframe contract); at the
|
|
14
|
-
* top level `window.parent === window`, so overriding `window.postMessage`
|
|
15
|
-
* intercepts those calls and forwards them — JSON-stringified — to React
|
|
16
|
-
* Native via `window.ReactNativeWebView.postMessage`. The RN side parses +
|
|
17
|
-
* origin-validates via {@link handleWebViewMessage}.
|
|
18
|
-
* - **native → embed**: messages injected by {@link buildSwappedSendScript}
|
|
19
|
-
* arrive at the same bridged function wrapped in a funkit-marked envelope
|
|
20
|
-
* ({@link FUNKIT_ENVELOPE_KEY}); the bridge unwraps them and re-dispatches
|
|
21
|
-
* the payload through the REAL `postMessage` (captured before the override),
|
|
22
|
-
* so the embed's `message` listeners receive a genuine, trusted MessageEvent
|
|
23
|
-
* with an object `event.data` — exactly what they get from an iframe parent.
|
|
24
|
-
*
|
|
25
|
-
* It also installs a fake `window.opener` wired to the native channel: with no
|
|
26
|
-
* parent frame the widget posts its lifecycle messages (`SWAPPED_READY`, …) to
|
|
27
|
-
* `opener` instead of `parent`, and a top-level WebView has neither — without
|
|
28
|
-
* the shim those messages are silently dropped.
|
|
29
|
-
*/
|
|
30
|
-
export declare const SWAPPED_WEBVIEW_INJECTED_JS = "(function () {\n if (window.__funkitSwappedBridge) { return; }\n window.__funkitSwappedBridge = true;\n // The REAL postMessage, captured before the override below.\n var postToPage = window.postMessage.bind(window);\n function forwardToNative(message) {\n try {\n var data = typeof message === 'string' ? message : JSON.stringify(message);\n window.ReactNativeWebView && window.ReactNativeWebView.postMessage(data);\n } catch (e) {}\n }\n function bridged(message) {\n // funkit envelope (host \u2192 embed): unwrap + deliver to the page's listeners.\n if (message && message.__funkitSwapped) {\n try { postToPage(message.payload, '*'); } catch (e) {}\n return;\n }\n // Anything else is the embed talking to its host \u2192 forward to native.\n forwardToNative(message);\n }\n try { window.postMessage = bridged; } catch (e) {}\n // The widget only emits some messages (notably SWAPPED_ORDER_DATA, the sell\n // deposit address) when it believes it is embedded in a parent frame \u2014 on web\n // that's a real <iframe> so window.parent !== window. A top-level WebView has\n // window.parent === window, so present a DISTINCT parent/top (a proxy over\n // window) whose postMessage forwards to native; the get-trap delegates every\n // other property to the real window so the widget's other parent.* access works.\n var frameProxy = window;\n try {\n frameProxy = new Proxy(window, {\n get: function (target, prop) {\n if (prop === 'postMessage') { return bridged; }\n var value = target[prop];\n return typeof value === 'function' ? value.bind(target) : value;\n },\n });\n } catch (e) {\n // Proxy unavailable \u2192 fall back to bridging the real parent.\n try { if (window.parent) { window.parent.postMessage = bridged; } } catch (e2) {}\n }\n // Guard parent/top independently: parent is [Replaceable] so it sticks, but\n // top is [LegacyUnforgeable] (HTML spec) and throws on conforming engines\n // while succeeding on the WebView builds that gate embed detection on it \u2014\n // isolating them means a throw on one never skips the other.\n try { Object.defineProperty(window, 'parent', { configurable: true, get: function () { return frameProxy; } }); } catch (e) {}\n try { Object.defineProperty(window, 'top', { configurable: true, get: function () { return frameProxy; } }); } catch (e) {}\n // No parent frame \u2192 the widget posts lifecycle messages to window.opener.\n try { if (!window.opener) { window.opener = { postMessage: forwardToNative }; } } catch (e) {}\n true;\n})();\ntrue;";
|
|
31
|
-
/**
|
|
32
|
-
* Build the JS snippet that delivers an outbound message INTO the embed, run
|
|
33
|
-
* via `webView.injectJavaScript`. One shape for every message type: the payload
|
|
34
|
-
* is wrapped in a funkit-marked envelope and handed to the (bridged)
|
|
35
|
-
* `window.postMessage` — the bridge unwraps it and re-dispatches via the real
|
|
36
|
-
* `postMessage` (see {@link SWAPPED_WEBVIEW_INJECTED_JS}). If the bridge isn't
|
|
37
|
-
* installed, the envelope dispatches as-is and the embed ignores it (no `type`).
|
|
3
|
+
* - Keep window.postMessage native so child-frame fingerprints reach the page.
|
|
4
|
+
* - Bridge parent/opener separately so host messages cannot echo into the page.
|
|
38
5
|
*/
|
|
6
|
+
export declare const SWAPPED_WEBVIEW_INJECTED_JS = "(function () {\n if (window.__funkitSwappedBridge) { return; }\n window.__funkitSwappedBridge = true;\n function forwardToNative(message) {\n try {\n var data = typeof message === 'string' ? message : JSON.stringify(message);\n window.ReactNativeWebView && window.ReactNativeWebView.postMessage(data);\n } catch (e) {}\n }\n // Host-only channel: targetOrigin is meaningless and transfer lists cannot cross.\n function bridged(message, _targetOrigin, transfer) {\n if (transfer && transfer.length && window.console && window.console.warn) {\n window.console.warn('[funkit] Swapped bridge: parent/top/opener post to the native host, which cannot carry a transfer list. Use window.postMessage for in-page ports.');\n }\n forwardToNative(message);\n }\n // A parent/top distinct from window, so the widget believes it is embedded.\n var frameProxy;\n try {\n frameProxy = new Proxy(window, {\n get: function (target, prop) {\n if (prop === 'postMessage') { return bridged; }\n var value = target[prop];\n return typeof value === 'function' ? value.bind(target) : value;\n },\n });\n } catch (e) {\n // No Proxy: inherit from window rather than trapping it.\n try {\n frameProxy = Object.create(window, { postMessage: { value: bridged } });\n } catch (e2) {\n frameProxy = { postMessage: bridged };\n }\n }\n // parent is [Replaceable] so this sticks; top is [LegacyUnforgeable] so it throws.\n try { Object.defineProperty(window, 'parent', { configurable: true, get: function () { return frameProxy; } }); } catch (e) {}\n try { Object.defineProperty(window, 'top', { configurable: true, get: function () { return frameProxy; } }); } catch (e) {}\n // No parent frame: the widget posts lifecycle messages to opener.\n try { if (!window.opener) { window.opener = { postMessage: bridged }; } } catch (e) {}\n true;\n})();\ntrue;";
|
|
7
|
+
/** Deliver host messages through the page's untouched native postMessage. */
|
|
39
8
|
export declare function buildSwappedSendScript(msg: SwappedOutboundMessage): string;
|
|
40
9
|
/**
|
|
41
10
|
* Parse + validate a raw WebView `onMessage` payload into a typed inbound
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webViewSwappedTransport.d.ts","sourceRoot":"","sources":["../../../src/swapped/webViewSwappedTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"webViewSwappedTransport.d.ts","sourceRoot":"","sources":["../../../src/swapped/webViewSwappedTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAA;AAI7B;;;GAGG;AACH,eAAO,MAAM,2BAA2B,+4DAyClC,CAAA;AAEN,6EAA6E;AAC7E,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,sBAAsB,GAAG,MAAM,CAK1E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,GAAG,CAAC,EAAE,MAAM,GACX,qBAAqB,GAAG,IAAI,CAoB9B;AAED,2EAA2E;AAC3E,MAAM,WAAW,WAAW;IAC1B,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CACvC;AAED,MAAM,WAAW,uBAAuB;IACtC,+DAA+D;IAC/D,SAAS,EAAE,gBAAgB,CAAA;IAC3B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/C;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,EAC5C,UAAU,GACX,EAAE;IACD,UAAU,EAAE,MAAM,WAAW,GAAG,IAAI,CAAA;CACrC,GAAG,uBAAuB,CA8B1B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
+
import { type FunkitTheme } from './toRestyleTheme';
|
|
2
3
|
import { type ColorScheme } from './useColorScheme';
|
|
3
4
|
import { type FunkitThemeSet } from './useFunkitTheme';
|
|
4
5
|
interface FunkitColorSchemeValue {
|
|
@@ -13,6 +14,11 @@ interface FunkitColorSchemeValue {
|
|
|
13
14
|
/** True when the scheme is forced by the `colorScheme` prop (uncontrolled toggle disabled). */
|
|
14
15
|
isControlled: boolean;
|
|
15
16
|
}
|
|
17
|
+
/** The theme drawn in each system appearance; both are the active one when pinned. */
|
|
18
|
+
export interface FunkitThemePair {
|
|
19
|
+
light: FunkitTheme;
|
|
20
|
+
dark: FunkitTheme;
|
|
21
|
+
}
|
|
16
22
|
export interface FunkitThemeProviderProps {
|
|
17
23
|
children: ReactNode;
|
|
18
24
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunkitThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/theme/FunkitThemeProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"FunkitThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/theme/FunkitThemeProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAEd,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,KAAK,cAAc,EAAe,MAAM,kBAAkB,CAAA;AAOnE,UAAU,sBAAsB;IAC9B,yCAAyC;IACzC,WAAW,EAAE,WAAW,CAAA;IACxB;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,KAAK,IAAI,CAAA;IAC/C,+FAA+F;IAC/F,YAAY,EAAE,OAAO,CAAA;CACtB;AAMD,sFAAsF;AACtF,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,WAAW,CAAA;IAClB,IAAI,EAAE,WAAW,CAAA;CAClB;AAID,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,SAAS,CAAA;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,MAAuB,EACvB,WAAW,GACZ,EAAE,wBAAwB,+BAgD1B;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,sBAAsB,CAM7D"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TextStyle } from 'react-native';
|
|
1
2
|
import { type FunkitTokens } from './tokens';
|
|
2
3
|
/**
|
|
3
4
|
* Projects the nested Fun Variables {@link FunkitTokens} onto the object
|
|
@@ -150,6 +151,22 @@ export declare function buildFunkitTheme(tokens: FunkitTokens): {
|
|
|
150
151
|
tablet: number;
|
|
151
152
|
};
|
|
152
153
|
textVariants: {
|
|
154
|
+
display: TextStyle;
|
|
155
|
+
title: TextStyle;
|
|
156
|
+
lead: TextStyle;
|
|
157
|
+
bodyLarge: TextStyle;
|
|
158
|
+
link: TextStyle;
|
|
159
|
+
notice: TextStyle;
|
|
160
|
+
drawerDetail: TextStyle;
|
|
161
|
+
drawerRow: TextStyle;
|
|
162
|
+
drawerHeadline: TextStyle;
|
|
163
|
+
drawerLead: TextStyle;
|
|
164
|
+
drawerFootnote: TextStyle;
|
|
165
|
+
caption: TextStyle;
|
|
166
|
+
codeDigit: TextStyle;
|
|
167
|
+
amountHero: TextStyle;
|
|
168
|
+
keypad: TextStyle;
|
|
169
|
+
keypadGlyph: TextStyle;
|
|
153
170
|
defaults: {
|
|
154
171
|
fontSize: number;
|
|
155
172
|
lineHeight: number;
|