@sledge-app/react-instant-search 0.0.36 → 0.0.38

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.
@@ -2241,7 +2241,7 @@ const SearchIconWidget = (props) => {
2241
2241
  }, [isRenderApp]);
2242
2242
  const handleShowWidget = () => {
2243
2243
  if (typeof window !== "undefined" && window.sledgeInstantSearchIconWidgetPopup)
2244
- window.sledgeInstantSearchIconWidgetPopup(
2244
+ window.sledgeInstantSearchIconWidgetPopup({
2245
2245
  onAfterAddToCart,
2246
2246
  onAfterAddWishlist,
2247
2247
  onAfterRemoveWishlist,
@@ -2251,7 +2251,7 @@ const SearchIconWidget = (props) => {
2251
2251
  suggestionKeywordListsComponent,
2252
2252
  otherIndexListsComponent,
2253
2253
  searchViewMoreResultComponent
2254
- );
2254
+ });
2255
2255
  };
2256
2256
  return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sledge-instant-search__icon-widget", onClick: handleShowWidget, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchIcon, { ...sizing, color: "currentColor" }) });
2257
2257
  };
@@ -2410,14 +2410,24 @@ const SearchIconWidgetPopup = () => {
2410
2410
  };
2411
2411
  React__default.useEffect(() => {
2412
2412
  if (typeof window !== "undefined") {
2413
- window.sledgeInstantSearchIconWidgetPopup = (onAfterAddToCart = () => {
2414
- }, onAfterAddWishlist = () => {
2415
- }, onAfterRemoveWishlist = () => {
2416
- }, onAfterRenderProduct = () => {
2417
- }, separateJsVersionComponent = null, productCardsComponent = () => {
2418
- }, suggestionKeywordListsComponent = () => {
2419
- }, otherIndexListsComponent = () => {
2420
- }, searchViewMoreResultComponent = () => {
2413
+ window.sledgeInstantSearchIconWidgetPopup = ({
2414
+ onAfterAddToCart = () => {
2415
+ },
2416
+ onAfterAddWishlist = () => {
2417
+ },
2418
+ onAfterRemoveWishlist = () => {
2419
+ },
2420
+ onAfterRenderProduct = () => {
2421
+ },
2422
+ separateJsVersionComponent = null,
2423
+ productCardsComponent = () => {
2424
+ },
2425
+ suggestionKeywordListsComponent = () => {
2426
+ },
2427
+ otherIndexListsComponent = () => {
2428
+ },
2429
+ searchViewMoreResultComponent = () => {
2430
+ }
2421
2431
  }) => {
2422
2432
  setShowInfo(true);
2423
2433
  setHandleFunctions({
@@ -2744,7 +2754,6 @@ const SearchResultWidget = (props) => {
2744
2754
  }
2745
2755
  };
2746
2756
  const handleSettings = async (LOCAL_STORAGE_INSTANT_SEARCH_SETTING) => {
2747
- setIsLoadingSetting(true);
2748
2757
  let response;
2749
2758
  let run = false;
2750
2759
  let getFirstIndex;