willba-component-library 0.4.10 → 0.4.12
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/README.md +1 -1
- package/lib/components/FilterBar/components/index.d.ts +1 -1
- package/lib/embed.esm.js +2 -2
- package/lib/embed.esm.js.map +1 -1
- package/lib/embed.umd.js +2 -2
- package/lib/embed.umd.js.map +1 -1
- package/lib/index.esm.js +14 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +14 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/lib/components/FilterBar/components/FilterPanels/Categories/Categories.d.ts +0 -11
- package/lib/components/FilterBar/hooks/useIsMobile.d.ts +0 -1
- package/lib/components/FilterBar/hooks/useScrollInToView.d.ts +0 -8
- package/lib/core/hooks/useCloseFilterSection.d.ts +0 -7
package/lib/index.esm.js
CHANGED
|
@@ -6872,6 +6872,18 @@ var useFilterActions = function (_a) {
|
|
|
6872
6872
|
Pages.EVENTS;
|
|
6873
6873
|
setSelectedPath(currentPath);
|
|
6874
6874
|
}, [tabs]);
|
|
6875
|
+
// Clear loading state when page is restored from bfcache — react state
|
|
6876
|
+
// is preserved on back/forward navigation, otherwise SEARCH stays disabled
|
|
6877
|
+
useEffect(function () {
|
|
6878
|
+
if (typeof window === 'undefined')
|
|
6879
|
+
return;
|
|
6880
|
+
var handlePageShow = function (event) {
|
|
6881
|
+
if (event.persisted)
|
|
6882
|
+
setInnerLoading(false);
|
|
6883
|
+
};
|
|
6884
|
+
window.addEventListener('pageshow', handlePageShow);
|
|
6885
|
+
return function () { return window.removeEventListener('pageshow', handlePageShow); };
|
|
6886
|
+
}, [setInnerLoading]);
|
|
6875
6887
|
var updateGuestsCount = function (id, newCount) {
|
|
6876
6888
|
setAgeCategoryCounts(function (prev) {
|
|
6877
6889
|
var _a;
|
|
@@ -6956,9 +6968,10 @@ var useFilterRefs = function () {
|
|
|
6956
6968
|
};
|
|
6957
6969
|
};
|
|
6958
6970
|
|
|
6971
|
+
var useIsomorphicLayoutEffect$1 = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
|
|
6959
6972
|
var usePanelPosition = function (_a) {
|
|
6960
6973
|
var selectedFilter = _a.selectedFilter, panelRef = _a.panelRef, filtersRef = _a.filtersRef, buttonRefs = _a.buttonRefs;
|
|
6961
|
-
|
|
6974
|
+
useIsomorphicLayoutEffect$1(function () {
|
|
6962
6975
|
var panel = panelRef.current;
|
|
6963
6976
|
var filters = filtersRef.current;
|
|
6964
6977
|
if (!panel || !filters)
|