@lookiero/checkout 0.8.14-patch.1.beta.0 → 0.8.15
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.
- package/dist/index.d.ts +3 -3
- package/dist/infrastructure/delivery/bootstrap.d.ts +1 -1
- package/dist/infrastructure/delivery/http/fetchHttpClient.d.ts +1 -1
- package/dist/infrastructure/delivery/http/fetchHttpClient.js +2 -2
- package/dist/infrastructure/ui/Root.d.ts +2 -2
- package/dist/infrastructure/ui/i18n/i18n.d.ts +1 -1
- package/dist/infrastructure/ui/i18n/i18n.js +1 -1
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.js +1 -1
- package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +1 -1
- package/dist/projection/checkoutItem/checkoutItem.d.ts +1 -0
- package/dist/shared/logging/SentryLogger.d.ts +2 -5
- package/dist/shared/logging/SentryLogger.js +2 -3
- package/package.json +1 -1
- package/dist/domain/checkout/command/markCheckoutAsPaid.d.ts +0 -13
- package/dist/domain/checkout/command/markCheckoutAsPaid.js +0 -4
- package/dist/domain/checkout/event/createModalNotificationWhenCheckoutSubmitted.d.ts +0 -7
- package/dist/domain/checkout/event/createModalNotificationWhenCheckoutSubmitted.js +0 -12
- package/dist/domain/checkout/model/checkoutPaid.d.ts +0 -13
- package/dist/domain/checkout/model/checkoutPaid.js +0 -4
- package/dist/domain/checkoutBooking/event/createToastNotificationWhenCheckoutBookingExpired.d.ts +0 -7
- package/dist/domain/checkoutBooking/event/createToastNotificationWhenCheckoutBookingExpired.js +0 -13
- package/dist/domain/checkoutItem/event/createModalNotificationWhenCheckoutItemReplaced.d.ts +0 -7
- package/dist/domain/checkoutItem/event/createModalNotificationWhenCheckoutItemReplaced.js +0 -12
- package/dist/infrastructure/domain/checkout/model/httpCheckoutsMarkAsPaid.d.ts +0 -5
- package/dist/infrastructure/domain/checkout/model/httpCheckoutsMarkAsPaid.js +0 -13
- package/dist/infrastructure/domain/checkout/react/useMarkCheckoutAsPaid.d.ts +0 -13
- package/dist/infrastructure/domain/checkout/react/useMarkCheckoutAsPaid.js +0 -16
- package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.d.ts +0 -13
- package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.js +0 -14
- package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +0 -10
- package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.js +0 -11
- package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.d.ts +0 -12
- package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.js +0 -9
- package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.d.ts +0 -10
- package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.js +0 -12
- package/dist/infrastructure/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.d.ts +0 -12
- package/dist/infrastructure/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.js +0 -9
- package/dist/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.d.ts +0 -6
- package/dist/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.js +0 -7
- package/dist/infrastructure/projection/uiSetting/react/useViewIntroShownCount.d.ts +0 -6
- package/dist/infrastructure/projection/uiSetting/react/useViewIntroShownCount.js +0 -9
- package/dist/infrastructure/ui/views/App.style.d.ts +0 -4
- package/dist/infrastructure/ui/views/App.style.js +0 -16
- package/dist/infrastructure/ui/views/header/Header.d.ts +0 -15
- package/dist/infrastructure/ui/views/header/Header.js +0 -90
- package/dist/infrastructure/ui/views/header/Header.style.d.ts +0 -35
- package/dist/infrastructure/ui/views/header/Header.style.js +0 -38
- package/dist/infrastructure/ui/views/header/components/Logo.d.ts +0 -7
- package/dist/infrastructure/ui/views/header/components/Logo.js +0 -11
- package/dist/infrastructure/ui/views/header/components/Logo.style.d.ts +0 -7
- package/dist/infrastructure/ui/views/header/components/Logo.style.js +0 -8
- package/dist/infrastructure/ui/views/intro/Intro.d.ts +0 -6
- package/dist/infrastructure/ui/views/intro/Intro.js +0 -52
- package/dist/infrastructure/ui/views/intro/Intro.style.d.ts +0 -55
- package/dist/infrastructure/ui/views/intro/Intro.style.js +0 -58
- package/dist/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.d.ts +0 -10
- package/dist/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.js +0 -1
- package/dist/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.d.ts +0 -25
- package/dist/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.js +0 -8
- package/dist/projection/checkoutFeedback/viewCheckoutFeedbackByCheckoutId.d.ts +0 -25
- package/dist/projection/checkoutFeedback/viewCheckoutFeedbackByCheckoutId.js +0 -8
- package/dist/projection/shared/locale.d.ts +0 -11
- package/dist/projection/shared/locale.js +0 -12
- package/dist/shared/logging/location.d.ts +0 -3
- package/dist/shared/logging/location.js +0 -5
- package/dist/shared/logging/matchRoutes.d.ts +0 -3
- package/dist/shared/logging/matchRoutes.js +0 -7
- package/dist/shared/logging/reactRouterV6Instrumentation/reactRouterV6Instrumentation.native.d.ts +0 -29
- package/dist/shared/logging/reactRouterV6Instrumentation/reactRouterV6Instrumentation.native.js +0 -134
- package/dist/shared/logging/reactRouterV6Instrumentation/transactionContext.d.ts +0 -22
- package/dist/shared/logging/reactRouterV6Instrumentation/transactionContext.js +0 -15
- package/dist/shared/logging/reactRouterV6Instrumentation.native.d.ts +0 -27
- package/dist/shared/logging/reactRouterV6Instrumentation.native.js +0 -115
- package/dist/shared/notifications/domain/notification/command/createModalNotification.d.ts +0 -18
- package/dist/shared/notifications/domain/notification/command/createModalNotification.js +0 -9
- package/dist/shared/notifications/domain/notification/command/createToastNotification.d.ts +0 -18
- package/dist/shared/notifications/domain/notification/command/createToastNotification.js +0 -9
- package/dist/shared/notifications/domain/notification/command/removeNotification.tes.d.ts +0 -1
- package/dist/shared/notifications/domain/notification/command/removeNotification.tes.js +0 -9
- package/dist/shared/notifications/infrastructure/domain/notification/react/useCreateModalNotification.d.ts +0 -20
- package/dist/shared/notifications/infrastructure/domain/notification/react/useCreateModalNotification.js +0 -22
- package/dist/shared/notifications/infrastructure/domain/notification/react/useCreateToastNotification.d.ts +0 -21
- package/dist/shared/notifications/infrastructure/domain/notification/react/useCreateToastNotification.js +0 -22
- package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.d.ts +0 -10
- package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.js +0 -26
- package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.style.d.ts +0 -16
- package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.style.js +0 -19
- package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotifications.d.ts +0 -8
- package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotifications.js +0 -6
- package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotifications.style.d.ts +0 -25
- package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotifications.style.js +0 -18
- package/dist/shared/notifications/infrastructure/ui/components/toastNotifications/ToastNotificationItem.d.ts +0 -12
- package/dist/shared/notifications/infrastructure/ui/components/toastNotifications/ToastNotificationItem.js +0 -24
- package/dist/shared/notifications/infrastructure/ui/components/toastNotifications/ToastNotifications.d.ts +0 -9
- package/dist/shared/notifications/infrastructure/ui/components/toastNotifications/ToastNotifications.js +0 -20
- package/dist/shared/notifications/infrastructure/ui/components/toastNotifications/ToastNotifications.style.d.ts +0 -36
- package/dist/shared/notifications/infrastructure/ui/components/toastNotifications/ToastNotifications.style.js +0 -31
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { useCallback, useEffect } from "react";
|
|
4
|
-
import { Toast, ToastVariant } from "../../../../../ui/components/molecules/toast/Toast";
|
|
5
|
-
import { NotificationLevel } from "../../../../domain/notification/model/notification";
|
|
6
|
-
const toastVariantForNotificationLevel = {
|
|
7
|
-
[NotificationLevel.INFO]: ToastVariant.INFO,
|
|
8
|
-
[NotificationLevel.ERROR]: ToastVariant.ERROR,
|
|
9
|
-
[NotificationLevel.SUCCESS]: ToastVariant.SUCCESS,
|
|
10
|
-
};
|
|
11
|
-
const ToastNotificationItem = ({ notification, onRemove, autoHideTimeout, testID = "toast-notification-item", style: customStyle, }) => {
|
|
12
|
-
const title = useI18nMessage({ id: notification.titleI18nKey }) || undefined;
|
|
13
|
-
const body = useI18nMessage({ id: notification.bodyI18nKey || "" });
|
|
14
|
-
const handleOnClose = useCallback(() => onRemove(notification.id), [notification.id, onRemove]);
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
if (!autoHideTimeout) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const hideTimeout = setTimeout(handleOnClose, autoHideTimeout);
|
|
20
|
-
return () => clearTimeout(hideTimeout);
|
|
21
|
-
}, [autoHideTimeout, handleOnClose]);
|
|
22
|
-
return (React.createElement(Toast, { body: body, style: customStyle, testID: testID, title: title, variant: toastVariantForNotificationLevel[notification.level], onClose: handleOnClose }));
|
|
23
|
-
};
|
|
24
|
-
export { ToastNotificationItem };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { ToastNotificationProjection } from "../../../../projection/notification/notification";
|
|
3
|
-
interface ToastNotificationsProps {
|
|
4
|
-
readonly notifications?: ToastNotificationProjection[];
|
|
5
|
-
readonly onRemove: (notificationId: string) => void;
|
|
6
|
-
readonly autoHideTimeout?: number;
|
|
7
|
-
}
|
|
8
|
-
declare const ToastNotifications: FC<ToastNotificationsProps>;
|
|
9
|
-
export { ToastNotifications };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View } from "react-native";
|
|
3
|
-
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
4
|
-
import { Column } from "../../../../../ui/components/layouts/column/Column";
|
|
5
|
-
import { Row } from "../../../../../ui/components/layouts/row/Row";
|
|
6
|
-
import { Stack } from "../../../../../ui/components/layouts/stack/Stack";
|
|
7
|
-
import { useScreenSize } from "../../../../../ui/hooks/useScreenSize";
|
|
8
|
-
import { ToastNotificationItem } from "./ToastNotificationItem";
|
|
9
|
-
import { style } from "./ToastNotifications.style";
|
|
10
|
-
const NOTIFICATIONS_AUTOHIDE_TIMEOUT = 10000;
|
|
11
|
-
const ToastNotifications = ({ notifications = [], onRemove, autoHideTimeout = NOTIFICATIONS_AUTOHIDE_TIMEOUT, }) => {
|
|
12
|
-
const { top: safeAreaInsetTop } = useSafeAreaInsets();
|
|
13
|
-
const screenSize = useScreenSize();
|
|
14
|
-
const isSmallDevice = screenSize === "S";
|
|
15
|
-
return (React.createElement(View, { pointerEvents: "box-none", style: style.notifications, testID: "toast-notifications" },
|
|
16
|
-
React.createElement(Row, { style: [style.row, isSmallDevice && style.rowSmall, { paddingTop: safeAreaInsetTop }] },
|
|
17
|
-
React.createElement(Column, null,
|
|
18
|
-
React.createElement(Stack, null, notifications.map((notification) => (React.createElement(ToastNotificationItem, { key: notification.id, autoHideTimeout: autoHideTimeout, notification: notification, style: { toast: style.toast }, testID: notification.id, onRemove: onRemove }))))))));
|
|
19
|
-
};
|
|
20
|
-
export { ToastNotifications };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from "react-native";
|
|
2
|
-
declare const style: StyleSheet.NamedStyles<any> | StyleSheet.NamedStyles<{
|
|
3
|
-
notifications: {
|
|
4
|
-
flexDirection: "column";
|
|
5
|
-
top: number;
|
|
6
|
-
width: string;
|
|
7
|
-
zIndex: number;
|
|
8
|
-
left: number;
|
|
9
|
-
} | {
|
|
10
|
-
flexDirection: "column";
|
|
11
|
-
top: number;
|
|
12
|
-
width: string;
|
|
13
|
-
zIndex: number;
|
|
14
|
-
position: "fixed";
|
|
15
|
-
left: number;
|
|
16
|
-
} | {
|
|
17
|
-
flexDirection: "column";
|
|
18
|
-
top: number;
|
|
19
|
-
width: string;
|
|
20
|
-
zIndex: number;
|
|
21
|
-
position: "absolute";
|
|
22
|
-
left: number;
|
|
23
|
-
};
|
|
24
|
-
row: {
|
|
25
|
-
flex: number;
|
|
26
|
-
justifyContent: "center";
|
|
27
|
-
};
|
|
28
|
-
rowSmall: {
|
|
29
|
-
paddingLeft: number;
|
|
30
|
-
paddingRight: number;
|
|
31
|
-
};
|
|
32
|
-
toast: {
|
|
33
|
-
marginTop: number;
|
|
34
|
-
};
|
|
35
|
-
}>;
|
|
36
|
-
export { style };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Platform, StyleSheet } from "react-native";
|
|
2
|
-
import { theme } from "../../../../../../infrastructure/ui/theme/theme";
|
|
3
|
-
const { spaceM } = theme();
|
|
4
|
-
const style = StyleSheet.create({
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
notifications: {
|
|
8
|
-
left: 0,
|
|
9
|
-
...Platform.select({
|
|
10
|
-
web: { position: "fixed" },
|
|
11
|
-
ios: { position: "absolute" },
|
|
12
|
-
android: { position: "absolute" },
|
|
13
|
-
}),
|
|
14
|
-
flexDirection: "column",
|
|
15
|
-
top: 0,
|
|
16
|
-
width: "100%",
|
|
17
|
-
zIndex: 20,
|
|
18
|
-
},
|
|
19
|
-
row: {
|
|
20
|
-
flex: 1,
|
|
21
|
-
justifyContent: "center",
|
|
22
|
-
},
|
|
23
|
-
rowSmall: {
|
|
24
|
-
paddingLeft: spaceM,
|
|
25
|
-
paddingRight: spaceM,
|
|
26
|
-
},
|
|
27
|
-
toast: {
|
|
28
|
-
marginTop: spaceM,
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
export { style };
|