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.
@@ -1,4 +1,4 @@
1
- import { t as resolvePlugins } from "../../util-CT8y1EgJ.js";
1
+ import { t as resolvePlugins } from "../../util-BnfE-P1F.js";
2
2
  //#region src/content/mdx/preset-bundler.ts
3
3
  /**
4
4
  * apply MDX processor presets
@@ -1,4 +1,4 @@
1
- import { t as resolvePlugins } from "../../util-CT8y1EgJ.js";
1
+ import { t as resolvePlugins } from "../../util-BnfE-P1F.js";
2
2
  //#region src/content/mdx/preset-runtime.ts
3
3
  /**
4
4
  * apply MDX processor presets
@@ -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 = deserializeHTML(item.icon);
20
- if (typeof item.name === "string") item.name = deserializeHTML(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
  }
@@ -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-BpyLCZhB.js";
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) {
@@ -1,4 +1,4 @@
1
- import { t as iconPlugin } from "../../icon-BpyLCZhB.js";
1
+ import { t as iconPlugin } from "../../icon-CfEtMzdP.js";
2
2
  import { createElement } from "react";
3
3
  import { icons } from "lucide-react";
4
4
  //#region src/source/plugins/lucide-icons.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "16.7.8",
3
+ "version": "16.7.9",
4
4
  "description": "The React.js library for building a documentation website",
5
5
  "keywords": [
6
6
  "Docs",
File without changes
File without changes