@coveo/atomic-react 3.11.48 → 3.11.49
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/dist/cjs/atomic-react.cjs +42 -12
- package/dist/cjs/atomic-react.cjs.map +1 -1
- package/dist/cjs/commerce/atomic-react.cjs +18 -4
- package/dist/cjs/commerce/atomic-react.cjs.map +1 -1
- package/dist/cjs/recommendation/atomic-react.cjs +42 -12
- package/dist/cjs/recommendation/atomic-react.cjs.map +1 -1
- package/package.json +7 -4
|
@@ -9856,11 +9856,15 @@ function buildCommonLayout(element, mobileBreakpoint, layoutWebComponentTagName,
|
|
|
9856
9856
|
}
|
|
9857
9857
|
}`;
|
|
9858
9858
|
};
|
|
9859
|
-
const horizontalFacets = ()
|
|
9860
|
-
|
|
9859
|
+
const horizontalFacets = ()=>{
|
|
9860
|
+
const horizontalFacetsSelector = `${layoutSelector} ${sectionSelector('horizontal-facets')}`;
|
|
9861
|
+
return `${mediaQuerySelector} {
|
|
9862
|
+
${horizontalFacetsSelector} > atomic-popover:not(.atomic-hidden),
|
|
9863
|
+
${horizontalFacetsSelector} > atomic-facet-manager > atomic-popover:not(.atomic-hidden) {
|
|
9861
9864
|
display: block;
|
|
9862
9865
|
}
|
|
9863
9866
|
}`;
|
|
9867
|
+
};
|
|
9864
9868
|
return [
|
|
9865
9869
|
display,
|
|
9866
9870
|
search,
|
|
@@ -9884,7 +9888,7 @@ function getWindow() {
|
|
|
9884
9888
|
}
|
|
9885
9889
|
function getAtomicEnvironment(headlessVersion) {
|
|
9886
9890
|
return {
|
|
9887
|
-
version: "3.64.
|
|
9891
|
+
version: "3.64.1",
|
|
9888
9892
|
headlessVersion
|
|
9889
9893
|
};
|
|
9890
9894
|
}
|
|
@@ -20786,6 +20790,10 @@ let AtomicFocusTrap$1 = class AtomicFocusTrap extends LightDomMixin(lit.LitEleme
|
|
|
20786
20790
|
if (element.hasAttribute('aria-hidden') || element.hasAttribute('aria-live') || 'atomic-aria-live' === element.tagName.toLowerCase()) return;
|
|
20787
20791
|
element.setAttribute('aria-hidden', 'true');
|
|
20788
20792
|
this.hiddenElements.push(element);
|
|
20793
|
+
if (!element.hasAttribute('inert')) {
|
|
20794
|
+
element.setAttribute('inert', '');
|
|
20795
|
+
this.inertElements.push(element);
|
|
20796
|
+
}
|
|
20789
20797
|
}
|
|
20790
20798
|
showAll() {
|
|
20791
20799
|
let el = this.hiddenElements.pop();
|
|
@@ -20793,6 +20801,11 @@ let AtomicFocusTrap$1 = class AtomicFocusTrap extends LightDomMixin(lit.LitEleme
|
|
|
20793
20801
|
el.removeAttribute('aria-hidden');
|
|
20794
20802
|
el = this.hiddenElements.pop();
|
|
20795
20803
|
}
|
|
20804
|
+
let inertElement = this.inertElements.pop();
|
|
20805
|
+
while(inertElement){
|
|
20806
|
+
inertElement.removeAttribute('inert');
|
|
20807
|
+
inertElement = this.inertElements.pop();
|
|
20808
|
+
}
|
|
20796
20809
|
}
|
|
20797
20810
|
hideSiblingsRecursively(element) {
|
|
20798
20811
|
const parent = getParent(element);
|
|
@@ -20826,6 +20839,7 @@ let AtomicFocusTrap$1 = class AtomicFocusTrap extends LightDomMixin(lit.LitEleme
|
|
|
20826
20839
|
this.showSelf();
|
|
20827
20840
|
if (!isInitialLoad) {
|
|
20828
20841
|
await defer$1();
|
|
20842
|
+
if (!this.active) return;
|
|
20829
20843
|
getFirstFocusableDescendant(this)?.focus();
|
|
20830
20844
|
}
|
|
20831
20845
|
this.hideSiblingsRecursively(this);
|
|
@@ -20839,7 +20853,7 @@ let AtomicFocusTrap$1 = class AtomicFocusTrap extends LightDomMixin(lit.LitEleme
|
|
|
20839
20853
|
return this.container ?? this;
|
|
20840
20854
|
}
|
|
20841
20855
|
constructor(...args){
|
|
20842
|
-
super(...args), this.active = false, this.shouldHideSelf = true, this.scope = document.body, this.hiddenElements = [], this.onFocusChanged = (e)=>{
|
|
20856
|
+
super(...args), this.active = false, this.shouldHideSelf = true, this.scope = document.body, this.hiddenElements = [], this.inertElements = [], this.onFocusChanged = (e)=>{
|
|
20843
20857
|
if (!e.target || !this.active) return;
|
|
20844
20858
|
const focusedElement = getFocusedElement();
|
|
20845
20859
|
if (focusedElement && isAncestorOf(this, focusedElement)) return;
|