@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.
Files changed (123) hide show
  1. package/dist/pact.config.d.ts +21 -0
  2. package/dist/pact.config.js +16 -0
  3. package/dist/public/public/assets/adaptive-icon.png +0 -0
  4. package/dist/public/public/assets/favicon.png +0 -0
  5. package/dist/public/public/assets/icon.png +0 -0
  6. package/dist/public/public/assets/splash.png +0 -0
  7. package/dist/public/public/images/not-found.png +0 -0
  8. package/dist/src/ExpoRoot.js +2 -2
  9. package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.d.ts +1 -0
  10. package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.js +55 -0
  11. package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.d.ts +1 -0
  12. package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.js +116 -0
  13. package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.d.ts +1 -0
  14. package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.js +56 -0
  15. package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.d.ts +1 -0
  16. package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.js +51 -0
  17. package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.d.ts +1 -0
  18. package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.js +51 -0
  19. package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.d.ts +1 -0
  20. package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.js +51 -0
  21. package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +13 -0
  22. package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +19 -0
  23. package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.d.ts +1 -0
  24. package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.js +56 -0
  25. package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.d.ts +1 -0
  26. package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.js +57 -0
  27. package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.d.ts +1 -0
  28. package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.js +55 -0
  29. package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.d.ts +1 -0
  30. package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.js +120 -0
  31. package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.d.ts +1 -0
  32. package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.js +55 -0
  33. package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.d.ts +1 -0
  34. package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.js +55 -0
  35. package/dist/src/infrastructure/ui/components/layouts/layout/Layout.d.ts +22 -0
  36. package/dist/src/infrastructure/ui/components/layouts/layout/Layout.js +1 -0
  37. package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.d.ts +7 -0
  38. package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.js +5 -0
  39. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.d.ts +7 -0
  40. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.js +6 -0
  41. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.d.ts +4 -0
  42. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.js +20 -0
  43. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.d.ts +4 -0
  44. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.js +43 -0
  45. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.d.ts +12 -0
  46. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.js +14 -0
  47. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +8 -6
  48. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.d.ts +7 -0
  49. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +21 -0
  50. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +8 -0
  51. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +12 -0
  52. package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.d.ts +12 -0
  53. package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.js +64 -0
  54. package/dist/src/infrastructure/ui/i18n/fetchTranslations.d.ts +10 -0
  55. package/dist/src/infrastructure/ui/i18n/fetchTranslations.js +17 -0
  56. package/dist/src/infrastructure/ui/i18n/translationEndpoint.d.ts +20 -0
  57. package/dist/src/infrastructure/ui/i18n/translationEndpoint.js +27 -0
  58. package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.d.ts +10 -0
  59. package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +27 -0
  60. package/dist/src/infrastructure/ui/views/App.js +2 -2
  61. package/dist/src/infrastructure/ui/views/App.style.d.ts +6 -0
  62. package/dist/src/infrastructure/ui/views/App.style.js +8 -0
  63. package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.d.ts +7 -0
  64. package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.js +11 -0
  65. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +1 -1
  66. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +1 -1
  67. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +12 -0
  68. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +64 -0
  69. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +12 -0
  70. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +16 -0
  71. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.d.ts +3 -2
  72. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +2 -2
  73. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +1 -1
  74. package/dist/src/infrastructure/ui/views/return/Return.style.d.ts +40 -0
  75. package/dist/src/infrastructure/ui/views/return/Return.style.js +44 -0
  76. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +9 -5
  77. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +14 -0
  78. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +28 -0
  79. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +7 -0
  80. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.js +11 -0
  81. package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +26 -0
  82. package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.js +21 -0
  83. package/dist/src/projection/shared/country.d.ts +14 -0
  84. package/dist/src/projection/shared/country.js +15 -0
  85. package/dist/src/projection/shared/customer.d.ts +9 -0
  86. package/dist/src/projection/shared/customer.js +1 -0
  87. package/dist/src/projection/shared/locale.d.ts +12 -0
  88. package/dist/src/projection/shared/locale.js +13 -0
  89. package/dist/src/projection/shared/order.d.ts +6 -0
  90. package/dist/src/projection/shared/order.js +1 -0
  91. package/dist/src/projection/shared/price.d.ts +11 -0
  92. package/dist/src/projection/shared/price.js +1 -0
  93. package/dist/src/projection/shared/size.d.ts +21 -0
  94. package/dist/src/projection/shared/size.js +4 -0
  95. package/dist/src/projection/shared/subscription.d.ts +2 -0
  96. package/dist/src/projection/shared/subscription.js +1 -0
  97. package/dist/src/shared/ui/components/atoms/error/Error.d.ts +11 -0
  98. package/dist/src/shared/ui/components/atoms/error/Error.js +6 -0
  99. package/dist/src/shared/ui/components/atoms/field/Field.js +15 -12
  100. package/dist/src/version.d.ts +1 -1
  101. package/dist/src/version.js +1 -1
  102. package/package.json +1 -2
  103. package/src/ExpoRoot.tsx +2 -2
  104. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.test.tsx +1 -1
  105. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +10 -8
  106. package/src/infrastructure/ui/views/App.tsx +2 -2
  107. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +1 -1
  108. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +26 -2
  109. package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +1 -0
  110. package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +375 -0
  111. package/src/infrastructure/ui/views/item/components/productVariantSlider/__snapshots__/ProductVariantSlider.test.tsx.snap +20 -0
  112. package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +14 -5
  113. package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +26 -2
  114. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.test.tsx +2 -2
  115. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +1 -1
  116. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +26 -2
  117. package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +60 -0
  118. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +17 -7
  119. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +16 -0
  120. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +15 -8
  121. package/src/shared/ui/components/atoms/field/Field.tsx +18 -18
  122. package/src/shared/ui/components/atoms/field/__snapshots__/Field.test.tsx.snap +36 -0
  123. 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,4 @@
