@sledge-app/react-instant-search 0.0.18 → 0.0.19
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/components/SearchIconWidget/SearchIconWidgetPopup.d.ts.map +1 -1
- package/dist/sledge-react-instant-search.cjs +1 -1
- package/dist/sledge-react-instant-search.cjs.map +1 -1
- package/dist/sledge-react-instant-search.js +4 -8
- package/dist/sledge-react-instant-search.js.map +1 -1
- package/package.json +1 -1
|
@@ -2276,12 +2276,8 @@ const SuggestionKeywordLists = ({ listsComponent, keywords }) => {
|
|
|
2276
2276
|
}) })
|
|
2277
2277
|
] });
|
|
2278
2278
|
};
|
|
2279
|
-
const OtherIndexLists = ({ listsComponent,
|
|
2280
|
-
|
|
2281
|
-
console.log("OtherIndexLists indexUid", indexUid);
|
|
2282
|
-
console.log("OtherIndexLists name", name);
|
|
2283
|
-
console.log("OtherIndexLists items", items);
|
|
2284
|
-
return listsComponent ? listsComponent({ indexUid, name, items }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
2279
|
+
const OtherIndexLists = ({ listsComponent, name, items }) => {
|
|
2280
|
+
return listsComponent ? listsComponent({ name, items }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
2285
2281
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__icon-widget-search-form-result-title", children: name }),
|
|
2286
2282
|
(items == null ? void 0 : items.length) ? /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "sledge-instant-search__icon-widget-search-form-result-list", children: items.map((hit, index) => {
|
|
2287
2283
|
const { title, url } = hit;
|
|
@@ -2501,8 +2497,8 @@ const SearchIconWidgetPopup = () => {
|
|
|
2501
2497
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge-instant-search__icon-widget-search-form-result-flex-item-other", children: [
|
|
2502
2498
|
Object.keys(suggestionSettings).length && ((_c = (_b = suggestionSettings[suggestionIndex]) == null ? void 0 : _b.keywords) == null ? void 0 : _c.active) && ((_f = (_e = (_d = suggestionSettings[suggestionIndex]) == null ? void 0 : _d.keywords) == null ? void 0 : _e.list) == null ? void 0 : _f.length) ? /* @__PURE__ */ jsxRuntimeExports.jsx(SuggestionKeywordLists, { listsComponent: handleFunctions.suggestionKeywordListsComponent, keywords: suggestionSettings[suggestionIndex].keywords.list }) : null,
|
|
2503
2499
|
searchResultOther && searchResultOther.map((item, index) => {
|
|
2504
|
-
const {
|
|
2505
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(React__default.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(OtherIndexLists, { listsComponent: handleFunctions.otherIndexListsComponent,
|
|
2500
|
+
const { hits, name } = item;
|
|
2501
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(React__default.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(OtherIndexLists, { listsComponent: handleFunctions.otherIndexListsComponent, name, items: hits }) }, index);
|
|
2506
2502
|
})
|
|
2507
2503
|
] }),
|
|
2508
2504
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge-instant-search__icon-widget-search-form-result-flex-item-product", children: [
|