@q2devel/q2-core 1.0.67 → 1.0.69
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/README.md +13 -3
- package/dist/api/cart/Cart.service.d.ts +3 -3
- package/dist/api/cart/Cart.service.d.ts.map +1 -1
- package/dist/api/cart/Cart.service.js +54 -54
- package/dist/api/cart/CartService.types.d.ts.map +1 -1
- package/dist/api/checkout/Checkout.service.d.ts.map +1 -1
- package/dist/api/checkout/Checkout.service.js +16 -4
- package/dist/api/checkout/CheckoutService.types.d.ts.map +1 -1
- package/dist/api/content/getBanners.d.ts.map +1 -1
- package/dist/api/content/getBanners.js +1 -1
- package/dist/api/content/getBlog.d.ts +1 -1
- package/dist/api/content/getBlog.d.ts.map +1 -1
- package/dist/api/content/getBlog.js +7 -2
- package/dist/api/getTerms.d.ts.map +1 -1
- package/dist/api/getTerms.js +6 -1
- package/dist/api/pages/branch/branch.service.d.ts.map +1 -1
- package/dist/api/pages/branch/branchService.types.d.ts.map +1 -1
- package/dist/api/pages/faq/faq.service.d.ts.map +1 -1
- package/dist/api/pages/faq/faqService.types.d.ts.map +1 -1
- package/dist/api/pages/page/page.service.js +5 -5
- package/dist/api/pages/page/pageService.types.d.ts.map +1 -1
- package/dist/api/products/getProducts.d.ts +2 -2
- package/dist/api/products/getProducts.d.ts.map +1 -1
- package/dist/api/products/getProducts.js +33 -33
- package/dist/api/products/product-detail/QuestionForm.service.d.ts +2 -2
- package/dist/api/products/product-detail/QuestionForm.service.d.ts.map +1 -1
- package/dist/api/user/getUser/user.service.d.ts.map +1 -1
- package/dist/api/user/getUser/user.service.js +3 -1
- package/dist/api/user/register/Register.service.d.ts.map +1 -1
- package/dist/api/user/register/RegisterService.types.d.ts.map +1 -1
- package/dist/api/user/resetPassword/resetPassword.service.d.ts.map +1 -1
- package/dist/api/user/resetPassword/resetPasswordSevice.types.d.ts.map +1 -1
- package/dist/api/wishlist/Wishlist.service.d.ts.map +1 -1
- package/dist/api/wishlist/Wishlist.service.js +6 -1
- package/dist/auth/auth/auth.d.ts.map +1 -1
- package/dist/auth/context/AuthContext.d.ts.map +1 -1
- package/dist/auth/context/AuthContext.js +3 -2
- package/dist/auth/hooks/useCurrentUser.d.ts.map +1 -1
- package/dist/auth/hooks/useCurrentUser.js +2 -2
- package/dist/auth/hooks/useSignIn.d.ts.map +1 -1
- package/dist/auth/hooks/useSignIn.js +5 -1
- package/dist/auth/hooks/useUrlModal.d.ts.map +1 -1
- package/dist/auth/hooks/useUrlModal.js +3 -1
- package/dist/auth/services/user.service.d.ts.map +1 -1
- package/dist/auth/services/user.service.js +5 -3
- package/dist/context/cart/BasketContext.d.ts +1 -1
- package/dist/context/cart/BasketContext.d.ts.map +1 -1
- package/dist/context/cart/BasketContext.js +6 -4
- package/dist/context.d.ts.map +1 -1
- package/dist/hooks/cart/api/useAddToCart.d.ts.map +1 -1
- package/dist/hooks/cart/api/useClearCart.d.ts.map +1 -1
- package/dist/hooks/cart/api/useDeleteCartItem.d.ts.map +1 -1
- package/dist/hooks/cart/api/useGetCartToken.d.ts.map +1 -1
- package/dist/hooks/cart/api/useGetCurrentCart.d.ts.map +1 -1
- package/dist/hooks/cart/api/useGetOrderHistory.d.ts.map +1 -1
- package/dist/hooks/cart/api/useGetUserCart.d.ts.map +1 -1
- package/dist/hooks/cart/api/useUpdateCart.d.ts.map +1 -1
- package/dist/hooks/cart/api/useUpdateCart.js +6 -2
- package/dist/hooks/checkout/useUpdateCheckout.d.ts.map +1 -1
- package/dist/hooks/checkout/useUpdateCheckout.js +2 -2
- package/dist/hooks/user/useGetUser.d.ts.map +1 -1
- package/dist/hooks/wishlist/api/useAddToWishlist.d.ts.map +1 -1
- package/dist/hooks/wishlist/api/useCreateWishlist.d.ts.map +1 -1
- package/dist/hooks/wishlist/api/useGetWishlistItems.d.ts.map +1 -1
- package/dist/hooks/wishlist/api/useGetWishlistList.d.ts.map +1 -1
- package/dist/hooks/wishlist/api/useGetWishlistList.js +3 -1
- package/dist/hooks/wishlist/useWishlist.d.ts.map +1 -1
- package/dist/hooks/wishlist/useWishlist.js +10 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/types/Term.d.ts.map +1 -1
- package/dist/types/content/Banners.d.ts.map +1 -1
- package/dist/types/content/Blog.d.ts +1 -1
- package/dist/types/products/Product.d.ts.map +1 -1
- package/dist/utils/generalHelper.d.ts.map +1 -1
- package/dist/utils/generalHelper.js +3 -1
- package/dist/utils/mapIncludedResources.d.ts.map +1 -1
- package/dist/utils/mapProducts.d.ts +1 -1
- package/dist/utils/mapProducts.d.ts.map +1 -1
- package/dist/utils/mapProducts.js +25 -18
- package/package.json +36 -36
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Product.d.ts","sourceRoot":"","sources":["../../../types/products/Product.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG;
|
|
1
|
+
{"version":3,"file":"Product.d.ts","sourceRoot":"","sources":["../../../types/products/Product.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generalHelper.d.ts","sourceRoot":"","sources":["../../utils/generalHelper.ts"],"names":[],"mappings":"AAAA,UAAU,KAAK;
|
|
1
|
+
{"version":3,"file":"generalHelper.d.ts","sourceRoot":"","sources":["../../utils/generalHelper.ts"],"names":[],"mappings":"AAAA,UAAU,KAAK;IACX,MAAM,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,kBAAkB,CAC9B,KAAK,CAAC,EAAE,KAAK,EACb,SAAS,CAAC,EAAE,KAAK,GAClB,MAAM,GAAG,IAAI,CAWf;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM;;;SAe1C;AAED,eAAO,MAAM,iBAAiB,QAAO,MAEpC,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,QAAQ,MAAM,WAexD,CAAA"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export function getDiscountPercent(price, listPrice) {
|
|
2
|
-
if (!price?.number ||
|
|
2
|
+
if (!price?.number ||
|
|
3
|
+
!listPrice?.number ||
|
|
4
|
+
listPrice.number === price.number) {
|
|
3
5
|
return 0;
|
|
4
6
|
}
|
|
5
7
|
const discount = ((price.number - listPrice.number) / price.number) * 100;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapIncludedResources.d.ts","sourceRoot":"","sources":["../../utils/mapIncludedResources.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC/B,aAAa,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"mapIncludedResources.d.ts","sourceRoot":"","sources":["../../utils/mapIncludedResources.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC/B,aAAa,CAAC,EAAE,MAAM,CAClB,MAAM,EACN;QACI,IAAI,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,GAAG;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KACtE,CACJ,CAAA;CACJ,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC1B,IAAI,EAAE,eAAe,EAAE,GAAG,eAAe,CAAA;IACzC,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAA;CAC/B,CAAA;AAED,wBAAgB,oBAAoB,CAAC,CAAC,GAAG,GAAG,EACxC,IAAI,EAAE,eAAe,EACrB,QAAQ,SAAI,GACb,CAAC,EAAE,CAkDL;AAED,eAAe,oBAAoB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Product } from
|
|
1
|
+
import { Product } from '../types/products/Product';
|
|
2
2
|
export declare function mapProduct(defaultProduct: any, variationProduct: any, ctx: any): Product;
|
|
3
3
|
export declare function mapProductLite(defaultProduct: any, variationProduct: any, ctx: any): any;
|
|
4
4
|
//# sourceMappingURL=mapProducts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapProducts.d.ts","sourceRoot":"","sources":["../../utils/mapProducts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAuB,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"mapProducts.d.ts","sourceRoot":"","sources":["../../utils/mapProducts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAuB,MAAM,2BAA2B,CAAA;AAgLxE,wBAAgB,UAAU,CACtB,cAAc,EAAE,GAAG,EACnB,gBAAgB,EAAE,GAAG,EACrB,GAAG,EAAE,GAAG,GACT,OAAO,CAeT;AAED,wBAAgB,cAAc,CAC1B,cAAc,EAAE,GAAG,EACnB,gBAAgB,EAAE,GAAG,EACrB,GAAG,EAAE,GAAG,GACT,GAAG,CAKL"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDiscountPercent } from
|
|
1
|
+
import { getDiscountPercent } from '../utils/generalHelper';
|
|
2
2
|
function getImageUrl(img) {
|
|
3
3
|
if (img?.field_media_image?.uri?.url) {
|
|
4
4
|
return img.field_media_image.uri.url;
|
|
@@ -9,30 +9,30 @@ function getImageUrl(img) {
|
|
|
9
9
|
if (img?.uri) {
|
|
10
10
|
return img.uri;
|
|
11
11
|
}
|
|
12
|
-
return
|
|
12
|
+
return '';
|
|
13
13
|
}
|
|
14
14
|
function mapImages(images, ctx) {
|
|
15
15
|
const imagesArray = Array.isArray(images) ? images : images ? [images] : [];
|
|
16
16
|
if (imagesArray.length === 0) {
|
|
17
|
-
return [{ href: ctx.logoUrl ||
|
|
17
|
+
return [{ href: ctx.logoUrl || '/logo.png', alt: 'Q2' }];
|
|
18
18
|
}
|
|
19
19
|
const result = imagesArray.map((img) => {
|
|
20
20
|
const imageUrl = getImageUrl(img);
|
|
21
21
|
if (!imageUrl) {
|
|
22
22
|
return {
|
|
23
|
-
href: ctx.logoUrl ||
|
|
24
|
-
alt: img.name ??
|
|
23
|
+
href: ctx.logoUrl || '/logo.png',
|
|
24
|
+
alt: img.name ?? 'Image',
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
if (imageUrl.startsWith(
|
|
27
|
+
if (imageUrl.startsWith('http')) {
|
|
28
28
|
return {
|
|
29
29
|
href: imageUrl,
|
|
30
|
-
alt: img.name ??
|
|
30
|
+
alt: img.name ?? 'Image',
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
34
|
href: ctx.makeAbsoluteUrl(imageUrl),
|
|
35
|
-
alt: img.name ??
|
|
35
|
+
alt: img.name ?? 'Image',
|
|
36
36
|
};
|
|
37
37
|
});
|
|
38
38
|
return result;
|
|
@@ -45,11 +45,13 @@ function mapVariations(variations = []) {
|
|
|
45
45
|
id: v.drupal_internal__variation_id,
|
|
46
46
|
title: v.title,
|
|
47
47
|
sku: v.sku,
|
|
48
|
-
price: v?.list_price?.number
|
|
48
|
+
price: v?.list_price?.number
|
|
49
|
+
? v.list_price.number
|
|
50
|
+
: (v.price?.number ?? 0),
|
|
49
51
|
discountPercentVariation,
|
|
50
52
|
ean: v.field_ean,
|
|
51
53
|
stock: v?.field_stock_level?.available_stock ?? 0,
|
|
52
|
-
href:
|
|
54
|
+
href: '',
|
|
53
55
|
};
|
|
54
56
|
});
|
|
55
57
|
}
|
|
@@ -63,10 +65,10 @@ function mapProductBase(defaultProduct, variationProduct, ctx) {
|
|
|
63
65
|
const discountPercent = getDiscountPercent(variationProduct.price, variationProduct.list_price);
|
|
64
66
|
const badges = [
|
|
65
67
|
...(variationProduct.field_news
|
|
66
|
-
? [{ text:
|
|
68
|
+
? [{ text: 'Novinka', color: 'bg-green-100 text-green-800' }]
|
|
67
69
|
: []),
|
|
68
70
|
...(variationProduct.field_aftersale
|
|
69
|
-
? [{ text:
|
|
71
|
+
? [{ text: 'Doprodej', color: 'bg-red-100 text-red-800' }]
|
|
70
72
|
: []),
|
|
71
73
|
];
|
|
72
74
|
return {
|
|
@@ -76,15 +78,15 @@ function mapProductBase(defaultProduct, variationProduct, ctx) {
|
|
|
76
78
|
variation_name: variationProduct.title,
|
|
77
79
|
sku: variationProduct.sku,
|
|
78
80
|
ean: variationProduct.field_ean,
|
|
79
|
-
description: defaultProduct.field_description?.processed ??
|
|
81
|
+
description: defaultProduct.field_description?.processed ?? '',
|
|
80
82
|
price: variationProduct?.list_price?.number
|
|
81
83
|
? variationProduct.list_price.number
|
|
82
|
-
: variationProduct.price?.number ?? 0,
|
|
84
|
+
: (variationProduct.price?.number ?? 0),
|
|
83
85
|
discountPercent,
|
|
84
86
|
product_id: defaultProduct.drupal_internal__product_id,
|
|
85
87
|
product_name: defaultProduct.title,
|
|
86
88
|
changed: variationProduct.changed,
|
|
87
|
-
category: defaultProduct.field_category ??
|
|
89
|
+
category: defaultProduct.field_category ?? '',
|
|
88
90
|
variation_images: mapImages(variationImages, ctx),
|
|
89
91
|
default_images: mapImages(defaultImages, ctx),
|
|
90
92
|
all_images: mapImages(allImages, ctx),
|
|
@@ -100,7 +102,9 @@ function mapProductBase(defaultProduct, variationProduct, ctx) {
|
|
|
100
102
|
...(variationProduct.packaging
|
|
101
103
|
? { packaging: variationProduct.packaging }
|
|
102
104
|
: {}),
|
|
103
|
-
...(variationProduct.country
|
|
105
|
+
...(variationProduct.country
|
|
106
|
+
? { country: variationProduct.country }
|
|
107
|
+
: {}),
|
|
104
108
|
...(variationProduct.weight &&
|
|
105
109
|
variationProduct.weight.number &&
|
|
106
110
|
variationProduct.weight.unit
|
|
@@ -123,7 +127,9 @@ function mapProductBase(defaultProduct, variationProduct, ctx) {
|
|
|
123
127
|
? { field_composition: variationProduct.field_composition }
|
|
124
128
|
: {}),
|
|
125
129
|
...(variationProduct.field_nutritional_info
|
|
126
|
-
? {
|
|
130
|
+
? {
|
|
131
|
+
field_nutritional_info: variationProduct.field_nutritional_info,
|
|
132
|
+
}
|
|
127
133
|
: {}),
|
|
128
134
|
...(variationProduct.field_species
|
|
129
135
|
? { field_species: variationProduct.field_species }
|
|
@@ -136,7 +142,8 @@ function mapProductBase(defaultProduct, variationProduct, ctx) {
|
|
|
136
142
|
field_manufacturer: {
|
|
137
143
|
name: defaultProduct.field_manufacturer.name,
|
|
138
144
|
status: defaultProduct.field_manufacturer.status,
|
|
139
|
-
description: defaultProduct.field_manufacturer.description
|
|
145
|
+
description: defaultProduct.field_manufacturer.description
|
|
146
|
+
.processed,
|
|
140
147
|
field_image: mapImages(defaultProduct.field_manufacturer.field_image, ctx),
|
|
141
148
|
},
|
|
142
149
|
}
|
package/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
"name": "@q2devel/q2-core",
|
|
3
|
+
"version": "1.0.69",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"prepare": "npm run build",
|
|
15
|
+
"prepublishOnly": "npm version patch && npm run build",
|
|
16
|
+
"publish:patch": "npm publish",
|
|
17
|
+
"publish:minor": "npm version minor && npm run build && npm publish",
|
|
18
|
+
"publish:major": "npm version major && npm run build && npm publish"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/js-cookie": "^3.0.6",
|
|
26
|
+
"@types/jwt-decode": "^2.2.1",
|
|
27
|
+
"@types/react": "^19.1.7",
|
|
28
|
+
"@types/react-dom": "^19.1.6",
|
|
29
|
+
"typescript": "^5.8.3"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@tanstack/react-query": "^5.80.6",
|
|
33
|
+
"axios": "^1.9.0",
|
|
34
|
+
"drupal-jsonapi-params": "^2.3.2",
|
|
35
|
+
"js-cookie": "^3.0.5",
|
|
36
|
+
"jwt-decode": "^4.0.0",
|
|
37
|
+
"react": "^19.1.0"
|
|
10
38
|
}
|
|
11
|
-
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsc",
|
|
14
|
-
"prepare": "npm run build",
|
|
15
|
-
"prepublishOnly": "npm version patch && npm run build",
|
|
16
|
-
"publish:patch": "npm publish",
|
|
17
|
-
"publish:minor": "npm version minor && npm run build && npm publish",
|
|
18
|
-
"publish:major": "npm version major && npm run build && npm publish"
|
|
19
|
-
},
|
|
20
|
-
"files": [
|
|
21
|
-
"dist"
|
|
22
|
-
],
|
|
23
|
-
"license": "MIT",
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@types/js-cookie": "^3.0.6",
|
|
26
|
-
"@types/jwt-decode": "^2.2.1",
|
|
27
|
-
"@types/react": "^19.1.7",
|
|
28
|
-
"@types/react-dom": "^19.1.6",
|
|
29
|
-
"typescript": "^5.8.3"
|
|
30
|
-
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@tanstack/react-query": "^5.80.6",
|
|
33
|
-
"axios": "^1.9.0",
|
|
34
|
-
"drupal-jsonapi-params": "^2.3.2",
|
|
35
|
-
"js-cookie": "^3.0.5",
|
|
36
|
-
"jwt-decode": "^4.0.0",
|
|
37
|
-
"react": "^19.1.0"
|
|
38
|
-
}
|
|
39
39
|
}
|