@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.
package/README.md CHANGED
@@ -76,4 +76,4 @@ Both UMD entries expose callable `window.docsearch`. Load only one of them: the
76
76
 
77
77
  ## Documentation
78
78
 
79
- [Read documentation →](https://docsearch.algolia.com/docs/docsearch-v3)
79
+ [Read documentation →](https://docsearch.algolia.com/docs/packages/js/getting-started)
@@ -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 { DocSearchProps as DocSearchProps$1, HitComponentProps, ResultsFooterComponentProps } from "@docsearch/react";
4
4
  //#region ../../node_modules/.bun/preact@11.0.0-beta.0/node_modules/preact/src/index.d.ts
@@ -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 __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1182,7 +1182,7 @@ function DocSearchButtonKey({ reactsToKey, children }) {
1182
1182
 
1183
1183
  //#endregion
1184
1184
  //#region ../docsearch-react/dist/esm/version.js
1185
- const version$1 = "5.0.0-beta.4";
1185
+ const version$1 = "5.0.1";
1186
1186
 
1187
1187
  //#endregion
1188
1188
  //#region \0@oxc-project+runtime@0.139.0/helpers/esm/OverloadYield.js
@@ -12380,7 +12380,7 @@ function useMenuParent() {
12380
12380
  }
12381
12381
 
12382
12382
  //#endregion
12383
- //#region ../docsearch-react/dist/esm/normalizeDocSearchIndexes-ChnVvoVt.js
12383
+ //#region ../docsearch-react/dist/esm/normalizeDocSearchIndexes-CFHzf-sx.js
12384
12384
  init_compat();
12385
12385
  function capitalize(text) {
12386
12386
  return `${text.charAt(0).toLocaleUpperCase()}${text.substring(1)}`;
@@ -12875,7 +12875,7 @@ function useFacetValues({ facets, indexes, searchClient }) {
12875
12875
  var _result$facets;
12876
12876
  Object.entries((_result$facets = res.facets) !== null && _result$facets !== void 0 ? _result$facets : {}).forEach(([facet, values]) => {
12877
12877
  if (!valuesByFacet[facet]) return;
12878
- valuesByFacet[facet] = Array.from(/* @__PURE__ */ new Set([...valuesByFacet[facet], ...Object.keys(values)])).sort();
12878
+ valuesByFacet[facet] = Array.from(/* @__PURE__ */ new Set([...valuesByFacet[facet], ...Object.keys(values)])).sort((a, b) => a.localeCompare(b, void 0, { sensitivity: "base" }));
12879
12879
  });
12880
12880
  });
12881
12881
  setFacetValues(valuesByFacet);
@@ -16305,7 +16305,7 @@ function createAutocomplete(options) {
16305
16305
  }
16306
16306
 
16307
16307
  //#endregion
16308
- //#region ../docsearch-react/dist/esm/DocSearchModal-CITTG0fe.js
16308
+ //#region ../docsearch-react/dist/esm/DocSearchModal-Cgdi4eHY.js
16309
16309
  init_compat();
16310
16310
  const _excluded$3 = ["translations"];
16311
16311
  function KeywordSearchBox(_ref) {
@@ -16841,7 +16841,7 @@ function useDocSearch() {
16841
16841
  }
16842
16842
 
16843
16843
  //#endregion
16844
- //#region ../docsearch-react/dist/esm/index.js
16844
+ //#region ../docsearch-react/dist/esm/docsearch.js
16845
16845
  init_compat();
16846
16846
  const _excluded$1 = ["appId", "apiKey"];
16847
16847
  function DocSearchComponent(_ref, ref) {