@lookiero/checkout 9.9.0-beta.0 → 9.9.0-beta.1
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/infrastructure/ui/views/checkout/Checkout.js +5 -2
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.d.ts +3 -0
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.js +3 -0
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +3 -3
- package/src/infrastructure/ui/views/checkout/Checkout.style.ts +3 -0
- package/src/infrastructure/ui/views/checkout/Checkout.tsx +12 -3
|
@@ -4,6 +4,7 @@ import { useNavigate } from "react-router-native";
|
|
|
4
4
|
import { Box, Button, Layout as AuroraLayout, Spinner, Text, useDevice } from "@lookiero/aurora";
|
|
5
5
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
6
6
|
import { QueryStatus } from "@lookiero/messaging-react";
|
|
7
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
7
8
|
import { Sticky } from "@lookiero/sty-psp-ui";
|
|
8
9
|
import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
|
|
9
10
|
import { useViewFirstAvailableCheckoutByCustomerId } from "../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
|
|
@@ -77,13 +78,15 @@ const Checkout = ({ children, layout: Layout, useRedirect }) => {
|
|
|
77
78
|
React.createElement(AuroraLayout, { fullWidth: !screen.L, style: [screen.L && style.desktopLayoutSpacing, !screen.L && { paddingBottom: pricingHeight }] },
|
|
78
79
|
React.createElement(Box, { size: { L: "2/3" }, style: screen.L && style.desktopListSpacing },
|
|
79
80
|
React.createElement(View, { style: [style.contentWrapper, screen.L && style.desktopContentWrapper] },
|
|
81
|
+
country === Country.NL && (React.createElement(View, { style: style.paymentSelectorNL },
|
|
82
|
+
React.createElement(PaymentInstrument, { useRedirect: useRedirect }))),
|
|
80
83
|
React.createElement(Text, { level: 3, style: style.title, heading: true }, titleText),
|
|
81
84
|
checkoutItemsKept?.map((checkoutItem) => (React.createElement(View, { key: checkoutItem.id, testID: "checkout-items-kept" },
|
|
82
85
|
React.createElement(ProductVariant, { brand: checkoutItem.productVariant.brand, color: checkoutItem.productVariant.color, country: country, media: checkoutItem.productVariant.media, name: checkoutItem.productVariant.name, price: checkoutItem.price, status: checkoutItem.status, size: checkoutItem.status === CheckoutItemStatus.REPLACED && checkoutItem.replacedFor
|
|
83
86
|
? checkoutItem.replacedFor.size
|
|
84
87
|
: checkoutItem.productVariant.size })))),
|
|
85
|
-
React.createElement(View, { style: style.paymentSelector },
|
|
86
|
-
React.createElement(PaymentInstrument, { useRedirect: useRedirect })))),
|
|
88
|
+
country !== Country.NL && (React.createElement(View, { style: style.paymentSelector },
|
|
89
|
+
React.createElement(PaymentInstrument, { useRedirect: useRedirect }))))),
|
|
87
90
|
React.createElement(Box, { size: { L: "1/3" }, style: [style.resume, screen.L && style.desktopResume] }, pricing ? (React.createElement(View, { style: [style.princingWrapper, !screen.L && style.princingWrapperSmall] },
|
|
88
91
|
React.createElement(Pricing, { pricing: pricing, totalCheckoutItemsKept: checkoutItemsKept?.length || 0 }),
|
|
89
92
|
screen.L ? (React.createElement(Button, { testID: "confirm-checkout-button", onPress: handleOnSubmit }, submitButtonText)) : null)) : null))),
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "9.9.0-beta.
|
|
1
|
+
export declare const VERSION = "9.9.0-beta.1";
|
package/dist/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "9.9.0-beta.
|
|
1
|
+
export const VERSION = "9.9.0-beta.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookiero/checkout",
|
|
3
|
-
"version": "9.9.0-beta.
|
|
3
|
+
"version": "9.9.0-beta.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"sideEffects": "false",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@cypress/webpack-preprocessor": "^6.0.2",
|
|
47
47
|
"@lookiero/eslint-config-sty-psp": "*",
|
|
48
48
|
"@lookiero/event": "^0.3",
|
|
49
|
-
"@lookiero/payments-front": "
|
|
49
|
+
"@lookiero/payments-front": "7.0.0-LK-37736-2025.2.12.160011",
|
|
50
50
|
"@lookiero/sty-psp-jest-config": "*",
|
|
51
51
|
"@lookiero/sty-psp-prettier-config": "*",
|
|
52
52
|
"@lookiero/sty-psp-scripts": "*",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@lookiero/event": "^0.3",
|
|
77
77
|
"@lookiero/i18n": ">=0.9",
|
|
78
78
|
"@lookiero/i18n-react": ">=0.9",
|
|
79
|
-
"@lookiero/payments-front": "
|
|
79
|
+
"@lookiero/payments-front": "7.0.0-LK-37736-2025.2.12.160011",
|
|
80
80
|
"apollo-boost": "0.4.4",
|
|
81
81
|
"expo": ">=51",
|
|
82
82
|
"expo-font": ">=12",
|
|
@@ -4,6 +4,7 @@ import { useNavigate } from "react-router-native";
|
|
|
4
4
|
import { Box, Button, Layout as AuroraLayout, Spinner, Text, useDevice } from "@lookiero/aurora";
|
|
5
5
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
6
6
|
import { QueryStatus } from "@lookiero/messaging-react";
|
|
7
|
+
import { Country } from "@lookiero/sty-psp-locale";
|
|
7
8
|
import { Layout as UiLayout, Sticky } from "@lookiero/sty-psp-ui";
|
|
8
9
|
import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
|
|
9
10
|
import { useViewFirstAvailableCheckoutByCustomerId } from "../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
|
|
@@ -116,6 +117,12 @@ const Checkout: FC<CheckoutProps> = ({ children, layout: Layout, useRedirect })
|
|
|
116
117
|
>
|
|
117
118
|
<Box size={{ L: "2/3" }} style={screen.L && style.desktopListSpacing}>
|
|
118
119
|
<View style={[style.contentWrapper, screen.L && style.desktopContentWrapper]}>
|
|
120
|
+
{country === Country.NL && (
|
|
121
|
+
<View style={style.paymentSelectorNL}>
|
|
122
|
+
<PaymentInstrument useRedirect={useRedirect} />
|
|
123
|
+
</View>
|
|
124
|
+
)}
|
|
125
|
+
|
|
119
126
|
<Text level={3} style={style.title} heading>
|
|
120
127
|
{titleText}
|
|
121
128
|
</Text>
|
|
@@ -139,9 +146,11 @@ const Checkout: FC<CheckoutProps> = ({ children, layout: Layout, useRedirect })
|
|
|
139
146
|
</View>
|
|
140
147
|
))}
|
|
141
148
|
|
|
142
|
-
|
|
143
|
-
<
|
|
144
|
-
|
|
149
|
+
{country !== Country.NL && (
|
|
150
|
+
<View style={style.paymentSelector}>
|
|
151
|
+
<PaymentInstrument useRedirect={useRedirect} />
|
|
152
|
+
</View>
|
|
153
|
+
)}
|
|
145
154
|
</View>
|
|
146
155
|
</Box>
|
|
147
156
|
|