fumadocs-core 16.7.11 → 16.7.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/{advanced-B6xijHpk.js → advanced-Bv_qi9IC.js} +1 -1
  2. package/dist/{algolia-CV1p_BGs.d.ts → algolia-DphIPKrc.d.ts} +1 -1
  3. package/dist/breadcrumb.d.ts +1 -1
  4. package/dist/{build-doc-CRrL6r30.js → build-doc-DKBeOVIN.js} +1 -1
  5. package/dist/{client-DwXJpdzf.d.ts → client-D3PZ2z2N.d.ts} +3 -3
  6. package/dist/content/mdx/preset-bundler.d.ts +7 -7
  7. package/dist/content/mdx/preset-bundler.js +1 -1
  8. package/dist/content/mdx/preset-runtime.d.ts +7 -7
  9. package/dist/content/mdx/preset-runtime.js +1 -1
  10. package/dist/content/toc.d.ts +1 -1
  11. package/dist/dist-BvsXWCqT.js +808 -0
  12. package/dist/fromFile-rjAsJGw3.js +845 -0
  13. package/dist/highlight/shiki/full.d.ts +1 -1
  14. package/dist/highlight/shiki/index.d.ts +1 -1
  15. package/dist/highlight/shiki/react.d.ts +2 -2
  16. package/dist/i18n/index.d.ts +1 -1
  17. package/dist/i18n/middleware.d.ts +1 -1
  18. package/dist/i18n/middleware.js +3763 -2
  19. package/dist/{index-DkqXqEn8.d.ts → index-9M3g3SDy.d.ts} +3 -3
  20. package/dist/{index-D-UKvVrz.d.ts → index-Bm0msojm.d.ts} +1 -1
  21. package/dist/{index-D2XxhP9t.d.ts → index-C4kyQCbj.d.ts} +1 -1
  22. package/dist/{index-Ca0YkTYK2.d.ts → index-CDOu1Gxx2.d.ts} +1 -1
  23. package/dist/mdx-plugins/codeblock-utils.d.ts +1 -1
  24. package/dist/mdx-plugins/index.d.ts +17 -17
  25. package/dist/mdx-plugins/index.js +2 -2
  26. package/dist/mdx-plugins/rehype-code.core.d.ts +1 -1
  27. package/dist/mdx-plugins/rehype-code.core.js +1 -1
  28. package/dist/mdx-plugins/rehype-code.d.ts +2 -2
  29. package/dist/mdx-plugins/rehype-code.js +1 -1
  30. package/dist/mdx-plugins/rehype-toc.d.ts +1 -1
  31. package/dist/mdx-plugins/remark-admonition.d.ts +1 -1
  32. package/dist/mdx-plugins/remark-code-tab.d.ts +1 -1
  33. package/dist/mdx-plugins/remark-directive-admonition.d.ts +1 -1
  34. package/dist/mdx-plugins/remark-feedback-block.d.ts +1 -1
  35. package/dist/mdx-plugins/remark-gfm.d.ts +1 -1
  36. package/dist/mdx-plugins/remark-heading.d.ts +1 -1
  37. package/dist/mdx-plugins/remark-image.d.ts +1 -1
  38. package/dist/mdx-plugins/remark-image.js +2 -2
  39. package/dist/mdx-plugins/remark-llms.d.ts +1 -1
  40. package/dist/mdx-plugins/remark-llms.runtime.d.ts +1 -1
  41. package/dist/mdx-plugins/remark-mdx-files.d.ts +1 -1
  42. package/dist/mdx-plugins/remark-mdx-mermaid.d.ts +1 -1
  43. package/dist/mdx-plugins/remark-npm.d.ts +1 -1
  44. package/dist/mdx-plugins/remark-npm.js +1 -64
  45. package/dist/mdx-plugins/remark-steps.d.ts +1 -1
  46. package/dist/mdx-plugins/remark-structure.d.ts +1 -1
  47. package/dist/mdx-plugins/stringifier.d.ts +1 -1
  48. package/dist/negotiation/index.js +1 -37
  49. package/dist/negotiation-CMIpYwJJ.js +1021 -0
  50. package/dist/page-tree/index.d.ts +2 -2
  51. package/dist/{rehype-code-CMrTh9Lu.d.ts → rehype-code-BceXtwzN.d.ts} +1 -1
  52. package/dist/{rehype-code.core-AAMsXdqJ.d.ts → rehype-code.core-DfJelVqH.d.ts} +2 -2
  53. package/dist/{remark-heading-95OQNNoH.d.ts → remark-heading-C3ZesmHL.d.ts} +1 -1
  54. package/dist/{remark-llms-Bjyq1jdk.d.ts → remark-llms-4bK9f_wN.d.ts} +1 -1
  55. package/dist/remark-npm-DIGXA7E3.js +593 -0
  56. package/dist/{remark-structure-c-gm2PCy.d.ts → remark-structure-DLKk-p9t.d.ts} +1 -1
  57. package/dist/search/algolia.d.ts +1 -1
  58. package/dist/search/client/algolia.d.ts +1 -1
  59. package/dist/search/client/fetch.d.ts +1 -1
  60. package/dist/search/client/flexsearch-static.d.ts +1 -1
  61. package/dist/search/client/flexsearch-static.js +1 -1
  62. package/dist/search/client/mixedbread.d.ts +1 -1
  63. package/dist/search/client/mixedbread.js +1 -1
  64. package/dist/search/client/orama-cloud-legacy.d.ts +1 -1
  65. package/dist/search/client/orama-cloud-legacy.js +1 -1
  66. package/dist/search/client/orama-cloud.d.ts +1 -1
  67. package/dist/search/client/orama-cloud.js +1 -1
  68. package/dist/search/client/orama-static.d.ts +1 -1
  69. package/dist/search/client/orama-static.js +1 -1
  70. package/dist/search/client.d.ts +1 -1
  71. package/dist/search/flexsearch.d.ts +4 -4
  72. package/dist/search/flexsearch.js +3 -3
  73. package/dist/search/index.d.ts +1 -1
  74. package/dist/search/mixedbread.d.ts +2 -2
  75. package/dist/search/mixedbread.js +2 -2
  76. package/dist/search/orama-cloud-legacy.d.ts +1 -1
  77. package/dist/search/orama-cloud.d.ts +1 -1
  78. package/dist/search/server.d.ts +1 -1
  79. package/dist/search/server.js +3 -3
  80. package/dist/{server-B89IM_4v.d.ts → server-D74cMtck.d.ts} +5 -5
  81. package/dist/source/client/index.d.ts +1 -1
  82. package/dist/source/index.d.ts +1 -1
  83. package/dist/source/index.js +2 -2
  84. package/dist/source/plugins/lucide-icons.d.ts +1 -1
  85. package/dist/source/plugins/lucide-icons.js +1 -1
  86. package/dist/source/plugins/slugs.d.ts +1 -1
  87. package/dist/source/plugins/slugs.js +1 -1
  88. package/dist/source/plugins/status-badges.d.ts +2 -2
  89. package/dist/toc.d.ts +1 -1
  90. package/dist/toc.js +12 -26
  91. package/package.json +87 -103
  92. /package/dist/{codeblock-utils-DuhKfwET.d.ts → codeblock-utils-BMoNeXUb.d.ts} +0 -0
  93. /package/dist/{definitions-j1YD3oZE.d.ts → definitions-DH0vdUJV.d.ts} +0 -0
  94. /package/dist/{endpoint-Bs6bqGYq.js → endpoint-BWgZs3LL.js} +0 -0
  95. /package/dist/{icon-CfEtMzdP.js → icon-DXrdIp2K.js} +0 -0
  96. /package/dist/{index-DAzunKMp.d.ts → index-B_5tvyCk.d.ts} +0 -0
  97. /package/dist/{index-CQ5TBOzH.d.ts → index-WhA-NTMB.d.ts} +0 -0
  98. /package/dist/{path-CL7hf0GY.js → path-ClKaiDuq.js} +0 -0
  99. /package/dist/{rehype-code.core-23F1yz08.js → rehype-code.core-B9asBGBz.js} +0 -0
  100. /package/dist/{rehype-toc-iWxg6ELI.d.ts → rehype-toc-Dk5ozAin.d.ts} +0 -0
  101. /package/dist/{remark-admonition-0gZM40ZU.d.ts → remark-admonition-D6mMI676.d.ts} +0 -0
  102. /package/dist/{remark-code-tab-Dk79zZwn.d.ts → remark-code-tab-Cl4XxpJ9.d.ts} +0 -0
  103. /package/dist/{remark-directive-admonition-CxFIkQ_i.d.ts → remark-directive-admonition-BJwUZuIt.d.ts} +0 -0
  104. /package/dist/{remark-feedback-block-CehhnqT0.d.ts → remark-feedback-block-PeBl_Fvl.d.ts} +0 -0
  105. /package/dist/{remark-gfm-DIHBRjLx.d.ts → remark-gfm-IilhXQUz.d.ts} +0 -0
  106. /package/dist/{remark-image-DQlJevNY.d.ts → remark-image-Co-rKW87.d.ts} +0 -0
  107. /package/dist/{remark-mdx-files-C50nFvnY.d.ts → remark-mdx-files-Ba1Yf3sk.d.ts} +0 -0
  108. /package/dist/{remark-mdx-mermaid-BkA2vurg.d.ts → remark-mdx-mermaid-DPDDbIZJ.d.ts} +0 -0
  109. /package/dist/{remark-npm-7SDuqMc6.d.ts → remark-npm-B7OPb7Ze.d.ts} +0 -0
  110. /package/dist/{remark-steps-DsnXM6Xj.d.ts → remark-steps-PxfBg8ws.d.ts} +0 -0
  111. /package/dist/{remove-markdown-Cte6pwYx.js → remove-markdown-CQ--9YPQ.js} +0 -0
  112. /package/dist/{remove-undefined-PK1FA5gc.js → remove-undefined-DLE4y6II.js} +0 -0
  113. /package/dist/{stringifier-l_KdmdPb.d.ts → stringifier-D6T4zhkn.d.ts} +0 -0
  114. /package/dist/{toc-CgnJPi4Q.d.ts → toc-DXlLlbv_.d.ts} +0 -0
  115. /package/dist/{types-Dr0HqbXP.d.ts → types-D8S_yMgI.d.ts} +0 -0
  116. /package/dist/{util-D2LMvKsn.d.ts → util-CZD_oO6N.d.ts} +0 -0
  117. /package/dist/{util-BnfE-P1F.js → util-D3lJGMcv.js} +0 -0
  118. /package/dist/{utils-D_KDPEof.js → utils-CEyx3kFf.js} +0 -0
