@lookiero/checkout 2.2.2-beta.0 → 2.4.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 (122) hide show
  1. package/dist/domain/checkout/model/checkoutStarted.d.ts +3 -2
  2. package/dist/domain/checkout/model/checkoutStarted.js +2 -1
  3. package/dist/domain/checkout/model/checkoutSubmitted.d.ts +3 -2
  4. package/dist/domain/checkout/model/checkoutSubmitted.js +2 -1
  5. package/dist/domain/checkoutBooking/model/checkoutBookingBooked.d.ts +3 -2
  6. package/dist/domain/checkoutBooking/model/checkoutBookingBooked.js +2 -1
  7. package/dist/domain/checkoutBooking/model/checkoutBookingExpired.d.ts +3 -2
  8. package/dist/domain/checkoutBooking/model/checkoutBookingExpired.js +2 -1
  9. package/dist/domain/checkoutFeedback/model/checkoutFeedbackGiven.d.ts +3 -2
  10. package/dist/domain/checkoutFeedback/model/checkoutFeedbackGiven.js +2 -1
  11. package/dist/domain/checkoutItem/model/checkoutItemKept.d.ts +3 -2
  12. package/dist/domain/checkoutItem/model/checkoutItemKept.js +2 -1
  13. package/dist/domain/checkoutItem/model/checkoutItemReplaced.d.ts +3 -2
  14. package/dist/domain/checkoutItem/model/checkoutItemReplaced.js +2 -1
  15. package/dist/domain/checkoutItem/model/checkoutItemReset.d.ts +3 -2
  16. package/dist/domain/checkoutItem/model/checkoutItemReset.js +2 -1
  17. package/dist/domain/checkoutItem/model/checkoutItemReturned.d.ts +3 -2
  18. package/dist/domain/checkoutItem/model/checkoutItemReturned.js +2 -1
  19. package/dist/domain/uiSetting/model/uiSettingUpdated.d.ts +3 -2
  20. package/dist/domain/uiSetting/model/uiSettingUpdated.js +2 -1
  21. package/dist/infrastructure/projection/bookedProductsVariants/react/useViewBookedProductsVariantsForCheckoutItem.js +2 -4
  22. package/dist/infrastructure/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.js +9 -18
  23. package/dist/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +1 -2
  24. package/dist/infrastructure/projection/payment/react/useViewPaymentFlowPayloadByCheckoutId.js +4 -8
  25. package/dist/infrastructure/projection/pricing/pricing.d.ts +1 -0
  26. package/dist/infrastructure/projection/pricing/react/useViewPricingByCheckoutId.js +4 -8
  27. package/dist/infrastructure/projection/uiSetting/react/useViewUiSettingByKey.js +1 -2
  28. package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.js +2 -2
  29. package/dist/infrastructure/ui/views/summary/components/pricing/Pricing.js +1 -3
  30. package/dist/projection/pricing/pricing.d.ts +1 -0
  31. package/dist/shared/notifications/domain/notification/model/notificationCreated.d.ts +3 -2
  32. package/dist/shared/notifications/domain/notification/model/notificationCreated.js +2 -1
  33. package/dist/shared/notifications/domain/notification/model/notificationRemoved.d.ts +3 -2
  34. package/dist/shared/notifications/domain/notification/model/notificationRemoved.js +2 -1
  35. package/dist/shared/notifications/projection/notification/react/useListNotifications.js +2 -4
  36. package/package.json +1 -1
  37. package/dist/domain/checkout/command/markCheckoutAsPaid.d.ts +0 -13
  38. package/dist/domain/checkout/command/markCheckoutAsPaid.js +0 -4
  39. package/dist/domain/checkout/model/checkoutPaid.d.ts +0 -13
  40. package/dist/domain/checkout/model/checkoutPaid.js +0 -4
  41. package/dist/domain/checkoutBooking/event/createNotificationWhenCheckoutBookingExpired.d.ts +0 -6
  42. package/dist/domain/checkoutBooking/event/createNotificationWhenCheckoutBookingExpired.js +0 -13
  43. package/dist/infrastructure/domain/checkout/model/httpCheckoutsMarkAsPaid.d.ts +0 -5
  44. package/dist/infrastructure/domain/checkout/model/httpCheckoutsMarkAsPaid.js +0 -13
  45. package/dist/infrastructure/domain/checkout/react/useMarkCheckoutAsPaid.d.ts +0 -13
  46. package/dist/infrastructure/domain/checkout/react/useMarkCheckoutAsPaid.js +0 -16
  47. package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.d.ts +0 -13
  48. package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.js +0 -14
  49. package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +0 -10
  50. package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.js +0 -11
  51. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.d.ts +0 -12
  52. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.js +0 -9
  53. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.d.ts +0 -10
  54. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.js +0 -12
  55. package/dist/infrastructure/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.d.ts +0 -12
  56. package/dist/infrastructure/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.js +0 -9
  57. package/dist/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.d.ts +0 -6
  58. package/dist/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.js +0 -7
  59. package/dist/infrastructure/projection/uiSetting/react/useViewIntroShownCount.d.ts +0 -6
  60. package/dist/infrastructure/projection/uiSetting/react/useViewIntroShownCount.js +0 -9
  61. package/dist/infrastructure/ui/hooks/useToast.d.ts +0 -11
  62. package/dist/infrastructure/ui/hooks/useToast.js +0 -49
  63. package/dist/infrastructure/ui/views/App.style.d.ts +0 -4
  64. package/dist/infrastructure/ui/views/App.style.js +0 -16
  65. package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.d.ts +0 -7
  66. package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.js +0 -25
  67. package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.d.ts +0 -16
  68. package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.js +0 -19
  69. package/dist/infrastructure/ui/views/header/Header.d.ts +0 -15
  70. package/dist/infrastructure/ui/views/header/Header.js +0 -90
  71. package/dist/infrastructure/ui/views/header/Header.style.d.ts +0 -35
  72. package/dist/infrastructure/ui/views/header/Header.style.js +0 -38
  73. package/dist/infrastructure/ui/views/header/components/Logo.d.ts +0 -7
  74. package/dist/infrastructure/ui/views/header/components/Logo.js +0 -11
  75. package/dist/infrastructure/ui/views/header/components/Logo.style.d.ts +0 -7
  76. package/dist/infrastructure/ui/views/header/components/Logo.style.js +0 -8
  77. package/dist/infrastructure/ui/views/intro/Intro.d.ts +0 -6
  78. package/dist/infrastructure/ui/views/intro/Intro.js +0 -52
  79. package/dist/infrastructure/ui/views/intro/Intro.style.d.ts +0 -55
  80. package/dist/infrastructure/ui/views/intro/Intro.style.js +0 -58
  81. package/dist/infrastructure/ui/views/item/Item.style.d.ts +0 -15
  82. package/dist/infrastructure/ui/views/item/Item.style.js +0 -18
  83. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.d.ts +0 -26
  84. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.js +0 -44
  85. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.d.ts +0 -45
  86. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.js +0 -53
  87. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.d.ts +0 -7
  88. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +0 -25
  89. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +0 -16
  90. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +0 -19
  91. package/dist/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.d.ts +0 -10
  92. package/dist/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.js +0 -1
  93. package/dist/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.d.ts +0 -25
  94. package/dist/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.js +0 -8
  95. package/dist/projection/checkoutFeedback/viewCheckoutFeedbackByCheckoutId.d.ts +0 -25
  96. package/dist/projection/checkoutFeedback/viewCheckoutFeedbackByCheckoutId.js +0 -8
  97. package/dist/shared/logging/location.d.ts +0 -3
  98. package/dist/shared/logging/location.js +0 -5
  99. package/dist/shared/logging/matchRoutes.d.ts +0 -3
  100. package/dist/shared/logging/matchRoutes.js +0 -7
  101. package/dist/shared/logging/reactRouterV6Instrumentation/reactRouterV6Instrumentation.native.d.ts +0 -29
  102. package/dist/shared/logging/reactRouterV6Instrumentation/reactRouterV6Instrumentation.native.js +0 -134
  103. package/dist/shared/logging/reactRouterV6Instrumentation/transactionContext.d.ts +0 -22
  104. package/dist/shared/logging/reactRouterV6Instrumentation/transactionContext.js +0 -15
  105. package/dist/shared/logging/reactRouterV6Instrumentation.native.d.ts +0 -27
  106. package/dist/shared/logging/reactRouterV6Instrumentation.native.js +0 -115
  107. package/dist/shared/notifications/domain/notification/command/createNotification.d.ts +0 -17
  108. package/dist/shared/notifications/domain/notification/command/createNotification.js +0 -7
  109. package/dist/shared/notifications/domain/notification/command/removeNotification.tes.d.ts +0 -1
  110. package/dist/shared/notifications/domain/notification/command/removeNotification.tes.js +0 -9
  111. package/dist/shared/notifications/infrastructure/domain/notification/react/useCreateNotification.d.ts +0 -21
  112. package/dist/shared/notifications/infrastructure/domain/notification/react/useCreateNotification.js +0 -22
  113. package/dist/shared/notifications/infrastructure/ui/components/NotificationItem.d.ts +0 -12
  114. package/dist/shared/notifications/infrastructure/ui/components/NotificationItem.js +0 -24
  115. package/dist/shared/notifications/infrastructure/ui/components/Notifications.d.ts +0 -9
  116. package/dist/shared/notifications/infrastructure/ui/components/Notifications.js +0 -20
  117. package/dist/shared/notifications/infrastructure/ui/components/Notifications.style.d.ts +0 -36
  118. package/dist/shared/notifications/infrastructure/ui/components/Notifications.style.js +0 -31
  119. package/dist/shared/tracking/infrastructure/usePageView.d.ts +0 -13
  120. package/dist/shared/tracking/infrastructure/usePageView.js +0 -27
  121. package/dist/shared/ui/components/atoms/error/Error.style.d.ts +0 -6
  122. package/dist/shared/ui/components/atoms/error/Error.style.js +0 -9
