@afosto/checkout-ui 0.0.1-alpha.1 → 0.0.1-alpha.11
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/dist/Checkout/Checkout.d.ts.map +1 -1
- package/dist/Checkout/index.d.ts.map +1 -1
- package/dist/CheckoutAccountSelection/CheckoutAccountSelection.d.ts.map +1 -1
- package/dist/CheckoutAccountSelection/index.d.ts.map +1 -1
- package/dist/CheckoutAccountSelectionCard/CheckoutAccountSelectionCard.d.ts.map +1 -1
- package/dist/CheckoutAccountSelectionCard/index.d.ts.map +1 -1
- package/dist/CheckoutAddressBlock/CheckoutAddressBlock.d.ts +1 -1
- package/dist/CheckoutAddressBlock/CheckoutAddressBlock.d.ts.map +1 -1
- package/dist/CheckoutAddressBlock/index.d.ts.map +1 -1
- package/dist/CheckoutAddressCard/CheckoutAddressCard.d.ts +2 -2
- package/dist/CheckoutAddressCard/CheckoutAddressCard.d.ts.map +1 -1
- package/dist/CheckoutAddressCard/index.d.ts.map +1 -1
- package/dist/CheckoutAddressCardSkeleton/CheckoutAddressCardSkeleton.d.ts +3 -1
- package/dist/CheckoutAddressCardSkeleton/CheckoutAddressCardSkeleton.d.ts.map +1 -1
- package/dist/CheckoutAddressCardSkeleton/CheckoutAddressCardSkeleton.js +14 -11
- package/dist/CheckoutAddressCardSkeleton/index.d.ts +1 -0
- package/dist/CheckoutAddressCardSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutAddressFields/CheckoutAddressFields.d.ts +2 -2
- package/dist/CheckoutAddressFields/CheckoutAddressFields.d.ts.map +1 -1
- package/dist/CheckoutAddressFields/CheckoutAddressFields.js +8 -8
- package/dist/CheckoutAddressFields/index.d.ts.map +1 -1
- package/dist/CheckoutAddressSection/CheckoutAddressSection.d.ts.map +1 -1
- package/dist/CheckoutAddressSection/index.d.ts.map +1 -1
- package/dist/CheckoutAgreementOption/CheckoutAgreementOption.d.ts.map +1 -1
- package/dist/CheckoutAgreementOption/index.d.ts.map +1 -1
- package/dist/CheckoutAgreementOptionCondition/CheckoutAgreementOptionCondition.d.ts.map +1 -1
- package/dist/CheckoutAgreementOptionCondition/index.d.ts.map +1 -1
- package/dist/CheckoutAgreementOptionsField/CheckoutAgreementOptionsField.d.ts.map +1 -1
- package/dist/CheckoutAgreementOptionsField/index.d.ts.map +1 -1
- package/dist/CheckoutAgreementOptionsSection/CheckoutAgreementOptionsSection.d.ts.map +1 -1
- package/dist/CheckoutAgreementOptionsSection/index.d.ts.map +1 -1
- package/dist/CheckoutAgreementSummaryCard/CheckoutAgreementSummaryCard.d.ts +2 -2
- package/dist/CheckoutAgreementSummaryCard/CheckoutAgreementSummaryCard.d.ts.map +1 -1
- package/dist/CheckoutAgreementSummaryCard/index.d.ts.map +1 -1
- package/dist/CheckoutAgreementsTimeline/CheckoutAgreementsTimeline.d.ts.map +1 -1
- package/dist/CheckoutAgreementsTimeline/index.d.ts.map +1 -1
- package/dist/CheckoutBillingAddressSection/CheckoutBillingAddressSection.d.ts.map +1 -1
- package/dist/CheckoutBillingAddressSection/index.d.ts.map +1 -1
- package/dist/CheckoutBusinessDetailsCard/CheckoutBusinessDetailsCard.d.ts.map +1 -1
- package/dist/CheckoutBusinessDetailsCard/index.d.ts.map +1 -1
- package/dist/CheckoutBusinessDetailsCardSkeleton/CheckoutBusinessDetailsCardSkeleton.d.ts +3 -1
- package/dist/CheckoutBusinessDetailsCardSkeleton/CheckoutBusinessDetailsCardSkeleton.d.ts.map +1 -1
- package/dist/CheckoutBusinessDetailsCardSkeleton/CheckoutBusinessDetailsCardSkeleton.js +6 -3
- package/dist/CheckoutBusinessDetailsCardSkeleton/index.d.ts +1 -0
- package/dist/CheckoutBusinessDetailsCardSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutBusinessInformationSection/CheckoutBusinessInformationSection.d.ts.map +1 -1
- package/dist/CheckoutBusinessInformationSection/index.d.ts.map +1 -1
- package/dist/CheckoutCardRadioField/CheckoutCardRadioField.d.ts.map +1 -1
- package/dist/CheckoutCardRadioField/index.d.ts.map +1 -1
- package/dist/CheckoutCartProvider/CheckoutCartProvider.d.ts +3 -2
- package/dist/CheckoutCartProvider/CheckoutCartProvider.d.ts.map +1 -1
- package/dist/CheckoutCartProvider/CheckoutCartProvider.js +52 -44
- package/dist/CheckoutCartProvider/index.d.ts.map +1 -1
- package/dist/CheckoutCommentField/CheckoutCommentField.d.ts.map +1 -1
- package/dist/CheckoutCommentField/index.d.ts.map +1 -1
- package/dist/CheckoutContactDetailsCard/CheckoutContactDetailsCard.d.ts.map +1 -1
- package/dist/CheckoutContactDetailsCard/index.d.ts.map +1 -1
- package/dist/CheckoutContactDetailsSkeleton/CheckoutContactDetailsSkeleton.d.ts +3 -1
- package/dist/CheckoutContactDetailsSkeleton/CheckoutContactDetailsSkeleton.d.ts.map +1 -1
- package/dist/CheckoutContactDetailsSkeleton/CheckoutContactDetailsSkeleton.js +13 -10
- package/dist/CheckoutContactDetailsSkeleton/index.d.ts +1 -0
- package/dist/CheckoutContactDetailsSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutContactInformationSection/CheckoutContactInformationSection.d.ts +1 -0
- package/dist/CheckoutContactInformationSection/CheckoutContactInformationSection.d.ts.map +1 -1
- package/dist/CheckoutContactInformationSection/CheckoutContactInformationSection.js +50 -40
- package/dist/CheckoutContactInformationSection/index.d.ts.map +1 -1
- package/dist/CheckoutContainer/CheckoutContainer.d.ts.map +1 -1
- package/dist/CheckoutContainer/CheckoutContainer.styles.d.ts +1 -1
- package/dist/CheckoutContainer/CheckoutContainer.styles.d.ts.map +1 -1
- package/dist/CheckoutContainer/index.d.ts.map +1 -1
- package/dist/CheckoutCurrency/CheckoutCurrency.d.ts.map +1 -1
- package/dist/CheckoutCurrency/index.d.ts.map +1 -1
- package/dist/CheckoutDownPaymentAgreementsSummary/CheckoutDownPaymentAgreementsSummary.d.ts.map +1 -1
- package/dist/CheckoutDownPaymentAgreementsSummary/index.d.ts.map +1 -1
- package/dist/CheckoutEmptyMessageAlert/CheckoutEmptyMessageAlert.d.ts.map +1 -1
- package/dist/CheckoutEmptyMessageAlert/index.d.ts.map +1 -1
- package/dist/CheckoutErrorMessageAlert/CheckoutErrorMessageAlert.d.ts.map +1 -1
- package/dist/CheckoutErrorMessageAlert/index.d.ts.map +1 -1
- package/dist/CheckoutExpressButton/CheckoutExpressButton.d.ts.map +1 -1
- package/dist/CheckoutExpressButton/index.d.ts.map +1 -1
- package/dist/CheckoutExpressCheckoutSection/CheckoutExpressCheckoutSection.d.ts.map +1 -1
- package/dist/CheckoutExpressCheckoutSection/index.d.ts.map +1 -1
- package/dist/CheckoutForgotPassword/CheckoutForgotPassword.d.ts.map +1 -1
- package/dist/CheckoutForgotPassword/index.d.ts.map +1 -1
- package/dist/CheckoutForgotPasswordForm/CheckoutForgotPasswordForm.d.ts.map +1 -1
- package/dist/CheckoutForgotPasswordForm/index.d.ts +1 -1
- package/dist/CheckoutForgotPasswordForm/index.d.ts.map +1 -1
- package/dist/CheckoutForgotPasswordForm/validationSchema.d.ts.map +1 -1
- package/dist/CheckoutForm/CheckoutForm.d.ts +6 -6
- package/dist/CheckoutForm/CheckoutForm.d.ts.map +1 -1
- package/dist/CheckoutForm/CheckoutForm.js +142 -120
- package/dist/CheckoutForm/index.d.ts.map +1 -1
- package/dist/CheckoutFormSkeleton/CheckoutFormSkeleton.d.ts.map +1 -1
- package/dist/CheckoutFormSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutInformationStep/CheckoutInformationStep.d.ts.map +1 -1
- package/dist/CheckoutInformationStep/index.d.ts.map +1 -1
- package/dist/CheckoutIssuersField/CheckoutIssuersField.d.ts.map +1 -1
- package/dist/CheckoutIssuersField/index.d.ts.map +1 -1
- package/dist/CheckoutItem/CheckoutItem.d.ts.map +1 -1
- package/dist/CheckoutItem/index.d.ts.map +1 -1
- package/dist/CheckoutLayout/CheckoutLayout.d.ts.map +1 -1
- package/dist/CheckoutLayout/index.d.ts.map +1 -1
- package/dist/CheckoutLogo/CheckoutLogo.d.ts.map +1 -1
- package/dist/CheckoutLogo/index.d.ts.map +1 -1
- package/dist/CheckoutMethodRadioField/CheckoutMethodRadioField.d.ts.map +1 -1
- package/dist/CheckoutMethodRadioField/index.d.ts.map +1 -1
- package/dist/CheckoutMethodRadioSkeleton/CheckoutMethodRadioSkeleton.d.ts.map +1 -1
- package/dist/CheckoutMethodRadioSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutMethodSummaryCard/CheckoutMethodSummaryCard.d.ts.map +1 -1
- package/dist/CheckoutMethodSummaryCard/index.d.ts.map +1 -1
- package/dist/CheckoutMethodSummaryCardSkeleton/CheckoutMethodSummaryCardSkeleton.d.ts.map +1 -1
- package/dist/CheckoutMethodSummaryCardSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutMobileStepper/CheckoutMobileStepper.d.ts.map +1 -1
- package/dist/CheckoutMobileStepper/index.d.ts.map +1 -1
- package/dist/CheckoutMobileStepperSkeleton/CheckoutMobileStepperSkeleton.d.ts.map +1 -1
- package/dist/CheckoutMobileStepperSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutNotFoundFeedback/CheckoutNotFoundFeedback.d.ts.map +1 -1
- package/dist/CheckoutNotFoundFeedback/index.d.ts.map +1 -1
- package/dist/CheckoutOrderProvider/CheckoutOrderProvider.d.ts +3 -2
- package/dist/CheckoutOrderProvider/CheckoutOrderProvider.d.ts.map +1 -1
- package/dist/CheckoutOrderProvider/CheckoutOrderProvider.js +48 -40
- package/dist/CheckoutOrderProvider/index.d.ts.map +1 -1
- package/dist/CheckoutPayPalExpressButton/CheckoutPayPalExpressButton.d.ts.map +1 -1
- package/dist/CheckoutPayPalExpressButton/index.d.ts.map +1 -1
- package/dist/CheckoutPaymentMethodOption/CheckoutPaymentMethodOption.d.ts.map +1 -1
- package/dist/CheckoutPaymentMethodOption/index.d.ts.map +1 -1
- package/dist/CheckoutPaymentMethodSection/CheckoutPaymentMethodSection.d.ts.map +1 -1
- package/dist/CheckoutPaymentMethodSection/index.d.ts.map +1 -1
- package/dist/CheckoutPaymentMethodsField/CheckoutPaymentMethodsField.d.ts.map +1 -1
- package/dist/CheckoutPaymentMethodsField/index.d.ts.map +1 -1
- package/dist/CheckoutPaymentStep/CheckoutPaymentStep.d.ts.map +1 -1
- package/dist/CheckoutPaymentStep/index.d.ts.map +1 -1
- package/dist/CheckoutPhoneNumberCard/CheckoutPhoneNumberCard.d.ts.map +1 -1
- package/dist/CheckoutPhoneNumberCard/index.d.ts.map +1 -1
- package/dist/CheckoutPickupPointOption/CheckoutPickupPointOption.d.ts.map +1 -1
- package/dist/CheckoutPickupPointOption/index.d.ts.map +1 -1
- package/dist/CheckoutPickupPointsField/CheckoutPickupPointsField.d.ts.map +1 -1
- package/dist/CheckoutPickupPointsField/index.d.ts.map +1 -1
- package/dist/CheckoutPoweredBy/CheckoutPoweredBy.d.ts.map +1 -1
- package/dist/CheckoutPoweredBy/index.d.ts.map +1 -1
- package/dist/CheckoutPricingLabel/CheckoutPricingLabel.d.ts.map +1 -1
- package/dist/CheckoutPricingLabel/index.d.ts.map +1 -1
- package/dist/CheckoutProvider/CheckoutProvider.d.ts +3 -1
- package/dist/CheckoutProvider/CheckoutProvider.d.ts.map +1 -1
- package/dist/CheckoutProvider/CheckoutProvider.js +76 -69
- package/dist/CheckoutProvider/components/CheckoutInnerProviders/CheckoutInnerProviders.d.ts.map +1 -1
- package/dist/CheckoutProvider/components/CheckoutQueryClientProvider/CheckoutQueryClientProvider.d.ts.map +1 -1
- package/dist/CheckoutProvider/components/CheckoutQueryClientProvider/index.d.ts.map +1 -1
- package/dist/CheckoutProvider/components/CheckoutThemeProvider/CheckoutThemeProvider.d.ts.map +1 -1
- package/dist/CheckoutProvider/components/CheckoutThemeProvider/CheckoutThemeProvider.js +35 -36
- package/dist/CheckoutProvider/components/CheckoutThemeProvider/index.d.ts.map +1 -1
- package/dist/CheckoutProvider/index.d.ts.map +1 -1
- package/dist/CheckoutReviewCommentSection/CheckoutReviewCommentSection.d.ts.map +1 -1
- package/dist/CheckoutReviewCommentSection/index.d.ts.map +1 -1
- package/dist/CheckoutReviewItemsSection/CheckoutReviewItemsSection.d.ts.map +1 -1
- package/dist/CheckoutReviewItemsSection/index.d.ts.map +1 -1
- package/dist/CheckoutReviewOrderSection/CheckoutReviewOrderSection.d.ts.map +1 -1
- package/dist/CheckoutReviewOrderSection/index.d.ts.map +1 -1
- package/dist/CheckoutReviewPaymentSection/CheckoutReviewPaymentSection.d.ts.map +1 -1
- package/dist/CheckoutReviewPaymentSection/index.d.ts.map +1 -1
- package/dist/CheckoutReviewShippingSection/CheckoutReviewShippingSection.d.ts.map +1 -1
- package/dist/CheckoutReviewShippingSection/index.d.ts.map +1 -1
- package/dist/CheckoutReviewStep/CheckoutReviewStep.d.ts.map +1 -1
- package/dist/CheckoutReviewStep/index.d.ts.map +1 -1
- package/dist/CheckoutSection/CheckoutSection.d.ts.map +1 -1
- package/dist/CheckoutSection/index.d.ts.map +1 -1
- package/dist/CheckoutSectionHeader/CheckoutSectionHeader.d.ts.map +1 -1
- package/dist/CheckoutSectionHeader/index.d.ts.map +1 -1
- package/dist/CheckoutShippingAddressSection/CheckoutShippingAddressSection.d.ts.map +1 -1
- package/dist/CheckoutShippingAddressSection/index.d.ts.map +1 -1
- package/dist/CheckoutShippingMethodOption/CheckoutShippingMethodOption.d.ts.map +1 -1
- package/dist/CheckoutShippingMethodOption/index.d.ts.map +1 -1
- package/dist/CheckoutShippingMethodSection/CheckoutShippingMethodSection.d.ts.map +1 -1
- package/dist/CheckoutShippingMethodSection/index.d.ts.map +1 -1
- package/dist/CheckoutShippingMethodsField/CheckoutShippingMethodsField.d.ts.map +1 -1
- package/dist/CheckoutShippingMethodsField/index.d.ts.map +1 -1
- package/dist/CheckoutShippingStep/CheckoutShippingStep.d.ts.map +1 -1
- package/dist/CheckoutShippingStep/index.d.ts.map +1 -1
- package/dist/CheckoutSignIn/CheckoutSignIn.d.ts.map +1 -1
- package/dist/CheckoutSignIn/index.d.ts.map +1 -1
- package/dist/CheckoutSignInActions/CheckoutSignInActions.d.ts.map +1 -1
- package/dist/CheckoutSignInActions/index.d.ts.map +1 -1
- package/dist/CheckoutSignInForm/CheckoutSignInForm.d.ts.map +1 -1
- package/dist/CheckoutSignInForm/index.d.ts +1 -1
- package/dist/CheckoutSignInForm/index.d.ts.map +1 -1
- package/dist/CheckoutSignInForm/validationSchema.d.ts.map +1 -1
- package/dist/CheckoutSignedInAsMessage/CheckoutSignedInAsMessage.d.ts.map +1 -1
- package/dist/CheckoutSignedInAsMessage/index.d.ts.map +1 -1
- package/dist/CheckoutStateProvider/CheckoutStateProvider.d.ts.map +1 -1
- package/dist/CheckoutStateProvider/CheckoutStateProvider.js +2 -2
- package/dist/CheckoutStateProvider/index.d.ts.map +1 -1
- package/dist/CheckoutStepper/CheckoutStepper.d.ts.map +1 -1
- package/dist/CheckoutStepper/index.d.ts.map +1 -1
- package/dist/CheckoutStepperSkeleton/CheckoutStepperSkeleton.d.ts.map +1 -1
- package/dist/CheckoutStepperSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutSubmitButton/CheckoutSubmitButton.d.ts.map +1 -1
- package/dist/CheckoutSubmitButton/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/CheckoutSummary.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryAdjustments/CheckoutSummaryAdjustments.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryAdjustments/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryAgreements/CheckoutSummaryAgreements.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryAgreements/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryCoupons/CheckoutSummaryCoupons.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryCoupons/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryFees/CheckoutSummaryFees.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryFees/CheckoutSummaryFees.js +24 -24
- package/dist/CheckoutSummary/components/CheckoutSummaryFees/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryGroup/CheckoutSummaryGroup.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryGroup/CheckoutSummaryGroup.js +3 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryGroup/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryItems/CheckoutSummaryItems.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryItems/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryPaymentFees/CheckoutSummaryPaymentFees.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryPaymentFees/CheckoutSummaryPaymentFees.js +28 -20
- package/dist/CheckoutSummary/components/CheckoutSummaryPaymentFees/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryRow/CheckoutSummaryRow.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryRow/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryShippingFees/CheckoutSummaryShippingFees.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryShippingFees/CheckoutSummaryShippingFees.js +34 -24
- package/dist/CheckoutSummary/components/CheckoutSummaryShippingFees/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummarySubtotal/CheckoutSummarySubtotal.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummarySubtotal/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryTitle/CheckoutSummaryTitle.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryTitle/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryTotal/CheckoutSummaryTotal.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryTotal/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryTotalBreakdown/CheckoutSummaryTotalBreakdown.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryTotalBreakdown/CheckoutSummaryTotalBreakdown.js +54 -53
- package/dist/CheckoutSummary/components/CheckoutSummaryTotalBreakdown/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryTotalExcludingVat/CheckoutSummaryTotalExcludingVat.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryVat/CheckoutSummaryVat.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryVat/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/index.d.ts.map +1 -1
- package/dist/CheckoutSummaryDrawer/CheckoutSummaryDrawer.d.ts.map +1 -1
- package/dist/CheckoutSummaryDrawer/CheckoutSummaryDrawer.styles.d.ts.map +1 -1
- package/dist/CheckoutSummaryDrawer/index.d.ts.map +1 -1
- package/dist/CheckoutSummarySkeleton/CheckoutSummarySkeleton.d.ts.map +1 -1
- package/dist/CheckoutSummarySkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutSummaryToggleButton/CheckoutSummaryToggleButton.d.ts.map +1 -1
- package/dist/CheckoutSummaryToggleButton/index.d.ts.map +1 -1
- package/dist/CheckoutTerminalsField/CheckoutTerminalsField.d.ts.map +1 -1
- package/dist/CheckoutTerminalsField/index.d.ts.map +1 -1
- package/dist/CheckoutTermsAndPrivacyMessage/CheckoutTermsAndPrivacyMessage.d.ts.map +1 -1
- package/dist/CheckoutTermsAndPrivacyMessage/index.d.ts.map +1 -1
- package/dist/CheckoutTopBar/CheckoutTopBar.d.ts.map +1 -1
- package/dist/CheckoutTopBar/index.d.ts.map +1 -1
- package/dist/CheckoutTypeSection/CheckoutTypeSection.d.ts.map +1 -1
- package/dist/CheckoutTypeSection/index.d.ts.map +1 -1
- package/dist/constants/addressAutocomplete.d.ts.map +1 -1
- package/dist/constants/addressDefaultValues.d.ts.map +1 -1
- package/dist/constants/addressFields.d.ts.map +1 -1
- package/dist/constants/addressValidationSchema.d.ts.map +1 -1
- package/dist/constants/agreementTypeIconMapping.d.ts.map +1 -1
- package/dist/constants/analyticsEvents.d.ts +65 -21
- package/dist/constants/analyticsEvents.d.ts.map +1 -1
- package/dist/constants/analyticsEvents.js +153 -3
- package/dist/constants/carrierIconMapping.d.ts.map +1 -1
- package/dist/constants/expressPaymentMethods.d.ts.map +1 -1
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/issuerIconMapping.d.ts.map +1 -1
- package/dist/constants/paymentMethodIconMapping.d.ts.map +1 -1
- package/dist/constants/validationTranslations.d.ts.map +1 -1
- package/dist/fragments/CoreAddressFields.d.ts.map +1 -1
- package/dist/fragments/CoreAddressOptionsFields.d.ts.map +1 -1
- package/dist/fragments/CoreCartInitialCheckoutFields.d.ts.map +1 -1
- package/dist/fragments/CoreCartProjectionFields.d.ts +1 -1
- package/dist/fragments/CoreCartProjectionFields.d.ts.map +1 -1
- package/dist/fragments/CoreOrderInitialCheckoutFields.d.ts.map +1 -1
- package/dist/fragments/CoreOrderProjectionFields.d.ts +1 -1
- package/dist/fragments/CoreOrderProjectionFields.d.ts.map +1 -1
- package/dist/fragments/CorePhoneNumberFields.d.ts.map +1 -1
- package/dist/fragments/index.d.ts.map +1 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useCheckoutAccountSelection.d.ts.map +1 -1
- package/dist/hooks/useCheckoutAddressFieldFormats.d.ts.map +1 -1
- package/dist/hooks/useCheckoutAddressOptions.d.ts.map +1 -1
- package/dist/hooks/useCheckoutAnalytics.d.ts +1 -0
- package/dist/hooks/useCheckoutAnalytics.d.ts.map +1 -1
- package/dist/hooks/useCheckoutAnalytics.js +25 -19
- package/dist/hooks/useCheckoutAuth.d.ts +2 -0
- package/dist/hooks/useCheckoutAuth.d.ts.map +1 -1
- package/dist/hooks/useCheckoutAuth.js +40 -39
- package/dist/hooks/useCheckoutAutocompleteAddress.d.ts.map +1 -1
- package/dist/hooks/useCheckoutCart.d.ts +66 -37
- package/dist/hooks/useCheckoutCart.d.ts.map +1 -1
- package/dist/hooks/useCheckoutCart.js +131 -122
- package/dist/hooks/useCheckoutForm.d.ts +20 -3
- package/dist/hooks/useCheckoutForm.d.ts.map +1 -1
- package/dist/hooks/useCheckoutForm.js +55 -44
- package/dist/hooks/useCheckoutOrder.d.ts +67 -38
- package/dist/hooks/useCheckoutOrder.d.ts.map +1 -1
- package/dist/hooks/useCheckoutOrder.js +85 -72
- package/dist/hooks/useCheckoutPaymentMethods.d.ts.map +1 -1
- package/dist/hooks/useCheckoutPaymentStep.d.ts.map +1 -1
- package/dist/hooks/useCheckoutReviewStep.d.ts.map +1 -1
- package/dist/hooks/useCheckoutShippingMethods.d.ts.map +1 -1
- package/dist/hooks/useCheckoutState.d.ts.map +1 -1
- package/dist/hooks/useCheckoutSummary.d.ts.map +1 -1
- package/dist/icons/AngleDownRegular.d.ts.map +1 -1
- package/dist/icons/AngleRightLight.d.ts.map +1 -1
- package/dist/icons/AngleRightRegular.d.ts.map +1 -1
- package/dist/icons/CheckSolid.d.ts.map +1 -1
- package/dist/icons/LongArrowLeftSolid.d.ts.map +1 -1
- package/dist/icons/MinusSolid.d.ts.map +1 -1
- package/dist/icons/PayPalExpress.d.ts.map +1 -1
- package/dist/icons/PlusSolid.d.ts.map +1 -1
- package/dist/icons/SearchRegular.d.ts.map +1 -1
- package/dist/icons/ShoppingCartLight.d.ts.map +1 -1
- package/dist/icons/TimesLight.d.ts.map +1 -1
- package/dist/icons/TurnDownRightSolid.d.ts.map +1 -1
- package/dist/icons/carriers/Afosto.d.ts.map +1 -1
- package/dist/icons/carriers/Bpost.d.ts.map +1 -1
- package/dist/icons/carriers/Budbee.d.ts.map +1 -1
- package/dist/icons/carriers/Cycloon.d.ts.map +1 -1
- package/dist/icons/carriers/DeliveryMatch.d.ts.map +1 -1
- package/dist/icons/carriers/Dgo.d.ts.map +1 -1
- package/dist/icons/carriers/Dhl.d.ts.map +1 -1
- package/dist/icons/carriers/Dpd.d.ts.map +1 -1
- package/dist/icons/carriers/Fedex.d.ts.map +1 -1
- package/dist/icons/carriers/Gls.d.ts.map +1 -1
- package/dist/icons/carriers/MondialRelay.d.ts.map +1 -1
- package/dist/icons/carriers/Postnl.d.ts.map +1 -1
- package/dist/icons/carriers/Sendcloud.d.ts.map +1 -1
- package/dist/icons/carriers/Ups.d.ts.map +1 -1
- package/dist/icons/carriers/index.d.ts.map +1 -1
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/issuers/ABNAmro.d.ts.map +1 -1
- package/dist/icons/issuers/ASNBank.d.ts.map +1 -1
- package/dist/icons/issuers/Bunq.d.ts.map +1 -1
- package/dist/icons/issuers/Handelsbanken.d.ts.map +1 -1
- package/dist/icons/issuers/ING.d.ts.map +1 -1
- package/dist/icons/issuers/Knab.d.ts.map +1 -1
- package/dist/icons/issuers/Rabobank.d.ts.map +1 -1
- package/dist/icons/issuers/RegioBank.d.ts.map +1 -1
- package/dist/icons/issuers/Revolut.d.ts.map +1 -1
- package/dist/icons/issuers/SNSBank.d.ts.map +1 -1
- package/dist/icons/issuers/Triodos.d.ts.map +1 -1
- package/dist/icons/issuers/VanLanschot.d.ts.map +1 -1
- package/dist/icons/issuers/index.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Afterpay.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Alipay.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Amex.d.ts.map +1 -1
- package/dist/icons/paymentMethods/ApplePay.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Bacs.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Bancontact.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Bank.d.ts.map +1 -1
- package/dist/icons/paymentMethods/BankTransfer.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Billink.d.ts.map +1 -1
- package/dist/icons/paymentMethods/CarteBleue.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Cash.d.ts.map +1 -1
- package/dist/icons/paymentMethods/CashOnDelivery.d.ts.map +1 -1
- package/dist/icons/paymentMethods/CreditCard.d.ts.map +1 -1
- package/dist/icons/paymentMethods/DinersClub.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Discover.d.ts.map +1 -1
- package/dist/icons/paymentMethods/DownPayment.d.ts.map +1 -1
- package/dist/icons/paymentMethods/EPSUberweisung.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Fashioncheque.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Giropay.d.ts.map +1 -1
- package/dist/icons/paymentMethods/GivaCard.d.ts.map +1 -1
- package/dist/icons/paymentMethods/GooglePay.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Ideal.d.ts.map +1 -1
- package/dist/icons/paymentMethods/In3.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Interac.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Jcb.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Klarna.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Maestro.d.ts.map +1 -1
- package/dist/icons/paymentMethods/ManualCard.d.ts.map +1 -1
- package/dist/icons/paymentMethods/ManualGiftCard.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Mastercard.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Multibanco.d.ts.map +1 -1
- package/dist/icons/paymentMethods/OnAccount.d.ts.map +1 -1
- package/dist/icons/paymentMethods/PayLater.d.ts.map +1 -1
- package/dist/icons/paymentMethods/PayPal.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Payconiq.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Paysafe.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Pin.d.ts.map +1 -1
- package/dist/icons/paymentMethods/PodiumCadeaukaart.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Postepay.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Przelewy24.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Riverty.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Sepa.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Sofort.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Spraypay.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Twint.d.ts.map +1 -1
- package/dist/icons/paymentMethods/VVVCadeaukaart.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Visa.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Walley.d.ts.map +1 -1
- package/dist/icons/paymentMethods/WeChat.d.ts.map +1 -1
- package/dist/icons/paymentMethods/WebshopGiftcard.d.ts.map +1 -1
- package/dist/icons/paymentMethods/YourGift.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Zip.d.ts.map +1 -1
- package/dist/icons/paymentMethods/index.d.ts.map +1 -1
- package/dist/index.d.ts +177 -88
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +502 -500
- package/dist/mutations/addCustomerCountryCodeToCart.d.ts.map +1 -1
- package/dist/mutations/addCustomerCountryCodeToOrder.d.ts.map +1 -1
- package/dist/mutations/addCustomerToCart.d.ts.map +1 -1
- package/dist/mutations/addCustomerToOrder.d.ts.map +1 -1
- package/dist/mutations/addInformationToCart.d.ts.map +1 -1
- package/dist/mutations/addInformationToOrder.d.ts.map +1 -1
- package/dist/mutations/addNoteToCart.d.ts.map +1 -1
- package/dist/mutations/addNoteToOrder.d.ts.map +1 -1
- package/dist/mutations/addPaymentMethodToCart.d.ts.map +1 -1
- package/dist/mutations/addPaymentMethodToOrder.d.ts.map +1 -1
- package/dist/mutations/addPickupPointToCart.d.ts.map +1 -1
- package/dist/mutations/addPickupPointToOrder.d.ts.map +1 -1
- package/dist/mutations/addShippingMethodToCart.d.ts +10 -0
- package/dist/mutations/addShippingMethodToCart.d.ts.map +1 -1
- package/dist/mutations/addShippingMethodToCart.js +12 -2
- package/dist/mutations/addShippingMethodToOrder.d.ts +10 -0
- package/dist/mutations/addShippingMethodToOrder.d.ts.map +1 -1
- package/dist/mutations/addShippingMethodToOrder.js +15 -5
- package/dist/mutations/index.d.ts.map +1 -1
- package/dist/mutations/initialAddCustomerToCart.d.ts.map +1 -1
- package/dist/mutations/initialAddCustomerToOrder.d.ts.map +1 -1
- package/dist/mutations/setAgreementTemplateForCart.d.ts.map +1 -1
- package/dist/mutations/setAgreementTemplateForOrder.d.ts.map +1 -1
- package/dist/operations/authOperations.d.ts.map +1 -1
- package/dist/operations/authOperations.js +10 -2
- package/dist/operations/cartOperations.d.ts.map +1 -1
- package/dist/operations/cartOperations.js +141 -128
- package/dist/operations/index.d.ts.map +1 -1
- package/dist/operations/orderOperations.d.ts.map +1 -1
- package/dist/operations/orderOperations.js +241 -225
- package/dist/queries/getCartInitialCheckoutDataQuery.d.ts.map +1 -1
- package/dist/queries/getCartInitialPaymentStepQuery.d.ts.map +1 -1
- package/dist/queries/getCartPaymentMethodsQuery.d.ts.map +1 -1
- package/dist/queries/getCartPickupPointsQuery.d.ts.map +1 -1
- package/dist/queries/getCartReviewCheckoutDataQuery.d.ts.map +1 -1
- package/dist/queries/getCartShippingMethodsQuery.d.ts.map +1 -1
- package/dist/queries/getOrderInitialCheckoutDataQuery.d.ts.map +1 -1
- package/dist/queries/getOrderInitialPaymentStepQuery.d.ts.map +1 -1
- package/dist/queries/getOrderPaymentMethodsQuery.d.ts.map +1 -1
- package/dist/queries/getOrderPickupPointsQuery.d.ts.map +1 -1
- package/dist/queries/getOrderProceedingOptionsQuery.d.ts.map +1 -1
- package/dist/queries/getOrderReviewCheckoutDataQuery.d.ts.map +1 -1
- package/dist/queries/getOrderShippingMethodsQuery.d.ts.map +1 -1
- package/dist/queries/index.d.ts.map +1 -1
- package/dist/steps/index.d.ts.map +1 -1
- package/dist/steps/informationStep.d.ts +1 -0
- package/dist/steps/informationStep.d.ts.map +1 -1
- package/dist/steps/informationStep.js +96 -94
- package/dist/steps/paymentStep.d.ts.map +1 -1
- package/dist/steps/paymentStep.js +1 -1
- package/dist/steps/reviewStep.d.ts.map +1 -1
- package/dist/steps/shippingStep.d.ts.map +1 -1
- package/dist/steps/shippingStep.js +1 -1
- package/dist/types.d.ts +30 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/calculateBreakpointsForAddressFields.d.ts.map +1 -1
- package/dist/utils/canEditInformation.d.ts.map +1 -1
- package/dist/utils/colorManipulator.d.ts +15 -15
- package/dist/utils/colorManipulator.d.ts.map +1 -1
- package/dist/utils/colorManipulator.js +86 -75
- package/dist/utils/createAddressValidationSchema.d.ts.map +1 -1
- package/dist/utils/createSummary.d.ts.map +1 -1
- package/dist/utils/deepMerge.d.ts.map +1 -1
- package/dist/utils/formatAddressOptionsRules.d.ts.map +1 -1
- package/dist/utils/formatAddressPayload.d.ts.map +1 -1
- package/dist/utils/formatAddressResponse.d.ts.map +1 -1
- package/dist/utils/formatDistance.d.ts.map +1 -1
- package/dist/utils/formatEcommerceDataLayerItems.d.ts +11 -0
- package/dist/utils/formatEcommerceDataLayerItems.d.ts.map +1 -0
- package/dist/utils/formatEcommerceDataLayerItems.js +26 -0
- package/dist/utils/formatInformationStepPayload.d.ts.map +1 -1
- package/dist/utils/formatUpdateAccountInformationPayload.d.ts.map +1 -1
- package/dist/utils/formatUpdateOrganisationOnAccountPayload.d.ts.map +1 -1
- package/dist/utils/getAutocompletedAddress.d.ts +1 -1
- package/dist/utils/getAutocompletedAddress.d.ts.map +1 -1
- package/dist/utils/getErrorMessage.d.ts.map +1 -1
- package/dist/utils/getFullName.d.ts.map +1 -1
- package/dist/utils/getReviewStepTarget.d.ts.map +1 -1
- package/dist/utils/getShortLocale.d.ts.map +1 -1
- package/dist/utils/getValidationErrorMessage.d.ts.map +1 -1
- package/dist/utils/getValueKeysFromString.d.ts.map +1 -1
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/replaceElementsInString.d.ts.map +1 -1
- package/dist/utils/replaceValuesInString.d.ts.map +1 -1
- package/dist/utils/resolveSlotProps.d.ts.map +1 -1
- package/dist/utils/setupCustomValidationRules.d.ts.map +1 -1
- package/package.json +5 -105
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckoutSettings, CheckoutSteps,
|
|
1
|
+
import { CheckoutSettings, CheckoutSteps, CheckoutCreateSummaryFn, DeepPartial, StorefrontClient } from '../types';
|
|
2
2
|
import { CheckoutCartOperations } from '../operations/cartOperations';
|
|
3
3
|
import { CheckoutAuthOperations } from '../operations/authOperations';
|
|
4
4
|
import { AddInformationToCartParams } from '../mutations/addInformationToCart';
|
|
@@ -12,10 +12,14 @@ import { SetAgreementTemplateForCartParams } from '../mutations/setAgreementTemp
|
|
|
12
12
|
import { GetCartPickupPointsParams } from '../queries/getCartPickupPointsQuery';
|
|
13
13
|
import { GetCartShippingMethodsParams } from '../queries/getCartShippingMethodsQuery';
|
|
14
14
|
import { CheckoutAnalytics } from '../constants/analyticsEvents';
|
|
15
|
+
import { Channel } from '@afosto/storefront';
|
|
15
16
|
export interface UseCheckoutCartOptions {
|
|
16
17
|
analytics?: DeepPartial<CheckoutAnalytics>;
|
|
17
18
|
cartId: string;
|
|
19
|
+
channel: Channel | null;
|
|
20
|
+
createSummary: CheckoutCreateSummaryFn;
|
|
18
21
|
defaultOperations: CheckoutAuthOperations & CheckoutCartOperations;
|
|
22
|
+
isLoading?: boolean;
|
|
19
23
|
isLoadingChannel: boolean;
|
|
20
24
|
locale: string;
|
|
21
25
|
steps: CheckoutSteps;
|
|
@@ -121,15 +125,15 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
121
125
|
vat: import('../fragments/CoreCartProjectionFields').CoreCartProjectionVat[];
|
|
122
126
|
customer: import('../mutations/addInformationToCart').AddInformationToCartResponseCustomer;
|
|
123
127
|
billing: {
|
|
124
|
-
address: import('
|
|
128
|
+
address: import('..').CoreAddress;
|
|
125
129
|
};
|
|
126
130
|
delivery: {
|
|
127
|
-
address: import('
|
|
131
|
+
address: import('..').CoreAddress;
|
|
128
132
|
method?: {
|
|
129
133
|
id: string;
|
|
130
134
|
};
|
|
131
135
|
};
|
|
132
|
-
phoneNumber?: import('
|
|
136
|
+
phoneNumber?: import('..').CorePhoneNumber;
|
|
133
137
|
}>;
|
|
134
138
|
addNote: ({ note }: Omit<AddNoteToCartParams, "cartId">) => Promise<{
|
|
135
139
|
id: string;
|
|
@@ -238,47 +242,57 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
238
242
|
method: {
|
|
239
243
|
id: string;
|
|
240
244
|
name: string;
|
|
245
|
+
carrier: string;
|
|
246
|
+
description: string;
|
|
247
|
+
instruction: string;
|
|
248
|
+
isPickupPoint: boolean;
|
|
249
|
+
isSameDay: boolean;
|
|
250
|
+
isSunday: boolean;
|
|
251
|
+
pricing: {
|
|
252
|
+
fixed: number;
|
|
253
|
+
percentage: number;
|
|
254
|
+
};
|
|
241
255
|
};
|
|
242
256
|
};
|
|
243
257
|
}>;
|
|
244
258
|
checkout: () => Promise<void>;
|
|
245
259
|
getInitialPaymentStep: () => Promise<{
|
|
246
|
-
agreementOptions: import('
|
|
247
|
-
agreementTemplate: import('
|
|
248
|
-
paymentMethods: import('
|
|
260
|
+
agreementOptions: import('..').CheckoutAgreementOptionType[];
|
|
261
|
+
agreementTemplate: import('..').CheckoutAgreementOptionType | null;
|
|
262
|
+
paymentMethods: import('..').GetCartInitialPaymentStepResponsePaymentMethod[];
|
|
249
263
|
}>;
|
|
250
264
|
getPaymentMethods: () => Promise<{
|
|
251
265
|
currentPaymentMethod: {
|
|
252
266
|
id: string;
|
|
253
267
|
};
|
|
254
|
-
paymentMethods: import('
|
|
268
|
+
paymentMethods: import('..').CheckoutPaymentMethodOptionType[];
|
|
255
269
|
payments: never[];
|
|
256
270
|
}>;
|
|
257
271
|
getPickupPoints: ({ countryCode, postalCode }: Omit<GetCartPickupPointsParams, "id">) => Promise<{
|
|
258
|
-
pickupPoints: import('
|
|
272
|
+
pickupPoints: import('..').CheckoutShippingMethodPickupPoint[];
|
|
259
273
|
}>;
|
|
260
274
|
getReviewCheckoutData: () => Promise<{
|
|
261
|
-
agreements: import('
|
|
262
|
-
agreementTemplate: import('
|
|
263
|
-
contact: import('
|
|
264
|
-
organisation: import('
|
|
265
|
-
phoneNumber: import('
|
|
266
|
-
notes: import('
|
|
267
|
-
items: import('
|
|
268
|
-
billingAddress: import('
|
|
269
|
-
paymentMethod: import('
|
|
270
|
-
shippingAddress: import('
|
|
271
|
-
shippingMethod: import('
|
|
272
|
-
pickupPoint: import('
|
|
273
|
-
currency: import('
|
|
274
|
-
issuer: import('
|
|
275
|
+
agreements: import('..').CheckoutSummaryAgreement[];
|
|
276
|
+
agreementTemplate: import('..').CheckoutAgreementOptionType | null;
|
|
277
|
+
contact: import('..').GetCartReviewCheckoutDataQueryResponse["cart"]["customer"]["contact"];
|
|
278
|
+
organisation: import('..').GetCartReviewCheckoutDataQueryResponse["cart"]["customer"]["organisation"];
|
|
279
|
+
phoneNumber: import('..').GetCartReviewCheckoutDataQueryResponse["cart"]["phoneNumber"];
|
|
280
|
+
notes: import('..').GetCartReviewCheckoutDataQueryResponse["cart"]["customer"]["notes"];
|
|
281
|
+
items: import('..').GetCartReviewCheckoutDataQueryResponse["cart"]["items"];
|
|
282
|
+
billingAddress: import('..').GetCartReviewCheckoutDataQueryResponse["cart"]["billing"]["address"];
|
|
283
|
+
paymentMethod: import('..').GetCartReviewCheckoutDataQueryResponse["cart"]["billing"]["payment"]["method"];
|
|
284
|
+
shippingAddress: import('..').GetCartReviewCheckoutDataQueryResponse["cart"]["delivery"]["address"];
|
|
285
|
+
shippingMethod: import('..').GetCartReviewCheckoutDataQueryResponse["cart"]["delivery"]["method"];
|
|
286
|
+
pickupPoint: import('..').GetCartReviewCheckoutDataQueryResponse["cart"]["delivery"]["pickupPoint"];
|
|
287
|
+
currency: import('..').GetCartReviewCheckoutDataQueryResponse["cart"]["currency"];
|
|
288
|
+
issuer: import('..').GetCartReviewCheckoutDataQueryResponse["cart"]["billing"]["payment"]["issuer"];
|
|
275
289
|
amountCovered: number;
|
|
276
290
|
}>;
|
|
277
291
|
getShippingMethods: ({ countryCode, postalCode }: Omit<GetCartShippingMethodsParams, "id">) => Promise<{
|
|
278
292
|
currentShippingMethod: {
|
|
279
293
|
id: string;
|
|
280
294
|
};
|
|
281
|
-
shippingMethods: import('
|
|
295
|
+
shippingMethods: import('..').CheckoutShippingMethodOptionType[];
|
|
282
296
|
}>;
|
|
283
297
|
isLoading: boolean;
|
|
284
298
|
setAgreementTemplate: ({ agreementId }: Omit<SetAgreementTemplateForCartParams, "cartId">) => Promise<{
|
|
@@ -303,10 +317,24 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
303
317
|
activeStep: number;
|
|
304
318
|
billingAddressValidationSchema: Record<string, import('yup').AnySchema>;
|
|
305
319
|
completedSteps: string[];
|
|
306
|
-
defaultCountry:
|
|
320
|
+
defaultCountry: import('@afosto/hooks').ExtendedCountry | undefined;
|
|
307
321
|
defaultValues: any[];
|
|
308
|
-
errorMessage: import('
|
|
309
|
-
formatCountryAsOption: (country: Country) => {
|
|
322
|
+
errorMessage: import('..').CheckoutErrorMessage;
|
|
323
|
+
formatCountryAsOption: (country: import('@afosto/utils').Country | import('@afosto/hooks').ExtendedCountry) => {
|
|
324
|
+
label: string;
|
|
325
|
+
value: string;
|
|
326
|
+
name: string;
|
|
327
|
+
topLevelDomain: string[];
|
|
328
|
+
alpha2Code: string;
|
|
329
|
+
alpha3Code: string;
|
|
330
|
+
callingCodes: string[];
|
|
331
|
+
region: string;
|
|
332
|
+
currencies?: import('@afosto/utils').CountryCurrency[];
|
|
333
|
+
translations: {
|
|
334
|
+
[key: string]: string;
|
|
335
|
+
};
|
|
336
|
+
position?: number;
|
|
337
|
+
} | {
|
|
310
338
|
label: string;
|
|
311
339
|
value: string;
|
|
312
340
|
name: string;
|
|
@@ -315,18 +343,19 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
315
343
|
alpha3Code: string;
|
|
316
344
|
callingCodes: string[];
|
|
317
345
|
region: string;
|
|
318
|
-
currencies?: import('
|
|
346
|
+
currencies?: import('@afosto/utils').CountryCurrency[];
|
|
319
347
|
translations: {
|
|
320
348
|
[key: string]: string;
|
|
321
349
|
};
|
|
322
350
|
position?: number;
|
|
351
|
+
originalName: string;
|
|
323
352
|
};
|
|
324
353
|
formRef: import('react').MutableRefObject<import('@afosto/components').UseFormReturn | null>;
|
|
325
354
|
getCountryByCode: (countryCode: string) => import('@afosto/hooks').ExtendedCountry | undefined;
|
|
326
355
|
getNextStepLabel: () => string;
|
|
327
356
|
getPreviousStepLabel: () => string | undefined;
|
|
328
357
|
goToTargetStep: (targetStep: {
|
|
329
|
-
targetStep: import('
|
|
358
|
+
targetStep: import('..').CheckoutStep | undefined;
|
|
330
359
|
targetStepIndex: number;
|
|
331
360
|
targetSubStep: string | undefined;
|
|
332
361
|
}) => () => void;
|
|
@@ -338,7 +367,7 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
338
367
|
previousStep: () => void;
|
|
339
368
|
setActiveStep: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
340
369
|
setBillingAddressValidationSchema: import('react').Dispatch<import('react').SetStateAction<Record<string, import('yup').AnySchema>>>;
|
|
341
|
-
setErrorMessage: import('react').Dispatch<import('react').SetStateAction<import('
|
|
370
|
+
setErrorMessage: import('react').Dispatch<import('react').SetStateAction<import('..').CheckoutErrorMessage>>;
|
|
342
371
|
setIsProcessing: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
343
372
|
setShippingAddressValidationSchema: import('react').Dispatch<import('react').SetStateAction<Record<string, import('yup').AnySchema>>>;
|
|
344
373
|
setSubmitButtonDisabled: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
@@ -347,16 +376,16 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
347
376
|
subStep: string;
|
|
348
377
|
setSubStep: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
349
378
|
submitButtonPortalRef: import('react').MutableRefObject<HTMLDivElement | null>;
|
|
350
|
-
triggerEvent: <E extends import('
|
|
379
|
+
triggerEvent: <E extends import('..').CheckoutEventName>(eventName: E, eventData: import('..').CheckoutEventMap[E], context: unknown, options?: {
|
|
351
380
|
parallel?: boolean;
|
|
352
381
|
}) => Promise<undefined>;
|
|
353
382
|
validationSchema: import('yup').ObjectSchema<import('yup').Maybe<import('yup').AnyObject>, import('yup').AnyObject, any, "">[];
|
|
354
|
-
summary: import('
|
|
383
|
+
summary: import('..').CheckoutSummaryType | null;
|
|
355
384
|
setShowSummary: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
356
|
-
setSummary: import('react').Dispatch<import('react').SetStateAction<import('
|
|
385
|
+
setSummary: import('react').Dispatch<import('react').SetStateAction<import('..').CheckoutSummaryType | null>>;
|
|
357
386
|
showSummary: boolean;
|
|
358
387
|
toggleSummary: () => void;
|
|
359
|
-
currentOrganisation: import('
|
|
388
|
+
currentOrganisation: import('..').CheckoutCurrentOrganisation | null;
|
|
360
389
|
getAccountInformation: () => Promise<import('@afosto/storefront').CoreAccount | null>;
|
|
361
390
|
getUser: () => import('@afosto/storefront').User | null;
|
|
362
391
|
hasSharedOrganisations: boolean;
|
|
@@ -364,7 +393,7 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
364
393
|
isSignedIn: boolean;
|
|
365
394
|
requestPasswordReset: (input: import('@afosto/storefront').RequestPasswordResetInput["requestPasswordResetInput"]) => Promise<boolean>;
|
|
366
395
|
sessionExpired: boolean;
|
|
367
|
-
setCurrentOrganisation: import('react').Dispatch<import('react').SetStateAction<import('
|
|
396
|
+
setCurrentOrganisation: import('react').Dispatch<import('react').SetStateAction<import('..').CheckoutCurrentOrganisation | null>>;
|
|
368
397
|
setHasSharedOrganisations: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
369
398
|
setIsSignedIn: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
370
399
|
setSessionExpired: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
@@ -382,11 +411,11 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
382
411
|
updateAccountInformation: (input: import('@afosto/storefront').UpdateAccountInformationInput["updateAccountInformationInput"]) => Promise<import('@afosto/storefront').CoreAccount | null>;
|
|
383
412
|
updateOrganisationOnAccount: (input: import('@afosto/storefront').UpdateOrganisationOnAccountInput["updateOrganisationOnAccountInput"]) => Promise<import('@afosto/storefront').CoreAccount | null>;
|
|
384
413
|
availableShippingCountryCodes: string[];
|
|
385
|
-
expressPaymentMethods: import('
|
|
414
|
+
expressPaymentMethods: import('..').CheckoutExpressPaymentMethod[];
|
|
386
415
|
isAddingExpressPaymentMethod: boolean;
|
|
387
416
|
setIsAddingExpressPaymentMethod: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
388
417
|
isInitializing: boolean;
|
|
389
418
|
notFound: boolean;
|
|
390
419
|
};
|
|
391
420
|
export type UseCheckoutCartContext = ReturnType<typeof useCheckoutCart>;
|
|
392
|
-
//# sourceMappingURL=useCheckoutCart.d.ts.map
|
|
421
|
+
//# sourceMappingURL=useCheckoutCart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCheckoutCart.d.ts","sourceRoot":"","sources":["../../
|
|
1
|
+
{"version":3,"file":"useCheckoutCart.d.ts","sourceRoot":"","sources":["../../src/hooks/useCheckoutCart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACb,uBAAuB,EACvB,WAAW,EACX,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAIlB,OAAO,KAAK,EACV,sBAAsB,EAEvB,MAAM,8BAA8B,CAAC;AAItC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,0CAA0C,CAAC;AAClG,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,aAAa,EAAE,uBAAuB,CAAC;IACvC,iBAAiB,EAAE,sBAAsB,GAAG,sBAAsB,CAAC;IACnE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,aAAa,CAAC;IACrB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,sBAAsB,GAAG,sBAAsB,CAAC;CAC7D;AAED,eAAO,MAAM,eAAe,GAAI,SAAS,sBAAsB;gCAmP1D,IAAI,CAAC,uBAAuB,EAAE,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;8CAoBvC,IAAI,CAAC,kCAAkC,EAAE,QAAQ,CAAC;;;;;;;;;;;;;;;;;;4CAuJlD,IAAI,CAAC,4BAA4B,EAAE,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;sBA7bV,CAAC;;;;wBAC2B,CAAC;;;;;;;;;iFA2T/D,IAAI,CAAC,0BAA0B,EAAE,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;kBA9P5C,CAAC;;;;;;wBAkR+B,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;2DAwFjE,IAAI,CAAC,4BAA4B,EAAE,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;sBAxaV,CAAC;;;;wBAC2B,CAAC;;;;;;;;;wCAse/D,IAAI,CAAC,0BAA0B,EAAE,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAmB1C,IAAI,CAAC,6BAA6B,EAAE,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAoB7C,IAAI,CAAC,yBAAyB,EAAE,IAAI,CAAC;;;;;;iBA7XW,2DACd,YAAY;sBAC1C,2DAA+C,YAAY;qBAC3C,2DAEpB;eAAyB,2DAE9B,YAAY;eACJ,2DACgC;wBACrB,2DAGd,WACI;uBACG,2DACP,WAGF,WAAW;yBAA8B,2DACN,YAAY;wBAChC,2DAA+C,YACvD;qBACJ,2DAA0C,YAAY;kBAC/C,2DAGH;gBAAuB,2DAC/B,WACI,WAAW;;;sDAiaZ,IAAI,CAAC,4BAA4B,EAAE,IAAI,CAAC;;;;;;;4CAsCxC,IAAI,CAAC,iCAAiC,EAAE,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAlnBlD,CAAC;;;;gBAEmB,CAAC;;;;;;;;;;kBAGT,CAAC;;;;gBACwD,CAAC;;;;;;;;;;;;;+BAqCxD,CAAC;;;;;;;;;;;;;;;;;gBAuIuB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwe1C,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC"}
|