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.
- package/dist/{client-8RQ-FiG2.d.ts → client-DS68wTeB.d.ts} +2 -2
- package/dist/search/client/algolia.d.ts +1 -1
- package/dist/search/client/fetch.d.ts +1 -1
- package/dist/search/client/fetch.js +1 -1
- package/dist/search/client/flexsearch-static.d.ts +1 -1
- package/dist/search/client/flexsearch-static.js +1 -1
- package/dist/search/client/mixedbread.d.ts +1 -1
- package/dist/search/client/orama-cloud-legacy.d.ts +1 -1
- package/dist/search/client/orama-cloud.d.ts +1 -1
- package/dist/search/client/orama-static.d.ts +1 -1
- package/dist/search/client/orama-static.js +1 -1
- package/dist/search/client.d.ts +1 -1
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ declare function fetchClient({
|
|
|
31
31
|
locale,
|
|
32
32
|
tag,
|
|
33
33
|
cache
|
|
34
|
-
}
|
|
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
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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;
|
package/dist/search/client.d.ts
CHANGED
|
@@ -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-
|
|
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 };
|