@reactionary/magento 0.10.55 → 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.
@@ -65,6 +65,7 @@ class MagentoProductSearchFactory {
65
65
  identifier,
66
66
  name,
67
67
  slug,
68
+ canAddToCartDirectly: variants.length === 1,
68
69
  variants,
69
70
  complianceData: this.parseComplianceData(product)
70
71
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactionary/magento",
3
- "version": "0.10.55",
3
+ "version": "0.10.57",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./src/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "url": "git+https://github.com/Solteq/reactionary.git"
10
10
  },
11
11
  "dependencies": {
12
- "@reactionary/core": "0.10.55",
12
+ "@reactionary/core": "0.10.57",
13
13
  "zod": "4.1.9",
14
14
  "debug": "^4.4.3"
15
15
  },
@@ -97,6 +97,7 @@ function buildProductSearchResultItem(config, product) {
97
97
  identifier: { key: getProductKey(product) },
98
98
  name: product.name || product.sku,
99
99
  slug: getCustomAttribute(product, "url_key") ?? getCustomAttribute(product, "url_path") ?? "",
100
+ canAddToCartDirectly: variants.length === 1,
100
101
  variants,
101
102
  complianceData: buildProductComplianceData(product)
102
103
  };