fumadocs-core 16.17.4 → 16.17.6

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.
Files changed (39) hide show
  1. package/dist/{algolia-6p3_Zitq.d.ts → algolia-nI8K-5gY.d.ts} +1 -1
  2. package/dist/{build-index-BD-VRKOW.js → build-index-Bxu0jldy.js} +22 -15
  3. package/dist/{client-4RUaXHFg.d.ts → client-aul0_BWr.d.ts} +2 -2
  4. package/dist/{dynamic-CsxXgQ9d.js → dynamic-1an9p9Sx.js} +4 -5
  5. package/dist/{index-CzLpE50a.d.ts → index-B0I6yRlw.d.ts} +6 -0
  6. package/dist/mcp.d.ts +2 -2
  7. package/dist/{meilisearch-DiRS8T7h.d.ts → meilisearch-ZjsML7Pr.d.ts} +1 -1
  8. package/dist/{mixedbread-Df-Sw_4f.d.ts → mixedbread-y5oWDuHL.d.ts} +2 -2
  9. package/dist/search/algolia.d.ts +1 -1
  10. package/dist/search/algolia.js +1 -1
  11. package/dist/search/client/algolia.d.ts +1 -1
  12. package/dist/search/client/docs-search.d.ts +1 -1
  13. package/dist/search/client/fetch.d.ts +1 -1
  14. package/dist/search/client/flexsearch-static.d.ts +1 -1
  15. package/dist/search/client/meilisearch.d.ts +1 -1
  16. package/dist/search/client/mixedbread.d.ts +2 -2
  17. package/dist/search/client/orama-cloud-legacy.d.ts +1 -1
  18. package/dist/search/client/orama-cloud.d.ts +1 -1
  19. package/dist/search/client/orama-static.d.ts +1 -1
  20. package/dist/search/client.d.ts +1 -1
  21. package/dist/search/flexsearch.d.ts +2 -2
  22. package/dist/search/flexsearch.js +3 -2
  23. package/dist/search/meilisearch.d.ts +1 -1
  24. package/dist/search/meilisearch.js +3 -2
  25. package/dist/search/mixedbread.d.ts +2 -2
  26. package/dist/search/orama-cloud.d.ts +1 -1
  27. package/dist/search/orama-cloud.js +1 -1
  28. package/dist/search/server.d.ts +1 -1
  29. package/dist/search/server.js +3 -2
  30. package/dist/{server-BaG-Kb8Y.d.ts → server-DgLf5q-v.d.ts} +1 -1
  31. package/dist/source/dynamic.d.ts +1 -1
  32. package/dist/source/dynamic.js +1 -1
  33. package/dist/source/index.d.ts +1 -1
  34. package/dist/source/index.js +1 -1
  35. package/dist/source/llms.d.ts +1 -1
  36. package/dist/source/plugins/lucide-icons.d.ts +1 -1
  37. package/dist/source/plugins/slugs.d.ts +1 -1
  38. package/dist/source/plugins/status-badges.d.ts +1 -1
  39. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { t as Awaitable } from "./types-D89QoQR-.js";
2
2
  import { n as StructuredData } from "./remark-structure-C4hp7I5L.js";
3
- import { S as LoaderOutput, b as LoaderConfig } from "./index-CzLpE50a.js";
3
+ import { S as LoaderOutput, b as LoaderConfig } from "./index-B0I6yRlw.js";
4
4
  import { Algoliasearch } from "algoliasearch";
5
5
  //#region src/search/algolia.d.ts
