@reactionary/medusa 0.10.56 → 0.10.57

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.
@@ -95,6 +95,7 @@ class MedusaProductRecommendationsCapability extends ProductRecommendationsCapab
95
95
  identifier,
96
96
  name,
97
97
  slug,
98
+ canAddToCartDirectly: (_body.variants?.length ?? 0) === 1,
98
99
  variants,
99
100
  complianceData: this.buildProductComplianceData(_body)
100
101
  };
@@ -22,6 +22,7 @@ class MedusaProductAssociationsFactory {
22
22
  identifier,
23
23
  name,
24
24
  slug,
25
+ canAddToCartDirectly: (data.product.variants?.length ?? 0) === 1,
25
26
  variants,
26
27
  complianceData: this.parseComplianceData(data.product)
27
28
  };
@@ -45,6 +45,7 @@ class MedusaProductSearchFactory {
45
45
  name,
46
46
  slug,
47
47
  complianceData,
48
+ canAddToCartDirectly: (data.variants?.length ?? 0) === 1,
48
49
  variants
49
50
  };
50
51
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactionary/medusa",
3
- "version": "0.10.56",
3
+ "version": "0.10.57",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./src/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@medusajs/js-sdk": "^2.13.3",
13
- "@reactionary/core": "0.10.56",
13
+ "@reactionary/core": "0.10.57",
14
14
  "debug": "^4.4.3",
15
15
  "@medusajs/types": "^2.13.3",
16
16
  "zod": "4.1.9"
@@ -35,6 +35,7 @@ export declare class MedusaProductRecommendationsCapability extends ProductRecom
35
35
  };
36
36
  name: string;
37
37
  slug: string;
38
+ canAddToCartDirectly: boolean;
38
39
  variants: ProductSearchResultItemVariant[];
39
40
  complianceData: ProductSearchResultItemComplianceData;
40
41
  };