@lookiero/checkout 0.3.5 → 0.3.7
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/README.md +1 -0
- package/dist/package.json +116 -0
- package/dist/src/ExpoRoot.d.ts +5 -0
- package/dist/src/ExpoRoot.js +94 -0
- package/dist/{index.d.ts → src/index.d.ts} +1 -1
- package/dist/{index.js → src/index.js} +6 -3
- package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.d.ts +1 -1
- package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.js +3 -3
- package/dist/{infrastructure → src/infrastructure}/delivery/http/fetchHttpClient.d.ts +1 -1
- package/dist/src/infrastructure/delivery/http/fetchHttpClient.js +20 -0
- package/dist/{infrastructure → src/infrastructure}/domain/checkout/react/useMarkCheckoutAsPaid.d.ts +2 -2
- package/dist/{infrastructure → src/infrastructure}/domain/checkout/react/useMarkCheckoutAsPaid.js +7 -3
- package/dist/{infrastructure → src/infrastructure}/projection/payment/react/useViewPaymentFlowPayloadByCheckoutId.d.ts +1 -1
- package/dist/{infrastructure → src/infrastructure}/projection/payment/react/useViewPaymentFlowPayloadByCheckoutId.js +2 -2
- package/dist/{infrastructure → src/infrastructure}/ui/Root.d.ts +3 -0
- package/dist/{infrastructure → src/infrastructure}/ui/Root.js +3 -2
- package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.js +2 -2
- package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/tabs/Tabs.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +3 -3
- package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/i18n/i18n.d.ts +8 -1
- package/dist/{infrastructure → src/infrastructure}/ui/i18n/i18n.js +7 -0
- package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutAccessibilityMiddleware.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutMiddleware.js +5 -1
- package/dist/{infrastructure → src/infrastructure}/ui/routing/Routing.d.ts +3 -2
- package/dist/{infrastructure → src/infrastructure}/ui/routing/Routing.js +8 -2
- package/dist/{infrastructure → src/infrastructure}/ui/routing/routes.d.ts +3 -1
- package/dist/{infrastructure → src/infrastructure}/ui/routing/routes.js +2 -0
- package/dist/{infrastructure → src/infrastructure}/ui/views/App.js +2 -0
- package/dist/src/infrastructure/ui/views/checkout/Checkout.d.ts +7 -0
- package/dist/src/infrastructure/ui/views/checkout/Checkout.js +78 -0
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.d.ts +22 -0
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.js +25 -0
- package/dist/src/infrastructure/ui/views/checkout/components/CheckoutSuccessModal.d.ts +7 -0
- package/dist/src/infrastructure/ui/views/checkout/components/CheckoutSuccessModal.js +25 -0
- package/dist/src/infrastructure/ui/views/checkout/components/CheckoutSuccessModal.style.js +19 -0
- package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.d.ts +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.js +2 -2
- package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +1 -1
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +16 -0
- package/dist/{infrastructure → src/infrastructure}/ui/views/summary/Summary.js +1 -1
- package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.js +1 -1
- package/dist/src/shared/notifications/domain/notification/command/createNotification.d.ts +17 -0
- package/dist/src/shared/notifications/domain/notification/command/createNotification.js +7 -0
- package/dist/src/shared/notifications/domain/notification/command/removeNotification.d.ts +13 -0
- package/dist/src/shared/notifications/domain/notification/command/removeNotification.js +4 -0
- package/dist/src/shared/notifications/domain/notification/command/removeNotification.tes.d.ts +1 -0
- package/dist/src/shared/notifications/domain/notification/command/removeNotification.tes.js +9 -0
- package/dist/src/shared/notifications/domain/notification/model/notification.d.ts +18 -0
- package/dist/src/shared/notifications/domain/notification/model/notification.js +27 -0
- package/dist/src/shared/notifications/domain/notification/model/notificationCreated.d.ts +13 -0
- package/dist/src/shared/notifications/domain/notification/model/notificationCreated.js +4 -0
- package/dist/src/shared/notifications/domain/notification/model/notificationRemoved.d.ts +13 -0
- package/dist/src/shared/notifications/domain/notification/model/notificationRemoved.js +4 -0
- package/dist/src/shared/notifications/domain/notification/model/notifications.d.ts +7 -0
- package/dist/src/shared/notifications/domain/notification/model/notifications.js +1 -0
- package/dist/src/shared/notifications/index.d.ts +8 -0
- package/dist/src/shared/notifications/index.js +5 -0
- package/dist/src/shared/notifications/infrastructure/delivery/bootstrap.d.ts +13 -0
- package/dist/src/shared/notifications/infrastructure/delivery/bootstrap.js +14 -0
- package/dist/src/shared/notifications/infrastructure/domain/notification/model/storageNotifications.d.ts +18 -0
- package/dist/src/shared/notifications/infrastructure/domain/notification/model/storageNotifications.js +23 -0
- package/dist/src/shared/notifications/infrastructure/domain/notification/model/storageNotificationsCreate.d.ts +8 -0
- package/dist/src/shared/notifications/infrastructure/domain/notification/model/storageNotificationsCreate.js +16 -0
- package/dist/src/shared/notifications/infrastructure/domain/notification/model/storageNotificationsRemove.d.ts +5 -0
- package/dist/src/shared/notifications/infrastructure/domain/notification/model/storageNotificationsRemove.js +10 -0
- package/dist/src/shared/notifications/infrastructure/domain/notification/react/useCreateNotification.d.ts +16 -0
- package/dist/src/shared/notifications/infrastructure/domain/notification/react/useCreateNotification.js +16 -0
- package/dist/src/shared/notifications/infrastructure/domain/notification/react/useRemoveNotification.d.ts +12 -0
- package/dist/src/shared/notifications/infrastructure/domain/notification/react/useRemoveNotification.js +10 -0
- package/dist/src/shared/notifications/infrastructure/persistence/inMemoryStorageNotifications.d.ts +7 -0
- package/dist/src/shared/notifications/infrastructure/persistence/inMemoryStorageNotifications.js +13 -0
- package/dist/src/shared/notifications/infrastructure/persistence/notificationDto.d.ts +8 -0
- package/dist/src/shared/notifications/infrastructure/persistence/notificationDto.js +1 -0
- package/dist/src/shared/notifications/infrastructure/persistence/storage.d.ts +7 -0
- package/dist/src/shared/notifications/infrastructure/persistence/storage.js +1 -0
- package/dist/src/shared/notifications/infrastructure/projection/notification/notification.d.ts +7 -0
- package/dist/src/shared/notifications/infrastructure/projection/notification/notification.js +7 -0
- package/dist/src/shared/notifications/infrastructure/projection/notification/storageListNotificationsView.d.ts +13 -0
- package/dist/src/shared/notifications/infrastructure/projection/notification/storageListNotificationsView.js +6 -0
- package/dist/src/shared/notifications/infrastructure/ui/components/NotificationItem.d.ts +12 -0
- package/dist/src/shared/notifications/infrastructure/ui/components/NotificationItem.js +24 -0
- package/dist/src/shared/notifications/infrastructure/ui/components/Notifications.d.ts +9 -0
- package/dist/src/shared/notifications/infrastructure/ui/components/Notifications.js +13 -0
- package/dist/src/shared/notifications/infrastructure/ui/components/Notifications.style.d.ts +25 -0
- package/dist/src/shared/notifications/infrastructure/ui/components/Notifications.style.js +28 -0
- package/dist/src/shared/notifications/infrastructure/ui/notificationsRoot.d.ts +13 -0
- package/dist/src/shared/notifications/infrastructure/ui/notificationsRoot.js +11 -0
- package/dist/src/shared/notifications/infrastructure/ui/views/Notifications.d.ts +3 -0
- package/dist/src/shared/notifications/infrastructure/ui/views/Notifications.js +11 -0
- package/dist/src/shared/notifications/projection/notification/listNotifications.d.ts +19 -0
- package/dist/src/shared/notifications/projection/notification/listNotifications.js +5 -0
- package/dist/src/shared/notifications/projection/notification/notification.d.ts +8 -0
- package/dist/src/shared/notifications/projection/notification/notification.js +1 -0
- package/dist/src/shared/notifications/projection/notification/react/useListNotifications.d.ts +7 -0
- package/dist/src/shared/notifications/projection/notification/react/useListNotifications.js +15 -0
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/error/Error.style.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/field/Field.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/field/Field.style.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/icon/Icon.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/icon/Icon.style.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/input/Input.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/input/Input.style.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/spinner/Spinner.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/modal/Modal.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/modal/Modal.style.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/row/Row.style.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/slider/Pagination.style.js +1 -1
- package/dist/src/shared/ui/components/layouts/stack/Stack.d.ts +8 -0
- package/dist/src/shared/ui/components/layouts/stack/Stack.js +29 -0
- package/dist/src/shared/ui/components/layouts/stack/Stack.style.d.ts +10 -0
- package/dist/src/shared/ui/components/layouts/stack/Stack.style.js +11 -0
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/sticky/Sticky.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/sticky/Sticky.style.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/molecules/buttonIcon/ButtonIcon.style.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/molecules/inputField/InputField.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/molecules/inputField/InputField.style.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/molecules/selectField/SelectField.js +1 -1
- package/dist/{infrastructure/ui/shared → src/shared/ui}/components/molecules/selectField/SelectField.style.js +1 -1
- package/dist/src/shared/ui/components/molecules/toast/Toast.d.ts +25 -0
- package/dist/src/shared/ui/components/molecules/toast/Toast.js +22 -0
- package/dist/src/shared/ui/components/molecules/toast/Toast.style.d.ts +34 -0
- package/dist/src/shared/ui/components/molecules/toast/Toast.style.js +37 -0
- package/package.json +24 -4
- package/dist/infrastructure/delivery/http/fetchHttpClient.js +0 -20
- /package/dist/{domain → src/domain}/checkout/command/markCheckoutAsPaid.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkout/command/markCheckoutAsPaid.js +0 -0
- /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/checkoutPaid.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkout/model/checkoutPaid.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/bookCheckoutBookingForCheckoutItem.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/command/bookCheckoutBookingForCheckoutItem.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/command/replaceCheckoutItem.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/command/replaceCheckoutItem.js +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/command/returnCheckoutItem.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/command/returnCheckoutItem.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/checkoutItemReplaced.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItemReplaced.js +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItemReturned.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItemReturned.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/feedbacks.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/feedbacks.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/{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/http/httpClient.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/http/httpClient.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/checkoutBookingDataSource.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/checkoutBookingDataSource.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/checkoutDataSource.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/checkoutDataSource.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckoutBookings.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckoutBookings.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/httpCheckoutsMarkAsPaid.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckoutsMarkAsPaid.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/model/httpCheckoutBookingsBook.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/model/httpCheckoutBookingsBook.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.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/model/httpCheckoutItemsReplace.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItemsReplace.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItemsReturn.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItemsReturn.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/checkoutItem/react/useReplaceCheckoutItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/react/useReplaceCheckoutItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/react/useReturnCheckoutItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/react/useReturnCheckoutItem.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/useIncrementIntroShownCount.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/react/useIncrementIntroShownCount.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/asyncStorageStorage.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/persistence/storage.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/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.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/httpCheckoutByIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpCheckoutByIdView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.js +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/checkoutBooking/httpCheckoutBookingByIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkoutBooking/httpCheckoutBookingByIdView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/httpCheckoutItemByIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/httpCheckoutItemByIdView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/pricing/httpPricingByCheckoutIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/pricing/httpPricingByCheckoutIdView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/pricing/react/useViewPricingByCheckoutId.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/pricing/react/useViewPricingByCheckoutId.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.js +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/uiSetting/react/useShouldIntroBeShown.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useShouldIntroBeShown.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useViewIntroShownCount.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useViewIntroShownCount.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}/projection/uiSetting/storageUiSettingByKeyView.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.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/layouts/tabs/Tabs.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/tabs/Tabs.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/tabs/Tabs.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/{infrastructure → 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.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/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/routing/CheckoutAccessibilityMiddleware.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutMiddleware.d.ts +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/settings/UISettings.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/settings/UISettings.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/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts → src/infrastructure/ui/views/checkout/components/CheckoutSuccessModal.style.d.ts} +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.style.js +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.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.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.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.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.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.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/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts → 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.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.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/Summary.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/pricing/Pricing.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/pricing/Pricing.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/pricing/Pricing.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/pricing/Pricing.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/pricing/icons/ArrowDown.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/pricing/icons/ArrowDown.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/pricing/icons/ArrowUp.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/pricing/icons/ArrowUp.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.style.js +0 -0
- /package/dist/{projection → src/projection}/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.d.ts +0 -0
- /package/dist/{projection → src/projection}/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.js +0 -0
- /package/dist/{projection → src/projection}/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.d.ts +0 -0
- /package/dist/{projection → src/projection}/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.js +0 -0
- /package/dist/{projection → src/projection}/checkout/checkout.d.ts +0 -0
- /package/dist/{projection → src/projection}/checkout/checkout.js +0 -0
- /package/dist/{projection → src/projection}/checkout/viewCheckoutById.d.ts +0 -0
- /package/dist/{projection → src/projection}/checkout/viewCheckoutById.js +0 -0
- /package/dist/{projection → src/projection}/checkout/viewFirstAvailableCheckoutByCustomerId.d.ts +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}/checkoutBooking/checkoutBooking.d.ts +0 -0
- /package/dist/{projection → src/projection}/checkoutBooking/checkoutBooking.js +0 -0
- /package/dist/{projection → src/projection}/checkoutBooking/viewCheckoutBookingById.d.ts +0 -0
- /package/dist/{projection → src/projection}/checkoutBooking/viewCheckoutBookingById.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.d.ts +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 → src/projection}/feedback/feedback.js +0 -0
- /package/dist/{projection → src/projection}/payment/paymentFlowPayload.d.ts +0 -0
- /package/dist/{projection → src/projection}/payment/paymentFlowPayload.js +0 -0
- /package/dist/{projection → src/projection}/payment/viewPaymentFlowPayloadByCheckoutId.d.ts +0 -0
- /package/dist/{projection → src/projection}/payment/viewPaymentFlowPayloadByCheckoutId.js +0 -0
- /package/dist/{projection → src/projection}/pricing/pricing.d.ts +0 -0
- /package/dist/{projection → src/projection}/pricing/pricing.js +0 -0
- /package/dist/{projection → src/projection}/pricing/viewPricingByCheckoutId.d.ts +0 -0
- /package/dist/{projection → src/projection}/pricing/viewPricingByCheckoutId.js +0 -0
- /package/dist/{projection → src/projection}/returnQuestion/listReturnQuestionsByCheckoutItemId.d.ts +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/price.d.ts +0 -0
- /package/dist/{projection → src/projection}/shared/price.js +0 -0
- /package/dist/{projection → src/projection}/shared/size.d.ts +0 -0
- /package/dist/{projection → src/projection}/shared/size.js +0 -0
- /package/dist/{projection → src/projection}/uiSetting/viewUiSettingByKey.d.ts +0 -0
- /package/dist/{projection → src/projection}/uiSetting/viewUiSettingByKey.js +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/error/Error.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/error/Error.js +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/error/Error.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/field/Field.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/field/Field.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/icon/Icon.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/icon/Icon.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/input/Input.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/input/Input.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/spinner/Spinner.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/spinner/Spinner.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/atoms/spinner/Spinner.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/column/Column.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/column/Column.js +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/column/Column.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/column/Column.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/modal/Modal.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/modal/Modal.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/row/Row.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/row/Row.js +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/row/Row.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/slider/Pagination.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/slider/Pagination.js +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/slider/Pagination.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/slider/Slider.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/slider/Slider.js +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/slider/Slider.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/slider/Slider.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/sticky/Sticky.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/layouts/sticky/Sticky.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/molecules/buttonIcon/ButtonIcon.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/molecules/buttonIcon/ButtonIcon.js +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/molecules/buttonIcon/ButtonIcon.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/molecules/inputField/InputField.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/molecules/inputField/InputField.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/molecules/selectField/SelectField.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/components/molecules/selectField/SelectField.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/hooks/useScreenSize.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → src/shared/ui}/hooks/useScreenSize.js +0 -0
package/README.md
CHANGED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lookiero/checkout",
|
|
3
|
+
"version": "0.3.7",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": "^14.20.0 || ^16.13.0 || ^18.9.0"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"start": "expo start",
|
|
14
|
+
"android": "expo start --android",
|
|
15
|
+
"ios": "expo start --ios",
|
|
16
|
+
"web": "expo start --web",
|
|
17
|
+
"export-analyze-web": "BUNDLE_ANALYZE=true NODE_ENV=production expo export:web",
|
|
18
|
+
"build": "tsc -b tsconfig.build.json",
|
|
19
|
+
"build:app": "tsc -p ./tsconfig.build-app.json --noemit && ENTRY_POINT='./src/Expo.tsx' NODE_ENV=production expo export:web --clear",
|
|
20
|
+
"lint": "eslint --fix --cache --cache-location ./node_modules/.cache/.eslintcache --ext ts,tsx .",
|
|
21
|
+
"format": "prettier --write \"**/*.+(json|css|ts|tsx|md)\"",
|
|
22
|
+
"test": "tsc -p ./tsconfig.test.json --noemit && jest",
|
|
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",
|
|
26
|
+
"prepare": "husky install"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@expo/dev-server": "0.1.120",
|
|
30
|
+
"@gorhom/portal": "^1.0.14",
|
|
31
|
+
"@lookiero/i18n": "^0.8.1",
|
|
32
|
+
"@lookiero/i18n-react": "^0.8.1",
|
|
33
|
+
"@lookiero/messaging": "^8.0.0",
|
|
34
|
+
"@lookiero/messaging-react": "^8.0.0",
|
|
35
|
+
"@react-spring/native": "^9.5.5",
|
|
36
|
+
"inline-style-prefixer": "6.0.1",
|
|
37
|
+
"react-native-safe-area-context": "^4.4.1",
|
|
38
|
+
"react-native-svg": "12.3.0",
|
|
39
|
+
"tiny-invariant": "^1.2.0",
|
|
40
|
+
"uuid": "^9.0.0"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@lookiero/aurora-fonts": "^1.0.6",
|
|
44
|
+
"@lookiero/aurora-iconfont": "^2.0.37",
|
|
45
|
+
"@lookiero/aurora-next": "^3.0.185",
|
|
46
|
+
"@lookiero/data-sources": "^0.3",
|
|
47
|
+
"@lookiero/event": "^0.3",
|
|
48
|
+
"@lookiero/locale": "^0.3",
|
|
49
|
+
"@lookiero/payments-front": "^0.16.3",
|
|
50
|
+
"apollo-boost": "0.4.4",
|
|
51
|
+
"graphql": "14.5.8",
|
|
52
|
+
"graphql-tag": "2.10.1",
|
|
53
|
+
"react": "^18.0.0",
|
|
54
|
+
"react-dom": "^18.0.0",
|
|
55
|
+
"react-native": "^0.70.1",
|
|
56
|
+
"react-native-web": "^0.18.9",
|
|
57
|
+
"react-router-dom": "^6.4.2",
|
|
58
|
+
"react-router-native": "^6.4.2"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@babel/core": "^7.19.1",
|
|
62
|
+
"@expo/webpack-config": "^0.17.2",
|
|
63
|
+
"@lookiero/aurora-fonts": "^1.0.6",
|
|
64
|
+
"@lookiero/aurora-iconfont": "^2.0.37",
|
|
65
|
+
"@lookiero/aurora-next": "^3.0.185",
|
|
66
|
+
"@lookiero/data-sources": "^0.3",
|
|
67
|
+
"@lookiero/event": "^0.3",
|
|
68
|
+
"@lookiero/locale": "^0.3",
|
|
69
|
+
"@lookiero/payments-front": "^0.16.3",
|
|
70
|
+
"@pact-foundation/pact": "^10.1.4",
|
|
71
|
+
"@pact-foundation/pact-node": "^10.17.6",
|
|
72
|
+
"@testing-library/react": "^13.4.0",
|
|
73
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
74
|
+
"@testing-library/react-native": "^11.0.0",
|
|
75
|
+
"@trivago/prettier-plugin-sort-imports": "^3.3.0",
|
|
76
|
+
"@types/jest": "^29.1.0",
|
|
77
|
+
"@types/react": "~18.0.0",
|
|
78
|
+
"@types/react-dom": "~18.0.0",
|
|
79
|
+
"@types/react-native": "~0.69.1",
|
|
80
|
+
"@types/uuid": "^8.3.4",
|
|
81
|
+
"apollo-boost": "0.4.4",
|
|
82
|
+
"eslint": "^8.24.0",
|
|
83
|
+
"eslint-config-prettier": "^8.5.0",
|
|
84
|
+
"eslint-config-react-app": "^7.0.1",
|
|
85
|
+
"eslint-plugin-flowtype": "^8.0.3",
|
|
86
|
+
"eslint-plugin-import": "^2.26.0",
|
|
87
|
+
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
88
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
89
|
+
"eslint-plugin-react": "^7.31.8",
|
|
90
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
91
|
+
"eslint-plugin-react-native": "^4.0.0",
|
|
92
|
+
"expo": "~46.0.8",
|
|
93
|
+
"expo-status-bar": "~1.4.0",
|
|
94
|
+
"graphql": "14.5.8",
|
|
95
|
+
"graphql-tag": "2.10.1",
|
|
96
|
+
"husky": "^8.0.1",
|
|
97
|
+
"jest": "^29.1.1",
|
|
98
|
+
"jest-expo": "^46.0.1",
|
|
99
|
+
"jest-fetch-mock": "^3.0.3",
|
|
100
|
+
"jest-mock-extended": "^2.0.7",
|
|
101
|
+
"lint-staged": "^13.0.3",
|
|
102
|
+
"pino-std-serializers": "^6.0.0",
|
|
103
|
+
"prettier": "^2.7.1",
|
|
104
|
+
"react": "^18.0.0",
|
|
105
|
+
"react-dom": "^18.0.0",
|
|
106
|
+
"react-native": "^0.70.1",
|
|
107
|
+
"react-native-get-random-values": "^1.8.0",
|
|
108
|
+
"react-native-unimodules": "^0.14.10",
|
|
109
|
+
"react-native-web": "^0.18.9",
|
|
110
|
+
"react-router-dom": "^6.4.2",
|
|
111
|
+
"react-router-native": "^6.4.2",
|
|
112
|
+
"react-test-renderer": "^18.0.0",
|
|
113
|
+
"typescript": "^4.6.3",
|
|
114
|
+
"webpack-bundle-analyzer": "^4.6.1"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Aurora } from "@lookiero/aurora-next/build/components/primitives/Aurora/Aurora";
|
|
2
|
+
import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
|
|
3
|
+
import { fetchFetchTranslation } from "@lookiero/i18n";
|
|
4
|
+
import { i18n } from "@lookiero/i18n-react";
|
|
5
|
+
import { setPaymentsBridge } from "@lookiero/payments-front";
|
|
6
|
+
import { useFonts } from "expo-font";
|
|
7
|
+
import "expo/build/Expo.fx";
|
|
8
|
+
import React, { useCallback, useState } from "react";
|
|
9
|
+
import { Platform, StatusBar } from "react-native";
|
|
10
|
+
import "react-native-get-random-values";
|
|
11
|
+
import { version } from "../package.json";
|
|
12
|
+
// import { bootstrap as checkoutMockBootstrap } from "./infrastructure/delivery/bootstrap.mock";
|
|
13
|
+
import { bootstrap as checkoutBootstrap } from "./infrastructure/delivery/bootstrap";
|
|
14
|
+
import { root } from "./infrastructure/ui/Root";
|
|
15
|
+
import { Router } from "./infrastructure/ui/routing/router/Router";
|
|
16
|
+
import { notificationsRoot } from "./shared/notifications";
|
|
17
|
+
const apiUrl = Platform.OS !== "web" ? "https://web2.ps.dev.aws.lookiero.es/checkout/api" : __DEV__ ? "/local-to-dev" : "/api";
|
|
18
|
+
const authToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIwOTUxNjAsImV4cCI6MTY2OTM5MTY3MCwiZGlzcGxheU5hbWUiOiJBbGV4YW5kZXIiLCJjb3VudHJ5X2NvZGUiOiJFUyIsImFjY2Vzc1ZpYSI6ImVtYWlsIiwic3Vic2NyaXB0aW9uU3RhcnRpbmdEYXRlIjoiMjAyMC0wOS0wMSIsImltcGVyc29uYXRlZCI6ZmFsc2UsInV1aWQiOiJjZjdjNjQxZi0wZTVjLTQ4NTAtYWUwNy0yNzY3NDdlZGZkMGIiLCJpYXQiOjE2NjY3MTMyNzB9.KaEZc8M5N9TWg6flwUMx7O14DW-u4oTWFzYm23RaL9c";
|
|
19
|
+
const translationsUrl = Platform.OS !== "web" ? "https://web2.ps.dev.aws.lookiero.es/checkout/i18n" : __DEV__ ? "/local-to-i18n" : "/i18n";
|
|
20
|
+
const translationsApiKey = "f2AfMGaPCZGVbAFWz_OV4GWhBDG_NbZJ";
|
|
21
|
+
const translations = (locale) => `${translationsUrl}/${locale}?key=${translationsApiKey}&no-folding=true`;
|
|
22
|
+
setPaymentsBridge({
|
|
23
|
+
getToken: () => Promise.resolve(authToken),
|
|
24
|
+
stripeKey: "pk_test_6dwdUfkUm7AaUH3oSje9H0kk",
|
|
25
|
+
stripeUkKey: "pk_test_51Jw6NEHQ1gSUXaQ8KKBLBhmzw7k0TCTN0GQ6qq8oGRmXCn09ptn7zrHX5jsyidv8iBDGuzUDV3R0fko01m5oJzMO00z6XmoLbn",
|
|
26
|
+
commonAssetsPath: "https://cdn.dev.envs.lookiero.tech/commons",
|
|
27
|
+
paymentsAssetsPath: "https://cdn.dev.envs.lookiero.tech/payments-front",
|
|
28
|
+
iOSInAppBrowserBannerHeight: 70,
|
|
29
|
+
useAvoidKeyboard: () => ({
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
setAvoidKeyboard: (state) => console.log("setAvoidKeyboard: ", state),
|
|
33
|
+
}),
|
|
34
|
+
emitTrackingEvent: (e) => {
|
|
35
|
+
console.log("Tracking Payment event", e);
|
|
36
|
+
},
|
|
37
|
+
appVersion: version,
|
|
38
|
+
googlePay: {
|
|
39
|
+
merchant: {
|
|
40
|
+
merchantId: "0123456789",
|
|
41
|
+
merchantName: "Lookiero",
|
|
42
|
+
},
|
|
43
|
+
isTestEnv: true,
|
|
44
|
+
},
|
|
45
|
+
useFeatureFlags: () => ({
|
|
46
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
47
|
+
ALLOW_GOOGLE_PAY_AT: true,
|
|
48
|
+
ALLOW_GOOGLE_PAY_BE: true,
|
|
49
|
+
ALLOW_GOOGLE_PAY_DE: true,
|
|
50
|
+
ALLOW_GOOGLE_PAY_ES: true,
|
|
51
|
+
ALLOW_GOOGLE_PAY_FR: true,
|
|
52
|
+
ALLOW_GOOGLE_PAY_GB: true,
|
|
53
|
+
ALLOW_GOOGLE_PAY_IT: true,
|
|
54
|
+
ALLOW_GOOGLE_PAY_LU: true,
|
|
55
|
+
ALLOW_GOOGLE_PAY_NL: true,
|
|
56
|
+
ALLOW_GOOGLE_PAY_PT: true,
|
|
57
|
+
ALLOW_GOOGLE_PAY_APP_AT: true,
|
|
58
|
+
ALLOW_GOOGLE_PAY_APP_BE: true,
|
|
59
|
+
ALLOW_GOOGLE_PAY_APP_DE: true,
|
|
60
|
+
ALLOW_GOOGLE_PAY_APP_ES: true,
|
|
61
|
+
ALLOW_GOOGLE_PAY_APP_FR: true,
|
|
62
|
+
ALLOW_GOOGLE_PAY_APP_GB: true,
|
|
63
|
+
ALLOW_GOOGLE_PAY_APP_IT: true,
|
|
64
|
+
ALLOW_GOOGLE_PAY_APP_LU: true,
|
|
65
|
+
ALLOW_GOOGLE_PAY_APP_NL: true,
|
|
66
|
+
ALLOW_GOOGLE_PAY_APP_PT: true,
|
|
67
|
+
/* eslint-enable @typescript-eslint/naming-convention */
|
|
68
|
+
}),
|
|
69
|
+
});
|
|
70
|
+
// const { Component: Messaging } = checkoutMockBootstrap();
|
|
71
|
+
const { Component: Messaging } = checkoutBootstrap({ apiUrl, authToken });
|
|
72
|
+
const I18n = i18n({
|
|
73
|
+
fetchTranslation: fetchFetchTranslation({ endpoint: translations }),
|
|
74
|
+
contextId: "CheckoutI18n",
|
|
75
|
+
});
|
|
76
|
+
const Notifications = notificationsRoot();
|
|
77
|
+
const Root = root({ Messaging, I18n, Notifications, authToken, development: false });
|
|
78
|
+
const ExpoRoot = () => {
|
|
79
|
+
const [fontsLoaded] = useFonts({
|
|
80
|
+
["Romie-Regular"]: require("@lookiero/aurora-fonts/Romie-Regular.ttf"),
|
|
81
|
+
["FoundersGroteskText-Regular"]: require("@lookiero/aurora-fonts/FoundersGroteskText-Regular.ttf"),
|
|
82
|
+
["Canela-Light"]: require("@lookiero/aurora-fonts/Canela-Light.ttf"),
|
|
83
|
+
auroraicons: require("@lookiero/aurora-iconfont/dist/auroraicons.ttf"),
|
|
84
|
+
});
|
|
85
|
+
const [isAccessible, setIsAccessible] = useState();
|
|
86
|
+
const onNotAccessible = useCallback(() => setIsAccessible(false), []);
|
|
87
|
+
return fontsLoaded ? (React.createElement(React.Fragment, null,
|
|
88
|
+
React.createElement(Aurora, { useStack: false },
|
|
89
|
+
isAccessible === false && React.createElement(Text, { heading: true }, "Checkout is not accessible!"),
|
|
90
|
+
React.createElement(Router, null,
|
|
91
|
+
React.createElement(Root, { basePath: "", customerId: "cf7c641f-0e5c-4850-ae07-276747edfd0b", locale: "es", onNotAccessible: onNotAccessible }))),
|
|
92
|
+
React.createElement(StatusBar, null))) : null;
|
|
93
|
+
};
|
|
94
|
+
export { ExpoRoot };
|
|
@@ -18,7 +18,7 @@ interface BootstrapFunctionReturn {
|
|
|
18
18
|
readonly isCheckoutAccessible: IsCheckoutAccessibleFunction;
|
|
19
19
|
}
|
|
20
20
|
interface BootstrapFunction {
|
|
21
|
-
(args: BootstrapFunctionArgs): BootstrapFunctionReturn
|
|
21
|
+
(args: BootstrapFunctionArgs): Promise<BootstrapFunctionReturn>;
|
|
22
22
|
}
|
|
23
23
|
declare const bootstrap: BootstrapFunction;
|
|
24
24
|
export { bootstrap };
|
|
@@ -3,13 +3,16 @@ import { i18n } from "@lookiero/i18n-react";
|
|
|
3
3
|
import { bootstrap as checkoutBootstrap } from "./infrastructure/delivery/bootstrap";
|
|
4
4
|
import { root } from "./infrastructure/ui/Root";
|
|
5
5
|
import { viewIsCheckoutAccessibleByCustomerId, } from "./projection/checkout/viewIsCheckoutAccessibleByCustomerId";
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
import { notificationsRoot } from "./shared/notifications";
|
|
7
|
+
const bootstrap = async ({ apiUrl, getAuthToken, translations }) => {
|
|
8
|
+
const authToken = await getAuthToken();
|
|
9
|
+
const { Component: Messaging, queryBus } = checkoutBootstrap({ apiUrl, authToken });
|
|
8
10
|
const I18n = i18n({
|
|
9
11
|
fetchTranslation: fetchFetchTranslation({ endpoint: translations }),
|
|
10
12
|
contextId: "CheckoutI18n",
|
|
11
13
|
});
|
|
12
|
-
const
|
|
14
|
+
const Notifications = notificationsRoot();
|
|
15
|
+
const Root = root({ Messaging, I18n, Notifications, authToken });
|
|
13
16
|
const isCheckoutAccessible = ({ customerId }) => queryBus(viewIsCheckoutAccessibleByCustomerId({ customerId }));
|
|
14
17
|
return {
|
|
15
18
|
Root,
|
|
@@ -15,9 +15,9 @@ import { httpReturnQuestionsByCheckoutItemIdView } from "../projection/returnQue
|
|
|
15
15
|
import { storageUiSettingByKeyView } from "../projection/uiSetting/storageUiSettingByKeyView";
|
|
16
16
|
import { baseBootstrap } from "./baseBootstrap";
|
|
17
17
|
import { fetchHttpGet, fetchHttpPost } from "./http/fetchHttpClient";
|
|
18
|
-
const bootstrap = ({ apiUrl,
|
|
19
|
-
const httpGet = fetchHttpGet({ apiUrl,
|
|
20
|
-
const httpPost = fetchHttpPost({ apiUrl,
|
|
18
|
+
const bootstrap = ({ apiUrl, authToken }) => {
|
|
19
|
+
const httpGet = fetchHttpGet({ apiUrl, authToken });
|
|
20
|
+
const httpPost = fetchHttpPost({ apiUrl, authToken });
|
|
21
21
|
return baseBootstrap({
|
|
22
22
|
checkoutByIdView: httpCheckoutByIdView({ httpPost }),
|
|
23
23
|
firstAvailableCheckoutByCustomerIdView: httpFirstAvailableCheckoutByCustomerIdView({ httpPost }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpGetFunction, HttpPostFunction } from "./httpClient";
|
|
2
2
|
interface FetchHttpFunctionArgs {
|
|
3
3
|
readonly apiUrl: string;
|
|
4
|
-
readonly
|
|
4
|
+
readonly authToken: string;
|
|
5
5
|
}
|
|
6
6
|
interface FetchHttpPostFunction {
|
|
7
7
|
(args: FetchHttpFunctionArgs): HttpPostFunction;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const fetchHttpPost = ({ apiUrl, authToken }) => async ({ endpoint, body, signal }) => fetch(`${apiUrl}${endpoint}`, {
|
|
2
|
+
method: "POST",
|
|
3
|
+
headers: {
|
|
4
|
+
["Content-Type"]: "application/json",
|
|
5
|
+
authorization: `Bearer ${authToken}`,
|
|
6
|
+
},
|
|
7
|
+
body: JSON.stringify(body),
|
|
8
|
+
signal,
|
|
9
|
+
});
|
|
10
|
+
const fetchHttpGet = ({ apiUrl, authToken }) => async ({ endpoint, signal }) => fetch(`${apiUrl}${endpoint}`, {
|
|
11
|
+
method: "GET",
|
|
12
|
+
credentials: "include",
|
|
13
|
+
headers: {
|
|
14
|
+
Authorization: `Bearer ${authToken}`,
|
|
15
|
+
["Content-Type"]: "application/json",
|
|
16
|
+
},
|
|
17
|
+
referrer: "",
|
|
18
|
+
signal,
|
|
19
|
+
});
|
|
20
|
+
export { fetchHttpGet, fetchHttpPost };
|
package/dist/{infrastructure → src/infrastructure}/domain/checkout/react/useMarkCheckoutAsPaid.d.ts
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CommandStatus } from "@lookiero/messaging-react";
|
|
2
2
|
interface MarkAsPaidFunction {
|
|
3
|
-
():
|
|
3
|
+
(): void;
|
|
4
4
|
}
|
|
5
5
|
declare type UseMarkCheckoutAsPaid = [markAsPaid: MarkAsPaidFunction, status: CommandStatus];
|
|
6
6
|
interface UseMarkCheckoutAsPaidFunctionArgs {
|
|
7
|
-
readonly checkoutId
|
|
7
|
+
readonly checkoutId?: string;
|
|
8
8
|
}
|
|
9
9
|
interface UseMarkCheckoutAsPaidFunction {
|
|
10
10
|
(args: UseMarkCheckoutAsPaidFunctionArgs): UseMarkCheckoutAsPaid;
|
package/dist/{infrastructure → src/infrastructure}/domain/checkout/react/useMarkCheckoutAsPaid.js
RENAMED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { useCommand } from "@lookiero/messaging-react";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
+
import invariant from "tiny-invariant";
|
|
3
4
|
import { markCheckoutAsPaid } from "../../../../domain/checkout/command/markCheckoutAsPaid";
|
|
4
5
|
import { MESSAGING_CONTEXT_ID } from "../../../delivery/baseBootstrap";
|
|
5
6
|
const useMarkCheckoutAsPaid = ({ checkoutId }) => {
|
|
6
7
|
const [commandBus, status] = useCommand({ contextId: MESSAGING_CONTEXT_ID });
|
|
7
|
-
const markAsPaid = useCallback(() =>
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
const markAsPaid = useCallback(() => {
|
|
9
|
+
invariant(checkoutId, "CheckoutId must be defined in order to mark the checkout as paid");
|
|
10
|
+
commandBus(markCheckoutAsPaid({
|
|
11
|
+
aggregateId: checkoutId,
|
|
12
|
+
}));
|
|
13
|
+
}, [checkoutId, commandBus]);
|
|
10
14
|
return [markAsPaid, status];
|
|
11
15
|
};
|
|
12
16
|
export { useMarkCheckoutAsPaid };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseQueryFunctionResult } from "@lookiero/messaging-react";
|
|
2
2
|
import { PaymentFlowPayloadProjection } from "../../../../projection/payment/paymentFlowPayload";
|
|
3
3
|
interface UseViewPaymentFlowPayloadByCheckoutIdFunctionArgs {
|
|
4
|
-
readonly checkoutId
|
|
4
|
+
readonly checkoutId?: string;
|
|
5
5
|
}
|
|
6
6
|
interface UseViewPaymentFlowPayloadByCheckoutIdFunction {
|
|
7
7
|
(args: UseViewPaymentFlowPayloadByCheckoutIdFunctionArgs): UseQueryFunctionResult<PaymentFlowPayloadProjection>;
|
|
@@ -9,9 +9,9 @@ const isCheckoutItemReturned = (event) => event.name === CHECKOUT_ITEM_RETURNED;
|
|
|
9
9
|
const isCheckoutItemReplaced = (event) => event.name === CHECKOUT_ITEM_REPLACED;
|
|
10
10
|
const shouldInvalidate = (event) => isCheckoutItemKept(event) || isCheckoutItemReplaced(event) || isCheckoutItemReturned(event);
|
|
11
11
|
const useViewPaymentFlowPayloadByCheckoutId = ({ checkoutId }) => useQuery({
|
|
12
|
-
query: viewPaymentFlowPayloadByCheckoutId({ checkoutId }),
|
|
12
|
+
query: viewPaymentFlowPayloadByCheckoutId({ checkoutId: checkoutId }),
|
|
13
13
|
contextId: MESSAGING_CONTEXT_ID,
|
|
14
14
|
invalidation: shouldInvalidate,
|
|
15
|
-
options: { staleTime: Infinity, retry: false, refetchOnWindowFocus: false },
|
|
15
|
+
options: { staleTime: Infinity, retry: false, refetchOnWindowFocus: false, enabled: Boolean(checkoutId) },
|
|
16
16
|
});
|
|
17
17
|
export { useViewPaymentFlowPayloadByCheckoutId };
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { I18n } from "@lookiero/i18n-react";
|
|
2
2
|
import { MessagingRoot } from "@lookiero/messaging-react/bootstrap";
|
|
3
3
|
import { FC } from "react";
|
|
4
|
+
import { NotificationsRoot } from "../../shared/notifications";
|
|
4
5
|
interface RootFunctionArgs {
|
|
5
6
|
readonly Messaging: MessagingRoot;
|
|
7
|
+
readonly Notifications: NotificationsRoot;
|
|
6
8
|
readonly I18n: I18n;
|
|
7
9
|
readonly development?: boolean;
|
|
10
|
+
readonly authToken: string;
|
|
8
11
|
}
|
|
9
12
|
interface RootFunction {
|
|
10
13
|
(args: RootFunctionArgs): FC<RootProps>;
|
|
@@ -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
6
|
({ basePath, locale = "en", customerId, onNotAccessible }) => {
|
|
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, onI18nError: development ? undefined : handleOnI18nError, onNotAccessible: onNotAccessible }))));
|
|
10
11
|
};
|
|
11
12
|
export { root };
|
|
@@ -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,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, }) => {
|
|
@@ -48,6 +48,13 @@ declare enum I18nMessages {
|
|
|
48
48
|
SUMMARY_TOTAL_ITEMS_KEPT = "summary.total_items_kept",
|
|
49
49
|
SUMMARY_CREDIT = "summary.credit",
|
|
50
50
|
SUMMARY_FEE = "summary.fee",
|
|
51
|
-
PRODUCT_VARIANT_SIZE_CHANGE = "product_variant.size_change"
|
|
51
|
+
PRODUCT_VARIANT_SIZE_CHANGE = "product_variant.size_change",
|
|
52
|
+
CHECKOUT_TITLE = "checkout.title",
|
|
53
|
+
CHECKOUT_PAY_BUTTON = "checkout.pay_button",
|
|
54
|
+
CHECKOUT_TOAST_REJECTED = "checkout.toast_rejected",
|
|
55
|
+
CHECKOUT_TOAST_ERROR = "checkout.toast_error",
|
|
56
|
+
CHECKOUT_SUCCESS_MODAL_TITLE = "checkout.success_modal_title",
|
|
57
|
+
CHECKOUT_SUCCESS_MODAL_DESCRIPTION = "checkout.success_modal_description",
|
|
58
|
+
CHECKOUT_SUCCESS_MODAL_BUTTON = "checkout.success_modal_button"
|
|
52
59
|
}
|
|
53
60
|
export { I18nMessages, COLOR_I18N_PREFIX, RETURN_QUESTIONS_PREFIX, RETURN_QUESTIONS_FEEDBACK_PREFIX };
|
|
@@ -50,5 +50,12 @@ var I18nMessages;
|
|
|
50
50
|
I18nMessages["SUMMARY_CREDIT"] = "summary.credit";
|
|
51
51
|
I18nMessages["SUMMARY_FEE"] = "summary.fee";
|
|
52
52
|
I18nMessages["PRODUCT_VARIANT_SIZE_CHANGE"] = "product_variant.size_change";
|
|
53
|
+
I18nMessages["CHECKOUT_TITLE"] = "checkout.title";
|
|
54
|
+
I18nMessages["CHECKOUT_PAY_BUTTON"] = "checkout.pay_button";
|
|
55
|
+
I18nMessages["CHECKOUT_TOAST_REJECTED"] = "checkout.toast_rejected";
|
|
56
|
+
I18nMessages["CHECKOUT_TOAST_ERROR"] = "checkout.toast_error";
|
|
57
|
+
I18nMessages["CHECKOUT_SUCCESS_MODAL_TITLE"] = "checkout.success_modal_title";
|
|
58
|
+
I18nMessages["CHECKOUT_SUCCESS_MODAL_DESCRIPTION"] = "checkout.success_modal_description";
|
|
59
|
+
I18nMessages["CHECKOUT_SUCCESS_MODAL_BUTTON"] = "checkout.success_modal_button";
|
|
53
60
|
})(I18nMessages || (I18nMessages = {}));
|
|
54
61
|
export { I18nMessages, COLOR_I18N_PREFIX, RETURN_QUESTIONS_PREFIX, RETURN_QUESTIONS_FEEDBACK_PREFIX };
|
package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutAccessibilityMiddleware.js
RENAMED
|
@@ -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);
|
|
@@ -2,9 +2,9 @@ import { QueryStatus } from "@lookiero/messaging-react";
|
|
|
2
2
|
import React, { useRef } from "react";
|
|
3
3
|
import { generatePath, Navigate, useMatch } from "react-router-native";
|
|
4
4
|
import { CheckoutItemStatus } from "../../../domain/checkoutItem/model/checkoutItem";
|
|
5
|
+
import { Spinner } from "../../../shared/ui/components/atoms/spinner/Spinner";
|
|
5
6
|
import { useViewFirstAvailableCheckoutByCustomerId } from "../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
|
|
6
7
|
import { useShouldIntroBeShown } from "../../projection/uiSetting/react/useShouldIntroBeShown";
|
|
7
|
-
import { Spinner } from "../shared/components/atoms/spinner/Spinner";
|
|
8
8
|
import { Routes } from "./routes";
|
|
9
9
|
const CheckoutMiddleware = ({ basePath, customerId, loader = React.createElement(Spinner, null), children }) => {
|
|
10
10
|
const introShown = useRef(false);
|
|
@@ -15,12 +15,16 @@ const CheckoutMiddleware = ({ basePath, customerId, loader = React.createElement
|
|
|
15
15
|
const itemRouteMatch = useMatch(`${basePath}/${Routes.ITEM}`);
|
|
16
16
|
const itemDetailRouteMatch = useMatch(`${basePath}/${Routes.ITEM_DETAIL}`);
|
|
17
17
|
const summaryRouteMatch = useMatch(`${basePath}/${Routes.SUMMARY}`);
|
|
18
|
+
const checkoutRouteMatch = useMatch(`${basePath}/${Routes.CHECKOUT}`);
|
|
18
19
|
const dependenciesLoadedStatuses = [QueryStatus.ERROR, QueryStatus.SUCCESS];
|
|
19
20
|
const dependenciesLoaded = dependenciesLoadedStatuses.includes(shouldIntroBeShownStatus) &&
|
|
20
21
|
dependenciesLoadedStatuses.includes(checkoutStatus);
|
|
21
22
|
if (!dependenciesLoaded) {
|
|
22
23
|
return loader;
|
|
23
24
|
}
|
|
25
|
+
if (checkoutRouteMatch) {
|
|
26
|
+
return children;
|
|
27
|
+
}
|
|
24
28
|
if (shouldIntroBeShown && !introShown.current) {
|
|
25
29
|
if (introRouteMatch) {
|
|
26
30
|
introShown.current = true;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { I18n } from "@lookiero/i18n-react";
|
|
2
2
|
import { FC } from "react";
|
|
3
3
|
interface RoutingProps {
|
|
4
|
-
readonly
|
|
4
|
+
readonly basePath?: string;
|
|
5
5
|
readonly customerId: string | undefined;
|
|
6
6
|
readonly locale: string;
|
|
7
7
|
readonly I18n: I18n;
|
|
8
|
-
readonly
|
|
8
|
+
readonly authToken: string;
|
|
9
|
+
readonly onNotAccessible: () => void;
|
|
9
10
|
readonly onI18nError?: (err: Error) => void;
|
|
10
11
|
}
|
|
11
12
|
declare const Routing: FC<RoutingProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
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";
|
|
@@ -8,7 +8,8 @@ import { Routes } from "./routes";
|
|
|
8
8
|
const Intro = lazy(() => import("../views/intro/Intro").then((module) => ({ default: module.Intro })));
|
|
9
9
|
const Item = lazy(() => import("../views/item/Item").then((module) => ({ default: module.Item })));
|
|
10
10
|
const Summary = lazy(() => import("../views/summary/Summary").then((module) => ({ default: module.Summary })));
|
|
11
|
-
const
|
|
11
|
+
const Checkout = lazy(() => import("../views/checkout/Checkout").then((module) => ({ default: module.Checkout })));
|
|
12
|
+
const Routing = ({ basePath = "", customerId, locale, I18n, authToken, onI18nError, onNotAccessible, }) => {
|
|
12
13
|
const routes = useRoutes([
|
|
13
14
|
{
|
|
14
15
|
path: "",
|
|
@@ -38,6 +39,11 @@ const Routing = ({ basePath = "", onNotAccessible, customerId, locale, I18n, onI
|
|
|
38
39
|
element: (React.createElement(Suspense, { fallback: React.createElement(Spinner, null) },
|
|
39
40
|
React.createElement(Summary, { customerId: customerId }))),
|
|
40
41
|
},
|
|
42
|
+
{
|
|
43
|
+
path: Routes.CHECKOUT,
|
|
44
|
+
element: (React.createElement(Suspense, { fallback: React.createElement(Spinner, null) },
|
|
45
|
+
React.createElement(Checkout, { authToken: authToken, customerId: customerId }))),
|
|
46
|
+
},
|
|
41
47
|
{
|
|
42
48
|
path: "*",
|
|
43
49
|
element: React.createElement(Navigate, { to: `${Routes.HOME}`, replace: true }),
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { PortalProvider } from "@gorhom/portal";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { SafeAreaProvider } from "react-native-safe-area-context";
|
|
4
|
+
import { Notifications } from "../../../shared/notifications/infrastructure/ui/views/Notifications";
|
|
4
5
|
const App = ({ children }) => (React.createElement(SafeAreaProvider, null,
|
|
6
|
+
React.createElement(Notifications, null),
|
|
5
7
|
React.createElement(PortalProvider, null, children)));
|
|
6
8
|
export { App };
|