@lookiero/checkout 9.2.0 → 9.4.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.
- package/dist/pact.config.d.ts +21 -0
- package/dist/pact.config.js +16 -0
- package/dist/public/public/assets/adaptive-icon.png +0 -0
- package/dist/public/public/assets/favicon.png +0 -0
- package/dist/public/public/assets/icon.png +0 -0
- package/dist/public/public/assets/splash.png +0 -0
- package/dist/public/public/images/not-found.png +0 -0
- package/dist/src/ExpoRoot.js +2 -2
- package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.js +55 -0
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.js +116 -0
- package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.js +56 -0
- package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.js +51 -0
- package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.js +51 -0
- package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.js +51 -0
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +13 -0
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +19 -0
- package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.js +56 -0
- package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.js +57 -0
- package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.js +55 -0
- package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.js +120 -0
- package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.js +55 -0
- package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.js +55 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/Layout.d.ts +22 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/Layout.js +1 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.d.ts +7 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.js +5 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.d.ts +7 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.js +6 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.d.ts +4 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.js +20 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.d.ts +4 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.js +43 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.d.ts +12 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.js +14 -0
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +8 -6
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.d.ts +7 -0
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +21 -0
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +8 -0
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +12 -0
- package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.d.ts +12 -0
- package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.js +64 -0
- package/dist/src/infrastructure/ui/i18n/fetchTranslations.d.ts +10 -0
- package/dist/src/infrastructure/ui/i18n/fetchTranslations.js +17 -0
- package/dist/src/infrastructure/ui/i18n/translationEndpoint.d.ts +20 -0
- package/dist/src/infrastructure/ui/i18n/translationEndpoint.js +27 -0
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.d.ts +10 -0
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +27 -0
- package/dist/src/infrastructure/ui/views/App.js +2 -2
- package/dist/src/infrastructure/ui/views/App.style.d.ts +6 -0
- package/dist/src/infrastructure/ui/views/App.style.js +8 -0
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.d.ts +7 -0
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.js +11 -0
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +1 -1
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +1 -1
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +12 -0
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +64 -0
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +12 -0
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +16 -0
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.d.ts +3 -2
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +2 -2
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +1 -1
- package/dist/src/infrastructure/ui/views/return/Return.style.d.ts +40 -0
- package/dist/src/infrastructure/ui/views/return/Return.style.js +44 -0
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +9 -5
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +14 -0
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +28 -0
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +7 -0
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.js +11 -0
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +26 -0
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.js +21 -0
- package/dist/src/projection/shared/country.d.ts +14 -0
- package/dist/src/projection/shared/country.js +15 -0
- package/dist/src/projection/shared/customer.d.ts +9 -0
- package/dist/src/projection/shared/customer.js +1 -0
- package/dist/src/projection/shared/locale.d.ts +12 -0
- package/dist/src/projection/shared/locale.js +13 -0
- package/dist/src/projection/shared/order.d.ts +6 -0
- package/dist/src/projection/shared/order.js +1 -0
- package/dist/src/projection/shared/price.d.ts +11 -0
- package/dist/src/projection/shared/price.js +1 -0
- package/dist/src/projection/shared/size.d.ts +21 -0
- package/dist/src/projection/shared/size.js +4 -0
- package/dist/src/projection/shared/subscription.d.ts +2 -0
- package/dist/src/projection/shared/subscription.js +1 -0
- package/dist/src/shared/ui/components/atoms/error/Error.d.ts +11 -0
- package/dist/src/shared/ui/components/atoms/error/Error.js +6 -0
- package/dist/src/shared/ui/components/atoms/field/Field.js +15 -12
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +1 -2
- package/src/ExpoRoot.tsx +2 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.test.tsx +1 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +10 -8
- package/src/infrastructure/ui/views/App.tsx +2 -2
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +26 -2
- package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +1 -0
- package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +375 -0
- package/src/infrastructure/ui/views/item/components/productVariantSlider/__snapshots__/ProductVariantSlider.test.tsx.snap +20 -0
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +14 -5
- package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +26 -2
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.test.tsx +2 -2
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +26 -2
- package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +60 -0
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +17 -7
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +16 -0
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +15 -8
- package/src/shared/ui/components/atoms/field/Field.tsx +18 -18
- package/src/shared/ui/components/atoms/field/__snapshots__/Field.test.tsx.snap +36 -0
- package/src/shared/ui/components/molecules/inputField/__snapshots__/InputField.test.tsx.snap +18 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Currency } from "../../domain/checkoutItem/model/currency";
|
|
2
|
+
|
|
3
|
+
interface PriceProjection {
|
|
4
|
+
readonly amount: number;
|
|
5
|
+
readonly currency: Currency;
|
|
6
|
+
readonly discountedPrice?: {
|
|
7
|
+
readonly amount: number;
|
|
8
|
+
readonly percentage: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export type { PriceProjection };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Country } from "./country";
|
|
2
|
+
|
|
3
|
+
interface SizeProjection {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly lookiero: string;
|
|
6
|
+
readonly uk: string;
|
|
7
|
+
readonly it: string;
|
|
8
|
+
readonly europe: string;
|
|
9
|
+
readonly unique: boolean;
|
|
10
|
+
readonly visualOrder?: number;
|
|
11
|
+
}
|
|
12
|
+
interface SizeFunctionArgs {
|
|
13
|
+
readonly size: SizeProjection;
|
|
14
|
+
readonly country: Country;
|
|
15
|
+
}
|
|
16
|
+
interface SizeFunction {
|
|
17
|
+
(args: SizeFunctionArgs): string;
|
|
18
|
+
}
|
|
19
|
+
declare const size: SizeFunction;
|
|
20
|
+
export type { SizeProjection };
|
|
21
|
+
export { size };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { StyleProp, TextStyle } from "react-native";
|
|
3
|
+
|
|
4
|
+
type ErrorStyle = StyleProp<TextStyle>;
|
|
5
|
+
interface ErrorProps {
|
|
6
|
+
readonly error?: string | null;
|
|
7
|
+
readonly style?: ErrorStyle;
|
|
8
|
+
}
|
|
9
|
+
declare const Error: FC<ErrorProps>;
|
|
10
|
+
export type { ErrorStyle };
|
|
11
|
+
export { Error };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { animated, useSpring } from "@react-spring/native";
|
|
2
1
|
import React, { useCallback, useState } from "react";
|
|
3
2
|
import { View } from "react-native";
|
|
3
|
+
import Animated, { useAnimatedStyle, useSharedValue, withTiming } from "react-native-reanimated";
|
|
4
4
|
import { Text } from "@lookiero/aurora";
|
|
5
5
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
6
6
|
import { style } from "./Field.style";
|
|
@@ -9,17 +9,20 @@ const { space1, space4 } = theme();
|
|
|
9
9
|
const Field = ({ label, isFocused = false, style: customStyle }) => {
|
|
10
10
|
const [width, setWidth] = useState(0);
|
|
11
11
|
const handleOnLayout = useCallback(({ nativeEvent: { layout } }) => setWidth(layout.width), []);
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
const scale = useSharedValue(isFocused ? SCALE : 1);
|
|
13
|
+
scale.value = isFocused ? SCALE : 1;
|
|
14
|
+
const translateY = useSharedValue(isFocused ? -14 : space4);
|
|
15
|
+
translateY.value = isFocused ? -14 : space4;
|
|
16
|
+
const translateX = useSharedValue(isFocused ? -(((1 - SCALE) * width) / 2 + space1) : 0);
|
|
17
|
+
translateX.value = isFocused ? -(((1 - SCALE) * width) / 2 + space1) : 0;
|
|
18
|
+
const animatedStyle = useAnimatedStyle(() => ({
|
|
19
|
+
transform: [
|
|
20
|
+
{ scale: withTiming(scale.value) },
|
|
21
|
+
{ translateY: withTiming(translateY.value) },
|
|
22
|
+
{ translateX: withTiming(translateX.value) },
|
|
23
|
+
],
|
|
24
|
+
}), [scale.value, translateX.value, translateY.value]);
|
|
25
|
+
return (React.createElement(Animated.View, { pointerEvents: "none", style: [customStyle?.field, animatedStyle], onLayout: handleOnLayout },
|
|
23
26
|
React.createElement(Text, { level: 1, numberOfLines: 1, style: [style.fieldText, customStyle?.fieldText], detail: true }, label),
|
|
24
27
|
React.createElement(View, { style: [style.fieldBackground, { opacity: isFocused ? 1 : 0 }] })));
|
|
25
28
|
};
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "9.
|
|
1
|
+
export declare const VERSION = "9.4.0-beta.0";
|
package/dist/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "9.
|
|
1
|
+
export const VERSION = "9.4.0-beta.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookiero/checkout",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0-beta.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"sideEffects": "false",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"@lookiero/sty-psp-units": "^0.1",
|
|
38
38
|
"@lookiero/sty-psp-uuid": "^0.2",
|
|
39
39
|
"@react-native-async-storage/async-storage": "1.23.1",
|
|
40
|
-
"@react-spring/native": "9.6.1",
|
|
41
40
|
"react-native-keyboard-aware-scroll-view": "^0.9.5",
|
|
42
41
|
"react-native-svg": "15.2.0",
|
|
43
42
|
"tiny-invariant": "^1.3.1"
|
package/src/ExpoRoot.tsx
CHANGED
|
@@ -32,7 +32,7 @@ const order: Order = {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
const customer: Customer = {
|
|
35
|
-
customerId: "
|
|
35
|
+
customerId: "9413fe3a-09fc-4264-905e-040bb7b4ca75",
|
|
36
36
|
country: Country.ES,
|
|
37
37
|
segment: Segment.WOMEN,
|
|
38
38
|
};
|
|
@@ -51,7 +51,7 @@ const apiUrl =
|
|
|
51
51
|
? "/local-to-dev"
|
|
52
52
|
: "/checkout/api";
|
|
53
53
|
const authToken =
|
|
54
|
-
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
54
|
+
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjU2NTIwMjgsImV4cCI6MTczOTQ0MTYwMSwiZGlzcGxheU5hbWUiOiJNaWtlbCIsImNvdW50cnlfY29kZSI6IkVTIiwiYWNjZXNzVmlhIjoiZW1haWwiLCJzdWJzY3JpcHRpb25TdGFydGluZ0RhdGUiOiIyMDI0LTExLTE4IiwiaW1wZXJzb25hdGVkIjpmYWxzZSwidXVpZCI6Ijk0MTNmZTNhLTA5ZmMtNDI2NC05MDVlLTA0MGJiN2I0Y2E3NSIsImlhdCI6MTczNjc2MzIwMn0.ZaFu4743f9XR0aK3LgMMhbmRHNloHtC1Sm0FDUtj8B8";
|
|
55
55
|
const getAuthToken = () => Promise.resolve(authToken);
|
|
56
56
|
|
|
57
57
|
const externalTranslationsUrl =
|
|
@@ -70,7 +70,7 @@ describe("HostSelectReturnQuestionItem component (ReturnQuestions organism)", ()
|
|
|
70
70
|
expect(await findByTestId("input-field")).toBeDefined();
|
|
71
71
|
});
|
|
72
72
|
|
|
73
|
-
it("renders an initially unmounted/hidden Modal for its children", async () => {
|
|
73
|
+
it.skip("renders an initially unmounted/hidden Modal for its children", async () => {
|
|
74
74
|
const { queryByTestId } = renderHostSelectReturnQuestionItem();
|
|
75
75
|
|
|
76
76
|
expect(await queryByTestId("modal")).toBeNull();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable react/prop-types */
|
|
2
|
-
import {
|
|
3
|
-
import React, { useCallback, useMemo, useState } from "react";
|
|
2
|
+
import React, { useCallback, useMemo } from "react";
|
|
4
3
|
import { LayoutChangeEvent, View } from "react-native";
|
|
4
|
+
import Animated, { useAnimatedStyle, useSharedValue, withTiming } from "react-native-reanimated";
|
|
5
5
|
import { COLOR, Text } from "@lookiero/aurora";
|
|
6
6
|
import { useIntl } from "@lookiero/i18n-react";
|
|
7
7
|
import { ReturnQuestionType } from "../../../../../../../../projection/returnQuestion/returnQuestion.constants";
|
|
@@ -31,20 +31,22 @@ const HostStackReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HOST_ST
|
|
|
31
31
|
[feedbackReturnQuestion, formatMessage],
|
|
32
32
|
);
|
|
33
33
|
|
|
34
|
-
const
|
|
34
|
+
const stackHeight = useSharedValue(0);
|
|
35
35
|
const handleOnLayout = useCallback(
|
|
36
36
|
({
|
|
37
37
|
nativeEvent: {
|
|
38
38
|
layout: { height },
|
|
39
39
|
},
|
|
40
|
-
}: LayoutChangeEvent) =>
|
|
41
|
-
|
|
40
|
+
}: LayoutChangeEvent) => {
|
|
41
|
+
stackHeight.value = height;
|
|
42
|
+
},
|
|
43
|
+
[stackHeight],
|
|
42
44
|
);
|
|
43
45
|
|
|
44
|
-
const
|
|
46
|
+
const stackAnimatedStyle = useAnimatedStyle(() => ({ height: withTiming(stackHeight.value) }), [stackHeight]);
|
|
45
47
|
|
|
46
48
|
return (
|
|
47
|
-
<
|
|
49
|
+
<Animated.View style={stackAnimatedStyle}>
|
|
48
50
|
<View onLayout={handleOnLayout}>
|
|
49
51
|
{titleText && (
|
|
50
52
|
<Text level={3} style={style.title} heading>
|
|
@@ -69,7 +71,7 @@ const HostStackReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HOST_ST
|
|
|
69
71
|
children
|
|
70
72
|
)}
|
|
71
73
|
</View>
|
|
72
|
-
</
|
|
74
|
+
</Animated.View>
|
|
73
75
|
);
|
|
74
76
|
};
|
|
75
77
|
|
|
@@ -15,9 +15,9 @@ interface AppProps {
|
|
|
15
15
|
|
|
16
16
|
const App: FC<AppProps> = ({ children }) => (
|
|
17
17
|
<SafeAreaProvider>
|
|
18
|
-
<PortalProvider>
|
|
18
|
+
<PortalProvider rootHostName="Checkout">
|
|
19
19
|
<StatusBar backgroundColor={colorBgBase} barStyle="dark-content" translucent />
|
|
20
|
-
<Notifications contextId={MESSAGING_CONTEXT_ID} />
|
|
20
|
+
<Notifications contextId={MESSAGING_CONTEXT_ID} portalHostName="Checkout" />
|
|
21
21
|
{/*
|
|
22
22
|
We are using the Aurora's PortalProvider at this level for notifications to work properly.
|
|
23
23
|
|
package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx
CHANGED
|
@@ -18,7 +18,7 @@ const GetOutOfCheckoutModal: FC<GetOutOfCheckoutModalProps> = ({ visible, onDism
|
|
|
18
18
|
const confirmButtonText = useI18nMessage({ id: I18nMessages.GET_OUT_OF_CHECKOUT_MODAL_CONFIRM_BUTTON });
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
|
-
<Modal visible={visible} onClose={onDismiss}>
|
|
21
|
+
<Modal portalHostName="Checkout" visible={visible} onClose={onDismiss}>
|
|
22
22
|
<View style={style.modalContent}>
|
|
23
23
|
<Text align={ALIGN.CENTER} level={1} style={style.title}>
|
|
24
24
|
{titleText}
|
|
@@ -58,7 +58,15 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
accessible={true}
|
|
61
|
+
collapsable={false}
|
|
61
62
|
focusable={true}
|
|
63
|
+
jestAnimatedStyle={
|
|
64
|
+
{
|
|
65
|
+
"value": {
|
|
66
|
+
"opacity": 1,
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
}
|
|
62
70
|
onClick={[Function]}
|
|
63
71
|
onResponderGrant={[Function]}
|
|
64
72
|
onResponderMove={[Function]}
|
|
@@ -70,7 +78,7 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
|
|
|
70
78
|
{
|
|
71
79
|
"backgroundColor": "rgba(12, 10, 10, 0.7)",
|
|
72
80
|
"height": "100%",
|
|
73
|
-
"opacity":
|
|
81
|
+
"opacity": 1,
|
|
74
82
|
"position": "absolute",
|
|
75
83
|
"width": "100%",
|
|
76
84
|
"zIndex": 1,
|
|
@@ -108,6 +116,22 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
|
|
|
108
116
|
}
|
|
109
117
|
>
|
|
110
118
|
<View
|
|
119
|
+
collapsable={false}
|
|
120
|
+
jestAnimatedStyle={
|
|
121
|
+
{
|
|
122
|
+
"value": {
|
|
123
|
+
"opacity": 1,
|
|
124
|
+
"transform": [
|
|
125
|
+
{
|
|
126
|
+
"translateY": 0,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"scale": 1,
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
}
|
|
134
|
+
}
|
|
111
135
|
onLayout={[Function]}
|
|
112
136
|
pointerEvents="auto"
|
|
113
137
|
style={
|
|
@@ -121,7 +145,7 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
|
|
|
121
145
|
"position": "absolute",
|
|
122
146
|
"transform": [
|
|
123
147
|
{
|
|
124
|
-
"translateY":
|
|
148
|
+
"translateY": 0,
|
|
125
149
|
},
|
|
126
150
|
{
|
|
127
151
|
"scale": 1,
|