@lookiero/checkout 9.14.0 → 10.0.0-beta.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/dist/fake-dependencies/@lookiero/payments-front/index.d.ts +8 -6
- package/dist/fake-dependencies/@lookiero/payments-front/index.js +7 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -2
- package/dist/pact.config.d.ts +21 -0
- package/dist/pact.config.js +16 -0
- package/dist/public/public/assets/adaptive-icon.png +0 -0
- package/dist/public/public/assets/favicon.png +0 -0
- package/dist/public/public/assets/icon.png +0 -0
- package/dist/public/public/assets/splash.png +0 -0
- package/dist/public/public/images/not-found.png +0 -0
- package/dist/src/Expo.js +0 -2
- package/dist/src/ExpoRoot.js +19 -15
- package/dist/src/infrastructure/domain/checkoutBooking/react/useBlockCheckoutBooking.d.ts +1 -1
- package/dist/src/infrastructure/domain/checkoutBooking/react/useBlockCheckoutBooking.js +2 -0
- package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.js +55 -0
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.js +116 -0
- package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.js +56 -0
- package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.js +51 -0
- package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.js +51 -0
- package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.js +51 -0
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +13 -0
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +19 -0
- package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.js +56 -0
- package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.js +57 -0
- package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.js +55 -0
- package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.js +120 -0
- package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.js +55 -0
- package/dist/src/infrastructure/projection/pricing/react/useViewPricingByCheckoutId.d.ts +1 -1
- package/dist/src/infrastructure/projection/pricing/react/useViewPricingByCheckoutId.js +2 -1
- package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.js +55 -0
- package/dist/src/infrastructure/tracking/tracking.d.ts +2 -2
- package/dist/src/infrastructure/tracking/useTrackCheckout.d.ts +10 -17
- package/dist/src/infrastructure/tracking/useTrackCheckout.js +27 -12
- package/dist/src/infrastructure/ui/Root.d.ts +6 -6
- package/dist/src/infrastructure/ui/Root.js +2 -3
- package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +1 -2
- package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.js +2 -3
- package/dist/src/infrastructure/ui/components/atoms/price/Price.js +0 -3
- package/dist/src/infrastructure/ui/components/layouts/layout/Layout.d.ts +22 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/Layout.js +1 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.d.ts +7 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.js +5 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.d.ts +7 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.js +6 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.d.ts +4 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.js +20 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.d.ts +4 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.js +43 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.d.ts +12 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.js +14 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +3 -7
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +2 -18
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +2 -14
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.js +1 -2
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.js +1 -2
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +3 -4
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.js +1 -0
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +3 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.js +2 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +4 -4
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +2 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.js +2 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +1 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.js +4 -5
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +6 -6
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +3 -4
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.js +1 -0
- package/dist/src/infrastructure/ui/components/templates/footer/Footer.d.ts +3 -0
- package/dist/src/infrastructure/ui/components/templates/footer/Footer.js +13 -0
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +2 -2
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.d.ts +7 -0
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +21 -0
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +8 -0
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +12 -0
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +2 -2
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +4 -4
- package/dist/src/infrastructure/ui/hooks/useCheckoutFlow.d.ts +26 -0
- package/dist/src/infrastructure/ui/hooks/useCheckoutFlow.js +135 -0
- package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.d.ts +12 -0
- package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.js +64 -0
- package/dist/src/infrastructure/ui/hooks/usePaymentInstrumentEvents.d.ts +3 -2
- package/dist/src/infrastructure/ui/hooks/usePaymentInstrumentEvents.js +17 -26
- package/dist/src/infrastructure/ui/hooks/useStaticInfo.d.ts +2 -0
- package/dist/src/infrastructure/ui/hooks/useStaticInfo.js +2 -2
- package/dist/src/infrastructure/ui/hooks/useSubmitCheckout.d.ts +1 -1
- package/dist/src/infrastructure/ui/hooks/useSubmitCheckout.js +22 -55
- package/dist/src/infrastructure/ui/i18n/fetchTranslations.d.ts +10 -0
- package/dist/src/infrastructure/ui/i18n/fetchTranslations.js +17 -0
- package/dist/src/infrastructure/ui/i18n/i18n.d.ts +2 -2
- package/dist/src/infrastructure/ui/i18n/i18n.js +2 -2
- package/dist/src/infrastructure/ui/i18n/translationEndpoint.d.ts +20 -0
- package/dist/src/infrastructure/ui/i18n/translationEndpoint.js +27 -0
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.d.ts +10 -0
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +27 -0
- package/dist/src/infrastructure/ui/routing/CheckoutMiddleware.js +3 -14
- package/dist/src/infrastructure/ui/routing/Routing.d.ts +5 -5
- package/dist/src/infrastructure/ui/routing/Routing.js +8 -18
- package/dist/src/infrastructure/ui/routing/routes.d.ts +0 -1
- package/dist/src/infrastructure/ui/routing/routes.js +0 -1
- package/dist/src/infrastructure/ui/test/render.js +3 -7
- package/dist/src/infrastructure/ui/views/App.js +5 -7
- package/dist/src/infrastructure/ui/views/App.style.d.ts +6 -0
- package/dist/src/infrastructure/ui/views/App.style.js +8 -0
- package/dist/src/infrastructure/ui/views/checkout/Checkout.d.ts +7 -2
- package/dist/src/infrastructure/ui/views/checkout/Checkout.js +24 -15
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.d.ts +3 -0
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.js +3 -0
- package/dist/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.js +16 -16
- package/dist/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.js +2 -2
- package/dist/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.js +7 -7
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.js +2 -2
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.d.ts +7 -0
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.js +11 -0
- package/dist/src/infrastructure/ui/views/item/Item.js +1 -3
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +3 -3
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +5 -11
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +4 -4
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +3 -3
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +0 -1
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +1 -2
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +2 -2
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +12 -0
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +64 -0
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +12 -0
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +16 -0
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +4 -4
- package/dist/src/infrastructure/ui/views/return/Return.style.d.ts +40 -0
- package/dist/src/infrastructure/ui/views/return/Return.style.js +44 -0
- package/dist/src/infrastructure/ui/views/return/components/price/Price.js +0 -3
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +3 -3
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +6 -6
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -1
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.js +1 -2
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +4 -4
- package/dist/src/infrastructure/ui/views/summary/Summary.js +5 -6
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +2 -3
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +6 -8
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +14 -0
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +28 -0
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +7 -0
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.js +11 -0
- package/dist/src/infrastructure/ui/views/summaryTabs/SummaryTabs.js +1 -3
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +5 -5
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +26 -0
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.js +21 -0
- package/dist/src/projection/customer/customer.d.ts +2 -0
- package/dist/src/projection/order/order.d.ts +1 -1
- package/dist/src/projection/shared/country.d.ts +14 -0
- package/dist/src/projection/shared/country.js +15 -0
- package/dist/src/projection/shared/customer.d.ts +9 -0
- package/dist/src/projection/shared/customer.js +1 -0
- package/dist/src/projection/shared/locale.d.ts +12 -0
- package/dist/src/projection/shared/locale.js +13 -0
- package/dist/src/projection/shared/order.d.ts +6 -0
- package/dist/src/projection/shared/order.js +1 -0
- package/dist/src/projection/shared/price.d.ts +11 -0
- package/dist/src/projection/shared/price.js +1 -0
- package/dist/src/projection/shared/size.d.ts +21 -0
- package/dist/src/projection/shared/size.js +4 -0
- package/dist/src/projection/shared/subscription.d.ts +2 -0
- package/dist/src/projection/shared/subscription.js +1 -0
- package/dist/src/projection/subscription/subscription.d.ts +1 -1
- package/dist/src/shared/ui/components/atoms/aspectRatioView/AspectRatioView.d.ts +15 -0
- package/dist/src/shared/ui/components/atoms/aspectRatioView/AspectRatioView.js +16 -0
- package/dist/src/shared/ui/components/atoms/error/Error.d.ts +11 -0
- package/dist/src/shared/ui/components/atoms/error/Error.js +6 -0
- package/dist/src/shared/ui/components/atoms/field/Field.d.ts +14 -0
- package/dist/src/shared/ui/components/atoms/field/Field.js +29 -0
- package/dist/src/shared/ui/components/atoms/field/Field.style.d.ts +16 -0
- package/dist/src/shared/ui/components/atoms/field/Field.style.js +19 -0
- package/dist/src/shared/ui/components/molecules/inputField/InputField.d.ts +24 -0
- package/dist/src/shared/ui/components/molecules/inputField/InputField.js +28 -0
- package/dist/src/shared/ui/components/molecules/inputField/InputField.style.d.ts +29 -0
- package/dist/src/shared/ui/components/molecules/inputField/InputField.style.js +37 -0
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/fake-dependencies/@lookiero/payments-front/index.tsx +32 -9
- package/index.ts +11 -5
- package/jest.config.js +2 -2
- package/package.json +9 -9
- package/src/Expo.tsx +0 -3
- package/src/ExpoRoot.tsx +44 -38
- package/src/infrastructure/domain/checkoutBooking/react/useBlockCheckoutBooking.ts +4 -1
- package/src/infrastructure/projection/pricing/react/useViewPricingByCheckoutId.ts +3 -2
- package/src/infrastructure/tracking/tracking.ts +2 -2
- package/src/infrastructure/tracking/useTrackCheckout.ts +66 -56
- package/src/infrastructure/ui/Root.tsx +9 -9
- package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.ts +2 -3
- package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.tsx +2 -3
- package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/__snapshots__/FiveItemsDiscountBanner.test.tsx.snap +1 -1
- package/src/infrastructure/ui/components/atoms/price/Price.tsx +0 -3
- package/src/infrastructure/ui/components/atoms/price/__snapshots__/Price.test.tsx.snap +3 -3
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.ts +4 -25
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +7 -13
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.tsx +1 -2
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.tsx +1 -2
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.ts +1 -0
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.tsx +2 -4
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.tsx +3 -3
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.tsx +2 -3
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.tsx +5 -5
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +2 -3
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +2 -3
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.tsx +1 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +5 -6
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.tsx +7 -7
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.ts +1 -0
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.tsx +2 -4
- package/src/infrastructure/ui/components/templates/footer/Footer.test.tsx +15 -0
- package/src/infrastructure/ui/components/templates/footer/Footer.tsx +19 -0
- package/src/infrastructure/ui/components/templates/footer/__snapshots__/Footer.test.tsx.snap +1127 -0
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +2 -2
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +1 -1
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +2 -2
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +1 -1
- package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +5 -4
- package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +1 -1
- package/src/infrastructure/ui/hooks/{useSubmitCheckout.test.ts → useCheckoutFlow.test.ts} +1 -1
- package/src/infrastructure/ui/hooks/useCheckoutFlow.tsx +212 -0
- package/src/infrastructure/ui/hooks/usePaymentInstrumentEvents.ts +18 -60
- package/src/infrastructure/ui/hooks/useStaticInfo.tsx +4 -2
- package/src/infrastructure/ui/i18n/i18n.ts +2 -3
- package/src/infrastructure/ui/routing/CheckoutMiddleware.test.tsx +3 -3
- package/src/infrastructure/ui/routing/CheckoutMiddleware.tsx +3 -17
- package/src/infrastructure/ui/routing/Routing.tsx +25 -39
- package/src/infrastructure/ui/routing/routes.ts +0 -1
- package/src/infrastructure/ui/test/render.tsx +4 -10
- package/src/infrastructure/ui/views/App.tsx +5 -14
- package/src/infrastructure/ui/views/checkout/Checkout.style.ts +3 -0
- package/src/infrastructure/ui/views/checkout/Checkout.tsx +55 -18
- package/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.test.tsx +116 -121
- package/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.tsx +2 -2
- package/src/infrastructure/ui/views/checkout/components/deliveryBanner/__snapshots__/DeliveryBanner.test.tsx.snap +1 -1
- package/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.tsx +8 -8
- package/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.tsx +2 -2
- package/src/infrastructure/ui/views/item/Item.tsx +1 -2
- package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.tsx +3 -3
- package/src/infrastructure/ui/views/item/components/banner/__snapshots__/CustomerDecissionBanner.test.tsx.snap +3 -3
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +5 -11
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +88 -160
- package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +4 -4
- package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +128 -244
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +1 -2
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +3 -3
- package/src/infrastructure/ui/views/item/components/productVariantDescription/__snapshots__/ProductVariantDescription.test.tsx.snap +8 -10
- package/src/infrastructure/ui/views/item/components/productVariantSlider/__snapshots__/ProductVariantSlider.test.tsx.snap +30 -30
- package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +2 -2
- package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +1 -1
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +4 -4
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +41 -75
- package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +102 -105
- package/src/infrastructure/ui/views/return/components/price/Price.tsx +0 -3
- package/src/infrastructure/ui/views/return/components/price/__snapshots__/Price.test.tsx.snap +3 -3
- package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +3 -3
- package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +1 -1
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.ts +1 -2
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +6 -6
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +4 -4
- package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +30 -30
- package/src/infrastructure/ui/views/summary/Summary.tsx +5 -6
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +2 -3
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +82 -154
- package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +6 -8
- package/src/infrastructure/ui/views/summaryTabs/SummaryTabs.tsx +1 -2
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +5 -5
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +62 -62
- package/src/projection/customer/customer.ts +2 -0
- package/src/projection/order/order.ts +1 -1
- package/src/projection/subscription/subscription.ts +1 -1
- package/src/infrastructure/ui/hooks/useSubmitCheckout.ts +0 -169
- package/src/infrastructure/ui/routing/useBasePath.test.tsx +0 -19
- package/src/infrastructure/ui/routing/useBasePath.tsx +0 -24
- package/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.tsx +0 -125
|
@@ -184,20 +184,20 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
>
|
|
187
|
-
<
|
|
187
|
+
<View
|
|
188
188
|
colors={
|
|
189
189
|
[
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
190
|
+
"rgba(255, 255, 255, 0)",
|
|
191
|
+
"#DAD8D8",
|
|
192
|
+
"#DAD8D8",
|
|
193
|
+
"rgba(255, 255, 255, 0)",
|
|
194
194
|
]
|
|
195
195
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
1,
|
|
199
|
-
0,
|
|
200
|
-
|
|
196
|
+
end={
|
|
197
|
+
{
|
|
198
|
+
"x": 1,
|
|
199
|
+
"y": 0,
|
|
200
|
+
}
|
|
201
201
|
}
|
|
202
202
|
locations={
|
|
203
203
|
[
|
|
@@ -207,11 +207,11 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
207
207
|
1,
|
|
208
208
|
]
|
|
209
209
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
0,
|
|
213
|
-
0,
|
|
214
|
-
|
|
210
|
+
start={
|
|
211
|
+
{
|
|
212
|
+
"x": 0,
|
|
213
|
+
"y": 0,
|
|
214
|
+
}
|
|
215
215
|
}
|
|
216
216
|
style={
|
|
217
217
|
{
|
|
@@ -343,20 +343,20 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
>
|
|
346
|
-
<
|
|
346
|
+
<View
|
|
347
347
|
colors={
|
|
348
348
|
[
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
349
|
+
"rgba(255, 255, 255, 0)",
|
|
350
|
+
"#DAD8D8",
|
|
351
|
+
"#DAD8D8",
|
|
352
|
+
"rgba(255, 255, 255, 0)",
|
|
353
353
|
]
|
|
354
354
|
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
1,
|
|
358
|
-
0,
|
|
359
|
-
|
|
355
|
+
end={
|
|
356
|
+
{
|
|
357
|
+
"x": 1,
|
|
358
|
+
"y": 0,
|
|
359
|
+
}
|
|
360
360
|
}
|
|
361
361
|
locations={
|
|
362
362
|
[
|
|
@@ -366,11 +366,11 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
366
366
|
1,
|
|
367
367
|
]
|
|
368
368
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
0,
|
|
372
|
-
0,
|
|
373
|
-
|
|
369
|
+
start={
|
|
370
|
+
{
|
|
371
|
+
"x": 0,
|
|
372
|
+
"y": 0,
|
|
373
|
+
}
|
|
374
374
|
}
|
|
375
375
|
style={
|
|
376
376
|
{
|
|
@@ -597,7 +597,6 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
597
597
|
style={
|
|
598
598
|
{
|
|
599
599
|
"flex": 1,
|
|
600
|
-
"gap": 4,
|
|
601
600
|
}
|
|
602
601
|
}
|
|
603
602
|
>
|
|
@@ -615,7 +614,7 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
615
614
|
"paddingBottom": 0,
|
|
616
615
|
"paddingLeft": 0,
|
|
617
616
|
"paddingRight": 0,
|
|
618
|
-
"paddingTop":
|
|
617
|
+
"paddingTop": 4,
|
|
619
618
|
},
|
|
620
619
|
]
|
|
621
620
|
}
|
|
@@ -636,7 +635,7 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
636
635
|
"paddingBottom": 0,
|
|
637
636
|
"paddingLeft": 0,
|
|
638
637
|
"paddingRight": 0,
|
|
639
|
-
"paddingTop":
|
|
638
|
+
"paddingTop": 4,
|
|
640
639
|
},
|
|
641
640
|
]
|
|
642
641
|
}
|
|
@@ -666,7 +665,7 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
666
665
|
"paddingBottom": 0,
|
|
667
666
|
"paddingLeft": 0,
|
|
668
667
|
"paddingRight": 0,
|
|
669
|
-
"paddingTop":
|
|
668
|
+
"paddingTop": 4,
|
|
670
669
|
},
|
|
671
670
|
]
|
|
672
671
|
}
|
|
@@ -690,7 +689,7 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
690
689
|
"paddingBottom": 0,
|
|
691
690
|
"paddingLeft": 0,
|
|
692
691
|
"paddingRight": 0,
|
|
693
|
-
"paddingTop":
|
|
692
|
+
"paddingTop": 4,
|
|
694
693
|
},
|
|
695
694
|
]
|
|
696
695
|
}
|
|
@@ -887,20 +886,20 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
887
886
|
}
|
|
888
887
|
}
|
|
889
888
|
>
|
|
890
|
-
<
|
|
889
|
+
<View
|
|
891
890
|
colors={
|
|
892
891
|
[
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
892
|
+
"rgba(255, 255, 255, 0)",
|
|
893
|
+
"#DAD8D8",
|
|
894
|
+
"#DAD8D8",
|
|
895
|
+
"rgba(255, 255, 255, 0)",
|
|
897
896
|
]
|
|
898
897
|
}
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
1,
|
|
902
|
-
0,
|
|
903
|
-
|
|
898
|
+
end={
|
|
899
|
+
{
|
|
900
|
+
"x": 1,
|
|
901
|
+
"y": 0,
|
|
902
|
+
}
|
|
904
903
|
}
|
|
905
904
|
locations={
|
|
906
905
|
[
|
|
@@ -910,11 +909,11 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
910
909
|
1,
|
|
911
910
|
]
|
|
912
911
|
}
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
0,
|
|
916
|
-
0,
|
|
917
|
-
|
|
912
|
+
start={
|
|
913
|
+
{
|
|
914
|
+
"x": 0,
|
|
915
|
+
"y": 0,
|
|
916
|
+
}
|
|
918
917
|
}
|
|
919
918
|
style={
|
|
920
919
|
{
|
|
@@ -1046,20 +1045,20 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
1046
1045
|
}
|
|
1047
1046
|
}
|
|
1048
1047
|
>
|
|
1049
|
-
<
|
|
1048
|
+
<View
|
|
1050
1049
|
colors={
|
|
1051
1050
|
[
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1051
|
+
"rgba(255, 255, 255, 0)",
|
|
1052
|
+
"#DAD8D8",
|
|
1053
|
+
"#DAD8D8",
|
|
1054
|
+
"rgba(255, 255, 255, 0)",
|
|
1056
1055
|
]
|
|
1057
1056
|
}
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
1,
|
|
1061
|
-
0,
|
|
1062
|
-
|
|
1057
|
+
end={
|
|
1058
|
+
{
|
|
1059
|
+
"x": 1,
|
|
1060
|
+
"y": 0,
|
|
1061
|
+
}
|
|
1063
1062
|
}
|
|
1064
1063
|
locations={
|
|
1065
1064
|
[
|
|
@@ -1069,11 +1068,11 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
1069
1068
|
1,
|
|
1070
1069
|
]
|
|
1071
1070
|
}
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
0,
|
|
1075
|
-
0,
|
|
1076
|
-
|
|
1071
|
+
start={
|
|
1072
|
+
{
|
|
1073
|
+
"x": 0,
|
|
1074
|
+
"y": 0,
|
|
1075
|
+
}
|
|
1077
1076
|
}
|
|
1078
1077
|
style={
|
|
1079
1078
|
{
|
|
@@ -1300,7 +1299,6 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
1300
1299
|
style={
|
|
1301
1300
|
{
|
|
1302
1301
|
"flex": 1,
|
|
1303
|
-
"gap": 4,
|
|
1304
1302
|
}
|
|
1305
1303
|
}
|
|
1306
1304
|
>
|
|
@@ -1318,7 +1316,7 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
1318
1316
|
"paddingBottom": 0,
|
|
1319
1317
|
"paddingLeft": 0,
|
|
1320
1318
|
"paddingRight": 0,
|
|
1321
|
-
"paddingTop":
|
|
1319
|
+
"paddingTop": 4,
|
|
1322
1320
|
},
|
|
1323
1321
|
]
|
|
1324
1322
|
}
|
|
@@ -1339,7 +1337,7 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
1339
1337
|
"paddingBottom": 0,
|
|
1340
1338
|
"paddingLeft": 0,
|
|
1341
1339
|
"paddingRight": 0,
|
|
1342
|
-
"paddingTop":
|
|
1340
|
+
"paddingTop": 4,
|
|
1343
1341
|
},
|
|
1344
1342
|
]
|
|
1345
1343
|
}
|
|
@@ -1369,7 +1367,7 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
1369
1367
|
"paddingBottom": 0,
|
|
1370
1368
|
"paddingLeft": 0,
|
|
1371
1369
|
"paddingRight": 0,
|
|
1372
|
-
"paddingTop":
|
|
1370
|
+
"paddingTop": 4,
|
|
1373
1371
|
},
|
|
1374
1372
|
]
|
|
1375
1373
|
}
|
|
@@ -1393,7 +1391,7 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
1393
1391
|
"paddingBottom": 0,
|
|
1394
1392
|
"paddingLeft": 0,
|
|
1395
1393
|
"paddingRight": 0,
|
|
1396
|
-
"paddingTop":
|
|
1394
|
+
"paddingTop": 4,
|
|
1397
1395
|
},
|
|
1398
1396
|
]
|
|
1399
1397
|
}
|
|
@@ -1590,20 +1588,20 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
1590
1588
|
}
|
|
1591
1589
|
}
|
|
1592
1590
|
>
|
|
1593
|
-
<
|
|
1591
|
+
<View
|
|
1594
1592
|
colors={
|
|
1595
1593
|
[
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1594
|
+
"rgba(255, 255, 255, 0)",
|
|
1595
|
+
"#DAD8D8",
|
|
1596
|
+
"#DAD8D8",
|
|
1597
|
+
"rgba(255, 255, 255, 0)",
|
|
1600
1598
|
]
|
|
1601
1599
|
}
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
1,
|
|
1605
|
-
0,
|
|
1606
|
-
|
|
1600
|
+
end={
|
|
1601
|
+
{
|
|
1602
|
+
"x": 1,
|
|
1603
|
+
"y": 0,
|
|
1604
|
+
}
|
|
1607
1605
|
}
|
|
1608
1606
|
locations={
|
|
1609
1607
|
[
|
|
@@ -1613,11 +1611,11 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
1613
1611
|
1,
|
|
1614
1612
|
]
|
|
1615
1613
|
}
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
0,
|
|
1619
|
-
0,
|
|
1620
|
-
|
|
1614
|
+
start={
|
|
1615
|
+
{
|
|
1616
|
+
"x": 0,
|
|
1617
|
+
"y": 0,
|
|
1618
|
+
}
|
|
1621
1619
|
}
|
|
1622
1620
|
style={
|
|
1623
1621
|
{
|
|
@@ -1749,20 +1747,20 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
1749
1747
|
}
|
|
1750
1748
|
}
|
|
1751
1749
|
>
|
|
1752
|
-
<
|
|
1750
|
+
<View
|
|
1753
1751
|
colors={
|
|
1754
1752
|
[
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1753
|
+
"rgba(255, 255, 255, 0)",
|
|
1754
|
+
"#DAD8D8",
|
|
1755
|
+
"#DAD8D8",
|
|
1756
|
+
"rgba(255, 255, 255, 0)",
|
|
1759
1757
|
]
|
|
1760
1758
|
}
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
1,
|
|
1764
|
-
0,
|
|
1765
|
-
|
|
1759
|
+
end={
|
|
1760
|
+
{
|
|
1761
|
+
"x": 1,
|
|
1762
|
+
"y": 0,
|
|
1763
|
+
}
|
|
1766
1764
|
}
|
|
1767
1765
|
locations={
|
|
1768
1766
|
[
|
|
@@ -1772,11 +1770,11 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
1772
1770
|
1,
|
|
1773
1771
|
]
|
|
1774
1772
|
}
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
0,
|
|
1778
|
-
0,
|
|
1779
|
-
|
|
1773
|
+
start={
|
|
1774
|
+
{
|
|
1775
|
+
"x": 0,
|
|
1776
|
+
"y": 0,
|
|
1777
|
+
}
|
|
1780
1778
|
}
|
|
1781
1779
|
style={
|
|
1782
1780
|
{
|
|
@@ -2003,7 +2001,6 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
2003
2001
|
style={
|
|
2004
2002
|
{
|
|
2005
2003
|
"flex": 1,
|
|
2006
|
-
"gap": 4,
|
|
2007
2004
|
}
|
|
2008
2005
|
}
|
|
2009
2006
|
>
|
|
@@ -2021,7 +2018,7 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
2021
2018
|
"paddingBottom": 0,
|
|
2022
2019
|
"paddingLeft": 0,
|
|
2023
2020
|
"paddingRight": 0,
|
|
2024
|
-
"paddingTop":
|
|
2021
|
+
"paddingTop": 4,
|
|
2025
2022
|
},
|
|
2026
2023
|
]
|
|
2027
2024
|
}
|
|
@@ -2042,7 +2039,7 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
2042
2039
|
"paddingBottom": 0,
|
|
2043
2040
|
"paddingLeft": 0,
|
|
2044
2041
|
"paddingRight": 0,
|
|
2045
|
-
"paddingTop":
|
|
2042
|
+
"paddingTop": 4,
|
|
2046
2043
|
},
|
|
2047
2044
|
]
|
|
2048
2045
|
}
|
|
@@ -2072,7 +2069,7 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
2072
2069
|
"paddingBottom": 0,
|
|
2073
2070
|
"paddingLeft": 0,
|
|
2074
2071
|
"paddingRight": 0,
|
|
2075
|
-
"paddingTop":
|
|
2072
|
+
"paddingTop": 4,
|
|
2076
2073
|
},
|
|
2077
2074
|
]
|
|
2078
2075
|
}
|
|
@@ -2096,7 +2093,7 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
2096
2093
|
"paddingBottom": 0,
|
|
2097
2094
|
"paddingLeft": 0,
|
|
2098
2095
|
"paddingRight": 0,
|
|
2099
|
-
"paddingTop":
|
|
2096
|
+
"paddingTop": 4,
|
|
2100
2097
|
},
|
|
2101
2098
|
]
|
|
2102
2099
|
}
|
|
@@ -3,7 +3,6 @@ import { View } from "react-native";
|
|
|
3
3
|
import { Text } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nNumber } from "@lookiero/i18n-react";
|
|
5
5
|
import { PriceProjection } from "../../../../../../projection/price/price";
|
|
6
|
-
import { DOMAIN } from "../../../../i18n/i18n";
|
|
7
6
|
import { style } from "./Price.style";
|
|
8
7
|
|
|
9
8
|
interface PriceProps {
|
|
@@ -13,13 +12,11 @@ interface PriceProps {
|
|
|
13
12
|
const Price: FC<PriceProps> = ({ price, withPercentage = false }) => {
|
|
14
13
|
const isDiscounted = price.discountedPrice && price.discountedPrice.percentage > 0;
|
|
15
14
|
const productPrice = useI18nNumber({
|
|
16
|
-
domain: DOMAIN,
|
|
17
15
|
value: price.amount / 100,
|
|
18
16
|
style: "currency",
|
|
19
17
|
currency: price.currency,
|
|
20
18
|
});
|
|
21
19
|
const productDiscountedPrice = useI18nNumber({
|
|
22
|
-
domain: DOMAIN,
|
|
23
20
|
value: (price.discountedPrice?.amount || 0) / 100,
|
|
24
21
|
style: "currency",
|
|
25
22
|
currency: price.currency,
|
package/src/infrastructure/ui/views/return/components/price/__snapshots__/Price.test.tsx.snap
CHANGED
|
@@ -51,7 +51,7 @@ exports[`Price atom matches the snapshot for a discounted price: discounted pric
|
|
|
51
51
|
"paddingBottom": 0,
|
|
52
52
|
"paddingLeft": 0,
|
|
53
53
|
"paddingRight": 0,
|
|
54
|
-
"paddingTop":
|
|
54
|
+
"paddingTop": 4,
|
|
55
55
|
"textDecorationLine": "line-through",
|
|
56
56
|
},
|
|
57
57
|
]
|
|
@@ -82,7 +82,7 @@ exports[`Price atom matches the snapshot for a discounted price: discounted pric
|
|
|
82
82
|
"paddingBottom": 0,
|
|
83
83
|
"paddingLeft": 0,
|
|
84
84
|
"paddingRight": 0,
|
|
85
|
-
"paddingTop":
|
|
85
|
+
"paddingTop": 4,
|
|
86
86
|
},
|
|
87
87
|
]
|
|
88
88
|
}
|
|
@@ -154,7 +154,7 @@ exports[`Price atom matches the snapshot for a non-discounted price: non-discoun
|
|
|
154
154
|
"paddingBottom": 0,
|
|
155
155
|
"paddingLeft": 0,
|
|
156
156
|
"paddingRight": 0,
|
|
157
|
-
"paddingTop":
|
|
157
|
+
"paddingTop": 4,
|
|
158
158
|
},
|
|
159
159
|
]
|
|
160
160
|
}
|
|
@@ -7,7 +7,7 @@ import { Column, Row } from "@lookiero/sty-psp-ui";
|
|
|
7
7
|
import { CheckoutItemProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
|
|
8
8
|
import { size } from "../../../../../../projection/size/size";
|
|
9
9
|
import { useMediaImage } from "../../../../hooks/useMediaImage";
|
|
10
|
-
import {
|
|
10
|
+
import { I18nMessages } from "../../../../i18n/i18n";
|
|
11
11
|
import { Price } from "../price/Price";
|
|
12
12
|
import { IMAGE_SIZE, style } from "./ProductVariantPreview.style";
|
|
13
13
|
|
|
@@ -20,8 +20,8 @@ const ProductVariantPreview: FC<ProductVariantPreviewProps> = ({ item, country }
|
|
|
20
20
|
const cdnImageUrl = useMediaImage();
|
|
21
21
|
const { screen } = useDevice();
|
|
22
22
|
|
|
23
|
-
const sizeText = useI18nMessage({
|
|
24
|
-
const uniqueText = useI18nMessage({
|
|
23
|
+
const sizeText = useI18nMessage({ id: I18nMessages.ITEM_SIZE });
|
|
24
|
+
const uniqueText = useI18nMessage({ id: I18nMessages.ITEM_UNIQUE });
|
|
25
25
|
|
|
26
26
|
const {
|
|
27
27
|
productVariant: { media, brand, name, size: sizeProjection },
|
|
@@ -2,7 +2,7 @@ import { StyleSheet } from "react-native";
|
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
import { HEADER_HEIGHT } from "../../../../components/templates/header/Header.style";
|
|
4
4
|
|
|
5
|
-
const { borderRadius5, colorBgPrimaryLight, colorBgBase, colorTextMedium,
|
|
5
|
+
const { borderRadius5, colorBgPrimaryLight, colorBgBase, colorTextMedium, space4, space6, space8 } = theme();
|
|
6
6
|
|
|
7
7
|
const style = StyleSheet.create({
|
|
8
8
|
background: {
|
|
@@ -27,7 +27,6 @@ const style = StyleSheet.create({
|
|
|
27
27
|
},
|
|
28
28
|
info: {
|
|
29
29
|
backgroundColor: colorBgBase,
|
|
30
|
-
gap: space1,
|
|
31
30
|
paddingBottom: space4,
|
|
32
31
|
paddingHorizontal: space6,
|
|
33
32
|
paddingTop: space8,
|
package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx
CHANGED
|
@@ -32,9 +32,9 @@ import { HostStackReturnQuestionItem } from "../../../../components/organisms/re
|
|
|
32
32
|
import { RadioReturnQuestionItem } from "../../../../components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem";
|
|
33
33
|
import { TextareaReturnQuestionItem } from "../../../../components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem";
|
|
34
34
|
import { ItemDetailHeader } from "../../../../components/templates/header/itemDetailHeader/ItemDetailHeader";
|
|
35
|
-
import {
|
|
35
|
+
import { useStaticInfo } from "../../../../hooks/useStaticInfo";
|
|
36
|
+
import { I18nMessages } from "../../../../i18n/i18n";
|
|
36
37
|
import { Routes } from "../../../../routing/routes";
|
|
37
|
-
import { useBasePath } from "../../../../routing/useBasePath";
|
|
38
38
|
import { ProductVariantPreview } from "../productVariantPreview/ProductVariantPreview";
|
|
39
39
|
import { style } from "./ReturnQuestionsForm.style";
|
|
40
40
|
|
|
@@ -65,14 +65,14 @@ const ReturnQuestionsForm: FC<ReturnQuestionsFormProps> = ({
|
|
|
65
65
|
segment,
|
|
66
66
|
}) => {
|
|
67
67
|
const navigate = useNavigate();
|
|
68
|
-
const basePath =
|
|
68
|
+
const { basePath } = useStaticInfo();
|
|
69
69
|
const logger = useLogger();
|
|
70
70
|
|
|
71
71
|
const { screen } = useDevice();
|
|
72
72
|
|
|
73
|
-
const titleText = useI18nMessage({
|
|
74
|
-
const descriptionText = useI18nMessage({
|
|
75
|
-
const submitButtonText = useI18nMessage({
|
|
73
|
+
const titleText = useI18nMessage({ id: I18nMessages.RETURN_QUESTIONS_TITLE });
|
|
74
|
+
const descriptionText = useI18nMessage({ id: I18nMessages.RETURN_QUESTIONS_DESCRIPTION });
|
|
75
|
+
const submitButtonText = useI18nMessage({ id: I18nMessages.RETURN_QUESTIONS_SUBMIT_BUTTON });
|
|
76
76
|
|
|
77
77
|
const feedback = useReturnQuestionFeedback();
|
|
78
78
|
const [returnQuestions] = useListReturnQuestionsByCheckoutItemId({
|
|
@@ -10,7 +10,7 @@ import { PriceProjection } from "../../../../../../projection/price/price";
|
|
|
10
10
|
import { size, SizeProjection } from "../../../../../../projection/size/size";
|
|
11
11
|
import { Price } from "../../../../components/atoms/price/Price";
|
|
12
12
|
import { useMediaImage } from "../../../../hooks/useMediaImage";
|
|
13
|
-
import { COLOR_I18N_PREFIX,
|
|
13
|
+
import { COLOR_I18N_PREFIX, I18nMessages } from "../../../../i18n/i18n";
|
|
14
14
|
import { IMAGE_WIDTH, style } from "./ProductVariant.style";
|
|
15
15
|
|
|
16
16
|
interface ProductVariantStyle {
|
|
@@ -41,9 +41,9 @@ const ProductVariant: FC<ProductVariantProps> = ({
|
|
|
41
41
|
style: customStyle,
|
|
42
42
|
onPress,
|
|
43
43
|
}) => {
|
|
44
|
-
const uniqueText = useI18nMessage({
|
|
45
|
-
const colorLabel = useI18nMessage({
|
|
46
|
-
const sizeChangeText = useI18nMessage({
|
|
44
|
+
const uniqueText = useI18nMessage({ id: I18nMessages.ITEM_UNIQUE });
|
|
45
|
+
const colorLabel = useI18nMessage({ id: color.name, prefix: COLOR_I18N_PREFIX });
|
|
46
|
+
const sizeChangeText = useI18nMessage({ id: I18nMessages.PRODUCT_VARIANT_SIZE_CHANGE });
|
|
47
47
|
|
|
48
48
|
const cdnImageUrl = useMediaImage();
|
|
49
49
|
|
|
@@ -141,20 +141,20 @@ exports[`ProductVariant component matches the snapshot for a non-unique size: no
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
>
|
|
144
|
-
<
|
|
144
|
+
<View
|
|
145
145
|
colors={
|
|
146
146
|
[
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
"rgba(255, 255, 255, 0)",
|
|
148
|
+
"#DAD8D8",
|
|
149
|
+
"#DAD8D8",
|
|
150
|
+
"rgba(255, 255, 255, 0)",
|
|
151
151
|
]
|
|
152
152
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
1,
|
|
156
|
-
0,
|
|
157
|
-
|
|
153
|
+
end={
|
|
154
|
+
{
|
|
155
|
+
"x": 1,
|
|
156
|
+
"y": 0,
|
|
157
|
+
}
|
|
158
158
|
}
|
|
159
159
|
locations={
|
|
160
160
|
[
|
|
@@ -164,11 +164,11 @@ exports[`ProductVariant component matches the snapshot for a non-unique size: no
|
|
|
164
164
|
1,
|
|
165
165
|
]
|
|
166
166
|
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
0,
|
|
170
|
-
0,
|
|
171
|
-
|
|
167
|
+
start={
|
|
168
|
+
{
|
|
169
|
+
"x": 0,
|
|
170
|
+
"y": 0,
|
|
171
|
+
}
|
|
172
172
|
}
|
|
173
173
|
style={
|
|
174
174
|
{
|
|
@@ -491,20 +491,20 @@ exports[`ProductVariant component matches the snapshot for an unique size: uniqu
|
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
>
|
|
494
|
-
<
|
|
494
|
+
<View
|
|
495
495
|
colors={
|
|
496
496
|
[
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
497
|
+
"rgba(255, 255, 255, 0)",
|
|
498
|
+
"#DAD8D8",
|
|
499
|
+
"#DAD8D8",
|
|
500
|
+
"rgba(255, 255, 255, 0)",
|
|
501
501
|
]
|
|
502
502
|
}
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
1,
|
|
506
|
-
0,
|
|
507
|
-
|
|
503
|
+
end={
|
|
504
|
+
{
|
|
505
|
+
"x": 1,
|
|
506
|
+
"y": 0,
|
|
507
|
+
}
|
|
508
508
|
}
|
|
509
509
|
locations={
|
|
510
510
|
[
|
|
@@ -514,11 +514,11 @@ exports[`ProductVariant component matches the snapshot for an unique size: uniqu
|
|
|
514
514
|
1,
|
|
515
515
|
]
|
|
516
516
|
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
0,
|
|
520
|
-
0,
|
|
521
|
-
|
|
517
|
+
start={
|
|
518
|
+
{
|
|
519
|
+
"x": 0,
|
|
520
|
+
"y": 0,
|
|
521
|
+
}
|
|
522
522
|
}
|
|
523
523
|
style={
|
|
524
524
|
{
|