@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/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ComponentType } from "react";
|
|
2
2
|
import { EndpointFunction } from "@lookiero/i18n";
|
|
3
|
+
import { translationEndpoint, translationExternalEndpoint } from "@lookiero/sty-psp-i18n";
|
|
3
4
|
import { Country } from "@lookiero/sty-psp-locale";
|
|
4
5
|
import { SentryEnvironment, SentryLoggerFunctionArgs } from "@lookiero/sty-psp-logging";
|
|
5
6
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
6
7
|
import { CheckoutStatus } from "./src/domain/checkout/model/checkout";
|
|
7
8
|
import { KameleoonEnvironment } from "./src/infrastructure/ab-testing/kameleoonEnvironment";
|
|
8
9
|
import { RootProps } from "./src/infrastructure/ui/Root";
|
|
9
|
-
import { translationEndpoint, translationExternalEndpoint } from "./src/infrastructure/ui/i18n/translationEndpoint";
|
|
10
10
|
import { CheckoutProjection } from "./src/projection/checkout/checkout";
|
|
11
|
-
import { Customer } from "./src/projection/
|
|
12
|
-
import { Order } from "./src/projection/
|
|
13
|
-
import { Subscription } from "./src/projection/
|
|
11
|
+
import { Customer } from "./src/projection/customer/customer";
|
|
12
|
+
import { Order } from "./src/projection/order/order";
|
|
13
|
+
import { Subscription } from "./src/projection/subscription/subscription";
|
|
14
14
|
interface FirstAvailableCheckoutByCustomerIdFunctionArgs {
|
|
15
15
|
readonly customerId: string | undefined;
|
|
16
16
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { i18n } from "@lookiero/i18n-react";
|
|
2
|
+
import { fetchTranslations, translationEndpoint, translationExternalEndpoint } from "@lookiero/sty-psp-i18n";
|
|
2
3
|
import { Country } from "@lookiero/sty-psp-locale";
|
|
3
4
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
4
5
|
import { CheckoutStatus } from "./src/domain/checkout/model/checkout";
|
|
5
6
|
import { bootstrap as checkoutBootstrap } from "./src/infrastructure/delivery/bootstrap";
|
|
6
7
|
import { root } from "./src/infrastructure/ui/Root";
|
|
7
|
-
import { fetchTranslations } from "./src/infrastructure/ui/i18n/fetchTranslations";
|
|
8
|
-
import { translationEndpoint, translationExternalEndpoint } from "./src/infrastructure/ui/i18n/translationEndpoint";
|
|
9
8
|
import { viewFirstAvailableCheckoutByCustomerId } from "./src/projection/checkout/viewFirstAvailableCheckoutByCustomerId";
|
|
10
9
|
const bootstrap = ({ apiUrl, getAuthToken, translations, sentry, kameleoon }) => {
|
|
11
10
|
const { Component: Messaging, queryBus } = checkoutBootstrap({ apiUrl, getAuthToken });
|
package/dist/src/ExpoRoot.js
CHANGED
|
@@ -8,18 +8,22 @@ import { Aurora, Text } from "@lookiero/aurora";
|
|
|
8
8
|
import { EventProvider } from "@lookiero/event";
|
|
9
9
|
import { i18n } from "@lookiero/i18n-react";
|
|
10
10
|
import { PaymentsQueryProvider, setPaymentsBridge } from "@lookiero/payments-front";
|
|
11
|
-
import {
|
|
11
|
+
import { fetchTranslations, translationExternalEndpoint } from "@lookiero/sty-psp-i18n";
|
|
12
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
12
13
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
13
14
|
import { DummyLayout } from "@lookiero/sty-psp-ui";
|
|
14
15
|
// import { bootstrap as checkoutMockBootstrap } from "./infrastructure/delivery/bootstrap.mock";
|
|
15
16
|
import { bootstrap as checkoutBootstrap } from "./infrastructure/delivery/bootstrap";
|
|
16
17
|
import { root } from "./infrastructure/ui/Root";
|
|
17
|
-
import { fetchTranslations } from "./infrastructure/ui/i18n/fetchTranslations";
|
|
18
|
-
import { translationExternalEndpoint } from "./infrastructure/ui/i18n/translationEndpoint";
|
|
19
18
|
import { Router } from "./infrastructure/ui/routing/router/Router";
|
|
20
|
-
import { Country } from "./projection/shared/country";
|
|
21
19
|
import { VERSION } from "./version";
|
|
22
|
-
const locale =
|
|
20
|
+
const locale = "es-ES";
|
|
21
|
+
const subscription = "b";
|
|
22
|
+
const order = {
|
|
23
|
+
isFirstOrder: false,
|
|
24
|
+
orderNumber: 3687582,
|
|
25
|
+
coupon: "MYLOOKIERO",
|
|
26
|
+
};
|
|
23
27
|
const customer = {
|
|
24
28
|
customerId: "51a031b1-01e6-4717-97e5-157eb5a96953",
|
|
25
29
|
country: Country.ES,
|
|
@@ -32,7 +36,7 @@ const sentryConfig = {
|
|
|
32
36
|
environment: `${Platform.OS}-EXPO`,
|
|
33
37
|
};
|
|
34
38
|
const apiUrl = Platform.OS !== "web" ? "https://web2.sp.dev.aws.lookiero.es/quiz/api" : __DEV__ ? "/local-to-dev" : "/checkout/api";
|
|
35
|
-
const authToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
39
|
+
const authToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjUwNDY3MDcsImV4cCI6MTcyMjc2MjA5OCwiZGlzcGxheU5hbWUiOiJNaWtlbCIsImNvdW50cnlfY29kZSI6IkVTIiwiYWNjZXNzVmlhIjoiZW1haWwiLCJzdWJzY3JpcHRpb25TdGFydGluZ0RhdGUiOiIyMDI0LTA1LTI5IiwiaW1wZXJzb25hdGVkIjpmYWxzZSwidXVpZCI6IjUxYTAzMWIxLTAxZTYtNDcxNy05N2U1LTE1N2ViNWE5Njk1MyIsImlhdCI6MTcyMDA4MzY5OH0.L5OtIpSXSALrJngDnOEcPS8YcwaAkMzj3AXzYB-e2mM";
|
|
36
40
|
const getAuthToken = () => Promise.resolve(authToken);
|
|
37
41
|
const externalTranslationsUrl = Platform.OS !== "web"
|
|
38
42
|
? "https://backend-for-user.dev.envs.lookiero.tech/api/v2/translations"
|
|
@@ -131,11 +135,7 @@ const ExpoRoot = () => {
|
|
|
131
135
|
isAccessible === false && React.createElement(Text, { heading: true }, "Checkout is not accessible!"),
|
|
132
136
|
React.createElement(Router, null,
|
|
133
137
|
React.createElement(Routes, null,
|
|
134
|
-
React.createElement(Route, { path: "/checkout/*", element: React.createElement(Root, { basePath: "/checkout", customer: customer, layout: DummyLayout, locale: locale, subscription:
|
|
135
|
-
isFirstOrder: false,
|
|
136
|
-
orderNumber: 3687582,
|
|
137
|
-
coupon: "MYLOOKIERO",
|
|
138
|
-
}, onNotAccessible: onNotAccessible }) }),
|
|
138
|
+
React.createElement(Route, { path: "/checkout/*", element: React.createElement(Root, { basePath: "/checkout", customer: customer, layout: DummyLayout, locale: locale, order: order, subscription: subscription, useRedirect: useRedirect, onNotAccessible: onNotAccessible }) }),
|
|
139
139
|
React.createElement(Route, { element: React.createElement(Navigate, { to: "/checkout", replace: true }), path: "*" }))))))) : null;
|
|
140
140
|
};
|
|
141
141
|
export { ExpoRoot };
|
|
@@ -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
|
interface PricingDto {
|
|
4
4
|
readonly balanceDiscount: PriceProjection;
|
|
5
5
|
readonly discount: 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
|
declare const PROJECT = "checkout";
|
|
7
7
|
declare enum TrackingPage {
|
|
8
8
|
ITEM = "item",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Variation } from "@lookiero/sty-psp-ab-testing";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
|
-
import { Country } from "../../projection/shared/country";
|
|
4
4
|
interface TrackAssignedVariationFunctionArgs {
|
|
5
5
|
readonly assignedVariation: Variation;
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
1
2
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
2
|
-
import { Country } from "../../projection/shared/country";
|
|
3
3
|
import { TrackingPage } from "./tracking";
|
|
4
4
|
interface ChangeFeedbackFunctionArgs {
|
|
5
5
|
readonly questionId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
1
2
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
2
3
|
import { Currency } from "../../domain/checkoutItem/model/currency";
|
|
3
|
-
import {
|
|
4
|
-
import { Subscription } from "../../projection/shared/subscription";
|
|
4
|
+
import { Subscription } from "../../projection/subscription/subscription";
|
|
5
5
|
import { TrackingPage } from "./tracking";
|
|
6
6
|
interface TrackCheckoutFunctionArgs {
|
|
7
7
|
readonly userId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
1
2
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
2
3
|
import { MediaPerspective } from "../../projection/checkoutItem/checkoutItem";
|
|
3
|
-
import { Country } from "../../projection/shared/country";
|
|
4
4
|
import { TrackingPage } from "./tracking";
|
|
5
5
|
interface ImageViewFunctionArgs {
|
|
6
6
|
readonly perspective: MediaPerspective;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
1
2
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
2
3
|
import { CheckoutItemStatus } from "../../domain/checkoutItem/model/checkoutItem";
|
|
3
|
-
import { Country } from "../../projection/shared/country";
|
|
4
4
|
import { TrackingPage } from "./tracking";
|
|
5
5
|
interface UseTrackItemPageViewFunctionArgs {
|
|
6
6
|
readonly page: TrackingPage;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
1
2
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
2
|
-
import { Country } from "../../projection/shared/country";
|
|
3
3
|
import { TrackingPage } from "./tracking";
|
|
4
4
|
interface UseTrackPageViewFunctionArgs {
|
|
5
5
|
readonly page: TrackingPage;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
1
2
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
2
|
-
import { Country } from "../../projection/shared/country";
|
|
3
3
|
import { TrackingPage } from "./tracking";
|
|
4
4
|
interface PressItemFunctionArgs {
|
|
5
5
|
readonly checkoutItemId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
1
2
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
2
|
-
import { Country } from "../../projection/shared/country";
|
|
3
3
|
import { TrackingPage } from "./tracking";
|
|
4
4
|
interface PressNextFunctionArgs {
|
|
5
5
|
readonly from: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
1
2
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
2
|
-
import { Country } from "../../projection/shared/country";
|
|
3
3
|
import { TrackingPage } from "./tracking";
|
|
4
4
|
interface PressPreviousFunctionArgs {
|
|
5
5
|
readonly from: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
1
2
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
2
|
-
import { Country } from "../../projection/shared/country";
|
|
3
3
|
import { TrackingPage } from "./tracking";
|
|
4
4
|
interface PressPricingFunctionArgs {
|
|
5
5
|
readonly collapse: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
1
2
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
2
|
-
import { Country } from "../../projection/shared/country";
|
|
3
3
|
import { TrackingPage } from "./tracking";
|
|
4
4
|
interface ReplaceItemFunctionArgs {
|
|
5
5
|
readonly replaceFor: string;
|
|
@@ -2,11 +2,12 @@ import { ComponentType } from "react";
|
|
|
2
2
|
import { useRoutes as reactRouterUseRoutes } from "react-router-native";
|
|
3
3
|
import { I18n } from "@lookiero/i18n-react";
|
|
4
4
|
import { MessagingRoot } from "@lookiero/messaging-react/bootstrap";
|
|
5
|
+
import { Locale } from "@lookiero/sty-psp-locale";
|
|
5
6
|
import { SentryEnvironment, SentryLoggerFunctionArgs } from "@lookiero/sty-psp-logging";
|
|
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
|
interface RootFunctionArgs {
|
|
12
13
|
readonly Messaging: MessagingRoot;
|
|
@@ -21,7 +22,7 @@ interface RootFunction {
|
|
|
21
22
|
}
|
|
22
23
|
interface RootProps {
|
|
23
24
|
readonly basePath: string;
|
|
24
|
-
readonly locale?:
|
|
25
|
+
readonly locale?: Locale;
|
|
25
26
|
readonly customer: Customer;
|
|
26
27
|
readonly order: Order | undefined;
|
|
27
28
|
readonly subscription: Subscription | undefined;
|
|
@@ -8,7 +8,7 @@ const root = ({ Messaging, I18n, getAuthToken, development, sentry, kameleoon: k
|
|
|
8
8
|
const logger = sentryLogger(sentry);
|
|
9
9
|
const kameleoon = kameleoonConfig();
|
|
10
10
|
// eslint-disable-next-line react/display-name, react/prop-types
|
|
11
|
-
const Root = ({ basePath, locale = "en", customer, order, subscription, layout, onNotAccessible, onCheckoutSubmitted, useRedirect, useRoutes = reactRouterUseRoutes, }) => {
|
|
11
|
+
const Root = ({ basePath, locale = "en-GB", customer, order, subscription, layout, onNotAccessible, onCheckoutSubmitted, useRedirect, useRoutes = reactRouterUseRoutes, }) => {
|
|
12
12
|
const handleOnI18nError = useCallback((error) => logger.captureException(error), []);
|
|
13
13
|
return (React.createElement(Messaging, { includeReactQueryDevTools: Platform.OS === "web" },
|
|
14
14
|
React.createElement(Routing, { I18n: I18n, basePath: basePath, customer: customer, getAuthToken: getAuthToken, kameleoon: kameleoon, layout: layout, locale: locale, order: order, subscription: subscription, useRedirect: useRedirect, useRoutes: useRoutes, onCheckoutSubmitted: onCheckoutSubmitted, onI18nError: development ? undefined : handleOnI18nError, onNotAccessible: onNotAccessible })));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { PriceProjection } from "../../../../../projection/
|
|
2
|
+
import { PriceProjection } from "../../../../../projection/price/price";
|
|
3
3
|
type PriceVariant = "default" | "detail" | "subtotal" | "total";
|
|
4
4
|
interface PriceProps {
|
|
5
5
|
readonly price: PriceProjection;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
|
-
import { Customer } from "../../../projection/
|
|
2
|
+
import { Customer } from "../../../projection/customer/customer";
|
|
3
3
|
import { KameleoonEnvironment } from "../../ab-testing/kameleoonEnvironment";
|
|
4
4
|
interface StaticInfo {
|
|
5
5
|
readonly kameleoon: KameleoonEnvironment;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { useRoutes as reactRouterUseRoutes } from "react-router-native";
|
|
3
3
|
import { I18n } from "@lookiero/i18n-react";
|
|
4
|
+
import { Locale } from "@lookiero/sty-psp-locale";
|
|
4
5
|
import { Layout } from "@lookiero/sty-psp-ui";
|
|
5
|
-
import { Customer } from "../../../projection/
|
|
6
|
-
import { Order } from "../../../projection/
|
|
7
|
-
import { Subscription } from "../../../projection/
|
|
6
|
+
import { Customer } from "../../../projection/customer/customer";
|
|
7
|
+
import { Order } from "../../../projection/order/order";
|
|
8
|
+
import { Subscription } from "../../../projection/subscription/subscription";
|
|
8
9
|
import { KameleoonEnvironment } from "../../ab-testing/kameleoonEnvironment";
|
|
9
10
|
interface RoutingProps {
|
|
10
11
|
readonly basePath?: string;
|
|
11
12
|
readonly customer: Customer;
|
|
12
13
|
readonly order: Order | undefined;
|
|
13
14
|
readonly subscription: Subscription | undefined;
|
|
14
|
-
readonly locale:
|
|
15
|
+
readonly locale: Locale;
|
|
15
16
|
readonly I18n: I18n;
|
|
16
17
|
readonly kameleoon: KameleoonEnvironment;
|
|
17
18
|
readonly layout: Layout;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { Subscription } from "../../../../../../projection/
|
|
2
|
+
import { Subscription } from "../../../../../../projection/subscription/subscription";
|
|
3
3
|
interface CheckoutPaymentModalProps {
|
|
4
4
|
readonly coupon: string | null;
|
|
5
5
|
readonly orderNumber: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import { LayoutRectangle } from "react-native";
|
|
3
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
3
4
|
import { ProductVariantProjection } from "../../../../../../projection/bookedProductsVariants/bookedProductsVariants";
|
|
4
|
-
import { Country } from "../../../../../../projection/shared/country";
|
|
5
5
|
interface ItemActionsProps {
|
|
6
6
|
readonly productVariants?: ProductVariantProjection[];
|
|
7
7
|
readonly currentProductVariant: ProductVariantProjection;
|
|
@@ -3,7 +3,7 @@ import { View } from "react-native";
|
|
|
3
3
|
import { Button, BUTTON_VARIANT } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
5
|
import { Sticky } from "@lookiero/sty-psp-ui";
|
|
6
|
-
import { size } from "../../../../../../projection/
|
|
6
|
+
import { size } from "../../../../../../projection/size/size";
|
|
7
7
|
import { Body } from "../../../../components/layouts/body/Body";
|
|
8
8
|
import { I18nMessages } from "../../../../i18n/i18n";
|
|
9
9
|
import { SelectModal } from "../selectModal/SelectModal";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { Country } from "
|
|
3
|
-
import { PriceProjection } from "../../../../../../projection/
|
|
4
|
-
import { SizeProjection } from "../../../../../../projection/
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
3
|
+
import { PriceProjection } from "../../../../../../projection/price/price";
|
|
4
|
+
import { SizeProjection } from "../../../../../../projection/size/size";
|
|
5
5
|
interface ProductVariantDescriptionProps {
|
|
6
6
|
readonly brand: string;
|
|
7
7
|
readonly name: string;
|
|
@@ -3,7 +3,7 @@ import { View } from "react-native";
|
|
|
3
3
|
import { COLOR, Text } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
5
|
import { useScreenSize } from "@lookiero/sty-psp-ui";
|
|
6
|
-
import { size } from "../../../../../../projection/
|
|
6
|
+
import { size } from "../../../../../../projection/size/size";
|
|
7
7
|
import { Price } from "../../../../components/atoms/price/Price";
|
|
8
8
|
import { I18nMessages } from "../../../../i18n/i18n";
|
|
9
9
|
import { style } from "./ProductVariantDescription.style";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
2
|
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
3
4
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
4
5
|
import { ProductVariantProjection } from "../../../../../../projection/bookedProductsVariants/bookedProductsVariants";
|
|
5
6
|
import { CheckoutItemProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
|
|
6
|
-
import { Country } from "../../../../../../projection/shared/country";
|
|
7
7
|
type ProductVariantStyle = "content";
|
|
8
8
|
interface ProductVariantProps {
|
|
9
9
|
readonly country: Country;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { PriceProjection } from "../../../../../../projection/
|
|
2
|
+
import { PriceProjection } from "../../../../../../projection/price/price";
|
|
3
3
|
interface PriceProps {
|
|
4
4
|
readonly price: PriceProjection;
|
|
5
5
|
readonly withPercentage?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { CheckoutItemProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
|
|
3
|
-
import { Country } from "../../../../../../projection/shared/country";
|
|
4
4
|
interface ProductVariantPreviewProps {
|
|
5
5
|
readonly item: CheckoutItemProjection;
|
|
6
6
|
readonly country: Country;
|
|
@@ -3,7 +3,7 @@ import { Image } from "react-native";
|
|
|
3
3
|
import { COLOR, Text, View, useDevice } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
5
|
import { Column, Row } from "@lookiero/sty-psp-ui";
|
|
6
|
-
import { size } from "../../../../../../projection/
|
|
6
|
+
import { size } from "../../../../../../projection/size/size";
|
|
7
7
|
import { useMediaImage } from "../../../../hooks/useMediaImage";
|
|
8
8
|
import { I18nMessages } from "../../../../i18n/i18n";
|
|
9
9
|
import { Price } from "../price/Price";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
3
4
|
import { Layout as UiLayout } from "@lookiero/sty-psp-ui";
|
|
4
5
|
import { CheckoutProjection } from "../../../../../../projection/checkout/checkout";
|
|
5
6
|
import { CheckoutItemProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
|
|
6
|
-
import { Country } from "../../../../../../projection/shared/country";
|
|
7
7
|
interface ReturnQuestionsFormProps {
|
|
8
8
|
readonly checkout: CheckoutProjection;
|
|
9
9
|
readonly checkoutItem: CheckoutItemProjection;
|
package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import { ImageStyle, StyleProp } from "react-native";
|
|
3
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
3
4
|
import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
|
|
4
5
|
import { ColorProjection, MediaProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { SizeProjection } from "../../../../../../projection/shared/size";
|
|
6
|
+
import { PriceProjection } from "../../../../../../projection/price/price";
|
|
7
|
+
import { SizeProjection } from "../../../../../../projection/size/size";
|
|
8
8
|
interface ProductVariantStyle {
|
|
9
9
|
readonly image: StyleProp<ImageStyle>;
|
|
10
10
|
}
|
|
@@ -3,7 +3,7 @@ import { Image, Pressable, View } from "react-native";
|
|
|
3
3
|
import { COLOR, Icon, Text } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
5
|
import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
|
|
6
|
-
import { size } from "../../../../../../projection/
|
|
6
|
+
import { size } from "../../../../../../projection/size/size";
|
|
7
7
|
import { Price } from "../../../../components/atoms/price/Price";
|
|
8
8
|
import { useMediaImage } from "../../../../hooks/useMediaImage";
|
|
9
9
|
import { COLOR_I18N_PREFIX, I18nMessages } from "../../../../i18n/i18n";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
2
3
|
import { CheckoutItemProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
|
|
3
|
-
import { Country } from "../../../../../../projection/shared/country";
|
|
4
4
|
interface CheckoutItemsTabsProps {
|
|
5
5
|
readonly tabIndex: number;
|
|
6
6
|
readonly checkoutItemsKept: CheckoutItemProjection[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CheckoutItemStatus } from "../../domain/checkoutItem/model/checkoutItem";
|
|
2
2
|
import { FeedbackProjection } from "../feedback/feedback";
|
|
3
|
-
import { PriceProjection } from "../
|
|
4
|
-
import { SizeProjection } from "../
|
|
3
|
+
import { PriceProjection } from "../price/price";
|
|
4
|
+
import { SizeProjection } from "../size/size";
|
|
5
5
|
declare enum MediaPerspective {
|
|
6
6
|
BACK = "BACK",
|
|
7
7
|
BOTTOM_UP = "BOTTOM_UP",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import { IconName, InputProperties } from "@lookiero/aurora";
|
|
4
|
-
import { ErrorStyle } from "
|
|
4
|
+
import { ErrorStyle } from "@lookiero/sty-psp-ui";
|
|
5
5
|
import { FieldStyle } from "../../atoms/field/Field";
|
|
6
6
|
type IconStyle = StyleProp<TextStyle>;
|
|
7
7
|
type InputFieldStyle = FieldStyle & {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useState } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
3
|
import { COLOR, Icon, Input } from "@lookiero/aurora";
|
|
4
|
-
import { theme } from "@lookiero/sty-psp-ui";
|
|
5
|
-
import { Error } from "../../atoms/error/Error";
|
|
4
|
+
import { Error, theme } from "@lookiero/sty-psp-ui";
|
|
6
5
|
import { Field } from "../../atoms/field/Field";
|
|
7
6
|
import { style } from "./InputField.style";
|
|
8
7
|
const { colorBgBase, colorBorderInput, colorBorderInputError, colorBorderInputFocus, colorText, colorTextError, colorTextMedium, iconSize, space6, } = theme();
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "7.2.0
|
|
1
|
+
export declare const VERSION = "7.2.0";
|
package/dist/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "7.2.0
|
|
1
|
+
export const VERSION = "7.2.0";
|
package/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentType } from "react";
|
|
2
2
|
import { EndpointFunction } from "@lookiero/i18n";
|
|
3
3
|
import { i18n } from "@lookiero/i18n-react";
|
|
4
|
+
import { fetchTranslations, translationEndpoint, translationExternalEndpoint } from "@lookiero/sty-psp-i18n";
|
|
4
5
|
import { Country } from "@lookiero/sty-psp-locale";
|
|
5
6
|
import { SentryEnvironment, SentryLoggerFunctionArgs } from "@lookiero/sty-psp-logging";
|
|
6
7
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
@@ -8,13 +9,11 @@ import { CheckoutStatus } from "./src/domain/checkout/model/checkout";
|
|
|
8
9
|
import { KameleoonEnvironment } from "./src/infrastructure/ab-testing/kameleoonEnvironment";
|
|
9
10
|
import { bootstrap as checkoutBootstrap } from "./src/infrastructure/delivery/bootstrap";
|
|
10
11
|
import { root, RootProps } from "./src/infrastructure/ui/Root";
|
|
11
|
-
import { fetchTranslations } from "./src/infrastructure/ui/i18n/fetchTranslations";
|
|
12
|
-
import { translationEndpoint, translationExternalEndpoint } from "./src/infrastructure/ui/i18n/translationEndpoint";
|
|
13
12
|
import { CheckoutProjection } from "./src/projection/checkout/checkout";
|
|
14
13
|
import { viewFirstAvailableCheckoutByCustomerId } from "./src/projection/checkout/viewFirstAvailableCheckoutByCustomerId";
|
|
15
|
-
import { Customer } from "./src/projection/
|
|
16
|
-
import { Order } from "./src/projection/
|
|
17
|
-
import { Subscription } from "./src/projection/
|
|
14
|
+
import { Customer } from "./src/projection/customer/customer";
|
|
15
|
+
import { Order } from "./src/projection/order/order";
|
|
16
|
+
import { Subscription } from "./src/projection/subscription/subscription";
|
|
18
17
|
|
|
19
18
|
interface FirstAvailableCheckoutByCustomerIdFunctionArgs {
|
|
20
19
|
readonly customerId: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookiero/checkout",
|
|
3
|
-
"version": "7.2.0
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"sideEffects": "false",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"@lookiero/sty-psp-ab-testing": "^0.2.2",
|
|
19
19
|
"@lookiero/sty-psp-expo-config": "^0.1.0",
|
|
20
20
|
"@lookiero/sty-psp-http": "^2.0.0",
|
|
21
|
-
"@lookiero/sty-psp-i18n": "^0.1.
|
|
22
|
-
"@lookiero/sty-psp-locale": "^0.
|
|
21
|
+
"@lookiero/sty-psp-i18n": "^0.1.8",
|
|
22
|
+
"@lookiero/sty-psp-locale": "^0.3.0",
|
|
23
23
|
"@lookiero/sty-psp-logging": "^0.2.2",
|
|
24
24
|
"@lookiero/sty-psp-notifications": "^0.5.8",
|
|
25
25
|
"@lookiero/sty-psp-react-native": "^0.2.0",
|
|
26
26
|
"@lookiero/sty-psp-segment": "^0.1.1",
|
|
27
27
|
"@lookiero/sty-psp-storage": "^0.1.3",
|
|
28
|
-
"@lookiero/sty-psp-tracking": "^0.1.7
|
|
28
|
+
"@lookiero/sty-psp-tracking": "^0.1.7",
|
|
29
29
|
"@lookiero/sty-psp-ui": "^0.5.5",
|
|
30
30
|
"@lookiero/sty-psp-ui-settings": "^0.1.1",
|
|
31
31
|
"@lookiero/sty-psp-units": "^0.1.1",
|