fumadocs-core 16.7.8 → 16.7.9
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/content/mdx/preset-bundler.js +1 -1
- package/dist/content/mdx/preset-runtime.js +1 -1
- package/dist/source/client/index.js +5 -13
- package/dist/source/index.js +1 -1
- package/dist/source/plugins/lucide-icons.js +1 -1
- package/package.json +1 -1
- /package/dist/{icon-BpyLCZhB.js → icon-CfEtMzdP.js} +0 -0
- /package/dist/{util-CT8y1EgJ.js → util-BnfE-P1F.js} +0 -0
|
@@ -2,22 +2,14 @@ import { c as visit } from "../../utils-6GexS7iX.js";
|
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/source/client/index.tsx
|
|
5
|
-
function deserializeHTML(html) {
|
|
6
|
-
return /* @__PURE__ */ jsx("span", {
|
|
7
|
-
style: {
|
|
8
|
-
display: "inline-flex",
|
|
9
|
-
alignItems: "center",
|
|
10
|
-
gap: "4px",
|
|
11
|
-
width: "100%"
|
|
12
|
-
},
|
|
13
|
-
dangerouslySetInnerHTML: { __html: html }
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
5
|
function deserializePageTree(serialized) {
|
|
17
6
|
const root = serialized.data;
|
|
18
7
|
visit(root, (item) => {
|
|
19
|
-
if ("icon" in item && typeof item.icon === "string") item.icon =
|
|
20
|
-
if (typeof item.name === "string") item.name =
|
|
8
|
+
if ("icon" in item && typeof item.icon === "string") item.icon = /* @__PURE__ */ jsx("span", { dangerouslySetInnerHTML: { __html: item.icon } });
|
|
9
|
+
if (typeof item.name === "string") item.name = /* @__PURE__ */ jsx("span", {
|
|
10
|
+
className: "fd-page-tree-item-name",
|
|
11
|
+
dangerouslySetInnerHTML: { __html: item.name }
|
|
12
|
+
});
|
|
21
13
|
});
|
|
22
14
|
return root;
|
|
23
15
|
}
|
package/dist/source/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { t as normalizeUrl } from "../normalize-url-J3kqKlu4.js";
|
|
|
2
2
|
import { c as visit } from "../utils-6GexS7iX.js";
|
|
3
3
|
import { a as path_exports, i as joinPath, n as dirname, o as slash, r as extname, s as splitPath, t as basename } from "../path-CL7hf0GY.js";
|
|
4
4
|
import { getSlugs, slugsPlugin } from "./plugins/slugs.js";
|
|
5
|
-
import { t as iconPlugin } from "../icon-
|
|
5
|
+
import { t as iconPlugin } from "../icon-CfEtMzdP.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
//#region src/source/source.ts
|
|
8
8
|
function multiple(sources) {
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|