@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.
@@ -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))),
@@ -24,6 +24,9 @@ declare const style: {
24
24
  paymentSelector: {
25
25
  marginTop: number;
26
26
  };
27
+ paymentSelectorNL: {
28
+ marginBottom: number;
29
+ };
27
30
  princingWrapper: {
28
31
  padding: number;
29
32
  };
@@ -28,6 +28,9 @@ const style = StyleSheet.create({
28
28
  paymentSelector: {
29
29
  marginTop: space6,
30
30
  },
31
+ paymentSelectorNL: {
32
+ marginBottom: space6,
33
+ },
31
34
  princingWrapper: {
32
35
  padding: space6,
33
36
  },
@@ -1 +1 @@
1
- export declare const VERSION = "9.9.0-beta.0";
1
+ export declare const VERSION = "9.9.0-beta.1";
@@ -1 +1 @@
1
- export const VERSION = "9.9.0-beta.0";
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.0",
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": "6.0.3-LK-37736-2025.2.10.151202",
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": "6.0.3-LK-37736-2025.2.10.151202",
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",
@@ -30,6 +30,9 @@ const style = StyleSheet.create({
30
30
  paymentSelector: {
31
31
  marginTop: space6,
32
32
  },
33
+ paymentSelectorNL: {
34
+ marginBottom: space6,
35
+ },
33
36
  princingWrapper: {
34
37
  padding: space6,
35
38
  },
@@ -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
- <View style={style.paymentSelector}>
143
- <PaymentInstrument useRedirect={useRedirect} />
144
- </View>
149
+ {country !== Country.NL && (
150
+ <View style={style.paymentSelector}>
151
+ <PaymentInstrument useRedirect={useRedirect} />
152
+ </View>
153
+ )}
145
154
  </View>
146
155
  </Box>
147
156