@@ -1,52 +0,0 @@
1
- import { Button } from "@lookiero/aurora-next/build/components/atoms/Button/Button";
2
- import { Icon } from "@lookiero/aurora-next/build/components/primitives/Icon/Icon";
3
- import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
4
- import { useI18nMessage } from "@lookiero/i18n-react";
5
- import { CommandStatus, QueryStatus } from "@lookiero/messaging-react";
6
- import React from "react";
7
- import { Platform, View } from "react-native";
8
- import { Spinner } from "../../../../shared/ui/components/atoms/spinner/Spinner";
9
- import { useIncrementIntroShownCount } from "../../../domain/uiSetting/react/useIncrementIntroShownCount";
10
- import { useViewFiveItemsDiscountByCustomerId } from "../../../projection/checkout/react/useViewFiveItemsDiscountByCustomerId";
11
- import { Body } from "../../components/layouts/body/Body";
12
- import { SafeAreaScrollView } from "../../components/templates/SafeAreaScrollView";
13
- import { I18nMessages } from "../../i18n/i18n";
14
- import { HEADER_HEIGHT } from "../navigation/components/header/Header.style";
15
- import { style } from "./Intro.style";
16
- const Bullet = ({ text }) => (React.createElement(View, { style: style.bullet },
17
- React.createElement(Icon, { name: "rounded-tick", style: style.tickIcon }),
18
- React.createElement(Text, { level: 2, detail: true }, text)));
19
- const Intro = ({ customerId }) => {
20
- const titleText = useI18nMessage({ id: I18nMessages.INTRO_TITLE });
21
- const subTitleText = useI18nMessage({ id: I18nMessages.INTRO_SUBTITLE });
22
- const discountText = useI18nMessage({ id: I18nMessages.INTRO_DISCOUNT });
23
- const bulletOneText = useI18nMessage({ id: I18nMessages.INTRO_BULLET_ONE });
24
- const bulletTwoText = useI18nMessage({ id: I18nMessages.INTRO_BULLET_TWO });
25
- const bulletThreeText = useI18nMessage({ id: I18nMessages.INTRO_BULLET_THREE });
26
- const buttonText = useI18nMessage({ id: I18nMessages.INTRO_BUTTON });
27
- const [fiveItemsDiscount, fiveItemsDiscountStatus] = useViewFiveItemsDiscountByCustomerId({
28
- customerId,
29
- });
30
- const [incrementIntroShownCount, incrementIntroShownCountStatus] = useIncrementIntroShownCount();
31
- if (fiveItemsDiscountStatus === QueryStatus.LOADING)
32
- return React.createElement(Spinner, null);
33
- return (React.createElement(SafeAreaScrollView, { scrollerPaddingTop: Platform.OS === "web" || Platform.OS === "android" ? HEADER_HEIGHT : 0, style: { safeAreaView: style.container } },
34
- React.createElement(Body, { style: { column: style.bodyColumn } },
35
- React.createElement(View, { style: style.intro },
36
- React.createElement(View, { style: style.content },
37
- React.createElement(Text, { level: 3, style: style.title, heading: true }, titleText),
38
- React.createElement(Text, { level: 3, style: style.subtitle, body: true }, subTitleText),
39
- fiveItemsDiscount !== 0 && (React.createElement(View, { style: style.discountContainer },
40
- React.createElement(View, { style: style.discount },
41
- React.createElement(Text, { level: 2, heading: true },
42
- "- ",
43
- fiveItemsDiscount),
44
- React.createElement(Text, { level: 3, style: style.percentage, heading: true }, "%")),
45
- React.createElement(Text, { level: 3, body: true }, discountText))),
46
- React.createElement(View, { style: style.description },
47
- React.createElement(Bullet, { text: bulletOneText }),
48
- React.createElement(Bullet, { text: bulletTwoText }),
49
- React.createElement(Bullet, { text: bulletThreeText }))),
50
- React.createElement(Button, { disabled: incrementIntroShownCountStatus === CommandStatus.LOADING, onPress: incrementIntroShownCount }, buttonText)))));
51
- };
52
- export { Intro };
@@ -1,55 +0,0 @@
1
- declare const style: {
2
- bodyColumn: {
3
- paddingHorizontal: number;
4
- };
5
- bullet: {
6
- alignItems: "center";
7
- flexDirection: "row";
8
- marginVertical: number;
9
- };
10
- container: {
11
- flex: number;
12
- };
13
- content: {
14
- alignItems: "center";
15
- };
16
- description: {
17
- borderWidth: number;
18
- marginBottom: number;
19
- padding: number;
20
- width: string;
21
- };
22
- discount: {
23
- alignItems: "flex-end";
24
- flexDirection: "row";
25
- justifyContent: "center";
26
- marginBottom: number;
27
- };
28
- discountContainer: {
29
- alignItems: "center";
30
- backgroundColor: string;
31
- marginBottom: number;
32
- padding: number;
33
- textAlign: "center";
34
- width: string;
35
- };
36
- intro: {
37
- flex: number;
38
- justifyContent: "space-between";
39
- };
40
- percentage: {
41
- marginLeft: number;
42
- };
43
- subtitle: {
44
- marginBottom: number;
45
- textAlign: "center";
46
- };
47
- tickIcon: {
48
- marginRight: number;
49
- };
50
- title: {
51
- marginBottom: number;
52
- textAlign: "center";
53
- };
54
- };
55
- export { style };
@@ -1,58 +0,0 @@
1
- import { StyleSheet } from "react-native";
2
- import { theme } from "../../theme/theme";
3
- const { borderSize, colorAccent, spaceXS, spaceS, spaceM, spaceL, spaceXL } = theme();
4
- const style = StyleSheet.create({
5
- bodyColumn: {
6
- paddingHorizontal: spaceXL,
7
- },
8
- bullet: {
9
- alignItems: "center",
10
- flexDirection: "row",
11
- marginVertical: spaceS,
12
- },
13
- container: {
14
- flex: 1,
15
- },
16
- content: {
17
- alignItems: "center",
18
- },
19
- description: {
20
- borderWidth: borderSize,
21
- marginBottom: spaceXL,
22
- padding: spaceM,
23
- width: "100%",
24
- },
25
- discount: {
26
- alignItems: "flex-end",
27
- flexDirection: "row",
28
- justifyContent: "center",
29
- marginBottom: spaceS,
30
- },
31
- discountContainer: {
32
- alignItems: "center",
33
- backgroundColor: colorAccent,
34
- marginBottom: spaceL,
35
- padding: spaceM,
36
- textAlign: "center",
37
- width: "100%",
38
- },
39
- intro: {
40
- flex: 1,
41
- justifyContent: "space-between",
42
- },
43
- percentage: {
44
- marginLeft: spaceXS,
45
- },
46
- subtitle: {
47
- marginBottom: spaceXL,
48
- textAlign: "center",
49
- },
50
- tickIcon: {
51
- marginRight: spaceS,
52
- },
53
- title: {
54
- marginBottom: spaceM,
55
- textAlign: "center",
56
- },
57
- });
58
- export { style };
@@ -1,15 +0,0 @@
1
- declare const style: {
2
- content: {
3
- paddingHorizontal: number;
4
- };
5
- feedbackContainer: {
6
- borderTopColor: string;
7
- borderTopWidth: number;
8
- marginVertical: number;
9
- };
10
- sliderContainer: {
11
- marginBottom: number;
12
- minHeight: number;
13
- };
14
- };
15
- export { style };
@@ -1,18 +0,0 @@
1
- import { StyleSheet } from "react-native";
2
- import { theme } from "../../theme/theme";
3
- const { borderSize, colorGrayscaleM, spaceXL } = theme();
4
- const style = StyleSheet.create({
5
- content: {
6
- paddingHorizontal: spaceXL,
7
- },
8
- feedbackContainer: {
9
- borderTopColor: colorGrayscaleM,
10
- borderTopWidth: borderSize,
11
- marginVertical: spaceXL,
12
- },
13
- sliderContainer: {
14
- marginBottom: spaceXL,
15
- minHeight: 500,
16
- },
17
- });
18
- export { style };
@@ -1,26 +0,0 @@
1
- import { FC } from "react";
2
- import { ImageStyle, StyleProp } from "react-native";
3
- import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
4
- import { ColorProjection, MediaProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
5
- import { Country } from "../../../../../../projection/shared/country";
6
- import { PriceProjection } from "../../../../../../projection/shared/price";
7
- import { SizeProjection } from "../../../../../../projection/shared/size";
8
- interface ProductVariantStyle {
9
- readonly image: StyleProp<ImageStyle>;
10
- }
11
- interface ProductVariantProps {
12
- readonly media: MediaProjection[];
13
- readonly brand: string;
14
- readonly name: string;
15
- readonly price: PriceProjection;
16
- readonly size: SizeProjection;
17
- readonly color: ColorProjection;
18
- readonly status?: CheckoutItemStatus;
19
- readonly discarded?: boolean;
20
- readonly country: Country;
21
- readonly style?: Partial<ProductVariantStyle>;
22
- readonly onPress?: () => void;
23
- }
24
- declare const ProductVariant: FC<ProductVariantProps>;
25
- export type { ProductVariantStyle };
26
- export { ProductVariant };
@@ -1,44 +0,0 @@
1
- import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
2
- import { useI18nMessage } from "@lookiero/i18n-react";
3
- import React from "react";
4
- import { Image, Pressable, View } from "react-native";
5
- import Svg, { Line } from "react-native-svg";
6
- import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
7
- import { size } from "../../../../../../projection/shared/size";
8
- import { Icon } from "../../../../../../shared/ui/components/atoms/icon/Icon";
9
- import { Price } from "../../../../components/atoms/price/Price";
10
- import { useMediaImage } from "../../../../hooks/useMediaImage";
11
- import { COLOR_I18N_PREFIX, I18nMessages } from "../../../../i18n/i18n";
12
- import { theme } from "../../../../theme/theme";
13
- import { IMAGE_WIDTH, style } from "./ProductVariant.style";
14
- const { colorContent } = theme();
15
- const ProductVariant = ({ media, brand, name, price, size: sizeProjection, color, status, discarded, country, style: customStyle, onPress, }) => {
16
- const uniqueText = useI18nMessage({ id: I18nMessages.ITEM_UNIQUE });
17
- const colorLabel = useI18nMessage({ id: color.name, prefix: COLOR_I18N_PREFIX });
18
- const sizeChangeText = useI18nMessage({ id: I18nMessages.PRODUCT_VARIANT_SIZE_CHANGE });
19
- const cdnImageUrl = useMediaImage();
20
- return (React.createElement(Pressable, { pointerEvents: onPress ? "auto" : "none", style: style.container, testID: "product-variant", onPress: onPress },
21
- React.createElement(View, { style: style.row },
22
- React.createElement(View, null,
23
- React.createElement(Image, { resizeMode: "contain", style: [style.media, customStyle?.image], testID: "product-variant-media", source: {
24
- uri: cdnImageUrl({
25
- url: media[0]?.url,
26
- width: IMAGE_WIDTH,
27
- }),
28
- } }),
29
- discarded && (React.createElement(Svg, { preserveAspectRatio: "none", stroke: colorContent, style: style.discarded, testID: "discarded", viewBox: "0 0 100 100" },
30
- React.createElement(Line, { vectorEffect: "non-scaling-stroke", x1: "100", x2: "0", y1: "0", y2: "100" })))),
31
- React.createElement(View, { style: style.descriptionContainer },
32
- React.createElement(View, null,
33
- React.createElement(Text, { level: 2, style: style.brand, detail: true }, brand),
34
- React.createElement(Text, { level: 2, detail: true }, name),
35
- React.createElement(Text, { level: 2, style: style.priceAndColor, detail: true },
36
- sizeProjection.unique ? uniqueText : size({ size: sizeProjection, country }),
37
- " / ",
38
- colorLabel),
39
- status === CheckoutItemStatus.REPLACED && (React.createElement(View, { style: style.sizeChange },
40
- React.createElement(Text, { level: 3, style: style.sizeChangeText, detail: true }, sizeChangeText)))),
41
- React.createElement(Price, { price: price, variant: "detail" }))),
42
- onPress && React.createElement(Icon, { name: "arrow-right" })));
43
- };
44
- export { ProductVariant };
@@ -1,45 +0,0 @@
1
- declare const IMAGE_WIDTH = 96;
2
- declare const style: {
3
- brand: {
4
- color: string;
5
- };
6
- container: {
7
- flexDirection: "row";
8
- justifyContent: "space-between";
9
- };
10
- descriptionContainer: {
11
- justifyContent: "space-between";
12
- marginLeft: number;
13
- };
14
- discarded: {
15
- height: string;
16
- left: number;
17
- position: "absolute";
18
- top: number;
19
- width: string;
20
- zIndex: number;
21
- };
22
- media: {
23
- borderColor: string;
24
- borderWidth: number;
25
- height: number;
26
- width: number;
27
- };
28
- priceAndColor: {
29
- color: string;
30
- };
31
- row: {
32
- flexDirection: "row";
33
- };
34
- sizeChange: {
35
- width?: string | undefined;
36
- backgroundColor: string;
37
- marginTop: number;
38
- paddingHorizontal: number;
39
- paddingVertical: number;
40
- };
41
- sizeChangeText: {
42
- textTransform: "uppercase";
43
- };
44
- };
45
- export { style, IMAGE_WIDTH };
@@ -1,53 +0,0 @@
1
- import { Platform, StyleSheet } from "react-native";
2
- import { theme } from "../../../../theme/theme";
3
- const { borderSize, colorGrayscaleL, colorInfo, spaceXS, spaceS, spaceM } = theme();
4
- const IMAGE_WIDTH = 96;
5
- const IMAGE_HEIGHT = 120;
6
- const style = StyleSheet.create({
7
- brand: {
8
- color: colorGrayscaleL,
9
- },
10
- container: {
11
- flexDirection: "row",
12
- justifyContent: "space-between",
13
- },
14
- descriptionContainer: {
15
- justifyContent: "space-between",
16
- marginLeft: spaceS,
17
- },
18
- discarded: {
19
- height: "100%",
20
- left: 0,
21
- position: "absolute",
22
- top: 0,
23
- width: "100%",
24
- zIndex: 10,
25
- },
26
- media: {
27
- borderColor: colorGrayscaleL,
28
- borderWidth: borderSize,
29
- height: IMAGE_HEIGHT,
30
- width: IMAGE_WIDTH,
31
- },
32
- priceAndColor: {
33
- color: colorGrayscaleL,
34
- },
35
- row: {
36
- flexDirection: "row",
37
- },
38
- sizeChange: {
39
- backgroundColor: colorInfo,
40
- marginTop: spaceM,
41
- paddingHorizontal: spaceS,
42
- paddingVertical: spaceXS,
43
- ...Platform.select({
44
- web: {
45
- width: "fit-content",
46
- },
47
- }),
48
- },
49
- sizeChangeText: {
50
- textTransform: "uppercase",
51
- },
52
- });
53
- export { style, IMAGE_WIDTH };
@@ -1,7 +0,0 @@
1
- import { FC } from "react";
2
- interface SizeChangeModalProps {
3
- readonly visible: boolean;
4
- readonly onDismiss: () => void;
5
- }
6
- declare const SizeChangeModal: FC<SizeChangeModalProps>;
7
- export { SizeChangeModal };
@@ -1,25 +0,0 @@
1
- import { Button } from "@lookiero/aurora-next/build/components/atoms/Button/Button";
2
- import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
3
- import { useI18nMessage } from "@lookiero/i18n-react";
4
- import React from "react";
5
- import { View } from "react-native";
6
- import { Modal } from "../../../../../../shared/ui/components/layouts/modal/Modal";
7
- import { I18nMessages } from "../../../../i18n/i18n";
8
- import { style } from "./SizeChangeModal.style";
9
- const SizeChangeModal = ({ visible, onDismiss }) => {
10
- const titleText = useI18nMessage({ id: I18nMessages.SIZE_CHANGE_MODAL_TITLE });
11
- const descriptionText = useI18nMessage({ id: I18nMessages.SIZE_CHANGE_MODAL_DESCRIPTION });
12
- const buttonText = useI18nMessage({ id: I18nMessages.SIZE_CHANGE_MODAL_BUTTON });
13
- return (React.createElement(Modal, { visible: visible, onClose: onDismiss },
14
- React.createElement(View, { style: style.modal },
15
- React.createElement(Text, { level: 1, style: style.modalTitle, body: true }, titleText),
16
- React.createElement(Text, { level: 3, style: style.modalDescription, body: true }, descriptionText),
17
- React.createElement(Button
18
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
19
- // @ts-ignore
20
- , {
21
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
22
- // @ts-ignore
23
- style: style.button, onPress: onDismiss }, buttonText))));
24
- };
25
- export { SizeChangeModal };
@@ -1,16 +0,0 @@
1
- declare const style: {
2
- button: {
3
- flex: number;
4
- };
5
- modal: {
6
- padding: number;
7
- };
8
- modalDescription: {
9
- marginVertical: number;
10
- textAlign: "center";
11
- };
12
- modalTitle: {
13
- textAlign: "center";
14
- };
15
- };
16
- export { style };
@@ -1,19 +0,0 @@
1
- import { StyleSheet } from "react-native";
2
- import { theme } from "../../../../theme/theme";
3
- const { spaceXL } = theme();
4
- const style = StyleSheet.create({
5
- button: {
6
- flex: 0,
7
- },
8
- modal: {
9
- padding: spaceXL,
10
- },
11
- modalDescription: {
12
- marginVertical: spaceXL,
13
- textAlign: "center",
14
- },
15
- modalTitle: {
16
- textAlign: "center",
17
- },
18
- });
19
- export { style };
@@ -1,10 +0,0 @@
1
- import { SizeProjection } from "../shared/size";
2
- interface ProductVariantProjection {
3
- readonly id: string;
4
- readonly size: SizeProjection;
5
- }
6
- interface BookedSizeChangeProductsVariantsProjection {
7
- readonly bookingId: string;
8
- readonly productVariants: ProductVariantProjection[];
9
- }
10
- export type { BookedSizeChangeProductsVariantsProjection, ProductVariantProjection };
@@ -1,25 +0,0 @@
1
- import { CancelableQueryViewArgs, Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
2
- import { BookedSizeChangeProductsVariantsProjection } from "./bookedSizeChangeProductsVariants";
3
- declare const VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM = "view_booked_size_change_product_variants_for_checkout_item";
4
- interface ViewBookedSizeChangeProductsVariantsForCheckoutItemPayload {
5
- readonly checkoutItemId: string;
6
- }
7
- interface ViewBookedSizeChangeProductsVariantsForCheckoutItem extends Query<typeof VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM>, ViewBookedSizeChangeProductsVariantsForCheckoutItemPayload {
8
- }
9
- interface ViewBookedSizeChangeProductsVariantsForCheckoutItemFunction {
10
- (payload: ViewBookedSizeChangeProductsVariantsForCheckoutItemPayload): ViewBookedSizeChangeProductsVariantsForCheckoutItem;
11
- }
12
- declare const viewBookedSizeChangeProductsVariantsForCheckoutItem: ViewBookedSizeChangeProductsVariantsForCheckoutItemFunction;
13
- type ViewBookedSizeChangeProductsVariantsForCheckoutItemResult = BookedSizeChangeProductsVariantsProjection | null;
14
- interface BookedSizeChangeProductsVariantsForCheckoutItemViewArgs extends CancelableQueryViewArgs {
15
- readonly checkoutItemId: string;
16
- }
17
- interface BookedSizeChangeProductsVariantsForCheckoutItemView {
18
- (args: BookedSizeChangeProductsVariantsForCheckoutItemViewArgs): Promise<ViewBookedSizeChangeProductsVariantsForCheckoutItemResult>;
19
- }
20
- interface ViewBookedSizeChangeProductsVariantsForCheckoutItemHandlerFunctionArgs extends QueryHandlerFunctionArgs {
21
- readonly view: BookedSizeChangeProductsVariantsForCheckoutItemView;
22
- }
23
- declare const viewBookedSizeChangeProductsVariantsForCheckoutItemHandler: QueryHandlerFunction<ViewBookedSizeChangeProductsVariantsForCheckoutItem, ViewBookedSizeChangeProductsVariantsForCheckoutItemResult, ViewBookedSizeChangeProductsVariantsForCheckoutItemHandlerFunctionArgs>;
24
- export type { ViewBookedSizeChangeProductsVariantsForCheckoutItem, BookedSizeChangeProductsVariantsForCheckoutItemView, ViewBookedSizeChangeProductsVariantsForCheckoutItemResult, };
25
- export { VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, viewBookedSizeChangeProductsVariantsForCheckoutItem, viewBookedSizeChangeProductsVariantsForCheckoutItemHandler, };
@@ -1,8 +0,0 @@
1
- import { query, } from "@lookiero/messaging";
2
- const VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM = "view_booked_size_change_product_variants_for_checkout_item";
3
- const viewBookedSizeChangeProductsVariantsForCheckoutItem = (payload) => ({
4
- ...query({ name: VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM }),
5
- ...payload,
6
- });
7
- const viewBookedSizeChangeProductsVariantsForCheckoutItemHandler = ({ view, signal }) => async ({ checkoutItemId }) => view({ checkoutItemId, signal });
8
- export { VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, viewBookedSizeChangeProductsVariantsForCheckoutItem, viewBookedSizeChangeProductsVariantsForCheckoutItemHandler, };
@@ -1,25 +0,0 @@
1
- import { CancelableQueryViewArgs, Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
2
- import { CheckoutFeedbackProjection } from "./checkoutFeedback";
3
- declare const VIEW_CHECKOUT_FEEDBACK_BY_CHECKOUT_ID = "view_checkout_feedback_by_checkout_id";
4
- interface ViewCheckoutFeedbackByCheckoutIdPayload {
5
- readonly checkoutId: string;
6
- }
7
- interface ViewCheckoutFeedbackByCheckoutId extends Query<typeof VIEW_CHECKOUT_FEEDBACK_BY_CHECKOUT_ID>, ViewCheckoutFeedbackByCheckoutIdPayload {
8
- }
9
- interface ViewCheckoutFeedbackByCheckoutIdFunction {
10
- (payload: ViewCheckoutFeedbackByCheckoutIdPayload): ViewCheckoutFeedbackByCheckoutId;
11
- }
12
- declare const viewCheckoutFeedbackByCheckoutId: ViewCheckoutFeedbackByCheckoutIdFunction;
13
- type ViewCheckoutFeedbackByCheckoutIdResult = CheckoutFeedbackProjection | null;
14
- interface CheckoutFeedbackByCheckoutIdViewArgs extends CancelableQueryViewArgs {
15
- readonly checkoutId: string;
16
- }
17
- interface CheckoutFeedbackByCheckoutIdView {
18
- (args: CheckoutFeedbackByCheckoutIdViewArgs): Promise<ViewCheckoutFeedbackByCheckoutIdResult>;
19
- }
20
- interface ViewCheckoutFeedbackByCheckoutIdHandlerFunctionArgs extends QueryHandlerFunctionArgs {
21
- readonly view: CheckoutFeedbackByCheckoutIdView;
22
- }
23
- declare const viewCheckoutFeedbackByCheckoutIdHandler: QueryHandlerFunction<ViewCheckoutFeedbackByCheckoutId, ViewCheckoutFeedbackByCheckoutIdResult, ViewCheckoutFeedbackByCheckoutIdHandlerFunctionArgs>;
24
- export type { ViewCheckoutFeedbackByCheckoutId, CheckoutFeedbackByCheckoutIdView, ViewCheckoutFeedbackByCheckoutIdResult, };
25
- export { VIEW_CHECKOUT_FEEDBACK_BY_CHECKOUT_ID, viewCheckoutFeedbackByCheckoutId, viewCheckoutFeedbackByCheckoutIdHandler, };
@@ -1,8 +0,0 @@
1
- import { query, } from "@lookiero/messaging";
2
- const VIEW_CHECKOUT_FEEDBACK_BY_CHECKOUT_ID = "view_checkout_feedback_by_checkout_id";
3
- const viewCheckoutFeedbackByCheckoutId = (payload) => ({
4
- ...query({ name: VIEW_CHECKOUT_FEEDBACK_BY_CHECKOUT_ID }),
5
- ...payload,
6
- });
7
- const viewCheckoutFeedbackByCheckoutIdHandler = ({ view, signal }) => async ({ checkoutId }) => view({ checkoutId, signal });
8
- export { VIEW_CHECKOUT_FEEDBACK_BY_CHECKOUT_ID, viewCheckoutFeedbackByCheckoutId, viewCheckoutFeedbackByCheckoutIdHandler, };
@@ -1,3 +0,0 @@
1
- import { Location } from "./types";
2
- declare const stripFirstSlugFromLocation: (locationArg: string | Location) => Location;
3
- export { stripFirstSlugFromLocation };
@@ -1,5 +0,0 @@
1
- // Remove the location's first path ("/checkout"). Otherwise it won't match the proper route.
2
- const stripFirstSlugFromLocation = (locationArg) => ({
3
- pathname: (typeof locationArg === "string" ? locationArg : locationArg?.pathname || "").replace(/^\/\w+/, ""),
4
- });
5
- export { stripFirstSlugFromLocation };
@@ -1,3 +0,0 @@
1
- import { matchRoutes as reactRouterMatchRoutes } from "@remix-run/router";
2
- declare const matchRoutes: typeof reactRouterMatchRoutes;
3
- export { matchRoutes };
@@ -1,7 +0,0 @@
1
- import { matchRoutes as reactRouterMatchRoutes } from "@remix-run/router";
2
- const matchRoutes = (routes, locationArg) => {
3
- // Remove the location's first path ("/checkout"). Otherwise it won't match the proper route.
4
- const location = (typeof locationArg === "string" ? locationArg : locationArg?.pathname || "").replace(/^\/\w+/, "");
5
- return reactRouterMatchRoutes(routes, location);
6
- };
7
- export { matchRoutes };
@@ -1,29 +0,0 @@
1
- import { RoutingInstrumentation } from "@sentry/react-native";
2
- import { OnConfirmRoute, TransactionCreator } from "@sentry/react-native/dist/js/tracing/routingInstrumentation";
3
- import { BeforeNavigate } from "@sentry/react-native/dist/js/tracing/types";
4
- import { MatchRoutes, UseEffect, UseLocation, WrapUseRoutes } from "../types";
5
- /**
6
- * This instrumentation has been built taking as an example the actual
7
- * ReactNavigationV4Instrumentation implementation as suggested in the documentation.
8
- *
9
- * (https://docs.sentry.io/platforms/react-native/performance/instrumentation/automatic-instrumentation/#custom-instrumentation)
10
- * (https://github.com/getsentry/sentry-react-native/blob/211ec081b6bf8d7d29541afe9d800040f61e3c4e/src/js/tracing/reactnavigationv4.ts)
11
- */
12
- declare class ReactRouterV6Instrumentation extends RoutingInstrumentation {
13
- static instrumentationName: string;
14
- private useEffect;
15
- private useLocation;
16
- private matchRoutes;
17
- private prevRoute?;
18
- private recentRouteKeys;
19
- private latestTransaction?;
20
- private readonly maxRecentRouteLen;
21
- constructor(useEffect: UseEffect, useLocation: UseLocation, matchRoutes: MatchRoutes);
22
- registerRoutingInstrumentation(listener: TransactionCreator, beforeNavigate: BeforeNavigate, onConfirmRoute: OnConfirmRoute): void;
23
- private onRouteChange;
24
- private currentRouteFromLocation;
25
- private pushRecentRouteKey;
26
- private onBeforeNavigateNotSampled;
27
- wrapUseRoutes: WrapUseRoutes;
28
- }
29
- export { ReactRouterV6Instrumentation };