fumadocs-core 16.15.15 → 16.15.16
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/{algolia-DSjV89ug.d.ts → algolia-C5o8qrQ1.d.ts} +1 -1
- package/dist/{client-ByEdoQoD.d.ts → client-BcR4jyFl.d.ts} +1 -1
- package/dist/{dynamic-CSrl9w26.js → dynamic-Ce3F5rPi.js} +11 -5
- package/dist/{index-BEGAd2ej.d.ts → index-CBtz3H2e.d.ts} +1 -1
- package/dist/mcp.d.ts +2 -2
- package/dist/search/algolia.d.ts +1 -1
- package/dist/search/client/algolia.d.ts +1 -1
- package/dist/search/client/fetch.d.ts +1 -1
- package/dist/search/client/flexsearch-static.d.ts +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.d.ts +1 -1
- package/dist/search/flexsearch.d.ts +2 -2
- package/dist/search/mixedbread.d.ts +1 -1
- package/dist/search/orama-cloud.d.ts +1 -1
- package/dist/search/server.d.ts +1 -1
- package/dist/{server-D1FyGpz2.d.ts → server-B7eP2V3p.d.ts} +1 -1
- package/dist/source/dynamic.d.ts +1 -1
- package/dist/source/dynamic.js +1 -1
- package/dist/source/index.d.ts +1 -1
- package/dist/source/index.js +1 -1
- package/dist/source/llms.d.ts +1 -1
- package/dist/source/plugins/lucide-icons.d.ts +1 -1
- package/dist/source/plugins/slugs.d.ts +1 -1
- package/dist/source/plugins/status-badges.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Awaitable } from "./types-D89QoQR-.js";
|
|
2
2
|
import { i as StructuredData } from "./remark-structure-CnHwvNZr.js";
|
|
3
|
-
import { S as LoaderOutput, b as LoaderConfig } from "./index-
|
|
3
|
+
import { S as LoaderOutput, b as LoaderConfig } from "./index-CBtz3H2e.js";
|
|
4
4
|
import { Algoliasearch } from "algoliasearch";
|
|
5
5
|
//#region src/search/algolia.d.ts
|
|
6
6
|
interface DocumentRecord {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Awaitable } from "./types-D89QoQR-.js";
|
|
2
2
|
import { r as SortedResult } from "./index-BM36H-xw.js";
|
|
3
|
-
import { t as BaseIndex } from "./algolia-
|
|
3
|
+
import { t as BaseIndex } from "./algolia-C5o8qrQ1.js";
|
|
4
4
|
import { DependencyList } from "react";
|
|
5
5
|
import { AnyZBSearch, SearchParams } from "zbsearch";
|
|
6
6
|
import { LiteClient, SearchResponse } from "algoliasearch/lite";
|
|
@@ -597,6 +597,15 @@ function pathToName(name) {
|
|
|
597
597
|
}
|
|
598
598
|
//#endregion
|
|
599
599
|
//#region src/source/loader.ts
|
|
600
|
+
/** decoded, generated slugs are URI encoded but some routers pass them decoded */
|
|
601
|
+
function slugsKey(slugs) {
|
|
602
|
+
const key = slugs.join("/");
|
|
603
|
+
try {
|
|
604
|
+
return decodeURI(key);
|
|
605
|
+
} catch {
|
|
606
|
+
return key;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
600
609
|
function createPageIndexer({ url }) {
|
|
601
610
|
const pages = /* @__PURE__ */ new Map();
|
|
602
611
|
const pathToMeta = /* @__PURE__ */ new Map();
|
|
@@ -627,7 +636,7 @@ function createPageIndexer({ url }) {
|
|
|
627
636
|
locale: lang
|
|
628
637
|
};
|
|
629
638
|
pathToPage.set(path, page);
|
|
630
|
-
pages.set(prefix + page.slugs
|
|
639
|
+
pages.set(prefix + slugsKey(page.slugs), page);
|
|
631
640
|
urlToPage.set(prefix + page.url, page);
|
|
632
641
|
}
|
|
633
642
|
},
|
|
@@ -641,10 +650,7 @@ function createPageIndexer({ url }) {
|
|
|
641
650
|
return pathToMeta.get(`${lang}.${path}`);
|
|
642
651
|
},
|
|
643
652
|
getPageBySlugs(slugs, lang = "") {
|
|
644
|
-
|
|
645
|
-
if (page) return page;
|
|
646
|
-
page = pages.get(`${lang}.${slugs.map(decodeURI).join("/")}`);
|
|
647
|
-
if (page) return page;
|
|
653
|
+
return pages.get(`${lang}.${slugsKey(slugs)}`);
|
|
648
654
|
},
|
|
649
655
|
/** do not filter by language if `lang` is not specified */
|
|
650
656
|
getPages(lang) {
|
|
@@ -245,7 +245,7 @@ interface LoaderOutput<Config extends LoaderConfig = LoaderConfig> {
|
|
|
245
245
|
pages: Config['page'][];
|
|
246
246
|
}[];
|
|
247
247
|
/**
|
|
248
|
-
* Get page with slugs,
|
|
248
|
+
* Get page with slugs, they can be URI encoded or decoded.
|
|
249
249
|
*
|
|
250
250
|
* @param language - If unspecified, the default language will be used.
|
|
251
251
|
*/
|
package/dist/mcp.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Awaitable } from "./types-D89QoQR-.js";
|
|
2
|
-
import { r as SearchServer } from "./server-
|
|
3
|
-
import { S as LoaderOutput, b as LoaderConfig, r as LLMsWithPages } from "./index-
|
|
2
|
+
import { r as SearchServer } from "./server-B7eP2V3p.js";
|
|
3
|
+
import { S as LoaderOutput, b as LoaderConfig, r as LLMsWithPages } from "./index-CBtz3H2e.js";
|
|
4
4
|
import { McpServer } from "@modelcontextprotocol/server";
|
|
5
5
|
//#region src/mcp.d.ts
|
|
6
6
|
/**
|
package/dist/search/algolia.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as sync, i as setIndexSettings, n as DocumentRecord, o as toDocuments, r as SyncOptions, s as updateDocuments, t as BaseIndex } from "../algolia-
|
|
1
|
+
import { a as sync, i as setIndexSettings, n as DocumentRecord, o as toDocuments, r as SyncOptions, s as updateDocuments, t as BaseIndex } from "../algolia-C5o8qrQ1.js";
|
|
2
2
|
export { BaseIndex, DocumentRecord, SyncOptions, setIndexSettings, sync, toDocuments, updateDocuments };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { m as algoliaClient, p as AlgoliaOptions } from "../../client-
|
|
1
|
+
import { m as algoliaClient, p as AlgoliaOptions } from "../../client-BcR4jyFl.js";
|
|
2
2
|
export { AlgoliaOptions, algoliaClient };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { v as FetchOptions, y as fetchClient } from "../../client-
|
|
1
|
+
import { v as FetchOptions, y as fetchClient } from "../../client-BcR4jyFl.js";
|
|
2
2
|
export { FetchOptions, fetchClient };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as flexsearchStaticClient, i as FlexsearchStaticOptions } from "../../client-
|
|
1
|
+
import { a as flexsearchStaticClient, i as FlexsearchStaticOptions } from "../../client-BcR4jyFl.js";
|
|
2
2
|
export { FlexsearchStaticOptions, flexsearchStaticClient };
|
|
@@ -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-BcR4jyFl.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-BcR4jyFl.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-BcR4jyFl.js";
|
|
2
2
|
export { OramaCloudOptions, oramaCloudClient };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as staticClient, g as oramaStaticClient, h as StaticOptions } from "../../client-
|
|
1
|
+
import { _ as staticClient, g as oramaStaticClient, h as StaticOptions } from "../../client-BcR4jyFl.js";
|
|
2
2
|
export { StaticOptions, oramaStaticClient, staticClient };
|
package/dist/search/client.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { d as OramaCloudOptions, h as StaticOptions, n as SearchClient, p as AlgoliaOptions, r as useDocsSearch, t as ClientPreset, v as FetchOptions } from "../client-
|
|
1
|
+
import { d as OramaCloudOptions, h as StaticOptions, n as SearchClient, p as AlgoliaOptions, r as useDocsSearch, t as ClientPreset, v as FetchOptions } from "../client-BcR4jyFl.js";
|
|
2
2
|
export { type AlgoliaOptions, ClientPreset, type FetchOptions, type OramaCloudOptions, SearchClient, type StaticOptions, useDocsSearch };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Awaitable } from "../types-D89QoQR-.js";
|
|
2
2
|
import { n as I18nConfig } from "../index-DydiXvgS.js";
|
|
3
|
-
import { m as SharedIndex, n as SearchAPI, t as QueryOptions } from "../server-
|
|
4
|
-
import { S as LoaderOutput, b as LoaderConfig } from "../index-
|
|
3
|
+
import { m as SharedIndex, n as SearchAPI, t as QueryOptions } from "../server-B7eP2V3p.js";
|
|
4
|
+
import { S as LoaderOutput, b as LoaderConfig } from "../index-CBtz3H2e.js";
|
|
5
5
|
import "../index-BM36H-xw.js";
|
|
6
6
|
import { DocumentData, DocumentOptions } from "flexsearch";
|
|
7
7
|
//#region src/search/server/build-doc.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as SearchAPI } from "../server-
|
|
1
|
+
import { n as SearchAPI } from "../server-B7eP2V3p.js";
|
|
2
2
|
import { r as SortedResult } from "../index-BM36H-xw.js";
|
|
3
3
|
import Mixedbread from "@mixedbread/sdk";
|
|
4
4
|
import { StoreSearchResponse } from "@mixedbread/sdk/resources/stores";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Awaitable } from "../types-D89QoQR-.js";
|
|
2
2
|
import { i as StructuredData } from "../remark-structure-CnHwvNZr.js";
|
|
3
3
|
import "../index-Cyv18VFj.js";
|
|
4
|
-
import { S as LoaderOutput, b as LoaderConfig } from "../index-
|
|
4
|
+
import { S as LoaderOutput, b as LoaderConfig } from "../index-CBtz3H2e.js";
|
|
5
5
|
import { OramaCloud } from "@orama/core";
|
|
6
6
|
//#region src/search/orama-cloud.d.ts
|
|
7
7
|
export interface SyncOptions {
|
package/dist/search/server.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AdvancedOptions, c as SimpleOptions, d as createSearchAPI, f as initAdvancedSearch, i as AdvancedIndex, l as createFromSource, n as SearchAPI, o as ExportedData, p as initSimpleSearch, r as SearchServer, s as Index, t as QueryOptions, u as createI18nSearchAPI } from "../server-
|
|
1
|
+
import { a as AdvancedOptions, c as SimpleOptions, d as createSearchAPI, f as initAdvancedSearch, i as AdvancedIndex, l as createFromSource, n as SearchAPI, o as ExportedData, p as initSimpleSearch, r as SearchServer, s as Index, t as QueryOptions, u as createI18nSearchAPI } from "../server-B7eP2V3p.js";
|
|
2
2
|
export { AdvancedIndex, AdvancedOptions, ExportedData, Index, QueryOptions, SearchAPI, SearchServer, SimpleOptions, createFromSource, createI18nSearchAPI, createSearchAPI, initAdvancedSearch, initSimpleSearch };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Awaitable } from "./types-D89QoQR-.js";
|
|
2
2
|
import { i as StructuredData } from "./remark-structure-CnHwvNZr.js";
|
|
3
3
|
import { n as I18nConfig } from "./index-DydiXvgS.js";
|
|
4
|
-
import { S as LoaderOutput, b as LoaderConfig } from "./index-
|
|
4
|
+
import { S as LoaderOutput, b as LoaderConfig } from "./index-CBtz3H2e.js";
|
|
5
5
|
import { r as SortedResult } from "./index-BM36H-xw.js";
|
|
6
6
|
import { Language, RawData, SearchParams, TypedDocument, ZBSearch, create } from "zbsearch";
|
|
7
7
|
//#region src/search/zbsearch/create-db.d.ts
|
package/dist/source/dynamic.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as dynamicLoader, g as DynamicLoaderConfig, h as DynamicLoader } from "../index-
|
|
1
|
+
import { _ as dynamicLoader, g as DynamicLoaderConfig, h as DynamicLoader } from "../index-CBtz3H2e.js";
|
|
2
2
|
export { DynamicLoader, DynamicLoaderConfig, dynamicLoader };
|
package/dist/source/dynamic.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as dynamicLoader } from "../dynamic-
|
|
1
|
+
import { t as dynamicLoader } from "../dynamic-Ce3F5rPi.js";
|
|
2
2
|
export { dynamicLoader };
|
package/dist/source/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as types_d_exports, B as ContentStorage, C as LoaderPlugin, D as ResolvedLoaderConfig, E as Page, H as ContentStoragePageFile, I as PageTreeBuilder, L as PageTreeBuilderContext, N as getSlugs, O as createGetUrl, R as PageTreeOptions, S as LoaderOutput, T as Meta, U as FileSystem, V as ContentStorageMetaFile, _ as dynamicLoader, a as path_d_exports, b as LoaderConfig, c as PageData, d as StaticSource, f as VirtualFile, g as DynamicLoaderConfig, h as DynamicLoader, i as llms, k as loader, l as Source, m as update, n as LLMsConfig, o as DynamicSource, p as multiple, r as LLMsWithPages, s as MetaData, t as LLMs, u as SourceUnion, v as InferMetaType, w as LoaderPluginOption, x as LoaderOptions, y as InferPageType, z as PageTreeTransformer } from "../index-
|
|
1
|
+
import { A as types_d_exports, B as ContentStorage, C as LoaderPlugin, D as ResolvedLoaderConfig, E as Page, H as ContentStoragePageFile, I as PageTreeBuilder, L as PageTreeBuilderContext, N as getSlugs, O as createGetUrl, R as PageTreeOptions, S as LoaderOutput, T as Meta, U as FileSystem, V as ContentStorageMetaFile, _ as dynamicLoader, a as path_d_exports, b as LoaderConfig, c as PageData, d as StaticSource, f as VirtualFile, g as DynamicLoaderConfig, h as DynamicLoader, i as llms, k as loader, l as Source, m as update, n as LLMsConfig, o as DynamicSource, p as multiple, r as LLMsWithPages, s as MetaData, t as LLMs, u as SourceUnion, v as InferMetaType, w as LoaderPluginOption, x as LoaderOptions, y as InferPageType, z as PageTreeTransformer } from "../index-CBtz3H2e.js";
|
|
2
2
|
export { type ContentStorage, type ContentStorageMetaFile, type ContentStoragePageFile, type DynamicLoader, type DynamicLoaderConfig, type DynamicSource, FileSystem, InferMetaType, InferPageType, LLMs, LLMsConfig, LLMsWithPages, LoaderConfig, LoaderOptions, LoaderOutput, LoaderPlugin, LoaderPluginOption, Meta, type MetaData, Page, type PageData, type PageTreeBuilder, type PageTreeBuilderContext, type PageTreeOptions, type PageTreeTransformer, path_d_exports as PathUtils, ResolvedLoaderConfig, type Source, type SourceUnion, type StaticSource, type VirtualFile, type types_d_exports as _Internal, createGetUrl, dynamicLoader, getSlugs, llms, loader, multiple, update };
|
package/dist/source/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as path_exports } from "../path-m9Srg2Jq.js";
|
|
2
|
-
import { a as update, i as multiple, n as createGetUrl, o as FileSystem, r as loader, t as dynamicLoader } from "../dynamic-
|
|
2
|
+
import { a as update, i as multiple, n as createGetUrl, o as FileSystem, r as loader, t as dynamicLoader } from "../dynamic-Ce3F5rPi.js";
|
|
3
3
|
import { getSlugs } from "./plugins/slugs.js";
|
|
4
4
|
import { llms } from "./llms.js";
|
|
5
5
|
export { FileSystem, path_exports as PathUtils, createGetUrl, dynamicLoader, getSlugs, llms, loader, multiple, update };
|
package/dist/source/llms.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as llms, n as LLMsConfig, r as LLMsWithPages, t as LLMs } from "../index-
|
|
1
|
+
import { i as llms, n as LLMsConfig, r as LLMsWithPages, t as LLMs } from "../index-CBtz3H2e.js";
|
|
2
2
|
export { LLMs, LLMsConfig, LLMsWithPages, llms };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { F as slugsPlugin, M as SlugsPluginOptions, N as getSlugs, P as slugsFromData, j as SlugFn } from "../../index-
|
|
1
|
+
import { F as slugsPlugin, M as SlugsPluginOptions, N as getSlugs, P as slugsFromData, j as SlugFn } from "../../index-CBtz3H2e.js";
|
|
2
2
|
export { SlugFn, SlugsPluginOptions, getSlugs, slugsFromData, slugsPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as Separator$1, n as Item$1, o as definitions_d_exports, t as Folder$1 } from "../../definitions-BZlqdyOx.js";
|
|
2
|
-
import { C as LoaderPlugin } from "../../index-
|
|
2
|
+
import { C as LoaderPlugin } from "../../index-CBtz3H2e.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
//#region src/source/plugins/status-badges.d.ts
|
|
5
5
|
export interface Item extends Item$1 {
|