@sledge-app/react-instant-search 2.0.49 → 2.0.51

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.
@@ -887,8 +887,7 @@ const Slider = (props) => {
887
887
  return;
888
888
  const lastValueMin = valueCommit == null ? void 0 : valueCommit[0];
889
889
  const lastValueMax = (valueCommit == null ? void 0 : valueCommit[1]) || lastValueMin;
890
- const valueInputRange = inputRangeFormatter(type2 === "min" ? lastValueMax : lastValueMin);
891
- const valueCommitFiltered = [valueInputRange, valueInputRange];
890
+ inputRangeFormatter(type2 === "min" ? lastValueMax : lastValueMin);
892
891
  valueInput = inputRangeFormatter(valueInput);
893
892
  valueCommit = [inputRangeFormatter(valueCommit[0]), inputRangeFormatter(valueCommit[1])];
894
893
  let filterValueMinOrMax = false;
@@ -898,10 +897,7 @@ const Slider = (props) => {
898
897
  filterValueMinOrMax = Number(valueInput) < Number(lastValueMin);
899
898
  }
900
899
  if (filterValueMinOrMax) {
901
- setInputRangeMin(valueInputRange);
902
- setInputRangeMax(valueInputRange);
903
- setValueChange == null ? void 0 : setValueChange(valueCommitFiltered);
904
- setValueCommit == null ? void 0 : setValueCommit(valueCommitFiltered);
900
+ return;
905
901
  } else {
906
902
  if (type2 === "min") {
907
903
  setInputRangeMin(valueInput);
@@ -1510,15 +1506,6 @@ const FilterIcon = ({ width, height, color }) => {
1510
1506
  )
1511
1507
  ] }) });
1512
1508
  };
1513
- const InfoCircleIcon = ({ width, height, color }) => {
1514
- return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sledge-icon__info-circle", children: /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1515
- "path",
1516
- {
1517
- d: "M12 2.00293C6.49 2.00293 2 6.49293 2 12.0029C2 17.5129 6.49 22.0029 12 22.0029C17.51 22.0029 22 17.5129 22 12.0029C22 6.49293 17.51 2.00293 12 2.00293ZM11.25 8.00293C11.25 7.59293 11.59 7.25293 12 7.25293C12.41 7.25293 12.75 7.59293 12.75 8.00293V13.0029C12.75 13.4129 12.41 13.7529 12 13.7529C11.59 13.7529 11.25 13.4129 11.25 13.0029V8.00293ZM12.92 16.3829C12.87 16.5129 12.8 16.6129 12.71 16.7129C12.61 16.8029 12.5 16.8729 12.38 16.9229C12.26 16.9729 12.13 17.0029 12 17.0029C11.87 17.0029 11.74 16.9729 11.62 16.9229C11.5 16.8729 11.39 16.8029 11.29 16.7129C11.2 16.6129 11.13 16.5129 11.08 16.3829C11.03 16.2629 11 16.1329 11 16.0029C11 15.8729 11.03 15.7429 11.08 15.6229C11.13 15.5029 11.2 15.3929 11.29 15.2929C11.39 15.2029 11.5 15.1329 11.62 15.0829C11.86 14.9829 12.14 14.9829 12.38 15.0829C12.5 15.1329 12.61 15.2029 12.71 15.2929C12.8 15.3929 12.87 15.5029 12.92 15.6229C12.97 15.7429 13 15.8729 13 16.0029C13 16.1329 12.97 16.2629 12.92 16.3829Z",
1518
- fill: color
1519
- }
1520
- ) }) });
1521
- };
1522
1509
  const Button$1 = "";
1523
1510
  const Button = React__default.forwardRef((props, buttonRef) => {
1524
1511
  const { className = "", children, colorType = "light", fullWidth = false, elementType = "button", link = "", isActive, ...otherProps } = props;
@@ -5689,13 +5676,7 @@ const VirtualizedList = ({ scrollElement, rowCount, rowRenderer: rowRenderer2, s
5689
5676
  }
5690
5677
  );
5691
5678
  };
5692
- const Alert$1 = "";
5693
- const Alert = ({ children, className = "", type, icon = null }) => {
5694
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `sledge__alert ${className}`, "data-alert-type": type, children: [
5695
- icon && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: icon }),
5696
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children })
5697
- ] });
5698
- };
5679
+ const Alert = "";
5699
5680
  const SearchIconWidget = (props) => {
5700
5681
  const { isRenderApp, isJsVersion, componentRef } = React__default.useContext(SledgeContext);
5701
5682
  const { instantSearch: isRenderAppInstantSearch } = isRenderApp || {};
@@ -6111,16 +6092,10 @@ const SearchIconWidgetPopup = () => {
6111
6092
  isPreviewSettings: true
6112
6093
  });
