@plasmicpkgs/commerce-shopify 0.0.129 → 0.0.131
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/commerce-shopify.cjs.development.js +2 -2
- package/dist/commerce-shopify.cjs.development.js.map +1 -1
- package/dist/commerce-shopify.cjs.production.min.js.map +1 -1
- package/dist/commerce-shopify.esm.js +2 -2
- package/dist/commerce-shopify.esm.js.map +1 -1
- package/dist/product/use-search.d.ts +4 -4
- package/package.json +6 -7
|
@@ -1414,7 +1414,7 @@ var handler = {
|
|
|
1414
1414
|
// filter on client when brandId & categoryId are set since is not available on collection product query
|
|
1415
1415
|
products = brandId ? (_data$node = data.node) == null ? void 0 : (_data$node$products = _data$node.products) == null ? void 0 : (_data$node$products$e = _data$node$products.edges) == null ? void 0 : _data$node$products$e.filter(function (_ref2) {
|
|
1416
1416
|
var vendor = _ref2.node.vendor;
|
|
1417
|
-
return vendor.replace(/\s+/g,
|
|
1417
|
+
return vendor.replace(/\s+/g, "-").toLowerCase() === ("" + brandId).toLowerCase();
|
|
1418
1418
|
}).slice(0, input.count) : (_data$node2 = data.node) == null ? void 0 : (_data$node2$products = _data$node2.products) == null ? void 0 : _data$node2$products.edges.slice(0, input.count);
|
|
1419
1419
|
_context.next = 15;
|
|
1420
1420
|
break;
|
|
@@ -1451,7 +1451,7 @@ var handler = {
|
|
|
1451
1451
|
input = {};
|
|
1452
1452
|
}
|
|
1453
1453
|
return useData({
|
|
1454
|
-
input: [[
|
|
1454
|
+
input: [["search", input.search], ["categoryId", input.categoryId], ["brandId", input.brandId], ["sort", input.sort], ["locale", input.locale], ["count", input.count]],
|
|
1455
1455
|
swrOptions: _extends({
|
|
1456
1456
|
revalidateOnFocus: false
|
|
1457
1457
|
}, input.swrOptions)
|