@lookiero/checkout 0.4.0-beta.0 → 0.4.0-beta.2
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/domain/checkout/model/checkout.d.ts +5 -2
- package/dist/domain/checkout/model/checkout.js +13 -1
- package/dist/domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem.d.ts +0 -1
- package/dist/domain/checkoutBooking/model/checkoutBooking.d.ts +0 -1
- package/dist/domain/checkoutItem/model/checkoutItem.js +4 -4
- package/dist/domain/checkoutItem/model/feedbacks.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -3
- package/dist/infrastructure/delivery/baseBootstrap.d.ts +17 -4
- package/dist/infrastructure/delivery/baseBootstrap.js +19 -2
- package/dist/infrastructure/delivery/bootstrap.d.ts +1 -1
- package/dist/infrastructure/delivery/bootstrap.js +19 -3
- package/dist/infrastructure/delivery/http/fetchHttpClient.d.ts +1 -1
- package/dist/infrastructure/delivery/http/fetchHttpClient.js +4 -4
- package/dist/infrastructure/delivery/mock/dataSourceCheckoutBookings.js +2 -4
- package/dist/infrastructure/delivery/mock/dataSourceCheckoutItems.js +2 -2
- package/dist/infrastructure/domain/checkout/model/httpCheckouts.js +7 -1
- package/dist/infrastructure/domain/checkout/react/useStartCheckout.d.ts +1 -1
- package/dist/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.js +0 -1
- package/dist/infrastructure/domain/checkoutBooking/model/httpCheckoutBookingsBook.js +2 -3
- package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.d.ts +1 -3
- package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.js +3 -4
- package/dist/infrastructure/domain/checkoutItem/model/httpCheckoutItems.js +1 -1
- package/dist/infrastructure/domain/checkoutItem/react/useKeepCheckoutItem.d.ts +1 -1
- package/dist/infrastructure/domain/checkoutItem/react/useReplaceCheckoutItem.d.ts +1 -1
- package/dist/infrastructure/domain/checkoutItem/react/useReturnCheckoutItem.d.ts +1 -1
- package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +1 -1
- package/dist/infrastructure/domain/uiSetting/react/useUpdateUiSetting.d.ts +1 -1
- package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.js +3 -0
- package/dist/infrastructure/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.js +12 -1
- package/dist/infrastructure/ui/Root.d.ts +6 -0
- package/dist/infrastructure/ui/Root.js +4 -3
- package/dist/infrastructure/ui/components/atoms/price/Price.d.ts +3 -3
- package/dist/infrastructure/ui/components/layouts/body/Body.d.ts +1 -1
- package/dist/infrastructure/ui/components/layouts/body/Body.js +2 -2
- package/dist/infrastructure/ui/components/layouts/tabs/Tabs.js +1 -1
- package/dist/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.js +2 -1
- package/dist/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.d.ts +1 -1
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.d.ts +1 -1
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +3 -3
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +1 -1
- package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.d.ts +3 -0
- package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.js +10 -6
- package/dist/infrastructure/ui/i18n/i18n.d.ts +28 -2
- package/dist/infrastructure/ui/i18n/i18n.js +27 -1
- package/dist/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +1 -1
- package/dist/infrastructure/ui/routing/CheckoutMiddleware.d.ts +0 -1
- package/dist/infrastructure/ui/routing/CheckoutMiddleware.js +31 -8
- package/dist/infrastructure/ui/routing/Routing.d.ts +6 -2
- package/dist/infrastructure/ui/routing/Routing.js +26 -7
- package/dist/infrastructure/ui/routing/routes.d.ts +5 -1
- package/dist/infrastructure/ui/routing/routes.js +4 -0
- package/dist/infrastructure/ui/theme/theme.d.ts +2 -2
- package/dist/infrastructure/ui/views/App.d.ts +3 -0
- package/dist/infrastructure/ui/views/App.js +9 -2
- package/dist/infrastructure/ui/views/intro/Intro.d.ts +1 -1
- package/dist/infrastructure/ui/views/intro/Intro.js +1 -1
- package/dist/infrastructure/ui/views/item/Item.js +23 -16
- package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +1 -1
- package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +5 -5
- package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +3 -11
- package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +4 -12
- package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +1 -1
- package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.d.ts +2 -3
- package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.js +3 -5
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.d.ts +12 -1
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.js +28 -17
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.d.ts +22 -0
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.js +23 -1
- package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +2 -1
- package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +1 -1
- package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.d.ts +0 -2
- package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +5 -7
- package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +2 -2
- package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +11 -11
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +1 -1
- package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +1 -1
- package/dist/infrastructure/ui/views/summary/Summary.js +39 -6
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.d.ts +3 -1
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.js +11 -10
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +3 -0
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +4 -1
- package/dist/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.d.ts +1 -4
- package/dist/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.d.ts +1 -1
- package/dist/projection/checkout/viewCheckoutById.d.ts +1 -1
- package/dist/projection/checkout/viewFirstAvailableCheckoutByCustomerId.d.ts +1 -1
- package/dist/projection/checkout/viewFiveItemsDiscountByCustomerId.d.ts +1 -1
- package/dist/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +1 -1
- package/dist/projection/checkout/viewIsCheckoutEnabledByCustomerId.d.ts +1 -1
- package/dist/projection/checkoutBooking/checkoutBooking.d.ts +0 -1
- package/dist/projection/checkoutBooking/viewCheckoutBookingById.d.ts +1 -1
- package/dist/projection/checkoutItem/checkoutItem.d.ts +4 -12
- package/dist/projection/checkoutItem/checkoutItem.js +1 -2
- package/dist/projection/checkoutItem/viewCheckoutItemById.d.ts +1 -1
- package/dist/projection/feedback/feedback.d.ts +2 -2
- package/dist/projection/returnQuestion/listReturnQuestionsByCheckoutItemId.d.ts +1 -1
- package/dist/projection/uiSetting/viewUiSettingByKey.d.ts +1 -1
- package/package.json +1 -1
- package/dist/domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -15
- package/dist/domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.js +0 -7
- package/dist/infrastructure/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -15
- package/dist/infrastructure/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.js +0 -14
- package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.d.ts +0 -3
- package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.js +0 -17
- package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.d.ts +0 -34
- package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.js +0 -26
- package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -10
- package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -9
- package/dist/infrastructure/projection/checkoutItem/checkoutItem.d.ts +0 -45
- package/dist/infrastructure/projection/checkoutItem/checkoutItem.js +0 -40
- package/dist/infrastructure/projection/feedback/feedback.mock.d.ts +0 -3
- package/dist/infrastructure/projection/feedback/feedback.mock.js +0 -6
- package/dist/infrastructure/projection/returnQuestion/returnQuestion.d.ts +0 -14
- package/dist/infrastructure/projection/returnQuestion/returnQuestion.js +0 -9
- package/dist/infrastructure/ui/shared/components/atoms/error/Error.d.ts +0 -10
- package/dist/infrastructure/ui/shared/components/atoms/error/Error.style.js +0 -9
- package/dist/infrastructure/ui/shared/components/atoms/field/Field.d.ts +0 -14
- package/dist/infrastructure/ui/shared/components/atoms/field/Field.js +0 -29
- package/dist/infrastructure/ui/shared/components/atoms/field/Field.style.js +0 -17
- package/dist/infrastructure/ui/shared/components/atoms/icon/Icon.d.ts +0 -12
- package/dist/infrastructure/ui/shared/components/atoms/icon/Icon.js +0 -7
- package/dist/infrastructure/ui/shared/components/atoms/icon/Icon.style.js +0 -16
- package/dist/infrastructure/ui/shared/components/atoms/input/Input.d.ts +0 -11
- package/dist/infrastructure/ui/shared/components/atoms/input/Input.js +0 -37
- package/dist/infrastructure/ui/shared/components/atoms/input/Input.style.js +0 -26
- package/dist/infrastructure/ui/shared/components/atoms/spinner/Spinner.js +0 -8
- package/dist/infrastructure/ui/shared/components/layouts/column/Column.d.ts +0 -10
- package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.d.ts +0 -20
- package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.js +0 -79
- package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.style.js +0 -70
- package/dist/infrastructure/ui/shared/components/layouts/row/Row.style.js +0 -17
- package/dist/infrastructure/ui/shared/components/layouts/slider/Pagination.style.js +0 -27
- package/dist/infrastructure/ui/shared/components/layouts/sticky/Sticky.js +0 -12
- package/dist/infrastructure/ui/shared/components/layouts/sticky/Sticky.style.js +0 -33
- package/dist/infrastructure/ui/shared/components/molecules/buttonIcon/ButtonIcon.style.js +0 -10
- package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.d.ts +0 -25
- package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.js +0 -26
- package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.style.js +0 -20
- package/dist/infrastructure/ui/shared/components/molecules/selectField/SelectField.js +0 -26
- package/dist/infrastructure/ui/shared/components/molecules/selectField/SelectField.style.js +0 -18
- package/dist/infrastructure/ui/shared/hooks/useScreenSize.d.ts +0 -4
- package/dist/package.json +0 -117
- package/dist/projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -33
- package/dist/projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -8
- package/dist/src/ExpoRoot.d.ts +0 -5
- package/dist/src/ExpoRoot.js +0 -105
- package/dist/src/domain/checkout/command/startCheckout.d.ts +0 -13
- package/dist/src/domain/checkout/command/startCheckout.js +0 -4
- package/dist/src/domain/checkout/model/checkout.d.ts +0 -21
- package/dist/src/domain/checkout/model/checkout.js +0 -32
- package/dist/src/domain/checkout/model/checkoutStarted.d.ts +0 -13
- package/dist/src/domain/checkout/model/checkoutStarted.js +0 -4
- package/dist/src/domain/checkout/model/checkouts.d.ts +0 -7
- package/dist/src/domain/checkout/model/checkouts.js +0 -1
- package/dist/src/domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem.d.ts +0 -14
- package/dist/src/domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem.js +0 -7
- package/dist/src/domain/checkoutBooking/model/checkoutBooking.d.ts +0 -8
- package/dist/src/domain/checkoutBooking/model/checkoutBooking.js +0 -9
- package/dist/src/domain/checkoutBooking/model/checkoutBookingBooked.d.ts +0 -14
- package/dist/src/domain/checkoutBooking/model/checkoutBookingBooked.js +0 -7
- package/dist/src/domain/checkoutBooking/model/checkoutBookings.d.ts +0 -7
- package/dist/src/domain/checkoutBooking/model/checkoutBookings.js +0 -1
- package/dist/src/domain/checkoutItem/command/keepCheckoutItem.d.ts +0 -13
- package/dist/src/domain/checkoutItem/command/keepCheckoutItem.js +0 -4
- package/dist/src/domain/checkoutItem/command/replaceCheckoutItem.d.ts +0 -14
- package/dist/src/domain/checkoutItem/command/replaceCheckoutItem.js +0 -7
- package/dist/src/domain/checkoutItem/command/returnCheckoutItem.d.ts +0 -15
- package/dist/src/domain/checkoutItem/command/returnCheckoutItem.js +0 -7
- package/dist/src/domain/checkoutItem/model/checkoutItem.d.ts +0 -24
- package/dist/src/domain/checkoutItem/model/checkoutItem.js +0 -40
- package/dist/src/domain/checkoutItem/model/checkoutItemKept.d.ts +0 -13
- package/dist/src/domain/checkoutItem/model/checkoutItemKept.js +0 -4
- package/dist/src/domain/checkoutItem/model/checkoutItemReplaced.d.ts +0 -13
- package/dist/src/domain/checkoutItem/model/checkoutItemReplaced.js +0 -4
- package/dist/src/domain/checkoutItem/model/checkoutItemReturned.d.ts +0 -13
- package/dist/src/domain/checkoutItem/model/checkoutItemReturned.js +0 -4
- package/dist/src/domain/checkoutItem/model/checkoutItems.d.ts +0 -7
- package/dist/src/domain/checkoutItem/model/checkoutItems.js +0 -1
- package/dist/src/domain/checkoutItem/model/currency.d.ts +0 -5
- package/dist/src/domain/checkoutItem/model/currency.js +0 -6
- package/dist/src/domain/checkoutItem/model/feedbacks.d.ts +0 -3
- package/dist/src/domain/checkoutItem/model/feedbacks.js +0 -1
- package/dist/src/domain/checkoutItem/model/price.d.ts +0 -10
- package/dist/src/domain/uiSetting/command/updateUiSetting.d.ts +0 -15
- package/dist/src/domain/uiSetting/command/updateUiSetting.js +0 -10
- package/dist/src/domain/uiSetting/model/uiSetting.d.ts +0 -9
- package/dist/src/domain/uiSetting/model/uiSetting.js +0 -11
- package/dist/src/domain/uiSetting/model/uiSettingUpdated.d.ts +0 -14
- package/dist/src/domain/uiSetting/model/uiSettingUpdated.js +0 -7
- package/dist/src/domain/uiSetting/model/uiSettings.d.ts +0 -7
- package/dist/src/domain/uiSetting/model/uiSettings.js +0 -1
- package/dist/src/index.d.ts +0 -24
- package/dist/src/index.js +0 -22
- package/dist/src/infrastructure/delivery/baseBootstrap.d.ts +0 -69
- package/dist/src/infrastructure/delivery/baseBootstrap.js +0 -72
- package/dist/src/infrastructure/delivery/bootstrap.d.ts +0 -10
- package/dist/src/infrastructure/delivery/bootstrap.js +0 -60
- package/dist/src/infrastructure/delivery/http/fetchHttpClient.d.ts +0 -14
- package/dist/src/infrastructure/delivery/http/fetchHttpClient.js +0 -20
- package/dist/src/infrastructure/delivery/http/httpClient.d.ts +0 -16
- package/dist/src/infrastructure/delivery/http/httpClient.js +0 -1
- package/dist/src/infrastructure/delivery/mock/checkoutBookingDataSource.d.ts +0 -14
- package/dist/src/infrastructure/delivery/mock/checkoutBookingDataSource.js +0 -12
- package/dist/src/infrastructure/delivery/mock/checkoutDataSource.d.ts +0 -17
- package/dist/src/infrastructure/delivery/mock/checkoutDataSource.js +0 -18
- package/dist/src/infrastructure/delivery/mock/dataSourceCheckoutBookings.d.ts +0 -14
- package/dist/src/infrastructure/delivery/mock/dataSourceCheckoutBookings.js +0 -19
- package/dist/src/infrastructure/delivery/mock/dataSourceCheckoutItems.d.ts +0 -14
- package/dist/src/infrastructure/delivery/mock/dataSourceCheckoutItems.js +0 -25
- package/dist/src/infrastructure/delivery/mock/dataSourceCheckouts.d.ts +0 -11
- package/dist/src/infrastructure/delivery/mock/dataSourceCheckouts.js +0 -27
- package/dist/src/infrastructure/domain/checkout/model/httpCheckouts.d.ts +0 -16
- package/dist/src/infrastructure/domain/checkout/model/httpCheckouts.js +0 -25
- package/dist/src/infrastructure/domain/checkout/model/httpCheckoutsStart.d.ts +0 -5
- package/dist/src/infrastructure/domain/checkout/model/httpCheckoutsStart.js +0 -13
- package/dist/src/infrastructure/domain/checkout/react/useStartCheckout.d.ts +0 -13
- package/dist/src/infrastructure/domain/checkout/react/useStartCheckout.js +0 -10
- package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.d.ts +0 -16
- package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.js +0 -14
- package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookingsBook.d.ts +0 -5
- package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookingsBook.js +0 -17
- package/dist/src/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.d.ts +0 -13
- package/dist/src/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.js +0 -14
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItems.d.ts +0 -16
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItems.js +0 -26
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsKeep.d.ts +0 -5
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsKeep.js +0 -13
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsReplace.d.ts +0 -5
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsReplace.js +0 -13
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsReturn.d.ts +0 -5
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsReturn.js +0 -13
- package/dist/src/infrastructure/domain/checkoutItem/react/useKeepCheckoutItem.d.ts +0 -13
- package/dist/src/infrastructure/domain/checkoutItem/react/useKeepCheckoutItem.js +0 -12
- package/dist/src/infrastructure/domain/checkoutItem/react/useReplaceCheckoutItem.d.ts +0 -16
- package/dist/src/infrastructure/domain/checkoutItem/react/useReplaceCheckoutItem.js +0 -13
- package/dist/src/infrastructure/domain/checkoutItem/react/useReturnCheckoutItem.d.ts +0 -17
- package/dist/src/infrastructure/domain/checkoutItem/react/useReturnCheckoutItem.js +0 -13
- package/dist/src/infrastructure/domain/uiSetting/model/storageUiSettings.d.ts +0 -17
- package/dist/src/infrastructure/domain/uiSetting/model/storageUiSettings.js +0 -20
- package/dist/src/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +0 -10
- package/dist/src/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.js +0 -11
- package/dist/src/infrastructure/domain/uiSetting/react/useUpdateUiSetting.d.ts +0 -14
- package/dist/src/infrastructure/domain/uiSetting/react/useUpdateUiSetting.js +0 -15
- package/dist/src/infrastructure/persistence/asyncStorageStorage.d.ts +0 -5
- package/dist/src/infrastructure/persistence/asyncStorageStorage.js +0 -7
- package/dist/src/infrastructure/persistence/storage.d.ts +0 -7
- package/dist/src/infrastructure/persistence/uiSettingData.d.ts +0 -6
- package/dist/src/infrastructure/persistence/uiSettingData.js +0 -1
- package/dist/src/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.d.ts +0 -12
- package/dist/src/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.js +0 -9
- package/dist/src/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.d.ts +0 -10
- package/dist/src/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.js +0 -12
- package/dist/src/infrastructure/projection/checkout/checkout.d.ts +0 -18
- package/dist/src/infrastructure/projection/checkout/checkout.js +0 -5
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.d.ts +0 -12
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.js +0 -10
- package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.d.ts +0 -12
- package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.js +0 -10
- package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.d.ts +0 -12
- package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.js +0 -8
- package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.d.ts +0 -12
- package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.js +0 -8
- package/dist/src/infrastructure/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.d.ts +0 -10
- package/dist/src/infrastructure/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.js +0 -25
- package/dist/src/infrastructure/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.d.ts +0 -10
- package/dist/src/infrastructure/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.js +0 -9
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +0 -10
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +0 -9
- package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.d.ts +0 -12
- package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.js +0 -9
- package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.d.ts +0 -12
- package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.js +0 -9
- package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.d.ts +0 -12
- package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.js +0 -9
- package/dist/src/infrastructure/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.d.ts +0 -10
- package/dist/src/infrastructure/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.js +0 -9
- package/dist/src/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.d.ts +0 -6
- package/dist/src/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.js +0 -7
- package/dist/src/infrastructure/projection/uiSetting/react/useViewIntroShownCount.d.ts +0 -6
- package/dist/src/infrastructure/projection/uiSetting/react/useViewIntroShownCount.js +0 -9
- package/dist/src/infrastructure/projection/uiSetting/react/useViewUiSettingByKey.d.ts +0 -10
- package/dist/src/infrastructure/projection/uiSetting/react/useViewUiSettingByKey.js +0 -12
- package/dist/src/infrastructure/projection/uiSetting/storageUiSettingByKeyView.d.ts +0 -13
- package/dist/src/infrastructure/projection/uiSetting/storageUiSettingByKeyView.js +0 -15
- package/dist/src/infrastructure/ui/Root.d.ts +0 -26
- package/dist/src/infrastructure/ui/Root.js +0 -12
- package/dist/src/infrastructure/ui/components/atoms/price/Price.d.ts +0 -12
- package/dist/src/infrastructure/ui/components/atoms/price/Price.js +0 -28
- package/dist/src/infrastructure/ui/components/atoms/price/Price.style.d.ts +0 -13
- package/dist/src/infrastructure/ui/components/atoms/price/Price.style.js +0 -16
- package/dist/src/infrastructure/ui/components/layouts/body/Body.d.ts +0 -9
- package/dist/src/infrastructure/ui/components/layouts/body/Body.js +0 -7
- package/dist/src/infrastructure/ui/components/layouts/body/Body.style.d.ts +0 -7
- package/dist/src/infrastructure/ui/components/layouts/body/Body.style.js +0 -8
- package/dist/src/infrastructure/ui/components/layouts/tabs/Tabs.d.ts +0 -26
- package/dist/src/infrastructure/ui/components/layouts/tabs/Tabs.js +0 -47
- package/dist/src/infrastructure/ui/components/layouts/tabs/Tabs.style.d.ts +0 -32
- package/dist/src/infrastructure/ui/components/layouts/tabs/Tabs.style.js +0 -35
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestion.d.ts +0 -9
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestion.js +0 -8
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestions.d.ts +0 -8
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestions.js +0 -4
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.d.ts +0 -29
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.js +0 -28
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.d.ts +0 -18
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.js +0 -12
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.d.ts +0 -10
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.js +0 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.js +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +0 -12
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +0 -8
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +0 -11
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +0 -34
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.d.ts +0 -11
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.js +0 -14
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.js +0 -27
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.d.ts +0 -12
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.js +0 -15
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +0 -15
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +0 -12
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +0 -15
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +0 -26
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.d.ts +0 -10
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.js +0 -13
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +0 -13
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.d.ts +0 -22
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.js +0 -58
- package/dist/src/infrastructure/ui/components/templates/SafeAreaScrollView.d.ts +0 -11
- package/dist/src/infrastructure/ui/components/templates/SafeAreaScrollView.js +0 -18
- package/dist/src/infrastructure/ui/hooks/useMediaImage.d.ts +0 -7
- package/dist/src/infrastructure/ui/hooks/useMediaImage.js +0 -12
- package/dist/src/infrastructure/ui/i18n/i18n.d.ts +0 -65
- package/dist/src/infrastructure/ui/i18n/i18n.js +0 -66
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.d.ts +0 -9
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +0 -21
- package/dist/src/infrastructure/ui/routing/CheckoutMiddleware.d.ts +0 -8
- package/dist/src/infrastructure/ui/routing/CheckoutMiddleware.js +0 -70
- package/dist/src/infrastructure/ui/routing/Routing.d.ts +0 -16
- package/dist/src/infrastructure/ui/routing/Routing.js +0 -64
- package/dist/src/infrastructure/ui/routing/router/Router.d.ts +0 -1
- package/dist/src/infrastructure/ui/routing/router/Router.js +0 -1
- package/dist/src/infrastructure/ui/routing/router/Router.native.d.ts +0 -1
- package/dist/src/infrastructure/ui/routing/router/Router.native.js +0 -1
- package/dist/src/infrastructure/ui/routing/routes.d.ts +0 -10
- package/dist/src/infrastructure/ui/routing/routes.js +0 -11
- package/dist/src/infrastructure/ui/settings/UISettings.d.ts +0 -4
- package/dist/src/infrastructure/ui/settings/UISettings.js +0 -5
- package/dist/src/infrastructure/ui/theme/theme.d.ts +0 -10
- package/dist/src/infrastructure/ui/theme/theme.js +0 -5
- package/dist/src/infrastructure/ui/views/App.d.ts +0 -9
- package/dist/src/infrastructure/ui/views/App.js +0 -13
- package/dist/src/infrastructure/ui/views/intro/Intro.d.ts +0 -6
- package/dist/src/infrastructure/ui/views/intro/Intro.js +0 -51
- package/dist/src/infrastructure/ui/views/intro/Intro.style.d.ts +0 -52
- package/dist/src/infrastructure/ui/views/intro/Intro.style.js +0 -55
- package/dist/src/infrastructure/ui/views/item/Item.d.ts +0 -7
- package/dist/src/infrastructure/ui/views/item/Item.js +0 -104
- package/dist/src/infrastructure/ui/views/item/Item.style.d.ts +0 -15
- package/dist/src/infrastructure/ui/views/item/Item.style.js +0 -18
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +0 -10
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +0 -21
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +0 -9
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +0 -12
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.d.ts +0 -8
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +0 -34
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +0 -19
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +0 -22
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.d.ts +0 -17
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +0 -31
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.d.ts +0 -21
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.js +0 -24
- package/dist/src/infrastructure/ui/views/item/components/productVariant/ProductVariant.d.ts +0 -24
- package/dist/src/infrastructure/ui/views/item/components/productVariant/ProductVariant.js +0 -41
- package/dist/src/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.d.ts +0 -45
- package/dist/src/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.js +0 -49
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +0 -13
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +0 -26
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +0 -19
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +0 -22
- package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.d.ts +0 -7
- package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +0 -22
- package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +0 -25
- package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +0 -29
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.d.ts +0 -8
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +0 -30
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +0 -12
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +0 -15
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +0 -15
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +0 -46
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -11
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +0 -14
- package/dist/src/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.d.ts +0 -7
- package/dist/src/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +0 -25
- package/dist/src/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +0 -16
- package/dist/src/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +0 -19
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.d.ts +0 -7
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +0 -25
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +0 -16
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +0 -19
- package/dist/src/infrastructure/ui/views/summary/Summary.d.ts +0 -6
- package/dist/src/infrastructure/ui/views/summary/Summary.js +0 -51
- package/dist/src/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.d.ts +0 -9
- package/dist/src/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.js +0 -21
- package/dist/src/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +0 -12
- package/dist/src/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +0 -15
- package/dist/src/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.d.ts +0 -10
- package/dist/src/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.js +0 -1
- package/dist/src/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.d.ts +0 -25
- package/dist/src/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.js +0 -8
- package/dist/src/projection/checkout/checkout.d.ts +0 -12
- package/dist/src/projection/checkout/checkout.js +0 -1
- package/dist/src/projection/checkout/viewCheckoutById.d.ts +0 -25
- package/dist/src/projection/checkout/viewCheckoutById.js +0 -8
- package/dist/src/projection/checkout/viewFirstAvailableCheckoutByCustomerId.d.ts +0 -25
- package/dist/src/projection/checkout/viewFirstAvailableCheckoutByCustomerId.js +0 -8
- package/dist/src/projection/checkout/viewFiveItemsDiscountByCustomerId.d.ts +0 -24
- package/dist/src/projection/checkout/viewFiveItemsDiscountByCustomerId.js +0 -8
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +0 -17
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.js +0 -13
- package/dist/src/projection/checkout/viewIsCheckoutEnabledByCustomerId.d.ts +0 -24
- package/dist/src/projection/checkout/viewIsCheckoutEnabledByCustomerId.js +0 -8
- package/dist/src/projection/checkoutBooking/checkoutBooking.d.ts +0 -5
- package/dist/src/projection/checkoutBooking/checkoutBooking.js +0 -1
- package/dist/src/projection/checkoutBooking/viewCheckoutBookingById.d.ts +0 -25
- package/dist/src/projection/checkoutBooking/viewCheckoutBookingById.js +0 -8
- package/dist/src/projection/checkoutItem/checkoutItem.d.ts +0 -45
- package/dist/src/projection/checkoutItem/checkoutItem.js +0 -16
- package/dist/src/projection/checkoutItem/viewCheckoutItemById.d.ts +0 -25
- package/dist/src/projection/checkoutItem/viewCheckoutItemById.js +0 -8
- package/dist/src/projection/feedback/feedback.d.ts +0 -3
- package/dist/src/projection/feedback/feedback.js +0 -1
- package/dist/src/projection/returnQuestion/listReturnQuestionsByCheckoutItemId.d.ts +0 -25
- package/dist/src/projection/returnQuestion/listReturnQuestionsByCheckoutItemId.js +0 -8
- package/dist/src/projection/returnQuestion/returnQuestion.d.ts +0 -17
- package/dist/src/projection/returnQuestion/returnQuestion.js +0 -11
- package/dist/src/projection/shared/price.js +0 -1
- package/dist/src/projection/shared/size.d.ts +0 -10
- package/dist/src/projection/shared/size.js +0 -1
- package/dist/src/projection/uiSetting/viewUiSettingByKey.d.ts +0 -29
- package/dist/src/projection/uiSetting/viewUiSettingByKey.js +0 -8
- package/dist/src/shared/notifications/infrastructure/persistence/storage.js +0 -1
- package/dist/src/shared/ui/components/atoms/error/Error.js +0 -5
- package/dist/src/shared/ui/components/atoms/error/Error.style.d.ts +0 -6
- package/dist/src/shared/ui/components/atoms/field/Field.style.d.ts +0 -14
- package/dist/src/shared/ui/components/atoms/icon/Icon.style.d.ts +0 -13
- package/dist/src/shared/ui/components/atoms/input/Input.style.d.ts +0 -19
- package/dist/src/shared/ui/components/atoms/spinner/Spinner.d.ts +0 -3
- package/dist/src/shared/ui/components/atoms/spinner/Spinner.style.d.ts +0 -9
- package/dist/src/shared/ui/components/atoms/spinner/Spinner.style.js +0 -10
- package/dist/src/shared/ui/components/layouts/column/Column.js +0 -10
- package/dist/src/shared/ui/components/layouts/column/Column.style.d.ts +0 -12
- package/dist/src/shared/ui/components/layouts/column/Column.style.js +0 -23
- package/dist/src/shared/ui/components/layouts/modal/Modal.style.d.ts +0 -58
- package/dist/src/shared/ui/components/layouts/row/Row.d.ts +0 -6
- package/dist/src/shared/ui/components/layouts/row/Row.js +0 -10
- package/dist/src/shared/ui/components/layouts/row/Row.style.d.ts +0 -13
- package/dist/src/shared/ui/components/layouts/slider/Pagination.d.ts +0 -14
- package/dist/src/shared/ui/components/layouts/slider/Pagination.js +0 -11
- package/dist/src/shared/ui/components/layouts/slider/Pagination.style.d.ts +0 -23
- package/dist/src/shared/ui/components/layouts/slider/Slider.d.ts +0 -20
- package/dist/src/shared/ui/components/layouts/slider/Slider.js +0 -132
- package/dist/src/shared/ui/components/layouts/slider/Slider.style.d.ts +0 -11
- package/dist/src/shared/ui/components/layouts/slider/Slider.style.js +0 -12
- package/dist/src/shared/ui/components/layouts/sticky/Sticky.d.ts +0 -14
- package/dist/src/shared/ui/components/layouts/sticky/Sticky.style.d.ts +0 -46
- package/dist/src/shared/ui/components/molecules/buttonIcon/ButtonIcon.d.ts +0 -16
- package/dist/src/shared/ui/components/molecules/buttonIcon/ButtonIcon.js +0 -7
- package/dist/src/shared/ui/components/molecules/buttonIcon/ButtonIcon.style.d.ts +0 -7
- package/dist/src/shared/ui/components/molecules/inputField/InputField.style.d.ts +0 -17
- package/dist/src/shared/ui/components/molecules/selectField/SelectField.d.ts +0 -26
- package/dist/src/shared/ui/components/molecules/selectField/SelectField.style.d.ts +0 -15
- package/dist/src/shared/ui/hooks/useScreenSize.js +0 -9
- /package/dist/{src/domain → domain}/checkout/command/markCheckoutAsPaid.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkout/command/markCheckoutAsPaid.js +0 -0
- /package/dist/{src/domain → domain}/checkout/model/checkoutPaid.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkout/model/checkoutPaid.js +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/command/giveCheckoutFeedback.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/command/giveCheckoutFeedback.js +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedback.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedback.js +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedbackGiven.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedbackGiven.js +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedbacks.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedbacks.js +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/feedbacks.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/feedbacks.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/mock/checkoutFeedbackDataSource.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/mock/checkoutFeedbackDataSource.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/mock/dataSourceCheckoutFeedbacks.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/mock/dataSourceCheckoutFeedbacks.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkout/model/httpCheckoutsMarkAsPaid.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkout/model/httpCheckoutsMarkAsPaid.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkout/react/useMarkCheckoutAsPaid.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkout/react/useMarkCheckoutAsPaid.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/model/httpCheckoutFeedbacks.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/model/httpCheckoutFeedbacks.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/model/httpCheckoutFeedbacksGive.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/model/httpCheckoutFeedbacksGive.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/react/useGiveCheckoutFeedback.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/react/useGiveCheckoutFeedback.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutQuestion/react/useListCheckoutQuestionsByCheckoutId.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutQuestion/react/useListCheckoutQuestionsByCheckoutId.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/payment/react/useViewPaymentFlowPayloadByCheckoutId.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/payment/react/useViewPaymentFlowPayloadByCheckoutId.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/pricing/httpPricingByCheckoutIdView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/pricing/httpPricingByCheckoutIdView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/pricing/react/useViewPricingByCheckoutId.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/pricing/react/useViewPricingByCheckoutId.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/banner/Banner.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/banner/Banner.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/banner/Banner.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/banner/Banner.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/CheckoutQuestion.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/CheckoutQuestion.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/CheckoutQuestions.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/CheckoutQuestions.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionFeedback.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionFeedback.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/CheckoutQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/CheckoutQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/icon.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/icon.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/useBasePath.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/useBasePath.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/App.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/App.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/Checkout.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/Checkout.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/Checkout.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/Checkout.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/deliveryBanner/DeliveryBanner.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/deliveryBanner/DeliveryBanner.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/Feedback.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/Feedback.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/Feedback.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/Feedback.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/Header.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/Header.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/Header.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/Header.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/components/Logo.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/components/Logo.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/components/Logo.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/components/Logo.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/Summary.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/Summary.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/Pricing.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/Pricing.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/Pricing.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/Pricing.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/icons/ArrowDown.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/icons/ArrowDown.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/icons/ArrowUp.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/icons/ArrowUp.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.style.js +0 -0
- /package/dist/{src/projection → projection}/checkoutFeedback/checkoutFeedback.d.ts +0 -0
- /package/dist/{src/projection → projection}/checkoutFeedback/checkoutFeedback.js +0 -0
- /package/dist/{src/projection → projection}/checkoutFeedback/viewCheckoutFeedbackByCheckoutId.d.ts +0 -0
- /package/dist/{src/projection → projection}/checkoutFeedback/viewCheckoutFeedbackByCheckoutId.js +0 -0
- /package/dist/{src/projection → projection}/checkoutQuestion/checkoutQuestion.d.ts +0 -0
- /package/dist/{src/projection → projection}/checkoutQuestion/checkoutQuestion.js +0 -0
- /package/dist/{src/projection → projection}/checkoutQuestion/listCheckoutQuestionsByCheckoutId.d.ts +0 -0
- /package/dist/{src/projection → projection}/checkoutQuestion/listCheckoutQuestionsByCheckoutId.js +0 -0
- /package/dist/{src/projection → projection}/payment/paymentFlowPayload.d.ts +0 -0
- /package/dist/{src/projection → projection}/payment/paymentFlowPayload.js +0 -0
- /package/dist/{src/projection → projection}/payment/viewPaymentFlowPayloadByCheckoutId.d.ts +0 -0
- /package/dist/{src/projection → projection}/payment/viewPaymentFlowPayloadByCheckoutId.js +0 -0
- /package/dist/{src/projection → projection}/pricing/pricing.d.ts +0 -0
- /package/dist/{src/projection → projection}/pricing/pricing.js +0 -0
- /package/dist/{src/projection → projection}/pricing/viewPricingByCheckoutId.d.ts +0 -0
- /package/dist/{src/projection → projection}/pricing/viewPricingByCheckoutId.js +0 -0
- /package/dist/{src/projection → projection}/shared/price.d.ts +0 -0
- /package/dist/{src/domain/checkoutItem/model → projection/shared}/price.js +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/command/createNotification.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/command/createNotification.js +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/command/removeNotification.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/command/removeNotification.js +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/command/removeNotification.tes.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/command/removeNotification.tes.js +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notification.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notification.js +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notificationCreated.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notificationCreated.js +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notificationRemoved.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notificationRemoved.js +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notifications.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notifications.js +0 -0
- /package/dist/{src/shared → shared}/notifications/index.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/index.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/delivery/bootstrap.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/delivery/bootstrap.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotifications.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotifications.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotificationsCreate.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotificationsCreate.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotificationsRemove.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotificationsRemove.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/react/useCreateNotification.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/react/useCreateNotification.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/react/useRemoveNotification.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/react/useRemoveNotification.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/persistence/inMemoryStorageNotifications.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/persistence/inMemoryStorageNotifications.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/persistence/notificationDto.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/persistence/notificationDto.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/persistence/storage.d.ts +0 -0
- /package/dist/{src → shared/notifications}/infrastructure/persistence/storage.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/projection/notification/notification.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/projection/notification/notification.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/projection/notification/storageListNotificationsView.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/projection/notification/storageListNotificationsView.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/NotificationItem.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/NotificationItem.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/Notifications.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/Notifications.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/Notifications.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/Notifications.style.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/notificationsRoot.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/notificationsRoot.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/views/Notifications.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/views/Notifications.js +0 -0
- /package/dist/{src/shared → shared}/notifications/projection/notification/listNotifications.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/projection/notification/listNotifications.js +0 -0
- /package/dist/{src/shared → shared}/notifications/projection/notification/notification.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/projection/notification/notification.js +0 -0
- /package/dist/{src/shared → shared}/notifications/projection/notification/react/useListNotifications.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/projection/notification/react/useListNotifications.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/error/Error.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/error/Error.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/error/Error.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/error/Error.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/field/Field.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/field/Field.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/field/Field.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/field/Field.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/icon/Icon.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/icon/Icon.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/icon/Icon.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/icon/Icon.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/input/Input.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/input/Input.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/input/Input.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/input/Input.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/spinner/Spinner.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/spinner/Spinner.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/spinner/Spinner.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/spinner/Spinner.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/column/Column.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/column/Column.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/column/Column.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/column/Column.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/modal/Modal.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/modal/Modal.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/modal/Modal.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/modal/Modal.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/row/Row.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/row/Row.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/row/Row.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/row/Row.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Pagination.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Pagination.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Pagination.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/slider/Pagination.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Slider.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Slider.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Slider.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Slider.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/stack/Stack.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/stack/Stack.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/stack/Stack.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/stack/Stack.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/sticky/Sticky.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/sticky/Sticky.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/sticky/Sticky.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/sticky/Sticky.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/buttonIcon/ButtonIcon.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/buttonIcon/ButtonIcon.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/buttonIcon/ButtonIcon.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/buttonIcon/ButtonIcon.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/inputField/InputField.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/inputField/InputField.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/inputField/InputField.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/inputField/InputField.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/selectField/SelectField.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/selectField/SelectField.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/selectField/SelectField.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/selectField/SelectField.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/toast/Toast.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/toast/Toast.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/toast/Toast.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/toast/Toast.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/hooks/useScreenSize.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/hooks/useScreenSize.js +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React, { useCallback } from "react";
|
|
2
2
|
import { Platform } from "react-native";
|
|
3
3
|
import { Routing } from "./routing/Routing";
|
|
4
|
-
const root = ({ Messaging, I18n, development }) =>
|
|
4
|
+
const root = ({ Messaging, I18n, Notifications, authToken, development }) =>
|
|
5
5
|
// eslint-disable-next-line react/display-name, react/prop-types
|
|
6
|
-
({ basePath, locale = "en", customerId, onNotAccessible }) => {
|
|
6
|
+
({ basePath, locale = "en", customerId, menu, onNotAccessible, useRedirect }) => {
|
|
7
7
|
const handleOnI18nError = useCallback(() => void 0, []);
|
|
8
8
|
return (React.createElement(Messaging, { includeReactQueryDevTools: Platform.OS === "web" },
|
|
9
|
-
React.createElement(
|
|
9
|
+
React.createElement(Notifications, { includeReactQueryDevTools: Platform.OS === "web" },
|
|
10
|
+
React.createElement(Routing, { I18n: I18n, authToken: authToken, basePath: basePath, customerId: customerId, locale: locale, menu: menu, useRedirect: useRedirect, onI18nError: development ? undefined : handleOnI18nError, onNotAccessible: onNotAccessible }))));
|
|
10
11
|
};
|
|
11
12
|
export { root };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import { TextProps } from "react-native";
|
|
3
|
-
import { PriceProjection } from "../../../../../projection/
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { PriceProjection } from "../../../../../projection/shared/price";
|
|
4
|
+
type PriceStyle = "priceText" | "discountedText";
|
|
5
|
+
type PriceVariant = "default" | "detail" | "subtotal" | "total";
|
|
6
6
|
interface PriceProps {
|
|
7
7
|
readonly price: PriceProjection;
|
|
8
8
|
readonly variant?: PriceVariant;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
2
|
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
|
|
3
|
+
type BodyStyle = "row" | "column";
|
|
4
4
|
interface BodyProps {
|
|
5
5
|
readonly children: ReactNode;
|
|
6
6
|
readonly style?: Partial<Record<BodyStyle, StyleProp<ViewStyle>>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Column } from "
|
|
3
|
-
import { Row } from "
|
|
2
|
+
import { Column } from "../../../../../shared/ui/components/layouts/column/Column";
|
|
3
|
+
import { Row } from "../../../../../shared/ui/components/layouts/row/Row";
|
|
4
4
|
import { style } from "./Body.style";
|
|
5
5
|
const Body = ({ children, style: customStyle }) => (React.createElement(Row, { style: [style.row, customStyle?.row] },
|
|
6
6
|
React.createElement(Column, { style: customStyle?.column }, children)));
|
|
@@ -3,7 +3,7 @@ import { animated, useSpring } from "@react-spring/native";
|
|
|
3
3
|
import React, { Children, useCallback, useState } from "react";
|
|
4
4
|
import { Pressable, View } from "react-native";
|
|
5
5
|
import invariant from "tiny-invariant";
|
|
6
|
-
import { Slider } from "
|
|
6
|
+
import { Slider } from "../../../../../shared/ui/components/layouts/slider/Slider";
|
|
7
7
|
import { style } from "./Tabs.style";
|
|
8
8
|
const Tab = ({ children, active, disabled = false, style: customStyle, onPress, onLayout }) => (React.createElement(Pressable, { disabled: disabled, style: [style.tab, customStyle?.tab], testID: "tab", onLayout: onLayout, onPress: onPress },
|
|
9
9
|
React.createElement(Text, { level: 2, style: [style.tabText, active && style.tabActiveText, customStyle?.tabText], detail: true }, children)));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { createContext, useCallback, useContext, useMemo, useState } from "react";
|
|
1
|
+
import React, { createContext, useCallback, useContext, useEffect, useMemo, useState } from "react";
|
|
2
2
|
import invariant from "tiny-invariant";
|
|
3
3
|
const ReturnQuestionFeedbackContext = createContext(null);
|
|
4
4
|
const ReturnQuestionFeedbackProvider = ({ feedback = {}, children, }) => {
|
|
@@ -6,6 +6,7 @@ const ReturnQuestionFeedbackProvider = ({ feedback = {}, children, }) => {
|
|
|
6
6
|
const onChange = useCallback(({ returnQuestionId, returnQuestionFeedback }) => setContextFeedback((feedback) => returnQuestionFeedback
|
|
7
7
|
? { ...feedback, [returnQuestionId]: returnQuestionFeedback }
|
|
8
8
|
: Object.entries(feedback).reduce((acc, [id, feedback]) => (id !== returnQuestionId ? { ...acc, [id]: feedback } : acc), {})), []);
|
|
9
|
+
useEffect(() => setContextFeedback(feedback), [feedback]);
|
|
9
10
|
const value = useMemo(() => ({
|
|
10
11
|
feedback: contextFeedback,
|
|
11
12
|
onChange,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
2
|
import { ReturnQuestionType } from "../../../../../../projection/returnQuestion/returnQuestion";
|
|
3
3
|
import { ReturnQuestionItem } from "../components/ReturnQuestionItem";
|
|
4
|
-
|
|
4
|
+
type ReturnQuestionItems = Record<ReturnQuestionType, ReturnQuestionItem>;
|
|
5
5
|
interface ReturnQuestionItemContextProviderProps {
|
|
6
6
|
readonly returnQuestionItems: ReturnQuestionItems;
|
|
7
7
|
readonly children: ReactNode;
|
|
@@ -6,5 +6,5 @@ interface ReturnQuestionItemProps {
|
|
|
6
6
|
readonly children?: ReactNode;
|
|
7
7
|
readonly portalHostName?: string;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
type ReturnQuestionItem = FC<ReturnQuestionItemProps>;
|
|
10
10
|
export type { ReturnQuestionItem, ReturnQuestionItemProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useI18nMessage, useIntl } from "@lookiero/i18n-react";
|
|
2
2
|
import React, { useCallback, useState } from "react";
|
|
3
3
|
import { TouchableHighlight, View } from "react-native";
|
|
4
|
+
import { Modal } from "../../../../../../../shared/ui/components/layouts/modal/Modal";
|
|
5
|
+
import { ButtonIcon } from "../../../../../../../shared/ui/components/molecules/buttonIcon/ButtonIcon";
|
|
6
|
+
import { InputField } from "../../../../../../../shared/ui/components/molecules/inputField/InputField";
|
|
4
7
|
import { RETURN_QUESTIONS_PREFIX } from "../../../../../i18n/i18n";
|
|
5
|
-
import { Modal } from "../../../../../shared/components/layouts/modal/Modal";
|
|
6
|
-
import { ButtonIcon } from "../../../../../shared/components/molecules/buttonIcon/ButtonIcon";
|
|
7
|
-
import { InputField } from "../../../../../shared/components/molecules/inputField/InputField";
|
|
8
8
|
import { useReturnQuestionFeedback, useReturnQuestionFeedbackForId } from "../../behaviors/useReturnQuestionFeedback";
|
|
9
9
|
import { deepestReturnQuestionWithFeedbackForReturnQuestion, feedbackForReturnQuestion, } from "../../util/returnQuestionFeedback";
|
|
10
10
|
import { style, containerUnderlayColor } from "./HostSelectReturnQuestionItem.style";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
2
2
|
import React, { useCallback } from "react";
|
|
3
|
+
import { InputField } from "../../../../../../../shared/ui/components/molecules/inputField/InputField";
|
|
3
4
|
import { RETURN_QUESTIONS_PREFIX } from "../../../../../i18n/i18n";
|
|
4
|
-
import { InputField } from "../../../../../shared/components/molecules/inputField/InputField";
|
|
5
5
|
import { useReturnQuestionFeedbackForId } from "../../behaviors/useReturnQuestionFeedback";
|
|
6
6
|
const TEXTAREA_MIN_HEIGHT = 96;
|
|
7
7
|
const TextareaReturnQuestionItem = ({ returnQuestion, returnQuestionParentId, }) => {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
|
+
import { StyleProp, ViewStyle } from "react-native";
|
|
2
3
|
import { Edge } from "react-native-safe-area-context";
|
|
4
|
+
type SafeAreaScrollViewStyle = "safeAreaView" | "scrollView";
|
|
3
5
|
interface SafeAreaScrollViewProps {
|
|
4
6
|
readonly children: ReactNode;
|
|
5
7
|
readonly edges?: Edge[];
|
|
8
|
+
readonly style?: Partial<Record<SafeAreaScrollViewStyle, StyleProp<ViewStyle>>>;
|
|
6
9
|
}
|
|
7
10
|
declare const SafeAreaScrollView: FC<SafeAreaScrollViewProps>;
|
|
8
11
|
export { SafeAreaScrollView };
|
|
@@ -3,12 +3,16 @@ import { ScrollView } from "react-native";
|
|
|
3
3
|
import { SafeAreaView, useSafeAreaInsets } from "react-native-safe-area-context";
|
|
4
4
|
import { theme } from "../../theme/theme";
|
|
5
5
|
const { spaceXL } = theme();
|
|
6
|
-
const SafeAreaScrollView = ({ children, edges = ["top", "bottom", "left", "right"] }) => {
|
|
6
|
+
const SafeAreaScrollView = ({ children, edges = ["top", "bottom", "left", "right"], style: customStyle, }) => {
|
|
7
7
|
const { top: safeAreaInsetTop, bottom: safeAreaInsetBottom } = useSafeAreaInsets();
|
|
8
|
-
return (React.createElement(SafeAreaView, { edges: edges },
|
|
9
|
-
React.createElement(ScrollView, { contentContainerStyle:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
return (React.createElement(SafeAreaView, { edges: edges, style: customStyle?.safeAreaView },
|
|
9
|
+
React.createElement(ScrollView, { contentContainerStyle: [
|
|
10
|
+
{
|
|
11
|
+
// Why did we set this??
|
|
12
|
+
paddingTop: !safeAreaInsetTop ? spaceXL : 0,
|
|
13
|
+
paddingBottom: !safeAreaInsetBottom ? spaceXL : 0,
|
|
14
|
+
},
|
|
15
|
+
customStyle?.scrollView,
|
|
16
|
+
] }, children)));
|
|
13
17
|
};
|
|
14
18
|
export { SafeAreaScrollView };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const COLOR_I18N_PREFIX = "color.";
|
|
2
2
|
declare const RETURN_QUESTIONS_PREFIX = "return_questions.";
|
|
3
3
|
declare const RETURN_QUESTIONS_FEEDBACK_PREFIX = "return_questions_feedback.";
|
|
4
|
+
declare const CHECKOUT_QUESTIONS_PREFIX = "checkout_questions.";
|
|
4
5
|
declare enum I18nMessages {
|
|
5
6
|
INTRO_TITLE = "intro.title",
|
|
6
7
|
INTRO_SUBTITLE = "intro.subtitle",
|
|
@@ -33,7 +34,32 @@ declare enum I18nMessages {
|
|
|
33
34
|
FEEDBACK_UNANSWERED = "feedback.unanswered",
|
|
34
35
|
RETURN_QUESTIONS_TITLE = "return_questions.title",
|
|
35
36
|
RETURN_QUESTIONS_SUBMIT_BUTTON = "return_questions.submit_button",
|
|
37
|
+
SUMMARY_TITLE = "summary.title",
|
|
38
|
+
SUMMARY_DESCRIPTION = "summary.description",
|
|
39
|
+
SUMMARY_BANNER = "summary.banner",
|
|
36
40
|
SUMMARY_KEEP_TAB = "summary.keep_tab",
|
|
37
|
-
SUMMARY_RETURN_TAB = "summary.return_tab"
|
|
41
|
+
SUMMARY_RETURN_TAB = "summary.return_tab",
|
|
42
|
+
SUMMARY_KEEP_EMPTY = "summary.keep_empty",
|
|
43
|
+
SUMMARY_RETURN_EMPTY = "summary.return_empty",
|
|
44
|
+
SUMMARY_TOTAL = "summary.total",
|
|
45
|
+
SUMMARY_SUBTOTAL = "summary.subtotal",
|
|
46
|
+
SUMMARY_SUBMIT_BUTTON = "summary.submit_button",
|
|
47
|
+
SUMMARY_FREE = "summary.free",
|
|
48
|
+
SUMMARY_DISCOUNT = "summary.discount",
|
|
49
|
+
SUMMARY_TOTAL_ITEMS_KEPT = "summary.total_items_kept",
|
|
50
|
+
SUMMARY_CREDIT = "summary.credit",
|
|
51
|
+
SUMMARY_FEE = "summary.fee",
|
|
52
|
+
PRODUCT_VARIANT_SIZE_CHANGE = "product_variant.size_change",
|
|
53
|
+
CHECKOUT_TITLE = "checkout.title",
|
|
54
|
+
CHECKOUT_PAY_BUTTON = "checkout.pay_button",
|
|
55
|
+
CHECKOUT_TOAST_REJECTED = "checkout.toast_rejected",
|
|
56
|
+
CHECKOUT_TOAST_ERROR = "checkout.toast_error",
|
|
57
|
+
CHECKOUT_SUCCESS_MODAL_TITLE = "checkout.success_modal_title",
|
|
58
|
+
CHECKOUT_SUCCESS_MODAL_DESCRIPTION = "checkout.success_modal_description",
|
|
59
|
+
CHECKOUT_SUCCESS_MODAL_BUTTON = "checkout.success_modal_button",
|
|
60
|
+
CHECKOUT_DELIVERY_BANNER = "checkout.delivery_banner",
|
|
61
|
+
HEADER_CHECKOUT_TITLE = "header.checkout_title",
|
|
62
|
+
HEADER_COMPLETE_CHECKOUT_TITLE = "header.complete_checkout_title",
|
|
63
|
+
FEEDBACK_BUTTON = "feedback.button"
|
|
38
64
|
}
|
|
39
|
-
export { I18nMessages, COLOR_I18N_PREFIX, RETURN_QUESTIONS_PREFIX, RETURN_QUESTIONS_FEEDBACK_PREFIX };
|
|
65
|
+
export { I18nMessages, COLOR_I18N_PREFIX, RETURN_QUESTIONS_PREFIX, RETURN_QUESTIONS_FEEDBACK_PREFIX, CHECKOUT_QUESTIONS_PREFIX, };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const COLOR_I18N_PREFIX = "color.";
|
|
2
2
|
const RETURN_QUESTIONS_PREFIX = "return_questions.";
|
|
3
3
|
const RETURN_QUESTIONS_FEEDBACK_PREFIX = "return_questions_feedback.";
|
|
4
|
+
const CHECKOUT_QUESTIONS_PREFIX = "checkout_questions.";
|
|
4
5
|
var I18nMessages;
|
|
5
6
|
(function (I18nMessages) {
|
|
6
7
|
I18nMessages["INTRO_TITLE"] = "intro.title";
|
|
@@ -34,7 +35,32 @@ var I18nMessages;
|
|
|
34
35
|
I18nMessages["FEEDBACK_UNANSWERED"] = "feedback.unanswered";
|
|
35
36
|
I18nMessages["RETURN_QUESTIONS_TITLE"] = "return_questions.title";
|
|
36
37
|
I18nMessages["RETURN_QUESTIONS_SUBMIT_BUTTON"] = "return_questions.submit_button";
|
|
38
|
+
I18nMessages["SUMMARY_TITLE"] = "summary.title";
|
|
39
|
+
I18nMessages["SUMMARY_DESCRIPTION"] = "summary.description";
|
|
40
|
+
I18nMessages["SUMMARY_BANNER"] = "summary.banner";
|
|
37
41
|
I18nMessages["SUMMARY_KEEP_TAB"] = "summary.keep_tab";
|
|
38
42
|
I18nMessages["SUMMARY_RETURN_TAB"] = "summary.return_tab";
|
|
43
|
+
I18nMessages["SUMMARY_KEEP_EMPTY"] = "summary.keep_empty";
|
|
44
|
+
I18nMessages["SUMMARY_RETURN_EMPTY"] = "summary.return_empty";
|
|
45
|
+
I18nMessages["SUMMARY_TOTAL"] = "summary.total";
|
|
46
|
+
I18nMessages["SUMMARY_SUBTOTAL"] = "summary.subtotal";
|
|
47
|
+
I18nMessages["SUMMARY_SUBMIT_BUTTON"] = "summary.submit_button";
|
|
48
|
+
I18nMessages["SUMMARY_FREE"] = "summary.free";
|
|
49
|
+
I18nMessages["SUMMARY_DISCOUNT"] = "summary.discount";
|
|
50
|
+
I18nMessages["SUMMARY_TOTAL_ITEMS_KEPT"] = "summary.total_items_kept";
|
|
51
|
+
I18nMessages["SUMMARY_CREDIT"] = "summary.credit";
|
|
52
|
+
I18nMessages["SUMMARY_FEE"] = "summary.fee";
|
|
53
|
+
I18nMessages["PRODUCT_VARIANT_SIZE_CHANGE"] = "product_variant.size_change";
|
|
54
|
+
I18nMessages["CHECKOUT_TITLE"] = "checkout.title";
|
|
55
|
+
I18nMessages["CHECKOUT_PAY_BUTTON"] = "checkout.pay_button";
|
|
56
|
+
I18nMessages["CHECKOUT_TOAST_REJECTED"] = "checkout.toast_rejected";
|
|
57
|
+
I18nMessages["CHECKOUT_TOAST_ERROR"] = "checkout.toast_error";
|
|
58
|
+
I18nMessages["CHECKOUT_SUCCESS_MODAL_TITLE"] = "checkout.success_modal_title";
|
|
59
|
+
I18nMessages["CHECKOUT_SUCCESS_MODAL_DESCRIPTION"] = "checkout.success_modal_description";
|
|
60
|
+
I18nMessages["CHECKOUT_SUCCESS_MODAL_BUTTON"] = "checkout.success_modal_button";
|
|
61
|
+
I18nMessages["CHECKOUT_DELIVERY_BANNER"] = "checkout.delivery_banner";
|
|
62
|
+
I18nMessages["HEADER_CHECKOUT_TITLE"] = "header.checkout_title";
|
|
63
|
+
I18nMessages["HEADER_COMPLETE_CHECKOUT_TITLE"] = "header.complete_checkout_title";
|
|
64
|
+
I18nMessages["FEEDBACK_BUTTON"] = "feedback.button";
|
|
39
65
|
})(I18nMessages || (I18nMessages = {}));
|
|
40
|
-
export { I18nMessages, COLOR_I18N_PREFIX, RETURN_QUESTIONS_PREFIX, RETURN_QUESTIONS_FEEDBACK_PREFIX };
|
|
66
|
+
export { I18nMessages, COLOR_I18N_PREFIX, RETURN_QUESTIONS_PREFIX, RETURN_QUESTIONS_FEEDBACK_PREFIX, CHECKOUT_QUESTIONS_PREFIX, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QueryStatus } from "@lookiero/messaging-react";
|
|
2
2
|
import React, { useEffect, useRef } from "react";
|
|
3
|
+
import { Spinner } from "../../../shared/ui/components/atoms/spinner/Spinner";
|
|
3
4
|
import { useViewIsCheckoutAccessibleByCustomerId } from "../../projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId";
|
|
4
|
-
import { Spinner } from "../shared/components/atoms/spinner/Spinner";
|
|
5
5
|
const CheckoutAccessibilityMiddleware = ({ customerId, onNotAccessible, loader = React.createElement(Spinner, null), children, }) => {
|
|
6
6
|
const [accessible, status] = useViewIsCheckoutAccessibleByCustomerId({ customerId });
|
|
7
7
|
const onNotAccessibleRef = useRef(onNotAccessible);
|
|
@@ -1,26 +1,49 @@
|
|
|
1
1
|
import { QueryStatus } from "@lookiero/messaging-react";
|
|
2
2
|
import React, { useRef } from "react";
|
|
3
3
|
import { generatePath, Navigate, useMatch } from "react-router-native";
|
|
4
|
+
import { CheckoutStatus } from "../../../domain/checkout/model/checkout";
|
|
4
5
|
import { CheckoutItemStatus } from "../../../domain/checkoutItem/model/checkoutItem";
|
|
6
|
+
import { Spinner } from "../../../shared/ui/components/atoms/spinner/Spinner";
|
|
5
7
|
import { useViewFirstAvailableCheckoutByCustomerId } from "../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
|
|
6
8
|
import { useShouldIntroBeShown } from "../../projection/uiSetting/react/useShouldIntroBeShown";
|
|
7
|
-
import { Spinner } from "../shared/components/atoms/spinner/Spinner";
|
|
8
9
|
import { Routes } from "./routes";
|
|
9
|
-
|
|
10
|
+
import { useBasePath } from "./useBasePath";
|
|
11
|
+
const CheckoutMiddleware = ({ customerId, loader = React.createElement(Spinner, null), children }) => {
|
|
12
|
+
const basePath = useBasePath();
|
|
10
13
|
const introShown = useRef(false);
|
|
11
14
|
const [shouldIntroBeShown, shouldIntroBeShownStatus] = useShouldIntroBeShown();
|
|
12
15
|
const [checkout, checkoutStatus] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
|
|
13
16
|
const firstItemWithoutCustomerDecision = checkout?.items.find((item) => [CheckoutItemStatus.EXPIRED, CheckoutItemStatus.INITIAL].includes(item.status));
|
|
14
17
|
const introRouteMatch = useMatch(`${basePath}/${Routes.INTRO}`);
|
|
15
18
|
const itemRouteMatch = useMatch(`${basePath}/${Routes.ITEM}`);
|
|
19
|
+
const itemDetailRouteMatch = useMatch(`${basePath}/${Routes.ITEM_DETAIL}`);
|
|
16
20
|
const summaryRouteMatch = useMatch(`${basePath}/${Routes.SUMMARY}`);
|
|
21
|
+
const checkoutRouteMatch = useMatch(`${basePath}/${Routes.CHECKOUT}`);
|
|
22
|
+
const feedbackRouteMatch = useMatch(`${basePath}/${Routes.FEEDBACK}`);
|
|
23
|
+
const notFoundRouteMatch = useMatch(`${basePath}/${Routes.NOT_FOUND}`);
|
|
17
24
|
const dependenciesLoadedStatuses = [QueryStatus.ERROR, QueryStatus.SUCCESS];
|
|
18
25
|
const dependenciesLoaded = dependenciesLoadedStatuses.includes(shouldIntroBeShownStatus) &&
|
|
19
26
|
dependenciesLoadedStatuses.includes(checkoutStatus);
|
|
20
27
|
if (!dependenciesLoaded) {
|
|
21
28
|
return loader;
|
|
22
29
|
}
|
|
23
|
-
if
|
|
30
|
+
/* Navigate to NotFound if checkout is completed */
|
|
31
|
+
if (checkout?.status === CheckoutStatus.COMPLETED && !notFoundRouteMatch) {
|
|
32
|
+
return React.createElement(Navigate, { to: `${basePath}/${Routes.NOT_FOUND}`, replace: true });
|
|
33
|
+
}
|
|
34
|
+
/* Navigate to the feedback if checkout is paid */
|
|
35
|
+
if (checkout?.status === CheckoutStatus.PAID && !feedbackRouteMatch) {
|
|
36
|
+
return React.createElement(Navigate, { to: `${basePath}/${Routes.FEEDBACK}`, replace: true });
|
|
37
|
+
}
|
|
38
|
+
/* Navigate to the summary if required */
|
|
39
|
+
if (checkout?.status !== CheckoutStatus.PAID &&
|
|
40
|
+
checkout?.status !== CheckoutStatus.COMPLETED &&
|
|
41
|
+
firstItemWithoutCustomerDecision === undefined &&
|
|
42
|
+
!(summaryRouteMatch || itemDetailRouteMatch || checkoutRouteMatch)) {
|
|
43
|
+
return React.createElement(Navigate, { to: `${basePath}/${Routes.SUMMARY}`, replace: true });
|
|
44
|
+
}
|
|
45
|
+
/* Navigate to the Intro if required */
|
|
46
|
+
if (shouldIntroBeShown && !introShown.current && firstItemWithoutCustomerDecision !== undefined) {
|
|
24
47
|
if (introRouteMatch) {
|
|
25
48
|
introShown.current = true;
|
|
26
49
|
}
|
|
@@ -29,18 +52,18 @@ const CheckoutMiddleware = ({ basePath, customerId, loader = React.createElement
|
|
|
29
52
|
}
|
|
30
53
|
}
|
|
31
54
|
else {
|
|
32
|
-
|
|
33
|
-
|
|
55
|
+
/* Item/ItemDetail 404 - Not found */
|
|
56
|
+
if (itemRouteMatch || itemDetailRouteMatch) {
|
|
57
|
+
const checkoutItem = checkout?.items.find((item) => item.id === itemRouteMatch?.params.id || itemDetailRouteMatch?.params.id);
|
|
34
58
|
if (!checkoutItem) {
|
|
35
59
|
return React.createElement(Navigate, { to: `${basePath}/${Routes.HOME}`, replace: true });
|
|
36
60
|
}
|
|
37
61
|
}
|
|
62
|
+
/* Navigate to the first item without customer's decission */
|
|
38
63
|
if (firstItemWithoutCustomerDecision && !itemRouteMatch) {
|
|
64
|
+
console.log("navigate to first item...", firstItemWithoutCustomerDecision.id);
|
|
39
65
|
return (React.createElement(Navigate, { to: generatePath(`${basePath}/${Routes.ITEM}`, { id: firstItemWithoutCustomerDecision.id }), replace: true }));
|
|
40
66
|
}
|
|
41
|
-
if (firstItemWithoutCustomerDecision === undefined && !summaryRouteMatch) {
|
|
42
|
-
return React.createElement(Navigate, { to: `${basePath}/${Routes.SUMMARY}`, replace: true });
|
|
43
|
-
}
|
|
44
67
|
}
|
|
45
68
|
return children;
|
|
46
69
|
};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { I18n } from "@lookiero/i18n-react";
|
|
2
2
|
import { FC } from "react";
|
|
3
|
+
import { Menu } from "../views/header/Header";
|
|
3
4
|
interface RoutingProps {
|
|
4
|
-
readonly
|
|
5
|
+
readonly basePath?: string;
|
|
5
6
|
readonly customerId: string | undefined;
|
|
6
7
|
readonly locale: string;
|
|
7
8
|
readonly I18n: I18n;
|
|
8
|
-
readonly
|
|
9
|
+
readonly authToken: string;
|
|
10
|
+
readonly menu: Menu;
|
|
11
|
+
readonly onNotAccessible: () => void;
|
|
9
12
|
readonly onI18nError?: (err: Error) => void;
|
|
13
|
+
readonly useRedirect: () => Record<string, string>;
|
|
10
14
|
}
|
|
11
15
|
declare const Routing: FC<RoutingProps>;
|
|
12
16
|
export { Routing };
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
import React, { lazy, Suspense } from "react";
|
|
2
2
|
import { Navigate, Outlet, useRoutes } from "react-router-native";
|
|
3
|
-
import { Spinner } from "
|
|
3
|
+
import { Spinner } from "../../../shared/ui/components/atoms/spinner/Spinner";
|
|
4
4
|
import { App } from "../views/App";
|
|
5
5
|
import { CheckoutAccessibilityMiddleware } from "./CheckoutAccessibilityMiddleware";
|
|
6
6
|
import { CheckoutMiddleware } from "./CheckoutMiddleware";
|
|
7
7
|
import { Routes } from "./routes";
|
|
8
|
+
import { BasePathProvider } from "./useBasePath";
|
|
8
9
|
const Intro = lazy(() => import("../views/intro/Intro").then((module) => ({ default: module.Intro })));
|
|
9
10
|
const Item = lazy(() => import("../views/item/Item").then((module) => ({ default: module.Item })));
|
|
10
11
|
const Summary = lazy(() => import("../views/summary/Summary").then((module) => ({ default: module.Summary })));
|
|
11
|
-
const
|
|
12
|
+
const Checkout = lazy(() => import("../views/checkout/Checkout").then((module) => ({ default: module.Checkout })));
|
|
13
|
+
const Feedback = lazy(() => import("../views/feedback/Feedback").then((module) => ({ default: module.Feedback })));
|
|
14
|
+
const Routing = ({ basePath = "", customerId, locale, I18n, authToken, menu, onI18nError, onNotAccessible, useRedirect, }) => {
|
|
12
15
|
const routes = useRoutes([
|
|
13
16
|
{
|
|
14
17
|
path: "",
|
|
15
|
-
element: (React.createElement(
|
|
16
|
-
React.createElement(
|
|
17
|
-
React.createElement(
|
|
18
|
-
React.createElement(
|
|
19
|
-
React.createElement(
|
|
18
|
+
element: (React.createElement(BasePathProvider, { basePath: basePath },
|
|
19
|
+
React.createElement(CheckoutAccessibilityMiddleware, { customerId: customerId, onNotAccessible: onNotAccessible },
|
|
20
|
+
React.createElement(I18n, { loader: React.createElement(Spinner, null), locale: locale, onError: onI18nError },
|
|
21
|
+
React.createElement(CheckoutMiddleware, { customerId: customerId },
|
|
22
|
+
React.createElement(App, { customerId: customerId, menu: menu },
|
|
23
|
+
React.createElement(Outlet, null))))))),
|
|
20
24
|
children: [
|
|
21
25
|
{
|
|
22
26
|
path: Routes.INTRO,
|
|
@@ -28,11 +32,26 @@ const Routing = ({ basePath = "", onNotAccessible, customerId, locale, I18n, onI
|
|
|
28
32
|
element: (React.createElement(Suspense, { fallback: React.createElement(Spinner, null) },
|
|
29
33
|
React.createElement(Item, { customerId: customerId }))),
|
|
30
34
|
},
|
|
35
|
+
{
|
|
36
|
+
path: Routes.ITEM_DETAIL,
|
|
37
|
+
element: (React.createElement(Suspense, { fallback: React.createElement(Spinner, null) },
|
|
38
|
+
React.createElement(Item, { customerId: customerId }))),
|
|
39
|
+
},
|
|
31
40
|
{
|
|
32
41
|
path: Routes.SUMMARY,
|
|
33
42
|
element: (React.createElement(Suspense, { fallback: React.createElement(Spinner, null) },
|
|
34
43
|
React.createElement(Summary, { customerId: customerId }))),
|
|
35
44
|
},
|
|
45
|
+
{
|
|
46
|
+
path: Routes.CHECKOUT,
|
|
47
|
+
element: (React.createElement(Suspense, { fallback: React.createElement(Spinner, null) },
|
|
48
|
+
React.createElement(Checkout, { authToken: authToken, customerId: customerId, useRedirect: useRedirect }))),
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
path: Routes.FEEDBACK,
|
|
52
|
+
element: (React.createElement(Suspense, { fallback: React.createElement(Spinner, null) },
|
|
53
|
+
React.createElement(Feedback, { customerId: customerId }))),
|
|
54
|
+
},
|
|
36
55
|
{
|
|
37
56
|
path: "*",
|
|
38
57
|
element: React.createElement(Navigate, { to: `${Routes.HOME}`, replace: true }),
|
|
@@ -2,6 +2,10 @@ export var Routes;
|
|
|
2
2
|
(function (Routes) {
|
|
3
3
|
Routes["HOME"] = "";
|
|
4
4
|
Routes["INTRO"] = "intro";
|
|
5
|
+
Routes["ITEM_DETAIL"] = "item/:id/detail";
|
|
5
6
|
Routes["ITEM"] = "item/:id";
|
|
6
7
|
Routes["SUMMARY"] = "summary";
|
|
8
|
+
Routes["CHECKOUT"] = "checkout";
|
|
9
|
+
Routes["FEEDBACK"] = "feedback";
|
|
10
|
+
Routes["NOT_FOUND"] = "not-found";
|
|
7
11
|
})(Routes || (Routes = {}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DefaultTheme } from "@lookiero/aurora-next/build/theming/theme.default";
|
|
2
|
-
|
|
2
|
+
type Remove$PrefixFromKeys<T> = {
|
|
3
3
|
[K in keyof T as K extends `$${infer F}` ? F : K]: T[K];
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
type AuroraTheme = Remove$PrefixFromKeys<typeof DefaultTheme>;
|
|
6
6
|
interface ThemeFunction {
|
|
7
7
|
(): AuroraTheme;
|
|
8
8
|
}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { PortalProvider } from "@gorhom/portal";
|
|
2
2
|
import React from "react";
|
|
3
|
+
import { View } from "react-native";
|
|
3
4
|
import { SafeAreaProvider } from "react-native-safe-area-context";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
import { Notifications } from "../../../shared/notifications/infrastructure/ui/views/Notifications";
|
|
6
|
+
import { style } from "./App.style";
|
|
7
|
+
import { Header } from "./header/Header";
|
|
8
|
+
const App = ({ customerId, menu, children }) => (React.createElement(SafeAreaProvider, null,
|
|
9
|
+
React.createElement(Header, { customerId: customerId, menu: menu, style: style.header }),
|
|
10
|
+
React.createElement(Notifications, null),
|
|
11
|
+
React.createElement(PortalProvider, null,
|
|
12
|
+
React.createElement(View, { style: style.body }, children))));
|
|
6
13
|
export { App };
|
|
@@ -5,12 +5,12 @@ import { useI18nMessage } from "@lookiero/i18n-react";
|
|
|
5
5
|
import { CommandStatus, QueryStatus } from "@lookiero/messaging-react";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View } from "react-native";
|
|
8
|
+
import { Spinner } from "../../../../shared/ui/components/atoms/spinner/Spinner";
|
|
8
9
|
import { useIncrementIntroShownCount } from "../../../domain/uiSetting/react/useIncrementIntroShownCount";
|
|
9
10
|
import { useViewFiveItemsDiscountByCustomerId } from "../../../projection/checkout/react/useViewFiveItemsDiscountByCustomerId";
|
|
10
11
|
import { Body } from "../../components/layouts/body/Body";
|
|
11
12
|
import { SafeAreaScrollView } from "../../components/templates/SafeAreaScrollView";
|
|
12
13
|
import { I18nMessages } from "../../i18n/i18n";
|
|
13
|
-
import { Spinner } from "../../shared/components/atoms/spinner/Spinner";
|
|
14
14
|
import { style } from "./Intro.style";
|
|
15
15
|
const Bullet = ({ text }) => (React.createElement(View, { style: style.bullet },
|
|
16
16
|
React.createElement(Icon, { name: "rounded-tick", style: style.tickIcon }),
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CommandStatus, QueryStatus } from "@lookiero/messaging-react";
|
|
2
|
-
import React, { useCallback, useEffect, useState } from "react";
|
|
2
|
+
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
3
|
import { View } from "react-native";
|
|
4
4
|
import { useParams } from "react-router-native";
|
|
5
5
|
import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
|
|
6
6
|
import "../../../../projection/checkout/viewFirstAvailableCheckoutByCustomerId";
|
|
7
|
+
import { Spinner } from "../../../../shared/ui/components/atoms/spinner/Spinner";
|
|
7
8
|
import { useBookCheckouBookingForCheckoutItem } from "../../../domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem";
|
|
8
9
|
import { useKeepCheckoutItem } from "../../../domain/checkoutItem/react/useKeepCheckoutItem";
|
|
9
10
|
import { useReplaceCheckoutItem } from "../../../domain/checkoutItem/react/useReplaceCheckoutItem";
|
|
@@ -12,8 +13,8 @@ import { useViewBookedSizeChangeProductsVariantsForCheckoutItem } from "../../..
|
|
|
12
13
|
import { useViewFirstAvailableCheckoutByCustomerId } from "../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
|
|
13
14
|
import { useListReturnQuestionsByCheckoutItemId } from "../../../projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId";
|
|
14
15
|
import { Body } from "../../components/layouts/body/Body";
|
|
16
|
+
import { ReturnQuestionFeedbackProvider } from "../../components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback";
|
|
15
17
|
import { SafeAreaScrollView } from "../../components/templates/SafeAreaScrollView";
|
|
16
|
-
import { Spinner } from "../../shared/components/atoms/spinner/Spinner";
|
|
17
18
|
import { style } from "./Item.style";
|
|
18
19
|
import { CustomerDecissionBanner } from "./components/banner/CustomerDecissionBanner";
|
|
19
20
|
import { ItemActions } from "./components/itemActions/ItemActions";
|
|
@@ -39,10 +40,11 @@ const Item = ({ customerId }) => {
|
|
|
39
40
|
checkoutItemId: checkoutItem.id,
|
|
40
41
|
});
|
|
41
42
|
const [bookCheckouBooking] = useBookCheckouBookingForCheckoutItem({
|
|
42
|
-
checkoutBookingId: bookedSizeChangeProductsVariants?.id,
|
|
43
|
-
checkoutId: checkout?.id,
|
|
44
43
|
checkoutItemId: checkoutItem.id,
|
|
45
44
|
});
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
bookedSizeChangeProductsVariants === null && bookCheckouBooking();
|
|
47
|
+
}, [bookCheckouBooking, bookedSizeChangeProductsVariants, bookedSizeChangeProductsVariants?.bookingId]);
|
|
46
48
|
const [returnQuestions, returnQuestionsStatus] = useListReturnQuestionsByCheckoutItemId({
|
|
47
49
|
checkoutItemId: checkoutItem.id,
|
|
48
50
|
});
|
|
@@ -55,22 +57,27 @@ const Item = ({ customerId }) => {
|
|
|
55
57
|
});
|
|
56
58
|
const [stickyHeight, setStickyHeight] = useState(0);
|
|
57
59
|
const handleOnStickyLayout = useCallback(({ height }) => setStickyHeight(height), []);
|
|
58
|
-
useEffect(() => {
|
|
59
|
-
checkout?.bookingId === undefined && bookCheckouBooking();
|
|
60
|
-
}, [bookCheckouBooking, checkout?.bookingId]);
|
|
61
60
|
const [returnQuestionsVisible, setReturnQuestionsVisible] = useState(false);
|
|
62
61
|
const handleOnShowReturnQuestions = useCallback(() => setReturnQuestionsVisible(true), []);
|
|
63
62
|
const handleOnHideReturnQuestions = useCallback(() => setReturnQuestionsVisible(false), []);
|
|
64
63
|
const handleOnEditFeedback = useCallback(() => handleOnShowReturnQuestions(), [handleOnShowReturnQuestions]);
|
|
65
|
-
const handleOnSubmit = useCallback((
|
|
64
|
+
const handleOnSubmit = useCallback((feedbacks) => {
|
|
66
65
|
handleOnHideReturnQuestions();
|
|
67
|
-
returnCheckoutItem({ feedbacks
|
|
66
|
+
returnCheckoutItem({ feedbacks });
|
|
68
67
|
}, [handleOnHideReturnQuestions, returnCheckoutItem]);
|
|
69
68
|
const handleOnReplace = useCallback((replacedFor) => {
|
|
70
69
|
handleOnShowSizeChangeModal();
|
|
71
70
|
replaceCheckoutItem({ replacedFor });
|
|
72
71
|
}, [handleOnShowSizeChangeModal, replaceCheckoutItem]);
|
|
73
72
|
const handleOnReturn = useCallback(() => handleOnShowReturnQuestions(), [handleOnShowReturnQuestions]);
|
|
73
|
+
const productVariantSelected = useMemo(() => checkoutItem.replacedFor
|
|
74
|
+
? bookedSizeChangeProductsVariants?.productVariants.find((productVariant) => productVariant.id === checkoutItem.replacedFor)
|
|
75
|
+
: { id: checkoutItem.productVariant.id, size: checkoutItem.productVariant.size }, [
|
|
76
|
+
bookedSizeChangeProductsVariants?.productVariants,
|
|
77
|
+
checkoutItem.productVariant.id,
|
|
78
|
+
checkoutItem.productVariant.size,
|
|
79
|
+
checkoutItem.replacedFor,
|
|
80
|
+
]);
|
|
74
81
|
const dependenciesLoadedStatuses = [QueryStatus.ERROR, QueryStatus.SUCCESS];
|
|
75
82
|
const dependenciesLoaded = dependenciesLoadedStatuses.includes(returnQuestionsStatus) &&
|
|
76
83
|
dependenciesLoadedStatuses.includes(checkoutStatus) &&
|
|
@@ -78,8 +85,8 @@ const Item = ({ customerId }) => {
|
|
|
78
85
|
if (!dependenciesLoaded)
|
|
79
86
|
return React.createElement(Spinner, null);
|
|
80
87
|
const { price } = checkoutItem;
|
|
81
|
-
const { media, brand, name,
|
|
82
|
-
return (React.createElement(
|
|
88
|
+
const { media, brand, name, color } = checkoutItem.productVariant;
|
|
89
|
+
return (React.createElement(ReturnQuestionFeedbackProvider, { feedback: checkoutItem.feedbacks || {} },
|
|
83
90
|
React.createElement(SizeWithoutStockModal, { visible: sizeWithoutStockModalVisible, onDismiss: handleOnHideSizeWithoutStockModal }),
|
|
84
91
|
React.createElement(SizeChangeModal, { visible: sizeChangeModalVisible, onDismiss: handleOnHideSizeChangeModal }),
|
|
85
92
|
React.createElement(SafeAreaScrollView, null,
|
|
@@ -88,10 +95,10 @@ const Item = ({ customerId }) => {
|
|
|
88
95
|
React.createElement(View, { style: [style.container, { paddingBottom: stickyHeight }] },
|
|
89
96
|
React.createElement(View, { style: style.sliderContainer },
|
|
90
97
|
React.createElement(ProductVariantSlider, { producVariantMedia: media })),
|
|
91
|
-
React.createElement(ProductVariantDescription, { brand: brand, color: color, name: name, price: price, size: size }),
|
|
92
|
-
checkoutItem.
|
|
93
|
-
React.createElement(ReturnQuestionsFeedback, {
|
|
94
|
-
customerDecissionMade && (React.createElement(ItemActions, { keepButtonLoading: keepCheckoutItemStatus === CommandStatus.LOADING, productVariantSelected:
|
|
95
|
-
React.createElement(ReturnQuestionsForm, { checkoutItemPrice: checkoutItem.price,
|
|
98
|
+
React.createElement(ProductVariantDescription, { brand: brand, color: color, name: name, price: price, size: productVariantSelected.size }),
|
|
99
|
+
checkoutItem.status === CheckoutItemStatus.RETURNED && (React.createElement(View, { style: style.feedbackContainer },
|
|
100
|
+
React.createElement(ReturnQuestionsFeedback, { returnQuestions: returnQuestions || [], onEditFeedback: handleOnEditFeedback })))))),
|
|
101
|
+
customerDecissionMade && (React.createElement(ItemActions, { keepButtonLoading: keepCheckoutItemStatus === CommandStatus.LOADING, productVariantSelected: productVariantSelected, productVariants: bookedSizeChangeProductsVariants?.productVariants || [], returnButtonLoading: returnCheckoutItemStatus === CommandStatus.LOADING, sizeSelectorDisabled: replaceCheckoutItemStatus === CommandStatus.LOADING, onKeep: keepCheckoutItem, onLayout: handleOnStickyLayout, onReplace: handleOnReplace, onReturn: handleOnReturn, onSizeSelectorPress: handleOnShowSizeWithoutStockModal })),
|
|
102
|
+
React.createElement(ReturnQuestionsForm, { checkoutItemPrice: checkoutItem.price, productVariant: checkoutItem.productVariant, returnQuestions: returnQuestions || [], visible: returnQuestionsVisible, onClose: handleOnHideReturnQuestions, onSubmit: handleOnSubmit })));
|
|
96
103
|
};
|
|
97
104
|
export { Item };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
|
|
3
|
-
|
|
3
|
+
type CustomerDecissionBannerStatus = Exclude<CheckoutItemStatus, CheckoutItemStatus.INITIAL | CheckoutItemStatus.EXPIRED>;
|
|
4
4
|
interface CustomerDecissionBannerProps {
|
|
5
5
|
readonly checkoutItemStatus: CustomerDecissionBannerStatus;
|
|
6
6
|
readonly onPress: () => void;
|