@lookiero/checkout 12.27.0-beta.0 → 12.28.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.
Files changed (31) hide show
  1. package/{cypress.config.ts → cypress.config.cjs} +2 -2
  2. package/dist/src/Expo.js +0 -2
  3. package/dist/src/ExpoRoot.js +3 -3
  4. package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +0 -1
  5. package/dist/src/version.d.ts +2 -2
  6. package/dist/src/version.js +2 -2
  7. package/jest.config.js +1 -7
  8. package/jest.setup.js +1 -53
  9. package/package.json +20 -20
  10. package/src/Expo.tsx +0 -3
  11. package/src/ExpoRoot.tsx +3 -3
  12. package/src/infrastructure/ui/components/layouts/body/__snapshots__/Body.test.tsx.snap +2 -0
  13. package/src/infrastructure/ui/views/checkout/Checkout.test.tsx +4 -1
  14. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +27 -18
  15. package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +41 -27
  16. package/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.tsx +0 -2
  17. package/src/infrastructure/ui/views/item/components/productVariantSlider/__snapshots__/ProductVariantSlider.test.tsx.snap +28 -20
  18. package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +1 -0
  19. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +14 -9
  20. package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +84 -60
  21. package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +1 -0
  22. package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +28 -20
  23. package/src/infrastructure/ui/views/summary/Summary.test.tsx +4 -1
  24. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.test.tsx +3 -0
  25. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +26 -18
  26. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +56 -40
  27. package/dist/public/public/assets/adaptive-icon.png +0 -0
  28. package/dist/public/public/assets/favicon.png +0 -0
  29. package/dist/public/public/assets/icon.png +0 -0
  30. package/dist/public/public/assets/splash.png +0 -0
  31. package/dist/public/public/images/not-found.png +0 -0
@@ -1,6 +1,6 @@
1
- import { defineConfig } from "cypress";
1
+ const { defineConfig } = require("cypress");
2
2
 
