@lookiero/checkout 11.5.0 → 12.1.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/index.d.ts +1 -2
- package/dist/src/ExpoRoot.d.ts +0 -1
- package/dist/src/ExpoRoot.js +2 -3
- package/dist/src/infrastructure/tracking/useTrackAssignedVariationByExperiment.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackAssignedVariationByExperiment.js +3 -2
- package/dist/src/infrastructure/tracking/useTrackChangeFeedback.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackChangeFeedback.js +3 -2
- package/dist/src/infrastructure/tracking/useTrackCheckout.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackCheckout.js +3 -1
- package/dist/src/infrastructure/tracking/useTrackImageView.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackImageView.js +3 -2
- package/dist/src/infrastructure/tracking/useTrackItemPageView.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackItemPageView.js +3 -1
- package/dist/src/infrastructure/tracking/useTrackKeepItem.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackKeepItem.js +3 -2
- package/dist/src/infrastructure/tracking/useTrackPageView.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackPageView.js +3 -2
- package/dist/src/infrastructure/tracking/useTrackPressBack.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackPressBack.js +3 -2
- package/dist/src/infrastructure/tracking/useTrackPressContinue.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackPressContinue.js +3 -2
- package/dist/src/infrastructure/tracking/useTrackPressItem.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackPressItem.js +3 -2
- package/dist/src/infrastructure/tracking/useTrackPressNext.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackPressNext.js +3 -2
- package/dist/src/infrastructure/tracking/useTrackPressPrevious.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackPressPrevious.js +3 -2
- package/dist/src/infrastructure/tracking/useTrackPressPricing.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackPressPricing.js +3 -2
- package/dist/src/infrastructure/tracking/useTrackReplaceItem.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackReplaceItem.js +3 -2
- package/dist/src/infrastructure/tracking/useTrackResetItem.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackResetItem.js +3 -2
- package/dist/src/infrastructure/tracking/useTrackReturnItem.d.ts +2 -0
- package/dist/src/infrastructure/tracking/useTrackReturnItem.js +3 -2
- package/dist/src/infrastructure/tracking/useTrackTabView.d.ts +3 -1
- package/dist/src/infrastructure/tracking/useTrackTabView.js +3 -2
- package/dist/src/infrastructure/ui/hooks/useCheckoutFlow.js +2 -1
- package/dist/src/infrastructure/ui/routing/CheckoutMiddleware.d.ts +1 -1
- package/dist/src/infrastructure/ui/routing/CheckoutMiddleware.js +5 -3
- package/dist/src/infrastructure/ui/test/render.js +1 -1
- package/dist/src/infrastructure/ui/views/App.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/checkout/Checkout.js +4 -1
- package/dist/src/infrastructure/ui/views/feedback/Feedback.js +4 -1
- package/dist/src/infrastructure/ui/views/item/Item.js +5 -1
- package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.js +3 -2
- package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.js +4 -2
- package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.d.ts +2 -0
- package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.js +2 -1
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +5 -2
- package/dist/src/infrastructure/ui/views/summary/Summary.js +4 -1
- package/dist/src/infrastructure/ui/views/summaryTabs/SummaryTabs.js +4 -1
- package/dist/src/projection/returnQuestion/returnQuestion.typeguard.d.ts +2 -2
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/index.ts +1 -1
- package/jest.config.js +0 -3
- package/jest.setup.js +9 -1
- package/package.json +22 -20
- package/src/ExpoRoot.tsx +2 -3
- package/src/infrastructure/tracking/useTrackAssignedVariationByExperiment.test.ts +4 -0
- package/src/infrastructure/tracking/useTrackAssignedVariationByExperiment.ts +5 -1
- package/src/infrastructure/tracking/useTrackChangeFeedback.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackChangeFeedback.ts +5 -2
- package/src/infrastructure/tracking/useTrackCheckout.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackCheckout.ts +5 -0
- package/src/infrastructure/tracking/useTrackImageView.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackImageView.ts +5 -1
- package/src/infrastructure/tracking/useTrackItemPageView.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackItemPageView.ts +5 -0
- package/src/infrastructure/tracking/useTrackKeepItem.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackKeepItem.ts +12 -2
- package/src/infrastructure/tracking/useTrackPageView.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackPageView.ts +5 -2
- package/src/infrastructure/tracking/useTrackPressBack.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackPressBack.ts +5 -2
- package/src/infrastructure/tracking/useTrackPressContinue.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackPressContinue.ts +5 -2
- package/src/infrastructure/tracking/useTrackPressItem.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackPressItem.ts +5 -2
- package/src/infrastructure/tracking/useTrackPressNext.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackPressNext.ts +5 -2
- package/src/infrastructure/tracking/useTrackPressPrevious.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackPressPrevious.ts +5 -2
- package/src/infrastructure/tracking/useTrackPressPricing.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackPressPricing.ts +5 -2
- package/src/infrastructure/tracking/useTrackReplaceItem.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackReplaceItem.ts +5 -1
- package/src/infrastructure/tracking/useTrackResetItem.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackResetItem.ts +12 -2
- package/src/infrastructure/tracking/useTrackReturnItem.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackReturnItem.ts +12 -2
- package/src/infrastructure/tracking/useTrackTabView.test.tsx +4 -0
- package/src/infrastructure/tracking/useTrackTabView.ts +5 -1
- package/src/infrastructure/ui/hooks/useCheckoutFlow.test.tsx +11 -1
- package/src/infrastructure/ui/hooks/useCheckoutFlow.tsx +2 -0
- package/src/infrastructure/ui/hooks/useQueryBus.test.tsx +1 -1
- package/src/infrastructure/ui/hooks/useStaticInfo.test.tsx +1 -1
- package/src/infrastructure/ui/routing/CheckoutMiddleware.tsx +6 -4
- package/src/infrastructure/ui/test/render.tsx +1 -1
- package/src/infrastructure/ui/views/App.tsx +1 -1
- package/src/infrastructure/ui/views/checkout/Checkout.test.tsx +9 -2
- package/src/infrastructure/ui/views/checkout/Checkout.tsx +4 -0
- package/src/infrastructure/ui/views/feedback/Feedback.test.tsx +7 -1
- package/src/infrastructure/ui/views/feedback/Feedback.tsx +4 -0
- package/src/infrastructure/ui/views/item/Item.test.tsx +7 -1
- package/src/infrastructure/ui/views/item/Item.tsx +5 -0
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +34 -43
- package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +34 -43
- package/src/infrastructure/ui/views/item/components/productVariantSlider/__snapshots__/ProductVariantSlider.test.tsx.snap +76 -99
- package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +34 -43
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +34 -43
- package/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.test.tsx +7 -1
- package/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.tsx +3 -0
- package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.test.tsx +7 -1
- package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.tsx +4 -0
- package/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.test.tsx +2 -0
- package/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.tsx +4 -0
- package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +228 -297
- package/src/infrastructure/ui/views/return/Return.test.tsx +8 -1
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.test.tsx +2 -1
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +5 -2
- package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +26 -32
- package/src/infrastructure/ui/views/summary/Summary.test.tsx +7 -1
- package/src/infrastructure/ui/views/summary/Summary.tsx +4 -0
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +16 -24
- package/src/infrastructure/ui/views/summaryTabs/SummaryTabs.test.tsx +7 -1
- package/src/infrastructure/ui/views/summaryTabs/SummaryTabs.tsx +4 -0
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +105 -135
|
@@ -6,6 +6,7 @@ import { Country } from "@lookiero/sty-psp-locale";
|
|
|
6
6
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
7
7
|
import { DummyLayout } from "@lookiero/sty-psp-ui";
|
|
8
8
|
import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
|
|
9
|
+
import { Customer } from "../../../../projection/customer/customer";
|
|
9
10
|
import { OrderProjection } from "../../../../projection/order/order";
|
|
10
11
|
import { SubscriptionProjection } from "../../../../projection/subscription/subscription";
|
|
11
12
|
import { checkout } from "../../../projection/checkout/checkout.mock";
|
|
@@ -22,6 +23,11 @@ const customerId = "a8fff6d7-708c-41a7-b42a-58c5706d33df";
|
|
|
22
23
|
const basePath = "/checkout";
|
|
23
24
|
const country = Country.ES;
|
|
24
25
|
const segment = Segment.WOMEN;
|
|
26
|
+
const mockCustomer: Customer = {
|
|
27
|
+
customerId,
|
|
28
|
+
country,
|
|
29
|
+
segment,
|
|
30
|
+
} as Customer;
|
|
25
31
|
const mockCheckout = checkout({
|
|
26
32
|
items: [
|
|
27
33
|
{ status: CheckoutItemStatus.RETURNED },
|
|
@@ -41,14 +47,15 @@ const mockUseRedirect = jest.fn(() => ({ returnUrl: "https://web2.dev.aws.lookie
|
|
|
41
47
|
|
|
42
48
|
const mockOnSuccess = jest.fn();
|
|
43
49
|
const mockCheckoutFlow = jest.fn();
|
|
50
|
+
const mockStatus = QueryStatus.SUCCESS;
|
|
44
51
|
const paymentFlowTestId = "payment-flow";
|
|
45
52
|
const mockPaymentFlowComponent: ReactNode = <View testID={paymentFlowTestId}>PaymentFlow</View>;
|
|
46
53
|
jest.mock("../../hooks/useCheckoutFlow", () => ({
|
|
47
|
-
useCheckoutFlow: () => [mockCheckoutFlow,
|
|
54
|
+
useCheckoutFlow: () => [mockCheckoutFlow, mockStatus, mockPaymentFlowComponent],
|
|
48
55
|
}));
|
|
49
56
|
|
|
50
57
|
jest.mock("../../hooks/useStaticInfo", () => ({
|
|
51
|
-
useStaticInfo: () => ({ customer:
|
|
58
|
+
useStaticInfo: () => ({ customer: mockCustomer, basePath }),
|
|
52
59
|
}));
|
|
53
60
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
54
61
|
jest.mock("./components/paymentInstrument/PaymentInstrument", () => ({ PaymentInstrument: () => null }));
|
|
@@ -47,6 +47,7 @@ const Checkout: FC<CheckoutProps> = ({
|
|
|
47
47
|
const {
|
|
48
48
|
customer: { customerId, country, segment },
|
|
49
49
|
basePath,
|
|
50
|
+
tradename,
|
|
50
51
|
} = useStaticInfo();
|
|
51
52
|
const screenSize = useScreenSize();
|
|
52
53
|
const isDektopScreen = screenSize === "L";
|
|
@@ -73,6 +74,7 @@ const Checkout: FC<CheckoutProps> = ({
|
|
|
73
74
|
page: TrackingPage.CHECKOUT,
|
|
74
75
|
country,
|
|
75
76
|
segment,
|
|
77
|
+
tradename,
|
|
76
78
|
checkoutId: checkout?.id,
|
|
77
79
|
});
|
|
78
80
|
|
|
@@ -81,6 +83,7 @@ const Checkout: FC<CheckoutProps> = ({
|
|
|
81
83
|
page: TrackingPage.CHECKOUT,
|
|
82
84
|
country,
|
|
83
85
|
segment,
|
|
86
|
+
tradename,
|
|
84
87
|
checkoutId: checkout?.id,
|
|
85
88
|
});
|
|
86
89
|
const handleOnSubmit = useCallback(async () => {
|
|
@@ -106,6 +109,7 @@ const Checkout: FC<CheckoutProps> = ({
|
|
|
106
109
|
page: TrackingPage.CHECKOUT,
|
|
107
110
|
country,
|
|
108
111
|
segment,
|
|
112
|
+
tradename,
|
|
109
113
|
checkoutId: checkout?.id,
|
|
110
114
|
});
|
|
111
115
|
const handleOnBack = useCallback(() => {
|
|
@@ -5,6 +5,7 @@ import { Country } from "@lookiero/sty-psp-locale";
|
|
|
5
5
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
6
6
|
import { DummyLayout } from "@lookiero/sty-psp-ui";
|
|
7
7
|
import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
|
|
8
|
+
import { Customer } from "../../../../projection/customer/customer";
|
|
8
9
|
import { useGiveCheckoutFeedback } from "../../../domain/checkoutFeedback/react/useGiveCheckoutFeedback";
|
|
9
10
|
import { checkout } from "../../../projection/checkout/checkout.mock";
|
|
10
11
|
import { useViewFirstAvailableCheckoutByCustomerId } from "../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
|
|
@@ -25,9 +26,14 @@ const checkoutMock = checkout({
|
|
|
25
26
|
],
|
|
26
27
|
});
|
|
27
28
|
const mockGiveCheckoutFeedback = jest.fn();
|
|
29
|
+
const mockCustomer: Customer = {
|
|
30
|
+
customerId,
|
|
31
|
+
country,
|
|
32
|
+
segment,
|
|
33
|
+
} as Customer;
|
|
28
34
|
|
|
29
35
|
jest.mock("../../hooks/useStaticInfo", () => ({
|
|
30
|
-
useStaticInfo: () => ({ customer:
|
|
36
|
+
useStaticInfo: () => ({ customer: mockCustomer }),
|
|
31
37
|
}));
|
|
32
38
|
|
|
33
39
|
jest.mock("../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId");
|
|
@@ -37,6 +37,7 @@ const Feedback: FC<FeedbackProps> = ({ layout: Layout }) => {
|
|
|
37
37
|
const isDesktop = screenSize === "L";
|
|
38
38
|
const {
|
|
39
39
|
customer: { customerId, country, segment },
|
|
40
|
+
tradename,
|
|
40
41
|
} = useStaticInfo();
|
|
41
42
|
|
|
42
43
|
const style = useMemo(() => feedbackStyle(), []);
|
|
@@ -51,6 +52,7 @@ const Feedback: FC<FeedbackProps> = ({ layout: Layout }) => {
|
|
|
51
52
|
country,
|
|
52
53
|
segment,
|
|
53
54
|
checkoutId: checkout?.id,
|
|
55
|
+
tradename,
|
|
54
56
|
});
|
|
55
57
|
|
|
56
58
|
const trackChangeFeedback = useTrackChangeFeedback({
|
|
@@ -58,6 +60,7 @@ const Feedback: FC<FeedbackProps> = ({ layout: Layout }) => {
|
|
|
58
60
|
country,
|
|
59
61
|
segment,
|
|
60
62
|
checkoutId: checkout?.id,
|
|
63
|
+
tradename,
|
|
61
64
|
});
|
|
62
65
|
const handleOnChangedFeedback: HandleOnChangedFeedbackFunction = useCallback(
|
|
63
66
|
({ checkoutQuestionId, checkoutQuestionFeedback, hasFeedback }) => {
|
|
@@ -86,6 +89,7 @@ const Feedback: FC<FeedbackProps> = ({ layout: Layout }) => {
|
|
|
86
89
|
country,
|
|
87
90
|
segment,
|
|
88
91
|
checkoutId: checkout?.id,
|
|
92
|
+
tradename,
|
|
89
93
|
});
|
|
90
94
|
const handleOnSubmit = useCallback(
|
|
91
95
|
async (feedbacks: CheckoutFeedbackProjection) => {
|
|
@@ -5,6 +5,7 @@ import { Country } from "@lookiero/sty-psp-locale";
|
|
|
5
5
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
6
6
|
import { DummyLayout } from "@lookiero/sty-psp-ui";
|
|
7
7
|
import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
|
|
8
|
+
import { Customer } from "../../../../projection/customer/customer";
|
|
8
9
|
import { useBookCheckoutBookingForCheckoutItem } from "../../../domain/checkoutBooking/react/useBookCheckoutBookingForCheckoutItem";
|
|
9
10
|
import { useKeepCheckoutItem } from "../../../domain/checkoutItem/react/useKeepCheckoutItem";
|
|
10
11
|
import { useReplaceCheckoutItem } from "../../../domain/checkoutItem/react/useReplaceCheckoutItem";
|
|
@@ -26,9 +27,14 @@ const mockFirstCheckoutItemId = "a5422445-0e62-4b11-8a3f-1bb5469ee154";
|
|
|
26
27
|
const customerId = "a8fff6d7-708c-41a7-b42a-58c5706d33df";
|
|
27
28
|
const country = Country.ES;
|
|
28
29
|
const segment = Segment.WOMEN;
|
|
30
|
+
const mockCustomer: Customer = {
|
|
31
|
+
customerId,
|
|
32
|
+
country,
|
|
33
|
+
segment,
|
|
34
|
+
} as Customer;
|
|
29
35
|
|
|
30
36
|
jest.mock("../../hooks/useStaticInfo", () => ({
|
|
31
|
-
useStaticInfo: () => ({ customer:
|
|
37
|
+
useStaticInfo: () => ({ customer: mockCustomer }),
|
|
32
38
|
}));
|
|
33
39
|
|
|
34
40
|
const mockNavigate = jest.fn();
|
|
@@ -63,6 +63,7 @@ const Item: FC<ItemProps> = ({ layout: Layout }) => {
|
|
|
63
63
|
const {
|
|
64
64
|
customer: { customerId, country, segment },
|
|
65
65
|
basePath,
|
|
66
|
+
tradename,
|
|
66
67
|
} = useStaticInfo();
|
|
67
68
|
|
|
68
69
|
const style = useMemo(() => itemStyle(), []);
|
|
@@ -133,6 +134,7 @@ const Item: FC<ItemProps> = ({ layout: Layout }) => {
|
|
|
133
134
|
page: TrackingPage.ITEM,
|
|
134
135
|
country,
|
|
135
136
|
segment,
|
|
137
|
+
tradename,
|
|
136
138
|
checkoutId: checkout?.id,
|
|
137
139
|
checkoutItemId: checkoutItem.id,
|
|
138
140
|
status: checkoutItem.status,
|
|
@@ -145,6 +147,7 @@ const Item: FC<ItemProps> = ({ layout: Layout }) => {
|
|
|
145
147
|
page: TrackingPage.ITEM,
|
|
146
148
|
country,
|
|
147
149
|
segment,
|
|
150
|
+
tradename,
|
|
148
151
|
checkoutId: checkout?.id,
|
|
149
152
|
});
|
|
150
153
|
const handleOnNext: HandleOnNextFunction = useCallback(
|
|
@@ -155,6 +158,7 @@ const Item: FC<ItemProps> = ({ layout: Layout }) => {
|
|
|
155
158
|
page: TrackingPage.ITEM,
|
|
156
159
|
country,
|
|
157
160
|
segment,
|
|
161
|
+
tradename,
|
|
158
162
|
checkoutId: checkout?.id,
|
|
159
163
|
});
|
|
160
164
|
const handleOnPrevious: HandleOnPreviousFunction = useCallback(
|
|
@@ -165,6 +169,7 @@ const Item: FC<ItemProps> = ({ layout: Layout }) => {
|
|
|
165
169
|
page: TrackingPage.ITEM,
|
|
166
170
|
country,
|
|
167
171
|
segment,
|
|
172
|
+
tradename,
|
|
168
173
|
checkoutId: checkout?.id,
|
|
169
174
|
});
|
|
170
175
|
const handleOnBack = useCallback(() => {
|
|
@@ -58,15 +58,7 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
accessible={true}
|
|
61
|
-
collapsable={false}
|
|
62
61
|
focusable={true}
|
|
63
|
-
jestAnimatedStyle={
|
|
64
|
-
{
|
|
65
|
-
"value": {
|
|
66
|
-
"opacity": 1,
|
|
67
|
-
},
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
62
|
onClick={[Function]}
|
|
71
63
|
onResponderGrant={[Function]}
|
|
72
64
|
onResponderMove={[Function]}
|
|
@@ -75,14 +67,19 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
|
|
|
75
67
|
onResponderTerminationRequest={[Function]}
|
|
76
68
|
onStartShouldSetResponder={[Function]}
|
|
77
69
|
style={
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
70
|
+
[
|
|
71
|
+
{
|
|
72
|
+
"backgroundColor": "rgba(12, 10, 10, 0.7)",
|
|
73
|
+
"height": "100%",
|
|
74
|
+
"position": "absolute",
|
|
75
|
+
"width": "100%",
|
|
76
|
+
"zIndex": 1,
|
|
77
|
+
},
|
|
78
|
+
undefined,
|
|
79
|
+
{
|
|
80
|
+
"opacity": 1,
|
|
81
|
+
},
|
|
82
|
+
]
|
|
86
83
|
}
|
|
87
84
|
testID="modal-close-button"
|
|
88
85
|
/>
|
|
@@ -116,10 +113,26 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
|
|
|
116
113
|
}
|
|
117
114
|
>
|
|
118
115
|
<View
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
116
|
+
pointerEvents="auto"
|
|
117
|
+
style={
|
|
118
|
+
[
|
|
119
|
+
{
|
|
120
|
+
"backgroundColor": "#FFFFFF",
|
|
121
|
+
"borderRadius": 16,
|
|
122
|
+
"position": "absolute",
|
|
123
|
+
"width": "100%",
|
|
124
|
+
"zIndex": 3,
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"borderBottomLeftRadius": 0,
|
|
128
|
+
"borderBottomRightRadius": 0,
|
|
129
|
+
},
|
|
130
|
+
undefined,
|
|
131
|
+
{
|
|
132
|
+
"maxHeight": 800,
|
|
133
|
+
},
|
|
134
|
+
undefined,
|
|
135
|
+
{
|
|
123
136
|
"opacity": 1,
|
|
124
137
|
"transform": [
|
|
125
138
|
{
|
|
@@ -130,29 +143,7 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
|
|
|
130
143
|
},
|
|
131
144
|
],
|
|
132
145
|
},
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
pointerEvents="auto"
|
|
136
|
-
style={
|
|
137
|
-
{
|
|
138
|
-
"backgroundColor": "#FFFFFF",
|
|
139
|
-
"borderBottomLeftRadius": 0,
|
|
140
|
-
"borderBottomRightRadius": 0,
|
|
141
|
-
"borderRadius": 16,
|
|
142
|
-
"maxHeight": 800,
|
|
143
|
-
"opacity": 1,
|
|
144
|
-
"position": "absolute",
|
|
145
|
-
"transform": [
|
|
146
|
-
{
|
|
147
|
-
"translateY": 0,
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"scale": 1,
|
|
151
|
-
},
|
|
152
|
-
],
|
|
153
|
-
"width": "100%",
|
|
154
|
-
"zIndex": 3,
|
|
155
|
-
}
|
|
146
|
+
]
|
|
156
147
|
}
|
|
157
148
|
>
|
|
158
149
|
<View
|
|
@@ -632,15 +632,7 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
accessible={true}
|
|
635
|
-
collapsable={false}
|
|
636
635
|
focusable={false}
|
|
637
|
-
jestAnimatedStyle={
|
|
638
|
-
{
|
|
639
|
-
"value": {
|
|
640
|
-
"opacity": 0,
|
|
641
|
-
},
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
636
|
onClick={[Function]}
|
|
645
637
|
onResponderGrant={[Function]}
|
|
646
638
|
onResponderMove={[Function]}
|
|
@@ -649,14 +641,19 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
649
641
|
onResponderTerminationRequest={[Function]}
|
|
650
642
|
onStartShouldSetResponder={[Function]}
|
|
651
643
|
style={
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
644
|
+
[
|
|
645
|
+
{
|
|
646
|
+
"backgroundColor": "rgba(12, 10, 10, 0.7)",
|
|
647
|
+
"height": "100%",
|
|
648
|
+
"position": "absolute",
|
|
649
|
+
"width": "100%",
|
|
650
|
+
"zIndex": 1,
|
|
651
|
+
},
|
|
652
|
+
undefined,
|
|
653
|
+
{
|
|
654
|
+
"opacity": 0,
|
|
655
|
+
},
|
|
656
|
+
]
|
|
660
657
|
}
|
|
661
658
|
testID="modal-close-button"
|
|
662
659
|
/>
|
|
@@ -690,10 +687,26 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
690
687
|
}
|
|
691
688
|
>
|
|
692
689
|
<View
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
690
|
+
pointerEvents="none"
|
|
691
|
+
style={
|
|
692
|
+
[
|
|
693
|
+
{
|
|
694
|
+
"backgroundColor": "#FFFFFF",
|
|
695
|
+
"borderRadius": 16,
|
|
696
|
+
"position": "absolute",
|
|
697
|
+
"width": "100%",
|
|
698
|
+
"zIndex": 3,
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"borderBottomLeftRadius": 0,
|
|
702
|
+
"borderBottomRightRadius": 0,
|
|
703
|
+
},
|
|
704
|
+
undefined,
|
|
705
|
+
{
|
|
706
|
+
"maxHeight": 800,
|
|
707
|
+
},
|
|
708
|
+
undefined,
|
|
709
|
+
{
|
|
697
710
|
"opacity": 1,
|
|
698
711
|
"transform": [
|
|
699
712
|
{
|
|
@@ -704,29 +717,7 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
704
717
|
},
|
|
705
718
|
],
|
|
706
719
|
},
|
|
707
|
-
|
|
708
|
-
}
|
|
709
|
-
pointerEvents="none"
|
|
710
|
-
style={
|
|
711
|
-
{
|
|
712
|
-
"backgroundColor": "#FFFFFF",
|
|
713
|
-
"borderBottomLeftRadius": 0,
|
|
714
|
-
"borderBottomRightRadius": 0,
|
|
715
|
-
"borderRadius": 16,
|
|
716
|
-
"maxHeight": 800,
|
|
717
|
-
"opacity": 1,
|
|
718
|
-
"position": "absolute",
|
|
719
|
-
"transform": [
|
|
720
|
-
{
|
|
721
|
-
"translateY": 800,
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
"scale": 1,
|
|
725
|
-
},
|
|
726
|
-
],
|
|
727
|
-
"width": "100%",
|
|
728
|
-
"zIndex": 3,
|
|
729
|
-
}
|
|
720
|
+
]
|
|
730
721
|
}
|
|
731
722
|
>
|
|
732
723
|
<View
|
|
@@ -59,44 +59,37 @@ exports[`ProductVariantSlider matches the snapshot 1`] = `
|
|
|
59
59
|
>
|
|
60
60
|
<View
|
|
61
61
|
collapsable={false}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
style={
|
|
63
|
+
[
|
|
64
|
+
{
|
|
65
|
+
"flex": 1,
|
|
66
|
+
"flexDirection": "row",
|
|
67
|
+
"height": "100%",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"width": 600,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
65
73
|
"transform": [
|
|
66
74
|
{
|
|
67
75
|
"translateX": 0,
|
|
68
76
|
},
|
|
69
77
|
],
|
|
70
78
|
},
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
style={
|
|
74
|
-
{
|
|
75
|
-
"flex": 1,
|
|
76
|
-
"flexDirection": "row",
|
|
77
|
-
"height": "100%",
|
|
78
|
-
"transform": [
|
|
79
|
-
{
|
|
80
|
-
"translateX": 0,
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
"width": 600,
|
|
84
|
-
}
|
|
79
|
+
]
|
|
85
80
|
}
|
|
86
81
|
testID="carousel-track"
|
|
87
82
|
>
|
|
88
83
|
<View
|
|
89
|
-
collapsable={false}
|
|
90
|
-
jestAnimatedStyle={
|
|
91
|
-
{
|
|
92
|
-
"value": {},
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
84
|
style={
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
85
|
+
[
|
|
86
|
+
{
|
|
87
|
+
"flex": 1,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"width": 300,
|
|
91
|
+
},
|
|
92
|
+
]
|
|
100
93
|
}
|
|
101
94
|
testID="carousel-item"
|
|
102
95
|
>
|
|
@@ -213,14 +206,6 @@ exports[`ProductVariantSlider matches the snapshot 1`] = `
|
|
|
213
206
|
</View>
|
|
214
207
|
</View>
|
|
215
208
|
<Image
|
|
216
|
-
collapsable={false}
|
|
217
|
-
jestAnimatedStyle={
|
|
218
|
-
{
|
|
219
|
-
"value": {
|
|
220
|
-
"opacity": 0,
|
|
221
|
-
},
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
209
|
onLoad={[Function]}
|
|
225
210
|
resizeMode="stretch"
|
|
226
211
|
source={
|
|
@@ -229,14 +214,19 @@ exports[`ProductVariantSlider matches the snapshot 1`] = `
|
|
|
229
214
|
}
|
|
230
215
|
}
|
|
231
216
|
style={
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
217
|
+
[
|
|
218
|
+
{
|
|
219
|
+
"flex": 1,
|
|
220
|
+
"height": "100%",
|
|
221
|
+
"position": "absolute",
|
|
222
|
+
"width": "100%",
|
|
223
|
+
"zIndex": 10,
|
|
224
|
+
},
|
|
225
|
+
undefined,
|
|
226
|
+
{
|
|
227
|
+
"opacity": 0,
|
|
228
|
+
},
|
|
229
|
+
]
|
|
240
230
|
}
|
|
241
231
|
testID="lazy-image-main-image"
|
|
242
232
|
/>
|
|
@@ -245,17 +235,15 @@ exports[`ProductVariantSlider matches the snapshot 1`] = `
|
|
|
245
235
|
</View>
|
|
246
236
|
</View>
|
|
247
237
|
<View
|
|
248
|
-
collapsable={false}
|
|
249
|
-
jestAnimatedStyle={
|
|
250
|
-
{
|
|
251
|
-
"value": {},
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
238
|
style={
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
239
|
+
[
|
|
240
|
+
{
|
|
241
|
+
"flex": 1,
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"width": 300,
|
|
245
|
+
},
|
|
246
|
+
]
|
|
259
247
|
}
|
|
260
248
|
testID="carousel-item"
|
|
261
249
|
>
|
|
@@ -372,14 +360,6 @@ exports[`ProductVariantSlider matches the snapshot 1`] = `
|
|
|
372
360
|
</View>
|
|
373
361
|
</View>
|
|
374
362
|
<Image
|
|
375
|
-
collapsable={false}
|
|
376
|
-
jestAnimatedStyle={
|
|
377
|
-
{
|
|
378
|
-
"value": {
|
|
379
|
-
"opacity": 0,
|
|
380
|
-
},
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
363
|
onLoad={[Function]}
|
|
384
364
|
resizeMode="stretch"
|
|
385
365
|
source={
|
|
@@ -388,14 +368,19 @@ exports[`ProductVariantSlider matches the snapshot 1`] = `
|
|
|
388
368
|
}
|
|
389
369
|
}
|
|
390
370
|
style={
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
371
|
+
[
|
|
372
|
+
{
|
|
373
|
+
"flex": 1,
|
|
374
|
+
"height": "100%",
|
|
375
|
+
"position": "absolute",
|
|
376
|
+
"width": "100%",
|
|
377
|
+
"zIndex": 10,
|
|
378
|
+
},
|
|
379
|
+
undefined,
|
|
380
|
+
{
|
|
381
|
+
"opacity": 0,
|
|
382
|
+
},
|
|
383
|
+
]
|
|
399
384
|
}
|
|
400
385
|
testID="lazy-image-main-image"
|
|
401
386
|
/>
|
|
@@ -465,25 +450,21 @@ exports[`ProductVariantSlider matches the snapshot 1`] = `
|
|
|
465
450
|
"selected": true,
|
|
466
451
|
}
|
|
467
452
|
}
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
453
|
+
style={
|
|
454
|
+
[
|
|
455
|
+
{
|
|
456
|
+
"backgroundColor": "#0C0A0A",
|
|
457
|
+
"marginHorizontal": 3,
|
|
458
|
+
},
|
|
459
|
+
{
|
|
472
460
|
"height": 8,
|
|
473
461
|
"opacity": 1,
|
|
474
462
|
"width": 8,
|
|
475
463
|
},
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
"backgroundColor": "#0C0A0A",
|
|
481
|
-
"borderRadius": 8,
|
|
482
|
-
"height": 8,
|
|
483
|
-
"marginHorizontal": 3,
|
|
484
|
-
"opacity": 1,
|
|
485
|
-
"width": 8,
|
|
486
|
-
}
|
|
464
|
+
{
|
|
465
|
+
"borderRadius": 8,
|
|
466
|
+
},
|
|
467
|
+
]
|
|
487
468
|
}
|
|
488
469
|
testID="bullet"
|
|
489
470
|
/>
|
|
@@ -525,25 +506,21 @@ exports[`ProductVariantSlider matches the snapshot 1`] = `
|
|
|
525
506
|
"selected": false,
|
|
526
507
|
}
|
|
527
508
|
}
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
509
|
+
style={
|
|
510
|
+
[
|
|
511
|
+
{
|
|
512
|
+
"backgroundColor": "#0C0A0A",
|
|
513
|
+
"marginHorizontal": 3,
|
|
514
|
+
},
|
|
515
|
+
{
|
|
532
516
|
"height": 8,
|
|
533
517
|
"opacity": 0.3,
|
|
534
518
|
"width": 8,
|
|
535
519
|
},
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
"backgroundColor": "#0C0A0A",
|
|
541
|
-
"borderRadius": 8,
|
|
542
|
-
"height": 8,
|
|
543
|
-
"marginHorizontal": 3,
|
|
544
|
-
"opacity": 0.3,
|
|
545
|
-
"width": 8,
|
|
546
|
-
}
|
|
520
|
+
{
|
|
521
|
+
"borderRadius": 8,
|
|
522
|
+
},
|
|
523
|
+
]
|
|
547
524
|
}
|
|
548
525
|
testID="bullet"
|
|
549
526
|
/>
|