6
6
  interface DocumentRecord {
@@ -1,4 +1,3 @@
1
- import { r as findPath } from "./utils-DEVq3cEC.js";
2
1
  import { r as extname, t as basename } from "./path-m9Srg2Jq.js";
3
2
  //#region src/search/server/build-index.ts
4
3
  async function buildIndexDefault(page) {
@@ -29,19 +28,27 @@ async function buildDocuments(source, map) {
29
28
  function isBreadcrumbItem(item) {
30
29
  return typeof item === "string" && item.length > 0;
31
30
  }
32
- function buildBreadcrumbs(source, page) {
33
- const pageTree = source.getPageTree(page.locale);
34
- const path = findPath(pageTree.children, (node) => node.type === "page" && node.url === page.url);
35
- if (path) {
36
- const breadcrumbs = [];
37
- path.pop();
38
- if (isBreadcrumbItem(pageTree.name)) breadcrumbs.push(pageTree.name);
39
- for (const segment of path) {
40
- if (!isBreadcrumbItem(segment.name)) continue;
41
- breadcrumbs.push(segment.name);
42
- }
43
- return breadcrumbs;
44
- }
31
+ /**
32
+ * Get the breadcrumbs of pages, each page tree is walked once.
33
+ */
34
+ function createBreadcrumbs(source) {
35
+ const trees = /* @__PURE__ */ new Map();
36
+ return (page) => {
37
+ const tree = source.getPageTree(page.locale);
38
+ let breadcrumbs = trees.get(tree);
39
+ if (!breadcrumbs) trees.set(tree, breadcrumbs = collectBreadcrumbs(tree, [], /* @__PURE__ */ new Map()));
40
+ return breadcrumbs.get(page.url);
41
+ };
42
+ }
43
+ /** like `findPath()`, a page takes its first path, with the separator above it */
44
+ function collectBreadcrumbs(folder, parents, out) {
45
+ const path = isBreadcrumbItem(folder.name) ? [...parents, folder.name] : parents;
46
+ if (folder.type === "folder" && folder.index && !out.has(folder.index.url)) out.set(folder.index.url, path);
47
+ let current = path;
48
+ for (const node of folder.children) if (node.type === "separator") current = isBreadcrumbItem(node.name) ? [...path, node.name] : path;
49
+ else if (node.type === "folder") collectBreadcrumbs(node, current, out);
50
+ else if (!out.has(node.url)) out.set(node.url, current);
51
+ return out;
45
52
  }
46
53
  //#endregion
47
- export { buildDocuments as n, buildIndexDefault as r, buildBreadcrumbs as t };
54
+ export { buildIndexDefault as n, createBreadcrumbs as r, buildDocuments as t };
@@ -1,7 +1,7 @@
1
1
  import { t as Awaitable } from "./types-D89QoQR-.js";
2
2
  import { r as SortedResult } from "./index-BbTxYEFm.js";
3
- import { t as BaseIndex } from "./algolia-6p3_Zitq.js";
4
- import "./mixedbread-Df-Sw_4f.js";
3
+ import { t as BaseIndex } from "./algolia-nI8K-5gY.js";
4
+ import "./mixedbread-y5oWDuHL.js";
5
5
  import { DependencyList } from "react";
6
6
  import { AnyZBSearch, SearchParams } from "zbsearch";
7
7
  import { Root } from "hast";
@@ -129,7 +129,7 @@ const EmptyLang = Symbol();
129
129
  function createContentStorageBuilder(loaderConfig) {
130
130
  const { input, plugins, i18n } = loaderConfig;
131
131
  let parser = (path) => [path];
132
- if (i18n) {
132
+ if (i18n && i18n.parser !== "none") {
133
133
  const langSet = new Set(i18n.languages);
134
134
  parser = (path) => {
135
135
  let locale;
@@ -146,8 +146,7 @@ function createContentStorageBuilder(loaderConfig) {
146
146
  locale = path.slice(dot + 1, ext);
147
147
  rest = path.slice(0, dot) + path.slice(ext);
148
148
  }
149
- if (langSet.has(locale)) return [rest, locale];
150
- if (locale === "$") return [rest, i18n.languages];
149
+ if (locale === "$" || langSet.has(locale)) return [rest, locale];
151
150
  return [path];
152
151
  };
153
152
  }
@@ -171,9 +170,9 @@ function createContentStorageBuilder(loaderConfig) {
171
170
  absolutePath: inputFile.absolutePath,
172
171
  data: inputFile.data
173
172
  };
174
- const [storageKey, locale = i18n ? i18n.defaultLanguage : EmptyLang] = parser(path);
173
+ const [storageKey, locale = i18n ? i18n.defaultLanguage : EmptyLang] = i18n && inputFile.locale ? [path, inputFile.locale] : parser(path);
175
174
  const entry = [storageKey, file];
176
- if (Array.isArray(locale)) for (const item of locale) pushMapList(fileMap, item, entry);
175
+ if (i18n && locale === "$") for (const item of i18n.languages) pushMapList(fileMap, item, entry);
177
176
  else pushMapList(fileMap, locale, entry);
178
177
  }
179
178
  }
@@ -419,6 +419,12 @@ interface BaseVirtualFile {
419
419
  * Absolute path of the file
420
420
  */
421
421
  absolutePath?: string;
422
+ /**
423
+ * Locale of the file when i18n is enabled, `$` for every language.
424
+ *
425
+ * Parsed from `path` if unspecified.
426
+ */
427
+ locale?: string;
422
428
  }
423
429
  interface VirtualPage<Data extends PageData> extends BaseVirtualFile {
424
430
  type: 'page';
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-BaG-Kb8Y.js";
3
- import { S as LoaderOutput, b as LoaderConfig, r as LLMsWithPages } from "./index-CzLpE50a.js";
2
+ import { r as SearchServer } from "./server-DgLf5q-v.js";
3
+ import { S as LoaderOutput, b as LoaderConfig, r as LLMsWithPages } from "./index-B0I6yRlw.js";
4
4
  import { McpServer } from "@modelcontextprotocol/server";
5
5
  //#region src/mcp.d.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { t as Awaitable } from "./types-D89QoQR-.js";
2
2
  import { n as StructuredData } from "./remark-structure-C4hp7I5L.js";
3
- import { S as LoaderOutput, b as LoaderConfig } from "./index-CzLpE50a.js";
3
+ import { S as LoaderOutput, b as LoaderConfig } from "./index-B0I6yRlw.js";
4
4
  import { Meilisearch } from "meilisearch";
5
5
  //#region src/search/meilisearch.d.ts
6
6
  interface DocumentRecord {
@@ -1,6 +1,6 @@
1
- import { n as SearchAPI } from "./server-BaG-Kb8Y.js";
1
+ import { n as SearchAPI } from "./server-DgLf5q-v.js";
2
2
  import { r as SortedResult } from "./index-BbTxYEFm.js";
3
- import { t as DocumentRecord } from "./meilisearch-DiRS8T7h.js";
3
+ import { t as DocumentRecord } from "./meilisearch-ZjsML7Pr.js";
4
4
  import Mixedbread from "@mixedbread/sdk";
5
5
  import { ScoredTextInputChunk } from "@mixedbread/sdk/resources/stores";
6
6
  //#region src/search/mixedbread.d.ts
@@ -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-6p3_Zitq.js";
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-nI8K-5gY.js";
2
2
  export { BaseIndex, DocumentRecord, SyncOptions, setIndexSettings, sync, toDocuments, updateDocuments };
@@ -1,4 +1,4 @@
1
- import { n as buildDocuments } from "../build-index-BD-VRKOW.js";
1
+ import { t as buildDocuments } from "../build-index-Bxu0jldy.js";
2
2
  //#region src/search/algolia.ts
3
3
  /**
4
4
  * Build the search indexes of every page in a source.
@@ -1,2 +1,2 @@
1
- import { b as useAlgoliaSearch, v as AlgoliaOptions, y as algoliaClient } from "../../client-4RUaXHFg.js";
1
+ import { b as useAlgoliaSearch, v as AlgoliaOptions, y as algoliaClient } from "../../client-aul0_BWr.js";
2
2
  export { AlgoliaOptions, algoliaClient, useAlgoliaSearch };
@@ -1,2 +1,2 @@
1
- import { n as SearchClient, r as useDocsSearch, t as ClientPreset } from "../../client-4RUaXHFg.js";
1
+ import { n as SearchClient, r as useDocsSearch, t as ClientPreset } from "../../client-aul0_BWr.js";
2
2
  export { ClientPreset, SearchClient, useDocsSearch };
@@ -1,2 +1,2 @@
1
- import { D as useFetchSearch, E as fetchClient, T as FetchOptions } from "../../client-4RUaXHFg.js";
1
+ import { D as useFetchSearch, E as fetchClient, T as FetchOptions } from "../../client-aul0_BWr.js";
2
2
  export { FetchOptions, fetchClient, useFetchSearch };
@@ -1,2 +1,2 @@
1
- import { a as flexsearchStaticClient, i as FlexsearchStaticOptions, o as useFlexsearchStatic } from "../../client-4RUaXHFg.js";
1
+ import { a as flexsearchStaticClient, i as FlexsearchStaticOptions, o as useFlexsearchStatic } from "../../client-aul0_BWr.js";
2
2
  export { FlexsearchStaticOptions, flexsearchStaticClient, useFlexsearchStatic };
@@ -1,2 +1,2 @@
1
- import { f as MeilisearchOptions, m as useMeilisearch, p as meilisearchClient } from "../../client-4RUaXHFg.js";
1
+ import { f as MeilisearchOptions, m as useMeilisearch, p as meilisearchClient } from "../../client-aul0_BWr.js";
2
2
  export { MeilisearchOptions, meilisearchClient, useMeilisearch };
@@ -1,3 +1,3 @@
1
- import { c as mixedbreadClient, s as MixedbreadOptions } from "../../client-4RUaXHFg.js";
2
- import { n as SearchMetadata } from "../../mixedbread-Df-Sw_4f.js";
1
+ import { c as mixedbreadClient, s as MixedbreadOptions } from "../../client-aul0_BWr.js";
2
+ import { n as SearchMetadata } from "../../mixedbread-y5oWDuHL.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-4RUaXHFg.js";
1
+ import { d as useOramaCloudLegacySearch, l as OramaCloudLegacyOptions, u as oramaCloudLegacyClient } from "../../client-aul0_BWr.js";
2
2
  export { OramaCloudLegacyOptions, oramaCloudLegacyClient, useOramaCloudLegacySearch };
@@ -1,2 +1,2 @@
1
- import { _ as useOramaCloudSearch, g as oramaCloudClient, h as OramaCloudOptions } from "../../client-4RUaXHFg.js";
1
+ import { _ as useOramaCloudSearch, g as oramaCloudClient, h as OramaCloudOptions } from "../../client-aul0_BWr.js";
2
2
  export { OramaCloudOptions, oramaCloudClient, useOramaCloudSearch };
@@ -1,2 +1,2 @@
1
- import { C as staticClient, S as oramaStaticClient, w as useStaticSearch, x as StaticOptions } from "../../client-4RUaXHFg.js";
1
+ import { C as staticClient, S as oramaStaticClient, w as useStaticSearch, x as StaticOptions } from "../../client-aul0_BWr.js";
2
2
  export { StaticOptions, oramaStaticClient, staticClient, useStaticSearch };
@@ -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-4RUaXHFg.js";
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-aul0_BWr.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
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-BaG-Kb8Y.js";
4
- import { S as LoaderOutput, b as LoaderConfig } from "../index-CzLpE50a.js";
3
+ import { m as SharedIndex, n as SearchAPI, t as QueryOptions } from "../server-DgLf5q-v.js";
4
+ import { S as LoaderOutput, b as LoaderConfig } from "../index-B0I6yRlw.js";
5
5
  import "../index-BbTxYEFm.js";
6
6
  import { DocumentData, DocumentOptions } from "flexsearch";
7
7
  //#region src/search/server/build-doc.d.ts
@@ -1,4 +1,4 @@
1
- import { r as buildIndexDefault, t as buildBreadcrumbs } from "../build-index-BD-VRKOW.js";
1
+ import { n as buildIndexDefault, r as createBreadcrumbs } from "../build-index-Bxu0jldy.js";
2
2
  import { t as createEndpoint } from "../endpoint-MyoBU5IC.js";
3
3
  import { t as buildDocuments } from "../build-doc-C7HYXyRK.js";
4
4
  import { n as search, t as createDocument } from "../utils-CbSdov6X.js";
@@ -89,12 +89,13 @@ function flexsearchFromSource(loader, options = {}) {
89
89
  const cache = /* @__PURE__ */ new WeakMap();
90
90
  const { buildIndex = buildIndexDefault, ...rest } = options;
91
91
  async function initServer(loader) {
92
+ const getBreadcrumbs = createBreadcrumbs(loader);
92
93
  const indexes = await Promise.all(loader.getPages().map(async (page) => {
93
94
  const index = await buildIndex(page);
94
95
  return {
95
96
  ...index,
96
97
  locale: page.locale,
97
- breadcrumbs: index.breadcrumbs ?? buildBreadcrumbs(loader, page)
98
+ breadcrumbs: index.breadcrumbs ?? getBreadcrumbs(page)
98
99
  };
99
100
  }));
100
101
  if (loader._i18n) return serverI18n({
@@ -1,2 +1,2 @@
1
- import { a as toDocuments, i as sync, n as MeilisearchDocument, r as SyncOptions, t as DocumentRecord } from "../meilisearch-DiRS8T7h.js";
1
+ import { a as toDocuments, i as sync, n as MeilisearchDocument, r as SyncOptions, t as DocumentRecord } from "../meilisearch-ZjsML7Pr.js";
2
2
  export { DocumentRecord, MeilisearchDocument, SyncOptions, sync, toDocuments };
@@ -1,14 +1,15 @@
1
- import { n as buildDocuments, t as buildBreadcrumbs } from "../build-index-BD-VRKOW.js";
1
+ import { r as createBreadcrumbs, t as buildDocuments } from "../build-index-Bxu0jldy.js";
2
2
  //#region src/search/meilisearch.ts
3
3
  /**
4
4
  * Build the search documents of every page in a source.
5
5
  */
6
6
  async function toDocuments(source, options = {}) {
7
7
  const loader = typeof source === "function" ? await source() : source;
8
+ const getBreadcrumbs = createBreadcrumbs(loader);
8
9
  return buildDocuments(loader, (index, page) => ({
9
10
  title: index.title,
10
11
  description: index.description,
11
- breadcrumbs: buildBreadcrumbs(loader, page),
12
+ breadcrumbs: getBreadcrumbs(page),
12
13
  url: index.url,
13
14
  structured: index.structuredData,
14
15
  tag: options.tag?.(page),
@@ -1,3 +1,3 @@
1
- import { a as toDocuments, t as DocumentRecord } from "../meilisearch-DiRS8T7h.js";
2
- import { a as sync, i as createMixedbreadSearchAPI, n as SearchMetadata, r as SyncOptions, t as MixedbreadSearchOptions } from "../mixedbread-Df-Sw_4f.js";
1
+ import { a as toDocuments, t as DocumentRecord } from "../meilisearch-ZjsML7Pr.js";
2
+ import { a as sync, i as createMixedbreadSearchAPI, n as SearchMetadata, r as SyncOptions, t as MixedbreadSearchOptions } from "../mixedbread-y5oWDuHL.js";
3
3
  export { type DocumentRecord, MixedbreadSearchOptions, SearchMetadata, SyncOptions, createMixedbreadSearchAPI, sync, toDocuments };
@@ -1,7 +1,7 @@
1
1
  import { t as Awaitable } from "../types-D89QoQR-.js";
2
2
  import { n as StructuredData } from "../remark-structure-C4hp7I5L.js";
3
3
  import "../index-B-xgXq2T.js";
4
- import { S as LoaderOutput, b as LoaderConfig } from "../index-CzLpE50a.js";
4
+ import { S as LoaderOutput, b as LoaderConfig } from "../index-B0I6yRlw.js";
5
5
  import { OramaCloud } from "@orama/core";
6
6
  //#region src/search/orama-cloud.d.ts
7
7
  export interface SyncOptions {
@@ -1,4 +1,4 @@
1
- import { n as buildDocuments } from "../build-index-BD-VRKOW.js";
1
+ import { t as buildDocuments } from "../build-index-Bxu0jldy.js";
2
2
  //#region src/search/orama-cloud.ts
3
3
  /**
4
4
  * Build the search indexes of every page in a source.
@@ -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-BaG-Kb8Y.js";
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-DgLf5q-v.js";
2
2
  export { AdvancedIndex, AdvancedOptions, ExportedData, Index, QueryOptions, SearchAPI, SearchServer, SimpleOptions, createFromSource, createI18nSearchAPI, createSearchAPI, initAdvancedSearch, initSimpleSearch };
@@ -1,4 +1,4 @@
1
- import { r as buildIndexDefault, t as buildBreadcrumbs } from "../build-index-BD-VRKOW.js";
1
+ import { n as buildIndexDefault, r as createBreadcrumbs } from "../build-index-Bxu0jldy.js";
2
2
  import { n as searchSimple, t as searchAdvanced } from "../advanced-cJMxLDd5.js";
3
3
  import { n as defaultReadOptions, t as createEndpoint } from "../endpoint-MyoBU5IC.js";
4
4
  import { t as buildDocuments } from "../build-doc-C7HYXyRK.js";
@@ -186,11 +186,12 @@ function createFromSource(loader, options = {}) {
186
186
  const { buildIndex = buildIndexDefault } = options;
187
187
  const cache = /* @__PURE__ */ new WeakMap();
188
188
  async function initServer(loader) {
189
+ const getBreadcrumbs = createBreadcrumbs(loader);
189
190
  const indexes = await Promise.all(loader.getPages().map(async (page) => {
190
191
  const index = await buildIndex(page);
191
192
  return {
192
193
  ...index,
193
- breadcrumbs: index.breadcrumbs ?? buildBreadcrumbs(loader, page),
194
+ breadcrumbs: index.breadcrumbs ?? getBreadcrumbs(page),
194
195
  locale: page.locale
195
196
  };
196
197
  }));
@@ -1,7 +1,7 @@
1
1
  import { t as Awaitable } from "./types-D89QoQR-.js";
2
2
  import { n as StructuredData } from "./remark-structure-C4hp7I5L.js";
3
3
  import { n as I18nConfig } from "./index-DydiXvgS.js";
4
- import { S as LoaderOutput, b as LoaderConfig } from "./index-CzLpE50a.js";
4
+ import { S as LoaderOutput, b as LoaderConfig } from "./index-B0I6yRlw.js";
5
5
  import { r as SortedResult } from "./index-BbTxYEFm.js";
6
6
  import { Language, RawData, SearchParams, TypedDocument, ZBSearch, create } from "zbsearch";
7
7
  //#region src/search/zbsearch/create-db.d.ts
@@ -1,2 +1,2 @@
1
- import { _ as dynamicLoader, g as DynamicLoaderConfig, h as DynamicLoader } from "../index-CzLpE50a.js";
1
+ import { _ as dynamicLoader, g as DynamicLoaderConfig, h as DynamicLoader } from "../index-B0I6yRlw.js";
2
2
  export { DynamicLoader, DynamicLoaderConfig, dynamicLoader };
@@ -1,2 +1,2 @@
1
- import { t as dynamicLoader } from "../dynamic-CsxXgQ9d.js";
1
+ import { t as dynamicLoader } from "../dynamic-1an9p9Sx.js";
2
2
  export { dynamicLoader };
@@ -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-CzLpE50a.js";
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-B0I6yRlw.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 };
@@ -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-CsxXgQ9d.js";
2
+ import { a as update, i as multiple, n as createGetUrl, o as FileSystem, r as loader, t as dynamicLoader } from "../dynamic-1an9p9Sx.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 };
@@ -1,2 +1,2 @@
1
- import { i as llms, n as LLMsConfig, r as LLMsWithPages, t as LLMs } from "../index-CzLpE50a.js";
1
+ import { i as llms, n as LLMsConfig, r as LLMsWithPages, t as LLMs } from "../index-B0I6yRlw.js";
2
2
  export { LLMs, LLMsConfig, LLMsWithPages, llms };
@@ -1,4 +1,4 @@
1
- import { C as LoaderPlugin } from "../../index-CzLpE50a.js";
1
+ import { C as LoaderPlugin } from "../../index-B0I6yRlw.js";
2
2
  import { icons } from "lucide-react";
3
3
  //#region src/source/plugins/lucide-icons.d.ts
4
4
  /**
@@ -1,2 +1,2 @@
1
- import { F as slugsPlugin, M as SlugsPluginOptions, N as getSlugs, P as slugsFromData, j as SlugFn } from "../../index-CzLpE50a.js";
1
+ import { F as slugsPlugin, M as SlugsPluginOptions, N as getSlugs, P as slugsFromData, j as SlugFn } from "../../index-B0I6yRlw.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-CzLpE50a.js";
2
+ import { C as LoaderPlugin } from "../../index-B0I6yRlw.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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "16.17.4",
3
+ "version": "16.17.6",
4
4
  "description": "The React.js library for building a documentation website",
5
5
  "keywords": [
6
6
  "Docs",