3
- export default defineConfig({
3
+ module.exports = defineConfig({
4
4
  projectId: "checkout",
5
5
  fixturesFolder: "cypress/fixtures",
6
6
  screenshotsFolder: "cypress/screenshots",
package/dist/src/Expo.js CHANGED
@@ -1,7 +1,5 @@
1
1
  import "@expo/metro-runtime";
2
2
  import { registerRootComponent } from "expo";
3
- import { enableLegacyWebImplementation } from "react-native-gesture-handler";
4
3
  import "react-native-get-random-values";
5
4
  import { ExpoRoot } from "./ExpoRoot";
6
- enableLegacyWebImplementation(true);
7
5
  registerRootComponent(ExpoRoot);
@@ -18,7 +18,7 @@ import { root } from "./infrastructure/ui/Root";
18
18
  import { DOMAIN } from "./infrastructure/ui/i18n/i18n";
19
19
  import { Router } from "./infrastructure/ui/routing/router/Router";
20
20
  import { RELEASE } from "./version";
21
- const tradename = Tradename.OUTFITTERY;
21
+ const tradename = Tradename.LOOKIERO;
22
22
  const theme = themeByTradename({ tradename });
23
23
  const locale = Locale.es_ES;
24
24
  const subscription = "b";
@@ -28,7 +28,7 @@ const order = {
28
28
  coupon: "MYLOOKIERO",
29
29
  };
30
30
  const customer = {
31
- customerId: "f943ae75-bffb-4b14-b418-e8c79da41dde",
31
+ customerId: "0004a049-fef6-4bac-a45d-b3a904b4ee4b",
32
32
  country: Country.ES,
33
33
  segment: Segment.WOMEN,
34
34
  email: "email@example.com",
@@ -49,7 +49,7 @@ const apiUrl = Platform.OS !== "web"
49
49
  ? "/local-to-dev"
50
50
  : "http://localhost:3004/local-to-dev"
51
51
  : "/checkout/api";
52
- const authToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEzNDQzMjA4LCJleHAiOjE3NjQzNDQwNjUsImRpc3BsYXlOYW1lIjoiQWxleGFuZGVyIiwiY291bnRyeV9jb2RlIjoiRVMiLCJhY2Nlc3NWaWEiOiJlbWFpbCIsInN1YnNjcmlwdGlvblN0YXJ0aW5nRGF0ZSI6IjIwMjUtMTAtMjciLCJpbXBlcnNvbmF0ZWQiOmZhbHNlLCJ1dWlkIjoiZjk0M2FlNzUtYmZmYi00YjE0LWI0MTgtZThjNzlkYTQxZGRlIiwidHJhZGVuYW1lIjoiT1VURklUVEVSWSIsImlhdCI6MTc2MTY2NTY2NX0.ACQlI_HmEytLQCWNLXPStOwNdrOKjU9IHW4ezrHoquc";
52
+ const authToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIyMDgzMTMsImV4cCI6MTc2NTk4NzE0MywiZGlzcGxheU5hbWUiOiJUZXN0aW5nIiwiY291bnRyeV9jb2RlIjoiTkwiLCJhY2Nlc3NWaWEiOiJlbWFpbCIsInN1YnNjcmlwdGlvblN0YXJ0aW5nRGF0ZSI6IjIwMjAtMTAtMDEiLCJpbXBlcnNvbmF0ZWQiOmZhbHNlLCJ1dWlkIjoiMDAwNGEwNDktZmVmNi00YmFjLWE0NWQtYjNhOTA0YjRlZTRiIiwidHJhZGVuYW1lIjoiTE9PS0lFUk8iLCJpYXQiOjE3NjMzOTUxNDN9.X3UQ0NSow2zu76ROCm4pl2cwTkDTOhHOaQT9N8zcqdg";
53
53
  const getAuthToken = () => Promise.resolve(authToken);
54
54
  const externalTranslationsUrl = Platform.OS !== "web"
55
55
  ? "https://backend-for-user.dev.envs.lookiero.tech/api/v2/translations"
@@ -35,7 +35,6 @@ const ProductVariantSlider = ({ producVariantMedia, onChanged, availableHeight }
35
35
  style.largeImage,
36
36
  ]);
37
37
  const renderBullets = useCallback(({ activeIndex, count, onChange }) => React.createElement(Bullets, { activeIndex: activeIndex, count: count, onChange: onChange }), []);
38
- console.log({ producVariantMedia });
39
38
  return (React.createElement(Carousel, { activeIndex: activeIndex, bullets: renderBullets, data: producVariantMedia, onActiveIndexChanged: handleOnActiveChanged }, renderItem));
40
39
  };
41
40
  export { ProductVariantSlider };
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "12.27.0-beta.0";
2
- export declare const RELEASE = "checkout@12.27.0-beta.0";
1
+ export declare const VERSION = "12.28.0";
2
+ export declare const RELEASE = "checkout@12.28.0";
@@ -1,2 +1,2 @@
1
- export const VERSION = "12.27.0-beta.0";
2
- export const RELEASE = "checkout@12.27.0-beta.0";
1
+ export const VERSION = "12.28.0";
2
+ export const RELEASE = "checkout@12.28.0";
package/jest.config.js CHANGED
@@ -1,7 +1 @@
1
- const jestReactNativeConfig = require("@lookiero/sty-psp-jest-config/jest.config.expo.js");
2
-
3
- module.exports = {
4
- ...jestReactNativeConfig,
5
- setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
6
- setupFiles: ["../../node_modules/react-native-gesture-handler/jestSetup.js"],
7
- };
1
+ module.exports = require("@lookiero/sty-psp-jest-config/jest.config.expo.js");
package/jest.setup.js CHANGED
@@ -1,53 +1 @@
1
- import mockAsyncStorage from "@react-native-async-storage/async-storage/jest/async-storage-mock";
2
- import "@lookiero/sty-psp-jest-config/jest.setup.base";
3
-
4
- require("react-native-reanimated").setUpTests();
5
-
6
- jest.mock('react-native-reanimated', () => {
7
- const Reanimated = jest.requireActual('react-native-reanimated/mock');
8
-
9
- // Override call to prevent warnings in newer versions
10
- Reanimated.default.call = () => {};
11
-
12
- return Reanimated;
13
- });
14
-
15
- jest.mock("@react-native-async-storage/async-storage", () => mockAsyncStorage);
16
-
17
- /**
18
- * All expo mocked dependencies solve Aurora introduced issues.
19
- * Without these, jest will break or pollute the log warnings.
20
- */
21
- jest.mock("expo-linear-gradient", () => ({ LinearGradient: require("react-native").View }));
22
-
23
- jest.mock("react-native-safe-area-context", () => ({
24
- SafeAreaProvider: ({ children }) => children,
25
- SafeAreaView: ({ children }) => children,
26
- useSafeAreaInsets: () => ({ top: 0, bottom: 0 }),
27
- useSafeAreaFrame: () => ({ x: 0, y: 0, width: 600, height: 800 }),
28
- }));
29
-
30
- jest.mock("@gorhom/portal", () => ({
31
- Portal: ({ children }) => children,
32
- PortalHost: () => null,
33
- }));
34
-
35
- jest.mock("react-native-keyboard-aware-scroll-view", () => {
36
- const KeyboardAwareScrollView = require("react-native").ScrollView;
37
- const KeyboardAwareFlatList = require("react-native").FlatList;
38
-
39
- return { KeyboardAwareScrollView, KeyboardAwareFlatList };
40
- });
41
-
42
- jest.mock("@lookiero/user-tracking-front", () => ({
43
- emitUserEvent: jest.fn(),
44
- }));
45
-
46
- beforeAll(() => {
47
- jest.useFakeTimers();
48
- });
49
-
50
- afterAll(() => {
51
- jest.runOnlyPendingTimers();
52
- jest.useRealTimers();
53
- });
1
+ import "@lookiero/sty-psp-jest-config/jest.setup.expo";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "12.27.0-beta.0",
3
+ "version": "12.28.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": "false",
@@ -19,27 +19,28 @@
19
19
  "eas:all": "eas build -p all -e test"
20
20
  },
21
21
  "dependencies": {
22
+ "@expo/metro-runtime": "^5.0.5",
22
23
  "@lookiero/messaging": "^8.1.1",
23
24
  "@lookiero/messaging-react": "^8.1.1",
24
25
  "@lookiero/sty-psp-ab-testing": "^0.4",
25
- "@lookiero/sty-psp-expo-config": "^1.1",
26
+ "@lookiero/sty-psp-expo-config": "^2.0",
26
27
  "@lookiero/sty-psp-http": "^2.1",
27
28
  "@lookiero/sty-psp-i18n": "^1.5",
28
29
  "@lookiero/sty-psp-locale": "^2.1",
29
- "@lookiero/sty-psp-logging": "^2.1",
30
- "@lookiero/sty-psp-notifications": "^2.12",
31
- "@lookiero/sty-psp-react-native": "^1.0",
30
+ "@lookiero/sty-psp-logging": "^2.2",
31
+ "@lookiero/sty-psp-notifications": "^2.13",
32
+ "@lookiero/sty-psp-react-native": "^2.0",
32
33
  "@lookiero/sty-psp-segment": "^0.1",
33
- "@lookiero/sty-psp-storage": "^0.2",
34
- "@lookiero/sty-psp-tracking": "^2.3",
35
- "@lookiero/sty-psp-ui-settings": "^1.3",
36
- "@lookiero/sty-psp-ui": "^3.2",
34
+ "@lookiero/sty-psp-storage": "^1.0",
35
+ "@lookiero/sty-psp-tracking": "^2.4",
36
+ "@lookiero/sty-psp-ui": "^3.3",
37
+ "@lookiero/sty-psp-ui-settings": "^1.4",
37
38
  "@lookiero/sty-psp-units": "^0.1",
38
39
  "@lookiero/sty-psp-uuid": "^0.2",
39
40
  "@lookiero/sty-sp-tradename": "^1.0",
40
41
  "@sentry/react-native": "^7.3.0",
41
42
  "react-native-keyboard-aware-scroll-view": "^0.9.5",
42
- "react-native-svg": "15.8.0",
43
+ "react-native-svg": "15.11.2",
43
44
  "tiny-invariant": "^1.3.1"
44
45
  },
45
46
  "devDependencies": {
@@ -51,7 +52,7 @@
51
52
  "@lookiero/sty-psp-prettier-config": "*",
52
53
  "@lookiero/sty-psp-scripts": "*",
53
54
  "@lookiero/sty-psp-typescript": "*",
54
- "@react-native-async-storage/async-storage": "1.23.1",
55
+ "@react-native-async-storage/async-storage": "2.1.2",
55
56
  "@react-native/assets-registry": "^0.79.2",
56
57
  "@remix-run/router": ">=1.10",
57
58
  "@testing-library/react-native": ">=13",
@@ -63,11 +64,10 @@
63
64
  "http-proxy-middleware": "^2.0.9",
64
65
  "jest-mock-extended": ">=3",
65
66
  "jest-when": ">=3",
66
- "metro": "^0.81.0",
67
- "react-native-gesture-handler": "~2.20.2",
67
+ "react-native-gesture-handler": "~2.24.0",
68
68
  "react-native-get-random-values": "~1.11.0",
69
- "react-native-reanimated": "~3.16.1",
70
- "react-native-safe-area-context": "4.12.0"
69
+ "react-native-reanimated": "~3.17.4",
70
+ "react-native-safe-area-context": "5.4.0"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@gorhom/portal": ">=1.0",
@@ -78,14 +78,14 @@
78
78
  "@lookiero/i18n-react": ">=3",
79
79
  "@lookiero/payments-front": ">=9",
80
80
  "apollo-boost": "0.4.4",
81
- "expo": ">=52",
81
+ "expo": ">=53",
82
82
  "expo-font": ">=12",
83
- "react": ">=18",
83
+ "react": ">=19",
84
84
  "react-native": ">=0.76",
85
- "react-native-gesture-handler": ">=2.20",
85
+ "react-native-gesture-handler": ">=2.24",
86
86
  "react-native-get-random-values": ">=1.11",
87
- "react-native-reanimated": ">=3.16",
88
- "react-native-safe-area-context": ">=4.12",
87
+ "react-native-reanimated": ">=3.17",
88
+ "react-native-safe-area-context": ">=5.4",
89
89
  "react-router-dom": ">=6.14",
90
90
  "react-router-native": ">=6.14",
91
91
  "uuid": ">=9"
package/src/Expo.tsx CHANGED
@@ -1,9 +1,6 @@
1
1
  import "@expo/metro-runtime";
2
2
  import { registerRootComponent } from "expo";
3
- import { enableLegacyWebImplementation } from "react-native-gesture-handler";
4
3
  import "react-native-get-random-values";
5
4
  import { ExpoRoot } from "./ExpoRoot";
6
5
 
7
- enableLegacyWebImplementation(true);
8
-
9
6
  registerRootComponent(ExpoRoot);
package/src/ExpoRoot.tsx CHANGED
@@ -25,7 +25,7 @@ import { OrderProjection } from "./projection/order/order";
25
25
  import { SubscriptionProjection } from "./projection/subscription/subscription";
26
26
  import { RELEASE } from "./version";
27
27
 
28
- const tradename = Tradename.OUTFITTERY;
28
+ const tradename = Tradename.LOOKIERO;
29
29
  const theme = themeByTradename({ tradename });
30
30
  const locale: Locale = Locale.es_ES;
31
31
 
@@ -37,7 +37,7 @@ const order: OrderProjection = {
37
37
  };
38
38
 
39
39
  const customer: Customer = {
40
- customerId: "f943ae75-bffb-4b14-b418-e8c79da41dde",
40
+ customerId: "0004a049-fef6-4bac-a45d-b3a904b4ee4b",
41
41
  country: Country.ES,
42
42
  segment: Segment.WOMEN,
43
43
  email: "email@example.com",
@@ -62,7 +62,7 @@ const apiUrl =
62
62
  : "http://localhost:3004/local-to-dev"
63
63
  : "/checkout/api";
64
64
  const authToken =
65
- "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEzNDQzMjA4LCJleHAiOjE3NjQzNDQwNjUsImRpc3BsYXlOYW1lIjoiQWxleGFuZGVyIiwiY291bnRyeV9jb2RlIjoiRVMiLCJhY2Nlc3NWaWEiOiJlbWFpbCIsInN1YnNjcmlwdGlvblN0YXJ0aW5nRGF0ZSI6IjIwMjUtMTAtMjciLCJpbXBlcnNvbmF0ZWQiOmZhbHNlLCJ1dWlkIjoiZjk0M2FlNzUtYmZmYi00YjE0LWI0MTgtZThjNzlkYTQxZGRlIiwidHJhZGVuYW1lIjoiT1VURklUVEVSWSIsImlhdCI6MTc2MTY2NTY2NX0.ACQlI_HmEytLQCWNLXPStOwNdrOKjU9IHW4ezrHoquc";
65
+ "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIyMDgzMTMsImV4cCI6MTc2NTk4NzE0MywiZGlzcGxheU5hbWUiOiJUZXN0aW5nIiwiY291bnRyeV9jb2RlIjoiTkwiLCJhY2Nlc3NWaWEiOiJlbWFpbCIsInN1YnNjcmlwdGlvblN0YXJ0aW5nRGF0ZSI6IjIwMjAtMTAtMDEiLCJpbXBlcnNvbmF0ZWQiOmZhbHNlLCJ1dWlkIjoiMDAwNGEwNDktZmVmNi00YmFjLWE0NWQtYjNhOTA0YjRlZTRiIiwidHJhZGVuYW1lIjoiTE9PS0lFUk8iLCJpYXQiOjE3NjMzOTUxNDN9.X3UQ0NSow2zu76ROCm4pl2cwTkDTOhHOaQT9N8zcqdg";
66
66
  const getAuthToken = () => Promise.resolve(authToken);
67
67
 
68
68
  const externalTranslationsUrl =
@@ -33,6 +33,7 @@ exports[`Body layout matches the snapshot for a small screen: small 1`] = `
33
33
  style={
34
34
  [
35
35
  {
36
+ "alignContent": "center",
36
37
  "alignItems": "center",
37
38
  "flexBasis": "auto",
38
39
  "flexWrap": "wrap",
@@ -104,6 +105,7 @@ exports[`Body layout matches the snapshot for the default screen: default 1`] =
104
105
  style={
105
106
  [
106
107
  {
108
+ "alignContent": "center",
107
109
  "alignItems": "center",
108
110
  "flexBasis": "auto",
109
111
  "flexWrap": "wrap",
@@ -5,6 +5,7 @@ import { QueryStatus } from "@lookiero/messaging-react";
5
5
  import { Country } from "@lookiero/sty-psp-locale";
6
6
  import { Segment } from "@lookiero/sty-psp-segment";
7
7
  import { DummyLayout } from "@lookiero/sty-psp-ui";
8
+ import { Tradename } from "@lookiero/sty-sp-tradename";
8
9
  import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
9
10
  import { Customer } from "../../../../projection/customer/customer";
10
11
  import { OrderProjection } from "../../../../projection/order/order";
@@ -27,6 +28,7 @@ const mockCustomer: Customer = {
27
28
  customerId,
28
29
  country,
29
30
  segment,
31
+ migrated: false,
30
32
  } as Customer;
31
33
  const mockCheckout = checkout({
32
34
  items: [
@@ -54,8 +56,9 @@ jest.mock("../../hooks/useCheckoutFlow", () => ({
54
56
  useCheckoutFlow: () => [mockCheckoutFlow, mockStatus, mockPaymentFlowComponent],
55
57
  }));
56
58
 
59
+ const mockTradename = Tradename.LOOKIERO;
57
60
  jest.mock("../../hooks/useStaticInfo", () => ({
58
- useStaticInfo: () => ({ customer: mockCustomer, basePath }),
61
+ useStaticInfo: () => ({ customer: mockCustomer, basePath, tradename: mockTradename }),
59
62
  }));
60
63
  // eslint-disable-next-line @typescript-eslint/naming-convention
61
64
  jest.mock("./components/paymentInstrument/PaymentInstrument", () => ({ PaymentInstrument: () => null }));
@@ -88,6 +88,7 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
88
88
  style={
89
89
  [
90
90
  {
91
+ "alignContent": "center",
91
92
  "alignItems": "center",
92
93
  "flexBasis": "auto",
93
94
  "flexWrap": "wrap",
@@ -327,15 +328,19 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
327
328
  collapsable={false}
328
329
  pointerEvents="none"
329
330
  style={
330
- {
331
- "backgroundColor": "#716A6B",
332
- "height": "300%",
333
- "left": 0,
334
- "opacity": 0.7,
335
- "position": "absolute",
336
- "top": 0,
337
- "width": "0%",
338
- }
331
+ [
332
+ {
333
+ "backgroundColor": "#716A6B",
334
+ "height": "300%",
335
+ "left": 0,
336
+ "opacity": 0.7,
337
+ "position": "absolute",
338
+ "top": 0,
339
+ },
340
+ {
341
+ "width": "0%",
342
+ },
343
+ ]
339
344
  }
340
345
  />
341
346
  <View
@@ -495,15 +500,19 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
495
500
  collapsable={false}
496
501
  pointerEvents="none"
497
502
  style={
498
- {
499
- "backgroundColor": "#B7B3B3",
500
- "height": "300%",
501
- "left": 0,
502
- "opacity": 0.7,
503
- "position": "absolute",
504
- "top": 0,
505
- "width": "0%",
506
- }
503
+ [
504
+ {
505
+ "backgroundColor": "#B7B3B3",
506
+ "height": "300%",
507
+ "left": 0,
508
+ "opacity": 0.7,
509
+ "position": "absolute",
510
+ "top": 0,
511
+ },
512
+ {
513
+ "width": "0%",
514
+ },
515
+ ]
507
516
  }
508
517
  />
509
518
  <View
@@ -62,6 +62,7 @@ exports[`ItemActions component matches the snapshot 1`] = `
62
62
  style={
63
63
  [
64
64
  {
65
+ "alignContent": "center",
65
66
  "alignItems": "center",
66
67
  "flexBasis": "auto",
67
68
  "flexWrap": "wrap",
@@ -225,15 +226,19 @@ exports[`ItemActions component matches the snapshot 1`] = `
225
226
  collapsable={false}
226
227
  pointerEvents="none"
227
228
  style={
228
- {
229
- "backgroundColor": "#B7B3B3",
230
- "height": 48,
231
- "left": 0,
232
- "opacity": 0.7,
233
- "position": "absolute",
234
- "top": 0,
235
- "width": "0%",
236
- }
229
+ [
230
+ {
231
+ "backgroundColor": "#B7B3B3",
232
+ "height": 48,
233
+ "left": 0,
234
+ "opacity": 0.7,
235
+ "position": "absolute",
236
+ "top": 0,
237
+ },
238
+ {
239
+ "width": "0%",
240
+ },
241
+ ]
237
242
  }
238
243
  />
239
244
  <View
@@ -393,15 +398,19 @@ exports[`ItemActions component matches the snapshot 1`] = `
393
398
  collapsable={false}
394
399
  pointerEvents="none"
395
400
  style={
396
- {
397
- "backgroundColor": "#B7B3B3",
398
- "height": 48,
399
- "left": 0,
400
- "opacity": 0.7,
401
- "position": "absolute",
402
- "top": 0,
403
- "width": "0%",
404
- }
401
+ [
402
+ {
403
+ "backgroundColor": "#B7B3B3",
404
+ "height": 48,
405
+ "left": 0,
406
+ "opacity": 0.7,
407
+ "position": "absolute",
408
+ "top": 0,
409
+ },
410
+ {
411
+ "width": "0%",
412
+ },
413
+ ]
405
414
  }
406
415
  />
407
416
  <View
@@ -554,15 +563,19 @@ exports[`ItemActions component matches the snapshot 1`] = `
554
563
  collapsable={false}
555
564
  pointerEvents="none"
556
565
  style={
557
- {
558
- "backgroundColor": "#716A6B",
559
- "height": 48,
560
- "left": 0,
561
- "opacity": 0.7,
562
- "position": "absolute",
563
- "top": 0,
564
- "width": "0%",
565
- }
566
+ [
567
+ {
568
+ "backgroundColor": "#716A6B",
569
+ "height": 48,
570
+ "left": 0,
571
+ "opacity": 0.7,
572
+ "position": "absolute",
573
+ "top": 0,
574
+ },
575
+ {
576
+ "width": "0%",
577
+ },
578
+ ]
566
579
  }
567
580
  />
568
581
  <View
@@ -662,6 +675,7 @@ exports[`ItemActions component matches the snapshot 1`] = `
662
675
  style={
663
676
  [
664
677
  {
678
+ "alignContent": "center",
665
679
  "alignItems": "center",
666
680
  "flexBasis": "auto",
667
681
  "flexWrap": "wrap",
@@ -88,8 +88,6 @@ const ProductVariantSlider: FC<ProductVariantSlider> = ({ producVariantMedia, on
88
88
  [],
89
89
  );
90
90
 
91
- console.log({ producVariantMedia });
92
-
93
91
  return (
94
92
  <Carousel
95
93
  activeIndex={activeIndex}
@@ -156,16 +156,20 @@ exports[`ProductVariantSlider matches the snapshot 1`] = `
156
156
  collapsable={false}
157
157
  duration={1200}
158
158
  style={
159
- {
160
- "height": "100%",
161
- "left": 0,
162
- "transform": [
163
- {
164
- "translateX": -375,
165
- },
166
- ],
167
- "width": "100%",
168
- }
159
+ [
160
+ {
161
+ "height": "100%",
162
+ "width": "100%",
163
+ },
164
+ {
165
+ "left": 0,
166
+ "transform": [
167
+ {
168
+ "translateX": -375,
169
+ },
170
+ ],
171
+ },
172
+ ]
169
173
  }
170
174
  >
171
175
  <ViewManagerAdapter_ExpoLinearGradient
@@ -313,16 +317,20 @@ exports[`ProductVariantSlider matches the snapshot 1`] = `
313
317
  collapsable={false}
314
318
  duration={1200}
315
319
  style={
316
- {
317
- "height": "100%",
318
- "left": 0,
319
- "transform": [
320
- {
321
- "translateX": -375,
322
- },
323
- ],
324
- "width": "100%",
325
- }
320
+ [
321
+ {
322
+ "height": "100%",
323
+ "width": "100%",
324
+ },
325
+ {
326
+ "left": 0,
327
+ "transform": [
328
+ {
329
+ "translateX": -375,
330
+ },
331
+ ],
332
+ },
333
+ ]
326
334
  }
327
335
  >
328
336
  <ViewManagerAdapter_ExpoLinearGradient
@@ -88,6 +88,7 @@ exports[`SelectField component matches the snapshot 1`] = `
88
88
  style={
89
89
  [
90
90
  {
91
+ "alignContent": "center",
91
92
  "alignItems": "center",
92
93
  "flexBasis": "auto",
93
94
  "flexWrap": "wrap",
@@ -88,6 +88,7 @@ exports[`SizeWithoutStockModal component matches the snapshot 1`] = `
88
88
  style={
89
89
  [
90
90
  {
91
+ "alignContent": "center",
91
92
  "alignItems": "center",
92
93
  "flexBasis": "auto",
93
94
  "flexWrap": "wrap",
@@ -408,15 +409,19 @@ exports[`SizeWithoutStockModal component matches the snapshot 1`] = `
408
409
  collapsable={false}
409
410
  pointerEvents="none"
410
411
  style={
411
- {
412
- "backgroundColor": "#716A6B",
413
- "height": "300%",
414
- "left": 0,
415
- "opacity": 0.7,
416
- "position": "absolute",
417
- "top": 0,
418
- "width": "0%",
419
- }
412
+ [
413
+ {
414
+ "backgroundColor": "#716A6B",
415
+ "height": "300%",
416
+ "left": 0,
417
+ "opacity": 0.7,
418
+ "position": "absolute",
419
+ "top": 0,
420
+ },
421
+ {
422
+ "width": "0%",
423
+ },
424
+ ]
420
425
  }
421
426
  />
422
427
  <View
@@ -167,16 +167,20 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
167
167
  collapsable={false}
168
168
  duration={1200}
169
169
  style={
170
- {
171
- "height": "100%",
172
- "left": 0,
173
- "transform": [
174
- {
175
- "translateX": -375,
176
- },
177
- ],
178
- "width": "100%",
179
- }
170
+ [
171
+ {
172
+ "height": "100%",
173
+ "width": "100%",
174
+ },
175
+ {
176
+ "left": 0,
177
+ "transform": [
178
+ {
179
+ "translateX": -375,
180
+ },
181
+ ],
182
+ },
183
+ ]
180
184
  }
181
185
  >
182
186
  <ViewManagerAdapter_ExpoLinearGradient
@@ -324,16 +328,20 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
324
328
  collapsable={false}
325
329
  duration={1200}
326
330
  style={
327
- {
328
- "height": "100%",
329
- "left": 0,
330
- "transform": [
331
- {
332
- "translateX": -375,
333
- },
334
- ],
335
- "width": "100%",
336
- }
331
+ [
332
+ {
333
+ "height": "100%",
334
+ "width": "100%",
335
+ },
336
+ {
337
+ "left": 0,
338
+ "transform": [
339
+ {
340
+ "translateX": -375,
341
+ },
342
+ ],
343
+ },
344
+ ]
337
345
  }
338
346
  >
339
347
  <ViewManagerAdapter_ExpoLinearGradient
@@ -853,16 +861,20 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
853
861
  collapsable={false}
854
862
  duration={1200}
855
863
  style={
856
- {
857
- "height": "100%",
858
- "left": 0,
859
- "transform": [
860
- {
861
- "translateX": -375,
862
- },
863
- ],
864
- "width": "100%",
865
- }
864
+ [
865
+ {
866
+ "height": "100%",
867
+ "width": "100%",
868
+ },
869
+ {
870
+ "left": 0,
871
+ "transform": [
872
+ {
873
+ "translateX": -375,
874
+ },
875
+ ],
876
+ },
877
+ ]
866
878
  }
867
879
  >
868
880
  <ViewManagerAdapter_ExpoLinearGradient
@@ -1010,16 +1022,20 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
1010
1022
  collapsable={false}
1011
1023
  duration={1200}
1012
1024
  style={
1013
- {
1014
- "height": "100%",
1015
- "left": 0,
1016
- "transform": [
1017
- {
1018
- "translateX": -375,
1019
- },
1020
- ],
1021
- "width": "100%",
1022
- }
1025
+ [
1026
+ {
1027
+ "height": "100%",
1028
+ "width": "100%",
1029
+ },
1030
+ {
1031
+ "left": 0,
1032
+ "transform": [
1033
+ {
1034
+ "translateX": -375,
1035
+ },
1036
+ ],
1037
+ },
1038
+ ]
1023
1039
  }
1024
1040
  >
1025
1041
  <ViewManagerAdapter_ExpoLinearGradient
@@ -1539,16 +1555,20 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
1539
1555
  collapsable={false}
1540
1556
  duration={1200}
1541
1557
  style={
1542
- {
1543
- "height": "100%",
1544
- "left": 0,
1545
- "transform": [
1546
- {
1547
- "translateX": -375,
1548
- },
1549
- ],
1550
- "width": "100%",
1551
- }
1558
+ [
1559
+ {
1560
+ "height": "100%",
1561
+ "width": "100%",
1562
+ },
1563
+ {
1564
+ "left": 0,
1565
+ "transform": [
1566
+ {
1567
+ "translateX": -375,
1568
+ },
1569
+ ],
1570
+ },
1571
+ ]
1552
1572
  }
1553
1573
  >
1554
1574
  <ViewManagerAdapter_ExpoLinearGradient
@@ -1696,16 +1716,20 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
1696
1716
  collapsable={false}
1697
1717
  duration={1200}
1698
1718
  style={
1699
- {
1700
- "height": "100%",
1701
- "left": 0,
1702
- "transform": [
1703
- {
1704
- "translateX": -375,
1705
- },
1706
- ],
1707
- "width": "100%",
1708
- }
1719
+ [
1720
+ {
1721
+ "height": "100%",
1722
+ "width": "100%",
1723
+ },
1724
+ {
1725
+ "left": 0,
1726
+ "transform": [
1727
+ {
1728
+ "translateX": -375,
1729
+ },
1730
+ ],
1731
+ },
1732
+ ]
1709
1733
  }
1710
1734
  >
1711
1735
  <ViewManagerAdapter_ExpoLinearGradient
@@ -49,6 +49,7 @@ exports[`ProductVariantPreview matches the snapshot 1`] = `
49
49
  style={
50
50
  [
51
51
  {
52
+ "alignContent": "center",
52
53
  "alignItems": "center",
53
54
  "flexBasis": "auto",
54
55
  "flexWrap": "wrap",
@@ -129,16 +129,20 @@ exports[`ProductVariant component matches the snapshot for a non-unique size: no
129
129
  collapsable={false}
130
130
  duration={1200}
131
131
  style={
132
- {
133
- "height": "100%",
134
- "left": 0,
135
- "transform": [
136
- {
137
- "translateX": -375,
138
- },
139
- ],
140
- "width": "100%",
141
- }
132
+ [
133
+ {
134
+ "height": "100%",
135
+ "width": "100%",
136
+ },
137
+ {
138
+ "left": 0,
139
+ "transform": [
140
+ {
141
+ "translateX": -375,
142
+ },
143
+ ],
144
+ },
145
+ ]
142
146
  }
143
147
  >
144
148
  <ViewManagerAdapter_ExpoLinearGradient
@@ -485,16 +489,20 @@ exports[`ProductVariant component matches the snapshot for an unique size: uniqu
485
489
  collapsable={false}
486
490
  duration={1200}
487
491
  style={
488
- {
489
- "height": "100%",
490
- "left": 0,
491
- "transform": [
492
- {
493
- "translateX": -375,
494
- },
495
- ],
496
- "width": "100%",
497
- }
492
+ [
493
+ {
494
+ "height": "100%",
495
+ "width": "100%",
496
+ },
497
+ {
498
+ "left": 0,
499
+ "transform": [
500
+ {
501
+ "translateX": -375,
502
+ },
503
+ ],
504
+ },
505
+ ]
498
506
  }
499
507
  >
500
508
  <ViewManagerAdapter_ExpoLinearGradient
@@ -5,6 +5,7 @@ import { QueryStatus } from "@lookiero/messaging-react";
5
5
  import { Country } from "@lookiero/sty-psp-locale";
6
6
  import { Segment } from "@lookiero/sty-psp-segment";
7
7
  import { DummyLayout } from "@lookiero/sty-psp-ui";
8
+ import { Tradename } from "@lookiero/sty-sp-tradename";
8
9
  import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
9
10
  import { Customer } from "../../../../projection/customer/customer";
10
11
  import { checkout } from "../../../projection/checkout/checkout.mock";
@@ -32,10 +33,12 @@ const mockCustomer: Customer = {
32
33
  customerId,
33
34
  country,
34
35
  segment,
36
+ migrated: false,
35
37
  } as Customer;
36
38
 
39
+ const mockTradename = Tradename.LOOKIERO;
37
40
  jest.mock("../../hooks/useStaticInfo", () => ({
38
- useStaticInfo: () => ({ customer: mockCustomer }),
41
+ useStaticInfo: () => ({ customer: mockCustomer, tradename: mockTradename }),
39
42
  }));
40
43
 
41
44
  jest.mock("../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId");
@@ -1,5 +1,6 @@
1
1
  import { RenderResult, fireEvent } from "@testing-library/react-native";
2
2
  import React from "react";
3
+ import { Tradename } from "@lookiero/sty-sp-tradename";
3
4
  import { PricingProjection } from "../../../../../../projection/pricing/pricing";
4
5
  import { pricing as pricingFunction } from "../../../../../projection/pricing/pricing.mock";
5
6
  import { I18nMessages } from "../../../../i18n/i18n";
@@ -28,9 +29,11 @@ const renderPricing: RenderPricingFunction = ({
28
29
  <CollapsiblePricing
29
30
  collapsed={collapsed}
30
31
  collapsible={collapsible}
32
+ migrated={false}
31
33
  pricing={pricing}
32
34
  submitButtonText={I18nMessages.SUMMARY_SUBMIT_BUTTON}
33
35
  totalCheckoutItemsKept={3}
36
+ tradename={Tradename.LOOKIERO}
34
37
  onPress={mockOnPress}
35
38
  onSubmit={mockOnSubmit}
36
39
  />,
@@ -296,15 +296,19 @@ exports[`Pricing component matches the snapshot for collaped pricing: collapsed
296
296
  collapsable={false}
297
297
  pointerEvents="none"
298
298
  style={
299
- {
300
- "backgroundColor": "#716A6B",
301
- "height": 48,
302
- "left": 0,
303
- "opacity": 0.7,
304
- "position": "absolute",
305
- "top": 0,
306
- "width": "0%",
307
- }
299
+ [
300
+ {
301
+ "backgroundColor": "#716A6B",
302
+ "height": 48,
303
+ "left": 0,
304
+ "opacity": 0.7,
305
+ "position": "absolute",
306
+ "top": 0,
307
+ },
308
+ {
309
+ "width": "0%",
310
+ },
311
+ ]
308
312
  }
309
313
  />
310
314
  <View
@@ -644,15 +648,19 @@ exports[`Pricing component matches the snapshot for non-collaped pricing: non-co
644
648
  collapsable={false}
645
649
  pointerEvents="none"
646
650
  style={
647
- {
648
- "backgroundColor": "#716A6B",
649
- "height": 48,
650
- "left": 0,
651
- "opacity": 0.7,
652
- "position": "absolute",
653
- "top": 0,
654
- "width": "0%",
655
- }
651
+ [
652
+ {
653
+ "backgroundColor": "#716A6B",
654
+ "height": 48,
655
+ "left": 0,
656
+ "opacity": 0.7,
657
+ "position": "absolute",
658
+ "top": 0,
659
+ },
660
+ {
661
+ "width": "0%",
662
+ },
663
+ ]
656
664
  }
657
665
  />
658
666
  <View
@@ -400,16 +400,20 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
400
400
  collapsable={false}
401
401
  duration={1200}
402
402
  style={
403
- {
404
- "height": "100%",
405
- "left": 0,
406
- "transform": [
407
- {
408
- "translateX": -375,
409
- },
410
- ],
411
- "width": "100%",
412
- }
403
+ [
404
+ {
405
+ "height": "100%",
406
+ "width": "100%",
407
+ },
408
+ {
409
+ "left": 0,
410
+ "transform": [
411
+ {
412
+ "translateX": -375,
413
+ },
414
+ ],
415
+ },
416
+ ]
413
417
  }
414
418
  >
415
419
  <ViewManagerAdapter_ExpoLinearGradient
@@ -728,16 +732,20 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
728
732
  collapsable={false}
729
733
  duration={1200}
730
734
  style={
731
- {
732
- "height": "100%",
733
- "left": 0,
734
- "transform": [
735
- {
736
- "translateX": -375,
737
- },
738
- ],
739
- "width": "100%",
740
- }
735
+ [
736
+ {
737
+ "height": "100%",
738
+ "width": "100%",
739
+ },
740
+ {
741
+ "left": 0,
742
+ "transform": [
743
+ {
744
+ "translateX": -375,
745
+ },
746
+ ],
747
+ },
748
+ ]
741
749
  }
742
750
  >
743
751
  <ViewManagerAdapter_ExpoLinearGradient
@@ -1104,16 +1112,20 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
1104
1112
  collapsable={false}
1105
1113
  duration={1200}
1106
1114
  style={
1107
- {
1108
- "height": "100%",
1109
- "left": 0,
1110
- "transform": [
1111
- {
1112
- "translateX": -375,
1113
- },
1114
- ],
1115
- "width": "100%",
1116
- }
1115
+ [
1116
+ {
1117
+ "height": "100%",
1118
+ "width": "100%",
1119
+ },
1120
+ {
1121
+ "left": 0,
1122
+ "transform": [
1123
+ {
1124
+ "translateX": -375,
1125
+ },
1126
+ ],
1127
+ },
1128
+ ]
1117
1129
  }
1118
1130
  >
1119
1131
  <ViewManagerAdapter_ExpoLinearGradient
@@ -1432,16 +1444,20 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
1432
1444
  collapsable={false}
1433
1445
  duration={1200}
1434
1446
  style={
1435
- {
1436
- "height": "100%",
1437
- "left": 0,
1438
- "transform": [
1439
- {
1440
- "translateX": -375,
1441
- },
1442
- ],
1443
- "width": "100%",
1444
- }
1447
+ [
1448
+ {
1449
+ "height": "100%",
1450
+ "width": "100%",
1451
+ },
1452
+ {
1453
+ "left": 0,
1454
+ "transform": [
1455
+ {
1456
+ "translateX": -375,
1457
+ },
1458
+ ],
1459
+ },
1460
+ ]
1445
1461
  }
1446
1462
  >
1447
1463
  <ViewManagerAdapter_ExpoLinearGradient
Binary file