@lookiero/checkout 3.5.0 → 3.6.0-beta.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 (93) hide show
  1. package/dist/domain/checkoutBooking/event/createNotificationWhenCheckoutBookingExpired.d.ts +6 -0
  2. package/dist/domain/checkoutBooking/event/createNotificationWhenCheckoutBookingExpired.js +13 -0
  3. package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +10 -0
  4. package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.js +11 -0
  5. package/dist/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.d.ts +6 -0
  6. package/dist/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.js +7 -0
  7. package/dist/infrastructure/projection/uiSetting/react/useViewIntroShownCount.d.ts +6 -0
  8. package/dist/infrastructure/projection/uiSetting/react/useViewIntroShownCount.js +9 -0
  9. package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.d.ts +13 -0
  10. package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.js +19 -0
  11. package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.style.ts.d.ts +6 -0
  12. package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.style.ts.js +7 -0
  13. package/dist/infrastructure/ui/components/templates/header/header/Header.d.ts +3 -0
  14. package/dist/infrastructure/ui/components/templates/header/header/Header.js +10 -0
  15. package/dist/infrastructure/ui/components/templates/header/header/Header.style.d.ts +9 -0
  16. package/dist/infrastructure/ui/components/templates/header/header/Header.style.js +12 -0
  17. package/dist/infrastructure/ui/components/templates/safeAreaScrollView/SafeAreaScrollView.d.ts +13 -0
  18. package/dist/infrastructure/ui/components/templates/safeAreaScrollView/SafeAreaScrollView.js +19 -0
  19. package/dist/infrastructure/ui/components/templates/safeAreaScrollView/SafeAreaScrollView.style.ts.d.ts +6 -0
  20. package/dist/infrastructure/ui/components/templates/safeAreaScrollView/SafeAreaScrollView.style.ts.js +7 -0
  21. package/dist/infrastructure/ui/hooks/usePaymentInstrumentUpdateEvents.d.ts +2 -0
  22. package/dist/infrastructure/ui/hooks/usePaymentInstrumentUpdateEvents.js +28 -0
  23. package/dist/infrastructure/ui/hooks/useToast.d.ts +11 -0
  24. package/dist/infrastructure/ui/hooks/useToast.js +49 -0
  25. package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.d.ts +7 -0
  26. package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.js +25 -0
  27. package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.d.ts +16 -0
  28. package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.js +19 -0
  29. package/dist/infrastructure/ui/views/intro/Intro.d.ts +6 -0
  30. package/dist/infrastructure/ui/views/intro/Intro.js +52 -0
  31. package/dist/infrastructure/ui/views/intro/Intro.style.d.ts +52 -0
  32. package/dist/infrastructure/ui/views/intro/Intro.style.js +55 -0
  33. package/dist/infrastructure/ui/views/item/Item.style.d.ts +15 -0
  34. package/dist/infrastructure/ui/views/item/Item.style.js +18 -0
  35. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +6 -4
  36. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +10 -3
  37. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +10 -3
  38. package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.js +4 -3
  39. package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.style.d.ts +3 -0
  40. package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.style.js +3 -0
  41. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.d.ts +26 -0
  42. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.js +44 -0
  43. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.d.ts +45 -0
  44. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.js +53 -0
  45. package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +1 -0
  46. package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +1 -0
  47. package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +3 -2
  48. package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +3 -0
  49. package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +3 -0
  50. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.d.ts +7 -0
  51. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +25 -0
  52. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +16 -0
  53. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +19 -0
  54. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +4 -3
  55. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +10 -3
  56. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +10 -3
  57. package/dist/infrastructure/ui/views/navigation/Navigation.d.ts +21 -0
  58. package/dist/infrastructure/ui/views/navigation/Navigation.js +45 -0
  59. package/dist/infrastructure/ui/views/navigation/Navigation.style.d.ts +5 -0
  60. package/dist/infrastructure/ui/views/navigation/Navigation.style.js +30 -0
  61. package/dist/infrastructure/ui/views/navigation/components/header/Header.d.ts +46 -0
  62. package/dist/infrastructure/ui/views/navigation/components/header/Header.js +120 -0
  63. package/dist/infrastructure/ui/views/navigation/components/header/Header.style.d.ts +31 -0
  64. package/dist/infrastructure/ui/views/navigation/components/header/Header.style.js +34 -0
  65. package/dist/infrastructure/ui/views/navigation/components/header/Logo.d.ts +7 -0
  66. package/dist/infrastructure/ui/views/navigation/components/header/Logo.js +11 -0
  67. package/dist/infrastructure/ui/views/navigation/components/header/Logo.style.d.ts +7 -0
  68. package/dist/infrastructure/ui/views/navigation/components/header/Logo.style.js +8 -0
  69. package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.d.ts +12 -0
  70. package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.js +24 -0
  71. package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +15 -0
  72. package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +18 -0
  73. package/dist/infrastructure/ui/views/summary/components/pricing/Pricing.js +5 -4
  74. package/dist/infrastructure/ui/views/summary/components/pricing/Pricing.style.d.ts +6 -0
  75. package/dist/infrastructure/ui/views/summary/components/pricing/Pricing.style.js +6 -0
  76. package/dist/shared/notifications/domain/notification/command/createNotification.d.ts +17 -0
  77. package/dist/shared/notifications/domain/notification/command/createNotification.js +7 -0
  78. package/dist/shared/notifications/infrastructure/domain/notification/react/useCreateNotification.d.ts +21 -0
  79. package/dist/shared/notifications/infrastructure/domain/notification/react/useCreateNotification.js +22 -0
  80. package/dist/shared/notifications/infrastructure/ui/components/NotificationItem.d.ts +12 -0
  81. package/dist/shared/notifications/infrastructure/ui/components/NotificationItem.js +24 -0
  82. package/dist/shared/notifications/infrastructure/ui/components/Notifications.d.ts +9 -0
  83. package/dist/shared/notifications/infrastructure/ui/components/Notifications.js +20 -0
  84. package/dist/shared/notifications/infrastructure/ui/components/Notifications.style.d.ts +36 -0
  85. package/dist/shared/notifications/infrastructure/ui/components/Notifications.style.js +31 -0
  86. package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.js +4 -3
  87. package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.style.d.ts +10 -3
  88. package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.style.js +10 -3
  89. package/dist/shared/tracking/infrastructure/usePageView.d.ts +13 -0
  90. package/dist/shared/tracking/infrastructure/usePageView.js +27 -0
  91. package/dist/shared/ui/components/atoms/error/Error.style.d.ts +6 -0
  92. package/dist/shared/ui/components/atoms/error/Error.style.js +9 -0
  93. package/package.json +1 -1