@@ -1,6 +1,6 @@
1
- import { a as Separator, i as Root, n as Item, r as Node, t as Folder } from "./definitions-j1YD3oZE.js";
2
- import { t as I18nConfig } from "./index-DAzunKMp.js";
3
- import { n as SerializedPageTree } from "./index-Ca0YkTYK2.js";
1
+ import { a as Separator, i as Root, n as Item, r as Node, t as Folder } from "./definitions-DH0vdUJV.js";
2
+ import { t as I18nConfig } from "./index-B_5tvyCk.js";
3
+ import { n as SerializedPageTree } from "./index-CDOu1Gxx2.js";
4
4
  import { ReactNode } from "react";
5
5
 
6
6
  //#region src/source/source.d.ts
@@ -1,4 +1,4 @@
1
- import { t as Awaitable } from "./types-Dr0HqbXP.js";
1
+ import { t as Awaitable } from "./types-D8S_yMgI.js";
2
2
  import { Root } from "hast";
3
3
  import { BundledLanguage, BundledTheme, CodeOptionsMeta, CodeOptionsThemes, CodeToHastOptionsCommon, HighlighterCore } from "shiki";
4
4
 
@@ -1,4 +1,4 @@
1
- import { i as Root, n as Item, r as Node, t as Folder } from "./definitions-j1YD3oZE.js";
1
+ import { i as Root, n as Item, r as Node, t as Folder } from "./definitions-DH0vdUJV.js";
2
2
 
