@sledge-app/react-instant-search 1.0.7 → 1.0.8

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.
@@ -2270,7 +2270,7 @@ const ProductGrid = ({
2270
2270
  triggerPropAdditional,
2271
2271
  sourceApp = null,
2272
2272
  isComponentJsVersion = false,
2273
- cards,
2273
+ cards: CardsComponent,
2274
2274
  onAfterAddToCart,
2275
2275
  onAfterAddWishlist,
2276
2276
  onAfterRemoveWishlist,
@@ -2349,8 +2349,8 @@ const ProductGrid = ({
2349
2349
  const { id: variant_id = "", title: variant_title = "", price = "", sku = "" } = (variants == null ? void 0 : variants.length) ? variants[0] : {};
2350
2350
  let isLoadingAddToCart = clickedAddToCartId == variant_id;
2351
2351
  let isOutOfStock = (variants == null ? void 0 : variants.length) && Object.hasOwn(variants[0], "inventory_quantity") ? !variants[0].inventory_quantity && showOptionOutOfStock : false;
2352
- if (cards) {
2353
- const getCards = cards({
2352
+ if (CardsComponent) {
2353
+ const CardsProps = {
2354
2354
  product: {
2355
2355
  ...product,
2356
2356
  ...{
@@ -2372,8 +2372,9 @@ const ProductGrid = ({
2372
2372
  showPopupComponent,
2373
2373
  setShowPopupComponent,
2374
2374
  sourceApp
2375
- });
2376
- return /* @__PURE__ */ jsxRuntimeExports.jsx(React__default.Fragment, { children: isComponentJsVersion ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { dangerouslySetInnerHTML: { __html: getCards } }) : getCards }, index);
2375
+ };
2376
+ console.log("isComponentJsVersion", isComponentJsVersion);
2377
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(React__default.Fragment, { children: isComponentJsVersion ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { dangerouslySetInnerHTML: { __html: CardsComponent({ ...CardsProps }) } }) : /* @__PURE__ */ jsxRuntimeExports.jsx(CardsComponent, { ...CardsProps }) }, index);
2377
2378
  } else {
2378
2379
  let setDefaultFunction = function() {
2379
2380
  if (!(variants == null ? void 0 : variants.length))