@funkit/connect-rn 9.6.1 → 10.0.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 +72 -0
- package/dist/{chunk-BIIYR5K5.js → chunk-264ZLQVH.js} +3 -3
- package/dist/{chunk-KOJEF2II.js → chunk-2HFFVYAZ.js} +17 -4
- package/dist/{chunk-KOJEF2II.js.map → chunk-2HFFVYAZ.js.map} +2 -2
- package/dist/{chunk-JDGIKSWZ.js → chunk-K2VB5PT5.js} +97 -25
- package/dist/chunk-K2VB5PT5.js.map +7 -0
- package/dist/{chunk-M53J24WI.js → chunk-R3RNNOBY.js} +6 -6
- package/dist/chunk-R3RNNOBY.js.map +7 -0
- package/dist/clients/lighter.js +2 -2
- package/dist/clients/nado.js +3 -3
- package/dist/clients/solana.js +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4773 -3533
- package/dist/index.js.map +4 -4
- package/dist/preview.js +106 -51
- package/dist/preview.js.map +2 -2
- 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.map +1 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts +3 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/fiat/common/FiatActionButton.d.ts +3 -0
- package/dist/src/fiat/common/FiatActionButton.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatBackButton.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatErrorNotice.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatErrorScreen.d.ts.map +1 -0
- package/dist/src/fiat/{FiatFailureBanner.d.ts → common/FiatFailureBanner.d.ts} +1 -1
- package/dist/src/fiat/common/FiatFailureBanner.d.ts.map +1 -0
- package/dist/src/fiat/{FiatOptionsScreen.d.ts → common/FiatOptionsScreen.d.ts} +1 -1
- package/dist/src/fiat/common/FiatOptionsScreen.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatProviderTerms.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatRegionUnsupportedScreen.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatStatusScreen.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatStepFailedScreen.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatSubmissionIndicator.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatTermsNotice.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatUnavailableScreen.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatUnsupportedStep.d.ts.map +1 -0
- package/dist/src/fiat/common/ctaLabel.d.ts.map +1 -0
- package/dist/src/fiat/{stepDetails.d.ts → common/stepDetails.d.ts} +15 -3
- package/dist/src/fiat/common/stepDetails.d.ts.map +1 -0
- package/dist/src/fiat/{FiatContactScreen.d.ts → contact/FiatContactScreen.d.ts} +6 -1
- package/dist/src/fiat/contact/FiatContactScreen.d.ts.map +1 -0
- package/dist/src/fiat/contact/FiatPhoneField.d.ts.map +1 -0
- package/dist/src/fiat/{contactRound.d.ts → contact/contactRound.d.ts} +1 -1
- package/dist/src/fiat/contact/contactRound.d.ts.map +1 -0
- package/dist/src/fiat/{knownContacts.d.ts → contact/knownContacts.d.ts} +8 -0
- package/dist/src/fiat/contact/knownContacts.d.ts.map +1 -0
- package/dist/src/fiat/contact/phoneCountries.d.ts.map +1 -0
- package/dist/src/fiat/contact/phoneDraft.d.ts.map +1 -0
- package/dist/src/fiat/contact/sessionContact.d.ts.map +1 -0
- package/dist/src/fiat/contact/useContactAutoSubmit.d.ts.map +1 -0
- package/dist/src/fiat/contact/useContactEligibility.d.ts.map +1 -0
- package/dist/src/fiat/contact/useFlowContact.d.ts +27 -0
- package/dist/src/fiat/contact/useFlowContact.d.ts.map +1 -0
- package/dist/src/fiat/country/FiatCountryIndexRail.d.ts.map +1 -0
- package/dist/src/fiat/{FiatCountrySheet.d.ts → country/FiatCountrySheet.d.ts} +5 -3
- package/dist/src/fiat/country/FiatCountrySheet.d.ts.map +1 -0
- package/dist/src/fiat/country/countryListEntries.d.ts.map +1 -0
- package/dist/src/fiat/{countrySections.d.ts → country/countrySections.d.ts} +1 -1
- package/dist/src/fiat/country/countrySections.d.ts.map +1 -0
- package/dist/src/fiat/country/postalCodeCountries.d.ts.map +1 -0
- package/dist/src/fiat/country/subdivisions.d.ts.map +1 -0
- package/dist/src/fiat/{useCountrySheet.d.ts → country/useCountrySheet.d.ts} +1 -1
- package/dist/src/fiat/country/useCountrySheet.d.ts.map +1 -0
- package/dist/src/fiat/{PaymentDisclosureNotice.d.ts → entry/PaymentDisclosureNotice.d.ts} +1 -1
- package/dist/src/fiat/entry/PaymentDisclosureNotice.d.ts.map +1 -0
- package/dist/src/fiat/{depositMatch.d.ts → entry/depositMatch.d.ts} +3 -3
- package/dist/src/fiat/entry/depositMatch.d.ts.map +1 -0
- package/dist/src/fiat/entry/disclosureFooter.d.ts.map +1 -0
- package/dist/src/fiat/{disclosureFooterContent.d.ts → entry/disclosureFooterContent.d.ts} +2 -2
- package/dist/src/fiat/entry/disclosureFooterContent.d.ts.map +1 -0
- package/dist/src/fiat/{useCaptureHold.d.ts → entry/useCaptureHold.d.ts} +3 -3
- package/dist/src/fiat/entry/useCaptureHold.d.ts.map +1 -0
- package/dist/src/fiat/{useEntryQuote.d.ts → entry/useEntryQuote.d.ts} +4 -3
- package/dist/src/fiat/entry/useEntryQuote.d.ts.map +1 -0
- package/dist/src/fiat/{useEntrySubmit.d.ts → entry/useEntrySubmit.d.ts} +6 -6
- package/dist/src/fiat/entry/useEntrySubmit.d.ts.map +1 -0
- package/dist/src/fiat/entry/useFiatCheckoutPreparation.d.ts.map +1 -0
- package/dist/src/fiat/{useFiatDirectDelivery.d.ts → entry/useFiatDirectDelivery.d.ts} +7 -1
- package/dist/src/fiat/entry/useFiatDirectDelivery.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatBirthDateField.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatChoiceField.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatChoiceList.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatDatePickerDock.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatFormAdvance.d.ts.map +1 -0
- package/dist/src/fiat/{FiatFormFieldRow.d.ts → form/FiatFormFieldRow.d.ts} +2 -2
- package/dist/src/fiat/form/FiatFormFieldRow.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatFormHeading.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatFormScreen.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatSsnField.d.ts.map +1 -0
- package/dist/src/fiat/form/calendarDate.d.ts.map +1 -0
- package/dist/src/fiat/form/fieldAutofill.d.ts.map +1 -0
- package/dist/src/fiat/{fieldLimits.d.ts → form/fieldLimits.d.ts} +1 -1
- package/dist/src/fiat/form/fieldLimits.d.ts.map +1 -0
- package/dist/src/fiat/form/formLayout.d.ts.map +1 -0
- package/dist/src/fiat/form/keyboardReturnKey.d.ts.map +1 -0
- package/dist/src/fiat/form/nativeDatePicker.d.ts.map +1 -0
- package/dist/src/fiat/form/refusedFields.d.ts.map +1 -0
- package/dist/src/fiat/{shownFieldIssues.d.ts → form/shownFieldIssues.d.ts} +1 -1
- package/dist/src/fiat/form/shownFieldIssues.d.ts.map +1 -0
- package/dist/src/fiat/form/ssnLength.d.ts.map +1 -0
- package/dist/src/fiat/form/useDatePickerDock.d.ts.map +1 -0
- package/dist/src/fiat/{useStandingRefusals.d.ts → form/useStandingRefusals.d.ts} +1 -1
- package/dist/src/fiat/form/useStandingRefusals.d.ts.map +1 -0
- package/dist/src/fiat/kyc/FiatDocumentCaptureStep.d.ts.map +1 -0
- package/dist/src/fiat/{FiatIdentityStep.d.ts → kyc/FiatIdentityStep.d.ts} +2 -2
- package/dist/src/fiat/kyc/FiatIdentityStep.d.ts.map +1 -0
- package/dist/src/fiat/{FiatKycFieldControl.d.ts → kyc/FiatKycFieldControl.d.ts} +2 -2
- package/dist/src/fiat/kyc/FiatKycFieldControl.d.ts.map +1 -0
- package/dist/src/fiat/kyc/FiatKycIntroLayout.d.ts.map +1 -0
- package/dist/src/fiat/kyc/FiatKycIntroScreen.d.ts.map +1 -0
- package/dist/src/fiat/{FiatKycNotice.d.ts → kyc/FiatKycNotice.d.ts} +1 -1
- package/dist/src/fiat/kyc/FiatKycNotice.d.ts.map +1 -0
- package/dist/src/fiat/kyc/FiatKycOptionRow.d.ts.map +1 -0
- package/dist/src/fiat/{FiatKycOptionsScreen.d.ts → kyc/FiatKycOptionsScreen.d.ts} +2 -2
- package/dist/src/fiat/kyc/FiatKycOptionsScreen.d.ts.map +1 -0
- package/dist/src/fiat/kyc/FiatKycOutcomeScreen.d.ts.map +1 -0
- package/dist/src/fiat/{FiatKycPhoneField.d.ts → kyc/FiatKycPhoneField.d.ts} +1 -1
- package/dist/src/fiat/kyc/FiatKycPhoneField.d.ts.map +1 -0
- package/dist/src/fiat/kyc/FiatSharingConsentNotice.d.ts.map +1 -0
- package/dist/src/fiat/kyc/KycGlassBackdrop.d.ts.map +1 -0
- package/dist/src/fiat/kyc/formScreenProps.d.ts +1 -1
- package/dist/src/fiat/kyc/formScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/kyc/formValidationError.d.ts +1 -1
- package/dist/src/fiat/kyc/formValidationError.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFailover.d.ts +1 -1
- package/dist/src/fiat/kyc/kycFailover.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormAttempt.d.ts +1 -1
- package/dist/src/fiat/kyc/kycFormAttempt.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormTheme.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycOptionRows.d.ts +1 -1
- package/dist/src/fiat/kyc/kycOptionRows.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycRoutes.d.ts +1 -1
- package/dist/src/fiat/kyc/kycRoutes.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycSupport.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycUnavailableAlert.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycVerdict.d.ts +3 -3
- package/dist/src/fiat/kyc/kycVerdict.d.ts.map +1 -1
- package/dist/src/fiat/kyc/legalLinks.d.ts.map +1 -0
- package/dist/src/fiat/kyc/sectionDetail.d.ts +1 -1
- package/dist/src/fiat/kyc/sectionDetail.d.ts.map +1 -1
- package/dist/src/fiat/{useIdentityAssertion.d.ts → kyc/useIdentityAssertion.d.ts} +5 -4
- package/dist/src/fiat/kyc/useIdentityAssertion.d.ts.map +1 -0
- package/dist/src/fiat/kyc/useKycCompletion.d.ts +1 -1
- package/dist/src/fiat/kyc/useKycCompletion.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycFormFailure.d.ts +1 -1
- package/dist/src/fiat/kyc/useKycFormFailure.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycScreens.d.ts +1 -1
- package/dist/src/fiat/kyc/useKycScreens.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useSharingConsent.d.ts.map +1 -0
- package/dist/src/fiat/otp/FiatOtpScreen.d.ts.map +1 -0
- package/dist/src/fiat/{otpScreenProps.d.ts → otp/otpScreenProps.d.ts} +1 -1
- package/dist/src/fiat/otp/otpScreenProps.d.ts.map +1 -0
- package/dist/src/fiat/{sessionAuth.d.ts → otp/sessionAuth.d.ts} +1 -1
- package/dist/src/fiat/otp/sessionAuth.d.ts.map +1 -0
- package/dist/src/fiat/{useAuthHandoff.d.ts → otp/useAuthHandoff.d.ts} +1 -1
- package/dist/src/fiat/otp/useAuthHandoff.d.ts.map +1 -0
- package/dist/src/fiat/otp/useOtpAutoSubmit.d.ts.map +1 -0
- package/dist/src/fiat/otp/useOtpReceipt.d.ts.map +1 -0
- package/dist/src/fiat/otp/useResendCooldown.d.ts.map +1 -0
- package/dist/src/fiat/{applePayAttempt.d.ts → payment/applePayAttempt.d.ts} +9 -3
- package/dist/src/fiat/payment/applePayAttempt.d.ts.map +1 -0
- package/dist/src/fiat/payment/methodName.d.ts.map +1 -0
- package/dist/src/fiat/payment/paymentAttempts.d.ts.map +1 -0
- package/dist/src/fiat/{paymentReroute.d.ts → payment/paymentReroute.d.ts} +14 -14
- package/dist/src/fiat/payment/paymentReroute.d.ts.map +1 -0
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -0
- package/dist/src/fiat/payment/providerFailover.d.ts.map +1 -0
- package/dist/src/fiat/{usePaymentAttempts.d.ts → payment/usePaymentAttempts.d.ts} +1 -1
- package/dist/src/fiat/payment/usePaymentAttempts.d.ts.map +1 -0
- package/dist/src/fiat/{usePaymentFailureAnswer.d.ts → payment/usePaymentFailureAnswer.d.ts} +2 -2
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -0
- package/dist/src/fiat/{useRerouteProbe.d.ts → payment/useRerouteProbe.d.ts} +6 -7
- package/dist/src/fiat/payment/useRerouteProbe.d.ts.map +1 -0
- package/dist/src/fiat/processing/ProcessingFailure.d.ts +1 -1
- package/dist/src/fiat/processing/ProcessingFailure.d.ts.map +1 -1
- package/dist/src/fiat/processing/depositProcessing.d.ts.map +1 -0
- package/dist/src/fiat/processing/useProcessingPhase.d.ts.map +1 -0
- package/dist/src/fiat/providers/adapter.d.ts +2 -2
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/kycIntro.d.ts +1 -1
- package/dist/src/fiat/providers/kycIntro.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/moonpayFeeQuote.d.ts +1 -1
- package/dist/src/fiat/providers/moonpay/moonpayFeeQuote.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeContactHeading.d.ts +12 -0
- package/dist/src/fiat/providers/stripe/stripeContactHeading.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/useStripePayButton.d.ts +27 -0
- package/dist/src/fiat/providers/stripe/useStripePayButton.d.ts.map +1 -0
- package/dist/src/fiat/quote/providerSelection.d.ts +14 -0
- package/dist/src/fiat/quote/providerSelection.d.ts.map +1 -0
- package/dist/src/fiat/quote/purchaseEstimate.d.ts +42 -0
- package/dist/src/fiat/quote/purchaseEstimate.d.ts.map +1 -0
- package/dist/src/fiat/quote/quoteNoRoute.d.ts.map +1 -0
- package/dist/src/fiat/quote/quoteRefusal.d.ts.map +1 -0
- package/dist/src/fiat/{quoteRouting.d.ts → quote/quoteRouting.d.ts} +5 -5
- package/dist/src/fiat/quote/quoteRouting.d.ts.map +1 -0
- package/dist/src/fiat/quote/useReplayableFailure.d.ts.map +1 -0
- package/dist/src/fiat/{useStaleQuoteRecovery.d.ts → quote/useStaleQuoteRecovery.d.ts} +1 -1
- package/dist/src/fiat/quote/useStaleQuoteRecovery.d.ts.map +1 -0
- package/dist/src/fiat/settlement/FiatPendingOrderScreen.d.ts.map +1 -0
- package/dist/src/fiat/settlement/FiatReceipt.d.ts.map +1 -0
- package/dist/src/fiat/{depositOutcome.d.ts → settlement/depositOutcome.d.ts} +11 -3
- package/dist/src/fiat/settlement/depositOutcome.d.ts.map +1 -0
- package/dist/src/fiat/{depositSettlement.d.ts → settlement/depositSettlement.d.ts} +1 -1
- package/dist/src/fiat/settlement/depositSettlement.d.ts.map +1 -0
- package/dist/src/fiat/{useDepositSettlement.d.ts → settlement/useDepositSettlement.d.ts} +10 -8
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts.map +1 -0
- package/dist/src/fiat/settlement/useReceiptTitles.d.ts.map +1 -0
- package/dist/src/fiat/surface/ScreenSurfaceCover.d.ts.map +1 -0
- package/dist/src/fiat/{SurfaceSlot.d.ts → surface/SurfaceSlot.d.ts} +1 -1
- package/dist/src/fiat/surface/SurfaceSlot.d.ts.map +1 -0
- package/dist/src/fiat/{actionSlot.d.ts → surface/actionSlot.d.ts} +1 -1
- package/dist/src/fiat/surface/actionSlot.d.ts.map +1 -0
- package/dist/src/fiat/{closeFailure.d.ts → surface/closeFailure.d.ts} +1 -1
- package/dist/src/fiat/surface/closeFailure.d.ts.map +1 -0
- package/dist/src/fiat/{stepSurface.d.ts → surface/stepSurface.d.ts} +6 -6
- package/dist/src/fiat/surface/stepSurface.d.ts.map +1 -0
- package/dist/src/fiat/{surfaceRegistry.d.ts → surface/surfaceRegistry.d.ts} +1 -1
- package/dist/src/fiat/surface/surfaceRegistry.d.ts.map +1 -0
- package/dist/src/fiat/{useFailureAnnouncements.d.ts → surface/useFailureAnnouncements.d.ts} +3 -3
- package/dist/src/fiat/surface/useFailureAnnouncements.d.ts.map +1 -0
- package/dist/src/fiat/{useSurfaceAttempt.d.ts → surface/useSurfaceAttempt.d.ts} +2 -2
- package/dist/src/fiat/surface/useSurfaceAttempt.d.ts.map +1 -0
- package/dist/src/flow/CryptoAddressPage.d.ts +5 -4
- package/dist/src/flow/CryptoAddressPage.d.ts.map +1 -1
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +3 -2
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DimLayer.d.ts +13 -0
- package/dist/src/flow/DimLayer.d.ts.map +1 -0
- package/dist/src/flow/Drawer.d.ts +9 -0
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +5 -2
- 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 +11 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/MethodPickerStep.d.ts +10 -0
- package/dist/src/flow/MethodPickerStep.d.ts.map +1 -0
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts +3 -5
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodRows.d.ts +1 -0
- package/dist/src/flow/PaymentMethodRows.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/cryptoDepositFlow.d.ts +4 -8
- package/dist/src/flow/cryptoDepositFlow.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +62 -43
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositMethods.d.ts +4 -4
- package/dist/src/flow/depositMethods.d.ts.map +1 -1
- package/dist/src/flow/entryBanners.d.ts +32 -2
- package/dist/src/flow/entryBanners.d.ts.map +1 -1
- package/dist/src/flow/fiatStepScreens.d.ts +3 -3
- package/dist/src/flow/fiatStepScreens.d.ts.map +1 -1
- package/dist/src/flow/fiatSubmitRenderer.d.ts +13 -13
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
- package/dist/src/flow/flowError.d.ts +12 -0
- package/dist/src/flow/flowError.d.ts.map +1 -1
- package/dist/src/flow/paymentMethodPress.d.ts +12 -0
- package/dist/src/flow/paymentMethodPress.d.ts.map +1 -0
- package/dist/src/flow/purchaseSheetCustomers.d.ts +2 -0
- package/dist/src/flow/purchaseSheetCustomers.d.ts.map +1 -0
- package/dist/src/flow/renderFiatFlowScreen.d.ts +15 -14
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/flow/screenBundles.d.ts +2 -2
- package/dist/src/flow/screenBundles.d.ts.map +1 -1
- package/dist/src/flow/useFeeDetails.d.ts +5 -5
- package/dist/src/flow/useFeeDetails.d.ts.map +1 -1
- package/dist/src/flow/useFunkitPurchaseSheetEnabled.d.ts +19 -0
- package/dist/src/flow/useFunkitPurchaseSheetEnabled.d.ts.map +1 -0
- package/dist/src/flow/useV2DepositEnabled.d.ts +3 -0
- package/dist/src/flow/useV2DepositEnabled.d.ts.map +1 -0
- package/dist/src/flow/validateInitialAmount.d.ts +2 -1
- package/dist/src/flow/validateInitialAmount.d.ts.map +1 -1
- package/dist/src/hooks/track/events.d.ts +1 -1
- package/dist/src/hooks/track/events.d.ts.map +1 -1
- package/dist/src/hooks/track/paymentQuoteConfirmer.d.ts +12 -0
- package/dist/src/hooks/track/paymentQuoteConfirmer.d.ts.map +1 -0
- package/dist/src/hooks/track/useDepositFlowEvents.d.ts +1 -1
- package/dist/src/hooks/track/useDepositOutcomeEvents.d.ts +1 -1
- package/dist/src/hooks/track/useDepositOutcomeEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts +1 -1
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useStepResponseObservers.d.ts +6 -0
- package/dist/src/hooks/track/useStepResponseObservers.d.ts.map +1 -0
- package/dist/src/hooks/track/useTrackFiatDepositQuoteEvents.d.ts +1 -1
- package/dist/src/hooks/track/useTrackFiatDepositQuoteEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts +1 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts.map +1 -1
- package/dist/src/native/applePayWallet.d.ts +24 -0
- package/dist/src/native/applePayWallet.d.ts.map +1 -0
- package/dist/src/preview/flowPreview.d.ts +1 -1
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +43 -37
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigProvider.d.ts +5 -0
- package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
- package/dist/src/providers/useFunkitCheckout.d.ts +7 -2
- package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +8 -1
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts +3 -0
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/LockedTransferCryptoScreen.d.ts.map +1 -1
- package/dist/src/screens/PaymentConfirmScreen.d.ts +26 -0
- package/dist/src/screens/PaymentConfirmScreen.d.ts.map +1 -0
- package/dist/src/screens/TokenAndChainPickerScreen.d.ts.map +1 -1
- package/dist/src/screens/TransferCryptoScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedPopup.d.ts +18 -0
- package/dist/src/swapped/SwappedPopup.d.ts.map +1 -0
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/paymentNavigation.d.ts +28 -0
- package/dist/src/swapped/paymentNavigation.d.ts.map +1 -1
- package/dist/src/swapped/webViewSwappedTransport.d.ts +3 -1
- package/dist/src/swapped/webViewSwappedTransport.d.ts.map +1 -1
- package/dist/src/theme/buildFunkitTheme.d.ts +2 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +66 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +6 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +19 -0
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/transfer/lockedTokenAmount.d.ts +2 -0
- package/dist/src/transfer/lockedTokenAmount.d.ts.map +1 -1
- package/dist/src/utils/formatAmount.d.ts +22 -0
- package/dist/src/utils/formatAmount.d.ts.map +1 -1
- package/expo-module.config.json +1 -1
- package/ios/FunkitApplePayWalletModule.swift +29 -0
- package/package.json +4 -4
- package/dist/chunk-JDGIKSWZ.js.map +0 -7
- package/dist/chunk-M53J24WI.js.map +0 -7
- package/dist/src/fiat/FiatActionButton.d.ts +0 -3
- package/dist/src/fiat/FiatActionButton.d.ts.map +0 -1
- package/dist/src/fiat/FiatBackButton.d.ts.map +0 -1
- package/dist/src/fiat/FiatBirthDateField.d.ts.map +0 -1
- package/dist/src/fiat/FiatChoiceField.d.ts.map +0 -1
- package/dist/src/fiat/FiatChoiceList.d.ts.map +0 -1
- package/dist/src/fiat/FiatContactScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatCountryIndexRail.d.ts.map +0 -1
- package/dist/src/fiat/FiatCountrySheet.d.ts.map +0 -1
- package/dist/src/fiat/FiatDatePickerDock.d.ts.map +0 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +0 -1
- package/dist/src/fiat/FiatErrorNotice.d.ts.map +0 -1
- package/dist/src/fiat/FiatErrorScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatFailureBanner.d.ts.map +0 -1
- package/dist/src/fiat/FiatFormAdvance.d.ts.map +0 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts.map +0 -1
- package/dist/src/fiat/FiatFormHeading.d.ts.map +0 -1
- package/dist/src/fiat/FiatFormScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycIntroLayout.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycNotice.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycOptionRow.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycPhoneField.d.ts.map +0 -1
- package/dist/src/fiat/FiatOptionsScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatOtpScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatPendingOrderScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatPhoneField.d.ts.map +0 -1
- package/dist/src/fiat/FiatProviderTerms.d.ts.map +0 -1
- package/dist/src/fiat/FiatReceipt.d.ts.map +0 -1
- package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatSharingConsentNotice.d.ts.map +0 -1
- package/dist/src/fiat/FiatSsnField.d.ts.map +0 -1
- package/dist/src/fiat/FiatStatusScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatStepFailedScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +0 -1
- package/dist/src/fiat/FiatTermsNotice.d.ts.map +0 -1
- package/dist/src/fiat/FiatUnavailableScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatUnsupportedStep.d.ts.map +0 -1
- package/dist/src/fiat/KycGlassBackdrop.d.ts.map +0 -1
- package/dist/src/fiat/PaymentDisclosureNotice.d.ts.map +0 -1
- package/dist/src/fiat/ScreenSurfaceCover.d.ts.map +0 -1
- package/dist/src/fiat/SurfaceSlot.d.ts.map +0 -1
- package/dist/src/fiat/actionSlot.d.ts.map +0 -1
- package/dist/src/fiat/applePayAttempt.d.ts.map +0 -1
- package/dist/src/fiat/calendarDate.d.ts.map +0 -1
- package/dist/src/fiat/closeFailure.d.ts.map +0 -1
- package/dist/src/fiat/contactRound.d.ts.map +0 -1
- package/dist/src/fiat/countryListEntries.d.ts.map +0 -1
- package/dist/src/fiat/countrySections.d.ts.map +0 -1
- package/dist/src/fiat/ctaLabel.d.ts.map +0 -1
- package/dist/src/fiat/depositMatch.d.ts.map +0 -1
- package/dist/src/fiat/depositOutcome.d.ts.map +0 -1
- package/dist/src/fiat/depositProcessing.d.ts.map +0 -1
- package/dist/src/fiat/depositSettlement.d.ts.map +0 -1
- package/dist/src/fiat/disclosureFooter.d.ts.map +0 -1
- package/dist/src/fiat/disclosureFooterContent.d.ts.map +0 -1
- package/dist/src/fiat/fieldAutofill.d.ts.map +0 -1
- package/dist/src/fiat/fieldLimits.d.ts.map +0 -1
- package/dist/src/fiat/formLayout.d.ts.map +0 -1
- package/dist/src/fiat/keyboardReturnKey.d.ts.map +0 -1
- package/dist/src/fiat/knownContacts.d.ts.map +0 -1
- package/dist/src/fiat/kycFormTheme.d.ts.map +0 -1
- package/dist/src/fiat/kycSupport.d.ts.map +0 -1
- package/dist/src/fiat/kycUnavailableAlert.d.ts.map +0 -1
- package/dist/src/fiat/legalLinks.d.ts.map +0 -1
- package/dist/src/fiat/methodName.d.ts.map +0 -1
- package/dist/src/fiat/nativeDatePicker.d.ts.map +0 -1
- package/dist/src/fiat/otpScreenProps.d.ts.map +0 -1
- package/dist/src/fiat/paymentAttempts.d.ts.map +0 -1
- package/dist/src/fiat/paymentReroute.d.ts.map +0 -1
- package/dist/src/fiat/paymentSurfaceFailure.d.ts.map +0 -1
- package/dist/src/fiat/phoneCountries.d.ts.map +0 -1
- package/dist/src/fiat/phoneDraft.d.ts.map +0 -1
- package/dist/src/fiat/postalCodeCountries.d.ts.map +0 -1
- package/dist/src/fiat/providerFailover.d.ts.map +0 -1
- package/dist/src/fiat/quoteNoRoute.d.ts.map +0 -1
- package/dist/src/fiat/quoteRefusal.d.ts.map +0 -1
- package/dist/src/fiat/quoteRouting.d.ts.map +0 -1
- package/dist/src/fiat/refusedFields.d.ts.map +0 -1
- package/dist/src/fiat/sessionAuth.d.ts.map +0 -1
- package/dist/src/fiat/sessionContact.d.ts.map +0 -1
- package/dist/src/fiat/shownFieldIssues.d.ts.map +0 -1
- package/dist/src/fiat/ssnLength.d.ts.map +0 -1
- package/dist/src/fiat/stepDetails.d.ts.map +0 -1
- package/dist/src/fiat/stepSurface.d.ts.map +0 -1
- package/dist/src/fiat/subdivisions.d.ts.map +0 -1
- package/dist/src/fiat/surfaceRegistry.d.ts.map +0 -1
- package/dist/src/fiat/useAuthHandoff.d.ts.map +0 -1
- package/dist/src/fiat/useCaptureHold.d.ts.map +0 -1
- package/dist/src/fiat/useContactAutoSubmit.d.ts.map +0 -1
- package/dist/src/fiat/useContactEligibility.d.ts.map +0 -1
- package/dist/src/fiat/useCountrySheet.d.ts.map +0 -1
- package/dist/src/fiat/useDatePickerDock.d.ts.map +0 -1
- package/dist/src/fiat/useDepositSettlement.d.ts.map +0 -1
- package/dist/src/fiat/useEntryQuote.d.ts.map +0 -1
- package/dist/src/fiat/useEntrySubmit.d.ts.map +0 -1
- package/dist/src/fiat/useFailureAnnouncements.d.ts.map +0 -1
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +0 -1
- package/dist/src/fiat/useFiatDirectDelivery.d.ts.map +0 -1
- package/dist/src/fiat/useIdentityAssertion.d.ts.map +0 -1
- package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +0 -1
- package/dist/src/fiat/useOtpReceipt.d.ts.map +0 -1
- package/dist/src/fiat/usePaymentAttempts.d.ts.map +0 -1
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts.map +0 -1
- package/dist/src/fiat/useProcessingPhase.d.ts.map +0 -1
- package/dist/src/fiat/useReceiptTitles.d.ts.map +0 -1
- package/dist/src/fiat/useReplayableFailure.d.ts.map +0 -1
- package/dist/src/fiat/useRerouteProbe.d.ts.map +0 -1
- package/dist/src/fiat/useResendCooldown.d.ts.map +0 -1
- package/dist/src/fiat/useSharingConsent.d.ts.map +0 -1
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +0 -1
- package/dist/src/fiat/useStandingRefusals.d.ts.map +0 -1
- package/dist/src/fiat/useSurfaceAttempt.d.ts.map +0 -1
- /package/dist/{chunk-BIIYR5K5.js.map → chunk-264ZLQVH.js.map} +0 -0
- /package/dist/src/fiat/{FiatBackButton.d.ts → common/FiatBackButton.d.ts} +0 -0
- /package/dist/src/fiat/{FiatErrorNotice.d.ts → common/FiatErrorNotice.d.ts} +0 -0
- /package/dist/src/fiat/{FiatErrorScreen.d.ts → common/FiatErrorScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatProviderTerms.d.ts → common/FiatProviderTerms.d.ts} +0 -0
- /package/dist/src/fiat/{FiatRegionUnsupportedScreen.d.ts → common/FiatRegionUnsupportedScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatStatusScreen.d.ts → common/FiatStatusScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatStepFailedScreen.d.ts → common/FiatStepFailedScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatSubmissionIndicator.d.ts → common/FiatSubmissionIndicator.d.ts} +0 -0
- /package/dist/src/fiat/{FiatTermsNotice.d.ts → common/FiatTermsNotice.d.ts} +0 -0
- /package/dist/src/fiat/{FiatUnavailableScreen.d.ts → common/FiatUnavailableScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatUnsupportedStep.d.ts → common/FiatUnsupportedStep.d.ts} +0 -0
- /package/dist/src/fiat/{ctaLabel.d.ts → common/ctaLabel.d.ts} +0 -0
- /package/dist/src/fiat/{FiatPhoneField.d.ts → contact/FiatPhoneField.d.ts} +0 -0
- /package/dist/src/fiat/{phoneCountries.d.ts → contact/phoneCountries.d.ts} +0 -0
- /package/dist/src/fiat/{phoneDraft.d.ts → contact/phoneDraft.d.ts} +0 -0
- /package/dist/src/fiat/{sessionContact.d.ts → contact/sessionContact.d.ts} +0 -0
- /package/dist/src/fiat/{useContactAutoSubmit.d.ts → contact/useContactAutoSubmit.d.ts} +0 -0
- /package/dist/src/fiat/{useContactEligibility.d.ts → contact/useContactEligibility.d.ts} +0 -0
- /package/dist/src/fiat/{FiatCountryIndexRail.d.ts → country/FiatCountryIndexRail.d.ts} +0 -0
- /package/dist/src/fiat/{countryListEntries.d.ts → country/countryListEntries.d.ts} +0 -0
- /package/dist/src/fiat/{postalCodeCountries.d.ts → country/postalCodeCountries.d.ts} +0 -0
- /package/dist/src/fiat/{subdivisions.d.ts → country/subdivisions.d.ts} +0 -0
- /package/dist/src/fiat/{disclosureFooter.d.ts → entry/disclosureFooter.d.ts} +0 -0
- /package/dist/src/fiat/{useFiatCheckoutPreparation.d.ts → entry/useFiatCheckoutPreparation.d.ts} +0 -0
- /package/dist/src/fiat/{FiatBirthDateField.d.ts → form/FiatBirthDateField.d.ts} +0 -0
- /package/dist/src/fiat/{FiatChoiceField.d.ts → form/FiatChoiceField.d.ts} +0 -0
- /package/dist/src/fiat/{FiatChoiceList.d.ts → form/FiatChoiceList.d.ts} +0 -0
- /package/dist/src/fiat/{FiatDatePickerDock.d.ts → form/FiatDatePickerDock.d.ts} +0 -0
- /package/dist/src/fiat/{FiatFormAdvance.d.ts → form/FiatFormAdvance.d.ts} +0 -0
- /package/dist/src/fiat/{FiatFormHeading.d.ts → form/FiatFormHeading.d.ts} +0 -0
- /package/dist/src/fiat/{FiatFormScreen.d.ts → form/FiatFormScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatSsnField.d.ts → form/FiatSsnField.d.ts} +0 -0
- /package/dist/src/fiat/{calendarDate.d.ts → form/calendarDate.d.ts} +0 -0
- /package/dist/src/fiat/{fieldAutofill.d.ts → form/fieldAutofill.d.ts} +0 -0
- /package/dist/src/fiat/{formLayout.d.ts → form/formLayout.d.ts} +0 -0
- /package/dist/src/fiat/{keyboardReturnKey.d.ts → form/keyboardReturnKey.d.ts} +0 -0
- /package/dist/src/fiat/{nativeDatePicker.d.ts → form/nativeDatePicker.d.ts} +0 -0
- /package/dist/src/fiat/{refusedFields.d.ts → form/refusedFields.d.ts} +0 -0
- /package/dist/src/fiat/{ssnLength.d.ts → form/ssnLength.d.ts} +0 -0
- /package/dist/src/fiat/{useDatePickerDock.d.ts → form/useDatePickerDock.d.ts} +0 -0
- /package/dist/src/fiat/{FiatDocumentCaptureStep.d.ts → kyc/FiatDocumentCaptureStep.d.ts} +0 -0
- /package/dist/src/fiat/{FiatKycIntroLayout.d.ts → kyc/FiatKycIntroLayout.d.ts} +0 -0
- /package/dist/src/fiat/{FiatKycIntroScreen.d.ts → kyc/FiatKycIntroScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatKycOptionRow.d.ts → kyc/FiatKycOptionRow.d.ts} +0 -0
- /package/dist/src/fiat/{FiatKycOutcomeScreen.d.ts → kyc/FiatKycOutcomeScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatSharingConsentNotice.d.ts → kyc/FiatSharingConsentNotice.d.ts} +0 -0
- /package/dist/src/fiat/{KycGlassBackdrop.d.ts → kyc/KycGlassBackdrop.d.ts} +0 -0
- /package/dist/src/fiat/{kycFormTheme.d.ts → kyc/kycFormTheme.d.ts} +0 -0
- /package/dist/src/fiat/{kycSupport.d.ts → kyc/kycSupport.d.ts} +0 -0
- /package/dist/src/fiat/{kycUnavailableAlert.d.ts → kyc/kycUnavailableAlert.d.ts} +0 -0
- /package/dist/src/fiat/{legalLinks.d.ts → kyc/legalLinks.d.ts} +0 -0
- /package/dist/src/fiat/{useSharingConsent.d.ts → kyc/useSharingConsent.d.ts} +0 -0
- /package/dist/src/fiat/{FiatOtpScreen.d.ts → otp/FiatOtpScreen.d.ts} +0 -0
- /package/dist/src/fiat/{useOtpAutoSubmit.d.ts → otp/useOtpAutoSubmit.d.ts} +0 -0
- /package/dist/src/fiat/{useOtpReceipt.d.ts → otp/useOtpReceipt.d.ts} +0 -0
- /package/dist/src/fiat/{useResendCooldown.d.ts → otp/useResendCooldown.d.ts} +0 -0
- /package/dist/src/fiat/{methodName.d.ts → payment/methodName.d.ts} +0 -0
- /package/dist/src/fiat/{paymentAttempts.d.ts → payment/paymentAttempts.d.ts} +0 -0
- /package/dist/src/fiat/{paymentSurfaceFailure.d.ts → payment/paymentSurfaceFailure.d.ts} +0 -0
- /package/dist/src/fiat/{providerFailover.d.ts → payment/providerFailover.d.ts} +0 -0
- /package/dist/src/fiat/{depositProcessing.d.ts → processing/depositProcessing.d.ts} +0 -0
- /package/dist/src/fiat/{useProcessingPhase.d.ts → processing/useProcessingPhase.d.ts} +0 -0
- /package/dist/src/fiat/{quoteNoRoute.d.ts → quote/quoteNoRoute.d.ts} +0 -0
- /package/dist/src/fiat/{quoteRefusal.d.ts → quote/quoteRefusal.d.ts} +0 -0
- /package/dist/src/fiat/{useReplayableFailure.d.ts → quote/useReplayableFailure.d.ts} +0 -0
- /package/dist/src/fiat/{FiatPendingOrderScreen.d.ts → settlement/FiatPendingOrderScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatReceipt.d.ts → settlement/FiatReceipt.d.ts} +0 -0
- /package/dist/src/fiat/{useReceiptTitles.d.ts → settlement/useReceiptTitles.d.ts} +0 -0
- /package/dist/src/fiat/{ScreenSurfaceCover.d.ts → surface/ScreenSurfaceCover.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,77 @@
|
|
|
1
1
|
# @funkit/connect-rn
|
|
2
2
|
|
|
3
|
+
## 10.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 316fa81: Show the purchased token in the amount sheet header via `amountEntry.purchaseTarget`, and add `useFunkitPurchaseSheetEnabled`; migration: add `feature_disabled` to exhaustive error-code handlers.
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- 4a26a45: Payment-method rows can be drawn entirely by the host with `PaymentMethodRow.render`.
|
|
12
|
+
- 36e093f: Remove `renderPaymentMethodPicker` and the `PaymentMethodPicker` type; use `paymentMethodPicker` with `PaymentMethodRow.render` instead.
|
|
13
|
+
|
|
14
|
+
Released as a minor by approved exception: the prop shipped in 9.6.0 with no known adopters. To migrate, return your methods from `paymentMethodPicker.methods(amount)`, which receives what `picker.amount` held, and draw each with `render`. Replace `stay()` with `onSelect` returning `'stay'`, and `leave(then)` with `{ afterClose: then }`; handle a `false` from `leave` in `onLeaveRefused`.
|
|
15
|
+
- 316fa81: Accept an empty `initialAmount.value` as a draft that names the currency without prefilling an amount.
|
|
16
|
+
- 9e868c3: Fiat deposits the backend converts into another token wait for the token to arrive before `onDepositSubmitted`, and show a dedicated screen if the purchase fails after payment.
|
|
17
|
+
- c9c47ac: Show the swap fee and "Receive ~X" for the purchased token on Apple Pay quotes that carry them.
|
|
18
|
+
- 2e1f681: Show the purchased token's chain, market cap, price and 24h change in the purchase sheet header when `amountEntry.purchaseTarget` carries them.
|
|
19
|
+
- 4b50f33: Testing builds now report the `staging` environment tier to Statsig; Metro dev bundles stay `development`, release builds `production`.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 425823e: Log whether the Apple Pay wallet holds a credit or debit card on iOS
|
|
24
|
+
- 0a1ab00: Internal file reorganization of the fiat deposit flow; no behavior change.
|
|
25
|
+
- 98262c5: Quote Coinbase and MoonPay last for Apple Pay when the wallet holds cards but no debit card (off by default)
|
|
26
|
+
- 3ca6c71: The deposit amount's fee line shows its ⓘ only when tapping it opens the fee breakdown.
|
|
27
|
+
- 5970b7c: Internal refactor of the fiat flow screen; no behavior change.
|
|
28
|
+
- 39d56c6: `useFiatQuote` takes a per-provider `providerSelection` in place of `excludedProviders`
|
|
29
|
+
|
|
30
|
+
Migration: `providerSelection` gives each provider one `{ status, reason }`, with status `'EXCLUDED'` or `'DEFERRED'` (quoted after the rest). Pass the old list as `providerSelection: Object.fromEntries(excludedProviders.map((provider) => [provider, { status: 'EXCLUDED', reason: '…' }]))`.
|
|
31
|
+
- a4b516c: Internal: split the fiat flow screen helpers into descriptively named modules; no behavior change.
|
|
32
|
+
- cd1eeb5: The deposit amount reads "No fees" when the buyer's next deposit is predicted to be reimbursed, until a price shows the exact amount.
|
|
33
|
+
- Updated dependencies [98262c5]
|
|
34
|
+
- Updated dependencies [9e868c3]
|
|
35
|
+
- Updated dependencies [50573f4]
|
|
36
|
+
- Updated dependencies [37e2741]
|
|
37
|
+
- Updated dependencies [39d56c6]
|
|
38
|
+
- Updated dependencies [316fa81]
|
|
39
|
+
- Updated dependencies [0d75af5]
|
|
40
|
+
- @funkit/connect-core@11.0.0
|
|
41
|
+
|
|
42
|
+
## 9.7.0
|
|
43
|
+
|
|
44
|
+
### Minor Changes
|
|
45
|
+
|
|
46
|
+
- 0c10a90: Expose host-controlled payment-method selection on useFunkitCheckout. `onPaymentMethodPress` now also reports an empty draft `{ value: '', currency }`.
|
|
47
|
+
- a663f96: Dim the host behind the crypto deposit modal and densify its card, in light and dark, to match the R6 designs.
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- bdac108: Log an outcome for Apple Pay attempts left open when the deposit screen closes.
|
|
52
|
+
- 6c98f64: Stripe's Link account email screen is labelled "Email address" without promising a code, and a reopened contact screen keeps the email the buyer already typed.
|
|
53
|
+
- a2cff67: Preserve deposit outcome reporting when navigating between checkout screens.
|
|
54
|
+
- 67cf117: Support resizing deposit sheets without remounting their content.
|
|
55
|
+
- 5283b62: Fiat step failure logs now include the backend's error code and reason.
|
|
56
|
+
- bf49825: Retry a transient identity assertion failure once, and report `identity_assertion_failed` only if the user closes the flow on it.
|
|
57
|
+
- d1b2a7b: Keep deposit amounts centered and add reusable payment confirmation layouts.
|
|
58
|
+
- b6c99e9: The crypto deposit screens show their back button on a ringed round button, as designed.
|
|
59
|
+
- b6c99e9: Round icon buttons no longer swell and flash under the finger on iOS 26; they dip on press like the other controls.
|
|
60
|
+
- 8ba1912: Logged errors now keep their name, message and cause instead of arriving empty.
|
|
61
|
+
- ebe163c: Open Swapped's Apple Pay window in a sheet over the checkout on iOS so the checkout keeps polling and returns the user automatically once the payment lands.
|
|
62
|
+
- a663f96: The crypto deposit address page drops the attribution watermark and seats Copy Address at the card's foot.
|
|
63
|
+
- a663f96: The crypto deposit address page is titled "Send Crypto".
|
|
64
|
+
- a663f96: A crypto deposit page opens on its lowest height when the height the sheet was left at no longer exists, so the address page no longer hangs from the top of the screen after a raised token list.
|
|
65
|
+
- Updated dependencies [5283b62]
|
|
66
|
+
- Updated dependencies [ff472ba]
|
|
67
|
+
- Updated dependencies [5283b62]
|
|
68
|
+
- Updated dependencies [bf49825]
|
|
69
|
+
- Updated dependencies [a2cff67]
|
|
70
|
+
- Updated dependencies [1bdcbce]
|
|
71
|
+
- Updated dependencies [29b52d4]
|
|
72
|
+
- @funkit/api-base@9.1.2
|
|
73
|
+
- @funkit/connect-core@10.1.0
|
|
74
|
+
|
|
3
75
|
## 9.6.1
|
|
4
76
|
|
|
5
77
|
### Patch Changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFunkitIdentity
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K2VB5PT5.js";
|
|
4
4
|
import {
|
|
5
5
|
logger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2HFFVYAZ.js";
|
|
7
7
|
|
|
8
8
|
// src/statsig/useDynamicConfig.ts
|
|
9
9
|
import {
|
|
@@ -114,4 +114,4 @@ export {
|
|
|
114
114
|
useIsStablecoin,
|
|
115
115
|
useSourceTokenUsdPrice
|
|
116
116
|
};
|
|
117
|
-
//# sourceMappingURL=chunk-
|
|
117
|
+
//# sourceMappingURL=chunk-264ZLQVH.js.map
|
|
@@ -34,6 +34,7 @@ function serializeValue(value) {
|
|
|
34
34
|
}
|
|
35
35
|
function createSafeJsonReplacer() {
|
|
36
36
|
const ancestors = [];
|
|
37
|
+
const sources = [];
|
|
37
38
|
return function(_key, value) {
|
|
38
39
|
if (typeof value === "bigint") {
|
|
39
40
|
return value.toString();
|
|
@@ -52,12 +53,24 @@ function createSafeJsonReplacer() {
|
|
|
52
53
|
}
|
|
53
54
|
while (ancestors.length > 0 && ancestors[ancestors.length - 1] !== this) {
|
|
54
55
|
ancestors.pop();
|
|
56
|
+
sources.pop();
|
|
55
57
|
}
|
|
56
|
-
if (
|
|
58
|
+
if (sources.includes(value)) {
|
|
57
59
|
return "[Circular]";
|
|
58
60
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
const resolved = value instanceof Error ? errorFields(value) : value;
|
|
62
|
+
ancestors.push(resolved);
|
|
63
|
+
sources.push(value);
|
|
64
|
+
return resolved;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function errorFields(error) {
|
|
68
|
+
const { cause } = error;
|
|
69
|
+
return {
|
|
70
|
+
...error,
|
|
71
|
+
name: error.name,
|
|
72
|
+
message: error.message,
|
|
73
|
+
...cause === void 0 ? {} : { cause }
|
|
61
74
|
};
|
|
62
75
|
}
|
|
63
76
|
|
|
@@ -310,4 +323,4 @@ export {
|
|
|
310
323
|
logger,
|
|
311
324
|
datadogRouter
|
|
312
325
|
};
|
|
313
|
-
//# sourceMappingURL=chunk-
|
|
326
|
+
//# sourceMappingURL=chunk-2HFFVYAZ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/logging/logger.ts", "../src/logging/datadogHttpLogTransport.ts", "../src/logging/serializeLogBatch.ts"],
|
|
4
|
-
"sourcesContent": ["import { FunLogger, createDatadogRouter } from '@funkit/connect-core'\nimport { AppState } from 'react-native'\n\nimport { DatadogHttpLogTransport } from './datadogHttpLogTransport'\n\n// Public Datadog client token (same one `@funkit/connect` uses for web). A\n// client token is safe to embed in client apps. The puppy.fun.xyz proxy only\n// forwards requests carrying this token. Rotating it also means updating\n// ALLOWED_CLIENT_TOKEN in fun-xyz/cfn-infra's cloudformations/puppy-dd-proxy.yaml\n// and redeploying that stack; otherwise every proxied log is rejected.\nconst DDOG_CLIENT_TOKEN = 'pub4f86c6be8c792cb48dc156a8c17d9a47'\n\n/**\n * The React Native `FunLogger` singleton. Mirrors `@funkit/connect`'s web\n * `logger`, but injects the raw-HTTP {@link DatadogHttpLogTransport} (no Datadog\n * SDK, no native modules) instead of `@datadog/browser-logs`. The host wires\n * `logger.configure(...)` / `setUserInfo(...)` once identity is available.\n */\nconst transport = new DatadogHttpLogTransport({\n clientToken: DDOG_CLIENT_TOKEN,\n // service defaults to 'connect-rn' (see DatadogHttpLogTransport).\n})\n\nexport const logger = new FunLogger(transport)\n\n/**\n * Holds every log until the `sdk-datadog-proxy` gate gives a route.\n * `FunkitStatsigProvider` attaches its client. Backgrounding the app before\n * then sets a provisional route, so the queue is sent before iOS suspends JS.\n */\nexport const datadogRouter = createDatadogRouter({\n setRoute: (decision) => {\n transport.setRoute(decision)\n logger.info('datadog:routeDecided', decision)\n },\n subscribeToExit: (onExit) => {\n const subscription = AppState.addEventListener('change', (state) => {\n if (state === 'background') {\n onExit()\n }\n })\n return () => subscription.remove()\n },\n})\n\n// Names a developer's build in Datadog.\n// Metro inlines `EXPO_PUBLIC_*` only outside `node_modules` (expo/expo#46982),\n// so this resolves in this monorepo's playground and is `undefined`\n// for anyone consuming the published package. A host needs no API to opt out.\nlogger.setDebugTag(process.env.EXPO_PUBLIC_DEV_TAG ?? null)\n\n// iOS suspends JS shortly after the app leaves the foreground, freezing the\n// batch timer. A redirect, 3DS or KYC camera handoff would otherwise strand the\n// records that explain it, or lose them if the OS kills the app.\nAppState.addEventListener('change', (state) => {\n if (state === 'background') {\n transport.flushAll()\n }\n})\n", "import { retry } from '@lifeomic/attempt'\nimport {\n DATADOG_PROXY_SITE,\n type DatadogRouteDecision,\n type LogRecord,\n type LogTransport,\n type TrackingConsent,\n buildDatadogProxyUrl,\n} from '@funkit/connect-core'\n\nimport { serializeLogBatch } from './serializeLogBatch'\n\n/**\n * React Native `LogTransport` that ships records to Datadog over **raw HTTP**\n * (`fetch`) \u2014 deliberately NOT the Datadog SDK. `@datadog/mobile-react-native`\n * pulls in native modules (autolinking, pods, no Expo Go); a plain `fetch` to\n * the logs intake needs none, so this works in Expo Go and any RN runtime.\n *\n * Nothing is sent until {@link setRoute} receives a route; records\n * wait in the queue until then.\n *\n * Records are batched and flushed on a timer (or when the batch fills). Each\n * batch retries with backoff, then waits for the next flush if the intake is\n * still unreachable; nothing a send does can throw back into a user flow.\n * Authenticates with the public Datadog **client token** via `dd-api-key`\n * (the same credential the browser SDK uses \u2014 safe to embed), so no server-side\n * API key is needed.\n */\nexport interface DatadogHttpLogTransportOptions {\n /** Datadog client token (`pub\u2026`). Safe to ship in client apps. */\n clientToken: string\n /** Service name attached to every log. */\n service?: string\n /** Datadog site, e.g. `datadoghq.com` (default), `datadoghq.eu`. */\n site?: string\n /** Initial environment tag; also settable later via {@link setEnv}. */\n env?: string\n /** Flush the batch at most this often (ms). Default 5000. */\n flushIntervalMs?: number\n /** Flush immediately once the batch reaches this size. Default 50. */\n maxBatchSize?: number\n}\n\ninterface DatadogLogEntry {\n ddsource: string\n service: string\n status: LogRecord['level']\n message: string\n ddtags?: string\n error?: { message: string; stack?: string; kind: string }\n [attribute: string]: unknown\n}\n\nconst DEFAULT_SERVICE = 'connect-rn'\nconst DEFAULT_SITE = DATADOG_PROXY_SITE\nconst INTAKE_PATH = '/api/v2/logs'\nconst DEFAULT_FLUSH_INTERVAL_MS = 5_000\nconst DEFAULT_MAX_BATCH_SIZE = 50\n// About three minutes of backoff: long enough to outlast a dropped connection\n// or a rate limit, short enough that an offline app stops holding records.\nconst SEND_RETRY = {\n delay: 2_000,\n factor: 2,\n maxDelay: 60_000,\n maxAttempts: 8,\n jitter: true,\n}\n// A hung request would otherwise hold the queue behind it. It is aborted, not\n// abandoned, so a late answer cannot deliver the batch a second time.\nconst SEND_TIMEOUT_MS = 15_000\n\n// Bounds memory through a long outage; the newest records are the ones that\n// explain whatever the user is looking at when the connection returns.\nconst MAX_QUEUED_RECORDS = 500\n\n/** Tells `retry` the intake may take the batch on another attempt. */\nclass RetryableSend extends Error {}\n\nexport class DatadogHttpLogTransport implements LogTransport {\n private readonly directIntakeUrl: string\n private readonly proxyIntakeUrl: string | null\n private readonly service: string\n private readonly flushIntervalMs: number\n private readonly maxBatchSize: number\n\n private env: string | undefined\n private consent: TrackingConsent = 'granted'\n // Bumped on every withdrawal, so a batch taken before one never sends.\n private consentGeneration = 0\n private queue: DatadogLogEntry[] = []\n private flushTimer: ReturnType<typeof setTimeout> | null = null\n private isSending = false\n private route: { decision: DatadogRouteDecision; intakeUrl: string } | null =\n null\n\n constructor(options: DatadogHttpLogTransportOptions) {\n const site = options.site ?? DEFAULT_SITE\n this.service = options.service ?? DEFAULT_SERVICE\n this.env = options.env\n this.flushIntervalMs = options.flushIntervalMs ?? DEFAULT_FLUSH_INTERVAL_MS\n this.maxBatchSize = options.maxBatchSize ?? DEFAULT_MAX_BATCH_SIZE\n // Browser/mobile logs intake; the client token authenticates via dd-api-key.\n const parameters =\n `dd-api-key=${encodeURIComponent(options.clientToken)}` +\n `&ddsource=react-native&dd-evp-origin=react-native`\n this.directIntakeUrl = `https://browser-intake-${site}${INTAKE_PATH}?${parameters}`\n // The proxy only forwards to the default site's intake.\n this.proxyIntakeUrl =\n site === DATADOG_PROXY_SITE ? buildDatadogProxyUrl({ parameters }) : null\n }\n\n /**\n * Sets where logs go and sends everything queued so far. A later call\n * switches the route for every send that starts after it.\n */\n setRoute(decision: DatadogRouteDecision): void {\n this.route =\n decision.route === 'proxy' && this.proxyIntakeUrl\n ? { decision, intakeUrl: this.proxyIntakeUrl }\n : {\n decision: { ...decision, route: 'direct' },\n intakeUrl: this.directIntakeUrl,\n }\n this.flush()\n }\n\n setEnv(environment: string): void {\n this.env = environment\n }\n\n setTrackingConsent(consent: TrackingConsent): void {\n this.consent = consent\n if (consent !== 'granted') {\n // Drop anything buffered when consent is withdrawn.\n this.queue = []\n this.consentGeneration++\n this.clearTimer()\n }\n }\n\n log({ level, title, context, error }: LogRecord): void {\n if (this.consent !== 'granted') {\n return\n }\n\n const entry: DatadogLogEntry = {\n // Caller context first so the mandatory Datadog fields below always win \u2014\n // a future LogContext attribute named e.g. `message`/`status` can't\n // silently corrupt the record.\n ...context,\n ddsource: 'react-native',\n service: this.service,\n status: level,\n message: title,\n // Stamped at emit time: Datadog otherwise dates a record by its arrival,\n // which lags by the batch interval, or by minutes after a background.\n date: Date.now(),\n ...(this.env ? { ddtags: `env:${this.env}` } : {}),\n ...(error\n ? {\n error: {\n message: error.message,\n stack: error.stack,\n kind: error.name,\n },\n }\n : {}),\n }\n\n this.queue.push(entry)\n if (this.queue.length > MAX_QUEUED_RECORDS) {\n this.queue.shift()\n }\n\n if (this.queue.length >= this.maxBatchSize) {\n this.flush()\n } else {\n this.scheduleFlush()\n }\n }\n\n /**\n * Send the oldest batch, then the next once it lands. One send at a time:\n * a failed batch goes back to the front of the queue, so the cap always\n * drops the oldest records.\n */\n flush(): void {\n this.clearTimer()\n if (!this.route || this.isSending || this.queue.length === 0) {\n return\n }\n if (typeof fetch !== 'function') {\n // No fetch (e.g. SSR import) \u2014 drop rather than throw.\n this.queue = []\n return\n }\n\n this.isSending = true\n // At most a batch per request: a backlog from an outage sent whole can\n // pass the intake's payload limit and be refused.\n this.sendBatch(this.queue.splice(0, this.maxBatchSize)).then((sent) => {\n this.isSending = false\n if (sent) {\n this.flush()\n } else if (this.queue.length > 0) {\n this.scheduleFlush()\n }\n })\n }\n\n /**\n * Send every queued record now, one request per batch, without waiting for\n * earlier requests. For the moment before iOS suspends the app, when a\n * one-at-a-time flush would leave the later batches unsent.\n */\n flushAll(): void {\n this.clearTimer()\n if (!this.route || typeof fetch !== 'function') {\n return\n }\n while (this.queue.length > 0) {\n void this.sendBatch(this.queue.splice(0, this.maxBatchSize)).then(\n (sent) => {\n if (!sent && this.queue.length > 0) {\n this.scheduleFlush()\n }\n },\n )\n }\n }\n\n /** Resolves whether the batch was sent; a failed batch rejoins the queue. */\n private sendBatch(batch: DatadogLogEntry[]): Promise<boolean> {\n const route = this.route\n if (!route) {\n this.queue = [...batch, ...this.queue].slice(-MAX_QUEUED_RECORDS)\n return Promise.resolve(false)\n }\n const generation = this.consentGeneration\n const isWithdrawn = () => this.consentGeneration !== generation\n return retry(\n async () => {\n const controller = new AbortController()\n let timeout: ReturnType<typeof setTimeout> | undefined\n // Raced, not only aborted: a host fetch may ignore the signal.\n const timedOut = new Promise<never>((_, reject) => {\n timeout = setTimeout(() => {\n controller.abort()\n reject(new RetryableSend('request timed out'))\n }, SEND_TIMEOUT_MS)\n })\n try {\n const response = await Promise.race([\n fetch(route.intakeUrl, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: serializeLogBatch(\n batch.map((entry) => ({\n ...entry,\n datadogRoute: route.decision,\n })),\n ),\n signal: controller.signal,\n }),\n timedOut,\n ])\n if (!response.ok && isRetryableStatus(response.status)) {\n throw new RetryableSend(`intake answered ${response.status}`)\n }\n } finally {\n clearTimeout(timeout)\n }\n },\n {\n ...SEND_RETRY,\n // Checks the generation, not the current value: consent may be\n // withdrawn and granted again within one backoff.\n beforeAttempt: (context) => {\n if (isWithdrawn()) {\n context.abort()\n }\n },\n },\n ).then(\n () => true,\n () => {\n if (!isWithdrawn()) {\n this.queue = [...batch, ...this.queue].slice(-MAX_QUEUED_RECORDS)\n }\n return false\n },\n )\n }\n\n private scheduleFlush(): void {\n if (this.flushTimer != null) {\n return\n }\n this.flushTimer = setTimeout(() => {\n this.flushTimer = null\n this.flush()\n }, this.flushIntervalMs)\n }\n\n private clearTimer(): void {\n if (this.flushTimer != null) {\n clearTimeout(this.flushTimer)\n this.flushTimer = null\n }\n }\n}\n\n/**\n * Other 4xx answers reject the payload itself, so sending it again cannot\n * succeed.\n */\nfunction isRetryableStatus(status: number): boolean {\n return status === 408 || status === 429 || status >= 500\n}\n", "const UNSERIALIZABLE_DATA = '[Unserializable]'\n\n/**\n * Serialize log records to a JSON body. Always succeeds.\n *\n * Web gets this from `@datadog/browser-logs`; the raw-`fetch` RN transport has\n * no such layer and serializes inside the caller's `log()`, so a throw would\n * land in a user flow.\n */\nexport function serializeLogBatch(batch: readonly object[]): string {\n try {\n return JSON.stringify(batch, createSafeJsonReplacer())\n } catch {\n return `[${batch.map(serializeRecord).join(',')}]`\n }\n}\n\n/** Attribute by attribute, so one bad value can't drop unrelated records. */\nfunction serializeRecord(record: object): string {\n const attributes = Object.entries(record).flatMap(([key, value]) => {\n const serialized = serializeValue(value)\n // Omit undefined, as JSON.stringify does for object properties.\n return serialized === undefined\n ? []\n : [`${JSON.stringify(key)}:${serialized}`]\n })\n return `{${attributes.join(',')}}`\n}\n\nfunction serializeValue(value: unknown): string | undefined {\n try {\n return JSON.stringify(value, createSafeJsonReplacer())\n } catch {\n return JSON.stringify(UNSERIALIZABLE_DATA)\n }\n}\n\n/**\n * Resolves what `JSON.stringify` can't, inside the traversal it already makes.\n * `toJSON` runs before the replacer, so a throwing one escapes to the callers\n * above. Create one per `stringify`.\n */\nfunction createSafeJsonReplacer() {\n const ancestors: object[] = []\n\n return function (this: unknown, _key: string, value: unknown): unknown {\n if (typeof value === 'bigint') {\n return value.toString()\n }\n if (typeof value === 'function') {\n return `[Function] ${value.name || 'anonymous'}`\n }\n if (typeof value === 'symbol') {\n return `[Symbol] ${value.description ?? ''}`\n }\n if (value === null || typeof value !== 'object') {\n return value\n }\n\n // React values reference the fiber that rendered them, or themselves \u2014\n // internals either way, so mark the family instead of walking it.\n if ('$$typeof' in value) {\n return '[React]'\n }\n\n // `this` is the object `value` came from; unwinding to it leaves only true\n // ancestors, so a repeated sibling reference isn't read as a cycle.\n while (ancestors.length > 0 && ancestors[ancestors.length - 1] !== this) {\n ancestors.pop()\n }\n if (ancestors.includes(value)) {\n return '[Circular]'\n }\n ancestors.push(value)\n return value\n }\n}\n"],
|
|
5
|
-
"mappings": ";AAAA,SAAS,WAAW,2BAA2B;AAC/C,SAAS,gBAAgB;;;ACDzB,SAAS,aAAa;AACtB;AAAA,EACE;AAAA,EAKA;AAAA,OACK;;;ACRP,IAAM,sBAAsB;AASrB,SAAS,kBAAkB,OAAkC;AAClE,MAAI;AACF,WAAO,KAAK,UAAU,OAAO,uBAAuB,CAAC;AAAA,EACvD,QAAQ;AACN,WAAO,IAAI,MAAM,IAAI,eAAe,EAAE,KAAK,GAAG,CAAC;AAAA,EACjD;AACF;AAGA,SAAS,gBAAgB,QAAwB;AAC/C,QAAM,aAAa,OAAO,QAAQ,MAAM,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AAClE,UAAM,aAAa,eAAe,KAAK;AAEvC,WAAO,eAAe,SAClB,CAAC,IACD,CAAC,GAAG,KAAK,UAAU,GAAG,CAAC,IAAI,UAAU,EAAE;AAAA,EAC7C,CAAC;AACD,SAAO,IAAI,WAAW,KAAK,GAAG,CAAC;AACjC;AAEA,SAAS,eAAe,OAAoC;AAC1D,MAAI;AACF,WAAO,KAAK,UAAU,OAAO,uBAAuB,CAAC;AAAA,EACvD,QAAQ;AACN,WAAO,KAAK,UAAU,mBAAmB;AAAA,EAC3C;AACF;AAOA,SAAS,yBAAyB;
|
|
4
|
+
"sourcesContent": ["import { FunLogger, createDatadogRouter } from '@funkit/connect-core'\nimport { AppState } from 'react-native'\n\nimport { DatadogHttpLogTransport } from './datadogHttpLogTransport'\n\n// Public Datadog client token (same one `@funkit/connect` uses for web). A\n// client token is safe to embed in client apps. The puppy.fun.xyz proxy only\n// forwards requests carrying this token. Rotating it also means updating\n// ALLOWED_CLIENT_TOKEN in fun-xyz/cfn-infra's cloudformations/puppy-dd-proxy.yaml\n// and redeploying that stack; otherwise every proxied log is rejected.\nconst DDOG_CLIENT_TOKEN = 'pub4f86c6be8c792cb48dc156a8c17d9a47'\n\n/**\n * The React Native `FunLogger` singleton. Mirrors `@funkit/connect`'s web\n * `logger`, but injects the raw-HTTP {@link DatadogHttpLogTransport} (no Datadog\n * SDK, no native modules) instead of `@datadog/browser-logs`. The host wires\n * `logger.configure(...)` / `setUserInfo(...)` once identity is available.\n */\nconst transport = new DatadogHttpLogTransport({\n clientToken: DDOG_CLIENT_TOKEN,\n // service defaults to 'connect-rn' (see DatadogHttpLogTransport).\n})\n\nexport const logger = new FunLogger(transport)\n\n/**\n * Holds every log until the `sdk-datadog-proxy` gate gives a route.\n * `FunkitStatsigProvider` attaches its client. Backgrounding the app before\n * then sets a provisional route, so the queue is sent before iOS suspends JS.\n */\nexport const datadogRouter = createDatadogRouter({\n setRoute: (decision) => {\n transport.setRoute(decision)\n logger.info('datadog:routeDecided', decision)\n },\n subscribeToExit: (onExit) => {\n const subscription = AppState.addEventListener('change', (state) => {\n if (state === 'background') {\n onExit()\n }\n })\n return () => subscription.remove()\n },\n})\n\n// Names a developer's build in Datadog.\n// Metro inlines `EXPO_PUBLIC_*` only outside `node_modules` (expo/expo#46982),\n// so this resolves in this monorepo's playground and is `undefined`\n// for anyone consuming the published package. A host needs no API to opt out.\nlogger.setDebugTag(process.env.EXPO_PUBLIC_DEV_TAG ?? null)\n\n// iOS suspends JS shortly after the app leaves the foreground, freezing the\n// batch timer. A redirect, 3DS or KYC camera handoff would otherwise strand the\n// records that explain it, or lose them if the OS kills the app.\nAppState.addEventListener('change', (state) => {\n if (state === 'background') {\n transport.flushAll()\n }\n})\n", "import { retry } from '@lifeomic/attempt'\nimport {\n DATADOG_PROXY_SITE,\n type DatadogRouteDecision,\n type LogRecord,\n type LogTransport,\n type TrackingConsent,\n buildDatadogProxyUrl,\n} from '@funkit/connect-core'\n\nimport { serializeLogBatch } from './serializeLogBatch'\n\n/**\n * React Native `LogTransport` that ships records to Datadog over **raw HTTP**\n * (`fetch`) \u2014 deliberately NOT the Datadog SDK. `@datadog/mobile-react-native`\n * pulls in native modules (autolinking, pods, no Expo Go); a plain `fetch` to\n * the logs intake needs none, so this works in Expo Go and any RN runtime.\n *\n * Nothing is sent until {@link setRoute} receives a route; records\n * wait in the queue until then.\n *\n * Records are batched and flushed on a timer (or when the batch fills). Each\n * batch retries with backoff, then waits for the next flush if the intake is\n * still unreachable; nothing a send does can throw back into a user flow.\n * Authenticates with the public Datadog **client token** via `dd-api-key`\n * (the same credential the browser SDK uses \u2014 safe to embed), so no server-side\n * API key is needed.\n */\nexport interface DatadogHttpLogTransportOptions {\n /** Datadog client token (`pub\u2026`). Safe to ship in client apps. */\n clientToken: string\n /** Service name attached to every log. */\n service?: string\n /** Datadog site, e.g. `datadoghq.com` (default), `datadoghq.eu`. */\n site?: string\n /** Initial environment tag; also settable later via {@link setEnv}. */\n env?: string\n /** Flush the batch at most this often (ms). Default 5000. */\n flushIntervalMs?: number\n /** Flush immediately once the batch reaches this size. Default 50. */\n maxBatchSize?: number\n}\n\ninterface DatadogLogEntry {\n ddsource: string\n service: string\n status: LogRecord['level']\n message: string\n ddtags?: string\n error?: { message: string; stack?: string; kind: string }\n [attribute: string]: unknown\n}\n\nconst DEFAULT_SERVICE = 'connect-rn'\nconst DEFAULT_SITE = DATADOG_PROXY_SITE\nconst INTAKE_PATH = '/api/v2/logs'\nconst DEFAULT_FLUSH_INTERVAL_MS = 5_000\nconst DEFAULT_MAX_BATCH_SIZE = 50\n// About three minutes of backoff: long enough to outlast a dropped connection\n// or a rate limit, short enough that an offline app stops holding records.\nconst SEND_RETRY = {\n delay: 2_000,\n factor: 2,\n maxDelay: 60_000,\n maxAttempts: 8,\n jitter: true,\n}\n// A hung request would otherwise hold the queue behind it. It is aborted, not\n// abandoned, so a late answer cannot deliver the batch a second time.\nconst SEND_TIMEOUT_MS = 15_000\n\n// Bounds memory through a long outage; the newest records are the ones that\n// explain whatever the user is looking at when the connection returns.\nconst MAX_QUEUED_RECORDS = 500\n\n/** Tells `retry` the intake may take the batch on another attempt. */\nclass RetryableSend extends Error {}\n\nexport class DatadogHttpLogTransport implements LogTransport {\n private readonly directIntakeUrl: string\n private readonly proxyIntakeUrl: string | null\n private readonly service: string\n private readonly flushIntervalMs: number\n private readonly maxBatchSize: number\n\n private env: string | undefined\n private consent: TrackingConsent = 'granted'\n // Bumped on every withdrawal, so a batch taken before one never sends.\n private consentGeneration = 0\n private queue: DatadogLogEntry[] = []\n private flushTimer: ReturnType<typeof setTimeout> | null = null\n private isSending = false\n private route: { decision: DatadogRouteDecision; intakeUrl: string } | null =\n null\n\n constructor(options: DatadogHttpLogTransportOptions) {\n const site = options.site ?? DEFAULT_SITE\n this.service = options.service ?? DEFAULT_SERVICE\n this.env = options.env\n this.flushIntervalMs = options.flushIntervalMs ?? DEFAULT_FLUSH_INTERVAL_MS\n this.maxBatchSize = options.maxBatchSize ?? DEFAULT_MAX_BATCH_SIZE\n // Browser/mobile logs intake; the client token authenticates via dd-api-key.\n const parameters =\n `dd-api-key=${encodeURIComponent(options.clientToken)}` +\n `&ddsource=react-native&dd-evp-origin=react-native`\n this.directIntakeUrl = `https://browser-intake-${site}${INTAKE_PATH}?${parameters}`\n // The proxy only forwards to the default site's intake.\n this.proxyIntakeUrl =\n site === DATADOG_PROXY_SITE ? buildDatadogProxyUrl({ parameters }) : null\n }\n\n /**\n * Sets where logs go and sends everything queued so far. A later call\n * switches the route for every send that starts after it.\n */\n setRoute(decision: DatadogRouteDecision): void {\n this.route =\n decision.route === 'proxy' && this.proxyIntakeUrl\n ? { decision, intakeUrl: this.proxyIntakeUrl }\n : {\n decision: { ...decision, route: 'direct' },\n intakeUrl: this.directIntakeUrl,\n }\n this.flush()\n }\n\n setEnv(environment: string): void {\n this.env = environment\n }\n\n setTrackingConsent(consent: TrackingConsent): void {\n this.consent = consent\n if (consent !== 'granted') {\n // Drop anything buffered when consent is withdrawn.\n this.queue = []\n this.consentGeneration++\n this.clearTimer()\n }\n }\n\n log({ level, title, context, error }: LogRecord): void {\n if (this.consent !== 'granted') {\n return\n }\n\n const entry: DatadogLogEntry = {\n // Caller context first so the mandatory Datadog fields below always win \u2014\n // a future LogContext attribute named e.g. `message`/`status` can't\n // silently corrupt the record.\n ...context,\n ddsource: 'react-native',\n service: this.service,\n status: level,\n message: title,\n // Stamped at emit time: Datadog otherwise dates a record by its arrival,\n // which lags by the batch interval, or by minutes after a background.\n date: Date.now(),\n ...(this.env ? { ddtags: `env:${this.env}` } : {}),\n ...(error\n ? {\n error: {\n message: error.message,\n stack: error.stack,\n kind: error.name,\n },\n }\n : {}),\n }\n\n this.queue.push(entry)\n if (this.queue.length > MAX_QUEUED_RECORDS) {\n this.queue.shift()\n }\n\n if (this.queue.length >= this.maxBatchSize) {\n this.flush()\n } else {\n this.scheduleFlush()\n }\n }\n\n /**\n * Send the oldest batch, then the next once it lands. One send at a time:\n * a failed batch goes back to the front of the queue, so the cap always\n * drops the oldest records.\n */\n flush(): void {\n this.clearTimer()\n if (!this.route || this.isSending || this.queue.length === 0) {\n return\n }\n if (typeof fetch !== 'function') {\n // No fetch (e.g. SSR import) \u2014 drop rather than throw.\n this.queue = []\n return\n }\n\n this.isSending = true\n // At most a batch per request: a backlog from an outage sent whole can\n // pass the intake's payload limit and be refused.\n this.sendBatch(this.queue.splice(0, this.maxBatchSize)).then((sent) => {\n this.isSending = false\n if (sent) {\n this.flush()\n } else if (this.queue.length > 0) {\n this.scheduleFlush()\n }\n })\n }\n\n /**\n * Send every queued record now, one request per batch, without waiting for\n * earlier requests. For the moment before iOS suspends the app, when a\n * one-at-a-time flush would leave the later batches unsent.\n */\n flushAll(): void {\n this.clearTimer()\n if (!this.route || typeof fetch !== 'function') {\n return\n }\n while (this.queue.length > 0) {\n void this.sendBatch(this.queue.splice(0, this.maxBatchSize)).then(\n (sent) => {\n if (!sent && this.queue.length > 0) {\n this.scheduleFlush()\n }\n },\n )\n }\n }\n\n /** Resolves whether the batch was sent; a failed batch rejoins the queue. */\n private sendBatch(batch: DatadogLogEntry[]): Promise<boolean> {\n const route = this.route\n if (!route) {\n this.queue = [...batch, ...this.queue].slice(-MAX_QUEUED_RECORDS)\n return Promise.resolve(false)\n }\n const generation = this.consentGeneration\n const isWithdrawn = () => this.consentGeneration !== generation\n return retry(\n async () => {\n const controller = new AbortController()\n let timeout: ReturnType<typeof setTimeout> | undefined\n // Raced, not only aborted: a host fetch may ignore the signal.\n const timedOut = new Promise<never>((_, reject) => {\n timeout = setTimeout(() => {\n controller.abort()\n reject(new RetryableSend('request timed out'))\n }, SEND_TIMEOUT_MS)\n })\n try {\n const response = await Promise.race([\n fetch(route.intakeUrl, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: serializeLogBatch(\n batch.map((entry) => ({\n ...entry,\n datadogRoute: route.decision,\n })),\n ),\n signal: controller.signal,\n }),\n timedOut,\n ])\n if (!response.ok && isRetryableStatus(response.status)) {\n throw new RetryableSend(`intake answered ${response.status}`)\n }\n } finally {\n clearTimeout(timeout)\n }\n },\n {\n ...SEND_RETRY,\n // Checks the generation, not the current value: consent may be\n // withdrawn and granted again within one backoff.\n beforeAttempt: (context) => {\n if (isWithdrawn()) {\n context.abort()\n }\n },\n },\n ).then(\n () => true,\n () => {\n if (!isWithdrawn()) {\n this.queue = [...batch, ...this.queue].slice(-MAX_QUEUED_RECORDS)\n }\n return false\n },\n )\n }\n\n private scheduleFlush(): void {\n if (this.flushTimer != null) {\n return\n }\n this.flushTimer = setTimeout(() => {\n this.flushTimer = null\n this.flush()\n }, this.flushIntervalMs)\n }\n\n private clearTimer(): void {\n if (this.flushTimer != null) {\n clearTimeout(this.flushTimer)\n this.flushTimer = null\n }\n }\n}\n\n/**\n * Other 4xx answers reject the payload itself, so sending it again cannot\n * succeed.\n */\nfunction isRetryableStatus(status: number): boolean {\n return status === 408 || status === 429 || status >= 500\n}\n", "const UNSERIALIZABLE_DATA = '[Unserializable]'\n\n/**\n * Serialize log records to a JSON body. Always succeeds.\n *\n * Web gets this from `@datadog/browser-logs`; the raw-`fetch` RN transport has\n * no such layer and serializes inside the caller's `log()`, so a throw would\n * land in a user flow.\n */\nexport function serializeLogBatch(batch: readonly object[]): string {\n try {\n return JSON.stringify(batch, createSafeJsonReplacer())\n } catch {\n return `[${batch.map(serializeRecord).join(',')}]`\n }\n}\n\n/** Attribute by attribute, so one bad value can't drop unrelated records. */\nfunction serializeRecord(record: object): string {\n const attributes = Object.entries(record).flatMap(([key, value]) => {\n const serialized = serializeValue(value)\n // Omit undefined, as JSON.stringify does for object properties.\n return serialized === undefined\n ? []\n : [`${JSON.stringify(key)}:${serialized}`]\n })\n return `{${attributes.join(',')}}`\n}\n\nfunction serializeValue(value: unknown): string | undefined {\n try {\n return JSON.stringify(value, createSafeJsonReplacer())\n } catch {\n return JSON.stringify(UNSERIALIZABLE_DATA)\n }\n}\n\n/**\n * Resolves what `JSON.stringify` can't, inside the traversal it already makes.\n * `toJSON` runs before the replacer, so a throwing one escapes to the callers\n * above. Create one per `stringify`.\n */\nfunction createSafeJsonReplacer() {\n // `ancestors` holds what the walk descends into (and sees as `this`);\n // `sources` holds what each came from, so a cycle back to a replaced Error\n // is still caught.\n const ancestors: object[] = []\n const sources: object[] = []\n\n return function (this: unknown, _key: string, value: unknown): unknown {\n if (typeof value === 'bigint') {\n return value.toString()\n }\n if (typeof value === 'function') {\n return `[Function] ${value.name || 'anonymous'}`\n }\n if (typeof value === 'symbol') {\n return `[Symbol] ${value.description ?? ''}`\n }\n if (value === null || typeof value !== 'object') {\n return value\n }\n\n // React values reference the fiber that rendered them, or themselves \u2014\n // internals either way, so mark the family instead of walking it.\n if ('$$typeof' in value) {\n return '[React]'\n }\n\n // `this` is the object `value` came from; unwinding to it leaves only true\n // ancestors, so a repeated sibling reference isn't read as a cycle.\n while (ancestors.length > 0 && ancestors[ancestors.length - 1] !== this) {\n ancestors.pop()\n sources.pop()\n }\n if (sources.includes(value)) {\n return '[Circular]'\n }\n const resolved = value instanceof Error ? errorFields(value) : value\n ancestors.push(resolved)\n sources.push(value)\n return resolved\n }\n}\n\n/**\n * An Error's `name`, `message` and `cause` are not enumerable, so stringify\n * reduces it to its custom fields \u2014 `{}` for a plain one like React Native's\n * `TypeError: Network request failed`. The stack is left out: it is minified.\n */\nfunction errorFields(error: Error): Record<string, unknown> {\n // `cause` is ES2022; this package targets ES2020 typings.\n const { cause } = error as { cause?: unknown }\n return {\n ...error,\n name: error.name,\n message: error.message,\n ...(cause === undefined ? {} : { cause }),\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW,2BAA2B;AAC/C,SAAS,gBAAgB;;;ACDzB,SAAS,aAAa;AACtB;AAAA,EACE;AAAA,EAKA;AAAA,OACK;;;ACRP,IAAM,sBAAsB;AASrB,SAAS,kBAAkB,OAAkC;AAClE,MAAI;AACF,WAAO,KAAK,UAAU,OAAO,uBAAuB,CAAC;AAAA,EACvD,QAAQ;AACN,WAAO,IAAI,MAAM,IAAI,eAAe,EAAE,KAAK,GAAG,CAAC;AAAA,EACjD;AACF;AAGA,SAAS,gBAAgB,QAAwB;AAC/C,QAAM,aAAa,OAAO,QAAQ,MAAM,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM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