fumadocs-core 16.7.14 → 16.7.15
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/{advanced-Bv_qi9IC.js → advanced-BCAHgGV0.js} +1 -1
- package/dist/{algolia-DphIPKrc.d.ts → algolia-ZyQLVdey.d.ts} +1 -1
- package/dist/breadcrumb.d.ts +1 -1
- package/dist/{build-doc-DKBeOVIN.js → build-doc-DBVRblOC.js} +1 -1
- package/dist/{client-D3PZ2z2N.d.ts → client-BRJhJ58c.d.ts} +3 -3
- package/dist/content/mdx/preset-bundler.d.ts +7 -7
- package/dist/content/mdx/preset-bundler.js +1 -1
- package/dist/content/mdx/preset-runtime.d.ts +7 -7
- package/dist/content/mdx/preset-runtime.js +1 -1
- package/dist/content/toc.d.ts +1 -1
- 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/index.js +1 -1
- package/dist/highlight/shiki/react.d.ts +2 -2
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/middleware.d.ts +1 -1
- package/dist/i18n/middleware.js +1 -1
- package/dist/{index-CDOu1Gxx2.d.ts → index-B-4lKkNh2.d.ts} +1 -1
- package/dist/{index-C4kyQCbj.d.ts → index-B518t-3i.d.ts} +1 -1
- package/dist/{index-Bm0msojm.d.ts → index-DxyTmDjY.d.ts} +1 -1
- package/dist/{index-9M3g3SDy.d.ts → index-gTnj-v3t.d.ts} +3 -3
- package/dist/is-equal-DiHmw70P.js +8 -0
- package/dist/mdx-plugins/codeblock-utils.d.ts +1 -1
- package/dist/mdx-plugins/index.d.ts +17 -17
- package/dist/mdx-plugins/index.js +2 -2
- 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/rehype-toc.d.ts +1 -1
- package/dist/mdx-plugins/rehype-toc.js +1 -1
- package/dist/mdx-plugins/remark-admonition.d.ts +1 -1
- package/dist/mdx-plugins/remark-admonition.js +1 -1
- package/dist/mdx-plugins/remark-code-tab.d.ts +1 -1
- package/dist/mdx-plugins/remark-code-tab.js +19 -25
- package/dist/mdx-plugins/remark-directive-admonition.d.ts +1 -1
- package/dist/mdx-plugins/remark-feedback-block.d.ts +1 -1
- package/dist/mdx-plugins/remark-feedback-block.js +1 -1
- package/dist/mdx-plugins/remark-gfm.d.ts +1 -1
- package/dist/mdx-plugins/remark-heading.d.ts +1 -1
- package/dist/mdx-plugins/remark-heading.js +1 -1
- package/dist/mdx-plugins/remark-image.d.ts +1 -1
- package/dist/mdx-plugins/remark-image.js +44 -61
- package/dist/mdx-plugins/remark-llms.d.ts +1 -1
- package/dist/mdx-plugins/remark-llms.js +4 -3
- package/dist/mdx-plugins/remark-llms.runtime.d.ts +1 -1
- package/dist/mdx-plugins/remark-mdx-files.d.ts +1 -1
- package/dist/mdx-plugins/remark-mdx-mermaid.d.ts +1 -1
- package/dist/mdx-plugins/remark-mdx-mermaid.js +3 -3
- package/dist/mdx-plugins/remark-npm.d.ts +1 -1
- package/dist/mdx-plugins/remark-npm.js +1 -1
- package/dist/mdx-plugins/remark-steps.d.ts +1 -1
- package/dist/mdx-plugins/remark-steps.js +1 -1
- package/dist/mdx-plugins/remark-structure.d.ts +1 -1
- package/dist/mdx-plugins/remark-structure.js +1 -1
- package/dist/mdx-plugins/stringifier.d.ts +1 -1
- package/dist/negotiation/index.js +1 -1
- package/dist/page-tree/index.d.ts +2 -2
- package/dist/{rehype-code-BceXtwzN.d.ts → rehype-code-DJKXLHtp.d.ts} +1 -1
- package/dist/rehype-code.core-Cg1anr4H.d.ts +124 -0
- package/dist/{rehype-code.core-Doda41P7.js → rehype-code.core-Ckq2nRUU.js} +106 -14
- package/dist/remark-code-tab-BC5W5GqG.d.ts +31 -0
- package/dist/{remark-heading-C3ZesmHL.d.ts → remark-heading-DJvYcq64.d.ts} +1 -1
- package/dist/{remark-llms-4bK9f_wN.d.ts → remark-llms-Dwjerpo2.d.ts} +1 -1
- package/dist/{remark-npm-DIGXA7E3.js → remark-npm-BWvHn4O3.js} +21 -10
- package/dist/{remark-structure-DLKk-p9t.d.ts → remark-structure-BxbC5Buc.d.ts} +1 -1
- package/dist/search/algolia.d.ts +1 -1
- package/dist/search/client/algolia.d.ts +1 -1
- package/dist/search/client/fetch.d.ts +1 -1
- package/dist/search/client/flexsearch-static.d.ts +1 -1
- package/dist/search/client/flexsearch-static.js +1 -1
- package/dist/search/client/mixedbread.d.ts +1 -1
- package/dist/search/client/mixedbread.js +1 -1
- 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 +1 -1
- package/dist/search/client.d.ts +1 -1
- package/dist/search/flexsearch.d.ts +4 -4
- package/dist/search/flexsearch.js +3 -3
- package/dist/search/index.d.ts +1 -1
- package/dist/search/mixedbread.d.ts +2 -2
- package/dist/search/mixedbread.js +2 -2
- package/dist/search/orama-cloud-legacy.d.ts +1 -1
- package/dist/search/orama-cloud.d.ts +1 -1
- package/dist/search/server.d.ts +1 -1
- package/dist/search/server.js +3 -3
- package/dist/{server-D74cMtck.d.ts → server-DSoALz54.d.ts} +5 -5
- package/dist/source/client/index.d.ts +1 -1
- package/dist/source/index.d.ts +1 -1
- package/dist/source/index.js +2 -2
- package/dist/source/plugins/lucide-icons.d.ts +1 -1
- package/dist/source/plugins/lucide-icons.js +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 +2 -2
- package/dist/{toc-DXlLlbv_.d.ts → toc-CZK90oS5.d.ts} +10 -1
- package/dist/toc.d.ts +2 -2
- package/dist/toc.js +117 -73
- package/dist/types-RCtxugu0.d.ts +4 -0
- package/dist/utils/use-on-change.js +2 -5
- package/dist/{utils-C73VXFR0.js → utils-pSG8hSr9.js} +6 -2
- package/dist/{utils-BqbZbgRr.js → utils-tAukrbtB.js} +4 -4
- package/package.json +1 -2
- package/dist/rehype-code.core-DfJelVqH.d.ts +0 -52
- package/dist/remark-code-tab-Cl4XxpJ9.d.ts +0 -31
- package/dist/types-D8S_yMgI.d.ts +0 -5
- /package/dist/{codeblock-utils-BMoNeXUb.d.ts → codeblock-utils-D1ODmcHy.d.ts} +0 -0
- /package/dist/{definitions-DH0vdUJV.d.ts → definitions-57FFofI9.d.ts} +0 -0
- /package/dist/{dist-BvsXWCqT.js → dist-BvM8AIGy.js} +0 -0
- /package/dist/{endpoint-BWgZs3LL.js → endpoint-CAUHRXte.js} +0 -0
- /package/dist/{fromFile-rjAsJGw3.js → fromFile-Fn_3e7Ng.js} +0 -0
- /package/dist/{icon-DXrdIp2K.js → icon-CboA1P8m.js} +0 -0
- /package/dist/{index-B_5tvyCk.d.ts → index-CRLkAaM0.d.ts} +0 -0
- /package/dist/{index-WhA-NTMB.d.ts → index-GHkAEvmO.d.ts} +0 -0
- /package/dist/{negotiation-BTT1Ep9U.js → negotiation-BdxTpPs1.js} +0 -0
- /package/dist/{path-ClKaiDuq.js → path-v4s3P8pA.js} +0 -0
- /package/dist/{rehype-toc-Dk5ozAin.d.ts → rehype-toc-wIDEJODt.d.ts} +0 -0
- /package/dist/{remark-admonition-D6mMI676.d.ts → remark-admonition-CfMnMJY5.d.ts} +0 -0
- /package/dist/{remark-directive-admonition-BJwUZuIt.d.ts → remark-directive-admonition-CUXTwdDg.d.ts} +0 -0
- /package/dist/{remark-feedback-block-PeBl_Fvl.d.ts → remark-feedback-block-Bd_7j2CA.d.ts} +0 -0
- /package/dist/{remark-gfm-IilhXQUz.d.ts → remark-gfm-D9aa2ppr.d.ts} +0 -0
- /package/dist/{remark-image-Co-rKW87.d.ts → remark-image-CSTFtaeg.d.ts} +0 -0
- /package/dist/{remark-mdx-files-Ba1Yf3sk.d.ts → remark-mdx-files-Cv1mLv9_.d.ts} +0 -0
- /package/dist/{remark-mdx-mermaid-DPDDbIZJ.d.ts → remark-mdx-mermaid-DKj2NHxp.d.ts} +0 -0
- /package/dist/{remark-npm-B7OPb7Ze.d.ts → remark-npm-BQkE8_Hf.d.ts} +0 -0
- /package/dist/{remark-steps-PxfBg8ws.d.ts → remark-steps-BmZAJIGA.d.ts} +0 -0
- /package/dist/{remove-markdown-CQ--9YPQ.js → remove-markdown-D2ifi9PZ.js} +0 -0
- /package/dist/{remove-undefined-DLE4y6II.js → remove-undefined-CTqT55E9.js} +0 -0
- /package/dist/{stringifier-D6T4zhkn.d.ts → stringifier-B2PmymrT.d.ts} +0 -0
- /package/dist/{util-CZD_oO6N.d.ts → util-BvKVaD5t.d.ts} +0 -0
- /package/dist/{util-D3lJGMcv.js → util-DEs3M9dw.js} +0 -0
- /package/dist/{utils-CEyx3kFf.js → utils-CkDkYuX8.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContentHighlighter } from "./search/index.js";
|
|
2
|
-
import { t as removeUndefined } from "./remove-undefined-
|
|
2
|
+
import { t as removeUndefined } from "./remove-undefined-CTqT55E9.js";
|
|
3
3
|
import { getByID, search } from "@orama/orama";
|
|
4
4
|
//#region src/search/orama/search/simple.ts
|
|
5
5
|
async function searchSimple(db, query, params = {}) {
|
package/dist/breadcrumb.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as findPath } from "./utils-BFW0mEx9.js";
|
|
2
|
-
import { r as extname, t as basename } from "./path-
|
|
2
|
+
import { r as extname, t as basename } from "./path-v4s3P8pA.js";
|
|
3
3
|
//#region src/search/server/build-index.ts
|
|
4
4
|
async function buildIndexDefault(page) {
|
|
5
5
|
let structuredData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Awaitable } from "./types-
|
|
2
|
-
import { t as BaseIndex } from "./algolia-
|
|
3
|
-
import { r as SortedResult } from "./index-
|
|
1
|
+
import { t as Awaitable } from "./types-RCtxugu0.js";
|
|
2
|
+
import { t as BaseIndex } from "./algolia-ZyQLVdey.js";
|
|
3
|
+
import { r as SortedResult } from "./index-GHkAEvmO.js";
|
|
4
4
|
import { DependencyList } from "react";
|
|
5
5
|
import { AnyOrama, Orama, SearchParams } from "@orama/orama";
|
|
6
6
|
import { LiteClient, SearchResponse } from "algoliasearch/lite";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as RehypeCodeOptions } from "../../rehype-code-
|
|
2
|
-
import { t as RemarkImageOptions } from "../../remark-image-
|
|
3
|
-
import { r as StructureOptions } from "../../remark-structure-
|
|
4
|
-
import { t as RemarkHeadingOptions } from "../../remark-heading-
|
|
5
|
-
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-
|
|
6
|
-
import { t as RemarkNpmOptions } from "../../remark-npm-
|
|
7
|
-
import { t as ResolvePlugins } from "../../util-
|
|
1
|
+
import { t as RehypeCodeOptions } from "../../rehype-code-DJKXLHtp.js";
|
|
2
|
+
import { t as RemarkImageOptions } from "../../remark-image-CSTFtaeg.js";
|
|
3
|
+
import { r as StructureOptions } from "../../remark-structure-BxbC5Buc.js";
|
|
4
|
+
import { t as RemarkHeadingOptions } from "../../remark-heading-DJvYcq64.js";
|
|
5
|
+
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-BC5W5GqG.js";
|
|
6
|
+
import { t as RemarkNpmOptions } from "../../remark-npm-BQkE8_Hf.js";
|
|
7
|
+
import { t as ResolvePlugins } from "../../util-BvKVaD5t.js";
|
|
8
8
|
import { Pluggable } from "unified";
|
|
9
9
|
import { ProcessorOptions } from "@mdx-js/mdx";
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as RehypeCodeOptions } from "../../rehype-code-
|
|
2
|
-
import { t as RemarkImageOptions } from "../../remark-image-
|
|
3
|
-
import { r as StructureOptions } from "../../remark-structure-
|
|
4
|
-
import { t as RemarkHeadingOptions } from "../../remark-heading-
|
|
5
|
-
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-
|
|
6
|
-
import { t as RemarkNpmOptions } from "../../remark-npm-
|
|
7
|
-
import { t as ResolvePlugins } from "../../util-
|
|
1
|
+
import { t as RehypeCodeOptions } from "../../rehype-code-DJKXLHtp.js";
|
|
2
|
+
import { t as RemarkImageOptions } from "../../remark-image-CSTFtaeg.js";
|
|
3
|
+
import { r as StructureOptions } from "../../remark-structure-BxbC5Buc.js";
|
|
4
|
+
import { t as RemarkHeadingOptions } from "../../remark-heading-DJvYcq64.js";
|
|
5
|
+
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-BC5W5GqG.js";
|
|
6
|
+
import { t as RemarkNpmOptions } from "../../remark-npm-BQkE8_Hf.js";
|
|
7
|
+
import { t as ResolvePlugins } from "../../util-BvKVaD5t.js";
|
|
8
8
|
import { ProcessorOptions } from "@mdx-js/mdx";
|
|
9
9
|
|
|
10
10
|
//#region src/content/mdx/preset-runtime.d.ts
|
package/dist/content/toc.d.ts
CHANGED
package/dist/highlight/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as applyDefaultThemes } from "../utils-
|
|
2
|
+
import { t as applyDefaultThemes } from "../utils-tAukrbtB.js";
|
|
3
3
|
import { useShiki as useShiki$1 } from "./shiki/react.js";
|
|
4
4
|
import { defaultShikiFactory } from "./shiki/full.js";
|
|
5
5
|
//#region src/highlight/client.ts
|
package/dist/highlight/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as loadMissingTheme, i as loadMissingLanguage, t as applyDefaultThemes } from "../utils-
|
|
1
|
+
import { a as loadMissingTheme, i as loadMissingLanguage, t as applyDefaultThemes } from "../utils-tAukrbtB.js";
|
|
2
2
|
import { highlightHast as highlightHast$1 } from "./shiki/index.js";
|
|
3
3
|
import { defaultShikiFactory, wasmShikiFactory } from "./shiki/full.js";
|
|
4
4
|
import * as JsxRuntime from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as highlightHast, n as ShikiFactory, r as createShikiFactory, t as HighlightHastOptions } from "../../index-
|
|
1
|
+
import { i as highlightHast, n as ShikiFactory, r as createShikiFactory, t as HighlightHastOptions } from "../../index-DxyTmDjY.js";
|
|
2
2
|
export { HighlightHastOptions, ShikiFactory, createShikiFactory, highlightHast };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as loadMissingTheme, r as getRequiredThemes } from "../../utils-
|
|
1
|
+
import { a as loadMissingTheme, r as getRequiredThemes } from "../../utils-tAukrbtB.js";
|
|
2
2
|
//#region src/highlight/shiki/index.ts
|
|
3
3
|
function createShikiFactory(config) {
|
|
4
4
|
let instance;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Awaitable } from "../../types-
|
|
2
|
-
import { t as HighlightHastOptions } from "../../index-
|
|
1
|
+
import { t as Awaitable } from "../../types-RCtxugu0.js";
|
|
2
|
+
import { t as HighlightHastOptions } from "../../index-DxyTmDjY.js";
|
|
3
3
|
import { DependencyList, ReactNode } from "react";
|
|
4
4
|
import { Components } from "hast-util-to-jsx-runtime";
|
|
5
5
|
import { HighlighterCore } from "shiki";
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as defineI18n, t as I18nConfig } from "../index-
|
|
1
|
+
import { n as defineI18n, t as I18nConfig } from "../index-CRLkAaM0.js";
|
|
2
2
|
export { I18nConfig, defineI18n };
|
package/dist/i18n/middleware.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as getNegotiator } from "../negotiation-
|
|
1
|
+
import { t as getNegotiator } from "../negotiation-BdxTpPs1.js";
|
|
2
2
|
import { NextResponse } from "next/server.js";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.2/node_modules/@formatjs/intl-localematcher/abstract/CanonicalizeLocaleList.js
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Awaitable } from "./types-
|
|
1
|
+
import { t as Awaitable } from "./types-RCtxugu0.js";
|
|
2
2
|
import { Root } from "hast";
|
|
3
3
|
import { BundledLanguage, BundledTheme, CodeOptionsMeta, CodeOptionsThemes, CodeToHastOptionsCommon, HighlighterCore } from "shiki";
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as Separator, i as Root, n as Item, r as Node, t as Folder } from "./definitions-
|
|
2
|
-
import { t as I18nConfig } from "./index-
|
|
3
|
-
import { n as SerializedPageTree } from "./index-
|
|
1
|
+
import { a as Separator, i as Root, n as Item, r as Node, t as Folder } from "./definitions-57FFofI9.js";
|
|
2
|
+
import { t as I18nConfig } from "./index-CRLkAaM0.js";
|
|
3
|
+
import { n as SerializedPageTree } from "./index-B-4lKkNh2.js";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/source/source.d.ts
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/utils/is-equal.ts
|
|
2
|
+
function isEqualShallow(a, b) {
|
|
3
|
+
if (a === b) return true;
|
|
4
|
+
if (Array.isArray(a) && Array.isArray(b)) return b.length === a.length && a.every((v, i) => isEqualShallow(v, b[i]));
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { isEqualShallow as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as parseCodeBlockAttributes, n as CodeBlockTabsOptions, r as generateCodeBlockTabs, t as CodeBlockAttributes } from "../codeblock-utils-
|
|
1
|
+
import { i as parseCodeBlockAttributes, n as CodeBlockTabsOptions, r as generateCodeBlockTabs, t as CodeBlockAttributes } from "../codeblock-utils-D1ODmcHy.js";
|
|
2
2
|
export { CodeBlockAttributes, CodeBlockTabsOptions, generateCodeBlockTabs, parseCodeBlockAttributes };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { n as remarkGfm, t as RemarkGfmOptions } from "../remark-gfm-
|
|
2
|
-
import { a as CodeBlockIcon, i as transformerTab, o as transformerIcon } from "../rehype-code.core-
|
|
3
|
-
import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-
|
|
4
|
-
import { n as remarkImage, t as RemarkImageOptions } from "../remark-image-
|
|
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-
|
|
6
|
-
import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-
|
|
7
|
-
import { n as remarkAdmonition, t as RemarkAdmonitionOptions } from "../remark-admonition-
|
|
8
|
-
import { n as remarkDirectiveAdmonition, t as RemarkDirectiveAdmonitionOptions } from "../remark-directive-admonition-
|
|
9
|
-
import { n as RehypeTocOptions, r as rehypeToc, t as RehypeTOCItemType } from "../rehype-toc-
|
|
10
|
-
import { n as remarkCodeTab, t as RemarkCodeTabOptions } from "../remark-code-tab-
|
|
11
|
-
import { n as remarkSteps, t as RemarkStepsOptions } from "../remark-steps-
|
|
12
|
-
import { n as remarkNpm, t as RemarkNpmOptions } from "../remark-npm-
|
|
13
|
-
import { i as parseCodeBlockAttributes, n as CodeBlockTabsOptions, r as generateCodeBlockTabs, t as CodeBlockAttributes } from "../codeblock-utils-
|
|
14
|
-
import { a as remarkMdxFiles, r as RemarkMdxFilesOptions } from "../remark-mdx-files-
|
|
15
|
-
import { n as remarkMdxMermaid, t as RemarkMdxMermaidOptions } from "../remark-mdx-mermaid-
|
|
16
|
-
import { n as RemarkFeedbackBlockOptions, r as remarkFeedbackBlock, t as FeedbackBlockProps } from "../remark-feedback-block-
|
|
17
|
-
import { t as LLMsOptions } from "../remark-llms-
|
|
1
|
+
import { n as remarkGfm, t as RemarkGfmOptions } from "../remark-gfm-D9aa2ppr.js";
|
|
2
|
+
import { a as CodeBlockIcon, i as transformerTab, o as transformerIcon } from "../rehype-code.core-Cg1anr4H.js";
|
|
3
|
+
import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-DJKXLHtp.js";
|
|
4
|
+
import { n as remarkImage, t as RemarkImageOptions } from "../remark-image-CSTFtaeg.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-BxbC5Buc.js";
|
|
6
|
+
import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-DJvYcq64.js";
|
|
7
|
+
import { n as remarkAdmonition, t as RemarkAdmonitionOptions } from "../remark-admonition-CfMnMJY5.js";
|
|
8
|
+
import { n as remarkDirectiveAdmonition, t as RemarkDirectiveAdmonitionOptions } from "../remark-directive-admonition-CUXTwdDg.js";
|
|
9
|
+
import { n as RehypeTocOptions, r as rehypeToc, t as RehypeTOCItemType } from "../rehype-toc-wIDEJODt.js";
|
|
10
|
+
import { n as remarkCodeTab, t as RemarkCodeTabOptions } from "../remark-code-tab-BC5W5GqG.js";
|
|
11
|
+
import { n as remarkSteps, t as RemarkStepsOptions } from "../remark-steps-BmZAJIGA.js";
|
|
12
|
+
import { n as remarkNpm, t as RemarkNpmOptions } from "../remark-npm-BQkE8_Hf.js";
|
|
13
|
+
import { i as parseCodeBlockAttributes, n as CodeBlockTabsOptions, r as generateCodeBlockTabs, t as CodeBlockAttributes } from "../codeblock-utils-D1ODmcHy.js";
|
|
14
|
+
import { a as remarkMdxFiles, r as RemarkMdxFilesOptions } from "../remark-mdx-files-Cv1mLv9_.js";
|
|
15
|
+
import { n as remarkMdxMermaid, t as RemarkMdxMermaidOptions } from "../remark-mdx-mermaid-DKj2NHxp.js";
|
|
16
|
+
import { n as RemarkFeedbackBlockOptions, r as remarkFeedbackBlock, t as FeedbackBlockProps } from "../remark-feedback-block-Bd_7j2CA.js";
|
|
17
|
+
import { t as LLMsOptions } from "../remark-llms-Dwjerpo2.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-
|
|
4
|
+
import { i as transformerIcon, r as transformerTab } from "../rehype-code.core-Ckq2nRUU.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 { t as remarkNpm } from "../remark-npm-
|
|
13
|
+
import { t as remarkNpm } from "../remark-npm-BWvHn4O3.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-
|
|
1
|
+
import { a as CodeBlockIcon, i as transformerTab, n as createRehypeCode, o as transformerIcon, r as rehypeCodeDefaultOptions, t as RehypeCodeOptionsCommon } from "../rehype-code.core-Cg1anr4H.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-
|
|
1
|
+
import { i as transformerIcon, n as rehypeCodeDefaultOptions, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-Ckq2nRUU.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-
|
|
2
|
-
import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-
|
|
1
|
+
import { a as CodeBlockIcon, i as transformerTab, o as transformerIcon } from "../rehype-code.core-Cg1anr4H.js";
|
|
2
|
+
import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-DJKXLHtp.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-
|
|
2
|
+
import { i as transformerIcon, n as rehypeCodeDefaultOptions$1, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-Ckq2nRUU.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-
|
|
1
|
+
import { n as RehypeTocOptions, r as rehypeToc, t as RehypeTOCItemType } from "../rehype-toc-wIDEJODt.js";
|
|
2
2
|
export { RehypeTOCItemType, RehypeTocOptions, rehypeToc };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as toMdxExportRaw, r as handleTag } from "../utils-pSG8hSr9.js";
|
|
2
2
|
import { visit } from "unist-util-visit";
|
|
3
3
|
import { toEstree } from "hast-util-to-estree";
|
|
4
4
|
//#region src/mdx-plugins/rehype-toc.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as remarkAdmonition, t as RemarkAdmonitionOptions } from "../remark-admonition-
|
|
1
|
+
import { n as remarkAdmonition, t as RemarkAdmonitionOptions } from "../remark-admonition-CfMnMJY5.js";
|
|
2
2
|
export { RemarkAdmonitionOptions, remarkAdmonition };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as remarkCodeTab, t as RemarkCodeTabOptions } from "../remark-code-tab-
|
|
1
|
+
import { n as remarkCodeTab, t as RemarkCodeTabOptions } from "../remark-code-tab-BC5W5GqG.js";
|
|
2
2
|
export { RemarkCodeTabOptions, remarkCodeTab };
|
|
@@ -2,7 +2,7 @@ import { generateCodeBlockTabs, parseCodeBlockAttributes } from "./codeblock-uti
|
|
|
2
2
|
import { visit } from "unist-util-visit";
|
|
3
3
|
//#region src/mdx-plugins/remark-code-tab.ts
|
|
4
4
|
const Types = {
|
|
5
|
-
CodeBlockTabs
|
|
5
|
+
CodeBlockTabs(processor, nodes, withMdx, withParent) {
|
|
6
6
|
const tabs = Array.from(processTabValue(nodes).entries());
|
|
7
7
|
const node = generateCodeBlockTabs({
|
|
8
8
|
defaultValue: tabs[0][0],
|
|
@@ -18,10 +18,10 @@ const Types = {
|
|
|
18
18
|
children: codes
|
|
19
19
|
}))
|
|
20
20
|
});
|
|
21
|
-
if (!withParent) return
|
|
22
|
-
return node;
|
|
23
|
-
}
|
|
24
|
-
Tabs
|
|
21
|
+
if (!withParent) return node.children;
|
|
22
|
+
return [node];
|
|
23
|
+
},
|
|
24
|
+
Tabs(processor, nodes, withMdx, withParent) {
|
|
25
25
|
const tabs = Array.from(processTabValue(nodes).entries());
|
|
26
26
|
if (!withMdx) {
|
|
27
27
|
const children = tabs.map(([name, codes]) => {
|
|
@@ -36,8 +36,8 @@ const Types = {
|
|
|
36
36
|
children: codes
|
|
37
37
|
};
|
|
38
38
|
});
|
|
39
|
-
if (!withParent) return
|
|
40
|
-
return {
|
|
39
|
+
if (!withParent) return children;
|
|
40
|
+
return [{
|
|
41
41
|
type: "mdxJsxFlowElement",
|
|
42
42
|
name: "Tabs",
|
|
43
43
|
attributes: [{
|
|
@@ -64,7 +64,7 @@ const Types = {
|
|
|
64
64
|
}
|
|
65
65
|
}],
|
|
66
66
|
children
|
|
67
|
-
};
|
|
67
|
+
}];
|
|
68
68
|
}
|
|
69
69
|
const children = [{
|
|
70
70
|
type: "mdxJsxFlowElement",
|
|
@@ -90,8 +90,8 @@ const Types = {
|
|
|
90
90
|
}],
|
|
91
91
|
children: codes
|
|
92
92
|
}))];
|
|
93
|
-
if (!withParent) return
|
|
94
|
-
return {
|
|
93
|
+
if (!withParent) return children;
|
|
94
|
+
return [{
|
|
95
95
|
type: "mdxJsxFlowElement",
|
|
96
96
|
name: "Tabs",
|
|
97
97
|
attributes: [{
|
|
@@ -100,15 +100,14 @@ const Types = {
|
|
|
100
100
|
value: tabs[0][0]
|
|
101
101
|
}],
|
|
102
102
|
children
|
|
103
|
-
};
|
|
104
|
-
}
|
|
103
|
+
}];
|
|
104
|
+
}
|
|
105
105
|
};
|
|
106
106
|
function remarkCodeTab(options = {}) {
|
|
107
107
|
const { parseMdx = false, Tabs = "CodeBlockTabs" } = options;
|
|
108
108
|
return (tree) => {
|
|
109
|
-
const ignored = /* @__PURE__ */ new WeakSet();
|
|
110
109
|
visit(tree, (node) => {
|
|
111
|
-
if (!("children" in node) ||
|
|
110
|
+
if (!("children" in node) || node.data?._code_tab_visited) return "skip";
|
|
112
111
|
let localTabs = Tabs;
|
|
113
112
|
let localParseMdx = parseMdx;
|
|
114
113
|
let withParent = true;
|
|
@@ -121,9 +120,12 @@ function remarkCodeTab(options = {}) {
|
|
|
121
120
|
let end = 0;
|
|
122
121
|
const close = () => {
|
|
123
122
|
if (start === -1 || start === end) return;
|
|
124
|
-
const replacement = Types[localTabs]
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
const replacement = Types[localTabs](this, node.children.slice(start, end), localParseMdx, withParent);
|
|
124
|
+
for (const element of replacement) {
|
|
125
|
+
element.data ??= {};
|
|
126
|
+
element.data._code_tab_visited = true;
|
|
127
|
+
}
|
|
128
|
+
node.children.splice(start, end - start, ...replacement);
|
|
127
129
|
end = start;
|
|
128
130
|
start = -1;
|
|
129
131
|
};
|
|
@@ -169,13 +171,5 @@ function mdxToAst(processor, name) {
|
|
|
169
171
|
});
|
|
170
172
|
return node;
|
|
171
173
|
}
|
|
172
|
-
function createFragment(children) {
|
|
173
|
-
return {
|
|
174
|
-
type: "mdxJsxFlowElement",
|
|
175
|
-
name: null,
|
|
176
|
-
attributes: [],
|
|
177
|
-
children
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
174
|
//#endregion
|
|
181
175
|
export { remarkCodeTab };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as remarkDirectiveAdmonition, t as RemarkDirectiveAdmonitionOptions } from "../remark-directive-admonition-
|
|
1
|
+
import { n as remarkDirectiveAdmonition, t as RemarkDirectiveAdmonitionOptions } from "../remark-directive-admonition-CUXTwdDg.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-
|
|
1
|
+
import { n as RemarkFeedbackBlockOptions, r as remarkFeedbackBlock, t as FeedbackBlockProps } from "../remark-feedback-block-Bd_7j2CA.js";
|
|
2
2
|
export { FeedbackBlockProps, RemarkFeedbackBlockOptions, remarkFeedbackBlock };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as remarkGfm, t as RemarkGfmOptions } from "../remark-gfm-
|
|
1
|
+
import { n as remarkGfm, t as RemarkGfmOptions } from "../remark-gfm-D9aa2ppr.js";
|
|
2
2
|
export { RemarkGfmOptions, remarkGfm };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-
|
|
1
|
+
import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-DJvYcq64.js";
|
|
2
2
|
export { RemarkHeadingOptions, remarkHeading };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as remarkImage, t as RemarkImageOptions } from "../remark-image-
|
|
1
|
+
import { n as remarkImage, t as RemarkImageOptions } from "../remark-image-CSTFtaeg.js";
|
|
2
2
|
export { RemarkImageOptions, remarkImage };
|