@@ -2,12 +2,19 @@ declare const style: {
2
2
  button: {
3
3
  flex: number;
4
4
  };
5
- modal: {
6
- padding: number;
5
+ buttonText: {
6
+ width: string;
7
7
  };
8
- modalDescription: {
8
+ description: {
9
9
  marginVertical: number;
10
10
  textAlign: "center";
11
+ width: string;
12
+ };
13
+ modal: {
14
+ padding: number;
15
+ };
16
+ title: {
17
+ width: string;
11
18
  };
12
19
  };
13
20
  export { style };
@@ -5,12 +5,19 @@ const style = StyleSheet.create({
5
5
  button: {
6
6
  flex: 0,
7
7
  },
8
- modal: {
9
- padding: spaceXL,
8
+ buttonText: {
9
+ width: "100%",
10
10
  },
11
- modalDescription: {
11
+ description: {
12
12
  marginVertical: spaceXL,
13
13
  textAlign: "center",
14
+ width: "100%",
15
+ },
16
+ modal: {
17
+ padding: spaceXL,
18
+ },
19
+ title: {
20
+ width: "100%",
14
21
  },
15
22
  });
16
23
  export { style };
@@ -0,0 +1,13 @@
1
+ import { TrackingPage } from "../../../infrastructure/tracking/tracking";
2
+ import { Country } from "../../../projection/shared/country";
3
+ interface UsePageViewFunctionArgs {
4
+ readonly page: TrackingPage;
5
+ readonly country: Country;
6
+ readonly checkoutId?: string;
7
+ readonly checkoutItemId?: string;
8
+ }
9
+ interface UsePageViewFunction {
10
+ (agrs: UsePageViewFunctionArgs): void;
11
+ }
12
+ declare const usePageView: UsePageViewFunction;
13
+ export { usePageView };
@@ -0,0 +1,27 @@
1
+ import { useLayoutEffect } from "react";
2
+ import { PROJECT } from "../../../infrastructure/tracking/tracking";
3
+ import { TrackingEvent, TrackingEventCategory } from "../tracking";
4
+ import { useEmitUserEvent } from "./useEmitUserEvent";
5
+ const usePageView = ({ page, country, checkoutId, checkoutItemId }) => {
6
+ const emitUserEvent = useEmitUserEvent();
7
+ useLayoutEffect(() => {
8
+ if (!checkoutId) {
9
+ return;
10
+ }
11
+ const baseTrackingEvent = {
12
+ event: TrackingEvent.PAGEVIEW,
13
+ eventCategory: TrackingEventCategory.NAVIGATION,
14
+ section: `${PROJECT}_${page}`,
15
+ store: country,
16
+ checkoutId,
17
+ };
18
+ const pageViewTrackingEvent = checkoutItemId
19
+ ? {
20
+ ...baseTrackingEvent,
21
+ checkoutItemId,
22
+ }
23
+ : baseTrackingEvent;
24
+ emitUserEvent(pageViewTrackingEvent);
25
+ }, [checkoutId, checkoutItemId, country, emitUserEvent, page]);
26
+ };
27
+ export { usePageView };
@@ -0,0 +1,6 @@
1
+ declare const style: {
2
+ error: {
3
+ color: string;
4
+ };
5
+ };
6
+ export { style };
@@ -0,0 +1,9 @@
1
+ import { StyleSheet } from "react-native";
2
+ import { theme } from "../../../../../infrastructure/ui/theme/theme";
3
+ const { colorPrimary } = theme();
4
+ const style = StyleSheet.create({
5
+ error: {
6
+ color: colorPrimary,
7
+ },
8
+ });
9
+ export { style };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "3.5.0",
3
+ "version": "3.6.0-beta.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [