@lookiero/checkout 12.10.0 → 12.11.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/src/ExpoRoot.js +3 -3
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +6 -1
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +7 -4
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.js +7 -4
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +1 -1
- package/src/ExpoRoot.tsx +3 -3
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.ts +7 -4
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +8 -1
package/dist/src/ExpoRoot.js
CHANGED
|
@@ -18,7 +18,7 @@ import { root } from "./infrastructure/ui/Root";
|
|
|
18
18
|
import { DOMAIN } from "./infrastructure/ui/i18n/i18n";
|
|
19
19
|
import { Router } from "./infrastructure/ui/routing/router/Router";
|
|
20
20
|
import { VERSION } from "./version";
|
|
21
|
-
const tradename = Tradename.
|
|
21
|
+
const tradename = Tradename.OUTFITTERY;
|
|
22
22
|
const theme = themeByTradename({ tradename });
|
|
23
23
|
const locale = Locale.es_ES;
|
|
24
24
|
const subscription = "b";
|
|
@@ -28,7 +28,7 @@ const order = {
|
|
|
28
28
|
coupon: "MYLOOKIERO",
|
|
29
29
|
};
|
|
30
30
|
const customer = {
|
|
31
|
-
customerId: "
|
|
31
|
+
customerId: "cee70989-f605-4930-8190-71e3e2502fa1",
|
|
32
32
|
country: Country.NL,
|
|
33
33
|
segment: Segment.WOMEN,
|
|
34
34
|
email: "email@example.com",
|
|
@@ -45,7 +45,7 @@ const apiUrl = Platform.OS !== "web"
|
|
|
45
45
|
: __DEV__
|
|
46
46
|
? "/local-to-dev"
|
|
47
47
|
: "/checkout/api";
|
|
48
|
-
const authToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
48
|
+
const authToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjU2NTIwMjgsImV4cCI6MTc1NzMxOTgyNSwiZGlzcGxheU5hbWUiOiJUZXN0aW5nIiwiY291bnRyeV9jb2RlIjoiRVMiLCJhY2Nlc3NWaWEiOiJlbWFpbCIsInN1YnNjcmlwdGlvblN0YXJ0aW5nRGF0ZSI6IjIwMjQtMTEtMTgiLCJpbXBlcnNvbmF0ZWQiOmZhbHNlLCJ1dWlkIjoiOTQxM2ZlM2EtMDlmYy00MjY0LTkwNWUtMDQwYmI3YjRjYTc1IiwidHJhZGVuYW1lIjoiTE9PS0lFUk8iLCJpYXQiOjE3NTQ2NDE0MjV9.n9OBM8mV1HoEzwg1v60XSjcgFythcrBRty1mcpE7KDM";
|
|
49
49
|
const getAuthToken = () => Promise.resolve(authToken);
|
|
50
50
|
const externalTranslationsUrl = Platform.OS !== "web"
|
|
51
51
|
? "https://backend-for-user.dev.envs.lookiero.tech/api/v2/translations"
|
|
@@ -8,6 +8,7 @@ import { useI18nMessage } from "@lookiero/i18n-react";
|
|
|
8
8
|
import { CommandStatus } from "@lookiero/messaging-react";
|
|
9
9
|
import { useLogger } from "@lookiero/sty-psp-logging";
|
|
10
10
|
import { useScreenSize } from "@lookiero/sty-psp-ui";
|
|
11
|
+
import { Tradename } from "@lookiero/sty-sp-tradename";
|
|
11
12
|
import { ReturnQuestionType } from "../../../../../../projection/returnQuestion/returnQuestion.constants";
|
|
12
13
|
import { useReturnCheckoutItem } from "../../../../../domain/checkoutItem/react/useReturnCheckoutItem";
|
|
13
14
|
import { useListReturnQuestionsByCheckoutItemId } from "../../../../../projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId";
|
|
@@ -114,7 +115,11 @@ const ReturnQuestionsForm = ({ checkout, checkoutItem, country, layout: Layout,
|
|
|
114
115
|
React.createElement(View, { style: style.background },
|
|
115
116
|
React.createElement(AuroraLayout, { fullWidth: !isDektopScreen, style: [style.layout, isDektopScreen ? style.desktopLayoutSpacing : undefined] },
|
|
116
117
|
React.createElement(Box, { size: { L: "2/3" } },
|
|
117
|
-
React.createElement(View, { style: [
|
|
118
|
+
React.createElement(View, { style: [
|
|
119
|
+
style.info,
|
|
120
|
+
!isMobileScreen && style.infoDesktop,
|
|
121
|
+
tradename === Tradename.OUTFITTERY && style.infoOutfittery,
|
|
122
|
+
] },
|
|
118
123
|
React.createElement(Text, { level: 3, heading: true }, titleText),
|
|
119
124
|
React.createElement(Text, { level: 1, style: style.description, detail: true }, descriptionText)),
|
|
120
125
|
React.createElement(ReturnQuestions, { portalHostName: RETURN_QUESTION_FORM_PORTAL_HOST_NAME, returnQuestions: returnQuestions }),
|
|
@@ -5,10 +5,6 @@ declare const style: () => {
|
|
|
5
5
|
description: {
|
|
6
6
|
color: string;
|
|
7
7
|
};
|
|
8
|
-
desktopInfo: {
|
|
9
|
-
borderTopLeftRadius: number;
|
|
10
|
-
borderTopRightRadius: number;
|
|
11
|
-
};
|
|
12
8
|
desktopLayoutSpacing: {
|
|
13
9
|
paddingVertical: number;
|
|
14
10
|
};
|
|
@@ -26,6 +22,13 @@ declare const style: () => {
|
|
|
26
22
|
paddingHorizontal: number;
|
|
27
23
|
paddingTop: number;
|
|
28
24
|
};
|
|
25
|
+
infoDesktop: {
|
|
26
|
+
borderTopLeftRadius: number;
|
|
27
|
+
borderTopRightRadius: number;
|
|
28
|
+
};
|
|
29
|
+
infoOutfittery: {
|
|
30
|
+
paddingBottom: number;
|
|
31
|
+
};
|
|
29
32
|
layout: {
|
|
30
33
|
flex: number;
|
|
31
34
|
justifyContent: "center";
|
|
@@ -10,10 +10,6 @@ const style = () => {
|
|
|
10
10
|
description: {
|
|
11
11
|
color: colorTextMedium,
|
|
12
12
|
},
|
|
13
|
-
desktopInfo: {
|
|
14
|
-
borderTopLeftRadius: borderRadius5,
|
|
15
|
-
borderTopRightRadius: borderRadius5,
|
|
16
|
-
},
|
|
17
13
|
desktopLayoutSpacing: {
|
|
18
14
|
paddingVertical: space8,
|
|
19
15
|
},
|
|
@@ -31,6 +27,13 @@ const style = () => {
|
|
|
31
27
|
paddingHorizontal: space6,
|
|
32
28
|
paddingTop: space8,
|
|
33
29
|
},
|
|
30
|
+
infoDesktop: {
|
|
31
|
+
borderTopLeftRadius: borderRadius5,
|
|
32
|
+
borderTopRightRadius: borderRadius5,
|
|
33
|
+
},
|
|
34
|
+
infoOutfittery: {
|
|
35
|
+
paddingBottom: 0,
|
|
36
|
+
},
|
|
34
37
|
layout: {
|
|
35
38
|
flex: 1,
|
|
36
39
|
justifyContent: "center",
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "12.
|
|
1
|
+
export declare const VERSION = "12.11.0";
|
package/dist/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "12.
|
|
1
|
+
export const VERSION = "12.11.0";
|
package/package.json
CHANGED
package/src/ExpoRoot.tsx
CHANGED
|
@@ -25,7 +25,7 @@ import { OrderProjection } from "./projection/order/order";
|
|
|
25
25
|
import { SubscriptionProjection } from "./projection/subscription/subscription";
|
|
26
26
|
import { VERSION } from "./version";
|
|
27
27
|
|
|
28
|
-
const tradename = Tradename.
|
|
28
|
+
const tradename = Tradename.OUTFITTERY;
|
|
29
29
|
const theme = themeByTradename({ tradename });
|
|
30
30
|
const locale: Locale = Locale.es_ES;
|
|
31
31
|
|
|
@@ -37,7 +37,7 @@ const order: OrderProjection = {
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
const customer: Customer = {
|
|
40
|
-
customerId: "
|
|
40
|
+
customerId: "cee70989-f605-4930-8190-71e3e2502fa1",
|
|
41
41
|
country: Country.NL,
|
|
42
42
|
segment: Segment.WOMEN,
|
|
43
43
|
email: "email@example.com",
|
|
@@ -58,7 +58,7 @@ const apiUrl =
|
|
|
58
58
|
? "/local-to-dev"
|
|
59
59
|
: "/checkout/api";
|
|
60
60
|
const authToken =
|
|
61
|
-
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
61
|
+
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjU2NTIwMjgsImV4cCI6MTc1NzMxOTgyNSwiZGlzcGxheU5hbWUiOiJUZXN0aW5nIiwiY291bnRyeV9jb2RlIjoiRVMiLCJhY2Nlc3NWaWEiOiJlbWFpbCIsInN1YnNjcmlwdGlvblN0YXJ0aW5nRGF0ZSI6IjIwMjQtMTEtMTgiLCJpbXBlcnNvbmF0ZWQiOmZhbHNlLCJ1dWlkIjoiOTQxM2ZlM2EtMDlmYy00MjY0LTkwNWUtMDQwYmI3YjRjYTc1IiwidHJhZGVuYW1lIjoiTE9PS0lFUk8iLCJpYXQiOjE3NTQ2NDE0MjV9.n9OBM8mV1HoEzwg1v60XSjcgFythcrBRty1mcpE7KDM";
|
|
62
62
|
const getAuthToken = () => Promise.resolve(authToken);
|
|
63
63
|
|
|
64
64
|
const externalTranslationsUrl =
|
|
@@ -12,10 +12,6 @@ const style = () => {
|
|
|
12
12
|
description: {
|
|
13
13
|
color: colorTextMedium,
|
|
14
14
|
},
|
|
15
|
-
desktopInfo: {
|
|
16
|
-
borderTopLeftRadius: borderRadius5,
|
|
17
|
-
borderTopRightRadius: borderRadius5,
|
|
18
|
-
},
|
|
19
15
|
desktopLayoutSpacing: {
|
|
20
16
|
paddingVertical: space8,
|
|
21
17
|
},
|
|
@@ -33,6 +29,13 @@ const style = () => {
|
|
|
33
29
|
paddingHorizontal: space6,
|
|
34
30
|
paddingTop: space8,
|
|
35
31
|
},
|
|
32
|
+
infoDesktop: {
|
|
33
|
+
borderTopLeftRadius: borderRadius5,
|
|
34
|
+
borderTopRightRadius: borderRadius5,
|
|
35
|
+
},
|
|
36
|
+
infoOutfittery: {
|
|
37
|
+
paddingBottom: 0,
|
|
38
|
+
},
|
|
36
39
|
layout: {
|
|
37
40
|
flex: 1,
|
|
38
41
|
justifyContent: "center",
|
package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx
CHANGED
|
@@ -10,6 +10,7 @@ import { Country } from "@lookiero/sty-psp-locale";
|
|
|
10
10
|
import { useLogger } from "@lookiero/sty-psp-logging";
|
|
11
11
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
12
12
|
import { Layout as UiLayout, useScreenSize } from "@lookiero/sty-psp-ui";
|
|
13
|
+
import { Tradename } from "@lookiero/sty-sp-tradename";
|
|
13
14
|
import { CheckoutProjection } from "../../../../../../projection/checkout/checkout";
|
|
14
15
|
import { CheckoutItemProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
|
|
15
16
|
import { ReturnQuestionType } from "../../../../../../projection/returnQuestion/returnQuestion.constants";
|
|
@@ -174,7 +175,13 @@ const ReturnQuestionsForm: FC<ReturnQuestionsFormProps> = ({
|
|
|
174
175
|
style={[style.layout, isDektopScreen ? style.desktopLayoutSpacing : undefined]}
|
|
175
176
|
>
|
|
176
177
|
<Box size={{ L: "2/3" }}>
|
|
177
|
-
<View
|
|
178
|
+
<View
|
|
179
|
+
style={[
|
|
180
|
+
style.info,
|
|
181
|
+
!isMobileScreen && style.infoDesktop,
|
|
182
|
+
tradename === Tradename.OUTFITTERY && style.infoOutfittery,
|
|
183
|
+
]}
|
|
184
|
+
>
|
|
178
185
|
<Text level={3} heading>
|
|
179
186
|
{titleText}
|
|
180
187
|
</Text>
|