3
3
  //#region src/page-tree/utils.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { i as Root } from "./definitions-j1YD3oZE.js";
1
+ import { i as Root } from "./definitions-DH0vdUJV.js";
2
2
  //#region src/source/client/index.d.ts
3
3
  interface SerializedPageTree {
4
4
  $fumadocs_loader: 'page-tree';
@@ -1,2 +1,2 @@
1
- import { i as parseCodeBlockAttributes, n as CodeBlockTabsOptions, r as generateCodeBlockTabs, t as CodeBlockAttributes } from "../codeblock-utils-DuhKfwET.js";
1
+ import { i as parseCodeBlockAttributes, n as CodeBlockTabsOptions, r as generateCodeBlockTabs, t as CodeBlockAttributes } from "../codeblock-utils-BMoNeXUb.js";
2
2
  export { CodeBlockAttributes, CodeBlockTabsOptions, generateCodeBlockTabs, parseCodeBlockAttributes };
@@ -1,18 +1,18 @@
1
- import { n as remarkGfm, t as RemarkGfmOptions } from "../remark-gfm-DIHBRjLx.js";
2
- import { a as CodeBlockIcon, i as transformerTab, o as transformerIcon } from "../rehype-code.core-AAMsXdqJ.js";
3
- import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-CMrTh9Lu.js";
4
- import { n as remarkImage, t as RemarkImageOptions } from "../remark-image-DQlJevNY.js";
5
- 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-c-gm2PCy.js";
6
- import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-95OQNNoH.js";
7
- import { n as remarkAdmonition, t as RemarkAdmonitionOptions } from "../remark-admonition-0gZM40ZU.js";
8
- import { n as remarkDirectiveAdmonition, t as RemarkDirectiveAdmonitionOptions } from "../remark-directive-admonition-CxFIkQ_i.js";
9
- import { n as RehypeTocOptions, r as rehypeToc, t as RehypeTOCItemType } from "../rehype-toc-iWxg6ELI.js";
10
- import { n as remarkCodeTab, t as RemarkCodeTabOptions } from "../remark-code-tab-Dk79zZwn.js";
11
- import { n as remarkSteps, t as RemarkStepsOptions } from "../remark-steps-DsnXM6Xj.js";
12
- import { n as remarkNpm, t as RemarkNpmOptions } from "../remark-npm-7SDuqMc6.js";
13
- import { i as parseCodeBlockAttributes, n as CodeBlockTabsOptions, r as generateCodeBlockTabs, t as CodeBlockAttributes } from "../codeblock-utils-DuhKfwET.js";
14
- import { a as remarkMdxFiles, r as RemarkMdxFilesOptions } from "../remark-mdx-files-C50nFvnY.js";
15
- import { n as remarkMdxMermaid, t as RemarkMdxMermaidOptions } from "../remark-mdx-mermaid-BkA2vurg.js";
16
- import { n as RemarkFeedbackBlockOptions, r as remarkFeedbackBlock, t as FeedbackBlockProps } from "../remark-feedback-block-CehhnqT0.js";
17
- import { t as LLMsOptions } from "../remark-llms-Bjyq1jdk.js";
1
+ import { n as remarkGfm, t as RemarkGfmOptions } from "../remark-gfm-IilhXQUz.js";
2
+ import { a as CodeBlockIcon, i as transformerTab, o as transformerIcon } from "../rehype-code.core-DfJelVqH.js";
3
+ import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-BceXtwzN.js";
4
+ import { n as remarkImage, t as RemarkImageOptions } from "../remark-image-Co-rKW87.js";
5
+ 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-DLKk-p9t.js";
6
+ import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-C3ZesmHL.js";
7
+ import { n as remarkAdmonition, t as RemarkAdmonitionOptions } from "../remark-admonition-D6mMI676.js";
8
+ import { n as remarkDirectiveAdmonition, t as RemarkDirectiveAdmonitionOptions } from "../remark-directive-admonition-BJwUZuIt.js";
9
+ import { n as RehypeTocOptions, r as rehypeToc, t as RehypeTOCItemType } from "../rehype-toc-Dk5ozAin.js";
10
+ import { n as remarkCodeTab, t as RemarkCodeTabOptions } from "../remark-code-tab-Cl4XxpJ9.js";
11
+ import { n as remarkSteps, t as RemarkStepsOptions } from "../remark-steps-PxfBg8ws.js";
12
+ import { n as remarkNpm, t as RemarkNpmOptions } from "../remark-npm-B7OPb7Ze.js";
13
+ import { i as parseCodeBlockAttributes, n as CodeBlockTabsOptions, r as generateCodeBlockTabs, t as CodeBlockAttributes } from "../codeblock-utils-BMoNeXUb.js";
14
+ import { a as remarkMdxFiles, r as RemarkMdxFilesOptions } from "../remark-mdx-files-Ba1Yf3sk.js";
15
+ import { n as remarkMdxMermaid, t as RemarkMdxMermaidOptions } from "../remark-mdx-mermaid-DPDDbIZJ.js";
16
+ import { n as RemarkFeedbackBlockOptions, r as remarkFeedbackBlock, t as FeedbackBlockProps } from "../remark-feedback-block-PeBl_Fvl.js";
17
+ import { t as LLMsOptions } from "../remark-llms-4bK9f_wN.js";
18
18
  export { CodeBlockAttributes, CodeBlockIcon, CodeBlockTabsOptions, FeedbackBlockProps, type LLMsOptions, RehypeCodeOptions, RehypeTOCItemType, RehypeTocOptions, RemarkAdmonitionOptions, RemarkCodeTabOptions, RemarkDirectiveAdmonitionOptions, RemarkFeedbackBlockOptions, 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 { i as transformerIcon, r as transformerTab } from "../rehype-code.core-23F1yz08.js";
4
+ import { i as transformerIcon, r as transformerTab } from "../rehype-code.core-B9asBGBz.js";
5
5
  import { rehypeCode, rehypeCodeDefaultOptions } from "./rehype-code.js";
6
6
  import { remarkImage } from "./remark-image.js";
7
7
  import { defaultStringifier, remarkStructure, remarkStructureDefaultOptions, structure } from "./remark-structure.js";
@@ -10,7 +10,7 @@ import { remarkDirectiveAdmonition } from "./remark-directive-admonition.js";
10
10
  import { rehypeToc } from "./rehype-toc.js";
11
11
  import { remarkCodeTab } from "./remark-code-tab.js";
12
12
  import { remarkSteps } from "./remark-steps.js";
13
- import { remarkNpm } from "./remark-npm.js";
13
+ import { t as remarkNpm } from "../remark-npm-DIGXA7E3.js";
14
14
  import { remarkMdxFiles } from "./remark-mdx-files.js";
15
15
  import { remarkMdxMermaid } from "./remark-mdx-mermaid.js";
16
16
  import { remarkFeedbackBlock } from "./remark-feedback-block.js";
@@ -1,2 +1,2 @@
1
- import { a as CodeBlockIcon, i as transformerTab, n as createRehypeCode, o as transformerIcon, r as rehypeCodeDefaultOptions, t as RehypeCodeOptionsCommon } from "../rehype-code.core-AAMsXdqJ.js";
1
+ import { a as CodeBlockIcon, i as transformerTab, n as createRehypeCode, o as transformerIcon, r as rehypeCodeDefaultOptions, t as RehypeCodeOptionsCommon } from "../rehype-code.core-DfJelVqH.js";
2
2
  export { CodeBlockIcon, RehypeCodeOptionsCommon, createRehypeCode, rehypeCodeDefaultOptions, transformerIcon, transformerTab };
@@ -1,2 +1,2 @@
1
- import { i as transformerIcon, n as rehypeCodeDefaultOptions, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-23F1yz08.js";
1
+ import { i as transformerIcon, n as rehypeCodeDefaultOptions, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-B9asBGBz.js";
2
2
  export { createRehypeCode, rehypeCodeDefaultOptions, transformerIcon, transformerTab };
@@ -1,3 +1,3 @@
1
- import { a as CodeBlockIcon, i as transformerTab, o as transformerIcon } from "../rehype-code.core-AAMsXdqJ.js";
2
- import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-CMrTh9Lu.js";
1
+ import { a as CodeBlockIcon, i as transformerTab, o as transformerIcon } from "../rehype-code.core-DfJelVqH.js";
2
+ import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-BceXtwzN.js";
3
3
  export { CodeBlockIcon, RehypeCodeOptions, rehypeCode, rehypeCodeDefaultOptions, transformerIcon, transformerTab };
@@ -1,5 +1,5 @@
1
1
  import { defaultShikiFactory, wasmShikiFactory } from "../highlight/shiki/full.js";
2
- import { i as transformerIcon, n as rehypeCodeDefaultOptions$1, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-23F1yz08.js";
2
+ import { i as transformerIcon, n as rehypeCodeDefaultOptions$1, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-B9asBGBz.js";
3
3
  //#region src/mdx-plugins/rehype-code.ts
4
4
  const rehypeCodeDefaultOptions = {
5
5
  engine: "js",
@@ -1,2 +1,2 @@
1
- import { n as RehypeTocOptions, r as rehypeToc, t as RehypeTOCItemType } from "../rehype-toc-iWxg6ELI.js";
1
+ import { n as RehypeTocOptions, r as rehypeToc, t as RehypeTOCItemType } from "../rehype-toc-Dk5ozAin.js";
2
2
  export { RehypeTOCItemType, RehypeTocOptions, rehypeToc };
@@ -1,2 +1,2 @@
1
- import { n as remarkAdmonition, t as RemarkAdmonitionOptions } from "../remark-admonition-0gZM40ZU.js";
1
+ import { n as remarkAdmonition, t as RemarkAdmonitionOptions } from "../remark-admonition-D6mMI676.js";
2
2
  export { RemarkAdmonitionOptions, remarkAdmonition };
@@ -1,2 +1,2 @@
1
- import { n as remarkCodeTab, t as RemarkCodeTabOptions } from "../remark-code-tab-Dk79zZwn.js";
1
+ import { n as remarkCodeTab, t as RemarkCodeTabOptions } from "../remark-code-tab-Cl4XxpJ9.js";
2
2
  export { RemarkCodeTabOptions, remarkCodeTab };
@@ -1,2 +1,2 @@
1
- import { n as remarkDirectiveAdmonition, t as RemarkDirectiveAdmonitionOptions } from "../remark-directive-admonition-CxFIkQ_i.js";
1
+ import { n as remarkDirectiveAdmonition, t as RemarkDirectiveAdmonitionOptions } from "../remark-directive-admonition-BJwUZuIt.js";
2
2
  export { RemarkDirectiveAdmonitionOptions, remarkDirectiveAdmonition };
@@ -1,2 +1,2 @@
1
- import { n as RemarkFeedbackBlockOptions, r as remarkFeedbackBlock, t as FeedbackBlockProps } from "../remark-feedback-block-CehhnqT0.js";
1
+ import { n as RemarkFeedbackBlockOptions, r as remarkFeedbackBlock, t as FeedbackBlockProps } from "../remark-feedback-block-PeBl_Fvl.js";
2
2
  export { FeedbackBlockProps, RemarkFeedbackBlockOptions, remarkFeedbackBlock };
@@ -1,2 +1,2 @@
1
- import { n as remarkGfm, t as RemarkGfmOptions } from "../remark-gfm-DIHBRjLx.js";
1
+ import { n as remarkGfm, t as RemarkGfmOptions } from "../remark-gfm-IilhXQUz.js";
2
2
  export { RemarkGfmOptions, remarkGfm };
@@ -1,2 +1,2 @@
1
- import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-95OQNNoH.js";
1
+ import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-C3ZesmHL.js";
2
2
  export { RemarkHeadingOptions, remarkHeading };
@@ -1,2 +1,2 @@
1
- import { n as remarkImage, t as RemarkImageOptions } from "../remark-image-DQlJevNY.js";
1
+ import { n as remarkImage, t as RemarkImageOptions } from "../remark-image-Co-rKW87.js";
2
2
  export { RemarkImageOptions, remarkImage };
@@ -175,14 +175,14 @@ function parseSrc(src, publicDir, dir) {
175
175
  }
176
176
  async function getImageSize(src, onExternal) {
177
177
  if (src.type === "file") {
178
- const { imageSizeFromFile } = await import("image-size/fromFile");
178
+ const { imageSizeFromFile } = await import("../fromFile-rjAsJGw3.js");
179
179
  return imageSizeFromFile(src.file);
180
180
  }
181
181
  if (onExternal === false) return;
182
182
  const { timeout } = typeof onExternal === "object" ? onExternal : {};
183
183
  const res = await fetch(src.url, { signal: typeof timeout === "number" ? AbortSignal.timeout(timeout) : void 0 });
184
184
  if (!res.ok) throw new Error(`[Remark Image] Failed to fetch ${src.url} (${res.status}): ${await res.text()}`);
185
- const { imageSize } = await import("image-size");
185
+ const { imageSize } = await import("../dist-BvsXWCqT.js");
186
186
  return imageSize(new Uint8Array(await res.arrayBuffer()));
187
187
  }
188
188
  //#endregion
@@ -1,2 +1,2 @@
1
- import { n as placeholder, r as remarkLLMs, t as LLMsOptions } from "../remark-llms-Bjyq1jdk.js";
1
+ import { n as placeholder, r as remarkLLMs, t as LLMsOptions } from "../remark-llms-4bK9f_wN.js";
2
2
  export { LLMsOptions, placeholder, remarkLLMs };
@@ -1,4 +1,4 @@
1
- import { t as Awaitable } from "../types-Dr0HqbXP.js";
1
+ import { t as Awaitable } from "../types-D8S_yMgI.js";
2
2
 
3
3
  //#region src/mdx-plugins/remark-llms.runtime.d.ts
4
4
  interface PlaceholderData {
@@ -1,2 +1,2 @@
1
- import { a as remarkMdxFiles, i as ToMdxOptions, n as FolderNode, r as RemarkMdxFilesOptions, t as FileNode } from "../remark-mdx-files-C50nFvnY.js";
1
+ import { a as remarkMdxFiles, i as ToMdxOptions, n as FolderNode, r as RemarkMdxFilesOptions, t as FileNode } from "../remark-mdx-files-Ba1Yf3sk.js";
2
2
  export { FileNode, FolderNode, RemarkMdxFilesOptions, ToMdxOptions, remarkMdxFiles };
@@ -1,2 +1,2 @@
1
- import { n as remarkMdxMermaid, t as RemarkMdxMermaidOptions } from "../remark-mdx-mermaid-BkA2vurg.js";
1
+ import { n as remarkMdxMermaid, t as RemarkMdxMermaidOptions } from "../remark-mdx-mermaid-DPDDbIZJ.js";
2
2
  export { RemarkMdxMermaidOptions, remarkMdxMermaid };
@@ -1,2 +1,2 @@
1
- import { n as remarkNpm, t as RemarkNpmOptions } from "../remark-npm-7SDuqMc6.js";
1
+ import { n as remarkNpm, t as RemarkNpmOptions } from "../remark-npm-B7OPb7Ze.js";
2
2
  export { RemarkNpmOptions, remarkNpm };
@@ -1,65 +1,2 @@
1
- import { generateCodeBlockTabs } from "./codeblock-utils.js";
2
- import { visit } from "unist-util-visit";
3
- import convert from "npm-to-yarn";
4
- //#region src/mdx-plugins/remark-npm.ts
5
- const aliases = ["npm", "package-install"];
6
- /**
7
- * It generates multiple tabs of codeblocks for different package managers from a npm command codeblock.
8
- */
9
- function remarkNpm({ persist = false, packageManagers = [
10
- {
11
- command: (cmd) => convert(cmd, "npm"),
12
- name: "npm"
13
- },
14
- {
15
- command: (cmd) => convert(cmd, "pnpm"),
16
- name: "pnpm"
17
- },
18
- {
19
- command: (cmd) => convert(cmd, "yarn"),
20
- name: "yarn"
21
- },
22
- {
23
- command: (cmd) => convert(cmd, "bun"),
24
- name: "bun"
25
- }
26
- ] } = {}) {
27
- return (tree) => {
28
- visit(tree, "code", (node) => {
29
- if (!node.lang || !aliases.includes(node.lang)) return;
30
- let code = node.value;
31
- if (node.lang === "package-install" && !code.startsWith("npm") && !code.startsWith("npx")) code = `npm install ${code}`;
32
- const options = {
33
- persist,
34
- tabs: [],
35
- triggers: []
36
- };
37
- for (const manager of packageManagers) {
38
- const value = manager.value ?? manager.name;
39
- const command = manager.command(code);
40
- if (!command || command.length === 0) continue;
41
- options.defaultValue ??= value;
42
- options.triggers.push({
43
- value,
44
- children: [{
45
- type: "text",
46
- value: manager.name
47
- }]
48
- });
49
- options.tabs.push({
50
- value,
51
- children: [{
52
- type: "code",
53
- lang: "bash",
54
- meta: node.meta,
55
- value: command
56
- }]
57
- });
58
- }
59
- Object.assign(node, generateCodeBlockTabs(options));
60
- return "skip";
61
- });
62
- };
63
- }
64
- //#endregion
1
+ import { t as remarkNpm } from "../remark-npm-DIGXA7E3.js";
65
2
  export { remarkNpm };
@@ -1,2 +1,2 @@
1
- import { n as remarkSteps, t as RemarkStepsOptions } from "../remark-steps-DsnXM6Xj.js";
1
+ import { n as remarkSteps, t as RemarkStepsOptions } from "../remark-steps-PxfBg8ws.js";
2
2
  export { RemarkStepsOptions, remarkSteps };
@@ -1,2 +1,2 @@
1
- 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-c-gm2PCy.js";
1
+ 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-DLKk-p9t.js";
2
2
  export { Stringifier, StringifyOptions, StructureOptions, StructuredData, defaultStringifier, remarkStructure, remarkStructureDefaultOptions, structure };
@@ -1,2 +1,2 @@
1
- import { n as StringifyOptions, r as defaultStringifier, t as Stringifier } from "../stringifier-l_KdmdPb.js";
1
+ import { n as StringifyOptions, r as defaultStringifier, t as Stringifier } from "../stringifier-D6T4zhkn.js";
2
2
  export { Stringifier, StringifyOptions, defaultStringifier };
@@ -1,38 +1,2 @@
1
- import Negotiator from "negotiator";
2
- import { compile, match } from "path-to-regexp";
3
- //#region src/negotiation/index.ts
4
- function getNegotiator(request) {
5
- const headers = {};
6
- request.headers.forEach((value, key) => {
7
- headers[key] = value;
8
- });
9
- return new Negotiator({ headers });
10
- }
11
- /**
12
- * Rewrite incoming path matching the `source` pattern into the `destination` pattern.
13
- *
14
- * See [`path-to-regexp`](https://github.com/pillarjs/path-to-regexp) for accepted pattern formats.
15
- *
16
- * @param source - the original pattern of incoming paths
17
- * @param destination - the target pattern to convert into
18
- */
19
- function rewritePath(source, destination) {
20
- const matcher = match(source, { decode: false });
21
- const compiler = compile(destination, { encode: false });
22
- return { rewrite(pathname) {
23
- const result = matcher(pathname);
24
- if (!result) return false;
25
- return compiler(result.params);
26
- } };
27
- }
28
- function isMarkdownPreferred(request, options) {
29
- const { markdownMediaTypes = [
30
- "text/plain",
31
- "text/markdown",
32
- "text/x-markdown"
33
- ] } = options ?? {};
34
- const mediaTypes = getNegotiator(request).mediaTypes();
35
- return markdownMediaTypes.some((type) => mediaTypes.includes(type));
36
- }
37
- //#endregion
1
+ import { n as isMarkdownPreferred, r as rewritePath, t as getNegotiator } from "../negotiation-CMIpYwJJ.js";
38
2
  export { getNegotiator, isMarkdownPreferred, rewritePath };