@lookiero/checkout 0.2.10 → 0.2.12

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 (81) hide show
  1. package/README.md +3 -1
  2. package/dist/domain/checkout/command/startCheckout.d.ts +2 -1
  3. package/dist/domain/checkout/model/checkout.d.ts +2 -1
  4. package/dist/domain/checkout/model/checkout.js +1 -1
  5. package/dist/domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.d.ts +2 -1
  6. package/dist/domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.js +1 -1
  7. package/dist/domain/checkoutBooking/model/checkoutBooking.d.ts +2 -1
  8. package/dist/domain/checkoutBooking/model/checkoutBooking.js +7 -5
  9. package/dist/domain/checkoutBooking/model/checkoutBookingBooked.d.ts +2 -1
  10. package/dist/domain/checkoutBooking/model/checkoutBookings.d.ts +1 -1
  11. package/dist/domain/checkoutItem/command/keepCheckoutItem.d.ts +13 -0
  12. package/dist/domain/checkoutItem/command/keepCheckoutItem.js +4 -0
  13. package/dist/domain/checkoutItem/model/checkoutItem.d.ts +15 -0
  14. package/dist/domain/checkoutItem/model/checkoutItem.js +20 -0
  15. package/dist/domain/checkoutItem/model/checkoutItemKept.d.ts +13 -0
  16. package/dist/domain/checkoutItem/model/checkoutItemKept.js +4 -0
  17. package/dist/domain/checkoutItem/model/checkoutItems.d.ts +7 -0
  18. package/dist/domain/checkoutItem/model/checkoutItems.js +1 -0
  19. package/dist/domain/uiSetting/command/updateUiSetting.d.ts +2 -1
  20. package/dist/domain/uiSetting/model/uiSetting.d.ts +2 -1
  21. package/dist/domain/uiSetting/model/uiSetting.js +1 -1
  22. package/dist/domain/uiSetting/model/uiSettingUpdated.d.ts +2 -1
  23. package/dist/domain/uiSetting/model/uiSettings.d.ts +1 -1
  24. package/dist/infrastructure/delivery/baseBootstrap.d.ts +18 -4
  25. package/dist/infrastructure/delivery/baseBootstrap.js +13 -6
  26. package/dist/infrastructure/delivery/bootstrap.js +8 -2
  27. package/dist/infrastructure/delivery/bootstrap.mock.js +21 -39
  28. package/dist/infrastructure/delivery/http/fetchHttpClient.js +4 -2
  29. package/dist/infrastructure/delivery/http/httpClient.d.ts +2 -0
  30. package/dist/infrastructure/delivery/mock/checkoutDataSource.d.ts +17 -0
  31. package/dist/infrastructure/delivery/mock/checkoutDataSource.js +18 -0
  32. package/dist/infrastructure/delivery/mock/dataSourceCheckoutItems.d.ts +14 -0
  33. package/dist/infrastructure/delivery/mock/dataSourceCheckoutItems.js +21 -0
  34. package/dist/infrastructure/delivery/mock/dataSourceCheckouts.d.ts +11 -0
  35. package/dist/infrastructure/delivery/mock/dataSourceCheckouts.js +27 -0
  36. package/dist/infrastructure/domain/checkout/model/httpCheckoutsStart.js +1 -2
  37. package/dist/infrastructure/domain/checkoutItem/model/httpCheckoutItems.d.ts +16 -0
  38. package/dist/infrastructure/domain/checkoutItem/model/httpCheckoutItems.js +17 -0
  39. package/dist/infrastructure/domain/checkoutItem/model/httpCheckoutItemsKeep.d.ts +5 -0
  40. package/dist/infrastructure/domain/checkoutItem/model/httpCheckoutItemsKeep.js +13 -0
  41. package/dist/infrastructure/domain/checkoutItem/react/useKeepCheckoutItem.d.ts +13 -0
  42. package/dist/infrastructure/domain/checkoutItem/react/useKeepCheckoutItem.js +12 -0
  43. package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.js +9 -13
  44. package/dist/infrastructure/projection/checkout/checkout.d.ts +3 -38
  45. package/dist/infrastructure/projection/checkout/checkout.mock.d.ts +2 -1
  46. package/dist/infrastructure/projection/checkout/checkout.mock.js +1 -33
  47. package/dist/infrastructure/projection/checkout/httpCheckoutByIdView.js +2 -1
  48. package/dist/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.js +2 -1
  49. package/dist/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.js +2 -1
  50. package/dist/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.js +2 -1
  51. package/dist/infrastructure/projection/checkoutItem/checkoutItem.d.ts +44 -0
  52. package/dist/infrastructure/projection/checkoutItem/checkoutItem.js +39 -0
  53. package/dist/infrastructure/projection/checkoutItem/checkoutItem.mock.d.ts +18 -0
  54. package/dist/infrastructure/projection/checkoutItem/checkoutItem.mock.js +37 -0
  55. package/dist/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.d.ts +12 -0
  56. package/dist/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.js +12 -0
  57. package/dist/infrastructure/ui/components/atoms/price/Price.d.ts +1 -1
  58. package/dist/infrastructure/ui/routing/CheckoutMiddleware.js +1 -1
  59. package/dist/infrastructure/ui/views/item/Item.js +1 -3
  60. package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +1 -1
  61. package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +1 -1
  62. package/dist/infrastructure/ui/views/item/components/productVariantActions/ProductVariantActions.d.ts +1 -1
  63. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +1 -1
  64. package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.d.ts +1 -1
  65. package/dist/projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +2 -2
  66. package/dist/projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.js +2 -2
  67. package/dist/projection/checkout/checkout.d.ts +2 -68
  68. package/dist/projection/checkout/checkout.js +1 -29
  69. package/dist/projection/checkout/viewCheckoutById.d.ts +2 -2
  70. package/dist/projection/checkout/viewCheckoutById.js +2 -2
  71. package/dist/projection/checkout/viewFirstAvailableCheckoutByCustomerId.d.ts +2 -2
  72. package/dist/projection/checkout/viewFirstAvailableCheckoutByCustomerId.js +2 -2
  73. package/dist/projection/checkout/viewFiveItemsDiscountByCustomerId.d.ts +2 -2
  74. package/dist/projection/checkout/viewFiveItemsDiscountByCustomerId.js +2 -2
  75. package/dist/projection/checkout/viewIsCheckoutEnabledByCustomerId.d.ts +2 -2
  76. package/dist/projection/checkout/viewIsCheckoutEnabledByCustomerId.js +2 -2
  77. package/dist/projection/checkoutItem/checkoutItem.d.ts +62 -0
  78. package/dist/projection/checkoutItem/checkoutItem.js +21 -0
  79. package/dist/projection/checkoutItem/viewCheckoutItemById.d.ts +25 -0
  80. package/dist/projection/checkoutItem/viewCheckoutItemById.js +8 -0
  81. package/package.json +9 -8
