willba-component-library 0.1.29 → 0.1.31

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.
package/lib/index.esm.js CHANGED
@@ -7983,6 +7983,10 @@ styleInject(css_248z$6);
7983
7983
 
7984
7984
  function GuestCount(_a) {
7985
7985
  var label = _a.label, sortOrder = _a.sortOrder, id = _a.id, updateGuestsCount = _a.updateGuestsCount, count = _a.count, minVal = _a.minVal;
7986
+ useEffect(function () {
7987
+ if (minVal)
7988
+ updateGuestsCount("guests-".concat(id), minVal);
7989
+ }, []);
7986
7990
  var handleDecrement = function () {
7987
7991
  if (count > minVal) {
7988
7992
  updateGuestsCount("guests-".concat(id), count - 1);
@@ -8154,12 +8158,9 @@ function useFilterBar(_a) {
8154
8158
  }
8155
8159
  finally { if (e_2) throw e_2.error; }
8156
8160
  }
8157
- console.log(currentSearchParams.toString(), updatedParams.toString());
8158
- // Get the current URL without the query string
8159
8161
  var baseUrl = window.location.origin + window.location.pathname;
8160
- // Construct the updated URL with the modified query parameters
8161
8162
  var updatedUrl = "".concat(baseUrl, "?").concat(updatedParams.toString());
8162
- // Replace the current URL with the updated URL in the browser's history
8163
+ handleSelectedFilter(false);
8163
8164
  return (window.location.href = updatedUrl);
8164
8165
  }
8165
8166
  else {
@@ -8179,6 +8180,7 @@ function useFilterBar(_a) {
8179
8180
  }
8180
8181
  finally { if (e_3) throw e_3.error; }
8181
8182
  }
8183
+ handleSelectedFilter(false);
8182
8184
  return (window.location.href = "".concat(redirectUrl, "/").concat(selectedPath).concat(querySearchParams ? "?".concat(querySearchParams.toString()) : ''));
8183
8185
  }
8184
8186
  };