@wix/headless-stores 0.0.20 → 0.0.22
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/astro/actions/package.json +4 -0
- package/cjs/dist/react/Collection.d.ts +0 -2
- package/cjs/dist/react/Collection.js +0 -1
- package/cjs/dist/react/RelatedProducts.d.ts +0 -2
- package/cjs/dist/react/RelatedProducts.js +0 -2
- package/dist/react/Collection.d.ts +0 -2
- package/dist/react/Collection.js +0 -1
- package/dist/react/RelatedProducts.d.ts +0 -2
- package/dist/react/RelatedProducts.js +0 -2
- package/package.json +3 -3
- package/react/package.json +4 -0
- package/server-actions/package.json +4 -0
- package/services/package.json +4 -0
|
@@ -49,8 +49,6 @@ export interface ItemRenderProps {
|
|
|
49
49
|
price: string;
|
|
50
50
|
/** Whether product is available */
|
|
51
51
|
available: boolean;
|
|
52
|
-
/** Product page URL */
|
|
53
|
-
href: string;
|
|
54
52
|
/** Product description */
|
|
55
53
|
description: string;
|
|
56
54
|
/** Function to add product to cart quickly */
|
|
@@ -56,7 +56,6 @@ export const Item = (props) => {
|
|
|
56
56
|
const availabilityStatus = product.inventory?.availabilityStatus;
|
|
57
57
|
const available = availabilityStatus === InventoryAvailabilityStatus.IN_STOCK ||
|
|
58
58
|
availabilityStatus === InventoryAvailabilityStatus.PARTIALLY_OUT_OF_STOCK;
|
|
59
|
-
const href = `/store/example-2/${product.slug}`;
|
|
60
59
|
const description = typeof product.description === "string" ? product.description : "";
|
|
61
60
|
const handleQuickAdd = () => {
|
|
62
61
|
// This would typically add the product to cart
|
|
@@ -68,7 +67,6 @@ export const Item = (props) => {
|
|
|
68
67
|
image,
|
|
69
68
|
price,
|
|
70
69
|
available,
|
|
71
|
-
href,
|
|
72
70
|
description,
|
|
73
71
|
onQuickAdd: handleQuickAdd,
|
|
74
72
|
});
|
package/dist/react/Collection.js
CHANGED
|
@@ -49,8 +49,6 @@ export interface ItemRenderProps {
|
|
|
49
49
|
price: string;
|
|
50
50
|
/** Whether product is available */
|
|
51
51
|
available: boolean;
|
|
52
|
-
/** Product page URL */
|
|
53
|
-
href: string;
|
|
54
52
|
/** Product description */
|
|
55
53
|
description: string;
|
|
56
54
|
/** Function to add product to cart quickly */
|
|
@@ -56,7 +56,6 @@ export const Item = (props) => {
|
|
|
56
56
|
const availabilityStatus = product.inventory?.availabilityStatus;
|
|
57
57
|
const available = availabilityStatus === InventoryAvailabilityStatus.IN_STOCK ||
|
|
58
58
|
availabilityStatus === InventoryAvailabilityStatus.PARTIALLY_OUT_OF_STOCK;
|
|
59
|
-
const href = `/store/example-2/${product.slug}`;
|
|
60
59
|
const description = typeof product.description === "string" ? product.description : "";
|
|
61
60
|
const handleQuickAdd = () => {
|
|
62
61
|
// This would typically add the product to cart
|
|
@@ -68,7 +67,6 @@ export const Item = (props) => {
|
|
|
68
67
|
image,
|
|
69
68
|
price,
|
|
70
69
|
available,
|
|
71
|
-
href,
|
|
72
70
|
description,
|
|
73
71
|
onQuickAdd: handleQuickAdd,
|
|
74
72
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/headless-stores",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "cd ../media && yarn build && cd ../ecom && yarn build",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"@wix/auto_sdk_stores_read-only-variants-v-3": "^1.0.23",
|
|
59
59
|
"@wix/ecom": "^1.0.1238",
|
|
60
60
|
"@wix/essentials": "^0.1.22",
|
|
61
|
-
"@wix/headless-ecom": "^0.0.
|
|
62
|
-
"@wix/headless-media": "^0.0.
|
|
61
|
+
"@wix/headless-ecom": "^0.0.8",
|
|
62
|
+
"@wix/headless-media": "^0.0.5",
|
|
63
63
|
"@wix/redirects": "^1.0.79",
|
|
64
64
|
"@wix/services-definitions": "^0.1.4",
|
|
65
65
|
"@wix/services-manager-react": "^0.1.26"
|