@funkit/connect-rn 10.0.0 → 11.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 +234 -0
- package/README.md +46 -0
- package/dist/{chunk-264ZLQVH.js → chunk-N626N462.js} +3 -3
- package/dist/{chunk-264ZLQVH.js.map → chunk-N626N462.js.map} +2 -2
- package/dist/{chunk-R3RNNOBY.js → chunk-QIDFAWW4.js} +99 -12
- package/dist/chunk-QIDFAWW4.js.map +7 -0
- package/dist/{chunk-K2VB5PT5.js → chunk-S7UN7EKL.js} +550 -20
- package/dist/chunk-S7UN7EKL.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado/withdrawalSubmit.d.ts.map +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/clients/solana.js +3 -3
- package/dist/clients/solana.js.map +2 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24400 -14185
- package/dist/index.js.map +4 -4
- package/dist/preview.d.ts +3 -0
- package/dist/preview.d.ts.map +1 -1
- package/dist/preview.js +964 -15
- package/dist/preview.js.map +4 -4
- package/dist/src/components/BlurBand.d.ts.map +1 -1
- package/dist/src/components/ConnectedBadge.d.ts +2 -0
- package/dist/src/components/ConnectedBadge.d.ts.map +1 -0
- package/dist/src/components/GlassSurface.d.ts +5 -1
- package/dist/src/components/GlassSurface.d.ts.map +1 -1
- package/dist/src/components/Grabber.d.ts +3 -1
- package/dist/src/components/Grabber.d.ts.map +1 -1
- package/dist/src/components/LoadingSpinner.d.ts +1 -6
- package/dist/src/components/LoadingSpinner.d.ts.map +1 -1
- package/dist/src/components/PillButton.d.ts +2 -0
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/SelectableAssetRow.d.ts +9 -1
- package/dist/src/components/SelectableAssetRow.d.ts.map +1 -1
- package/dist/src/components/TopBar.d.ts +7 -2
- package/dist/src/components/TopBar.d.ts.map +1 -1
- package/dist/src/components/v2/FeeLine.d.ts +2 -2
- package/dist/src/components/v2/FeeLine.d.ts.map +1 -1
- package/dist/src/components/v2/IconDisc.d.ts +15 -1
- package/dist/src/components/v2/IconDisc.d.ts.map +1 -1
- package/dist/src/components/v2/ListRow.d.ts +3 -1
- package/dist/src/components/v2/ListRow.d.ts.map +1 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts +9 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/fiat/common/FiatTermsNotice.d.ts +3 -1
- package/dist/src/fiat/common/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/common/ctaLabel.d.ts.map +1 -1
- package/dist/src/fiat/common/stepDetails.d.ts +8 -2
- package/dist/src/fiat/common/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/contact/contactRound.d.ts +1 -0
- package/dist/src/fiat/contact/contactRound.d.ts.map +1 -1
- package/dist/src/fiat/contact/useFlowContact.d.ts +1 -0
- package/dist/src/fiat/contact/useFlowContact.d.ts.map +1 -1
- package/dist/src/fiat/entry/depositMatch.d.ts +10 -4
- package/dist/src/fiat/entry/depositMatch.d.ts.map +1 -1
- package/dist/src/fiat/entry/heldRound.d.ts +17 -0
- package/dist/src/fiat/entry/heldRound.d.ts.map +1 -0
- package/dist/src/fiat/entry/useCaptureHold.d.ts +16 -4
- package/dist/src/fiat/entry/useCaptureHold.d.ts.map +1 -1
- package/dist/src/fiat/entry/useClientRecipient.d.ts +16 -0
- package/dist/src/fiat/entry/useClientRecipient.d.ts.map +1 -0
- package/dist/src/fiat/entry/useEntryPress.d.ts +26 -0
- package/dist/src/fiat/entry/useEntryPress.d.ts.map +1 -0
- package/dist/src/fiat/entry/useEntryQuote.d.ts +3 -3
- package/dist/src/fiat/entry/useEntryQuote.d.ts.map +1 -1
- package/dist/src/fiat/entry/useFiatDirectDelivery.d.ts +6 -2
- package/dist/src/fiat/entry/useFiatDirectDelivery.d.ts.map +1 -1
- package/dist/src/fiat/entry/usePayOnArrival.d.ts +22 -0
- package/dist/src/fiat/entry/usePayOnArrival.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatFormScreen.d.ts +7 -1
- package/dist/src/fiat/form/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/form/useStandingRefusals.d.ts +4 -0
- package/dist/src/fiat/form/useStandingRefusals.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatDocumentCaptureStep.d.ts +4 -2
- package/dist/src/fiat/kyc/FiatDocumentCaptureStep.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatKycIntroLayout.d.ts +3 -3
- package/dist/src/fiat/kyc/FiatKycIntroLayout.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatKycIntroScreen.d.ts +7 -2
- package/dist/src/fiat/kyc/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFieldValidators.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycForm.d.ts +9 -2
- package/dist/src/fiat/kyc/kycForm.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycRoutes.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycVerdict.d.ts +1 -0
- package/dist/src/fiat/kyc/kycVerdict.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycLimitSheet.d.ts +15 -0
- package/dist/src/fiat/kyc/useKycLimitSheet.d.ts.map +1 -0
- package/dist/src/fiat/kyc/useKycRoundReporting.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycScreens.d.ts +4 -0
- package/dist/src/fiat/kyc/useKycScreens.d.ts.map +1 -1
- package/dist/src/fiat/otp/FiatOtpScreen.d.ts +12 -1
- package/dist/src/fiat/otp/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/otp/FunReauthStep.d.ts +15 -0
- package/dist/src/fiat/otp/FunReauthStep.d.ts.map +1 -0
- package/dist/src/fiat/otp/otpScreenProps.d.ts +5 -2
- package/dist/src/fiat/otp/otpScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/otp/useFunSession.d.ts +46 -0
- package/dist/src/fiat/otp/useFunSession.d.ts.map +1 -0
- package/dist/src/fiat/otp/useOtpReceipt.d.ts +2 -0
- package/dist/src/fiat/otp/useOtpReceipt.d.ts.map +1 -1
- package/dist/src/fiat/otp/useResendCooldown.d.ts +8 -3
- package/dist/src/fiat/otp/useResendCooldown.d.ts.map +1 -1
- package/dist/src/fiat/payment/applePayAttempt.d.ts +2 -2
- package/dist/src/fiat/payment/applePayAttempt.d.ts.map +1 -1
- package/dist/src/fiat/payment/failoverKind.d.ts +39 -0
- package/dist/src/fiat/payment/failoverKind.d.ts.map +1 -0
- package/dist/src/fiat/payment/failoverPrompt.d.ts +25 -0
- package/dist/src/fiat/payment/failoverPrompt.d.ts.map +1 -0
- package/dist/src/fiat/payment/insufficientFundsAmount.d.ts +25 -0
- package/dist/src/fiat/payment/insufficientFundsAmount.d.ts.map +1 -0
- package/dist/src/fiat/payment/paymentReport.d.ts +11 -0
- package/dist/src/fiat/payment/paymentReport.d.ts.map +1 -0
- package/dist/src/fiat/payment/paymentReroute.d.ts +8 -4
- package/dist/src/fiat/payment/paymentReroute.d.ts.map +1 -1
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts +2 -0
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/payment/providerFailover.d.ts +22 -8
- package/dist/src/fiat/payment/providerFailover.d.ts.map +1 -1
- package/dist/src/fiat/payment/usePaymentAttempts.d.ts +1 -1
- package/dist/src/fiat/payment/usePaymentAttempts.d.ts.map +1 -1
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts +43 -4
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/fiat/payment/useRerouteProbe.d.ts.map +1 -1
- package/dist/src/fiat/processing/DepositCardSheet.d.ts +21 -3
- package/dist/src/fiat/processing/DepositCardSheet.d.ts.map +1 -1
- package/dist/src/fiat/processing/FailoverPrompt.d.ts +48 -0
- package/dist/src/fiat/processing/FailoverPrompt.d.ts.map +1 -0
- package/dist/src/fiat/processing/depositProcessing.d.ts +1 -1
- package/dist/src/fiat/processing/depositProcessing.d.ts.map +1 -1
- package/dist/src/fiat/processing/failoverArtwork.d.ts +19 -0
- package/dist/src/fiat/processing/failoverArtwork.d.ts.map +1 -0
- package/dist/src/fiat/providerFlow.d.ts +141 -0
- package/dist/src/fiat/providerFlow.d.ts.map +1 -0
- package/dist/src/fiat/providerFlows.d.ts +13 -0
- package/dist/src/fiat/providerFlows.d.ts.map +1 -0
- package/dist/src/fiat/providerHandoff.d.ts +13 -0
- package/dist/src/fiat/providerHandoff.d.ts.map +1 -0
- package/dist/src/fiat/providers/applePayButtonMetrics.d.ts.map +1 -1
- package/dist/src/fiat/providers/banxa/BanxaCheckoutSurface.d.ts +17 -0
- package/dist/src/fiat/providers/banxa/BanxaCheckoutSurface.d.ts.map +1 -0
- package/dist/src/fiat/providers/banxa/banxaApplePayButton.d.ts +8 -0
- package/dist/src/fiat/providers/banxa/banxaApplePayButton.d.ts.map +1 -0
- package/dist/src/fiat/providers/banxa/banxaBridgeEvents.d.ts +34 -0
- package/dist/src/fiat/providers/banxa/banxaBridgeEvents.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/continueButton.d.ts +8 -0
- package/dist/src/fiat/providers/checkout/continueButton.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts +14 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/statusScreens.d.ts +37 -0
- package/dist/src/fiat/providers/checkout/statusScreens.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/useFiatNextApi.d.ts +8 -0
- package/dist/src/fiat/providers/checkout/useFiatNextApi.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseApplePay.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts +6 -0
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/Checkout.d.ts +10 -0
- package/dist/src/fiat/providers/coinbase/next/Checkout.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/next/index.d.ts +4 -0
- package/dist/src/fiat/providers/coinbase/next/index.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts +75 -0
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/Capture.d.ts +15 -0
- package/dist/src/fiat/providers/moonpay/Capture.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/Checkout.d.ts +4 -0
- package/dist/src/fiat/providers/moonpay/Checkout.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/KycForm.d.ts +30 -0
- package/dist/src/fiat/providers/moonpay/KycForm.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/checkoutScreens.d.ts +7 -0
- package/dist/src/fiat/providers/moonpay/checkoutScreens.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/documents.d.ts +12 -0
- package/dist/src/fiat/providers/moonpay/documents.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/errors.d.ts +40 -0
- package/dist/src/fiat/providers/moonpay/errors.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/events.d.ts +24 -0
- package/dist/src/fiat/providers/moonpay/events.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/index.d.ts +3 -0
- package/dist/src/fiat/providers/moonpay/index.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/moonpaySharingConsent.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/reask.d.ts +5 -0
- package/dist/src/fiat/providers/moonpay/reask.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/screens.d.ts +8 -0
- package/dist/src/fiat/providers/moonpay/screens.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/ApplePayButton.d.ts +29 -0
- package/dist/src/fiat/providers/moonpay/sdk/ApplePayButton.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/Challenge.d.ts +14 -0
- package/dist/src/fiat/providers/moonpay/sdk/Challenge.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts +9 -0
- package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/connection.d.ts +33 -0
- package/dist/src/fiat/providers/moonpay/sdk/connection.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/deviceQuote.d.ts +14 -0
- package/dist/src/fiat/providers/moonpay/sdk/deviceQuote.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/transaction.d.ts +37 -0
- package/dist/src/fiat/providers/moonpay/sdk/transaction.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/unavailableAlert.d.ts +11 -0
- package/dist/src/fiat/providers/moonpay/unavailableAlert.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/useCheckoutCalls.d.ts +15 -0
- package/dist/src/fiat/providers/moonpay/useCheckoutCalls.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/useCheckoutModel.d.ts +84 -0
- package/dist/src/fiat/providers/moonpay/useCheckoutModel.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/useReadiness.d.ts +20 -0
- package/dist/src/fiat/providers/moonpay/useReadiness.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeAccountCreation.d.ts +15 -5
- package/dist/src/fiat/providers/stripe/stripeAccountCreation.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts +87 -0
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeCardRefusal.d.ts +1 -0
- package/dist/src/fiat/providers/stripe/stripeCardRefusal.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeKyc.d.ts +1 -1
- package/dist/src/fiat/providers/stripe/stripeKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts +7 -1
- package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts +16 -0
- package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts +12 -2
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeSessionAuth.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useApplePayFirst.d.ts +22 -0
- package/dist/src/fiat/providers/stripe/useApplePayFirst.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts +3 -1
- package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeOnrampClient.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeSessionAuth.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeState.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsub/SumsubNativeKycSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsub/sumsubKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/useHostedPageLoad.d.ts +21 -0
- package/dist/src/fiat/providers/useHostedPageLoad.d.ts.map +1 -0
- package/dist/src/fiat/quote/providerSelection.d.ts +7 -4
- package/dist/src/fiat/quote/providerSelection.d.ts.map +1 -1
- package/dist/src/fiat/quote/quoteRefusal.d.ts +9 -1
- package/dist/src/fiat/quote/quoteRefusal.d.ts.map +1 -1
- package/dist/src/fiat/quote/quoteRouting.d.ts +20 -4
- package/dist/src/fiat/quote/quoteRouting.d.ts.map +1 -1
- package/dist/src/fiat/quote/useStaleQuoteRecovery.d.ts +2 -4
- package/dist/src/fiat/quote/useStaleQuoteRecovery.d.ts.map +1 -1
- package/dist/src/fiat/settlement/depositSettlement.d.ts +18 -2
- package/dist/src/fiat/settlement/depositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts +4 -2
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/surface/SurfaceSlot.d.ts +3 -1
- package/dist/src/fiat/surface/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/surface/actionSlot.d.ts +3 -1
- package/dist/src/fiat/surface/actionSlot.d.ts.map +1 -1
- package/dist/src/fiat/surface/stepSurface.d.ts +3 -1
- package/dist/src/fiat/surface/stepSurface.d.ts.map +1 -1
- package/dist/src/fiat/surface/surfaceRegistry.d.ts.map +1 -1
- package/dist/src/fiat/surface/useFailureAnnouncements.d.ts.map +1 -1
- package/dist/src/fiat/surface/useSurfaceAttempt.d.ts +3 -2
- package/dist/src/fiat/surface/useSurfaceAttempt.d.ts.map +1 -1
- package/dist/src/fiat/useProviderCheckout.d.ts +58 -0
- package/dist/src/fiat/useProviderCheckout.d.ts.map +1 -0
- package/dist/src/flow/AddressCopiedToast.d.ts.map +1 -1
- package/dist/src/flow/CryptoAddressPage.d.ts +6 -2
- package/dist/src/flow/CryptoAddressPage.d.ts.map +1 -1
- package/dist/src/flow/CryptoDepositStep.d.ts +12 -6
- package/dist/src/flow/CryptoDepositStep.d.ts.map +1 -1
- package/dist/src/flow/CryptoLearnMorePage.d.ts +2 -1
- package/dist/src/flow/CryptoLearnMorePage.d.ts.map +1 -1
- package/dist/src/flow/CryptoListPage.d.ts +16 -3
- package/dist/src/flow/CryptoListPage.d.ts.map +1 -1
- package/dist/src/flow/CryptoNetworkPage.d.ts +2 -1
- package/dist/src/flow/CryptoNetworkPage.d.ts.map +1 -1
- package/dist/src/flow/CryptoTokenPage.d.ts +2 -1
- package/dist/src/flow/CryptoTokenPage.d.ts.map +1 -1
- package/dist/src/flow/DepositAmountStep.d.ts +9 -1
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +14 -2
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositMatchSheet.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +13 -1
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FeeDetailsSheet.d.ts +5 -0
- package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +4 -4
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowDismissLock.d.ts +7 -2
- package/dist/src/flow/FlowDismissLock.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +34 -2
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +22 -5
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts +15 -4
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodRows.d.ts +14 -5
- package/dist/src/flow/PaymentMethodRows.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/WalletConnectingAction.d.ts +9 -0
- package/dist/src/flow/WalletConnectingAction.d.ts.map +1 -0
- package/dist/src/flow/WalletDepositStep.d.ts +30 -0
- package/dist/src/flow/WalletDepositStep.d.ts.map +1 -0
- package/dist/src/flow/cryptoDepositFlow.d.ts +8 -6
- package/dist/src/flow/cryptoDepositFlow.d.ts.map +1 -1
- package/dist/src/flow/cryptoNetworkHeight.d.ts +3 -0
- package/dist/src/flow/cryptoNetworkHeight.d.ts.map +1 -0
- package/dist/src/flow/cryptoSheetSearch.d.ts +2 -0
- package/dist/src/flow/cryptoSheetSearch.d.ts.map +1 -1
- package/dist/src/flow/cryptoTokenList.d.ts +17 -11
- package/dist/src/flow/cryptoTokenList.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +81 -6
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositMethods.d.ts +7 -0
- package/dist/src/flow/depositMethods.d.ts.map +1 -1
- package/dist/src/flow/fiatSubmitRenderer.d.ts +16 -0
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
- package/dist/src/flow/flowError.d.ts +5 -0
- package/dist/src/flow/flowError.d.ts.map +1 -1
- package/dist/src/flow/renderFiatFlowScreen.d.ts +28 -3
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/flow/selectedChainStorage.d.ts.map +1 -1
- package/dist/src/flow/sheetSizing.d.ts +2 -2
- package/dist/src/flow/swappedLongtail.d.ts +55 -0
- package/dist/src/flow/swappedLongtail.d.ts.map +1 -0
- package/dist/src/flow/swappedMethodRows.d.ts +45 -0
- package/dist/src/flow/swappedMethodRows.d.ts.map +1 -0
- package/dist/src/flow/useCopiedToast.d.ts +1 -1
- package/dist/src/flow/useFeeDetails.d.ts +5 -1
- package/dist/src/flow/useFeeDetails.d.ts.map +1 -1
- package/dist/src/flow/useWalletDeposit.d.ts +60 -0
- package/dist/src/flow/useWalletDeposit.d.ts.map +1 -0
- package/dist/src/flow/withdrawalFlowConfig.d.ts +71 -6
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/withdrawalMethods.d.ts +2 -2
- package/dist/src/flow/withdrawalMethods.d.ts.map +1 -1
- package/dist/src/hooks/track/events.d.ts +30 -4
- package/dist/src/hooks/track/events.d.ts.map +1 -1
- package/dist/src/hooks/track/feeDetailsProperties.d.ts +13 -0
- package/dist/src/hooks/track/feeDetailsProperties.d.ts.map +1 -0
- package/dist/src/hooks/track/flattenFeeBreakdown.d.ts +3 -0
- package/dist/src/hooks/track/flattenFeeBreakdown.d.ts.map +1 -0
- package/dist/src/hooks/track/useDepositFlowEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useDepositOutcomeEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useProviderCheckoutEvents.d.ts +37 -0
- package/dist/src/hooks/track/useProviderCheckoutEvents.d.ts.map +1 -0
- package/dist/src/hooks/track/useTrackFiatDepositQuoteEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts +4 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackSessionAuthEvents.d.ts.map +1 -1
- package/dist/src/hooks/useAnchoredMenu.d.ts +43 -0
- package/dist/src/hooks/useAnchoredMenu.d.ts.map +1 -0
- package/dist/src/hooks/useAppActive.d.ts +7 -0
- package/dist/src/hooks/useAppActive.d.ts.map +1 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts +1 -1
- package/dist/src/hooks/useNestedSheet.d.ts +8 -1
- package/dist/src/hooks/useNestedSheet.d.ts.map +1 -1
- package/dist/src/hooks/useNestedSheetHeight.d.ts +2 -2
- package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -1
- package/dist/src/hooks/useSettledOpacity.d.ts +3 -1
- package/dist/src/hooks/useSettledOpacity.d.ts.map +1 -1
- package/dist/src/icons/ChainAvatar.d.ts +1 -3
- package/dist/src/icons/ChainAvatar.d.ts.map +1 -1
- package/dist/src/icons/FunIcon.d.ts +6 -2
- package/dist/src/icons/FunIcon.d.ts.map +1 -1
- package/dist/src/icons/assetLogos.d.ts.map +1 -1
- package/dist/src/icons/cryptoBrandSvgs.d.ts +2 -0
- package/dist/src/icons/cryptoBrandSvgs.d.ts.map +1 -0
- package/dist/src/icons/funIconUri.d.ts.map +1 -1
- package/dist/src/icons/iconSvg.d.ts.map +1 -1
- package/dist/src/icons/kycArtwork.d.ts.map +1 -1
- package/dist/src/locales/i18n.d.ts +8 -8
- package/dist/src/locales/i18n.d.ts.map +1 -1
- package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
- package/dist/src/native/glassEffect.d.ts +3 -0
- package/dist/src/native/glassEffect.d.ts.map +1 -1
- package/dist/src/preview/PreviewPaymentMethodPicker.d.ts +4 -0
- package/dist/src/preview/PreviewPaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -1
- package/dist/src/preview/flowPreview.d.ts +85 -4
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/previewFetch.d.ts +31 -2
- package/dist/src/preview/previewFetch.d.ts.map +1 -1
- package/dist/src/preview/replay/FunkitSessionReplay.d.ts +31 -0
- package/dist/src/preview/replay/FunkitSessionReplay.d.ts.map +1 -0
- package/dist/src/preview/replay/ReplaySurfaceStandIn.d.ts +22 -0
- package/dist/src/preview/replay/ReplaySurfaceStandIn.d.ts.map +1 -0
- package/dist/src/preview/replay/recordedStripeOnramp.d.ts +10 -0
- package/dist/src/preview/replay/recordedStripeOnramp.d.ts.map +1 -0
- package/dist/src/preview/replay/replayFetch.d.ts +27 -0
- package/dist/src/preview/replay/replayFetch.d.ts.map +1 -0
- package/dist/src/preview/scenarioCatalog.d.ts +497 -284
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts +14 -5
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/providers/FunkitProvider.d.ts +10 -1
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigProvider.d.ts +3 -3
- package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigWhnProvider.d.ts +1 -1
- package/dist/src/providers/IdentityContext.d.ts +2 -0
- package/dist/src/providers/IdentityContext.d.ts.map +1 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts +13 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
- package/dist/src/providers/useFunkitCheckout.d.ts +4 -1
- package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +13 -2
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts +3 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/PaymentConfirmScreen.d.ts +16 -2
- package/dist/src/screens/PaymentConfirmScreen.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +8 -3
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/statsig/StatsigClientRN.d.ts.map +1 -1
- package/dist/src/statsig/hostAppVersion.d.ts +2 -0
- package/dist/src/statsig/hostAppVersion.d.ts.map +1 -0
- package/dist/src/statsig/useDynamicConfig.d.ts.map +1 -1
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts.map +1 -1
- package/dist/src/swapped/SwappedIframe.d.ts +9 -0
- package/dist/src/swapped/SwappedIframe.d.ts.map +1 -0
- package/dist/src/swapped/SwappedScreen.d.ts +9 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +9 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts +19 -6
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/buildSwappedTheme.d.ts.map +1 -1
- package/dist/src/swapped/iframeSwappedTransport.d.ts +22 -0
- package/dist/src/swapped/iframeSwappedTransport.d.ts.map +1 -0
- package/dist/src/swapped/paymentNavigation.d.ts +3 -0
- package/dist/src/swapped/paymentNavigation.d.ts.map +1 -1
- package/dist/src/swapped/swappedV2Env.d.ts +24 -0
- package/dist/src/swapped/swappedV2Env.d.ts.map +1 -0
- package/dist/src/swapped/swappedV2Theme.d.ts +9 -0
- package/dist/src/swapped/swappedV2Theme.d.ts.map +1 -0
- package/dist/src/swapped/useSwappedEmbed.d.ts +37 -0
- package/dist/src/swapped/useSwappedEmbed.d.ts.map +1 -0
- package/dist/src/theme/buildFunkitTheme.d.ts +65 -44
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +2187 -1494
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +195 -132
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +2 -2
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/theme/typeScale.d.ts +134 -20
- package/dist/src/theme/typeScale.d.ts.map +1 -1
- package/dist/src/transfer/DepositQrCode.d.ts +3 -1
- package/dist/src/transfer/DepositQrCode.d.ts.map +1 -1
- package/dist/src/transfer/DepositQrGlyph.d.ts +3 -1
- package/dist/src/transfer/DepositQrGlyph.d.ts.map +1 -1
- package/dist/src/transfer/fops.d.ts +7 -1
- package/dist/src/transfer/fops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useWithdrawalFops.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/utils/withAlpha.d.ts +19 -0
- package/dist/src/utils/withAlpha.d.ts.map +1 -1
- package/dist/src/withdrawal/decimalCompare.d.ts +9 -0
- package/dist/src/withdrawal/decimalCompare.d.ts.map +1 -0
- package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +9 -9
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalQuote.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts.map +1 -1
- package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalExecution.d.ts +3 -2
- package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
- package/dist/src/withdrawal/venueBalance.d.ts +18 -0
- package/dist/src/withdrawal/venueBalance.d.ts.map +1 -0
- package/dist/src/withdrawal/walletlessWithdrawal.d.ts +11 -2
- package/dist/src/withdrawal/walletlessWithdrawal.d.ts.map +1 -1
- package/dist/src/withdrawal/withdrawalPayer.d.ts +22 -0
- package/dist/src/withdrawal/withdrawalPayer.d.ts.map +1 -0
- package/ios/FunkitGlassEffectModule.swift +10 -0
- package/ios/GlassView.swift +28 -0
- package/package.json +15 -14
- package/dist/chunk-K2VB5PT5.js.map +0 -7
- package/dist/chunk-R3RNNOBY.js.map +0 -7
- package/dist/src/flow/MethodPickerStep.d.ts +0 -10
- package/dist/src/flow/MethodPickerStep.d.ts.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type SwappedTransport } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* Browser {@link SwappedTransport} for react-native-web, where the embed is a
|
|
4
|
+
* plain `<iframe>` rather than a `WebView`. `react-native-webview` ships no
|
|
5
|
+
* web implementation, so on web its injected bridge never installs: the embed
|
|
6
|
+
* posts `SWAPPED_READY` to `window.parent` and nobody listens, the theme is
|
|
7
|
+
* never sent, and the host never hears back/close/success. This talks to the
|
|
8
|
+
* iframe the way `@funkit/connect` does: `postMessage` into its window, and a
|
|
9
|
+
* `message` listener filtered by source window and Swapped origin.
|
|
10
|
+
*
|
|
11
|
+
* Sends target the origin of the last validated inbound message once there is
|
|
12
|
+
* one: a card payment can redirect the frame to a per-partner Swapped host,
|
|
13
|
+
* and a post to the initial origin would then be dropped silently while
|
|
14
|
+
* `send` still reported it delivered.
|
|
15
|
+
*/
|
|
16
|
+
export declare function createIframeSwappedTransport({ getContentWindow, getTargetOrigin, }: {
|
|
17
|
+
/** The iframe's content window, or `null` before it mounts. */
|
|
18
|
+
getContentWindow: () => Window | null;
|
|
19
|
+
/** The validated Swapped origin to post to, or `null` if the url isn't one. */
|
|
20
|
+
getTargetOrigin: () => string | null;
|
|
21
|
+
}): SwappedTransport;
|
|
22
|
+
//# sourceMappingURL=iframeSwappedTransport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iframeSwappedTransport.d.ts","sourceRoot":"","sources":["../../../src/swapped/iframeSwappedTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAA;AAE7B;;;;;;;;;;;;;GAaG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,gBAAgB,EAChB,eAAe,GAChB,EAAE;IACD,+DAA+D;IAC/D,gBAAgB,EAAE,MAAM,MAAM,GAAG,IAAI,CAAA;IACrC,+EAA+E;IAC/E,eAAe,EAAE,MAAM,MAAM,GAAG,IAAI,CAAA;CACrC,GAAG,gBAAgB,CAkCnB"}
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
* `northstake.swapped.com` after login;
|
|
14
14
|
* - the PSP that runs the card charge and hosts the 3DS challenge.
|
|
15
15
|
*
|
|
16
|
+
* An embed on the v2 test env also keeps that env's access gate (see
|
|
17
|
+
* `swappedV2Env`); from a production embed those hosts leave like any other.
|
|
18
|
+
*
|
|
16
19
|
* The issuer's ACS challenge is deliberately absent: its host is chosen by the
|
|
17
20
|
* cardholder's bank and cannot be enumerated. It does not need to be — the PSP
|
|
18
21
|
* renders it in an iframe, and subframes never reach this gate.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentNavigation.d.ts","sourceRoot":"","sources":["../../../src/swapped/paymentNavigation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paymentNavigation.d.ts","sourceRoot":"","sources":["../../../src/swapped/paymentNavigation.ts"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,GAAG,IAAI,GACzB,OAAO,CAGT;AAqCD,0EAA0E;AAC1E,MAAM,MAAM,eAAe;AACzB,2DAA2D;AACzD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AACpC,wEAAwE;GACtE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AACjC,0EAA0E;GACxE;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAA;AAItD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,GAAG,IAAI,GACzB,eAAe,CAajB;AAED,yEAAyE;AACzE,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAM7C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where Swapped's v2 design is deployed. Production still serves the current
|
|
3
|
+
* design, so a v2 embed loads from here for now: the signed path and query of
|
|
4
|
+
* the FOP's `embeddedFlowUrl` are kept and only the origin moves. Dropping the
|
|
5
|
+
* rewrite is all it takes once v2 reaches production.
|
|
6
|
+
*
|
|
7
|
+
* Source: Swapped's own note in the shared channel
|
|
8
|
+
* (https://fun-xyz.slack.com/archives/C0A3ZLVU7L7/p1792496916023999). The env
|
|
9
|
+
* is run by Swapped, not by Fun, so it has no entry in
|
|
10
|
+
* `fun-xyz/funxyz-infrastructure`; check with them before relying on it.
|
|
11
|
+
*/
|
|
12
|
+
export declare const SWAPPED_V2_ORIGIN = "https://fun.swapped.dev";
|
|
13
|
+
/** The `embeddedFlowUrl` moved onto {@link SWAPPED_V2_ORIGIN}. */
|
|
14
|
+
export declare function toSwappedV2Url(url: string): string;
|
|
15
|
+
/** Whether an embed loads from the v2 test env, which sits behind an access gate. */
|
|
16
|
+
export declare function isSwappedV2TestOrigin(embedOrigin: string | null): boolean;
|
|
17
|
+
/** Whether a host belongs to the test env's sign-in, not the widget. */
|
|
18
|
+
export declare function isAccessGateHost(hostname: string): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Google refuses OAuth inside an embedded WebView; presenting as Safari lets
|
|
21
|
+
* the access gate's sign-in run. Sent only to the test env.
|
|
22
|
+
*/
|
|
23
|
+
export declare const SWAPPED_V2_TEST_USER_AGENT = "Mozilla/5.0 (iPhone; CPU iPhone OS 18_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.2 Mobile/15E148 Safari/604.1";
|
|
24
|
+
//# sourceMappingURL=swappedV2Env.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swappedV2Env.d.ts","sourceRoot":"","sources":["../../../src/swapped/swappedV2Env.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,4BAA4B,CAAA;AAE1D,kEAAkE;AAClE,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQlD;AAED,qFAAqF;AACrF,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAEzE;AAoBD,wEAAwE;AACxE,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAK1D;AAED;;;GAGG;AACH,eAAO,MAAM,0BAA0B,4IACoG,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SwappedTheme, SwappedV2Theme } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* Projects the full {@link SwappedTheme} onto what Swapped's v2 design takes.
|
|
4
|
+
* Every value sent overrides a v2 default, and the header, button and padding
|
|
5
|
+
* sizes exist to fit the old widget into the sheet: under v2 they would fight
|
|
6
|
+
* the new layout, so only brand colors and radii go.
|
|
7
|
+
*/
|
|
8
|
+
export declare function toSwappedV2Theme(full: SwappedTheme): SwappedV2Theme;
|
|
9
|
+
//# sourceMappingURL=swappedV2Theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swappedV2Theme.d.ts","sourceRoot":"","sources":["../../../src/swapped/swappedV2Theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AA6BxE;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CA6BnE"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type FormOfPaymentType } from '@funkit/api-base';
|
|
2
|
+
import type { SwappedBuyingCrypto, SwappedInboundMessage, SwappedTransport } from '@funkit/connect-core';
|
|
3
|
+
interface UseSwappedEmbedOptions {
|
|
4
|
+
/** The selected FOP's `embeddedFlowUrl`, before any design rewrite. */
|
|
5
|
+
embedUrl: string;
|
|
6
|
+
/** Platform transport the surface created (WebView bridge or iframe). */
|
|
7
|
+
transport: SwappedTransport;
|
|
8
|
+
/** Validated inbound messages, after the handshake has handled READY. */
|
|
9
|
+
onMessage: (msg: SwappedInboundMessage) => void;
|
|
10
|
+
buyingCrypto?: SwappedBuyingCrypto;
|
|
11
|
+
design?: 'v2';
|
|
12
|
+
fopType?: FormOfPaymentType;
|
|
13
|
+
/** Named in the handshake logs so web and native sends can be told apart. */
|
|
14
|
+
surface: 'webview' | 'iframe';
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The Swapped embed handshake, shared by the native WebView and the
|
|
18
|
+
* react-native-web iframe: cover the embed until it reports READY (or a
|
|
19
|
+
* timeout, so a broken bridge can't hide the page for good), then send it the
|
|
20
|
+
* active theme and, when the host names one, the payment method, before
|
|
21
|
+
* handing every message to the surface.
|
|
22
|
+
*
|
|
23
|
+
* This is the ONLY theme send: unlike web's iframe, which re-sends on a
|
|
24
|
+
* destination change via core `useSwappedSession`, a later `buyingCrypto`
|
|
25
|
+
* reaches the theme ref but is never transmitted. That is sound only because
|
|
26
|
+
* the Swapped screen unmounts whenever the selected candidate changes (see
|
|
27
|
+
* `DepositFlowContent`'s `case 'swapped'`), so the next token always arrives
|
|
28
|
+
* with a fresh READY. Preloading a surface, or making the candidate switchable
|
|
29
|
+
* in place, requires porting that re-send first.
|
|
30
|
+
*/
|
|
31
|
+
export declare function useSwappedEmbed({ embedUrl, transport, onMessage, buyingCrypto, design, fopType, surface, }: UseSwappedEmbedOptions): {
|
|
32
|
+
url: string;
|
|
33
|
+
isEmbedReady: boolean;
|
|
34
|
+
setIsEmbedReady: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=useSwappedEmbed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSwappedEmbed.d.ts","sourceRoot":"","sources":["../../../src/swapped/useSwappedEmbed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAgB,MAAM,kBAAkB,CAAA;AACvE,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EAErB,gBAAgB,EAEjB,MAAM,sBAAsB,CAAA;AAc7B,UAAU,sBAAsB;IAC9B,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAA;IAChB,yEAAyE;IACzE,SAAS,EAAE,gBAAgB,CAAA;IAC3B,yEAAyE;IACzE,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,MAAM,CAAC,EAAE,IAAI,CAAA;IACb,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B,6EAA6E;IAC7E,OAAO,EAAE,SAAS,GAAG,QAAQ,CAAA;CAC9B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,SAAS,EACT,SAAS,EACT,YAAY,EACZ,MAAM,EACN,OAAO,EACP,OAAO,GACR,EAAE,sBAAsB;;;;EAyExB"}
|
|
@@ -16,7 +16,6 @@ import { type FunkitTokens } from './tokens';
|
|
|
16
16
|
export declare function buildFunkitTheme(tokens: FunkitTokens): {
|
|
17
17
|
colors: {};
|
|
18
18
|
background: {
|
|
19
|
-
insetOverlay: string;
|
|
20
19
|
modal: string;
|
|
21
20
|
secondary: string;
|
|
22
21
|
button: {
|
|
@@ -35,6 +34,7 @@ export declare function buildFunkitTheme(tokens: FunkitTokens): {
|
|
|
35
34
|
};
|
|
36
35
|
overlay: string;
|
|
37
36
|
drawer: string;
|
|
37
|
+
insetOverlay: string;
|
|
38
38
|
};
|
|
39
39
|
content: {
|
|
40
40
|
elements: {
|
|
@@ -152,93 +152,114 @@ export declare function buildFunkitTheme(tokens: FunkitTokens): {
|
|
|
152
152
|
tablet: number;
|
|
153
153
|
};
|
|
154
154
|
textVariants: {
|
|
155
|
-
display: TextStyle;
|
|
156
|
-
title: TextStyle;
|
|
157
|
-
lead: TextStyle;
|
|
158
|
-
bodyLarge: TextStyle;
|
|
159
|
-
link: TextStyle;
|
|
160
|
-
notice: TextStyle;
|
|
161
|
-
drawerDetail: TextStyle;
|
|
162
|
-
drawerRow: TextStyle;
|
|
163
|
-
drawerHeadline: TextStyle;
|
|
164
|
-
drawerLead: TextStyle;
|
|
165
|
-
drawerFootnote: TextStyle;
|
|
166
|
-
caption: TextStyle;
|
|
167
|
-
explainerTitle: TextStyle;
|
|
168
|
-
explainerBody: TextStyle;
|
|
169
|
-
codeDigit: TextStyle;
|
|
170
|
-
amountHero: TextStyle;
|
|
171
|
-
keypad: TextStyle;
|
|
172
|
-
keypadGlyph: TextStyle;
|
|
173
|
-
processingTitle: TextStyle;
|
|
174
|
-
processingDetail: TextStyle;
|
|
175
155
|
defaults: {
|
|
156
|
+
fontFamily: string;
|
|
157
|
+
fontWeight: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "black" | "bold" | "condensed" | "condensedBold" | "heavy" | "light" | "medium" | "normal" | "regular" | "semibold" | "thin" | "ultralight" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | undefined;
|
|
176
158
|
fontSize: number;
|
|
177
159
|
lineHeight: number;
|
|
178
|
-
fontFamily: string;
|
|
179
|
-
fontWeight: "medium" | "semibold" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
180
160
|
};
|
|
181
161
|
body: {
|
|
162
|
+
fontFamily: string;
|
|
163
|
+
fontWeight: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "black" | "bold" | "condensed" | "condensedBold" | "heavy" | "light" | "medium" | "normal" | "regular" | "semibold" | "thin" | "ultralight" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | undefined;
|
|
182
164
|
fontSize: number;
|
|
183
165
|
lineHeight: number;
|
|
184
|
-
fontFamily: string;
|
|
185
|
-
fontWeight: "medium" | "semibold" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
186
166
|
};
|
|
187
167
|
bodyMedium: {
|
|
168
|
+
fontFamily: string;
|
|
169
|
+
fontWeight: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "black" | "bold" | "condensed" | "condensedBold" | "heavy" | "light" | "medium" | "normal" | "regular" | "semibold" | "thin" | "ultralight" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | undefined;
|
|
188
170
|
fontSize: number;
|
|
189
171
|
lineHeight: number;
|
|
190
|
-
fontFamily: string;
|
|
191
|
-
fontWeight: "medium" | "semibold" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
192
172
|
};
|
|
193
173
|
detail: {
|
|
174
|
+
fontFamily: string;
|
|
175
|
+
fontWeight: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "black" | "bold" | "condensed" | "condensedBold" | "heavy" | "light" | "medium" | "normal" | "regular" | "semibold" | "thin" | "ultralight" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | undefined;
|
|
194
176
|
fontSize: number;
|
|
195
177
|
lineHeight: number;
|
|
196
|
-
fontFamily: string;
|
|
197
|
-
fontWeight: "medium" | "semibold" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
198
178
|
};
|
|
199
179
|
headerTitle: {
|
|
200
|
-
fontSize: number;
|
|
201
|
-
textAlign: "auto" | "left" | "right" | "center" | "justify" | undefined;
|
|
202
180
|
fontFamily: string;
|
|
203
|
-
fontWeight: "
|
|
181
|
+
fontWeight: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "black" | "bold" | "condensed" | "condensedBold" | "heavy" | "light" | "medium" | "normal" | "regular" | "semibold" | "thin" | "ultralight" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | undefined;
|
|
182
|
+
fontSize: number;
|
|
183
|
+
textAlign: "auto" | "center" | "justify" | "left" | "right" | undefined;
|
|
204
184
|
};
|
|
205
185
|
headerSubtitle: {
|
|
206
|
-
fontSize: number;
|
|
207
|
-
textAlign: "auto" | "left" | "right" | "center" | "justify" | undefined;
|
|
208
186
|
fontFamily: string;
|
|
209
|
-
fontWeight: "
|
|
187
|
+
fontWeight: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "black" | "bold" | "condensed" | "condensedBold" | "heavy" | "light" | "medium" | "normal" | "regular" | "semibold" | "thin" | "ultralight" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | undefined;
|
|
188
|
+
fontSize: number;
|
|
189
|
+
textAlign: "auto" | "center" | "justify" | "left" | "right" | undefined;
|
|
210
190
|
};
|
|
211
191
|
drawerTitle: {
|
|
192
|
+
fontFamily: string;
|
|
193
|
+
fontWeight: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "black" | "bold" | "condensed" | "condensedBold" | "heavy" | "light" | "medium" | "normal" | "regular" | "semibold" | "thin" | "ultralight" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | undefined;
|
|
212
194
|
fontSize: number;
|
|
213
195
|
lineHeight: number;
|
|
214
196
|
letterSpacing: number;
|
|
215
|
-
fontFamily: string;
|
|
216
|
-
fontWeight: "medium" | "semibold" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
217
197
|
};
|
|
218
198
|
amountInput: {
|
|
219
|
-
fontSize: number;
|
|
220
199
|
fontFamily: string;
|
|
221
|
-
fontWeight: "
|
|
200
|
+
fontWeight: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "black" | "bold" | "condensed" | "condensedBold" | "heavy" | "light" | "medium" | "normal" | "regular" | "semibold" | "thin" | "ultralight" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | undefined;
|
|
201
|
+
fontSize: number;
|
|
222
202
|
};
|
|
223
203
|
amountSummary: {
|
|
204
|
+
fontFamily: string;
|
|
205
|
+
fontWeight: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "black" | "bold" | "condensed" | "condensedBold" | "heavy" | "light" | "medium" | "normal" | "regular" | "semibold" | "thin" | "ultralight" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | undefined;
|
|
224
206
|
fontSize: number;
|
|
225
207
|
lineHeight: number;
|
|
226
|
-
fontFamily: string;
|
|
227
|
-
fontWeight: "medium" | "semibold" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
228
208
|
};
|
|
209
|
+
cryptoPriorityName: TextStyle;
|
|
210
|
+
cryptoPrioritySymbol: TextStyle;
|
|
211
|
+
amountHero: TextStyle;
|
|
212
|
+
amountPreset: TextStyle;
|
|
213
|
+
bodyLarge: TextStyle;
|
|
214
|
+
caption: TextStyle;
|
|
215
|
+
codeDigit: TextStyle;
|
|
216
|
+
cryptoAddressAction: TextStyle;
|
|
217
|
+
cryptoAddressDetail: TextStyle;
|
|
218
|
+
cryptoAddressToken: TextStyle;
|
|
219
|
+
cryptoListSummary: TextStyle;
|
|
220
|
+
cryptoPickerTitle: TextStyle;
|
|
221
|
+
cryptoRowName: TextStyle;
|
|
222
|
+
cryptoRowSymbol: TextStyle;
|
|
223
|
+
cryptoSearch: TextStyle;
|
|
224
|
+
cryptoTitle: TextStyle;
|
|
225
|
+
cryptoToast: TextStyle;
|
|
226
|
+
display: TextStyle;
|
|
227
|
+
drawerDetail: TextStyle;
|
|
228
|
+
drawerFootnote: TextStyle;
|
|
229
|
+
drawerHeadline: TextStyle;
|
|
230
|
+
drawerLead: TextStyle;
|
|
231
|
+
drawerRow: TextStyle;
|
|
232
|
+
explainerBody: TextStyle;
|
|
233
|
+
explainerTitle: TextStyle;
|
|
234
|
+
failoverDetail: TextStyle;
|
|
235
|
+
failoverTitle: TextStyle;
|
|
236
|
+
failoverVerified: TextStyle;
|
|
237
|
+
keypad: TextStyle;
|
|
238
|
+
keypadGlyph: TextStyle;
|
|
239
|
+
lead: TextStyle;
|
|
240
|
+
link: TextStyle;
|
|
241
|
+
methodBadge: TextStyle;
|
|
242
|
+
methodBadgeDetail: TextStyle;
|
|
243
|
+
notice: TextStyle;
|
|
244
|
+
processingDetail: TextStyle;
|
|
245
|
+
processingTitle: TextStyle;
|
|
246
|
+
title: TextStyle;
|
|
247
|
+
walletAction: TextStyle;
|
|
248
|
+
walletBanner: TextStyle;
|
|
249
|
+
walletWarning: TextStyle;
|
|
229
250
|
};
|
|
230
251
|
textWeights: {
|
|
231
252
|
base: {
|
|
232
253
|
fontFamily: string;
|
|
233
|
-
fontWeight: "
|
|
254
|
+
fontWeight: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "black" | "bold" | "condensed" | "condensedBold" | "heavy" | "light" | "medium" | "normal" | "regular" | "semibold" | "thin" | "ultralight" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | undefined;
|
|
234
255
|
};
|
|
235
256
|
medium: {
|
|
236
257
|
fontFamily: string;
|
|
237
|
-
fontWeight: "
|
|
258
|
+
fontWeight: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "black" | "bold" | "condensed" | "condensedBold" | "heavy" | "light" | "medium" | "normal" | "regular" | "semibold" | "thin" | "ultralight" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | undefined;
|
|
238
259
|
};
|
|
239
260
|
semibold: {
|
|
240
261
|
fontFamily: string;
|
|
241
|
-
fontWeight: "
|
|
262
|
+
fontWeight: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "black" | "bold" | "condensed" | "condensedBold" | "heavy" | "light" | "medium" | "normal" | "regular" | "semibold" | "thin" | "ultralight" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | undefined;
|
|
242
263
|
};
|
|
243
264
|
};
|
|
244
265
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildFunkitTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/buildFunkitTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAG7C,OAAO,EAGL,KAAK,YAAY,EAGlB,MAAM,UAAU,CAAA;AAuCjB;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"buildFunkitTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/buildFunkitTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAG7C,OAAO,EAGL,KAAK,YAAY,EAGlB,MAAM,UAAU,CAAA;AAuCjB;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAgC/C,IAAI;QACJ,kBAAkB;QAClB,eAAe;;;QAGf,KAAK;QACL,OAAO;QACP,YAAY;QACZ,MAAM;QAEN,OAAO;;;QAGP,KAAK;QACL,eAAe;QACf,gBAAgB;QAChB,MAAM;;;QAGN,MAAM;QACN,YAAY;QACZ,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;;;QAGN,KAAK;QACL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqEX"}
|