@lookiero/checkout 7.2.0-beta.0 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -2
- package/dist/src/ExpoRoot.js +11 -11
- package/dist/src/infrastructure/projection/pricing/pricing.d.ts +1 -1
- package/dist/src/infrastructure/tracking/tracking.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackAssignedVariationByExperiment.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackChangeFeedback.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackCheckout.d.ts +2 -2
- package/dist/src/infrastructure/tracking/useTrackImageView.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackItemPageView.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackKeepItem.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackPageView.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackPressBack.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackPressContinue.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackPressItem.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackPressNext.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackPressPrevious.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackPressPricing.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackReplaceItem.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackResetItem.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackReturnItem.d.ts +1 -1
- package/dist/src/infrastructure/tracking/useTrackTabView.d.ts +1 -1
- package/dist/src/infrastructure/ui/Root.d.ts +5 -4
- package/dist/src/infrastructure/ui/Root.js +1 -1
- package/dist/src/infrastructure/ui/components/atoms/price/Price.d.ts +1 -1
- package/dist/src/infrastructure/ui/hooks/useStaticInfo.d.ts +1 -1
- package/dist/src/infrastructure/ui/routing/Routing.d.ts +5 -4
- package/dist/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +1 -1
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +3 -3
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +1 -1
- package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/return/components/price/Price.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +1 -1
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.d.ts +3 -3
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +1 -1
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.d.ts +1 -1
- package/dist/src/projection/bookedProductsVariants/bookedProductsVariants.d.ts +1 -1
- package/dist/src/projection/checkoutItem/checkoutItem.d.ts +2 -2
- package/dist/src/projection/pricing/pricing.d.ts +1 -1
- package/dist/src/projection/{shared → size}/size.d.ts +1 -1
- package/dist/src/projection/{shared → size}/size.js +1 -1
- package/dist/src/shared/ui/components/molecules/inputField/InputField.d.ts +1 -1
- package/dist/src/shared/ui/components/molecules/inputField/InputField.js +1 -2
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/index.ts +4 -5
- package/package.json +4 -4
- package/src/ExpoRoot.tsx +15 -13
- package/src/infrastructure/domain/checkoutItem/model/httpCheckoutItems.test.ts +1 -1
- package/src/infrastructure/projection/pricing/pricing.ts +1 -1
- package/src/infrastructure/tracking/tracking.ts +1 -1
- package/src/infrastructure/tracking/useTrackAssignedVariationByExperiment.test.ts +1 -1
- package/src/infrastructure/tracking/useTrackAssignedVariationByExperiment.ts +1 -1
- package/src/infrastructure/tracking/useTrackChangeFeedback.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackChangeFeedback.ts +1 -1
- package/src/infrastructure/tracking/useTrackCheckout.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackCheckout.ts +2 -2
- package/src/infrastructure/tracking/useTrackImageView.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackImageView.ts +1 -1
- package/src/infrastructure/tracking/useTrackItemPageView.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackItemPageView.ts +1 -1
- package/src/infrastructure/tracking/useTrackKeepItem.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackKeepItem.ts +1 -1
- package/src/infrastructure/tracking/useTrackPageView.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackPageView.ts +1 -1
- package/src/infrastructure/tracking/useTrackPressBack.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackPressBack.ts +1 -1
- package/src/infrastructure/tracking/useTrackPressContinue.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackPressContinue.ts +1 -1
- package/src/infrastructure/tracking/useTrackPressItem.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackPressItem.ts +1 -1
- package/src/infrastructure/tracking/useTrackPressNext.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackPressNext.ts +1 -1
- package/src/infrastructure/tracking/useTrackPressPrevious.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackPressPrevious.ts +1 -1
- package/src/infrastructure/tracking/useTrackPressPricing.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackPressPricing.ts +1 -1
- package/src/infrastructure/tracking/useTrackReplaceItem.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackReplaceItem.ts +1 -1
- package/src/infrastructure/tracking/useTrackResetItem.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackResetItem.ts +1 -1
- package/src/infrastructure/tracking/useTrackReturnItem.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackReturnItem.ts +1 -1
- package/src/infrastructure/tracking/useTrackTabView.test.tsx +1 -1
- package/src/infrastructure/tracking/useTrackTabView.ts +1 -1
- package/src/infrastructure/ui/Root.tsx +6 -5
- package/src/infrastructure/ui/components/atoms/price/Price.test.tsx +1 -1
- package/src/infrastructure/ui/components/atoms/price/Price.tsx +1 -1
- package/src/infrastructure/ui/hooks/useStaticInfo.test.tsx +1 -1
- package/src/infrastructure/ui/hooks/useStaticInfo.tsx +1 -1
- package/src/infrastructure/ui/routing/Routing.tsx +5 -4
- package/src/infrastructure/ui/views/checkout/Checkout.test.tsx +1 -1
- package/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.test.tsx +1 -1
- package/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.tsx +1 -1
- package/src/infrastructure/ui/views/feedback/Feedback.test.tsx +1 -1
- package/src/infrastructure/ui/views/item/Item.test.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.test.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +2 -2
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.test.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +3 -3
- package/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.test.tsx +1 -1
- package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.test.tsx +1 -1
- package/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.test.tsx +1 -1
- package/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.tsx +1 -1
- package/src/infrastructure/ui/views/return/components/price/Price.test.tsx +1 -1
- package/src/infrastructure/ui/views/return/components/price/Price.tsx +1 -1
- package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +2 -2
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +1 -1
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.test.tsx +1 -1
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +3 -3
- package/src/infrastructure/ui/views/summary/Summary.test.tsx +1 -1
- package/src/infrastructure/ui/views/summaryTabs/SummaryTabs.test.tsx +1 -1
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.test.tsx +1 -1
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +2 -2
- package/src/projection/bookedProductsVariants/bookedProductsVariants.ts +1 -1
- package/src/projection/checkoutItem/checkoutItem.ts +2 -2
- package/src/projection/pricing/pricing.ts +1 -1
- package/src/projection/{shared → size}/size.test.ts +1 -1
- package/src/projection/{shared → size}/size.ts +1 -1
- package/src/shared/ui/components/molecules/inputField/InputField.tsx +1 -2
- package/dist/public/public/assets/adaptive-icon.png +0 -0
- package/dist/public/public/assets/favicon.png +0 -0
- package/dist/public/public/assets/icon.png +0 -0
- package/dist/public/public/assets/splash.png +0 -0
- package/dist/public/public/images/not-found.png +0 -0
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +0 -10
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +0 -17
- package/dist/src/infrastructure/ui/components/layouts/layout/Layout.d.ts +0 -21
- package/dist/src/infrastructure/ui/components/layouts/layout/Layout.js +0 -1
- package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.d.ts +0 -6
- package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.js +0 -4
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.d.ts +0 -6
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.js +0 -5
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.d.ts +0 -4
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.js +0 -19
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.js +0 -18
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.d.ts +0 -12
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.js +0 -13
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.d.ts +0 -6
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +0 -11
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +0 -8
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +0 -11
- package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.d.ts +0 -11
- package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.js +0 -49
- package/dist/src/infrastructure/ui/i18n/fetchTranslations.d.ts +0 -9
- package/dist/src/infrastructure/ui/i18n/fetchTranslations.js +0 -9
- package/dist/src/infrastructure/ui/i18n/translationEndpoint.d.ts +0 -19
- package/dist/src/infrastructure/ui/i18n/translationEndpoint.js +0 -21
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.d.ts +0 -9
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +0 -21
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.d.ts +0 -7
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.js +0 -10
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +0 -11
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +0 -40
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -12
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +0 -15
- package/dist/src/infrastructure/ui/views/return/Return.style.d.ts +0 -40
- package/dist/src/infrastructure/ui/views/return/Return.style.js +0 -43
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +0 -13
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +0 -9
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +0 -7
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.js +0 -10
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +0 -17
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.js +0 -13
- package/dist/src/projection/shared/country.d.ts +0 -14
- package/dist/src/projection/shared/country.js +0 -15
- package/dist/src/projection/shared/locale.d.ts +0 -12
- package/dist/src/projection/shared/locale.js +0 -13
- package/dist/src/shared/ui/components/atoms/error/Error.d.ts +0 -10
- package/dist/src/shared/ui/components/atoms/error/Error.js +0 -4
- package/src/infrastructure/ui/i18n/fetchTranslations.test.ts +0 -29
- package/src/infrastructure/ui/i18n/fetchTranslations.ts +0 -27
- package/src/infrastructure/ui/i18n/translationEndpoint.test.ts +0 -13
- package/src/infrastructure/ui/i18n/translationEndpoint.ts +0 -50
- package/src/projection/shared/country.ts +0 -15
- package/src/projection/shared/locale.ts +0 -13
- package/src/shared/ui/components/atoms/error/Error.test.tsx +0 -11
- package/src/shared/ui/components/atoms/error/Error.tsx +0 -18
- package/src/shared/ui/components/atoms/error/__snapshots__/Error.test.tsx.snap +0 -54
- /package/dist/src/projection/{shared → customer}/customer.d.ts +0 -0
- /package/dist/src/projection/{shared → customer}/customer.js +0 -0
- /package/dist/src/projection/{shared → order}/order.d.ts +0 -0
- /package/dist/src/projection/{shared → order}/order.js +0 -0
- /package/dist/src/projection/{shared → price}/price.d.ts +0 -0
- /package/dist/src/projection/{shared → price}/price.js +0 -0
- /package/dist/src/projection/{shared → subscription}/subscription.d.ts +0 -0
- /package/dist/src/projection/{shared → subscription}/subscription.js +0 -0
- /package/src/projection/{shared → customer}/customer.ts +0 -0
- /package/src/projection/{shared → order}/order.ts +0 -0
- /package/src/projection/{shared → price}/price.ts +0 -0
- /package/src/projection/{shared → subscription}/subscription.ts +0 -0
package/src/ExpoRoot.tsx
CHANGED
|
@@ -9,7 +9,8 @@ import { EventProvider } from "@lookiero/event";
|
|
|
9
9
|
import { EndpointFunction } from "@lookiero/i18n";
|
|
10
10
|
import { i18n } from "@lookiero/i18n-react";
|
|
11
11
|
import { PaymentsQueryProvider, setPaymentsBridge } from "@lookiero/payments-front";
|
|
12
|
-
import {
|
|
12
|
+
import { fetchTranslations, translationExternalEndpoint } from "@lookiero/sty-psp-i18n";
|
|
13
|
+
import { Country, Locale } from "@lookiero/sty-psp-locale";
|
|
13
14
|
import { SentryEnvironment } from "@lookiero/sty-psp-logging";
|
|
14
15
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
15
16
|
import { DummyLayout } from "@lookiero/sty-psp-ui";
|
|
@@ -17,14 +18,19 @@ import { KameleoonEnvironment } from "./infrastructure/ab-testing/kameleoonEnvir
|
|
|
17
18
|
// import { bootstrap as checkoutMockBootstrap } from "./infrastructure/delivery/bootstrap.mock";
|
|
18
19
|
import { bootstrap as checkoutBootstrap } from "./infrastructure/delivery/bootstrap";
|
|
19
20
|
import { root } from "./infrastructure/ui/Root";
|
|
20
|
-
import { fetchTranslations } from "./infrastructure/ui/i18n/fetchTranslations";
|
|
21
|
-
import { translationExternalEndpoint } from "./infrastructure/ui/i18n/translationEndpoint";
|
|
22
21
|
import { Router } from "./infrastructure/ui/routing/router/Router";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
22
|
+
import { Customer } from "./projection/customer/customer";
|
|
23
|
+
import { Order } from "./projection/order/order";
|
|
24
|
+
import { Subscription } from "./projection/subscription/subscription";
|
|
25
25
|
import { VERSION } from "./version";
|
|
26
26
|
|
|
27
|
-
const locale: Locale =
|
|
27
|
+
const locale: Locale = "es-ES";
|
|
28
|
+
const subscription: Subscription = "b";
|
|
29
|
+
const order: Order = {
|
|
30
|
+
isFirstOrder: false,
|
|
31
|
+
orderNumber: 3687582,
|
|
32
|
+
coupon: "MYLOOKIERO",
|
|
33
|
+
};
|
|
28
34
|
|
|
29
35
|
const customer: Customer = {
|
|
30
36
|
customerId: "51a031b1-01e6-4717-97e5-157eb5a96953",
|
|
@@ -42,7 +48,7 @@ const sentryConfig: SentryEnvironment = {
|
|
|
42
48
|
const apiUrl =
|
|
43
49
|
Platform.OS !== "web" ? "https://web2.sp.dev.aws.lookiero.es/quiz/api" : __DEV__ ? "/local-to-dev" : "/checkout/api";
|
|
44
50
|
const authToken =
|
|
45
|
-
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
51
|
+
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjUwNDY3MDcsImV4cCI6MTcyMjc2MjA5OCwiZGlzcGxheU5hbWUiOiJNaWtlbCIsImNvdW50cnlfY29kZSI6IkVTIiwiYWNjZXNzVmlhIjoiZW1haWwiLCJzdWJzY3JpcHRpb25TdGFydGluZ0RhdGUiOiIyMDI0LTA1LTI5IiwiaW1wZXJzb25hdGVkIjpmYWxzZSwidXVpZCI6IjUxYTAzMWIxLTAxZTYtNDcxNy05N2U1LTE1N2ViNWE5Njk1MyIsImlhdCI6MTcyMDA4MzY5OH0.L5OtIpSXSALrJngDnOEcPS8YcwaAkMzj3AXzYB-e2mM";
|
|
46
52
|
const getAuthToken = () => Promise.resolve(authToken);
|
|
47
53
|
|
|
48
54
|
const externalTranslationsUrl =
|
|
@@ -162,13 +168,9 @@ const ExpoRoot: FC = () => {
|
|
|
162
168
|
customer={customer}
|
|
163
169
|
layout={DummyLayout}
|
|
164
170
|
locale={locale}
|
|
165
|
-
|
|
171
|
+
order={order}
|
|
172
|
+
subscription={subscription}
|
|
166
173
|
useRedirect={useRedirect}
|
|
167
|
-
order={{
|
|
168
|
-
isFirstOrder: false,
|
|
169
|
-
orderNumber: 3687582,
|
|
170
|
-
coupon: "MYLOOKIERO",
|
|
171
|
-
}}
|
|
172
174
|
onNotAccessible={onNotAccessible}
|
|
173
175
|
/>
|
|
174
176
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
CheckoutItemProductVariantProjection,
|
|
5
5
|
CheckoutItemProjection,
|
|
6
6
|
} from "../../../../projection/checkoutItem/checkoutItem";
|
|
7
|
-
import { PriceProjection } from "../../../../projection/
|
|
7
|
+
import { PriceProjection } from "../../../../projection/price/price";
|
|
8
8
|
import { getCheckoutItem as sutGet, saveCheckoutItem as sutSave } from "./httpCheckoutItems";
|
|
9
9
|
|
|
10
10
|
const mockHttpCheckoutItemsKeep = jest.fn();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { PriceProjection } from "../../../projection/price/price";
|
|
1
2
|
import { PricingProjection, ServiceProjection } from "../../../projection/pricing/pricing";
|
|
2
|
-
import { PriceProjection } from "../../../projection/shared/price";
|
|
3
3
|
|
|
4
4
|
interface PricingDto {
|
|
5
5
|
readonly balanceDiscount: PriceProjection;
|
|
@@ -2,7 +2,7 @@ import { BaseTrackingEvent, TrackingEventCategory } from "@lookiero/sty-psp-trac
|
|
|
2
2
|
import { CheckoutItemStatus } from "../../domain/checkoutItem/model/checkoutItem";
|
|
3
3
|
import { Currency } from "../../domain/checkoutItem/model/currency";
|
|
4
4
|
import { MediaPerspective } from "../../projection/checkoutItem/checkoutItem";
|
|
5
|
-
import { Subscription } from "../../projection/
|
|
5
|
+
import { Subscription } from "../../projection/subscription/subscription";
|
|
6
6
|
|
|
7
7
|
const PROJECT = "checkout";
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
2
|
import { Variation } from "@lookiero/sty-psp-ab-testing";
|
|
3
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
3
4
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
4
5
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
5
|
-
import { Country } from "../../projection/shared/country";
|
|
6
6
|
import { ABTestTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
7
7
|
import { PROJECT } from "./tracking";
|
|
8
8
|
import { useTrackAssignedVariationByExperiment as sut } from "./useTrackAssignedVariationByExperiment";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
2
|
import { Variation } from "@lookiero/sty-psp-ab-testing";
|
|
3
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
3
4
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
4
5
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
5
|
-
import { Country } from "../../projection/shared/country";
|
|
6
6
|
import { ABTestTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
7
7
|
import { PROJECT } from "./tracking";
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { ChangeFeedbackTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
import { TrackingPage } from "./tracking";
|
|
7
7
|
import { useTrackChangeFeedback as sut } from "./useTrackChangeFeedback";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { PROJECT, TrackingPage } from "./tracking";
|
|
6
6
|
import { ChangeFeedbackTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
5
|
import { Currency } from "../../domain/checkoutItem/model/currency";
|
|
5
|
-
import { Country } from "../../projection/shared/country";
|
|
6
6
|
import { CheckoutTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
7
7
|
import { TrackingPage } from "./tracking";
|
|
8
8
|
import { useTrackCheckout as sut } from "./useTrackCheckout";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
5
|
import { Currency } from "../../domain/checkoutItem/model/currency";
|
|
5
|
-
import {
|
|
6
|
-
import { Subscription } from "../../projection/shared/subscription";
|
|
6
|
+
import { Subscription } from "../../projection/subscription/subscription";
|
|
7
7
|
import { PROJECT, TrackingPage } from "./tracking";
|
|
8
8
|
import { CheckoutTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
5
|
import { MediaPerspective } from "../../projection/checkoutItem/checkoutItem";
|
|
5
|
-
import { Country } from "../../projection/shared/country";
|
|
6
6
|
import { ImageViewTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
7
7
|
import { TrackingPage } from "./tracking";
|
|
8
8
|
import { useTrackImageView as sut } from "./useTrackImageView";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { TrackingEventCategory, useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
5
|
import { MediaPerspective } from "../../projection/checkoutItem/checkoutItem";
|
|
5
|
-
import { Country } from "../../projection/shared/country";
|
|
6
6
|
import { ImageViewTrackingEvent, PROJECT, TrackingEventName, TrackingPage } from "./tracking";
|
|
7
7
|
|
|
8
8
|
interface ImageViewFunctionArgs {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
5
|
import { CheckoutItemStatus } from "../../domain/checkoutItem/model/checkoutItem";
|
|
5
|
-
import { Country } from "../../projection/shared/country";
|
|
6
6
|
import { ItemPageViewTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
7
7
|
import { TrackingPage } from "./tracking";
|
|
8
8
|
import { useTrackItemPageView as sut } from "./useTrackItemPageView";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useLayoutEffect } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
5
|
import { CheckoutItemStatus } from "../../domain/checkoutItem/model/checkoutItem";
|
|
5
|
-
import { Country } from "../../projection/shared/country";
|
|
6
6
|
import { ItemPageViewTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
7
7
|
import { PROJECT, TrackingPage } from "./tracking";
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { KeepItemTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
import { TrackingPage } from "./tracking";
|
|
7
7
|
import { useTrackKeepItem as sut } from "./useTrackKeepItem";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { KeepItemTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
import { PROJECT, TrackingPage } from "./tracking";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { TrackingEventName, TrackingEventCategory, PageViewTrackingEvent } from "./tracking";
|
|
6
6
|
import { TrackingPage } from "./tracking";
|
|
7
7
|
import { useTrackPageView as sut } from "./useTrackPageView";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useLayoutEffect } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { PROJECT, TrackingPage, PageViewTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
|
|
7
7
|
interface UseTrackPageViewFunctionArgs {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { PressBackTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
import { TrackingPage } from "./tracking";
|
|
7
7
|
import { useTrackPressBack as sut } from "./useTrackPressBack";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { PROJECT, TrackingPage, PressBackTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
|
|
7
7
|
interface PressBackFunction {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { PressContinueTrackingEvent, TrackingPage, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
import { useTrackPressContinue as sut } from "./useTrackPressContinue";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import {
|
|
6
6
|
PROJECT,
|
|
7
7
|
TrackingPage,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { TrackingPage, PressItemTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
import { useTrackPressItem as sut } from "./useTrackPressItem";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { PROJECT, TrackingPage, PressItemTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
|
|
7
7
|
interface PressItemFunctionArgs {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { TrackingPage, PressNextTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
import { useTrackPressNext as sut } from "./useTrackPressNext";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { PROJECT, TrackingPage, PressNextTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
|
|
7
7
|
interface PressNextFunctionArgs {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { TrackingPage, PressPreviousTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
import { useTrackPressPrevious as sut } from "./useTrackPressPrevious";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import {
|
|
6
6
|
PROJECT,
|
|
7
7
|
TrackingPage,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { TrackingPage, PressPricingTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
import { useTrackPressPricing as sut } from "./useTrackPressPricing";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { PressPricingTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
import { PROJECT, TrackingPage } from "./tracking";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { TrackingPage, ReplaceItemTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
import { useTrackReplaceItem as sut } from "./useTrackReplaceItem";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { PROJECT, TrackingPage, ReplaceItemTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
|
|
7
7
|
interface ReplaceItemFunctionArgs {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { TrackingPage, ResetItemTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
import { useTrackResetItem as sut } from "./useTrackResetItem";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { PROJECT, TrackingPage, ResetItemTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
|
|
7
7
|
interface ResetItemFunction {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { TrackingPage, ReturnItemTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
import { useTrackReturnItem as sut } from "./useTrackReturnItem";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { PROJECT, TrackingPage, ReturnItemTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
|
|
7
7
|
interface ReturnItemFunction {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderHook } from "@testing-library/react-native";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { TrackingPage, TabViewTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
import { useTrackTabView as sut } from "./useTrackTabView";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
|
|
4
|
-
import { Country } from "../../projection/shared/country";
|
|
5
5
|
import { PROJECT, TrackingPage, TabViewTrackingEvent, TrackingEventName, TrackingEventCategory } from "./tracking";
|
|
6
6
|
|
|
7
7
|
interface TabViewFunctionArgs<T> {
|
|
@@ -4,11 +4,12 @@ import { Platform } from "react-native";
|
|
|
4
4
|
import { useRoutes as reactRouterUseRoutes } from "react-router-native";
|
|
5
5
|
import { I18n } from "@lookiero/i18n-react";
|
|
6
6
|
import { MessagingRoot } from "@lookiero/messaging-react/bootstrap";
|
|
7
|
+
import { Locale } from "@lookiero/sty-psp-locale";
|
|
7
8
|
import { SentryEnvironment, SentryLoggerFunctionArgs, sentryLogger, sentryLoggerHOC } from "@lookiero/sty-psp-logging";
|
|
8
9
|
import { Layout } from "@lookiero/sty-psp-ui";
|
|
9
|
-
import { Customer } from "../../projection/
|
|
10
|
-
import { Order } from "../../projection/
|
|
11
|
-
import { Subscription } from "../../projection/
|
|
10
|
+
import { Customer } from "../../projection/customer/customer";
|
|
11
|
+
import { Order } from "../../projection/order/order";
|
|
12
|
+
import { Subscription } from "../../projection/subscription/subscription";
|
|
12
13
|
import { KameleoonEnvironment } from "../ab-testing/kameleoonEnvironment";
|
|
13
14
|
import { Routing } from "./routing/Routing";
|
|
14
15
|
|
|
@@ -27,7 +28,7 @@ interface RootFunction {
|
|
|
27
28
|
|
|
28
29
|
interface RootProps {
|
|
29
30
|
readonly basePath: string;
|
|
30
|
-
readonly locale?:
|
|
31
|
+
readonly locale?: Locale;
|
|
31
32
|
readonly customer: Customer;
|
|
32
33
|
readonly order: Order | undefined;
|
|
33
34
|
readonly subscription: Subscription | undefined;
|
|
@@ -45,7 +46,7 @@ const root: RootFunction = ({ Messaging, I18n, getAuthToken, development, sentry
|
|
|
45
46
|
// eslint-disable-next-line react/display-name, react/prop-types
|
|
46
47
|
const Root = ({
|
|
47
48
|
basePath,
|
|
48
|
-
locale = "en",
|
|
49
|
+
locale = "en-GB",
|
|
49
50
|
customer,
|
|
50
51
|
order,
|
|
51
52
|
subscription,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Currency } from "../../../../../domain/checkoutItem/model/currency";
|
|
3
|
-
import { PriceProjection } from "../../../../../projection/
|
|
3
|
+
import { PriceProjection } from "../../../../../projection/price/price";
|
|
4
4
|
import { render } from "../../../test/render";
|
|
5
5
|
import { Price } from "./Price";
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@ import React, { FC } from "react";
|
|
|
2
2
|
import { View } from "react-native";
|
|
3
3
|
import { Text } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nNumber } from "@lookiero/i18n-react";
|
|
5
|
-
import { PriceProjection } from "../../../../../projection/
|
|
5
|
+
import { PriceProjection } from "../../../../../projection/price/price";
|
|
6
6
|
import { style } from "./Price.style";
|
|
7
7
|
|
|
8
8
|
type PriceVariant = "default" | "detail" | "subtotal" | "total";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { renderHook, waitFor } from "@testing-library/react-native";
|
|
2
2
|
import React, { FC } from "react";
|
|
3
|
-
import { Customer } from "../../../projection/
|
|
3
|
+
import { Customer } from "../../../projection/customer/customer";
|
|
4
4
|
import { KameleoonEnvironment } from "../../ab-testing/kameleoonEnvironment";
|
|
5
5
|
import { StaticInfoProvider, useStaticInfo as sut } from "./useStaticInfo";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { createContext, FC, ReactNode, useContext, useMemo } from "react";
|
|
2
2
|
import invariant from "tiny-invariant";
|
|
3
|
-
import { Customer } from "../../../projection/
|
|
3
|
+
import { Customer } from "../../../projection/customer/customer";
|
|
4
4
|
import { KameleoonEnvironment } from "../../ab-testing/kameleoonEnvironment";
|
|
5
5
|
|
|
6
6
|
interface StaticInfo {
|
|
@@ -3,10 +3,11 @@ import { Navigate, Outlet, useRoutes as reactRouterUseRoutes } from "react-route
|
|
|
3
3
|
import { Spinner } from "@lookiero/aurora";
|
|
4
4
|
import { I18n } from "@lookiero/i18n-react";
|
|
5
5
|
import { Kameleoon } from "@lookiero/sty-psp-ab-testing";
|
|
6
|
+
import { Locale } from "@lookiero/sty-psp-locale";
|
|
6
7
|
import { Layout } from "@lookiero/sty-psp-ui";
|
|
7
|
-
import { Customer } from "../../../projection/
|
|
8
|
-
import { Order } from "../../../projection/
|
|
9
|
-
import { Subscription } from "../../../projection/
|
|
8
|
+
import { Customer } from "../../../projection/customer/customer";
|
|
9
|
+
import { Order } from "../../../projection/order/order";
|
|
10
|
+
import { Subscription } from "../../../projection/subscription/subscription";
|
|
10
11
|
import { KameleoonEnvironment } from "../../ab-testing/kameleoonEnvironment";
|
|
11
12
|
import { StaticInfoProvider } from "../hooks/useStaticInfo";
|
|
12
13
|
import { App } from "../views/App";
|
|
@@ -26,7 +27,7 @@ interface RoutingProps {
|
|
|
26
27
|
readonly customer: Customer;
|
|
27
28
|
readonly order: Order | undefined;
|
|
28
29
|
readonly subscription: Subscription | undefined;
|
|
29
|
-
readonly locale:
|
|
30
|
+
readonly locale: Locale;
|
|
30
31
|
readonly I18n: I18n;
|
|
31
32
|
readonly kameleoon: KameleoonEnvironment;
|
|
32
33
|
readonly layout: Layout;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { fireEvent } from "@testing-library/react-native";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { QueryStatus } from "@lookiero/messaging-react";
|
|
4
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
4
5
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
5
6
|
import { DummyLayout } from "@lookiero/sty-psp-ui";
|
|
6
7
|
import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
|
|
7
|
-
import { Country } from "../../../../projection/shared/country";
|
|
8
8
|
import { checkout } from "../../../projection/checkout/checkout.mock";
|
|
9
9
|
import { useViewFirstAvailableCheckoutByCustomerId } from "../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
|
|
10
10
|
import { pricing } from "../../../projection/pricing/pricing.mock";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { waitFor } from "@testing-library/react-native";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { QueryStatus } from "@lookiero/messaging-react";
|
|
4
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
4
5
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
5
6
|
import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
|
|
6
|
-
import { Country } from "../../../../../../projection/shared/country";
|
|
7
7
|
import { checkout } from "../../../../../projection/checkout/checkout.mock";
|
|
8
8
|
import { useViewFirstAvailableCheckoutByCustomerId } from "../../../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
|
|
9
9
|
import { useViewIsSizeChangeEnabledByCheckoutId } from "../../../../../projection/checkout/react/useViewIsSizeChangeEnabledByCheckoutId";
|
|
@@ -5,7 +5,7 @@ import { PaymentFlow, PaymentFlowRef } from "@lookiero/payments-front";
|
|
|
5
5
|
import { useLogger } from "@lookiero/sty-psp-logging";
|
|
6
6
|
import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
|
|
7
7
|
import { Currency } from "../../../../../../domain/checkoutItem/model/currency";
|
|
8
|
-
import { Subscription } from "../../../../../../projection/
|
|
8
|
+
import { Subscription } from "../../../../../../projection/subscription/subscription";
|
|
9
9
|
import { useViewFirstAvailableCheckoutByCustomerId } from "../../../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
|
|
10
10
|
import { useViewIsSizeChangeEnabledByCheckoutId } from "../../../../../projection/checkout/react/useViewIsSizeChangeEnabledByCheckoutId";
|
|
11
11
|
import { useViewPaymentFlowPayloadByCheckoutId } from "../../../../../projection/payment/react/useViewPaymentFlowPayloadByCheckoutId";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { fireEvent } from "@testing-library/react-native";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { CommandStatus, QueryStatus } from "@lookiero/messaging-react";
|
|
4
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
4
5
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
5
6
|
import { DummyLayout } from "@lookiero/sty-psp-ui";
|
|
6
7
|
import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
|
|
7
|
-
import { Country } from "../../../../projection/shared/country";
|
|
8
8
|
import { useGiveCheckoutFeedback } from "../../../domain/checkoutFeedback/react/useGiveCheckoutFeedback";
|
|
9
9
|
import { checkout } from "../../../projection/checkout/checkout.mock";
|
|
10
10
|
import { useViewFirstAvailableCheckoutByCustomerId } from "../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { fireEvent, RenderAPI, waitFor, screen } from "@testing-library/react-native";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { CommandStatus, QueryStatus } from "@lookiero/messaging-react";
|
|
4
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
4
5
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
5
6
|
import { DummyLayout } from "@lookiero/sty-psp-ui";
|
|
6
7
|
import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
|
|
7
|
-
import { Country } from "../../../../projection/shared/country";
|
|
8
8
|
import { useBookCheckoutBookingForCheckoutItem } from "../../../domain/checkoutBooking/react/useBookCheckoutBookingForCheckoutItem";
|
|
9
9
|
import { useKeepCheckoutItem } from "../../../domain/checkoutItem/react/useKeepCheckoutItem";
|
|
10
10
|
import { useReplaceCheckoutItem } from "../../../domain/checkoutItem/react/useReplaceCheckoutItem";
|