@lookiero/checkout 4.0.1 → 4.0.3
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/domain/checkoutItem/model/currency.d.ts +2 -1
- package/dist/domain/checkoutItem/model/currency.js +1 -0
- package/dist/infrastructure/ui/i18n/translationEndpoint.js +1 -0
- package/dist/projection/shared/country.d.ts +2 -1
- package/dist/projection/shared/country.js +1 -0
- package/dist/projection/shared/locale.d.ts +2 -1
- package/dist/projection/shared/locale.js +1 -0
- package/dist/shared/tracking/infrastructure/useTrackCheckout.js +9 -7
- package/dist/shared/tracking/tracking.d.ts +9 -7
- package/package.json +2 -2
|
@@ -10,6 +10,7 @@ const COUNTRY = {
|
|
|
10
10
|
[Locale.DE]: Country.DE,
|
|
11
11
|
[Locale.AT]: Country.AT,
|
|
12
12
|
[Locale.NL]: Country.NL,
|
|
13
|
+
[Locale.SE]: Country.SE,
|
|
13
14
|
};
|
|
14
15
|
const translationExternalEndpoint = ({ translationsUrl, projects }) => (locale) => {
|
|
15
16
|
const projectsQueryParam = projects
|
|
@@ -18,13 +18,15 @@ const useTrackCheckout = ({ page, country, checkoutId }) => {
|
|
|
18
18
|
sizeChanges: totalReplacedFor,
|
|
19
19
|
isFirstOrder,
|
|
20
20
|
ecommerce: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
checkout: {
|
|
22
|
+
actionField: {
|
|
23
|
+
items: totalCheckoutItemsKept,
|
|
24
|
+
currencyCode,
|
|
25
|
+
subscription,
|
|
26
|
+
coupon,
|
|
27
|
+
orderId: orderNumber,
|
|
28
|
+
value: pendingToPay,
|
|
29
|
+
},
|
|
28
30
|
},
|
|
29
31
|
},
|
|
30
32
|
};
|
|
@@ -91,13 +91,15 @@ interface CheckoutTrackingEvent extends BaseTrackingEvent {
|
|
|
91
91
|
readonly sizeChanges: number;
|
|
92
92
|
readonly isFirstOrder: boolean;
|
|
93
93
|
readonly ecommerce: {
|
|
94
|
-
readonly
|
|
95
|
-
readonly
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
94
|
+
readonly checkout: {
|
|
95
|
+
readonly actionField: {
|
|
96
|
+
readonly items: number;
|
|
97
|
+
readonly currencyCode: Currency;
|
|
98
|
+
readonly subscription: Subscription;
|
|
99
|
+
readonly coupon: string | null;
|
|
100
|
+
readonly orderId: number;
|
|
101
|
+
readonly value: number;
|
|
102
|
+
};
|
|
101
103
|
};
|
|
102
104
|
};
|
|
103
105
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookiero/checkout",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"jest-expo": "^48.0.0",
|
|
111
111
|
"jest-fetch-mock": "^3.0.3",
|
|
112
112
|
"jest-mock-extended": "^3.0.1",
|
|
113
|
-
"lint-staged": "
|
|
113
|
+
"lint-staged": "13.1.2",
|
|
114
114
|
"pino-std-serializers": "^6.0.0",
|
|
115
115
|
"prettier": "^2.7.1",
|
|
116
116
|
"react": "^18.2.0",
|