1
+ import { Country } from "./country";
2
+
3
+ const size = ({ size, country }) => (country === Country.GB ? size.uk : size.lookiero);
4
+ export { size };
@@ -0,0 +1,2 @@
1
+ type Subscription = "o" | "m" | "b" | "q";
2
+ export type { Subscription };
@@ -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 };
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { COLOR, Text } from "@lookiero/aurora";
3
+
4
+ const Error = ({ error, style: customStyle }) =>
5
+ React.createElement(Text, { color: COLOR.TEXT_ERROR, level: 2, style: customStyle, detail: true }, error);
6
+ 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 springs = useSpring(isFocused
13
- ? { scale: SCALE, translateY: -14, translateX: -(((1 - SCALE) * width) / 2 + space1) }
14
- : { scale: 1, translateY: space4, translateX: 0 });
15
- return (React.createElement(animated.View, { pointerEvents: "none", style: [
16
- {
17
- transform: [{ scale: springs.scale }, { translateY: springs.translateY }, { translateX: springs.translateX }],
18
- },
19
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
20
- // @ts-ignore
21
- customStyle?.field,
22
- ], onLayout: handleOnLayout },
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
  };
@@ -1 +1 @@
1
- export declare const VERSION = "9.2.0";
1
+ export declare const VERSION = "9.4.0-beta.0";
@@ -1 +1 @@
1
- export const VERSION = "9.2.0";
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.2.0",
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: "f2c07153-940c-4156-bf28-41ebb98391e4",
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.eyJzdWIiOjU2NTc1MDEsImV4cCI6MTczOTUxOTE3MiwiZGlzcGxheU5hbWUiOiJUZXN0aW5nIiwiY291bnRyeV9jb2RlIjoiRVMiLCJhY2Nlc3NWaWEiOiJlbWFpbCIsInN1YnNjcmlwdGlvblN0YXJ0aW5nRGF0ZSI6IjIwMjQtMTItMDUiLCJpbXBlcnNvbmF0ZWQiOmZhbHNlLCJ1dWlkIjoiZjJjMDcxNTMtOTQwYy00MTU2LWJmMjgtNDFlYmI5ODM5MWU0IiwiaWF0IjoxNzM2ODQwNzcyfQ.mjJR6ZmRfCiBpISVaZwgwA7tiX-10mC0gSPh1tN9y0o";
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 { animated, useSpring } from "@react-spring/native";
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 [stackHeight, setStackHeight] = useState<number>();
34
+ const stackHeight = useSharedValue(0);
35
35
  const handleOnLayout = useCallback(
36
36
  ({
37
37
  nativeEvent: {
38
38
  layout: { height },
39
39
  },
40
- }: LayoutChangeEvent) => setStackHeight(height),
41
- [],
40
+ }: LayoutChangeEvent) => {
41
+ stackHeight.value = height;
42
+ },
43
+ [stackHeight],
42
44
  );
43
45
 
44
- const stackSyle = useSpring({ height: stackHeight });
46
+ const stackAnimatedStyle = useAnimatedStyle(() => ({ height: withTiming(stackHeight.value) }), [stackHeight]);
45
47
 
46
48
  return (
47
- <animated.View style={stackSyle}>
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
- </animated.View>
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
 
@@ -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": 0,
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": 800,
148
+ "translateY": 0,
125
149
  },
126
150
  {
127
151
  "scale": 1,
@@ -96,6 +96,7 @@ const ItemActions: FC<ItemActionsProps> = ({
96
96
  <SelectModal
97
97
  modalVisible={modalVisible}
98
98
  options={sizeSelectorOptions}
99
+ portalHostName="Checkout"
99
100
  testID="select-field-modal"
100
101
  title={changeSizeButtonText}
101
102
  value={currentProductVariant.id}