fumadocs-core 16.13.0 → 16.14.1

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 (59) hide show
  1. package/dist/{advanced-BnqbPavQ.js → advanced-B0__lVW5.js} +11 -6
  2. package/dist/breadcrumb.js +1 -3
  3. package/dist/{build-doc-CTQdPLc0.js → build-doc-SC7P37WG.js} +9 -5
  4. package/dist/{client-CFte63Ws.d.ts → client-DURack0W.d.ts} +20 -7
  5. package/dist/content/mdx/preset-bundler.d.ts +2 -2
  6. package/dist/content/mdx/preset-runtime.d.ts +2 -2
  7. package/dist/dynamic-link.js +2 -1
  8. package/dist/framework/astro.js +28 -27
  9. package/dist/{fromFile-DoNs4YiN.js → fromFile-DQPra6_l.js} +1 -1
  10. package/dist/highlight/index.js +2 -1
  11. package/dist/highlight/shiki/react.js +4 -2
  12. package/dist/i18n/middleware.js +1 -1
  13. package/dist/{index-sdv2T3z92.d.ts → index-ByMgvmTr2.d.ts} +1 -1
  14. package/dist/{index-CdGTOQQq.d.ts → index-C-fnVAhi.d.ts} +1 -1
  15. package/dist/{loader-BxANMvuQ.js → loader-5zwcKTZH.js} +1 -1
  16. package/dist/mdx-plugins/index.d.ts +2 -2
  17. package/dist/mdx-plugins/index.js +1 -1
  18. package/dist/mdx-plugins/rehype-code.core.js +1 -1
  19. package/dist/mdx-plugins/rehype-code.js +1 -1
  20. package/dist/mdx-plugins/remark-heading.d.ts +1 -1
  21. package/dist/mdx-plugins/remark-image.js +1 -1
  22. package/dist/mdx-plugins/remark-mdx-files.js +1 -3
  23. package/dist/negotiation/index.js +1 -1
  24. package/dist/{negotiation-Bdf_-s58.js → negotiation-BmZGHDR5.js} +1 -1
  25. package/dist/{path-B9zu5SjE.js → path-1H5VzYiT.js} +1 -1
  26. package/dist/{rehype-code.core-CzMM-w8f.js → rehype-code.core-DwDF3yaw.js} +1 -1
  27. package/dist/{remark-heading-Dy-3rXdY.d.ts → remark-heading-DEIzTkU5.d.ts} +0 -7
  28. package/dist/{remove-markdown-BoY2F4bc.js → remove-markdown-Do94q-my.js} +1 -1
  29. package/dist/{rolldown-runtime-B-1-B7_t.js → rolldown-runtime-DC62tzP2.js} +1 -1
  30. package/dist/search/client/algolia.d.ts +1 -1
  31. package/dist/search/client/fetch.d.ts +1 -1
  32. package/dist/search/client/flexsearch-static.d.ts +1 -1
  33. package/dist/search/client/mixedbread.d.ts +1 -1
  34. package/dist/search/client/mixedbread.js +2 -2
  35. package/dist/search/client/orama-cloud-legacy.d.ts +1 -1
  36. package/dist/search/client/orama-cloud.d.ts +1 -1
  37. package/dist/search/client/orama-static.d.ts +2 -2
  38. package/dist/search/client/orama-static.js +51 -34
  39. package/dist/search/client.d.ts +1 -1
  40. package/dist/search/client.js +1 -1
  41. package/dist/search/flexsearch.d.ts +3 -2
  42. package/dist/search/flexsearch.js +1 -1
  43. package/dist/search/mixedbread.d.ts +1 -1
  44. package/dist/search/mixedbread.js +2 -2
  45. package/dist/search/orama-cloud-legacy.d.ts +1 -1
  46. package/dist/search/orama-cloud.d.ts +1 -1
  47. package/dist/search/server.d.ts +1 -1
  48. package/dist/search/server.js +48 -56
  49. package/dist/{server-gfoj6dyH.d.ts → server-DYMsTHMa.d.ts} +45 -20
  50. package/dist/source/dynamic.d.ts +1 -1
  51. package/dist/source/dynamic.js +1 -1
  52. package/dist/source/index.d.ts +1 -1
  53. package/dist/source/index.js +2 -2
  54. package/dist/source/llms.d.ts +1 -1
  55. package/dist/source/plugins/lucide-icons.d.ts +1 -1
  56. package/dist/source/plugins/slugs.d.ts +1 -1
  57. package/dist/source/plugins/slugs.js +1 -1
  58. package/dist/source/plugins/status-badges.d.ts +1 -1
  59. package/package.json +14 -14
