@sledge-app/react-instant-search 0.0.41 → 0.0.43

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.
@@ -1170,7 +1170,7 @@ const getReviewInfo = async (id) => {
1170
1170
  return;
1171
1171
  });
1172
1172
  };
1173
- const Rating = (props) => {
1173
+ const Rating = React__default.memo((props) => {
1174
1174
  var _a;
1175
1175
  const { value, size = "md", data, withSkeletonLoading = true, isScrollToElementWidget = true } = props;
1176
1176
  const { productId } = data || {};
@@ -1302,7 +1302,7 @@ const Rating = (props) => {
1302
1302
  ] }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {})
1303
1303
  ] })
1304
1304
  ] }) });
1305
- };
1305
+ });
1306
1306
  const Widget = "";
1307
1307
  const WidgetHeaderAddTrigger = ({ isFirstLoading, text, dataSettings, data, onAfterAddReview }) => {
1308
1308
  var _a, _b, _c;
@@ -3133,7 +3133,7 @@ const SearchResultWidget = React__default.memo((props) => {
3133
3133
  })
3134
3134
  ] });
3135
3135
  });
3136
- const ResultProduct = (props) => {
3136
+ const ResultProduct = React__default.memo((props) => {
3137
3137
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
3138
3138
  const {
3139
3139
  keyword,
@@ -3780,8 +3780,8 @@ const ResultProduct = (props) => {
3780
3780
  ] })
3781
3781
  ] }) })
3782
3782
  ] });
3783
- };
3784
- const ResultCategory = (props) => {
3783
+ });
3784
+ const ResultCategory = React__default.memo((props) => {
3785
3785
  var _a, _b, _c, _d;
3786
3786
  const { keyword, clickedTabIndexId, clickedTabIndexName, setKeyword, searchResultContainerRef } = props || {};
3787
3787
  const [isFirstLoading, setIsFirstLoading] = React__default.useState(true);
@@ -3901,8 +3901,8 @@ const ResultCategory = (props) => {
3901
3901
  /* @__PURE__ */ jsxRuntimeExports.jsx(Pagination, { currentPage, totalPage, totalResult: totalSearchResult, onChange: (page) => handlePageChange(page) })
3902
3902
  ] }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ResultEmpty, {})
3903
3903
  ] }) }) });
3904
- };
3905
- const ResultEmpty = (props) => {
3904
+ });
3905
+ const ResultEmpty = React__default.memo((props) => {
3906
3906
  const [title, setTitle] = React__default.useState("");
3907
3907
  const [description, setDescription] = React__default.useState("");
3908
3908
  React__default.useEffect(() => {
@@ -3913,7 +3913,7 @@ const ResultEmpty = (props) => {
3913
3913
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-empty-title", dangerouslySetInnerHTML: { __html: title } }),
3914
3914
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-empty-description", dangerouslySetInnerHTML: { __html: description } })
3915
3915
  ] });
3916
- };
3916
+ });
3917
3917
  const SearchWidget$1 = "";
3918
3918
  const SearchWidget = (props) => {
3919
3919
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;