@sledge-app/react-instant-search 0.0.127 → 0.0.128
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.
|
@@ -2412,7 +2412,7 @@ const ProductGrid = ({
|
|
|
2412
2412
|
currency,
|
|
2413
2413
|
price
|
|
2414
2414
|
] }) }) : null,
|
|
2415
|
-
show_vendor ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__product-grid-badge-vendor", children: [
|
|
2415
|
+
show_vendor && vendor ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge__product-grid-badge-vendor", children: [
|
|
2416
2416
|
"Vendor: ",
|
|
2417
2417
|
(vendor == null ? void 0 : vendor.length) > 5 ? `${String(vendor).substring(0, 5)}...` : vendor
|
|
2418
2418
|
] }) : null
|
|
@@ -2439,7 +2439,7 @@ const ProductGrid = ({
|
|
|
2439
2439
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "sledge__product-grid-card-product-name", style: display_product_name_style, children: title })
|
|
2440
2440
|
}
|
|
2441
2441
|
) : null,
|
|
2442
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__product-grid-card-text", children: show_sku ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
2442
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__product-grid-card-text", children: show_sku && sku ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
2443
2443
|
"SKU: ",
|
|
2444
2444
|
sku
|
|
2445
2445
|
] }) : null })
|
|
@@ -4732,7 +4732,7 @@ const SearchWidget = (props) => {
|
|
|
4732
4732
|
if (!isRenderAppInstantSearch)
|
|
4733
4733
|
return;
|
|
4734
4734
|
handleSettings(localStorage.getItem(LOCAL_STORAGE_KEY.INSTANT_SEARCH_SETTING) || null);
|
|
4735
|
-
}, [
|
|
4735
|
+
}, [isRenderAppInstantSearch]);
|
|
4736
4736
|
React__default.useEffect(() => {
|
|
4737
4737
|
if (Boolean(previousState && (previousState == null ? void 0 : previousState.keyword) !== keyword)) {
|
|
4738
4738
|
const INSTANT_SEARCH_SETTING = JSON.parse(localStorage.getItem(LOCAL_STORAGE_KEY.INSTANT_SEARCH_SETTING) || "");
|