@@ -1,8 +1,8 @@
1
1
  import { createContentHighlighter } from "./search/index.js";
2
2
  import { t as removeUndefined } from "./remove-undefined-CzMSKybq.js";
3
- import { getByID, search } from "@orama/orama";
4
- //#region src/search/orama/search/simple.ts
5
- async function searchSimple(db, query, params = {}) {
3
+ import { getByID, search } from "zbsearch";
4
+ //#region src/search/zbsearch/search/simple.ts
5
+ async function searchSimple(db, query, params = {}, locale) {
6
6
  const highlighter = createContentHighlighter(query);
7
7
  return (await search(db, {
8
8
  term: query,
@@ -11,7 +11,11 @@ async function searchSimple(db, query, params = {}) {
11
11
  boost: {
12
12
  title: 2,
13
13
  ..."boost" in params ? params.boost : void 0
14
- }
14
+ },
15
+ where: removeUndefined({
16
+ locale: locale ? { eq: locale } : void 0,
17
+ ...params.where
18
+ })
15
19
  })).hits.map((hit) => ({
16
20
  type: "page",
17
21
  content: highlighter.highlightMarkdown(hit.document.title),
@@ -21,8 +25,8 @@ async function searchSimple(db, query, params = {}) {
21
25
  }));
22
26
  }
23
27
  //#endregion
24
- //#region src/search/orama/search/advanced.ts
25
- async function searchAdvanced(db, query, tag = [], { mode = "fulltext", ...override } = {}) {
28
+ //#region src/search/zbsearch/search/advanced.ts
29
+ async function searchAdvanced(db, query, tag = [], { mode = "fulltext", ...override } = {}, locale) {
26
30
  if (typeof tag === "string") tag = [tag];
27
31
  const params = {
28
32
  limit: 60,
@@ -30,6 +34,7 @@ async function searchAdvanced(db, query, tag = [], { mode = "fulltext", ...overr
30
34
  ...override,
31
35
  where: removeUndefined({
32
36
  tags: tag.length > 0 ? { containsAll: tag } : void 0,
37
+ locale: locale ? { eq: locale } : void 0,
33
38
  ...override.where
34
39
  }),
35
40
  groupBy: {
@@ -38,9 +38,7 @@ function getBreadcrumbItemsFromPath(tree, path, options) {
38
38
  url: item.index?.url
39
39
  });
40
40
  break;
41
- case "separator":
42
- if (item.name && includeSeparator) items.push({ name: item.name });
43
- break;
41
+ case "separator": if (item.name && includeSeparator) items.push({ name: item.name });
44
42
  }
45
43
  }
46
44
  return items;
@@ -1,5 +1,5 @@
1
1
  import { r as findPath } from "./utils-Dn9VIXRN.js";
2
- import { r as extname, t as basename } from "./path-B9zu5SjE.js";
2
+ import { r as extname, t as basename } from "./path-1H5VzYiT.js";
3
3
  //#region src/search/server/build-index.ts
4
4
  async function buildIndexDefault(page) {
5
5
  let structuredData;
@@ -47,7 +47,8 @@ function buildDocuments(indexes) {
47
47
  content: page.title,
48
48
  breadcrumbs: page.breadcrumbs,
49
49
  tags,
50
- url: page.url
50
+ url: page.url,
51
+ locale: page.locale
51
52
  });
52
53
  const nextId = () => `${page.id}-${id++}`;
53
54
  if (page.description) docs.push({
@@ -56,7 +57,8 @@ function buildDocuments(indexes) {
56
57
  tags,
57
58
  type: "text",
58
59
  url: page.url,
59
- content: page.description
60
+ content: page.description,
61
+ locale: page.locale
60
62
  });
61
63
  for (const heading of data.headings) docs.push({
62
64
  id: nextId(),
@@ -64,7 +66,8 @@ function buildDocuments(indexes) {
64
66
  type: "heading",
65
67
  tags,
66
68
  url: `${page.url}#${heading.id}`,
67
- content: heading.content
69
+ content: heading.content,
70
+ locale: page.locale
68
71
  });
69
72
  for (const content of data.contents) docs.push({
70
73
  id: nextId(),
@@ -72,7 +75,8 @@ function buildDocuments(indexes) {
72
75
  tags,
73
76
  type: "text",
74
77
  url: content.heading ? `${page.url}#${content.heading}` : page.url,
75
- content: content.content
78
+ content: content.content,
79
+ locale: page.locale
76
80
  });
77
81
  }
78
82
  return docs;
@@ -2,7 +2,7 @@ import { t as Awaitable } from "./types-D89QoQR-.js";
2
2
  import { t as BaseIndex } from "./algolia-C0E5qQhM.js";
3
3
  import { r as SortedResult } from "./index-BM36H-xw.js";
4
4
  import { DependencyList } from "react";
5
- import { AnyOrama, Orama, SearchParams } from "@orama/orama";
5
+ import { AnyZBSearch, SearchParams } from "zbsearch";
6
6
  import { LiteClient, SearchResponse } from "algoliasearch/lite";
7
7
  import { OramaCloud, OramaCloudSearchParams } from "@orama/core";
8
8
  import { ClientSearchParams, OramaClient } from "@oramacloud/client";
@@ -35,21 +35,34 @@ interface StaticOptions {
35
35
  * @defaultValue '/api/search'
36
36
  */
37
37
  from?: string;
38
- initOrama?: (locale?: string) => AnyOrama | Promise<AnyOrama>;
38
+ /**
39
+ * Customize how the search database is initialized (advanced).
40
+ *
41
+ * For legacy per-locale exports, it is called once per locale.
42
+ */
43
+ initDB?: (locale?: string) => AnyZBSearch | Promise<AnyZBSearch>;
44
+ /**
45
+ * @deprecated Renamed to `initDB`, note that the search engine is now ZBSearch.
46
+ */
47
+ initOrama?: (locale?: string) => AnyZBSearch | Promise<AnyZBSearch>;
39
48
  /**
40
49
  * Filter results with specific tag(s).
41
50
  */
42
51
  tag?: string | string[];
43
52
  /**
44
- * Filter by locale (unsupported at the moment)
53
+ * Filter by locale (for i18n)
45
54
  */
46
55
  locale?: string;
47
56
  /**
48
57
  * extra options for search
49
58
  */
50
- search?: Partial<SearchParams<Orama<unknown>>>;
59
+ search?: Partial<SearchParams<AnyZBSearch>>;
51
60
  }
52
- declare function oramaStaticClient(options?: StaticOptions): SearchClient;
61
+ declare function staticClient(options?: StaticOptions): SearchClient;
62
+ /**
63
+ * @deprecated Renamed to `staticClient`, note that the search engine is now ZBSearch.
64
+ */
65
+ declare const oramaStaticClient: typeof staticClient;
53
66
  //#endregion
54
67
  //#region src/search/client/algolia.d.ts
55
68
  interface AlgoliaOptions {
@@ -174,7 +187,7 @@ type ClientPreset = ({
174
187
  type: 'fetch';
175
188
  } & FetchOptions) | ({
176
189
  /**
177
- * @deprecated Pass `client: oramaStaticClient(...)` instead.
190
+ * @deprecated Pass `client: staticClient(...)` instead.
178
191
  */
179
192
  type: 'static';
180
193
  } & StaticOptions) | ({
@@ -231,4 +244,4 @@ declare function useDocsSearch(clientOptions: ClientPreset & {
231
244
  allowEmpty?: boolean;
232
245
  }, customDeps?: DependencyList): UseDocsSearch;
233
246
  //#endregion
234
- export { FetchOptions as _, flexsearchStaticClient as a, mixedbreadClient as c, OramaCloudOptions as d, oramaCloudClient as f, oramaStaticClient as g, StaticOptions as h, FlexsearchStaticOptions as i, OramaCloudLegacyOptions as l, algoliaClient as m, SearchClient as n, MixedbreadOptions as o, AlgoliaOptions as p, useDocsSearch as r, SearchMetadata as s, ClientPreset as t, oramaCloudLegacyClient as u, fetchClient as v };
247
+ export { staticClient as _, flexsearchStaticClient as a, mixedbreadClient as c, OramaCloudOptions as d, oramaCloudClient as f, oramaStaticClient as g, StaticOptions as h, FlexsearchStaticOptions as i, OramaCloudLegacyOptions as l, algoliaClient as m, SearchClient as n, MixedbreadOptions as o, AlgoliaOptions as p, useDocsSearch as r, SearchMetadata as s, ClientPreset as t, oramaCloudLegacyClient as u, FetchOptions as v, fetchClient as y };
@@ -1,10 +1,10 @@
1
1
  import { t as RehypeCodeOptions } from "../../rehype-code-D-RFJb9W.js";
2
2
  import { t as RemarkImageOptions } from "../../remark-image-BI2S9LOb.js";
3
3
  import { r as StructureOptions } from "../../remark-structure-CnHwvNZr.js";
4
- import { t as RemarkHeadingOptions } from "../../remark-heading-Dy-3rXdY.js";
4
+ import { t as RemarkHeadingOptions } from "../../remark-heading-DEIzTkU5.js";
5
5
  import { t as RemarkCodeTabOptions } from "../../remark-code-tab-DE_4bdnu.js";
6
6
  import { t as RemarkNpmOptions } from "../../remark-npm-BbpvkJaT.js";
7
- import "../../index-CdGTOQQq.js";
7
+ import "../../index-C-fnVAhi.js";
8
8
  import { t as ResolvePlugins } from "../../util-BDsqOxh3.js";
9
9
  import { Pluggable } from "unified";
10
10
  import { ProcessorOptions } from "@mdx-js/mdx";
@@ -1,10 +1,10 @@
1
1
  import { t as RehypeCodeOptions } from "../../rehype-code-D-RFJb9W.js";
2
2
  import { t as RemarkImageOptions } from "../../remark-image-BI2S9LOb.js";
3
3
  import { r as StructureOptions } from "../../remark-structure-CnHwvNZr.js";
4
- import { t as RemarkHeadingOptions } from "../../remark-heading-Dy-3rXdY.js";
4
+ import { t as RemarkHeadingOptions } from "../../remark-heading-DEIzTkU5.js";
5
5
  import { t as RemarkCodeTabOptions } from "../../remark-code-tab-DE_4bdnu.js";
6
6
  import { t as RemarkNpmOptions } from "../../remark-npm-BbpvkJaT.js";
7
- import "../../index-CdGTOQQq.js";
7
+ import "../../index-C-fnVAhi.js";
8
8
  import { t as ResolvePlugins } from "../../util-BDsqOxh3.js";
9
9
  import { ProcessorOptions } from "@mdx-js/mdx";
10
10
  //#region src/content/mdx/preset-runtime.d.ts
@@ -11,9 +11,10 @@ import { jsx } from "react/jsx-runtime";
11
11
  */
12
12
  function DynamicLink({ href, ref, ...props }) {
13
13
  const params = useParams();
14
+ const url = useMemo(() => href ? updateHref(href, params) : href, [params, href]);
14
15
  return /* @__PURE__ */ jsx(Link, {
15
16
  ref,
16
- href: useMemo(() => href ? updateHref(href, params) : href, [params, href]),
17
+ href: url,
17
18
  ...props
18
19
  });
19
20
  }
@@ -16,34 +16,35 @@ function normalizeParams(params = {}) {
16
16
  */
17
17
  function AstroProvider({ children, pathname, params, navigate, Link, Image }) {
18
18
  const resolvedParams = useMemo(() => normalizeParams(params), [params]);
19
+ const framework = useMemo(() => ({
20
+ usePathname() {
21
+ return pathname;
22
+ },
23
+ useParams() {
24
+ return resolvedParams;
25
+ },
26
+ useRouter() {
27
+ return {
28
+ push(url) {
29
+ if (navigate) return navigate(url);
30
+ window.location.assign(url);
31
+ },
32
+ refresh() {
33
+ window.location.reload();
34
+ }
35
+ };
36
+ },
37
+ Link,
38
+ Image
39
+ }), [
40
+ Image,
41
+ Link,
42
+ navigate,
43
+ pathname,
44
+ resolvedParams
45
+ ]);
19
46
  return /* @__PURE__ */ jsx(FrameworkProvider, {
20
- ...useMemo(() => ({
21
- usePathname() {
22
- return pathname;
23
- },
24
- useParams() {
25
- return resolvedParams;
26
- },
27
- useRouter() {
28
- return {
29
- push(url) {
30
- if (navigate) return navigate(url);
31
- window.location.assign(url);
32
- },
33
- refresh() {
34
- window.location.reload();
35
- }
36
- };
37
- },
38
- Link,
39
- Image
40
- }), [
41
- Image,
42
- Link,
43
- navigate,
44
- pathname,
45
- resolvedParams
46
- ]),
47
+ ...framework,
47
48
  children
48
49
  });
49
50
  }
@@ -806,7 +806,7 @@ function imageSize(input) {
806
806
  }
807
807
  throw new TypeError(`unsupported file type: ${type}`);
808
808
  }
809
- var MaxInputSize = 512 * 1024;
809
+ var MaxInputSize = 524288;
810
810
  var queue = [];
811
811
  var concurrency = 100;
812
812
  var processQueue = async () => {
@@ -5,7 +5,8 @@ import * as JsxRuntime from "react/jsx-runtime";
5
5
  import { toJsxRuntime } from "hast-util-to-jsx-runtime";
6
6
  //#region src/highlight/index.ts
7
7
  async function highlightHast(code, options) {
8
- return highlightHast$1(await ((options.engine ?? "js") === "js" ? defaultShikiFactory : wasmShikiFactory).getOrInit(), code, applyDefaultThemes(options));
8
+ const instance = await ((options.engine ?? "js") === "js" ? defaultShikiFactory : wasmShikiFactory).getOrInit();
9
+ return highlightHast$1(instance, code, applyDefaultThemes(options));
9
10
  }
10
11
  /**
11
12
  * Get Shiki highlighter instance of Fumadocs (mostly for internal use, you should use Shiki directly over this).
@@ -13,7 +13,8 @@ function useShikiDynamic(highlighter, code, options, deps) {
13
13
  const lastTask = useRef(null);
14
14
  useEffect(() => {
15
15
  async function task() {
16
- return toJsxRuntime(await highlightHast(typeof highlighter === "function" ? await highlighter() : highlighter, code, options), {
16
+ const instance = typeof highlighter === "function" ? await highlighter() : highlighter;
17
+ return toJsxRuntime(await highlightHast(instance, code, options), {
17
18
  ...JsxRuntime,
18
19
  components: options.components
19
20
  });
@@ -37,7 +38,8 @@ function useShikiDynamic(highlighter, code, options, deps) {
37
38
  function useShiki(highlighter, code, options, deps = [options.lang, code]) {
38
39
  const key = useMemo(() => JSON.stringify(deps), [deps]);
39
40
  async function run() {
40
- return toJsxRuntime(await highlightHast(typeof highlighter === "function" ? await highlighter() : highlighter, code, options), {
41
+ const instance = typeof highlighter === "function" ? await highlighter() : highlighter;
42
+ return toJsxRuntime(await highlightHast(instance, code, options), {
41
43
  ...JsxRuntime,
42
44
  components: options.components
43
45
  });
@@ -1,4 +1,4 @@
1
- import { t as getNegotiator } from "../negotiation-Bdf_-s58.js";
1
+ import { t as getNegotiator } from "../negotiation-BmZGHDR5.js";
2
2
  import { NextResponse } from "next/server.js";
3
3
  //#region ../../node_modules/.pnpm/@formatjs+fast-memoize@3.1.7/node_modules/@formatjs/fast-memoize/index.js
4
4
  function memoize(fn, options) {
@@ -1,7 +1,7 @@
1
1
  import { a as Separator, i as Root, n as Item, r as Node, t as Folder } from "./definitions-D8-KI7Uy.js";
2
2
  import { t as Awaitable } from "./types-D89QoQR-.js";
3
3
  import { i as StructuredData } from "./remark-structure-CnHwvNZr.js";
4
- import "./index-CdGTOQQq.js";
4
+ import "./index-C-fnVAhi.js";
5
5
  import { n as I18nConfig } from "./index-DydiXvgS.js";
6
6
  import "./index-DZN5OrTa.js";
7
7
  import { n as SerializedPageTree } from "./index-CdZGMKDG.js";
@@ -2,7 +2,7 @@ import "./remark-gfm-DpVfAX1x.js";
2
2
  import "./rehype-code-D-RFJb9W.js";
3
3
  import "./remark-image-BI2S9LOb.js";
4
4
  import "./remark-structure-CnHwvNZr.js";
5
- import "./remark-heading-Dy-3rXdY.js";
5
+ import "./remark-heading-DEIzTkU5.js";
6
6
  import "./remark-admonition-BwTcmI_S.js";
7
7
  import "./remark-directive-admonition-BLiJ5l43.js";
8
8
  import "./rehype-toc-K51AGb5U.js";
@@ -1,6 +1,6 @@
1
1
  import { r as normalizeUrl } from "./url-BVHvi3_K.js";
2
2
  import { c as visit } from "./utils-Dn9VIXRN.js";
3
- import { a as normalize, i as joinPath, n as dirname, r as extname, t as basename } from "./path-B9zu5SjE.js";
3
+ import { a as normalize, i as joinPath, n as dirname, r as extname, t as basename } from "./path-1H5VzYiT.js";
4
4
  import { slugsPlugin } from "./source/plugins/slugs.js";
5
5
  import { t as iconPlugin } from "./icon-BILaoXeg.js";
6
6
  //#region src/source/storage/file-system.ts
@@ -4,7 +4,7 @@ import { r as transformerIcon, t as CodeBlockIcon } from "../transformer-icon-Dl
4
4
  import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-D-RFJb9W.js";
5
5
  import { n as remarkImage, t as RemarkImageOptions } from "../remark-image-BI2S9LOb.js";
6
6
  import { a as defaultStringifier, c as structure, i as StructuredData, n as StringifyOptions, o as remarkStructure, r as StructureOptions, s as remarkStructureDefaultOptions, t as Stringifier } from "../remark-structure-CnHwvNZr.js";
7
- import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-Dy-3rXdY.js";
7
+ import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-DEIzTkU5.js";
8
8
  import { n as remarkAdmonition, t as RemarkAdmonitionOptions } from "../remark-admonition-BwTcmI_S.js";
9
9
  import { n as remarkDirectiveAdmonition, t as RemarkDirectiveAdmonitionOptions } from "../remark-directive-admonition-BLiJ5l43.js";
10
10
  import { n as RehypeTocOptions, r as rehypeToc, t as RehypeTOCItemType } from "../rehype-toc-K51AGb5U.js";
@@ -16,5 +16,5 @@ import { a as remarkMdxFiles, r as RemarkMdxFilesOptions } from "../remark-mdx-f
16
16
  import { n as remarkMdxMermaid, t as RemarkMdxMermaidOptions } from "../remark-mdx-mermaid-C1bCHHc6.js";
17
17
  import { n as RemarkFeedbackBlockOptions, r as remarkFeedbackBlock, t as FeedbackBlockProps } from "../remark-feedback-block-BxtINXN-.js";
18
18
  import { t as LLMsOptions } from "../remark-llms-BF5SHW_O.js";
19
- import "../index-CdGTOQQq.js";
19
+ import "../index-C-fnVAhi.js";
20
20
  export { CodeBlockAttributes, type CodeBlockIcon, CodeBlockTabsOptions, FeedbackBlockProps, type LLMsOptions, RehypeCodeOptions, RehypeTOCItemType, RehypeTocOptions, RemarkAdmonitionOptions, RemarkCodeTabOptions, RemarkDirectiveAdmonitionOptions, RemarkFeedbackBlockOptions, type RemarkGfmOptions, RemarkHeadingOptions, RemarkImageOptions, type RemarkMdxFilesOptions, RemarkMdxMermaidOptions, RemarkNpmOptions, RemarkStepsOptions, Stringifier, StringifyOptions, StructureOptions, StructuredData, defaultStringifier, generateCodeBlockTabs, parseCodeBlockAttributes, rehypeCode, rehypeCodeDefaultOptions, rehypeToc, remarkAdmonition, remarkCodeTab, remarkDirectiveAdmonition, remarkFeedbackBlock, remarkGfm, remarkHeading, remarkImage, remarkMdxFiles, remarkMdxMermaid, remarkNpm, remarkSteps, remarkStructure, remarkStructureDefaultOptions, structure, transformerIcon, transformerTab };
@@ -1,7 +1,7 @@
1
1
  import { remarkHeading } from "./remark-heading.js";
2
2
  import { generateCodeBlockTabs, parseCodeBlockAttributes } from "./codeblock-utils.js";
3
3
  import { remarkGfm } from "./remark-gfm.js";
4
- import { r as transformerTab } from "../rehype-code.core-CzMM-w8f.js";
4
+ import { r as transformerTab } from "../rehype-code.core-DwDF3yaw.js";
5
5
  import { transformerIcon } from "./transformer-icon.js";
6
6
  import { rehypeCode, rehypeCodeDefaultOptions } from "./rehype-code.js";
7
7
  import { remarkImage } from "./remark-image.js";
@@ -1,3 +1,3 @@
1
- import { n as rehypeCodeDefaultOptions, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-CzMM-w8f.js";
1
+ import { n as rehypeCodeDefaultOptions, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-DwDF3yaw.js";
2
2
  import { transformerIcon } from "./transformer-icon.js";
3
3
  export { createRehypeCode, rehypeCodeDefaultOptions, transformerIcon, transformerTab };
@@ -1,5 +1,5 @@
1
1
  import { defaultShikiFactory, wasmShikiFactory } from "../highlight/shiki/full.js";
2
- import { n as rehypeCodeDefaultOptions$1, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-CzMM-w8f.js";
2
+ import { n as rehypeCodeDefaultOptions$1, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-DwDF3yaw.js";
3
3
  import { transformerIcon } from "./transformer-icon.js";
4
4
  //#region src/mdx-plugins/rehype-code.ts
5
5
  const rehypeCodeDefaultOptions = {
@@ -1,2 +1,2 @@
1
- import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-Dy-3rXdY.js";
1
+ import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-DEIzTkU5.js";
2
2
  export { RemarkHeadingOptions, remarkHeading };
@@ -158,7 +158,7 @@ function parseSrc(src, publicDir, dir) {
158
158
  }
159
159
  async function getImageSize(src, onExternal) {
160
160
  if (src.type === "file") {
161
- const { imageSizeFromFile } = await import("../fromFile-DoNs4YiN.js");
161
+ const { imageSizeFromFile } = await import("../fromFile-DQPra6_l.js");
162
162
  return imageSizeFromFile(src.file);
163
163
  }
164
164
  if (onExternal === false) return;
@@ -126,9 +126,7 @@ function remarkMdxFiles(options = {}) {
126
126
  parsed.patterns.push(value);
127
127
  }
128
128
  break;
129
- case "defaultOpenAll":
130
- parsed.defaultOpenAll = true;
131
- break;
129
+ case "defaultOpenAll": parsed.defaultOpenAll = true;
132
130
  }
133
131
  }
134
132
  queue.push(autoFiles(file, node, parsed));
@@ -1,2 +1,2 @@
1
- import { n as isMarkdownPreferred, r as rewritePath, t as getNegotiator } from "../negotiation-Bdf_-s58.js";
1
+ import { n as isMarkdownPreferred, r as rewritePath, t as getNegotiator } from "../negotiation-BmZGHDR5.js";
2
2
  export { getNegotiator, isMarkdownPreferred, rewritePath };
@@ -1,4 +1,4 @@
1
- import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-B-1-B7_t.js";
1
+ import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-DC62tzP2.js";
2
2
  //#region ../../node_modules/.pnpm/negotiator@1.0.0/node_modules/negotiator/lib/charset.js
3
3
  /**
4
4
  * negotiator
@@ -1,4 +1,4 @@
1
- import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.js";
1
+ import { n as __exportAll } from "./rolldown-runtime-DC62tzP2.js";
2
2
  //#region src/source/path.ts
3
3
  var path_exports = /* @__PURE__ */ __exportAll({
4
4
  basename: () => basename,
@@ -115,7 +115,7 @@ function transformerAddLanguage(lang) {
115
115
  };
116
116
  }
117
117
  //#endregion
118
- //#region ../../node_modules/.pnpm/@shikijs+transformers@4.3.1/node_modules/@shikijs/transformers/dist/index.mjs
118
+ //#region ../../node_modules/.pnpm/@shikijs+transformers@4.4.1/node_modules/@shikijs/transformers/dist/index.mjs
119
119
  const RE_SPLIT_COMMENT = /(\s+\/\/)/;
120
120
  const RE_V1_END_COMMENT_PREFIX = /(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(\s*)$/;
121
121
  const RE_V3_END_COMMENT_PREFIX = /(?:\/\/|#|;{1,2}|%{1,2}|--)(\s*)$/;
@@ -2,13 +2,6 @@ import { c as TOCItemType } from "./toc-CtW5lwA1.js";
2
2
  import { Transformer } from "unified";
3
3
  import { Heading, Root } from "mdast";
4
4
  //#region src/mdx-plugins/remark-heading.d.ts
5
- declare module 'mdast' {
6
- interface HeadingData extends Data {
7
- hProperties?: {
8
- id?: string;
9
- } & Record<string, unknown>;
10
- }
11
- }
12
5
  interface RemarkHeadingOptions {
13
6
  slug?: (root: Root, heading: Heading, text: string) => string;
14
7
  /**
@@ -1,4 +1,4 @@
1
- import { t as __commonJSMin } from "./rolldown-runtime-B-1-B7_t.js";
1
+ import { t as __commonJSMin } from "./rolldown-runtime-DC62tzP2.js";
2
2
  //#region ../../node_modules/.pnpm/remove-markdown@0.6.4/node_modules/remove-markdown/index.js
3
3
  var require_remove_markdown = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
4
  module.exports = function(md, options) {
@@ -25,7 +25,7 @@ var __copyProps = (to, from, except, desc) => {
25
25
  }
26
26
  return to;
27
27
  };
28
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
29
29
  value: mod,
30
30
  enumerable: true
31
31
  }) : target, mod));
@@ -1,2 +1,2 @@
1
- import { m as algoliaClient, p as AlgoliaOptions } from "../../client-CFte63Ws.js";
1
+ import { m as algoliaClient, p as AlgoliaOptions } from "../../client-DURack0W.js";
2
2
  export { AlgoliaOptions, algoliaClient };
@@ -1,2 +1,2 @@
1
- import { _ as FetchOptions, v as fetchClient } from "../../client-CFte63Ws.js";
1
+ import { v as FetchOptions, y as fetchClient } from "../../client-DURack0W.js";
2
2
  export { FetchOptions, fetchClient };
@@ -1,2 +1,2 @@
1
- import { a as flexsearchStaticClient, i as FlexsearchStaticOptions } from "../../client-CFte63Ws.js";
1
+ import { a as flexsearchStaticClient, i as FlexsearchStaticOptions } from "../../client-DURack0W.js";
2
2
  export { FlexsearchStaticOptions, flexsearchStaticClient };
@@ -1,2 +1,2 @@
1
- import { c as mixedbreadClient, o as MixedbreadOptions, s as SearchMetadata } from "../../client-CFte63Ws.js";
1
+ import { c as mixedbreadClient, o as MixedbreadOptions, s as SearchMetadata } from "../../client-DURack0W.js";
2
2
  export { MixedbreadOptions, SearchMetadata, mixedbreadClient };
@@ -1,5 +1,5 @@
1
- import { r as __toESM } from "../../rolldown-runtime-B-1-B7_t.js";
2
- import { t as require_remove_markdown } from "../../remove-markdown-BoY2F4bc.js";
1
+ import { r as __toESM } from "../../rolldown-runtime-DC62tzP2.js";
2
+ import { t as require_remove_markdown } from "../../remove-markdown-Do94q-my.js";
3
3
  import Slugger from "github-slugger";
4
4
  //#region src/search/client/mixedbread.ts
5
5
  var import_remove_markdown = /* @__PURE__ */ __toESM(require_remove_markdown(), 1);
@@ -1,2 +1,2 @@
1
- import { l as OramaCloudLegacyOptions, u as oramaCloudLegacyClient } from "../../client-CFte63Ws.js";
1
+ import { l as OramaCloudLegacyOptions, u as oramaCloudLegacyClient } from "../../client-DURack0W.js";
2
2
  export { OramaCloudLegacyOptions, oramaCloudLegacyClient };
@@ -1,2 +1,2 @@
1
- import { d as OramaCloudOptions, f as oramaCloudClient } from "../../client-CFte63Ws.js";
1
+ import { d as OramaCloudOptions, f as oramaCloudClient } from "../../client-DURack0W.js";
2
2
  export { OramaCloudOptions, oramaCloudClient };
@@ -1,2 +1,2 @@
1
- import { g as oramaStaticClient, h as StaticOptions } from "../../client-CFte63Ws.js";
2
- export { StaticOptions, oramaStaticClient };
1
+ import { _ as staticClient, g as oramaStaticClient, h as StaticOptions } from "../../client-DURack0W.js";
2
+ export { StaticOptions, oramaStaticClient, staticClient };