@lookiero/checkout 12.27.0-beta.0 → 12.27.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.
@@ -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.27.0";
2
+ export declare const RELEASE = "checkout@12.27.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.27.0";
2
+ export const RELEASE = "checkout@12.27.0";
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.27.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": "false",
@@ -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,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}
@@ -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
  />,
Binary file