fumadocs-core 16.6.12 → 16.6.13

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.
@@ -31,7 +31,7 @@ declare function fetchClient({
31
31
  locale,
32
32
  tag,
33
33
  cache
34
- }: FetchOptions): SearchClient;
34
+ }?: FetchOptions): SearchClient;
35
35
  //#endregion
36
36
  //#region src/search/client/orama-static.d.ts
37
37
  interface StaticOptions {
@@ -157,7 +157,7 @@ interface FlexsearchStaticOptions {
157
157
  locale?: string;
158
158
  tag?: string | string[];
159
159
  }
160
- declare function flexsearchStaticClient(options: FlexsearchStaticOptions): SearchClient;
160
+ declare function flexsearchStaticClient(options?: FlexsearchStaticOptions): SearchClient;
161
161
  //#endregion
162
162
  //#region src/search/client.d.ts
163
163
  interface UseDocsSearch {
@@ -1,2 +1,2 @@
1
- import { m as algoliaClient, p as AlgoliaOptions } from "../../client-8RQ-FiG2.js";
1
+ import { m as algoliaClient, p as AlgoliaOptions } from "../../client-DS68wTeB.js";
2
2
  export { AlgoliaOptions, algoliaClient };
@@ -1,2 +1,2 @@
1
- import { _ as FetchOptions, v as fetchClient } from "../../client-8RQ-FiG2.js";
1
+ import { _ as FetchOptions, v as fetchClient } from "../../client-DS68wTeB.js";
2
2
  export { FetchOptions, fetchClient };
@@ -1,6 +1,6 @@
1
1
  //#region src/search/client/fetch.ts
2
2
  const globalCache = /* @__PURE__ */ new Map();
3
- function fetchClient({ api = "/api/search", locale, tag, cache = globalCache }) {
3
+ function fetchClient({ api = "/api/search", locale, tag, cache = globalCache } = {}) {
4
4
  return {
5
5
  deps: [
6
6
  api,
@@ -1,2 +1,2 @@
1
- import { a as flexsearchStaticClient, i as FlexsearchStaticOptions } from "../../client-8RQ-FiG2.js";
1
+ import { a as flexsearchStaticClient, i as FlexsearchStaticOptions } from "../../client-DS68wTeB.js";
2
2
  export { FlexsearchStaticOptions, flexsearchStaticClient };
@@ -6,7 +6,7 @@ function initDocument(data) {
6
6
  return document;
7
7
  }
8
8
  const cacheMap = /* @__PURE__ */ new Map();
9
- function flexsearchStaticClient(options) {
9
+ function flexsearchStaticClient(options = {}) {
10
10
  const { from = "/api/search", locale = "", tag } = options;
11
11
  let dbs = cacheMap.get(from);
12
12
  if (!dbs) {
@@ -1,2 +1,2 @@
1
- import { c as mixedbreadClient, o as MixedbreadOptions, s as SearchMetadata } from "../../client-8RQ-FiG2.js";
1
+ import { c as mixedbreadClient, o as MixedbreadOptions, s as SearchMetadata } from "../../client-DS68wTeB.js";
2
2
  export { MixedbreadOptions, SearchMetadata, mixedbreadClient };
@@ -1,2 +1,2 @@
1
- import { l as OramaCloudLegacyOptions, u as oramaCloudLegacyClient } from "../../client-8RQ-FiG2.js";
1
+ import { l as OramaCloudLegacyOptions, u as oramaCloudLegacyClient } from "../../client-DS68wTeB.js";
2
2
  export { OramaCloudLegacyOptions, oramaCloudLegacyClient };
@@ -1,2 +1,2 @@
1
- import { d as OramaCloudOptions, f as oramaCloudClient } from "../../client-8RQ-FiG2.js";
1
+ import { d as OramaCloudOptions, f as oramaCloudClient } from "../../client-DS68wTeB.js";
2
2
  export { OramaCloudOptions, oramaCloudClient };
@@ -1,2 +1,2 @@
1
- import { g as oramaStaticClient, h as StaticOptions } from "../../client-8RQ-FiG2.js";
1
+ import { g as oramaStaticClient, h as StaticOptions } from "../../client-DS68wTeB.js";
2
2
  export { StaticOptions, oramaStaticClient };
@@ -5,7 +5,7 @@ const cache = /* @__PURE__ */ new Map();
5
5
  async function loadDB({ from = "/api/search", initOrama = (locale) => create({
6
6
  schema: { _: "string" },
7
7
  language: locale
8
- }) }) {
8
+ }) } = {}) {
9
9
  const cacheKey = from;
10
10
  const cached = cache.get(cacheKey);
11
11
  if (cached) return cached;
@@ -1,2 +1,2 @@
1
- import { _ as FetchOptions, d as OramaCloudOptions, h as StaticOptions, n as SearchClient, p as AlgoliaOptions, r as useDocsSearch, t as ClientPreset } from "../client-8RQ-FiG2.js";
1
+ import { _ as FetchOptions, d as OramaCloudOptions, h as StaticOptions, n as SearchClient, p as AlgoliaOptions, r as useDocsSearch, t as ClientPreset } from "../client-DS68wTeB.js";
2
2
  export { AlgoliaOptions, ClientPreset, FetchOptions, OramaCloudOptions, SearchClient, StaticOptions, useDocsSearch };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "16.6.12",
3
+ "version": "16.6.13",
4
4
  "description": "The React.js library for building a documentation website",
5
5
  "keywords": [
6
6
  "Docs",