fumadocs-core 16.18.2 → 16.18.3
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-B36wJl6E.d.ts → algolia-DsNJZd4P.d.ts} +2 -2
- package/dist/{build-index-CqctTvug.js → build-index-8ryBfL45.js} +1 -1
- package/dist/{client-LE_6Q0xR.d.ts → client-Bv_2P4D3.d.ts} +3 -3
- package/dist/content/mdx/preset-bundler.d.ts +2 -2
- package/dist/content/mdx/preset-runtime.d.ts +2 -2
- package/dist/{dynamic-BKMu5hc8.js → dynamic-CENrXFis.js} +182 -23
- package/dist/dynamic-link.js +1 -1
- package/dist/framework/plugin.d.ts +2 -2
- package/dist/highlight/client.js +1 -1
- package/dist/highlight/index.js +1 -1
- package/dist/highlight/shiki/full.d.ts +1 -1
- package/dist/highlight/shiki/index.d.ts +1 -1
- package/dist/highlight/shiki/react.d.ts +2 -2
- package/dist/i18n/middleware.js +2088 -3439
- package/dist/{index-DWVer6sb.d.ts → index-BOhS1UKT.d.ts} +110 -13
- package/dist/{index-B0Bzrmfa.d.ts → index-e-8QoCiA.d.ts} +1 -1
- package/dist/mcp.d.ts +2 -2
- package/dist/mdx-plugins/index.d.ts +4 -4
- package/dist/mdx-plugins/index.js +6 -5
- package/dist/mdx-plugins/rehype-code.core.d.ts +1 -1
- package/dist/mdx-plugins/rehype-code.core.js +1 -1
- package/dist/mdx-plugins/rehype-code.d.ts +2 -2
- package/dist/mdx-plugins/rehype-code.js +1 -1
- package/dist/mdx-plugins/remark-code-tab.js +1 -1
- package/dist/mdx-plugins/remark-include.js +2 -2
- package/dist/mdx-plugins/remark-llms.js +1 -1
- package/dist/mdx-plugins/remark-npm.js +1 -1
- package/dist/mdx-plugins/remark-show.d.ts +2 -0
- package/dist/mdx-plugins/remark-show.js +162 -0
- package/dist/mdx-plugins/remark-steps.js +1 -1
- package/dist/mdx-plugins/remark-structure.js +1 -1
- package/dist/mdx-plugins/stringifier.js +6 -0
- package/dist/{meilisearch-CsyDr1xA.d.ts → meilisearch-DzjbVbAn.d.ts} +2 -2
- package/dist/{mixedbread-CyM4na_-.d.ts → mixedbread-CMi5F-zO.d.ts} +2 -2
- package/dist/negotiation/index.js +279 -290
- package/dist/{path-CH9Umap3.js → path-B8old5-F.js} +1 -1
- package/dist/{rehype-code-CPNaiqAY.d.ts → rehype-code-Czh_8L5z.d.ts} +1 -1
- package/dist/{rehype-code.core-D1aZ5yla.d.ts → rehype-code.core-BeCtKe7K.d.ts} +1 -1
- package/dist/{rehype-code.core-Dq2jmvan.js → rehype-code.core-Jt2VtK1A.js} +3 -3
- package/dist/rolldown-runtime-D3KUYPsf.js +12 -0
- package/dist/search/algolia.d.ts +1 -1
- package/dist/search/algolia.js +1 -1
- package/dist/search/client/algolia.d.ts +1 -1
- package/dist/search/client/docs-search.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/meilisearch.d.ts +1 -1
- package/dist/search/client/mixedbread.d.ts +2 -2
- package/dist/search/client/orama-cloud-legacy.d.ts +1 -1
- package/dist/search/client/orama-cloud-legacy.js +1 -1
- package/dist/search/client/orama-cloud.d.ts +1 -1
- package/dist/search/client/orama-cloud.js +1 -1
- package/dist/search/client/orama-static.d.ts +1 -1
- package/dist/search/client/orama-static.js +2 -2
- package/dist/search/client.d.ts +1 -1
- package/dist/search/flexsearch.d.ts +2 -2
- package/dist/search/flexsearch.js +1 -1
- package/dist/search/index.js +1 -1
- package/dist/search/meilisearch.d.ts +1 -1
- package/dist/search/meilisearch.js +1 -1
- package/dist/search/mixedbread.d.ts +2 -2
- package/dist/search/orama-cloud-legacy.d.ts +1 -1
- package/dist/search/orama-cloud.d.ts +2 -3
- package/dist/search/orama-cloud.js +1 -1
- package/dist/search/server.d.ts +1 -1
- package/dist/search/server.js +2 -2
- package/dist/{server-BUYLz3H4.d.ts → server-MsDv36PV.d.ts} +3 -3
- package/dist/source/dynamic.d.ts +1 -1
- package/dist/source/dynamic.js +1 -1
- package/dist/source/index.d.ts +2 -2
- package/dist/source/index.js +3 -3
- 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/slugs.js +1 -1
- package/dist/source/plugins/status-badges.d.ts +1 -1
- package/dist/source/schema.d.ts +2 -0
- package/dist/source/schema.js +3 -0
- package/dist/utils/hast-to-jsx.js +22 -31
- package/package.json +21 -20
- package/dist/index-BFnMPJLk.d.ts +0 -17
- package/dist/rolldown-runtime-C-UrYobY.js +0 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, flags) => {
|
|
4
|
+
let target = Object.setPrototypeOf({}, null);
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return flags & 2 ? target : Object.preventExtensions(target);
|
|
11
|
+
};
|
|
12
|
+
export { __exportAll as t };
|
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-DsNJZd4P.js";
|
|
2
2
|
export { BaseIndex, DocumentRecord, SyncOptions, setIndexSettings, sync, toDocuments, updateDocuments };
|
package/dist/search/algolia.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { b as useAlgoliaSearch, v as AlgoliaOptions, y as algoliaClient } from "../../client-
|
|
1
|
+
import { b as useAlgoliaSearch, v as AlgoliaOptions, y as algoliaClient } from "../../client-Bv_2P4D3.js";
|
|
2
2
|
export { AlgoliaOptions, algoliaClient, useAlgoliaSearch };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SearchClient, r as useDocsSearch, t as ClientPreset } from "../../client-
|
|
1
|
+
import { n as SearchClient, r as useDocsSearch, t as ClientPreset } from "../../client-Bv_2P4D3.js";
|
|
2
2
|
export { ClientPreset, SearchClient, useDocsSearch };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { D as useFetchSearch, E as fetchClient, T as FetchOptions } from "../../client-
|
|
1
|
+
import { D as useFetchSearch, E as fetchClient, T as FetchOptions } from "../../client-Bv_2P4D3.js";
|
|
2
2
|
export { FetchOptions, fetchClient, useFetchSearch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as join, t as BASE_PATH } from "../../url-BF81yL4m.js";
|
|
2
1
|
import { n as useSearch } from "../../use-search-eSAjMJVB.js";
|
|
2
|
+
import { n as join, t as BASE_PATH } from "../../url-BF81yL4m.js";
|
|
3
3
|
import { useCallback, useRef } from "react";
|
|
4
4
|
// src/search/client/fetch.ts
|
|
5
5
|
const globalCache = /* @__PURE__ */ new Map();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as flexsearchStaticClient, i as FlexsearchStaticOptions, o as useFlexsearchStatic } from "../../client-
|
|
1
|
+
import { a as flexsearchStaticClient, i as FlexsearchStaticOptions, o as useFlexsearchStatic } from "../../client-Bv_2P4D3.js";
|
|
2
2
|
export { FlexsearchStaticOptions, flexsearchStaticClient, useFlexsearchStatic };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as join, t as BASE_PATH } from "../../url-BF81yL4m.js";
|
|
2
1
|
import { n as useSearch } from "../../use-search-eSAjMJVB.js";
|
|
3
2
|
import { n as search, r as toSearchIndex, t as createDocument } from "../../utils-BQW8csGG.js";
|
|
3
|
+
import { n as join, t as BASE_PATH } from "../../url-BF81yL4m.js";
|
|
4
4
|
import { useCallback } from "react";
|
|
5
5
|
// src/search/client/flexsearch-static.ts
|
|
6
6
|
function initDocument(data) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { f as MeilisearchOptions, m as useMeilisearch, p as meilisearchClient } from "../../client-
|
|
1
|
+
import { f as MeilisearchOptions, m as useMeilisearch, p as meilisearchClient } from "../../client-Bv_2P4D3.js";
|
|
2
2
|
export { MeilisearchOptions, meilisearchClient, useMeilisearch };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as mixedbreadClient, s as MixedbreadOptions } from "../../client-
|
|
2
|
-
import { n as SearchMetadata } from "../../mixedbread-
|
|
1
|
+
import { c as mixedbreadClient, s as MixedbreadOptions } from "../../client-Bv_2P4D3.js";
|
|
2
|
+
import { n as SearchMetadata } from "../../mixedbread-CMi5F-zO.js";
|
|
3
3
|
export { MixedbreadOptions, type SearchMetadata, mixedbreadClient };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { d as useOramaCloudLegacySearch, l as OramaCloudLegacyOptions, u as oramaCloudLegacyClient } from "../../client-
|
|
1
|
+
import { d as useOramaCloudLegacySearch, l as OramaCloudLegacyOptions, u as oramaCloudLegacyClient } from "../../client-Bv_2P4D3.js";
|
|
2
2
|
export { OramaCloudLegacyOptions, oramaCloudLegacyClient, useOramaCloudLegacySearch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as useSearch } from "../../use-search-eSAjMJVB.js";
|
|
2
1
|
import { t as removeUndefined } from "../../remove-undefined-C_sjLeQT.js";
|
|
2
|
+
import { n as useSearch } from "../../use-search-eSAjMJVB.js";
|
|
3
3
|
import { useCallback, useRef } from "react";
|
|
4
4
|
// src/search/client/orama-cloud-legacy.ts
|
|
5
5
|
async function searchOramaCloudLegacy(options, query) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as useOramaCloudSearch, g as oramaCloudClient, h as OramaCloudOptions } from "../../client-
|
|
1
|
+
import { _ as useOramaCloudSearch, g as oramaCloudClient, h as OramaCloudOptions } from "../../client-Bv_2P4D3.js";
|
|
2
2
|
export { OramaCloudOptions, oramaCloudClient, useOramaCloudSearch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as useSearch } from "../../use-search-eSAjMJVB.js";
|
|
2
1
|
import { t as removeUndefined } from "../../remove-undefined-C_sjLeQT.js";
|
|
2
|
+
import { n as useSearch } from "../../use-search-eSAjMJVB.js";
|
|
3
3
|
import { useCallback, useRef } from "react";
|
|
4
4
|
// src/search/client/orama-cloud.ts
|
|
5
5
|
async function searchOramaCloud(options, query) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as staticClient, S as oramaStaticClient, w as useStaticSearch, x as StaticOptions } from "../../client-
|
|
1
|
+
import { C as staticClient, S as oramaStaticClient, w as useStaticSearch, x as StaticOptions } from "../../client-Bv_2P4D3.js";
|
|
2
2
|
export { StaticOptions, oramaStaticClient, staticClient, useStaticSearch };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as join, t as BASE_PATH } from "../../url-BF81yL4m.js";
|
|
2
|
-
import { n as useSearch } from "../../use-search-eSAjMJVB.js";
|
|
3
1
|
import { n as searchSimple, t as searchAdvanced } from "../../advanced-8SKrWgR9.js";
|
|
2
|
+
import { n as useSearch } from "../../use-search-eSAjMJVB.js";
|
|
3
|
+
import { n as join, t as BASE_PATH } from "../../url-BF81yL4m.js";
|
|
4
4
|
import { useCallback, useRef } from "react";
|
|
5
5
|
import { create, load } from "zbsearch";
|
|
6
6
|
// src/search/client/orama-static.ts
|
package/dist/search/client.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as SearchResultRecord, D as useFetchSearch, F as useSearch, M as UseSearchOptions, N as UseSearchReturn, O as SearchResult, P as useHighlightQuery, T as FetchOptions, _ as useOramaCloudSearch, b as useAlgoliaSearch, f as MeilisearchOptions, h as OramaCloudOptions, j as SearchResultTable, k as SearchResultItem, m as useMeilisearch, n as SearchClient, r as useDocsSearch, t as ClientPreset, v as AlgoliaOptions, w as useStaticSearch, x as StaticOptions } from "../client-
|
|
1
|
+
import { A as SearchResultRecord, D as useFetchSearch, F as useSearch, M as UseSearchOptions, N as UseSearchReturn, O as SearchResult, P as useHighlightQuery, T as FetchOptions, _ as useOramaCloudSearch, b as useAlgoliaSearch, f as MeilisearchOptions, h as OramaCloudOptions, j as SearchResultTable, k as SearchResultItem, m as useMeilisearch, n as SearchClient, r as useDocsSearch, t as ClientPreset, v as AlgoliaOptions, w as useStaticSearch, x as StaticOptions } from "../client-Bv_2P4D3.js";
|
|
2
2
|
export { type AlgoliaOptions, type ClientPreset, type FetchOptions, type MeilisearchOptions, type OramaCloudOptions, type SearchClient, type SearchResult, type SearchResultItem, type SearchResultRecord, type SearchResultTable, type StaticOptions, type UseSearchOptions, type UseSearchReturn, useSearch as experimental_useSearch, useAlgoliaSearch, useDocsSearch, useFetchSearch, useHighlightQuery, useMeilisearch, useOramaCloudSearch, useStaticSearch };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { m as SharedIndex, n as SearchAPI, t as QueryOptions } from "../server-MsDv36PV.js";
|
|
2
|
+
import { j as LoaderOutput, k as LoaderConfig } from "../index-BOhS1UKT.js";
|
|
1
3
|
import { t as Awaitable } from "../types-Dvkw0Kd0.js";
|
|
2
4
|
import { n as I18nConfig } from "../index-DFrWGSeW.js";
|
|
3
|
-
import { S as LoaderOutput, b as LoaderConfig } from "../index-DWVer6sb.js";
|
|
4
|
-
import { m as SharedIndex, n as SearchAPI, t as QueryOptions } from "../server-BUYLz3H4.js";
|
|
5
5
|
import "../index-CE1OSGGq.js";
|
|
6
6
|
import { DocumentData, DocumentOptions } from "flexsearch";
|
|
7
7
|
interface SharedDocument {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as buildIndexDefault, r as createBreadcrumbs } from "../build-index-CqctTvug.js";
|
|
2
1
|
import { t as createEndpoint } from "../endpoint-H7rb4eeq.js";
|
|
2
|
+
import { n as buildIndexDefault, r as createBreadcrumbs } from "../build-index-8ryBfL45.js";
|
|
3
3
|
import { t as buildDocuments } from "../build-doc-CHLmZvHA.js";
|
|
4
4
|
import { n as search, r as toSearchIndex, t as createDocument } from "../utils-BQW8csGG.js";
|
|
5
5
|
import Search from "flexsearch";
|
package/dist/search/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { markdownTable } from "../mdx-plugins/stringifier.js";
|
|
2
1
|
import { s as walk } from "../utils-DV8PBZiI.js";
|
|
2
|
+
import { markdownTable } from "../mdx-plugins/stringifier.js";
|
|
3
3
|
import { t as buildRegexFromQuery } from "../highlight-D_pTHg81.js";
|
|
4
4
|
import { remark } from "remark";
|
|
5
5
|
// src/search/index.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as toDocuments, i as sync, n as MeilisearchDocument, r as SyncOptions, t as DocumentRecord } from "../meilisearch-
|
|
1
|
+
import { a as toDocuments, i as sync, n as MeilisearchDocument, r as SyncOptions, t as DocumentRecord } from "../meilisearch-DzjbVbAn.js";
|
|
2
2
|
export { DocumentRecord, MeilisearchDocument, SyncOptions, sync, toDocuments };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as createBreadcrumbs, t as buildDocuments } from "../build-index-
|
|
1
|
+
import { r as createBreadcrumbs, t as buildDocuments } from "../build-index-8ryBfL45.js";
|
|
2
2
|
// src/search/meilisearch.ts
|
|
3
3
|
/**
|
|
4
4
|
* Build the search documents of every page in a source.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as toDocuments, t as DocumentRecord } from "../meilisearch-
|
|
2
|
-
import { a as sync, i as createMixedbreadSearchAPI, n as SearchMetadata, r as SyncOptions, t as MixedbreadSearchOptions } from "../mixedbread-
|
|
1
|
+
import { a as toDocuments, t as DocumentRecord } from "../meilisearch-DzjbVbAn.js";
|
|
2
|
+
import { a as sync, i as createMixedbreadSearchAPI, n as SearchMetadata, r as SyncOptions, t as MixedbreadSearchOptions } from "../mixedbread-CMi5F-zO.js";
|
|
3
3
|
export { type DocumentRecord, MixedbreadSearchOptions, SearchMetadata, SyncOptions, createMixedbreadSearchAPI, sync, toDocuments };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as LoaderOutput, k as LoaderConfig } from "../index-BOhS1UKT.js";
|
|
2
2
|
import { n as StructuredData } from "../remark-structure-50nmY6sX.js";
|
|
3
|
-
import "../
|
|
4
|
-
import { S as LoaderOutput, b as LoaderConfig } from "../index-DWVer6sb.js";
|
|
3
|
+
import { t as Awaitable } from "../types-Dvkw0Kd0.js";
|
|
5
4
|
import { OramaCloud } from "@orama/core";
|
|
6
5
|
export interface SyncOptions {
|
|
7
6
|
/**
|
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-MsDv36PV.js";
|
|
2
2
|
export { AdvancedIndex, AdvancedOptions, ExportedData, Index, QueryOptions, SearchAPI, SearchServer, SimpleOptions, createFromSource, createI18nSearchAPI, createSearchAPI, initAdvancedSearch, initSimpleSearch };
|
package/dist/search/server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as buildIndexDefault, r as createBreadcrumbs } from "../build-index-CqctTvug.js";
|
|
2
|
-
import { n as searchSimple, t as searchAdvanced } from "../advanced-8SKrWgR9.js";
|
|
3
1
|
import { n as defaultReadOptions, t as createEndpoint } from "../endpoint-H7rb4eeq.js";
|
|
4
2
|
import { t as buildDocuments } from "../build-doc-CHLmZvHA.js";
|
|
3
|
+
import { n as searchSimple, t as searchAdvanced } from "../advanced-8SKrWgR9.js";
|
|
4
|
+
import { n as buildIndexDefault, r as createBreadcrumbs } from "../build-index-8ryBfL45.js";
|
|
5
5
|
import { create, insertMultipleAsync, save } from "zbsearch";
|
|
6
6
|
// src/search/zbsearch/create-db.ts
|
|
7
7
|
const simpleSchema = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Awaitable } from "./types-Dvkw0Kd0.js";
|
|
2
|
-
import { n as StructuredData } from "./remark-structure-50nmY6sX.js";
|
|
3
1
|
import { n as I18nConfig } from "./index-DFrWGSeW.js";
|
|
4
|
-
import {
|
|
2
|
+
import { j as LoaderOutput, k as LoaderConfig } from "./index-BOhS1UKT.js";
|
|
3
|
+
import { n as StructuredData } from "./remark-structure-50nmY6sX.js";
|
|
4
|
+
import { t as Awaitable } from "./types-Dvkw0Kd0.js";
|
|
5
5
|
import { r as SortedResult } from "./index-CE1OSGGq.js";
|
|
6
6
|
import { Language, RawData, SearchParams, TypedDocument, ZBSearch, create } from "zbsearch";
|
|
7
7
|
type SimpleDocument = TypedDocument<ZBSearch<typeof simpleSchema>>;
|
package/dist/source/dynamic.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as dynamicLoader, T as DynamicLoaderConfig, w as DynamicLoader } from "../index-BOhS1UKT.js";
|
|
2
2
|
export { DynamicLoader, DynamicLoaderConfig, dynamicLoader };
|
package/dist/source/dynamic.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as dynamicLoader } from "../dynamic-
|
|
1
|
+
export { t as dynamicLoader } from "../dynamic-CENrXFis.js";
|
package/dist/source/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
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 };
|
|
1
|
+
import { A as LoaderOptions, C as update, D as InferMetaType, E as dynamicLoader, F as Page, G as PageTreeBuilder, H as getSlugs, I as ResolvedLoaderConfig, J as PageTreeTransformer, K as PageTreeBuilderContext, L as createGetUrl, M as LoaderPlugin, N as LoaderPluginOption, O as InferPageType, P as Meta, Q as FileSystem, R as loader, S as multiple, T as DynamicLoaderConfig, X as ContentStorageMetaFile, Y as ContentStorage, Z as ContentStoragePageFile, _ as Params, b as StaticSource, c as LLMsWithPages, d as getStaticParams, f as isDynamicPath, g as PageData, h as MetaData, j as LoaderOutput, k as LoaderConfig, l as llms, m as DynamicSource, o as LLMs, p as path_d_exports, q as PageTreeOptions, s as LLMsConfig, u as StaticParamsOptions, v as Source, w as DynamicLoader, x as VirtualFile, y as SourceUnion, z as types_d_exports } from "../index-BOhS1UKT.js";
|
|
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, type Params, path_d_exports as PathUtils, ResolvedLoaderConfig, type Source, type SourceUnion, type StaticParamsOptions, type StaticSource, type VirtualFile, type types_d_exports as _Internal, createGetUrl, dynamicLoader, getSlugs, getStaticParams, isDynamicPath, llms, loader, multiple, update };
|
package/dist/source/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as
|
|
2
|
-
import { a as update, i as multiple, n as createGetUrl, o as FileSystem, r as loader, t as dynamicLoader } from "../dynamic-BKMu5hc8.js";
|
|
1
|
+
import { a as isDynamicPath, c as FileSystem, i as getStaticParams, n as createGetUrl, o as multiple, r as loader, s as update, t as dynamicLoader } from "../dynamic-CENrXFis.js";
|
|
3
2
|
import { getSlugs } from "./plugins/slugs.js";
|
|
3
|
+
import { o as path_exports } from "../path-B8old5-F.js";
|
|
4
4
|
import { llms } from "./llms.js";
|
|
5
|
-
export { FileSystem, path_exports as PathUtils, createGetUrl, dynamicLoader, getSlugs, llms, loader, multiple, update };
|
|
5
|
+
export { FileSystem, path_exports as PathUtils, createGetUrl, dynamicLoader, getSlugs, getStaticParams, isDynamicPath, llms, loader, multiple, update };
|
package/dist/source/llms.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as LLMsWithPages, l as llms, o as LLMs, s as LLMsConfig } from "../index-BOhS1UKT.js";
|
|
2
2
|
export { LLMs, LLMsConfig, LLMsWithPages, llms };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as SlugFn, H as getSlugs, U as slugsFromData, V as SlugsPluginOptions, W as slugsPlugin } from "../../index-BOhS1UKT.js";
|
|
2
2
|
export { SlugFn, SlugsPluginOptions, getSlugs, slugsFromData, slugsPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { M as LoaderPlugin } from "../../index-BOhS1UKT.js";
|
|
1
2
|
import { a as Separator$1, n as Item$1, t as Folder$1 } from "../../definitions-BQVehOBz.js";
|
|
2
|
-
import { C as LoaderPlugin } from "../../index-DWVer6sb.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
export interface Item extends Item$1 {
|
|
5
5
|
/**
|
package/dist/source/schema.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
* Zod 4 schema
|
|
4
4
|
*/
|
|
5
5
|
export declare const metaSchema: z.ZodObject<{
|
|
6
|
+
staticParams: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
6
7
|
title: z.ZodOptional<z.ZodString>;
|
|
7
8
|
pages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
9
|
pagesIndex: z.ZodOptional<z.ZodString>;
|
|
@@ -19,6 +20,7 @@ export type _JSONType = number | boolean | string | null | _JSONType[] | {
|
|
|
19
20
|
* Zod 4 schema
|
|
20
21
|
*/
|
|
21
22
|
export declare const pageSchema: z.ZodObject<{
|
|
23
|
+
staticParams: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
22
24
|
title: z.ZodString;
|
|
23
25
|
description: z.ZodOptional<z.ZodString>;
|
|
24
26
|
icon: z.ZodOptional<z.ZodString>;
|
package/dist/source/schema.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
// src/source/schema.ts
|
|
3
|
+
const staticParams = z.array(z.record(z.string(), z.string())).optional();
|
|
3
4
|
/**
|
|
4
5
|
* Zod 4 schema
|
|
5
6
|
*/
|
|
6
7
|
const metaSchema = z.object({
|
|
8
|
+
staticParams,
|
|
7
9
|
title: z.string().optional(),
|
|
8
10
|
pages: z.array(z.string()).optional(),
|
|
9
11
|
/** specify a index page for folder */
|
|
@@ -18,6 +20,7 @@ const metaSchema = z.object({
|
|
|
18
20
|
* Zod 4 schema
|
|
19
21
|
*/
|
|
20
22
|
const pageSchema = z.object({
|
|
23
|
+
staticParams,
|
|
21
24
|
title: z.string(),
|
|
22
25
|
description: z.string().optional(),
|
|
23
26
|
icon: z.string().optional(),
|
|
@@ -42,7 +42,7 @@ const BRACKET = 4;
|
|
|
42
42
|
const VALUE = 8;
|
|
43
43
|
const chars = Uint8Array.from({ length: 128 }, (_, code) => {
|
|
44
44
|
const char = String.fromCharCode(code);
|
|
45
|
-
return (/[-#/*\\\w]/.test(char) ? PROPERTY : 0) | (/[-\w]/.test(char) ? CUSTOM : 0) | (/[0-9a-z_-]/.test(char) ? BRACKET : 0) | (/[;}"'
|
|
45
|
+
return (/[-#/*\\\w]/.test(char) ? PROPERTY : 0) | (/[-\w]/.test(char) ? CUSTOM : 0) | (/[0-9a-z_-]/.test(char) ? BRACKET : 0) | (/[;}"'u]/.test(char) ? VALUE : 0);
|
|
46
46
|
});
|
|
47
47
|
/**
|
|
48
48
|
* Convert hast, with MDX nodes, into React elements like `toJsxRuntime()` from `hast-util-to-jsx-runtime`, but faster.
|
|
@@ -280,35 +280,40 @@ function parseStyle(input) {
|
|
|
280
280
|
const valueStart = skipSpace(input, i + 1);
|
|
281
281
|
i = valueEnd(input, valueStart);
|
|
282
282
|
const value = removeComments(input.slice(valueStart, i)).trim();
|
|
283
|
-
if (value) style[
|
|
283
|
+
if (value) style[styleName(name)] = value;
|
|
284
284
|
while (input.charCodeAt(i) === 59 || isSpace(input.charCodeAt(i))) i++;
|
|
285
285
|
i = comments(input, i);
|
|
286
286
|
}
|
|
287
287
|
return style;
|
|
288
288
|
}
|
|
289
|
-
/** where a value ends: at `;` or `}` outside of strings and
|
|
289
|
+
/** where a value ends: at `;` or `}` outside of strings and `url()` */
|
|
290
290
|
function valueEnd(input, i) {
|
|
291
291
|
while (i < input.length) {
|
|
292
292
|
const code = input.charCodeAt(i);
|
|
293
293
|
if (!is(code, VALUE)) i++;
|
|
294
294
|
else if (code === 59 || code === 125) break;
|
|
295
|
-
else if (code ===
|
|
296
|
-
|
|
297
|
-
i = end === -1 ? i + 1 : end + 1;
|
|
298
|
-
} else i = quoteEnd(input, i, code);
|
|
295
|
+
else if (code === 117) i = input.startsWith("url(", i) && urlEnd(input, i + 4) || i + 1;
|
|
296
|
+
else i = quoteEnd(input, i, code) ?? i + 1;
|
|
299
297
|
}
|
|
300
298
|
return i;
|
|
301
299
|
}
|
|
302
|
-
/**
|
|
300
|
+
/** the end of a closed string, its escapes can be any character */
|
|
303
301
|
function quoteEnd(input, start, quote) {
|
|
304
|
-
let end = start + 1;
|
|
305
302
|
for (let i = start + 1; i < input.length; i++) {
|
|
306
303
|
const code = input.charCodeAt(i);
|
|
307
|
-
if (code ===
|
|
308
|
-
if (code ===
|
|
309
|
-
else if (code === 10 || code === 13 || code === 8232 || code === 8233) break;
|
|
304
|
+
if (code === 92) i++;
|
|
305
|
+
else if (code === quote) return i + 1;
|
|
310
306
|
}
|
|
311
|
-
|
|
307
|
+
}
|
|
308
|
+
/** the end of `url()` from `start` after `url(`, its argument is a string or else any text without `)` */
|
|
309
|
+
function urlEnd(input, start) {
|
|
310
|
+
const code = input.charCodeAt(start);
|
|
311
|
+
if (code === 34 || code === 39) {
|
|
312
|
+
const end = quoteEnd(input, start, code);
|
|
313
|
+
if (end !== void 0 && input.charCodeAt(end) === 41) return end + 1;
|
|
314
|
+
}
|
|
315
|
+
const end = input.indexOf(")", start);
|
|
316
|
+
if (end !== -1) return end + 1;
|
|
312
317
|
}
|
|
313
318
|
function comments(input, i) {
|
|
314
319
|
for (let next = comment(input, i); next !== i; next = comment(input, i)) i = next;
|
|
@@ -331,26 +336,12 @@ function removeComments(value) {
|
|
|
331
336
|
}
|
|
332
337
|
return last === 0 ? value : out + value.slice(last);
|
|
333
338
|
}
|
|
334
|
-
|
|
335
|
-
|
|
339
|
+
/** like `hast-util-to-jsx-runtime`: custom properties are case-sensitive, the others are camel cased for React */
|
|
340
|
+
function styleName(name) {
|
|
341
|
+
if (name.startsWith("--")) return name;
|
|
336
342
|
let lower = name.toLowerCase();
|
|
337
343
|
if (lower.startsWith("-ms-")) lower = lower.slice(1);
|
|
338
|
-
|
|
339
|
-
let last = 0;
|
|
340
|
-
for (let i = lower.indexOf("-"); i !== -1; i = lower.indexOf("-", i + 1)) {
|
|
341
|
-
const code = lower.charCodeAt(i + 1);
|
|
342
|
-
if (code >= 97 && code <= 122) {
|
|
343
|
-
out += lower.slice(last, i) + String.fromCharCode(code - 32);
|
|
344
|
-
last = i + 2;
|
|
345
|
-
i++;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
return out + lower.slice(last);
|
|
349
|
-
}
|
|
350
|
-
function isCustomProperty(name) {
|
|
351
|
-
if (name.length < 3 || !name.startsWith("--")) return false;
|
|
352
|
-
for (let i = 2; i < name.length; i++) if (!is(name.charCodeAt(i), CUSTOM)) return false;
|
|
353
|
-
return true;
|
|
344
|
+
return lower.includes("-") ? lower.replace(/-([a-z])/g, (_, char) => char.toUpperCase()) : lower;
|
|
354
345
|
}
|
|
355
346
|
function skipSpace(input, i) {
|
|
356
347
|
while (isSpace(input.charCodeAt(i))) i++;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-core",
|
|
3
|
-
"version": "16.18.
|
|
3
|
+
"version": "16.18.3",
|
|
4
4
|
"description": "The React.js library for building a documentation website",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"./mdx-plugins/remark-mdx-files": "./dist/mdx-plugins/remark-mdx-files.js",
|
|
67
67
|
"./mdx-plugins/remark-mdx-mermaid": "./dist/mdx-plugins/remark-mdx-mermaid.js",
|
|
68
68
|
"./mdx-plugins/remark-npm": "./dist/mdx-plugins/remark-npm.js",
|
|
69
|
+
"./mdx-plugins/remark-show": "./dist/mdx-plugins/remark-show.js",
|
|
69
70
|
"./mdx-plugins/remark-steps": "./dist/mdx-plugins/remark-steps.js",
|
|
70
71
|
"./mdx-plugins/remark-structure": "./dist/mdx-plugins/remark-structure.js",
|
|
71
72
|
"./mdx-plugins/stringifier": "./dist/mdx-plugins/stringifier.js",
|
|
@@ -129,42 +130,42 @@
|
|
|
129
130
|
"remark-gfm": "^4.0.1",
|
|
130
131
|
"remark-rehype": "^11.1.2",
|
|
131
132
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
132
|
-
"shiki": "^4.
|
|
133
|
+
"shiki": "^4.6.0",
|
|
133
134
|
"tinyglobby": "^0.2.17",
|
|
134
135
|
"unified": "^11.0.5",
|
|
135
136
|
"vfile": "^6.0.3",
|
|
136
137
|
"yaml": "^2.9.1",
|
|
137
|
-
"zbsearch": "^4.0.
|
|
138
|
+
"zbsearch": "^4.0.2"
|
|
138
139
|
},
|
|
139
140
|
"devDependencies": {
|
|
140
|
-
"@formatjs/intl-localematcher": "^0.
|
|
141
|
+
"@formatjs/intl-localematcher": "^0.10.1",
|
|
141
142
|
"@mdx-js/mdx": "^3.1.1",
|
|
142
|
-
"@mixedbread/sdk": "0.
|
|
143
|
-
"@modelcontextprotocol/server": "2.
|
|
143
|
+
"@mixedbread/sdk": "0.80.0",
|
|
144
|
+
"@modelcontextprotocol/server": "2.4.0",
|
|
144
145
|
"@orama/core": "^1.2.19",
|
|
145
146
|
"@oramacloud/client": "^2.1.4",
|
|
146
|
-
"@pierre/highlights": "^0.
|
|
147
|
-
"@shikijs/transformers": "^4.
|
|
148
|
-
"@tanstack/react-router": "1.170.
|
|
147
|
+
"@pierre/highlights": "^0.4.0",
|
|
148
|
+
"@shikijs/transformers": "^4.6.0",
|
|
149
|
+
"@tanstack/react-router": "1.170.46",
|
|
149
150
|
"@types/estree-jsx": "^1.0.5",
|
|
150
151
|
"@types/hast": "^3.0.5",
|
|
151
152
|
"@types/mdast": "^4.0.4",
|
|
152
|
-
"@types/node": "26.6.
|
|
153
|
+
"@types/node": "26.6.6",
|
|
153
154
|
"@types/react": "^19.3.0",
|
|
154
155
|
"@types/react-dom": "^19.3.0",
|
|
155
|
-
"algoliasearch": "5.
|
|
156
|
+
"algoliasearch": "5.61.0",
|
|
156
157
|
"flexsearch": "^0.8.212",
|
|
157
|
-
"hast-util-to-jsx-runtime": "^2.3.
|
|
158
|
-
"lucide-react": "^1.
|
|
158
|
+
"hast-util-to-jsx-runtime": "^2.3.7",
|
|
159
|
+
"lucide-react": "^1.70.0",
|
|
159
160
|
"meilisearch": "0.62.0",
|
|
160
|
-
"next": "16.4.
|
|
161
|
-
"path-to-regexp": "^
|
|
162
|
-
"react-router": "^8.5.
|
|
161
|
+
"next": "16.4.5",
|
|
162
|
+
"path-to-regexp": "^9.0.0",
|
|
163
|
+
"react-router": "^8.5.1",
|
|
163
164
|
"rehype-raw": "^7.0.0",
|
|
164
165
|
"remark-directive": "^4.0.0",
|
|
165
166
|
"remark-mdx": "^3.1.1",
|
|
166
167
|
"tsconfig": "0.0.0",
|
|
167
|
-
"tsdown": "0.23.
|
|
168
|
+
"tsdown": "0.23.7",
|
|
168
169
|
"typescript": "^7.0.2",
|
|
169
170
|
"waku": "1.0.0-rc.4",
|
|
170
171
|
"zod": "4.6.7"
|
|
@@ -259,9 +260,9 @@
|
|
|
259
260
|
},
|
|
260
261
|
"inlinedDependencies": {
|
|
261
262
|
"@formatjs/fast-memoize": "3.1.7",
|
|
262
|
-
"@formatjs/intl-localematcher": "0.
|
|
263
|
-
"@shikijs/transformers": "4.
|
|
264
|
-
"path-to-regexp": "
|
|
263
|
+
"@formatjs/intl-localematcher": "0.10.1",
|
|
264
|
+
"@shikijs/transformers": "4.6.0",
|
|
265
|
+
"path-to-regexp": "9.0.0"
|
|
265
266
|
},
|
|
266
267
|
"scripts": {
|
|
267
268
|
"build": "tsdown",
|
package/dist/index-BFnMPJLk.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "./remark-gfm-DpVfAX1x.js";
|
|
2
|
-
import "./rehype-code-CPNaiqAY.js";
|
|
3
|
-
import "./remark-image-BwyGdFld.js";
|
|
4
|
-
import "./remark-include-D_FmDdtI.js";
|
|
5
|
-
import "./remark-structure-50nmY6sX.js";
|
|
6
|
-
import "./remark-heading-Dhiig5Fv.js";
|
|
7
|
-
import "./remark-admonition-BxacgP6i.js";
|
|
8
|
-
import "./remark-directive-admonition-BT_PH6hL.js";
|
|
9
|
-
import "./rehype-toc-BBnmTg-x.js";
|
|
10
|
-
import "./remark-code-tab-Dj_--R3y.js";
|
|
11
|
-
import "./remark-steps-CKvq9VmR.js";
|
|
12
|
-
import "./remark-npm-IH35Vls_.js";
|
|
13
|
-
import "./codeblock-utils-D65x-Jra.js";
|
|
14
|
-
import "./remark-mdx-files-BJvKexDp.js";
|
|
15
|
-
import "./remark-mdx-mermaid-BrK4YVTJ.js";
|
|
16
|
-
import "./remark-feedback-block-2Ei4IDr4.js";
|
|
17
|
-
import "./remark-llms-eA0WMw4X.js";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// \0rolldown/runtime.js
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
4
|
-
var __exportAll = (all, no_symbols) => {
|
|
5
|
-
let target = {};
|
|
6
|
-
for (var name in all) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
11
|
-
return target;
|
|
12
|
-
};
|
|
13
|
-
export { __exportAll as n, __commonJSMin as t };
|