@sledge-app/react-instant-search 0.0.10 → 0.0.11

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.
@@ -1700,7 +1700,7 @@ const ProductGrid = ({
1700
1700
  });
1701
1701
  }
1702
1702
  setClickedAddToCartId(null);
1703
- onAfterAddToCart && onAfterAddToCart("success");
1703
+ onAfterAddToCart && onAfterAddToCart("success", data2);
1704
1704
  if (redirect_add_to_cart) {
1705
1705
  window.location.href = "/cart";
1706
1706
  } else {
@@ -1712,7 +1712,7 @@ const ProductGrid = ({
1712
1712
  });
1713
1713
  }
1714
1714
  } else {
1715
- onAfterAddToCart && onAfterAddToCart("failed");
1715
+ onAfterAddToCart && onAfterAddToCart("failed", data2);
1716
1716
  setTimeout(() => {
1717
1717
  var _a2;
1718
1718
  setClickedAddToCartId(null);
@@ -2242,7 +2242,7 @@ const SearchIconWidgetPopup = () => {
2242
2242
  const [suggestionSettings, setSuggestionSettings] = React__default.useState({});
2243
2243
  const [suggestionIndex, setSuggestionIndex] = React__default.useState("");
2244
2244
  const [handleFunctions, setHandleFunctions] = React__default.useState({
2245
- onAfterAddToCart: (state) => {
2245
+ onAfterAddToCart: (state, data) => {
2246
2246
  },
2247
2247
  onAfterAddWishlist: (state) => {
2248
2248
  },