@lookiero/checkout 0.2.32 → 0.2.34
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/pact.config.d.ts +13 -0
- package/dist/pact.config.js +9 -0
- package/dist/{infrastructure → src/infrastructure}/delivery/mock/checkoutDataSource.d.ts +1 -1
- package/dist/{infrastructure → src/infrastructure}/delivery/mock/checkoutDataSource.js +1 -1
- package/dist/src/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +10 -0
- package/dist/src/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.js +11 -0
- package/dist/{infrastructure → src/infrastructure}/persistence/asyncStorageStorage.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/persistence/storage.d.ts +1 -1
- package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.js +1 -3
- package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpCheckoutByIdView.js +2 -2
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.js +45 -0
- package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/httpCheckoutItemByIdView.js +1 -3
- package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.js +1 -3
- package/dist/src/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.d.ts +6 -0
- package/dist/src/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.js +7 -0
- package/dist/src/infrastructure/projection/uiSetting/react/useViewIntroShownCount.d.ts +6 -0
- package/dist/src/infrastructure/projection/uiSetting/react/useViewIntroShownCount.js +9 -0
- package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/storageUiSettingByKeyView.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutMiddleware.js +10 -6
- package/dist/{infrastructure → src/infrastructure}/ui/settings/UISettings.d.ts +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/settings/UISettings.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.js +7 -8
- package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.style.d.ts +3 -0
- package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.style.js +3 -0
- package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.js +3 -6
- package/dist/{projection → src/projection}/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +1 -1
- package/dist/{projection → src/projection}/checkout/viewCheckoutById.d.ts +1 -1
- package/dist/{projection → src/projection}/checkout/viewFirstAvailableCheckoutByCustomerId.d.ts +1 -1
- package/dist/{projection → src/projection}/checkoutItem/viewCheckoutItemById.d.ts +1 -1
- package/dist/{projection → src/projection}/returnQuestion/listReturnQuestionsByCheckoutItemId.d.ts +1 -1
- package/dist/src/projection/shared/size.js +1 -0
- package/dist/{projection → src/projection}/uiSetting/viewUiSettingByKey.d.ts +1 -1
- package/package.json +6 -1
- package/dist/infrastructure/domain/uiSetting/react/useSetCheckoutIntroShown.d.ts +0 -10
- package/dist/infrastructure/domain/uiSetting/react/useSetCheckoutIntroShown.js +0 -9
- package/dist/infrastructure/projection/uiSetting/react/useViewCheckoutIntroShown.d.ts +0 -2
- package/dist/infrastructure/projection/uiSetting/react/useViewCheckoutIntroShown.js +0 -6
- /package/dist/{domain → src/domain}/checkout/command/startCheckout.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkout/command/startCheckout.js +0 -0
- /package/dist/{domain → src/domain}/checkout/model/checkout.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkout/model/checkout.js +0 -0
- /package/dist/{domain → src/domain}/checkout/model/checkoutStarted.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkout/model/checkoutStarted.js +0 -0
- /package/dist/{domain → src/domain}/checkout/model/checkouts.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkout/model/checkouts.js +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBooking.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBooking.js +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookingBooked.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookingBooked.js +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookings.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookings.js +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/command/keepCheckoutItem.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/command/keepCheckoutItem.js +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItem.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItem.js +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItemKept.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItemKept.js +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItems.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItems.js +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/currency.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/currency.js +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/price.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/price.js +0 -0
- /package/dist/{domain → src/domain}/uiSetting/command/updateUiSetting.d.ts +0 -0
- /package/dist/{domain → src/domain}/uiSetting/command/updateUiSetting.js +0 -0
- /package/dist/{domain → src/domain}/uiSetting/model/uiSetting.d.ts +0 -0
- /package/dist/{domain → src/domain}/uiSetting/model/uiSetting.js +0 -0
- /package/dist/{domain → src/domain}/uiSetting/model/uiSettingUpdated.d.ts +0 -0
- /package/dist/{domain → src/domain}/uiSetting/model/uiSettingUpdated.js +0 -0
- /package/dist/{domain → src/domain}/uiSetting/model/uiSettings.d.ts +0 -0
- /package/dist/{domain → src/domain}/uiSetting/model/uiSettings.js +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{index.js → src/index.js} +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/baseBootstrap.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/baseBootstrap.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.mock.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.mock.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/http/fetchHttpClient.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/http/fetchHttpClient.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/http/httpClient.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/http/httpClient.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckoutItems.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckoutItems.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckouts.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckouts.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckouts.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckouts.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckoutsStart.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckoutsStart.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkout/react/useStartCheckout.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkout/react/useStartCheckout.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/model/httpCheckoutBookings.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/model/httpCheckoutBookings.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItems.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItems.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItemsKeep.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItemsKeep.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/react/useKeepCheckoutItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/react/useKeepCheckoutItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/model/storageUiSettings.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/model/storageUiSettings.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/react/useUpdateUiSetting.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/react/useUpdateUiSetting.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/persistence/asyncStorageStorage.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/persistence/storage.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/persistence/uiSettingData.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/persistence/uiSettingData.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.mock.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.mock.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpCheckoutByIdView.d.ts +0 -0
- /package/dist/{infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.js → src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.d.ts} +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFiveItemsDiscountByCustomerIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFiveItemsDiscountByCustomerIdView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.mock.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.mock.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/httpCheckoutItemByIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/feedback/feedback.mock.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/feedback/feedback.mock.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestion.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestion.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestions.mock.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestions.mock.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useViewUiSettingByKey.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useViewUiSettingByKey.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/storageUiSettingByKeyView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/Root.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/Root.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestion.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestion.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestions.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestions.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.d.ts +0 -0
- /package/dist/{projection/checkout/checkout.js → src/infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.js} +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/templates/SafeAreaScrollView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/templates/SafeAreaScrollView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/hooks/useMediaImage.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/hooks/useMediaImage.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/i18n/i18n.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/i18n/i18n.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutAccessibilityMiddleware.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutAccessibilityMiddleware.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutMiddleware.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/Routing.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/Routing.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.native.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.native.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/routes.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/routes.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/hooks/useScreenSize.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/hooks/useScreenSize.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/theme/theme.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/theme/theme.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/App.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/App.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/Summary.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/Summary.js +0 -0
- /package/dist/{projection → src/projection}/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
- /package/dist/{projection → src/projection}/checkout/checkout.d.ts +0 -0
- /package/dist/{projection/feedback/feedback.js → src/projection/checkout/checkout.js} +0 -0
- /package/dist/{projection → src/projection}/checkout/viewCheckoutById.js +0 -0
- /package/dist/{projection → src/projection}/checkout/viewFirstAvailableCheckoutByCustomerId.js +0 -0
- /package/dist/{projection → src/projection}/checkout/viewFiveItemsDiscountByCustomerId.d.ts +0 -0
- /package/dist/{projection → src/projection}/checkout/viewFiveItemsDiscountByCustomerId.js +0 -0
- /package/dist/{projection → src/projection}/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +0 -0
- /package/dist/{projection → src/projection}/checkout/viewIsCheckoutAccessibleByCustomerId.js +0 -0
- /package/dist/{projection → src/projection}/checkout/viewIsCheckoutEnabledByCustomerId.d.ts +0 -0
- /package/dist/{projection → src/projection}/checkout/viewIsCheckoutEnabledByCustomerId.js +0 -0
- /package/dist/{projection → src/projection}/checkoutItem/checkoutItem.d.ts +0 -0
- /package/dist/{projection → src/projection}/checkoutItem/checkoutItem.js +0 -0
- /package/dist/{projection → src/projection}/checkoutItem/viewCheckoutItemById.js +0 -0
- /package/dist/{projection → src/projection}/feedback/feedback.d.ts +0 -0
- /package/dist/{projection/shared/size.js → src/projection/feedback/feedback.js} +0 -0
- /package/dist/{projection → src/projection}/returnQuestion/listReturnQuestionsByCheckoutItemId.js +0 -0
- /package/dist/{projection → src/projection}/returnQuestion/returnQuestion.d.ts +0 -0
- /package/dist/{projection → src/projection}/returnQuestion/returnQuestion.js +0 -0
- /package/dist/{projection → src/projection}/shared/size.d.ts +0 -0
- /package/dist/{projection → src/projection}/uiSetting/viewUiSettingByKey.js +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { V3MockServer } from "@pact-foundation/pact";
|
|
2
|
+
interface StringObject {
|
|
3
|
+
readonly [k: string]: string;
|
|
4
|
+
}
|
|
5
|
+
declare const DEFAULT_PACT_OPTIONS: StringObject;
|
|
6
|
+
declare const AUTH_TOKEN = "eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6InBpY2tlcixwYWNrZXIiLCJzdWIiOiIxIiwiaWF0IjoxNjAyODQ4MzEyfQ.gCs2_vBcJsXt4EdreNSjDI8NWkOTQ5Cy4SwtrGnuJ44";
|
|
7
|
+
declare const DEFAULT_REQUEST_HEADERS: StringObject;
|
|
8
|
+
declare const DEFAULT_RESPONSE_HEADERS: StringObject;
|
|
9
|
+
interface FromMockServerUrlToApiUrlFunction {
|
|
10
|
+
(mockServer: V3MockServer): string;
|
|
11
|
+
}
|
|
12
|
+
declare const fromMockServerUrlToApiUrl: FromMockServerUrlToApiUrlFunction;
|
|
13
|
+
export { fromMockServerUrlToApiUrl, AUTH_TOKEN, DEFAULT_PACT_OPTIONS, DEFAULT_REQUEST_HEADERS, DEFAULT_RESPONSE_HEADERS, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const DEFAULT_PACT_OPTIONS = { dir: ".contracts", logDir: ".pact/logs" };
|
|
2
|
+
const AUTH_TOKEN = "eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6InBpY2tlcixwYWNrZXIiLCJzdWIiOiIxIiwiaWF0IjoxNjAyODQ4MzEyfQ.gCs2_vBcJsXt4EdreNSjDI8NWkOTQ5Cy4SwtrGnuJ44";
|
|
3
|
+
const DEFAULT_REQUEST_HEADERS = {
|
|
4
|
+
Authorization: `Bearer ${AUTH_TOKEN}`,
|
|
5
|
+
["Content-Type"]: "application/json",
|
|
6
|
+
};
|
|
7
|
+
const DEFAULT_RESPONSE_HEADERS = { ["Content-Type"]: "application/json" };
|
|
8
|
+
const fromMockServerUrlToApiUrl = (mockServer) => mockServer.url.concat("/api");
|
|
9
|
+
export { fromMockServerUrlToApiUrl, AUTH_TOKEN, DEFAULT_PACT_OPTIONS, DEFAULT_REQUEST_HEADERS, DEFAULT_RESPONSE_HEADERS, };
|
|
@@ -6,7 +6,7 @@ interface CheckoutDataSourceFunctionArgs {
|
|
|
6
6
|
interface CheckoutDataSource {
|
|
7
7
|
readonly getCheckout: () => CheckoutProjection;
|
|
8
8
|
readonly saveCheckout: (checkout: CheckoutProjection) => void;
|
|
9
|
-
readonly getCheckoutItem: (id: string) => CheckoutItemProjection |
|
|
9
|
+
readonly getCheckoutItem: (id: string) => CheckoutItemProjection | null;
|
|
10
10
|
readonly saveCheckoutItem: (checkoutItem: CheckoutItemProjection) => void;
|
|
11
11
|
}
|
|
12
12
|
interface CheckoutDataSourceFunction {
|
|
@@ -4,7 +4,7 @@ const checkoutDataSource = ({ data: initialData }) => {
|
|
|
4
4
|
const saveCheckout = (checkout) => {
|
|
5
5
|
data = checkout;
|
|
6
6
|
};
|
|
7
|
-
const getCheckoutItem = (id) => data.items.find((item) => item.id === id);
|
|
7
|
+
const getCheckoutItem = (id) => data.items.find((item) => item.id === id) || null;
|
|
8
8
|
const saveCheckoutItem = (checkoutItem) => {
|
|
9
9
|
data = { ...data, items: data.items.map((item) => (item.id === checkoutItem.id ? checkoutItem : item)) };
|
|
10
10
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CommandStatus } from "@lookiero/messaging-react";
|
|
2
|
+
interface IncrementIntroShownCountFunction {
|
|
3
|
+
(): Promise<void>;
|
|
4
|
+
}
|
|
5
|
+
declare type UseIncrementIntroShownCount = [incrementIntroShownCount: IncrementIntroShownCountFunction, status: CommandStatus];
|
|
6
|
+
interface UseIncrementIntroShownCountFunction {
|
|
7
|
+
(): UseIncrementIntroShownCount;
|
|
8
|
+
}
|
|
9
|
+
declare const useIncrementIntroShownCount: UseIncrementIntroShownCountFunction;
|
|
10
|
+
export { useIncrementIntroShownCount };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useCallback } from "react";
|
|
2
|
+
import { useViewIntroShownCount } from "../../../projection/uiSetting/react/useViewIntroShownCount";
|
|
3
|
+
import { UISettings } from "../../../ui/settings/UISettings";
|
|
4
|
+
import { useUpdateUiSetting } from "./useUpdateUiSetting";
|
|
5
|
+
const useIncrementIntroShownCount = () => {
|
|
6
|
+
const [update, status] = useUpdateUiSetting();
|
|
7
|
+
const [introShownCount] = useViewIntroShownCount();
|
|
8
|
+
const incrementIntroShownCount = useCallback(() => update({ key: UISettings.INTRO_SHOWN_COUNT, value: introShownCount + 1 }), [introShownCount, update]);
|
|
9
|
+
return [incrementIntroShownCount, status];
|
|
10
|
+
};
|
|
11
|
+
export { useIncrementIntroShownCount };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import AsyncStorage from "@react-native-async-storage/async-storage";
|
|
2
2
|
const read = async (key) => {
|
|
3
3
|
const value = await AsyncStorage.getItem(key);
|
|
4
|
-
return value ? JSON.parse(value) :
|
|
4
|
+
return value ? JSON.parse(value) : null;
|
|
5
5
|
};
|
|
6
6
|
const write = async (key, value) => AsyncStorage.setItem(key, JSON.stringify(value));
|
|
7
7
|
export { read, write };
|
|
@@ -21,8 +21,6 @@ const httpBookedSizeReplaceableProductVariantsForCheckoutItemView = ({ httpPost
|
|
|
21
21
|
body: { checkout_item_id: checkoutItemId },
|
|
22
22
|
signal,
|
|
23
23
|
});
|
|
24
|
-
return response.status === 404
|
|
25
|
-
? undefined
|
|
26
|
-
: toBookedSizeReplaceableProductVariants((await response.json()).result);
|
|
24
|
+
return response.status === 404 ? null : toBookedSizeReplaceableProductVariants((await response.json()).result);
|
|
27
25
|
};
|
|
28
26
|
export { toBookedSizeReplaceableProductVariants, httpBookedSizeReplaceableProductVariantsForCheckoutItemView };
|
package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpCheckoutByIdView.js
RENAMED
|
@@ -2,9 +2,9 @@ import { toCheckoutProjection } from "./checkout";
|
|
|
2
2
|
const httpCheckoutByIdView = ({ httpPost }) => async ({ checkoutId, signal }) => {
|
|
3
3
|
const response = await httpPost({
|
|
4
4
|
endpoint: "/view-checkout-by-id",
|
|
5
|
-
body: {
|
|
5
|
+
body: { checkoutId },
|
|
6
6
|
signal,
|
|
7
7
|
});
|
|
8
|
-
return !response.ok || response.status === 404 ?
|
|
8
|
+
return !response.ok || response.status === 404 ? null : toCheckoutProjection((await response.json()).result);
|
|
9
9
|
};
|
|
10
10
|
export { httpCheckoutByIdView };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { MatchersV3, PactV3 } from "@pact-foundation/pact";
|
|
2
|
+
import { AUTH_TOKEN, DEFAULT_PACT_OPTIONS, DEFAULT_REQUEST_HEADERS, DEFAULT_RESPONSE_HEADERS, fromMockServerUrlToApiUrl, } from "../../../../pact.config";
|
|
3
|
+
import { CheckoutItemStatus } from "../../../domain/checkoutItem/model/checkoutItem";
|
|
4
|
+
import { fetchHttpPost } from "../../delivery/http/fetchHttpClient";
|
|
5
|
+
import { toCheckoutProjection } from "./checkout";
|
|
6
|
+
import { startedCheckoutWithStatusDto } from "./checkout.mock";
|
|
7
|
+
import { httpCheckoutByIdView } from "./httpCheckoutByIdView";
|
|
8
|
+
const provider = new PactV3({
|
|
9
|
+
...DEFAULT_PACT_OPTIONS,
|
|
10
|
+
consumer: "STY-BOX_CHECKOUT-FRONT",
|
|
11
|
+
provider: "STY-BOX_CHECKOUT-BACK_ViewCheckoutById",
|
|
12
|
+
});
|
|
13
|
+
const checkoutId = "e2490de5-5bd3-43d5-b7c4-526e33f71304";
|
|
14
|
+
const checkoutResponse = {
|
|
15
|
+
result: startedCheckoutWithStatusDto({ status: [CheckoutItemStatus.KEPT] }),
|
|
16
|
+
};
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
const EXPECTED_BODY = MatchersV3.like(checkoutResponse);
|
|
20
|
+
describe("STY-BOX_CHECKOUT-BACK_ViewCheckoutById API", () => {
|
|
21
|
+
it("returns a valid checkout for the given id", () => {
|
|
22
|
+
provider
|
|
23
|
+
.given("STY-BOX_CHECKOUT-BACK_ViewCheckoutById")
|
|
24
|
+
.uponReceiving("STY-BOX_CHECKOUT-BACK_ViewCheckoutById")
|
|
25
|
+
.withRequest({
|
|
26
|
+
method: "POST",
|
|
27
|
+
path: "/api/view-checkout-by-id",
|
|
28
|
+
headers: DEFAULT_REQUEST_HEADERS,
|
|
29
|
+
body: { checkoutId },
|
|
30
|
+
})
|
|
31
|
+
.willRespondWith({
|
|
32
|
+
status: 200,
|
|
33
|
+
headers: DEFAULT_RESPONSE_HEADERS,
|
|
34
|
+
body: EXPECTED_BODY,
|
|
35
|
+
});
|
|
36
|
+
return provider.executeTest(async (mockserver) => {
|
|
37
|
+
const httpPost = fetchHttpPost({
|
|
38
|
+
apiUrl: fromMockServerUrlToApiUrl(mockserver),
|
|
39
|
+
getAuthToken: () => Promise.resolve(AUTH_TOKEN),
|
|
40
|
+
});
|
|
41
|
+
const response = await httpCheckoutByIdView({ httpPost })({ checkoutId, signal: undefined });
|
|
42
|
+
expect(response).toStrictEqual(toCheckoutProjection(checkoutResponse.result));
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
});
|
|
@@ -5,6 +5,6 @@ const httpFirstAvailableCheckoutByCustomerIdView = ({ httpPost }) => async ({ cu
|
|
|
5
5
|
body: { customer_id: customerId },
|
|
6
6
|
signal,
|
|
7
7
|
});
|
|
8
|
-
return !response.ok || response.status === 404 ?
|
|
8
|
+
return !response.ok || response.status === 404 ? null : toCheckoutProjection((await response.json()).result);
|
|
9
9
|
};
|
|
10
10
|
export { httpFirstAvailableCheckoutByCustomerIdView };
|
|
@@ -5,8 +5,6 @@ const httpCheckoutItemByIdView = ({ httpPost }) => async ({ checkoutItemId, sign
|
|
|
5
5
|
body: { checkout_item_id: checkoutItemId },
|
|
6
6
|
signal,
|
|
7
7
|
});
|
|
8
|
-
return !response.ok || response.status === 404
|
|
9
|
-
? undefined
|
|
10
|
-
: toCheckoutItemProjection((await response.json()).result);
|
|
8
|
+
return !response.ok || response.status === 404 ? null : toCheckoutItemProjection((await response.json()).result);
|
|
11
9
|
};
|
|
12
10
|
export { httpCheckoutItemByIdView };
|
|
@@ -5,8 +5,6 @@ const httpReturnQuestionsByCheckoutItemIdView = ({ httpPost }) => async ({ check
|
|
|
5
5
|
body: { checkout_item_id: checkoutItemId },
|
|
6
6
|
signal,
|
|
7
7
|
});
|
|
8
|
-
return !response.ok || response.status === 404
|
|
9
|
-
? undefined
|
|
10
|
-
: toReturnQuestionsProjection((await response.json()).result);
|
|
8
|
+
return !response.ok || response.status === 404 ? null : toReturnQuestionsProjection((await response.json()).result);
|
|
11
9
|
};
|
|
12
10
|
export { httpReturnQuestionsByCheckoutItemIdView };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { useViewIntroShownCount } from "./useViewIntroShownCount";
|
|
2
|
+
const MAX_INTRO_SHOWN_COUNT = 2;
|
|
3
|
+
const useShouldIntroBeShown = () => {
|
|
4
|
+
const [introShownCount, introShownCountStatus] = useViewIntroShownCount();
|
|
5
|
+
return [introShownCount < MAX_INTRO_SHOWN_COUNT, introShownCountStatus];
|
|
6
|
+
};
|
|
7
|
+
export { useShouldIntroBeShown };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UISettings } from "../../../ui/settings/UISettings";
|
|
2
|
+
import { useViewUiSettingByKey } from "./useViewUiSettingByKey";
|
|
3
|
+
const useViewIntroShownCount = () => {
|
|
4
|
+
const [introShownCount, introShownCountStatus] = useViewUiSettingByKey({
|
|
5
|
+
key: UISettings.INTRO_SHOWN_COUNT,
|
|
6
|
+
});
|
|
7
|
+
return [introShownCount?.value || 0, introShownCountStatus];
|
|
8
|
+
};
|
|
9
|
+
export { useViewIntroShownCount };
|
package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/storageUiSettingByKeyView.js
RENAMED
|
@@ -6,7 +6,7 @@ const toUiSettingProjection = (uiSettingDto) => ({
|
|
|
6
6
|
const storageUiSettingByKeyView = ({ read }) => async ({ key }) => {
|
|
7
7
|
try {
|
|
8
8
|
const uiSettingDto = await read(key);
|
|
9
|
-
return uiSettingDto ? toUiSettingProjection(uiSettingDto) :
|
|
9
|
+
return uiSettingDto ? toUiSettingProjection(uiSettingDto) : null;
|
|
10
10
|
}
|
|
11
11
|
catch (ignored) {
|
|
12
12
|
throw new Error("Could not fetch the uiSetting");
|
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
import { QueryStatus } from "@lookiero/messaging-react";
|
|
2
|
-
import React from "react";
|
|
2
|
+
import React, { useRef } from "react";
|
|
3
3
|
import { generatePath, Navigate, Outlet, useMatch } from "react-router-native";
|
|
4
4
|
import { CheckoutItemStatus } from "../../../domain/checkoutItem/model/checkoutItem";
|
|
5
5
|
import { useViewFirstAvailableCheckoutByCustomerId } from "../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
|
|
6
|
-
import {
|
|
6
|
+
import { useShouldIntroBeShown } from "../../projection/uiSetting/react/useShouldIntroBeShown";
|
|
7
7
|
import { Spinner } from "../shared/components/atoms/spinner/Spinner";
|
|
8
8
|
import { Routes } from "./routes";
|
|
9
9
|
const CheckoutMiddleware = ({ customerId, loader = React.createElement(Spinner, null) }) => {
|
|
10
|
-
const
|
|
10
|
+
const introShown = useRef(false);
|
|
11
|
+
const [shouldIntroBeShown, shouldIntroBeShownStatus] = useShouldIntroBeShown();
|
|
11
12
|
const [checkout, checkoutStatus] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
|
|
12
13
|
const firstItemWithoutCustomerDecision = checkout?.items.find((item) => [CheckoutItemStatus.EXPIRED, CheckoutItemStatus.INITIAL].includes(item.status));
|
|
13
14
|
const introRouteMatch = useMatch(Routes.INTRO);
|
|
14
15
|
const itemRouteMatch = useMatch(Routes.ITEM);
|
|
15
16
|
const summaryRouteMatch = useMatch(Routes.SUMMARY);
|
|
16
17
|
const dependenciesLoadedStatuses = [QueryStatus.ERROR, QueryStatus.SUCCESS];
|
|
17
|
-
const dependenciesLoaded = dependenciesLoadedStatuses.includes(
|
|
18
|
+
const dependenciesLoaded = dependenciesLoadedStatuses.includes(shouldIntroBeShownStatus) &&
|
|
18
19
|
dependenciesLoadedStatuses.includes(checkoutStatus);
|
|
19
20
|
if (!dependenciesLoaded) {
|
|
20
21
|
return loader;
|
|
21
22
|
}
|
|
22
|
-
if (!
|
|
23
|
-
if (
|
|
23
|
+
if (shouldIntroBeShown && !introShown.current) {
|
|
24
|
+
if (introRouteMatch) {
|
|
25
|
+
introShown.current = true;
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
24
28
|
return React.createElement(Navigate, { to: Routes.INTRO, replace: true });
|
|
25
29
|
}
|
|
26
30
|
}
|
|
@@ -3,9 +3,9 @@ import { Icon } from "@lookiero/aurora-next/build/components/primitives/Icon/Ico
|
|
|
3
3
|
import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
5
|
import { CommandStatus, QueryStatus } from "@lookiero/messaging-react";
|
|
6
|
-
import React
|
|
6
|
+
import React from "react";
|
|
7
7
|
import { View } from "react-native";
|
|
8
|
-
import {
|
|
8
|
+
import { useIncrementIntroShownCount } from "../../../domain/uiSetting/react/useIncrementIntroShownCount";
|
|
9
9
|
import { useViewFiveItemsDiscountByCustomerId } from "../../../projection/checkout/react/useViewFiveItemsDiscountByCustomerId";
|
|
10
10
|
import { Body } from "../../components/layouts/body/Body";
|
|
11
11
|
import { SafeAreaScrollView } from "../../components/templates/SafeAreaScrollView";
|
|
@@ -23,15 +23,14 @@ const Intro = ({ customerId }) => {
|
|
|
23
23
|
const bulletTwoText = useI18nMessage({ id: I18nMessages.INTRO_BULLET_TWO });
|
|
24
24
|
const bulletThreeText = useI18nMessage({ id: I18nMessages.INTRO_BULLET_THREE });
|
|
25
25
|
const buttonText = useI18nMessage({ id: I18nMessages.INTRO_BUTTON });
|
|
26
|
-
const [fiveItemsDiscount,
|
|
26
|
+
const [fiveItemsDiscount, fiveItemsDiscountStatus] = useViewFiveItemsDiscountByCustomerId({
|
|
27
27
|
customerId,
|
|
28
28
|
});
|
|
29
|
-
const [
|
|
30
|
-
|
|
31
|
-
if (fiveItemsDiscountState === QueryStatus.LOADING)
|
|
29
|
+
const [incrementIntroShownCount, incrementIntroShownCountStatus] = useIncrementIntroShownCount();
|
|
30
|
+
if (fiveItemsDiscountStatus === QueryStatus.LOADING)
|
|
32
31
|
return React.createElement(Spinner, null);
|
|
33
32
|
return (React.createElement(SafeAreaScrollView, null,
|
|
34
|
-
React.createElement(Body,
|
|
33
|
+
React.createElement(Body, { style: { column: style.bodyColumn } },
|
|
35
34
|
React.createElement(View, { style: style.container },
|
|
36
35
|
React.createElement(View, { style: style.content },
|
|
37
36
|
React.createElement(Text, { level: 3, style: style.title, heading: true }, titleText),
|
|
@@ -47,6 +46,6 @@ const Intro = ({ customerId }) => {
|
|
|
47
46
|
React.createElement(Bullet, { text: bulletOneText }),
|
|
48
47
|
React.createElement(Bullet, { text: bulletTwoText }),
|
|
49
48
|
React.createElement(Bullet, { text: bulletThreeText }))),
|
|
50
|
-
React.createElement(Button, { disabled:
|
|
49
|
+
React.createElement(Button, { disabled: incrementIntroShownCountStatus === CommandStatus.LOADING, onPress: incrementIntroShownCount }, buttonText)))));
|
|
51
50
|
};
|
|
52
51
|
export { Intro };
|
|
@@ -2,6 +2,9 @@ import { StyleSheet } from "react-native";
|
|
|
2
2
|
import { theme } from "../../theme/theme";
|
|
3
3
|
const { borderSize, colorAccent, spaceXS, spaceS, spaceM, spaceL, spaceXL } = theme();
|
|
4
4
|
const style = StyleSheet.create({
|
|
5
|
+
bodyColumn: {
|
|
6
|
+
paddingHorizontal: spaceXL,
|
|
7
|
+
},
|
|
5
8
|
bullet: {
|
|
6
9
|
alignItems: "center",
|
|
7
10
|
flexDirection: "row",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QueryStatus } from "@lookiero/messaging-react";
|
|
2
2
|
import React, { useCallback, useState } from "react";
|
|
3
|
-
import {
|
|
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";
|
|
@@ -34,7 +34,7 @@ const Item = ({ customerId }) => {
|
|
|
34
34
|
const handleOnSubmit = useCallback(() => handleOnHideReturnQuestions(), [handleOnHideReturnQuestions]);
|
|
35
35
|
const handleOnKeep = useCallback(() => void 0, []);
|
|
36
36
|
const handleOnReplace = useCallback(() => void 0, []);
|
|
37
|
-
const handleOnReturn = useCallback(() =>
|
|
37
|
+
const handleOnReturn = useCallback(() => handleOnShowReturnQuestions(), [handleOnShowReturnQuestions]);
|
|
38
38
|
const handleOnBannerPress = useCallback(() => void 0, []);
|
|
39
39
|
const dependenciesLoadedStatuses = [QueryStatus.ERROR, QueryStatus.SUCCESS];
|
|
40
40
|
const dependenciesLoaded = dependenciesLoadedStatuses.includes(returnQuestionsStatus) && dependenciesLoadedStatuses.includes(checkoutStatus);
|
|
@@ -56,10 +56,7 @@ const Item = ({ customerId }) => {
|
|
|
56
56
|
React.createElement(ProductVariantSlider, { producVariantMedia: media })),
|
|
57
57
|
React.createElement(ProductVariantDescription, { brand: brand, color: color, name: name, price: price, size: size }),
|
|
58
58
|
Object.entries(feedback).length !== 0 && (React.createElement(View, { style: style.feedbackContainer },
|
|
59
|
-
React.createElement(ReturnQuestionsFeedback, { feedback: feedback, returnQuestions: returnQuestions, onEditFeedback: handleOnEditFeedback }))),
|
|
60
|
-
React.createElement(View, { style: { flexDirection: "row", justifyContent: "center" } },
|
|
61
|
-
React.createElement(TouchableHighlight, { onPress: handleOnShowReturnQuestions },
|
|
62
|
-
React.createElement(Text, { style: { padding: 16 } }, "show return questions")))))),
|
|
59
|
+
React.createElement(ReturnQuestionsFeedback, { feedback: feedback, returnQuestions: returnQuestions, onEditFeedback: handleOnEditFeedback })))))),
|
|
63
60
|
customerDecissionMade && (React.createElement(ItemActions, { size: checkoutItem.productVariant.size, sizes: sizes, onKeep: handleOnKeep, onLayout: handleOnStickyLayout, onReplace: handleOnReplace, onReturn: handleOnReturn })),
|
|
64
61
|
React.createElement(ReturnQuestionsForm, { checkoutItemPrice: checkoutItem.price, feedback: feedback, productVariant: checkoutItem.productVariant, returnQuestions: returnQuestions, visible: returnQuestionsVisible, onClose: handleOnHideReturnQuestions, onSubmit: handleOnSubmit })));
|
|
65
62
|
};
|
|
@@ -18,7 +18,7 @@ interface ViewBookedSizeReplaceableProductVariantsForCheckoutItemFunction {
|
|
|
18
18
|
(payload: ViewBookedSizeReplaceableProductVariantsForCheckoutItemPayload): ViewBookedSizeReplaceableProductVariantsForCheckoutItem;
|
|
19
19
|
}
|
|
20
20
|
declare const viewBookedSizeReplaceableProductVariantsForCheckoutItem: ViewBookedSizeReplaceableProductVariantsForCheckoutItemFunction;
|
|
21
|
-
declare type ViewBookedSizeReplaceableProductVariantsForCheckoutItemResult = BookedSizeReplaceableProductVariantsProjection |
|
|
21
|
+
declare type ViewBookedSizeReplaceableProductVariantsForCheckoutItemResult = BookedSizeReplaceableProductVariantsProjection | null;
|
|
22
22
|
interface BookedSizeReplaceableProductVariantsForCheckoutItemViewArgs extends CancelableQueryViewArgs {
|
|
23
23
|
readonly checkoutItemId: string;
|
|
24
24
|
}
|
|
@@ -10,7 +10,7 @@ interface ViewCheckoutByIdFunction {
|
|
|
10
10
|
(payload: ViewCheckoutByIdPayload): ViewCheckoutById;
|
|
11
11
|
}
|
|
12
12
|
declare const viewCheckoutById: ViewCheckoutByIdFunction;
|
|
13
|
-
declare type ViewCheckoutByIdResult = CheckoutProjection |
|
|
13
|
+
declare type ViewCheckoutByIdResult = CheckoutProjection | null;
|
|
14
14
|
interface CheckoutByIdViewArgs extends CancelableQueryViewArgs {
|
|
15
15
|
readonly checkoutId: string;
|
|
16
16
|
}
|
package/dist/{projection → src/projection}/checkout/viewFirstAvailableCheckoutByCustomerId.d.ts
RENAMED
|
@@ -10,7 +10,7 @@ interface ViewFirstAvailableCheckoutByCustomerIdFunction {
|
|
|
10
10
|
(payload: ViewFirstAvailableCheckoutByCustomerIdPayload): ViewFirstAvailableCheckoutByCustomerId;
|
|
11
11
|
}
|
|
12
12
|
declare const viewFirstAvailableCheckoutByCustomerId: ViewFirstAvailableCheckoutByCustomerIdFunction;
|
|
13
|
-
declare type ViewFirstAvailableCheckoutByCustomerIdResult = CheckoutProjection |
|
|
13
|
+
declare type ViewFirstAvailableCheckoutByCustomerIdResult = CheckoutProjection | null;
|
|
14
14
|
interface FirstAvailableCheckoutByCustomerIdViewArgs extends CancelableQueryViewArgs {
|
|
15
15
|
readonly customerId: string;
|
|
16
16
|
}
|
|
@@ -10,7 +10,7 @@ interface ViewCheckoutItemByIdFunction {
|
|
|
10
10
|
(payload: ViewCheckoutItemByIdPayload): ViewCheckoutItemById;
|
|
11
11
|
}
|
|
12
12
|
declare const viewCheckoutItemById: ViewCheckoutItemByIdFunction;
|
|
13
|
-
declare type ViewCheckoutItemByIdResult = CheckoutItemProjection |
|
|
13
|
+
declare type ViewCheckoutItemByIdResult = CheckoutItemProjection | null;
|
|
14
14
|
interface CheckoutItemByIdViewArgs extends CancelableQueryViewArgs {
|
|
15
15
|
readonly checkoutItemId: string;
|
|
16
16
|
}
|
package/dist/{projection → src/projection}/returnQuestion/listReturnQuestionsByCheckoutItemId.d.ts
RENAMED
|
@@ -10,7 +10,7 @@ interface ListReturnQuestionsByCheckoutItemIdFunction {
|
|
|
10
10
|
(payload: ListReturnQuestionsByCheckoutItemIdPayload): ListReturnQuestionsByCheckoutItemId;
|
|
11
11
|
}
|
|
12
12
|
declare const listReturnQuestionsByCheckoutItemId: ListReturnQuestionsByCheckoutItemIdFunction;
|
|
13
|
-
declare type ListReturnQuestionsByCheckoutItemIdResult = ReturnQuestionProjection[] |
|
|
13
|
+
declare type ListReturnQuestionsByCheckoutItemIdResult = ReturnQuestionProjection[] | null;
|
|
14
14
|
interface ReturnQuestionsByCheckoutItemIdViewArgs extends CancelableQueryViewArgs {
|
|
15
15
|
readonly checkoutItemId: string;
|
|
16
16
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -14,7 +14,7 @@ interface ViewUiSettingByKeyFunction {
|
|
|
14
14
|
(payload: ViewUiSettingByKeyPayload): ViewUiSettingByKey;
|
|
15
15
|
}
|
|
16
16
|
declare const viewUiSettingByKey: ViewUiSettingByKeyFunction;
|
|
17
|
-
declare type ViewUiSettingByKeyResult = UiSettingProjection |
|
|
17
|
+
declare type ViewUiSettingByKeyResult = UiSettingProjection | null;
|
|
18
18
|
interface UiSettingByKeyViewArgs {
|
|
19
19
|
readonly key: string;
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookiero/checkout",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.34",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"format": "prettier --write \"**/*.+(json|css|ts|tsx|md)\"",
|
|
22
22
|
"test": "tsc -p ./tsconfig.test.json --noemit && jest",
|
|
23
23
|
"test:coverage": "jest --coverage --coverageReporters=text --detectOpenHandles --forceExit --silent",
|
|
24
|
+
"test:contract": "TEST_ENV=CONTRACT jest --coverage false --detectOpenHandles --testMatch \"**/?(*.)+(pact).ts\" --testTimeout=3000 --watchAll=false --forceExit",
|
|
25
|
+
"publish:contract": "BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) node pact.publish.js",
|
|
24
26
|
"prepare": "husky install"
|
|
25
27
|
},
|
|
26
28
|
"dependencies": {
|
|
@@ -49,6 +51,8 @@
|
|
|
49
51
|
"@lookiero/aurora-fonts": "^1.0.6",
|
|
50
52
|
"@lookiero/aurora-iconfont": "^2.0.37",
|
|
51
53
|
"@lookiero/aurora-next": "^3.0.181",
|
|
54
|
+
"@pact-foundation/pact": "^10.1.4",
|
|
55
|
+
"@pact-foundation/pact-node": "^10.17.6",
|
|
52
56
|
"@testing-library/react": "^13.4.0",
|
|
53
57
|
"@testing-library/react-hooks": "^8.0.1",
|
|
54
58
|
"@testing-library/react-native": "^11.0.0",
|
|
@@ -73,6 +77,7 @@
|
|
|
73
77
|
"husky": "^8.0.1",
|
|
74
78
|
"jest": "^29.1.1",
|
|
75
79
|
"jest-expo": "^46.0.1",
|
|
80
|
+
"jest-fetch-mock": "^3.0.3",
|
|
76
81
|
"jest-mock-extended": "^2.0.7",
|
|
77
82
|
"lint-staged": "^13.0.3",
|
|
78
83
|
"prettier": "^2.7.1",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CommandStatus } from "@lookiero/messaging-react";
|
|
2
|
-
interface SetCheckoutIntroShownFunction {
|
|
3
|
-
(): Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
declare type UseSetCheckoutIntroShown = [setCheckoutIntroShown: SetCheckoutIntroShownFunction, status: CommandStatus];
|
|
6
|
-
interface UseSetCheckoutIntroShownFunction {
|
|
7
|
-
(): UseSetCheckoutIntroShown;
|
|
8
|
-
}
|
|
9
|
-
declare const useSetCheckoutIntroShown: UseSetCheckoutIntroShownFunction;
|
|
10
|
-
export { useSetCheckoutIntroShown };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { useCallback } from "react";
|
|
2
|
-
import { UISettings } from "../../../ui/settings/UISettings";
|
|
3
|
-
import { useUpdateUiSetting } from "./useUpdateUiSetting";
|
|
4
|
-
const useSetCheckoutIntroShown = () => {
|
|
5
|
-
const [update, status] = useUpdateUiSetting();
|
|
6
|
-
const setCheckoutIntroShown = useCallback(() => update({ key: UISettings.CHECKOUT_INTRO_SHOWN, value: true }), [update]);
|
|
7
|
-
return [setCheckoutIntroShown, status];
|
|
8
|
-
};
|
|
9
|
-
export { useSetCheckoutIntroShown };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { UISettings } from "../../../ui/settings/UISettings";
|
|
2
|
-
import { useViewUiSettingByKey } from "./useViewUiSettingByKey";
|
|
3
|
-
const useViewCheckoutIntroShown = () => useViewUiSettingByKey({
|
|
4
|
-
key: UISettings.CHECKOUT_INTRO_SHOWN,
|
|
5
|
-
});
|
|
6
|
-
export { useViewCheckoutIntroShown };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|