@sledge-app/react-instant-search 0.0.19 → 0.0.21
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/SearchIconWidget.d.ts.map +1 -1
- package/dist/components/SearchIconWidget/SearchIconWidgetPopup.d.ts +1 -1
- 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 +8 -5
- package/dist/sledge-react-instant-search.js.map +1 -1
- package/package.json +1 -1
|
@@ -2205,13 +2205,16 @@ const SearchIconWidget = (props) => {
|
|
|
2205
2205
|
let suggestionKeywordListsComponent = null;
|
|
2206
2206
|
let otherIndexListsComponent = null;
|
|
2207
2207
|
React__default.Children.map(children, (child) => {
|
|
2208
|
+
console.log(child);
|
|
2208
2209
|
if (React__default.isValidElement(child) && isFunction(child.type)) {
|
|
2209
2210
|
const { component } = (child == null ? void 0 : child.props) || {};
|
|
2210
2211
|
switch (child.type.name) {
|
|
2211
2212
|
case SEPARATE_COMPONENT_DISPLAY_NAME.SUGGESTION_KEYWORD_LISTS:
|
|
2213
|
+
console.log("suggestionKeywordListsComponent", component);
|
|
2212
2214
|
suggestionKeywordListsComponent = component;
|
|
2213
2215
|
break;
|
|
2214
2216
|
case SEPARATE_COMPONENT_DISPLAY_NAME.OTHER_INDEX_LISTS:
|
|
2217
|
+
console.log("otherIndexListsComponent", component);
|
|
2215
2218
|
otherIndexListsComponent = component;
|
|
2216
2219
|
break;
|
|
2217
2220
|
}
|
|
@@ -2312,8 +2315,8 @@ const SearchIconWidgetPopup = () => {
|
|
|
2312
2315
|
onAfterRenderProduct: (state) => {
|
|
2313
2316
|
},
|
|
2314
2317
|
productCardsComponent: null,
|
|
2315
|
-
|
|
2316
|
-
|
|
2318
|
+
suggestionKeywordListsComponent: null,
|
|
2319
|
+
otherIndexListsComponent: null
|
|
2317
2320
|
});
|
|
2318
2321
|
const searchFieldRef = React__default.useRef(null);
|
|
2319
2322
|
const previousState = usePrevious({ keyword });
|
|
@@ -2403,8 +2406,8 @@ const SearchIconWidgetPopup = () => {
|
|
|
2403
2406
|
}, onAfterRemoveWishlist = () => {
|
|
2404
2407
|
}, onAfterRenderProduct = () => {
|
|
2405
2408
|
}, productCardsComponent = () => {
|
|
2406
|
-
}, otherIndexListsComponent = () => {
|
|
2407
2409
|
}, suggestionKeywordListsComponent = () => {
|
|
2410
|
+
}, otherIndexListsComponent = () => {
|
|
2408
2411
|
}) => {
|
|
2409
2412
|
setShowInfo(true);
|
|
2410
2413
|
setHandleFunctions({
|
|
@@ -2413,8 +2416,8 @@ const SearchIconWidgetPopup = () => {
|
|
|
2413
2416
|
onAfterRemoveWishlist,
|
|
2414
2417
|
onAfterRenderProduct,
|
|
2415
2418
|
productCardsComponent,
|
|
2416
|
-
|
|
2417
|
-
|
|
2419
|
+
suggestionKeywordListsComponent,
|
|
2420
|
+
otherIndexListsComponent
|
|
2418
2421
|
});
|
|
2419
2422
|
setTimeout(() => {
|
|
2420
2423
|
if (searchFieldRef == null ? void 0 : searchFieldRef.current) {
|