@docsearch/js 5.0.0-beta.4 → 5.0.1

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.
@@ -1,4 +1,4 @@
1
- /*! @docsearch/js 5.0.0-beta.4 (UNRELEASED 11d6ed4) | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */
1
+ /*! @docsearch/js 5.0.1 (UNRELEASED e9f932b) | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */
2
2
  import { InitialAskAiMessage } from "@docsearch/core";
3
3
  import { HitComponentProps, ResultsFooterComponentProps } from "@docsearch/react";
4
4
  import { DocSearchAIProps as DocSearchAIProps$1 } from "@docsearch/react/docsearchAi";
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @docsearch/js 5.0.0-beta.4 (UNRELEASED 11d6ed4) | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */
1
+ /*! @docsearch/js 5.0.1 (UNRELEASED e9f932b) | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */
2
2
  //#region \0rolldown/runtime.js
3
3
  var __create = Object.create;
4
4
  var __defProp$1 = Object.defineProperty;
@@ -1188,7 +1188,7 @@ function DocSearchButtonKey({ reactsToKey, children }) {
1188
1188
 
1189
1189
  //#endregion
1190
1190
  //#region ../docsearch-react/dist/esm/version.js
1191
- const version$2 = "5.0.0-beta.4";
1191
+ const version$2 = "5.0.1";
1192
1192
 
1193
1193
  //#endregion
1194
1194
  //#region \0@oxc-project+runtime@0.139.0/helpers/esm/OverloadYield.js
@@ -12496,7 +12496,7 @@ function useMenuParent() {
12496
12496
  }
12497
12497
 
12498
12498
  //#endregion
12499
- //#region ../docsearch-react/dist/esm/normalizeDocSearchIndexes-ChnVvoVt.js
12499
+ //#region ../docsearch-react/dist/esm/normalizeDocSearchIndexes-CFHzf-sx.js
12500
12500
  init_compat();
12501
12501
  function capitalize(text) {
12502
12502
  return `${text.charAt(0).toLocaleUpperCase()}${text.substring(1)}`;
@@ -12991,7 +12991,7 @@ function useFacetValues({ facets, indexes, searchClient }) {
12991
12991
  var _result$facets;
12992
12992
  Object.entries((_result$facets = res.facets) !== null && _result$facets !== void 0 ? _result$facets : {}).forEach(([facet, values]) => {
12993
12993
  if (!valuesByFacet[facet]) return;
12994
- valuesByFacet[facet] = Array.from(/* @__PURE__ */ new Set([...valuesByFacet[facet], ...Object.keys(values)])).sort();
12994
+ valuesByFacet[facet] = Array.from(/* @__PURE__ */ new Set([...valuesByFacet[facet], ...Object.keys(values)])).sort((a, b) => a.localeCompare(b, void 0, { sensitivity: "base" }));
12995
12995
  });
12996
12996
  });
12997
12997
  setFacetValues(valuesByFacet);
@@ -31455,7 +31455,7 @@ function createAutocomplete(options) {
31455
31455
  }
31456
31456
 
31457
31457
  //#endregion
31458
- //#region ../docsearch-react/dist/esm/DocSearchAskAiModal-ByqIW5ZA.js
31458
+ //#region ../docsearch-react/dist/esm/DocSearchAskAiModal-2ci32vW6.js
31459
31459
  init_compat();
31460
31460
  function MessageIcon() {
31461
31461
  return /* @__PURE__ */ En.createElement("svg", {