@lookiero/checkout 12.2.0 → 12.3.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.
@@ -1,4 +1,4 @@
1
- import { Currency } from "./currency";
1
+ import { Currency } from "@lookiero/sty-psp-locale";
2
2
  interface Price {
3
3
  readonly amount: number;
4
4
  readonly currency: Currency;
@@ -1,4 +1,4 @@
1
- import { Currency } from "../../../domain/checkoutItem/model/currency";
1
+ import { Currency } from "@lookiero/sty-psp-locale";
2
2
  import { MediaPerspective, } from "../../../projection/checkoutItem/checkoutItem";
3
3
  const checkoutItem = ({ id = "7b389d69-f157-4234-8531-c1a1eb17dccb", status, feedbacks = {}, replacedFor = null, }) => ({
4
4
  id,
@@ -1,4 +1,4 @@
1
- import { Currency } from "../../../domain/checkoutItem/model/currency";
1
+ import { Currency } from "@lookiero/sty-psp-locale";
2
2
  const pricing = ({ paidWithPromocode } = { paidWithPromocode: false }) => ({
3
3
  orderTotal: {
4
4
  amount: 18301,
@@ -1,6 +1,6 @@
1
+ import { Currency } from "@lookiero/sty-psp-locale";
1
2
  import { BaseTrackingEvent, TrackingEventCategory } from "@lookiero/sty-psp-tracking";
2
3
  import { CheckoutItemStatus } from "../../domain/checkoutItem/model/checkoutItem";
3
- import { Currency } from "../../domain/checkoutItem/model/currency";
4
4
  import { MediaPerspective } from "../../projection/checkoutItem/checkoutItem";
5
5
  import { SubscriptionProjection } from "../../projection/subscription/subscription";
6
6
  declare const PROJECT = "checkout";
@@ -1,4 +1,4 @@
1
- import { Currency } from "../../domain/checkoutItem/model/currency";
1
+ import { Currency } from "@lookiero/sty-psp-locale";
2
2
  interface PriceProjection {
3
3
  readonly amount: number;
4
4
  readonly currency: Currency;
@@ -1 +1 @@
1
- export declare const VERSION = "12.2.0";
1
+ export declare const VERSION = "12.3.0";
@@ -1 +1 @@
1
- export const VERSION = "12.2.0";
1
+ export const VERSION = "12.3.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "12.2.0",
3
+ "version": "12.3.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": "false",
@@ -25,15 +25,15 @@
25
25
  "@lookiero/sty-psp-expo-config": "^1.0",
26
26
  "@lookiero/sty-psp-http": "^2.0",
27
27
  "@lookiero/sty-psp-i18n": "^1.0",
28
- "@lookiero/sty-psp-locale": "^0.4",
28
+ "@lookiero/sty-psp-locale": "^1.0",
29
29
  "@lookiero/sty-psp-logging": "^1.0",
30
- "@lookiero/sty-psp-notifications": "^2.0",
30
+ "@lookiero/sty-psp-notifications": "^2.1",
31
31
  "@lookiero/sty-psp-react-native": "^1.0",
32
32
  "@lookiero/sty-psp-segment": "^0.1",
33
33
  "@lookiero/sty-psp-storage": "^0.2",
34
- "@lookiero/sty-psp-tracking": "^2.0",
34
+ "@lookiero/sty-psp-tracking": "^2.1",
35
35
  "@lookiero/sty-psp-ui-settings": "^1.0",
36
- "@lookiero/sty-psp-ui": "^2.0",
36
+ "@lookiero/sty-psp-ui": "^2.1",
37
37
  "@lookiero/sty-psp-units": "^0.1",
38
38
  "@lookiero/sty-psp-uuid": "^0.2",
39
39
  "@lookiero/sty-sp-tradename": "^1.0",
@@ -1,4 +1,4 @@
1
- import { Currency } from "./currency";
1
+ import { Currency } from "@lookiero/sty-psp-locale";
2
2
 
3
3
  interface Price {
4
4
  readonly amount: number;
@@ -1,5 +1,5 @@
1
+ import { Currency } from "@lookiero/sty-psp-locale";
1
2
  import { CheckoutItemStatus } from "../../../domain/checkoutItem/model/checkoutItem";
2
- import { Currency } from "../../../domain/checkoutItem/model/currency";
3
3
  import {
4
4
  CheckoutItemProductVariantProjection,
5
5
  CheckoutItemProjection,
@@ -1,4 +1,4 @@
1
- import { Currency } from "../../../domain/checkoutItem/model/currency";
1
+ import { Currency } from "@lookiero/sty-psp-locale";
2
2
  import { PricingProjection } from "../../../projection/pricing/pricing";
3
3
 
4
4
  interface PricingFunctionArgs {
@@ -1,6 +1,6 @@
1
+ import { Currency } from "@lookiero/sty-psp-locale";
1
2
  import { BaseTrackingEvent, TrackingEventCategory } from "@lookiero/sty-psp-tracking";
2
3
  import { CheckoutItemStatus } from "../../domain/checkoutItem/model/checkoutItem";
3
- import { Currency } from "../../domain/checkoutItem/model/currency";
4
4
  import { MediaPerspective } from "../../projection/checkoutItem/checkoutItem";
5
5
  import { SubscriptionProjection } from "../../projection/subscription/subscription";
6
6
 
@@ -1,11 +1,10 @@
1
1
  import { renderHook } from "@testing-library/react-native";
2
- import { Country } from "@lookiero/sty-psp-locale";
2
+ import { Country, Currency } from "@lookiero/sty-psp-locale";
3
3
  import { Segment } from "@lookiero/sty-psp-segment";
4
4
  import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
5
5
  import { Tradename } from "@lookiero/sty-sp-tradename";
6
6
  import { CheckoutStatus } from "../../domain/checkout/model/checkout";
7
7
  import { CheckoutItemStatus } from "../../domain/checkoutItem/model/checkoutItem";
8
- import { Currency } from "../../domain/checkoutItem/model/currency";
9
8
  import { CheckoutProjection } from "../../projection/checkout/checkout";
10
9
  import { OrderProjection } from "../../projection/order/order";
11
10
  import { PricingProjection } from "../../projection/pricing/pricing";
@@ -1,11 +1,10 @@
1
1
  import { useCallback } from "react";
2
2
  import invariant from "tiny-invariant";
3
- import { Country } from "@lookiero/sty-psp-locale";
3
+ import { Country, Currency } from "@lookiero/sty-psp-locale";
4
4
  import { Segment } from "@lookiero/sty-psp-segment";
5
5
  import { useEmitUserEvent } from "@lookiero/sty-psp-tracking";
6
6
  import { Tradename } from "@lookiero/sty-sp-tradename";
7
7
  import { CheckoutItemStatus } from "../../domain/checkoutItem/model/checkoutItem";
8
- import { Currency } from "../../domain/checkoutItem/model/currency";
9
8
  import { CheckoutProjection } from "../../projection/checkout/checkout";
10
9
  import { OrderProjection } from "../../projection/order/order";
11
10
  import { PricingProjection } from "../../projection/pricing/pricing";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Currency } from "../../../../../domain/checkoutItem/model/currency";
2
+ import { Currency } from "@lookiero/sty-psp-locale";
3
3
  import { PriceProjection } from "../../../../../projection/price/price";
4
4
  import { render } from "../../../test/render";
5
5
  import { Price } from "./Price";
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
- import { Country } from "@lookiero/sty-psp-locale";
3
- import { Currency } from "../../../../../../domain/checkoutItem/model/currency";
2
+ import { Country, Currency } from "@lookiero/sty-psp-locale";
4
3
  import { I18nMessages } from "../../../../i18n/i18n";
5
4
  import { render } from "../../../../test/render";
6
5
  import { ProductVariantDescription } from "./ProductVariantDescription";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Currency } from "../../../../../../domain/checkoutItem/model/currency";
2
+ import { Currency } from "@lookiero/sty-psp-locale";
3
3
  import { PriceProjection } from "../../../../../../projection/price/price";
4
4
  import { render } from "../../../../test/render";
5
5
  import { Price } from "./Price";
@@ -1,8 +1,7 @@
1
1
  import { fireEvent } from "@testing-library/react-native";
2
2
  import React from "react";
3
- import { Country } from "@lookiero/sty-psp-locale";
3
+ import { Country, Currency } from "@lookiero/sty-psp-locale";
4
4
  import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
5
- import { Currency } from "../../../../../../domain/checkoutItem/model/currency";
6
5
  import { ColorProjection, MediaPerspective } from "../../../../../../projection/checkoutItem/checkoutItem";
7
6
  import { COLOR_I18N_PREFIX, I18nMessages } from "../../../../i18n/i18n";
8
7
  import { render } from "../../../../test/render";
@@ -1,4 +1,4 @@
1
- import { Currency } from "../../domain/checkoutItem/model/currency";
1
+ import { Currency } from "@lookiero/sty-psp-locale";
2
2
 
3
3
  interface PriceProjection {
4
4
  readonly amount: number;
@@ -1,6 +0,0 @@
1
- declare enum Currency {
2
- EUR = "EUR",
3
- GBP = "GBP",
4
- SEK = "SEK"
5
- }
6
- export { Currency };
@@ -1,7 +0,0 @@
1
- var Currency;
2
- (function (Currency) {
3
- Currency["EUR"] = "EUR";
4
- Currency["GBP"] = "GBP";
5
- Currency["SEK"] = "SEK";
6
- })(Currency || (Currency = {}));
7
- export { Currency };
@@ -1,7 +0,0 @@
1
- enum Currency {
2
- EUR = "EUR",
3
- GBP = "GBP",
4
- SEK = "SEK",
5
- }
6
-
7
- export { Currency };