@lookiero/checkout 0.8.14-patch.1 → 0.8.14
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/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
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { CheckoutStatus } from "./domain/checkout/model/checkout";
|
|
|
4
4
|
import { RootProps } from "./infrastructure/ui/Root";
|
|
5
5
|
import { CheckoutProjection } from "./projection/checkout/checkout";
|
|
6
6
|
import { IsCheckoutAccessibleByCustomerIdProjection } from "./projection/checkout/viewIsCheckoutAccessibleByCustomerId";
|
|
7
|
-
import {
|
|
7
|
+
import { SentryLoggerFunctionArgs } from "./shared/logging/SentryLogger";
|
|
8
8
|
interface IsCheckoutAccessibleFunctionArgs {
|
|
9
9
|
readonly customerId: string | undefined;
|
|
10
10
|
}
|
|
@@ -19,8 +19,8 @@ interface FirstAvailableCheckoutByCustomerIdFunction {
|
|
|
19
19
|
}
|
|
20
20
|
interface BootstrapFunctionArgs {
|
|
21
21
|
readonly getAuthToken: () => Promise<string>;
|
|
22
|
-
readonly apiUrl:
|
|
23
|
-
readonly sentry:
|
|
22
|
+
readonly apiUrl: string;
|
|
23
|
+
readonly sentry: SentryLoggerFunctionArgs;
|
|
24
24
|
readonly translations: EndpointFunction[];
|
|
25
25
|
}
|
|
26
26
|
interface BootstrapFunctionReturn {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BuildBootstrapFunctionReturn } from "@lookiero/messaging-react";
|
|
2
2
|
interface BootstrapFunctionArgs {
|
|
3
3
|
readonly getAuthToken: () => Promise<string>;
|
|
4
|
-
readonly apiUrl:
|
|
4
|
+
readonly apiUrl: string;
|
|
5
5
|
}
|
|
6
6
|
interface BootstrapFunction {
|
|
7
7
|
(args: BootstrapFunctionArgs): BuildBootstrapFunctionReturn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const fetchHttpPost = ({ apiUrl, getAuthToken }) => async ({ endpoint, body, signal, result }) => {
|
|
2
|
-
const response = await fetch(`${apiUrl
|
|
2
|
+
const response = await fetch(`${apiUrl}${endpoint}`, {
|
|
3
3
|
method: "POST",
|
|
4
4
|
headers: {
|
|
5
5
|
["Content-Type"]: "application/json",
|
|
@@ -11,7 +11,7 @@ const fetchHttpPost = ({ apiUrl, getAuthToken }) => async ({ endpoint, body, sig
|
|
|
11
11
|
return await processResponse({ response, result });
|
|
12
12
|
};
|
|
13
13
|
const fetchHttpGet = ({ apiUrl, getAuthToken }) => async ({ endpoint, signal, result }) => {
|
|
14
|
-
const response = await fetch(`${apiUrl
|
|
14
|
+
const response = await fetch(`${apiUrl}${endpoint}`, {
|
|
15
15
|
method: "GET",
|
|
16
16
|
credentials: "include",
|
|
17
17
|
headers: {
|
|
@@ -3,13 +3,13 @@ import { MessagingRoot } from "@lookiero/messaging-react/bootstrap";
|
|
|
3
3
|
import { ComponentType } from "react";
|
|
4
4
|
import { useRoutes as reactRouterUseRoutes } from "react-router-native";
|
|
5
5
|
import { Customer } from "../../projection/shared/customer";
|
|
6
|
-
import {
|
|
6
|
+
import { SentryLoggerFunctionArgs } from "../../shared/logging/SentryLogger";
|
|
7
7
|
import { Menu, TabBar } from "./views/navigation/Navigation";
|
|
8
8
|
interface RootFunctionArgs {
|
|
9
9
|
readonly Messaging: MessagingRoot;
|
|
10
10
|
readonly I18n: I18n;
|
|
11
11
|
readonly development?: boolean;
|
|
12
|
-
readonly sentry:
|
|
12
|
+
readonly sentry: SentryLoggerFunctionArgs;
|
|
13
13
|
readonly getAuthToken: () => Promise<string>;
|
|
14
14
|
}
|
|
15
15
|
interface RootFunction {
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { Platform } from "react-native";
|
|
2
2
|
import { Logger } from "./Logger";
|
|
3
|
-
interface
|
|
3
|
+
interface SentryLoggerFunctionArgs {
|
|
4
4
|
readonly publicKey: string;
|
|
5
5
|
readonly environment: `${typeof Platform.OS}-${"DEV" | "PROD" | "EXPO"}`;
|
|
6
6
|
readonly release: string;
|
|
7
7
|
readonly project: string;
|
|
8
8
|
}
|
|
9
|
-
interface SentryLoggerFunctionArgs {
|
|
10
|
-
(): SentryEnvironment;
|
|
11
|
-
}
|
|
12
9
|
interface SentryLoggerFunction {
|
|
13
10
|
(args: SentryLoggerFunctionArgs): Logger;
|
|
14
11
|
}
|
|
15
12
|
declare const sentryLogger: SentryLoggerFunction;
|
|
16
|
-
export type {
|
|
13
|
+
export type { SentryLoggerFunctionArgs };
|
|
17
14
|
export { sentryLogger };
|
|
@@ -49,13 +49,12 @@ const DENIED_URLS = [
|
|
|
49
49
|
/webappstoolbarba\.texthelp\.com\//i,
|
|
50
50
|
/metrics\.itunes\.apple\.com\.edgesuite\.net\//i,
|
|
51
51
|
];
|
|
52
|
-
const sentryLogger = (environment) => {
|
|
52
|
+
const sentryLogger = ({ environment, release, publicKey, project }) => {
|
|
53
53
|
let globalHub;
|
|
54
54
|
let currentHub;
|
|
55
55
|
const createHub = () => {
|
|
56
|
-
const { environment: clientEnvironment, release, publicKey, project } = environment();
|
|
57
56
|
const client = new Client({
|
|
58
|
-
environment
|
|
57
|
+
environment,
|
|
59
58
|
release,
|
|
60
59
|
dsn: `https://${publicKey}@o179049.ingest.sentry.io/${project}`,
|
|
61
60
|
integrations: integrations(),
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Command } from "@lookiero/messaging";
|
|
2
|
-
declare const MARK_CHECKOUT_AS_PAID = "mark_checkout_as_paid";
|
|
3
|
-
interface MarkCheckoutAsPaidPayload {
|
|
4
|
-
readonly aggregateId: string;
|
|
5
|
-
}
|
|
6
|
-
interface MarkCheckoutAsPaid extends Command<typeof MARK_CHECKOUT_AS_PAID>, MarkCheckoutAsPaidPayload {
|
|
7
|
-
}
|
|
8
|
-
interface MarkCheckoutAsPaidFunction {
|
|
9
|
-
(payload: MarkCheckoutAsPaidPayload): MarkCheckoutAsPaid;
|
|
10
|
-
}
|
|
11
|
-
declare const markCheckoutAsPaid: MarkCheckoutAsPaidFunction;
|
|
12
|
-
export type { MarkCheckoutAsPaid };
|
|
13
|
-
export { MARK_CHECKOUT_AS_PAID, markCheckoutAsPaid };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ProcessManagerFunction } from "@lookiero/messaging";
|
|
2
|
-
import { CheckoutSubmitted } from "../model/checkoutSubmitted";
|
|
3
|
-
declare const CHECKOUT_SUCCESS_NOTIFICATION_ID = "fa25dcdd-9f5d-4760-9e6f-27174205b1fa";
|
|
4
|
-
interface CreateModalNotificationWhenCheckoutSubmittedFunction extends ProcessManagerFunction<CheckoutSubmitted> {
|
|
5
|
-
}
|
|
6
|
-
declare const createModalNotificationWhenCheckoutSubmitted: CreateModalNotificationWhenCheckoutSubmittedFunction;
|
|
7
|
-
export { createModalNotificationWhenCheckoutSubmitted, CHECKOUT_SUCCESS_NOTIFICATION_ID };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { I18nMessages } from "../../../infrastructure/ui/i18n/i18n";
|
|
2
|
-
import { createModalNotification } from "../../../shared/notifications/domain/notification/command/createModalNotification";
|
|
3
|
-
const CHECKOUT_SUCCESS_NOTIFICATION_ID = "fa25dcdd-9f5d-4760-9e6f-27174205b1fa";
|
|
4
|
-
const createModalNotificationWhenCheckoutSubmitted = ({ commandBus }) => async () => {
|
|
5
|
-
await commandBus(createModalNotification({
|
|
6
|
-
aggregateId: CHECKOUT_SUCCESS_NOTIFICATION_ID,
|
|
7
|
-
titleI18nKey: I18nMessages.CHECKOUT_SUCCESS_MODAL_TITLE,
|
|
8
|
-
bodyI18nKey: I18nMessages.CHECKOUT_SUCCESS_MODAL_DESCRIPTION,
|
|
9
|
-
acceptI18nKey: I18nMessages.CHECKOUT_SUCCESS_MODAL_BUTTON,
|
|
10
|
-
}));
|
|
11
|
-
};
|
|
12
|
-
export { createModalNotificationWhenCheckoutSubmitted, CHECKOUT_SUCCESS_NOTIFICATION_ID };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DomainEvent } from "@lookiero/messaging";
|
|
2
|
-
declare const CHECKOUT_PAID = "checkout_paid";
|
|
3
|
-
interface CheckoutPaidPayload {
|
|
4
|
-
readonly aggregateId: string;
|
|
5
|
-
}
|
|
6
|
-
interface CheckoutPaid extends DomainEvent<typeof CHECKOUT_PAID>, CheckoutPaidPayload {
|
|
7
|
-
}
|
|
8
|
-
interface CheckoutPaidFunction {
|
|
9
|
-
(payload: CheckoutPaidPayload): CheckoutPaid;
|
|
10
|
-
}
|
|
11
|
-
declare const checkoutPaid: CheckoutPaidFunction;
|
|
12
|
-
export type { CheckoutPaid };
|
|
13
|
-
export { CHECKOUT_PAID, checkoutPaid };
|
package/dist/domain/checkoutBooking/event/createToastNotificationWhenCheckoutBookingExpired.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ProcessManagerFunction } from "@lookiero/messaging";
|
|
2
|
-
import { CheckoutBookingExpired } from "../model/checkoutBookingExpired";
|
|
3
|
-
declare const CHECKOUT_BOOKING_EXPIRED_NOTIFICATION_ID = "d423934e-2499-46ab-8cfb-39e1e398237e";
|
|
4
|
-
interface CreateToastNotificationWhenCheckoutBookingExpiredFunction extends ProcessManagerFunction<CheckoutBookingExpired> {
|
|
5
|
-
}
|
|
6
|
-
declare const createToastNotificationWhenCheckoutBookingExpired: CreateToastNotificationWhenCheckoutBookingExpiredFunction;
|
|
7
|
-
export { createToastNotificationWhenCheckoutBookingExpired, CHECKOUT_BOOKING_EXPIRED_NOTIFICATION_ID };
|
package/dist/domain/checkoutBooking/event/createToastNotificationWhenCheckoutBookingExpired.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { I18nMessages } from "../../../infrastructure/ui/i18n/i18n";
|
|
2
|
-
import { createToastNotification } from "../../../shared/notifications/domain/notification/command/createToastNotification";
|
|
3
|
-
import { NotificationLevel } from "../../../shared/notifications/domain/notification/model/notification";
|
|
4
|
-
const CHECKOUT_BOOKING_EXPIRED_NOTIFICATION_ID = "d423934e-2499-46ab-8cfb-39e1e398237e";
|
|
5
|
-
const createToastNotificationWhenCheckoutBookingExpired = ({ commandBus }) => async () => {
|
|
6
|
-
await commandBus(createToastNotification({
|
|
7
|
-
aggregateId: CHECKOUT_BOOKING_EXPIRED_NOTIFICATION_ID,
|
|
8
|
-
level: NotificationLevel.ERROR,
|
|
9
|
-
titleI18nKey: undefined,
|
|
10
|
-
bodyI18nKey: I18nMessages.CHECKOUT_TOAST_BOOKING_EXPIRED,
|
|
11
|
-
}));
|
|
12
|
-
};
|
|
13
|
-
export { createToastNotificationWhenCheckoutBookingExpired, CHECKOUT_BOOKING_EXPIRED_NOTIFICATION_ID };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ProcessManagerFunction } from "@lookiero/messaging";
|
|
2
|
-
import { CheckoutItemReplaced } from "../model/checkoutItemReplaced";
|
|
3
|
-
declare const SIZE_CHANGE_NOTIFICATION_ID = "ce89b8b2-e025-4b54-8cdc-52520dc3dd23";
|
|
4
|
-
interface CreateModalNotificationWhenCheckoutItemReplacedFunction extends ProcessManagerFunction<CheckoutItemReplaced> {
|
|
5
|
-
}
|
|
6
|
-
declare const createModalNotificationWhenCheckoutItemReplaced: CreateModalNotificationWhenCheckoutItemReplacedFunction;
|
|
7
|
-
export { createModalNotificationWhenCheckoutItemReplaced, SIZE_CHANGE_NOTIFICATION_ID };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { I18nMessages } from "../../../infrastructure/ui/i18n/i18n";
|
|
2
|
-
import { createModalNotification } from "../../../shared/notifications/domain/notification/command/createModalNotification";
|
|
3
|
-
const SIZE_CHANGE_NOTIFICATION_ID = "ce89b8b2-e025-4b54-8cdc-52520dc3dd23";
|
|
4
|
-
const createModalNotificationWhenCheckoutItemReplaced = ({ commandBus }) => async () => {
|
|
5
|
-
await commandBus(createModalNotification({
|
|
6
|
-
aggregateId: SIZE_CHANGE_NOTIFICATION_ID,
|
|
7
|
-
titleI18nKey: I18nMessages.SIZE_CHANGE_MODAL_TITLE,
|
|
8
|
-
bodyI18nKey: I18nMessages.SIZE_CHANGE_MODAL_DESCRIPTION,
|
|
9
|
-
acceptI18nKey: I18nMessages.SIZE_CHANGE_MODAL_BUTTON,
|
|
10
|
-
}));
|
|
11
|
-
};
|
|
12
|
-
export { createModalNotificationWhenCheckoutItemReplaced, SIZE_CHANGE_NOTIFICATION_ID };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CHECKOUT_PAID } from "../../../../domain/checkout/model/checkoutPaid";
|
|
2
|
-
const isCheckoutPaid = (event) => event.name === CHECKOUT_PAID;
|
|
3
|
-
const httpCheckoutsMarkAsPaid = ({ httpPost }) => async ({ aggregateId, domainEvents }) => {
|
|
4
|
-
const checkoutPaid = domainEvents.find(isCheckoutPaid);
|
|
5
|
-
if (!checkoutPaid) {
|
|
6
|
-
return;
|
|
7
|
-
}
|
|
8
|
-
await httpPost({
|
|
9
|
-
endpoint: "/mark-checkout-as-paid",
|
|
10
|
-
body: { checkoutId: aggregateId },
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
export { httpCheckoutsMarkAsPaid };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CommandStatus } from "@lookiero/messaging-react";
|
|
2
|
-
interface MarkAsPaidFunction {
|
|
3
|
-
(): Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
type UseMarkCheckoutAsPaid = [markAsPaid: MarkAsPaidFunction, status: CommandStatus];
|
|
6
|
-
interface UseMarkCheckoutAsPaidFunctionArgs {
|
|
7
|
-
readonly checkoutId?: string;
|
|
8
|
-
}
|
|
9
|
-
interface UseMarkCheckoutAsPaidFunction {
|
|
10
|
-
(args: UseMarkCheckoutAsPaidFunctionArgs): UseMarkCheckoutAsPaid;
|
|
11
|
-
}
|
|
12
|
-
declare const useMarkCheckoutAsPaid: UseMarkCheckoutAsPaidFunction;
|
|
13
|
-
export { useMarkCheckoutAsPaid };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useCommand } from "@lookiero/messaging-react";
|
|
2
|
-
import { useCallback } from "react";
|
|
3
|
-
import invariant from "tiny-invariant";
|
|
4
|
-
import { markCheckoutAsPaid } from "../../../../domain/checkout/command/markCheckoutAsPaid";
|
|
5
|
-
import { MESSAGING_CONTEXT_ID } from "../../../delivery/baseBootstrap";
|
|
6
|
-
const useMarkCheckoutAsPaid = ({ checkoutId }) => {
|
|
7
|
-
const [commandBus, status] = useCommand({ contextId: MESSAGING_CONTEXT_ID });
|
|
8
|
-
const markAsPaid = useCallback(() => {
|
|
9
|
-
invariant(checkoutId, "CheckoutId must be defined in order to mark the checkout as paid");
|
|
10
|
-
return commandBus(markCheckoutAsPaid({
|
|
11
|
-
aggregateId: checkoutId,
|
|
12
|
-
}));
|
|
13
|
-
}, [checkoutId, commandBus]);
|
|
14
|
-
return [markAsPaid, status];
|
|
15
|
-
};
|
|
16
|
-
export { useMarkCheckoutAsPaid };
|
package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CommandStatus } from "@lookiero/messaging-react";
|
|
2
|
-
interface BookFunction {
|
|
3
|
-
(): Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
type UseBookCheckouBookingForCheckoutItem = [book: BookFunction, status: CommandStatus];
|
|
6
|
-
interface UseBookCheckouBookingForCheckoutItemFunctionArgs {
|
|
7
|
-
readonly checkoutItemId: string;
|
|
8
|
-
}
|
|
9
|
-
interface UseBookCheckouBookingForCheckoutItemFunction {
|
|
10
|
-
(args: UseBookCheckouBookingForCheckoutItemFunctionArgs): UseBookCheckouBookingForCheckoutItem;
|
|
11
|
-
}
|
|
12
|
-
declare const useBookCheckouBookingForCheckoutItem: UseBookCheckouBookingForCheckoutItemFunction;
|
|
13
|
-
export { useBookCheckouBookingForCheckoutItem };
|
package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { useCommand } from "@lookiero/messaging-react";
|
|
2
|
-
import { useCallback } from "react";
|
|
3
|
-
import { v4 as uuid } from "uuid";
|
|
4
|
-
import { bookCheckoutBookingForCheckoutItem } from "../../../../domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem";
|
|
5
|
-
import { MESSAGING_CONTEXT_ID } from "../../../delivery/baseBootstrap";
|
|
6
|
-
const useBookCheckouBookingForCheckoutItem = ({ checkoutItemId }) => {
|
|
7
|
-
const [commandBus, status] = useCommand({ contextId: MESSAGING_CONTEXT_ID });
|
|
8
|
-
const book = useCallback(() => commandBus(bookCheckoutBookingForCheckoutItem({
|
|
9
|
-
aggregateId: uuid(),
|
|
10
|
-
checkoutItemId,
|
|
11
|
-
})), [checkoutItemId, commandBus]);
|
|
12
|
-
return [book, status];
|
|
13
|
-
};
|
|
14
|
-
export { useBookCheckouBookingForCheckoutItem };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CommandStatus } from "@lookiero/messaging-react";
|
|
2
|
-
interface IncrementIntroShownCountFunction {
|
|
3
|
-
(): Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
type UseIncrementIntroShownCount = [incrementIntroShownCount: IncrementIntroShownCountFunction, status: CommandStatus];
|
|
6
|
-
interface UseIncrementIntroShownCountFunction {
|
|
7
|
-
(): UseIncrementIntroShownCount;
|
|
8
|
-
}
|
|
9
|
-
declare const useIncrementIntroShownCount: UseIncrementIntroShownCountFunction;
|
|
10
|
-
export { useIncrementIntroShownCount };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { useCallback } from "react";
|
|
2
|
-
import { useViewIntroShownCount } from "../../../projection/uiSetting/react/useViewIntroShownCount";
|
|
3
|
-
import { UISettings } from "../../../ui/settings/UISettings";
|
|
4
|
-
import { useUpdateUiSetting } from "./useUpdateUiSetting";
|
|
5
|
-
const useIncrementIntroShownCount = () => {
|
|
6
|
-
const [update, status] = useUpdateUiSetting();
|
|
7
|
-
const [introShownCount] = useViewIntroShownCount();
|
|
8
|
-
const incrementIntroShownCount = useCallback(() => update({ key: UISettings.INTRO_SHOWN_COUNT, value: introShownCount + 1 }), [introShownCount, update]);
|
|
9
|
-
return [incrementIntroShownCount, status];
|
|
10
|
-
};
|
|
11
|
-
export { useIncrementIntroShownCount };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BookedSizeChangeProductsVariantsForCheckoutItemView } from "../../../projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem";
|
|
2
|
-
import { HttpPostFunction } from "../../delivery/http/httpClient";
|
|
3
|
-
interface HttpBookedSizeChangeProductsVariantsForCheckoutItemView extends BookedSizeChangeProductsVariantsForCheckoutItemView {
|
|
4
|
-
}
|
|
5
|
-
interface HttpBookedSizeChangeProductsVariantsForCheckoutItemViewFunctionArgs {
|
|
6
|
-
readonly httpPost: HttpPostFunction;
|
|
7
|
-
}
|
|
8
|
-
interface HttpBookedSizeChangeProductsVariantsForCheckoutItemViewFunction {
|
|
9
|
-
(args: HttpBookedSizeChangeProductsVariantsForCheckoutItemViewFunctionArgs): HttpBookedSizeChangeProductsVariantsForCheckoutItemView;
|
|
10
|
-
}
|
|
11
|
-
declare const httpBookedSizeChangeProductsVariantsForCheckoutItemView: HttpBookedSizeChangeProductsVariantsForCheckoutItemViewFunction;
|
|
12
|
-
export { httpBookedSizeChangeProductsVariantsForCheckoutItemView };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const httpBookedSizeChangeProductsVariantsForCheckoutItemView = ({ httpPost }) => async ({ checkoutItemId, signal }) => {
|
|
2
|
-
const response = await httpPost({
|
|
3
|
-
endpoint: "/view-booked-size-change-product-variants-for-checkout-item",
|
|
4
|
-
body: { checkoutItemId },
|
|
5
|
-
signal,
|
|
6
|
-
});
|
|
7
|
-
return !response.ok || response.status === 404 ? null : (await response.json()).result;
|
|
8
|
-
};
|
|
9
|
-
export { httpBookedSizeChangeProductsVariantsForCheckoutItemView };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { UseQueryFunctionResult } from "@lookiero/messaging-react";
|
|
2
|
-
import { BookedSizeChangeProductsVariantsProjection } from "../../../../projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants";
|
|
3
|
-
interface UseViewBookedSizeChangeProductsVariantsForCheckoutItemFunctionArgs {
|
|
4
|
-
readonly checkoutItemId: string;
|
|
5
|
-
}
|
|
6
|
-
interface UseViewBookedSizeChangeProductsVariantsForCheckoutItemFunction {
|
|
7
|
-
(args: UseViewBookedSizeChangeProductsVariantsForCheckoutItemFunctionArgs): UseQueryFunctionResult<BookedSizeChangeProductsVariantsProjection>;
|
|
8
|
-
}
|
|
9
|
-
declare const useViewBookedSizeChangeProductsVariantsForCheckoutItem: UseViewBookedSizeChangeProductsVariantsForCheckoutItemFunction;
|
|
10
|
-
export { useViewBookedSizeChangeProductsVariantsForCheckoutItem };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { useQuery } from "@lookiero/messaging-react";
|
|
2
|
-
import { CHECKOUT_BOOKING_BOOKED, } from "../../../../domain/checkoutBooking/model/checkoutBookingBooked";
|
|
3
|
-
import { viewBookedSizeChangeProductsVariantsForCheckoutItem } from "../../../../projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem";
|
|
4
|
-
import { MESSAGING_CONTEXT_ID } from "../../../delivery/baseBootstrap";
|
|
5
|
-
const isCheckoutBookingBooked = (event) => event.name === CHECKOUT_BOOKING_BOOKED;
|
|
6
|
-
const useViewBookedSizeChangeProductsVariantsForCheckoutItem = ({ checkoutItemId }) => useQuery({
|
|
7
|
-
query: viewBookedSizeChangeProductsVariantsForCheckoutItem({ checkoutItemId }),
|
|
8
|
-
contextId: MESSAGING_CONTEXT_ID,
|
|
9
|
-
invalidation: isCheckoutBookingBooked,
|
|
10
|
-
options: { staleTime: Infinity, retry: false, refetchOnWindowFocus: false },
|
|
11
|
-
});
|
|
12
|
-
export { useViewBookedSizeChangeProductsVariantsForCheckoutItem };
|
package/dist/infrastructure/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CheckoutFeedbackByCheckoutIdView } from "../../../projection/checkoutFeedback/viewCheckoutFeedbackByCheckoutId";
|
|
2
|
-
import { HttpPostFunction } from "../../delivery/http/httpClient";
|
|
3
|
-
interface HttpCheckoutFeebackByCheckoutIdView extends CheckoutFeedbackByCheckoutIdView {
|
|
4
|
-
}
|
|
5
|
-
interface HttpCheckoutFeebackByCheckoutIdViewFunctionArgs {
|
|
6
|
-
readonly httpPost: HttpPostFunction;
|
|
7
|
-
}
|
|
8
|
-
interface HttpCheckoutFeebackByCheckoutIdViewFunction {
|
|
9
|
-
(args: HttpCheckoutFeebackByCheckoutIdViewFunctionArgs): HttpCheckoutFeebackByCheckoutIdView;
|
|
10
|
-
}
|
|
11
|
-
declare const httpCheckoutFeebackByCheckoutIdView: HttpCheckoutFeebackByCheckoutIdViewFunction;
|
|
12
|
-
export { httpCheckoutFeebackByCheckoutIdView };
|
package/dist/infrastructure/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const httpCheckoutFeebackByCheckoutIdView = ({ httpPost }) => async ({ checkoutId, signal }) => {
|
|
2
|
-
const response = await httpPost({
|
|
3
|
-
endpoint: "/view-checkout-feedback-by-checkout-id",
|
|
4
|
-
body: { checkoutId },
|
|
5
|
-
signal,
|
|
6
|
-
});
|
|
7
|
-
return !response.ok || response.status === 404 ? null : (await response.json()).result;
|
|
8
|
-
};
|
|
9
|
-
export { httpCheckoutFeebackByCheckoutIdView };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { useViewIntroShownCount } from "./useViewIntroShownCount";
|
|
2
|
-
const MAX_INTRO_SHOWN_COUNT = 2;
|
|
3
|
-
const useShouldIntroBeShown = () => {
|
|
4
|
-
const [introShownCount, introShownCountStatus] = useViewIntroShownCount();
|
|
5
|
-
return [introShownCount < MAX_INTRO_SHOWN_COUNT, introShownCountStatus];
|
|
6
|
-
};
|
|
7
|
-
export { useShouldIntroBeShown };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UISettings } from "../../../ui/settings/UISettings";
|
|
2
|
-
import { useViewUiSettingByKey } from "./useViewUiSettingByKey";
|
|
3
|
-
const useViewIntroShownCount = () => {
|
|
4
|
-
const [introShownCount, introShownCountStatus] = useViewUiSettingByKey({
|
|
5
|
-
key: UISettings.INTRO_SHOWN_COUNT,
|
|
6
|
-
});
|
|
7
|
-
return [introShownCount?.value || 0, introShownCountStatus];
|
|
8
|
-
};
|
|
9
|
-
export { useViewIntroShownCount };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Platform, StyleSheet } from "react-native";
|
|
2
|
-
const style = StyleSheet.create({
|
|
3
|
-
header: {
|
|
4
|
-
...Platform.select({
|
|
5
|
-
web: {
|
|
6
|
-
position: "fixed",
|
|
7
|
-
zIndex: 1,
|
|
8
|
-
},
|
|
9
|
-
native: {
|
|
10
|
-
position: "absolute",
|
|
11
|
-
zIndex: 1,
|
|
12
|
-
},
|
|
13
|
-
}),
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
export { style };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
interface MenuProps {
|
|
4
|
-
readonly isVisible: boolean;
|
|
5
|
-
readonly onClose: () => void;
|
|
6
|
-
}
|
|
7
|
-
type Menu = FC<MenuProps>;
|
|
8
|
-
interface HeaderProps {
|
|
9
|
-
readonly customerId: string;
|
|
10
|
-
readonly menu: Menu;
|
|
11
|
-
readonly style?: StyleProp<ViewStyle>;
|
|
12
|
-
}
|
|
13
|
-
declare const Header: FC<HeaderProps>;
|
|
14
|
-
export type { Menu };
|
|
15
|
-
export { Header };
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
|
|
2
|
-
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
3
|
-
import React, { useCallback, useState } from "react";
|
|
4
|
-
import { Platform, StatusBar, View } from "react-native";
|
|
5
|
-
import { SafeAreaView } from "react-native-safe-area-context";
|
|
6
|
-
import { generatePath, useMatch, useNavigate, useParams } from "react-router-native";
|
|
7
|
-
import { ButtonIcon } from "../../../../shared/ui/components/molecules/buttonIcon/ButtonIcon";
|
|
8
|
-
import { useViewFirstAvailableCheckoutByCustomerId } from "../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
|
|
9
|
-
import { I18nMessages } from "../../i18n/i18n";
|
|
10
|
-
import { Routes } from "../../routing/routes";
|
|
11
|
-
import { useBasePath } from "../../routing/useBasePath";
|
|
12
|
-
import { style } from "./Header.style";
|
|
13
|
-
import { Logo } from "./components/Logo";
|
|
14
|
-
const ButtonIconPlaceholder = () => React.createElement(View, { style: style.buttonIconPlaceholder });
|
|
15
|
-
const DefaultHeader = ({ onOpenMenu }) => (React.createElement(View, { style: style.header, testID: "default-header" },
|
|
16
|
-
React.createElement(Logo, { style: style.logo }),
|
|
17
|
-
React.createElement(ButtonIconPlaceholder, null),
|
|
18
|
-
React.createElement(ButtonIcon, { name: "menu", onPress: onOpenMenu })));
|
|
19
|
-
const ItemHeader = ({ items, item }) => {
|
|
20
|
-
const title = useI18nMessage({ id: I18nMessages.HEADER_CHECKOUT_TITLE });
|
|
21
|
-
const itemIndex = items.indexOf(item);
|
|
22
|
-
const isFirstItem = itemIndex === 0;
|
|
23
|
-
const isLastItem = itemIndex === items.length - 1;
|
|
24
|
-
const basePath = useBasePath();
|
|
25
|
-
const navigate = useNavigate();
|
|
26
|
-
const navigateToPreviousItem = useCallback(() => {
|
|
27
|
-
const previousItemIndex = itemIndex === 0 ? items.length - 1 : itemIndex - 1;
|
|
28
|
-
const previousItem = items[previousItemIndex];
|
|
29
|
-
navigate(generatePath(`${basePath}/${Routes.ITEM}`, { id: previousItem.id }));
|
|
30
|
-
}, [basePath, itemIndex, items, navigate]);
|
|
31
|
-
const navigateToNextItem = useCallback(() => {
|
|
32
|
-
const nextItemIndex = itemIndex === items.length - 1 ? 0 : itemIndex + 1;
|
|
33
|
-
const nextItem = items[nextItemIndex];
|
|
34
|
-
navigate(generatePath(`${basePath}/${Routes.ITEM}`, { id: nextItem.id }));
|
|
35
|
-
}, [basePath, itemIndex, items, navigate]);
|
|
36
|
-
return (React.createElement(View, { style: style.header, testID: "item-header" },
|
|
37
|
-
!isFirstItem ? React.createElement(ButtonIcon, { name: "arrow-left", onPress: navigateToPreviousItem }) : React.createElement(ButtonIconPlaceholder, null),
|
|
38
|
-
React.createElement(Text, { level: 3, style: style.title, detail: true }, title),
|
|
39
|
-
!isLastItem ? React.createElement(ButtonIcon, { name: "arrow-right", onPress: navigateToNextItem }) : React.createElement(ButtonIconPlaceholder, null)));
|
|
40
|
-
};
|
|
41
|
-
const ItemDetailHeader = () => {
|
|
42
|
-
const title = useI18nMessage({ id: I18nMessages.HEADER_CHECKOUT_TITLE });
|
|
43
|
-
const navigate = useNavigate();
|
|
44
|
-
const handleOnBack = useCallback(() => navigate(-1), [navigate]);
|
|
45
|
-
return (React.createElement(View, { style: style.header, testID: "item-detail-header" },
|
|
46
|
-
React.createElement(ButtonIconPlaceholder, null),
|
|
47
|
-
React.createElement(Text, { level: 3, style: style.title, detail: true }, title),
|
|
48
|
-
React.createElement(ButtonIcon, { name: "close", onPress: handleOnBack })));
|
|
49
|
-
};
|
|
50
|
-
const CheckoutHeader = () => {
|
|
51
|
-
const title = useI18nMessage({ id: I18nMessages.HEADER_COMPLETE_CHECKOUT_TITLE });
|
|
52
|
-
const basePath = useBasePath();
|
|
53
|
-
const navigate = useNavigate();
|
|
54
|
-
const handleOnBack = useCallback(() => navigate(`${basePath}/${Routes.SUMMARY}`), [basePath, navigate]);
|
|
55
|
-
return (React.createElement(View, { style: style.header, testID: "checkout-header" },
|
|
56
|
-
React.createElement(ButtonIcon, { name: "arrow-left", onPress: handleOnBack }),
|
|
57
|
-
React.createElement(Text, { level: 3, style: style.title, detail: true }, title),
|
|
58
|
-
React.createElement(ButtonIconPlaceholder, null)));
|
|
59
|
-
};
|
|
60
|
-
const Header = ({ customerId, menu: Menu, style: customStyle }) => {
|
|
61
|
-
const { id: itemId } = useParams();
|
|
62
|
-
const [checkout] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
|
|
63
|
-
const currentItem = checkout?.items.find((item) => item.id === itemId);
|
|
64
|
-
const basePath = useBasePath();
|
|
65
|
-
const itemRouteMatch = useMatch(`${basePath}/${Routes.ITEM}`);
|
|
66
|
-
const itemDetailRouteMatch = useMatch(`${basePath}/${Routes.ITEM_DETAIL}`);
|
|
67
|
-
const checkoutRouteMatch = useMatch(`${basePath}/${Routes.CHECKOUT}`);
|
|
68
|
-
const [menuVisible, setMenuVisible] = useState(false);
|
|
69
|
-
const handleOnOpenMenu = useCallback(() => setMenuVisible(true), []);
|
|
70
|
-
const handleOnCloseMenu = useCallback(() => setMenuVisible(false), []);
|
|
71
|
-
let header;
|
|
72
|
-
if (checkout?.items && currentItem) {
|
|
73
|
-
if (itemRouteMatch) {
|
|
74
|
-
header = React.createElement(ItemHeader, { item: currentItem, items: checkout.items });
|
|
75
|
-
}
|
|
76
|
-
else if (itemDetailRouteMatch) {
|
|
77
|
-
header = React.createElement(ItemDetailHeader, null);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
else if (checkoutRouteMatch) {
|
|
81
|
-
header = React.createElement(CheckoutHeader, null);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
header = React.createElement(DefaultHeader, { onOpenMenu: handleOnOpenMenu });
|
|
85
|
-
}
|
|
86
|
-
return (React.createElement(React.Fragment, null,
|
|
87
|
-
React.createElement(SafeAreaView, { edges: ["top"], style: [style.container, Platform.OS === "android" && { paddingTop: StatusBar.currentHeight }, customStyle] }, header),
|
|
88
|
-
React.createElement(Menu, { isVisible: menuVisible, onClose: handleOnCloseMenu })));
|
|
89
|
-
};
|
|
90
|
-
export { Header };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
declare const HEADER_HEIGHT: number;
|
|
2
|
-
declare const style: {
|
|
3
|
-
buttonIconPlaceholder: {
|
|
4
|
-
flexGrow: number;
|
|
5
|
-
height: number;
|
|
6
|
-
width: number;
|
|
7
|
-
};
|
|
8
|
-
container: {
|
|
9
|
-
backgroundColor: string;
|
|
10
|
-
flexDirection: "row";
|
|
11
|
-
flexGrow: number;
|
|
12
|
-
height: number;
|
|
13
|
-
width: string;
|
|
14
|
-
};
|
|
15
|
-
header: {
|
|
16
|
-
alignItems: "center";
|
|
17
|
-
flexDirection: "row";
|
|
18
|
-
flexGrow: number;
|
|
19
|
-
flexWrap: "nowrap";
|
|
20
|
-
height: number;
|
|
21
|
-
justifyContent: "space-between";
|
|
22
|
-
overflow: "visible";
|
|
23
|
-
paddingHorizontal: number;
|
|
24
|
-
width: string;
|
|
25
|
-
};
|
|
26
|
-
logo: {
|
|
27
|
-
left: number;
|
|
28
|
-
position: "absolute";
|
|
29
|
-
top: number;
|
|
30
|
-
};
|
|
31
|
-
title: {
|
|
32
|
-
textTransform: "uppercase";
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export { style, HEADER_HEIGHT };
|