@coveo/atomic-react 3.11.26 → 3.11.28

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.3",
8678
+ version: "3.59.5",
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(){
@@ -18117,6 +18116,7 @@ let AtomicCommerceSearchBox$1 = class AtomicCommerceSearchBox extends lit.LitEle
18117
18116
  if (!e.shiftKey) this.onSubmit();
18118
18117
  break;
18119
18118
  case 'Escape':
18119
+ this.isExpanded = false;
18120
18120
  this.suggestionManager.clearSuggestions();
18121
18121
  break;
18122
18122
  case 'ArrowDown':
@@ -18711,6 +18711,7 @@ const renderExpandableText = ({ props: { isExpanded, isTruncated, isCollapsible,
18711
18711
  style: 'text-primary',
18712
18712
  class: buttonClassString,
18713
18713
  title: buttonLabel,
18714
+ ariaExpanded: isExpanded ? 'true' : 'false',
18714
18715
  onClick: onToggleExpand
18715
18716
  }
18716
18717
  })(lit.html` <atomic-icon