@@ -1,29 +1 @@
1
- var MediaPerspective;
2
- (function (MediaPerspective) {
3
- MediaPerspective["BACK"] = "BACK";
4
- MediaPerspective["BOTTOM_UP"] = "BOTTOM_UP";
5
- MediaPerspective["COLLAGE"] = "COLLAGE";
6
- MediaPerspective["DETAIL"] = "DETAIL";
7
- MediaPerspective["FLAT_BACK"] = "FLAT_BACK";
8
- MediaPerspective["FRONT"] = "FRONT";
9
- MediaPerspective["FRONT_FAR"] = "FRONT_FAR";
10
- MediaPerspective["LABEL"] = "LABEL";
11
- MediaPerspective["MAIN"] = "MAIN";
12
- MediaPerspective["MAIN_TRANSPARENT"] = "MAIN_TRANSPARENT";
13
- MediaPerspective["OTHER"] = "OTHER";
14
- MediaPerspective["SIDE"] = "SIDE";
15
- })(MediaPerspective || (MediaPerspective = {}));
16
- var Currency;
17
- (function (Currency) {
18
- Currency["EUR"] = "EUR";
19
- Currency["GBP"] = "GBP";
20
- })(Currency || (Currency = {}));
21
- var CheckoutItemStatus;
22
- (function (CheckoutItemStatus) {
23
- CheckoutItemStatus["INITIAL"] = "INITIAL";
24
- CheckoutItemStatus["KEPT"] = "KEPT";
25
- CheckoutItemStatus["RETURNED"] = "RETURNED";
26
- CheckoutItemStatus["REPLACED"] = "REPLACED";
27
- CheckoutItemStatus["EXPIRED"] = "EXPIRED";
28
- })(CheckoutItemStatus || (CheckoutItemStatus = {}));
29
- export { CheckoutItemStatus, MediaPerspective, Currency };
1
+ export {};
@@ -1,4 +1,4 @@
1
- import { Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
1
+ import { CancelableQueryViewArgs, Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
2
2
  import { CheckoutProjection } from "./checkout";
3
3
  declare const VIEW_CHECKOUT_BY_ID = "view_checkout_by_id";
4
4
  interface ViewCheckoutByIdPayload {
@@ -11,7 +11,7 @@ interface ViewCheckoutByIdFunction {
11
11
  }
12
12
  declare const viewCheckoutById: ViewCheckoutByIdFunction;
13
13
  declare type ViewCheckoutByIdResult = CheckoutProjection | undefined;
14
- interface CheckoutByIdViewArgs {
14
+ interface CheckoutByIdViewArgs extends CancelableQueryViewArgs {
15
15
  readonly checkoutId: string;
16
16
  }
17
17
  interface CheckoutByIdView {
@@ -1,8 +1,8 @@
1
- import { query } from "@lookiero/messaging";
1
+ import { query, } from "@lookiero/messaging";
2
2
  const VIEW_CHECKOUT_BY_ID = "view_checkout_by_id";
3
3
  const viewCheckoutById = (payload) => ({
4
4
  ...query({ name: VIEW_CHECKOUT_BY_ID }),
5
5
  ...payload,
6
6
  });
7
- const viewCheckoutByIdHandler = ({ view }) => async ({ checkoutId }) => view({ checkoutId });
7
+ const viewCheckoutByIdHandler = ({ view, signal }) => async ({ checkoutId }) => view({ checkoutId, signal });
8
8
  export { VIEW_CHECKOUT_BY_ID, viewCheckoutById, viewCheckoutByIdHandler };
@@ -1,4 +1,4 @@
1
- import { Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
1
+ import { CancelableQueryViewArgs, Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
2
2
  import { CheckoutProjection } from "./checkout";
3
3
  declare const VIEW_FIRST_AVAILABLE_CHECKOUT_BY_CUSTOMER_ID = "view_first_available_checkout_by_customer_id";
4
4
  interface ViewFirstAvailableCheckoutByCustomerIdPayload {
@@ -11,7 +11,7 @@ interface ViewFirstAvailableCheckoutByCustomerIdFunction {
11
11
  }
12
12
  declare const viewFirstAvailableCheckoutByCustomerId: ViewFirstAvailableCheckoutByCustomerIdFunction;
13
13
  declare type ViewFirstAvailableCheckoutByCustomerIdResult = CheckoutProjection | undefined;
14
- interface FirstAvailableCheckoutByCustomerIdViewArgs {
14
+ interface FirstAvailableCheckoutByCustomerIdViewArgs extends CancelableQueryViewArgs {
15
15
  readonly customerId: string;
16
16
  }
17
17
  interface FirstAvailableCheckoutByCustomerIdView {
@@ -1,8 +1,8 @@
1
- import { query } from "@lookiero/messaging";
1
+ import { query, } from "@lookiero/messaging";
2
2
  const VIEW_FIRST_AVAILABLE_CHECKOUT_BY_CUSTOMER_ID = "view_first_available_checkout_by_customer_id";
3
3
  const viewFirstAvailableCheckoutByCustomerId = (payload) => ({
4
4
  ...query({ name: VIEW_FIRST_AVAILABLE_CHECKOUT_BY_CUSTOMER_ID }),
5
5
  ...payload,
6
6
  });
7
- const viewFirstAvailableCheckoutByCustomerIdHandler = ({ view }) => async ({ customerId }) => view({ customerId });
7
+ const viewFirstAvailableCheckoutByCustomerIdHandler = ({ view, signal }) => async ({ customerId }) => view({ customerId, signal });
8
8
  export { VIEW_FIRST_AVAILABLE_CHECKOUT_BY_CUSTOMER_ID, viewFirstAvailableCheckoutByCustomerId, viewFirstAvailableCheckoutByCustomerIdHandler, };
@@ -1,4 +1,4 @@
1
- import { Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
1
+ import { CancelableQueryViewArgs, Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
2
2
  declare type FiveItemsDiscountByCustomerIdProjection = number;
3
3
  declare const VIEW_FIVE_ITEMS_DISCOUNT_BY_CUSTOMER_ID = "view_five_items_discount_by_customer_id";
4
4
  interface ViewFiveItemsDiscountByCustomerIdPayload {
@@ -10,7 +10,7 @@ interface ViewFiveItemsDiscountByCustomerIdFunction {
10
10
  (payload: ViewFiveItemsDiscountByCustomerIdPayload): ViewFiveItemsDiscountByCustomerId;
11
11
  }
12
12
  declare const viewFiveItemsDiscountByCustomerId: ViewFiveItemsDiscountByCustomerIdFunction;
13
- interface FiveItemsDiscountByCustomerIdViewArgs {
13
+ interface FiveItemsDiscountByCustomerIdViewArgs extends CancelableQueryViewArgs {
14
14
  readonly customerId: string;
15
15
  }
16
16
  interface FiveItemsDiscountByCustomerIdView {
@@ -1,8 +1,8 @@
1
- import { query } from "@lookiero/messaging";
1
+ import { query, } from "@lookiero/messaging";
2
2
  const VIEW_FIVE_ITEMS_DISCOUNT_BY_CUSTOMER_ID = "view_five_items_discount_by_customer_id";
3
3
  const viewFiveItemsDiscountByCustomerId = (payload) => ({
4
4
  ...query({ name: VIEW_FIVE_ITEMS_DISCOUNT_BY_CUSTOMER_ID }),
5
5
  ...payload,
6
6
  });
7
- const viewFiveItemsDiscountByCustomerIdHandler = ({ view }) => async ({ customerId }) => view({ customerId });
7
+ const viewFiveItemsDiscountByCustomerIdHandler = ({ view, signal }) => async ({ customerId }) => view({ customerId, signal });
8
8
  export { VIEW_FIVE_ITEMS_DISCOUNT_BY_CUSTOMER_ID, viewFiveItemsDiscountByCustomerId, viewFiveItemsDiscountByCustomerIdHandler, };
@@ -1,4 +1,4 @@
1
- import { Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
1
+ import { CancelableQueryViewArgs, Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
2
2
  declare type IsCheckoutEnabledByCustomerIdProjection = boolean;
3
3
  declare const VIEW_IS_CHECKOUT_ENABLED_BY_CUSTOMER_ID = "view_is_checkout_enabled_by_customer_id";
4
4
  interface ViewIsCheckoutEnabledByCustomerIdPayload {
@@ -10,7 +10,7 @@ interface ViewIsCheckoutEnabledByCustomerIdFunction {
10
10
  (payload: ViewIsCheckoutEnabledByCustomerIdPayload): ViewIsCheckoutEnabledByCustomerId;
11
11
  }
12
12
  declare const viewIsCheckoutEnabledByCustomerId: ViewIsCheckoutEnabledByCustomerIdFunction;
13
- interface IsCheckoutEnabledByCustomerIdViewArgs {
13
+ interface IsCheckoutEnabledByCustomerIdViewArgs extends CancelableQueryViewArgs {
14
14
  readonly customerId: string;
15
15
  }
16
16
  interface IsCheckoutEnabledByCustomerIdView {
@@ -1,8 +1,8 @@
1
- import { query } from "@lookiero/messaging";
1
+ import { query, } from "@lookiero/messaging";
2
2
  const VIEW_IS_CHECKOUT_ENABLED_BY_CUSTOMER_ID = "view_is_checkout_enabled_by_customer_id";
3
3
  const viewIsCheckoutEnabledByCustomerId = (payload) => ({
4
4
  ...query({ name: VIEW_IS_CHECKOUT_ENABLED_BY_CUSTOMER_ID }),
5
5
  ...payload,
6
6
  });
7
- const viewIsCheckoutEnabledByCustomerIdHandler = ({ view }) => async ({ customerId }) => view({ customerId });
7
+ const viewIsCheckoutEnabledByCustomerIdHandler = ({ view, signal }) => async ({ customerId }) => view({ customerId, signal });
8
8
  export { VIEW_IS_CHECKOUT_ENABLED_BY_CUSTOMER_ID, viewIsCheckoutEnabledByCustomerId, viewIsCheckoutEnabledByCustomerIdHandler, };
@@ -0,0 +1,62 @@
1
+ import { CheckoutItemStatus } from "../../domain/checkoutItem/model/checkoutItem";
2
+ declare enum MediaPerspective {
3
+ BACK = "BACK",
4
+ BOTTOM_UP = "BOTTOM_UP",
5
+ COLLAGE = "COLLAGE",
6
+ DETAIL = "DETAIL",
7
+ FLAT_BACK = "FLAT_BACK",
8
+ FRONT = "FRONT",
9
+ FRONT_FAR = "FRONT_FAR",
10
+ LABEL = "LABEL",
11
+ MAIN = "MAIN",
12
+ MAIN_TRANSPARENT = "MAIN_TRANSPARENT",
13
+ OTHER = "OTHER",
14
+ SIDE = "SIDE"
15
+ }
16
+ interface MediaProjection {
17
+ readonly id: string;
18
+ readonly url: string;
19
+ readonly perspective: MediaPerspective;
20
+ }
21
+ declare enum Currency {
22
+ EUR = "EUR",
23
+ GBP = "GBP"
24
+ }
25
+ interface PriceProjection {
26
+ readonly amount: number;
27
+ readonly currency: Currency;
28
+ readonly discountedPrice?: {
29
+ readonly amount: number;
30
+ readonly percentage: number;
31
+ };
32
+ }
33
+ interface SizeProjection {
34
+ readonly id: string;
35
+ readonly lookiero: string;
36
+ readonly uk: string;
37
+ readonly it: string;
38
+ readonly europe: string;
39
+ readonly unique: boolean;
40
+ readonly visualOrder?: number;
41
+ }
42
+ interface ColorProjection {
43
+ readonly id: string;
44
+ readonly label: string;
45
+ }
46
+ interface CheckoutItemProductVariantProjection {
47
+ readonly id: string;
48
+ readonly media: MediaProjection[];
49
+ readonly brand: string;
50
+ readonly name: string;
51
+ readonly price: PriceProjection;
52
+ readonly size: SizeProjection;
53
+ readonly color: ColorProjection;
54
+ }
55
+ interface CheckoutItemProjection {
56
+ readonly id: string;
57
+ readonly status: CheckoutItemStatus;
58
+ readonly replacedFor?: string;
59
+ readonly productVariant: CheckoutItemProductVariantProjection;
60
+ }
61
+ export type { CheckoutItemProjection, CheckoutItemProductVariantProjection, ColorProjection, MediaProjection, PriceProjection, SizeProjection, };
62
+ export { Currency, MediaPerspective };
@@ -0,0 +1,21 @@
1
+ var MediaPerspective;
2
+ (function (MediaPerspective) {
3
+ MediaPerspective["BACK"] = "BACK";
4
+ MediaPerspective["BOTTOM_UP"] = "BOTTOM_UP";
5
+ MediaPerspective["COLLAGE"] = "COLLAGE";
6
+ MediaPerspective["DETAIL"] = "DETAIL";
7
+ MediaPerspective["FLAT_BACK"] = "FLAT_BACK";
8
+ MediaPerspective["FRONT"] = "FRONT";
9
+ MediaPerspective["FRONT_FAR"] = "FRONT_FAR";
10
+ MediaPerspective["LABEL"] = "LABEL";
11
+ MediaPerspective["MAIN"] = "MAIN";
12
+ MediaPerspective["MAIN_TRANSPARENT"] = "MAIN_TRANSPARENT";
13
+ MediaPerspective["OTHER"] = "OTHER";
14
+ MediaPerspective["SIDE"] = "SIDE";
15
+ })(MediaPerspective || (MediaPerspective = {}));
16
+ var Currency;
17
+ (function (Currency) {
18
+ Currency["EUR"] = "EUR";
19
+ Currency["GBP"] = "GBP";
20
+ })(Currency || (Currency = {}));
21
+ export { Currency, MediaPerspective };
@@ -0,0 +1,25 @@
1
+ import { CancelableQueryViewArgs, Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
2
+ import { CheckoutItemProjection } from "./checkoutItem";
3
+ declare const VIEW_CHECKOUT_ITEM_BY_ID = "view_checkout_item_by_id";
4
+ interface ViewCheckoutItemByIdPayload {
5
+ readonly checkoutItemId: string;
6
+ }
7
+ interface ViewCheckoutItemById extends Query<typeof VIEW_CHECKOUT_ITEM_BY_ID>, ViewCheckoutItemByIdPayload {
8
+ }
9
+ interface ViewCheckoutItemByIdFunction {
10
+ (payload: ViewCheckoutItemByIdPayload): ViewCheckoutItemById;
11
+ }
12
+ declare const viewCheckoutItemById: ViewCheckoutItemByIdFunction;
13
+ declare type ViewCheckoutItemByIdResult = CheckoutItemProjection | undefined;
14
+ interface CheckoutItemByIdViewArgs extends CancelableQueryViewArgs {
15
+ readonly checkoutItemId: string;
16
+ }
17
+ interface CheckoutItemByIdView {
18
+ (args: CheckoutItemByIdViewArgs): Promise<ViewCheckoutItemByIdResult>;
19
+ }
20
+ interface ViewCheckoutItemByIdHandlerFunctionArgs extends QueryHandlerFunctionArgs {
21
+ readonly view: CheckoutItemByIdView;
22
+ }
23
+ declare const viewCheckoutItemByIdHandler: QueryHandlerFunction<ViewCheckoutItemById, ViewCheckoutItemByIdResult, ViewCheckoutItemByIdHandlerFunctionArgs>;
24
+ export type { ViewCheckoutItemById, CheckoutItemByIdView, ViewCheckoutItemByIdResult };
25
+ export { VIEW_CHECKOUT_ITEM_BY_ID, viewCheckoutItemById, viewCheckoutItemByIdHandler };
@@ -0,0 +1,8 @@
1
+ import { query, } from "@lookiero/messaging";
2
+ const VIEW_CHECKOUT_ITEM_BY_ID = "view_checkout_item_by_id";
3
+ const viewCheckoutItemById = (payload) => ({
4
+ ...query({ name: VIEW_CHECKOUT_ITEM_BY_ID }),
5
+ ...payload,
6
+ });
7
+ const viewCheckoutItemByIdHandler = ({ view, signal }) => async ({ checkoutItemId }) => view({ checkoutItemId, signal });
8
+ export { VIEW_CHECKOUT_ITEM_BY_ID, viewCheckoutItemById, viewCheckoutItemByIdHandler };
package/package.json CHANGED
@@ -1,31 +1,32 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "engines": {
10
- "node": ">=14.19.3"
10
+ "node": "^14.20.0 | ^18.9.0"
11
11
  },
12
12
  "scripts": {
13
13
  "start": "expo start",
14
14
  "android": "expo start --android",
15
15
  "ios": "expo start --ios",
16
16
  "web": "expo start --web",
17
- "export-analyze-web": "expo export:web",
17
+ "export-analyze-web": "BUNDLE_ANALYZE=true NODE_ENV=production expo export:web",
18
18
  "build": "tsc -b tsconfig.build.json",
19
+ "build:app": "tsc -p ./tsconfig.build-app.json --noemit && ENTRY_POINT='./src/Expo.tsx' NODE_ENV=production expo export:web --clear",
19
20
  "lint": "eslint --fix --cache --cache-location ./node_modules/.cache/.eslintcache --ext ts,tsx .",
20
21
  "format": "prettier --write \"**/*.+(json|css|ts|tsx|md)\"",
21
- "test": "jest",
22
+ "test": "tsc -p ./tsconfig.test.json --noemit && jest",
22
23
  "test:coverage": "jest --coverage --coverageReporters=text --detectOpenHandles --forceExit --silent"
23
24
  },
24
25
  "dependencies": {
25
- "@lookiero/i18n": "^0.7.3",
26
- "@lookiero/i18n-react": "^0.7.3",
27
- "@lookiero/messaging": "^7.0.0",
28
- "@lookiero/messaging-react": "^7.0.0",
26
+ "@lookiero/i18n": "^0.8.0",
27
+ "@lookiero/i18n-react": "^0.8.0",
28
+ "@lookiero/messaging": "^8.0.0",
29
+ "@lookiero/messaging-react": "^8.0.0",
29
30
  "react-native-get-random-values": "^1.8.0",
30
31
  "react-router-dom": "^6.3.0",
31
32
  "react-router-native": "^6.3.0",