6113
6094
  }, [handleFunctions == null ? void 0 : handleFunctions.instantSearchPreviewSettings]);
6114
- const alertFirstSyncComponent = !isLoading && !totalHitsProduct && (instantSearchSettings == null ? void 0 : instantSearchSettings.first_sync) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Alert, { className: "sledge-instant-search__icon-widget-popup-alert-first-sync", type: "info", icon: /* @__PURE__ */ jsxRuntimeExports.jsx(InfoCircleIcon, { width: 24, height: 24, color: "#003a5a" }), children: [
6115
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Products and Collections indexing is in progress. Product Filter and Instant Search widgets may appear empty during this process." }),
6116
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", {}),
6117
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "The products and collections will become visible in the widgets once indexing is complete." })
6118
- ] }) : null;
6119
6095
  return /* @__PURE__ */ jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, { open: showInfo, onOpenChange: setShowInfo, children: /* @__PURE__ */ jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$602eac185826482c, { children: [
6120
6096
  /* @__PURE__ */ jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, { className: "sledge__popup-overlay" }),
6121
6097
  /* @__PURE__ */ jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, { className: "sledge__popup-overlay-blur" }),
6122
6098
  /* @__PURE__ */ jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, { className: "sledge-instant-search__icon-widget-popup-detail-content", "data-layout-type": ((_a = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _a.layout) || "", children: [
6123
- alertFirstSyncComponent,
6124
6099
  /* @__PURE__ */ jsxRuntimeExports.jsx(
6125
6100
  SearchInputField,
6126
6101
  {
@@ -9928,11 +9903,6 @@ const SearchResultWidget = (props) => {
9928
9903
  const containerStyle = {
9929
9904
  maxWidth: width
9930
9905
  };
9931
- const alertFirstSyncComponent = !isFirstLoading && !totalHitsProduct && (instantSearchSettings == null ? void 0 : instantSearchSettings.first_sync) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Alert, { className: "sledge-instant-search__alert-first-sync-product", type: "info", icon: /* @__PURE__ */ jsxRuntimeExports.jsx(InfoCircleIcon, { width: 24, height: 24, color: "#003a5a" }), children: [
9932
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Products and Collections indexing is in progress. Product Filter and Instant Search widgets may appear empty during this process." }),
9933
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", {}),
9934
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "The products and collections will become visible in the widgets once indexing is complete." })
9935
- ] }) : null;
9936
9906
  const tabItems = instantSearchPreviewSettings ? (_y = (_x = (_w = tabs == null ? void 0 : tabs.map) == null ? void 0 : _w.call(tabs, (allowedTab) => {
9937
9907
  var _a2, _b2;
9938
9908
  const { type } = allowedTab;
@@ -9947,7 +9917,6 @@ const SearchResultWidget = (props) => {
9947
9917
  };
9948
9918
  })) == null ? void 0 : _x.filter) == null ? void 0 : _y.call(_x, (item) => item) : allowedTabs;
9949
9919
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge-instant-search__result-container", ref: searchResultContainerRef, style: containerStyle, children: [
9950
- alertFirstSyncComponent,
9951
9920
  isFirstLoading ? tabSkeleton : layoutType === "default" && (allowedTabs == null ? void 0 : allowedTabs.length) ? /* @__PURE__ */ jsxRuntimeExports.jsx(Tab, { items: tabItems, layoutType, clickedTabIndexId, handleChangeTab: handleChangeTabIndex }) : tabSkeleton,
9952
9921
  isFirstLoading && (layoutType == null ? void 0 : layoutType.length) && !propsData ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
9953
9922
  mobileFilterWithSearchAndSelectOptionSkeleton,