@coveo/atomic-react 3.11.27 → 3.11.29

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.
@@ -3690,13 +3690,12 @@ function highlightSearchResult(resultValue, searchQuery = '') {
3690
3690
  function announceFacetSearchResultsWithAriaLive(facet, label, setAriaLive, i18n) {
3691
3691
  let prevState = facet.state.facetSearch;
3692
3692
  facet.subscribe(()=>{
3693
- if (shouldUpdateFacetSearchComponent(facet.state.facetSearch, prevState) && facet.state.facetSearch.query) {
3694
- prevState = facet.state.facetSearch;
3695
- setAriaLive(i18n.t('facet-search-results-count', {
3696
- count: facet.state.facetSearch.values.length,
3697
- label
3698
- }));
3699
- }
3693
+ const nextState = facet.state.facetSearch;
3694
+ if (shouldUpdateFacetSearchComponent(nextState, prevState) && nextState.query) setAriaLive(i18n.t('facet-search-results-count', {
3695
+ count: nextState.values.length,
3696
+ label
3697
+ }));
3698
+ prevState = nextState;
3700
3699
  });
3701
3700
  }
3702
3701
 
@@ -8676,7 +8675,7 @@ function getWindow() {
8676
8675
  }
8677
8676
  function getAtomicEnvironment(headlessVersion) {
8678
8677
  return {
8679
- version: "3.59.4",
8678
+ version: "3.59.6",
8680
8679
  headlessVersion
8681
8680
  };
8682
8681
  }
@@ -10686,7 +10685,7 @@ let AtomicCommercePager$1 = class AtomicCommercePager extends lit.LitElement {
10686
10685
  }
10687
10686
  announcePageLoaded() {
10688
10687
  this.ariaMessage.message = this.bindings.i18n.t('pager-page-loaded', {
10689
- pageNumber: this.pagerState.page
10688
+ page: this.pagerState.page
10690
10689
  });
10691
10690
  }
10692
10691
  constructor(){
@@ -18712,6 +18711,9 @@ const renderExpandableText = ({ props: { isExpanded, isTruncated, isCollapsible,
18712
18711
  style: 'text-primary',
18713
18712
  class: buttonClassString,
18714
18713
  title: buttonLabel,
18714
+ ...isCollapsible && {
18715
+ ariaExpanded: isExpanded ? 'true' : 'false'
18716
+ },
18715
18717
  onClick: onToggleExpand
18716
18718
  }
18717
18719
  })(lit.html` <atomic-icon