fumadocs-core 16.7.7 → 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 * as react from "react";
1
+ import * as _$react from "react";
2
2
  import { FC } from "react";
3
3
  import { Options } from "remark-rehype";
4
4
  import { Compatible } from "vfile";
@@ -25,6 +25,6 @@ declare function createMarkdownRenderer({
25
25
  remarkPlugins,
26
26
  remarkRehypeOptions
27
27
  }?: MarkdownRendererOptions): MarkdownRenderer;
28
- declare function Markdown(props: MarkdownProps & MarkdownRendererOptions): react.ReactNode | Promise<react.ReactNode>;
28
+ declare function Markdown(props: MarkdownProps & MarkdownRendererOptions): _$react.ReactNode | Promise<_$react.ReactNode>;
29
29
  //#endregion
30
30
  export { Markdown, MarkdownProps, MarkdownRenderer, MarkdownRendererOptions, createMarkdownRenderer };
@@ -1,7 +1,7 @@
1
- import { t as RehypeCodeOptions } from "../../rehype-code-DFx-xacR.js";
1
+ import { t as RehypeCodeOptions } from "../../rehype-code-CMrTh9Lu.js";
2
2
  import { t as RemarkImageOptions } from "../../remark-image-DQlJevNY.js";
3
3
  import { r as StructureOptions } from "../../remark-structure-c-gm2PCy.js";
4
- import { t as RemarkHeadingOptions } from "../../remark-heading-BVc1nYW5.js";
4
+ import { t as RemarkHeadingOptions } from "../../remark-heading-95OQNNoH.js";
5
5
  import { t as RemarkCodeTabOptions } from "../../remark-code-tab-Dk79zZwn.js";
6
6
  import { t as RemarkNpmOptions } from "../../remark-npm-7SDuqMc6.js";
7
7
  import { t as ResolvePlugins } from "../../util-D2LMvKsn.js";
@@ -1,7 +1,7 @@
1
- import { t as RehypeCodeOptions } from "../../rehype-code-DFx-xacR.js";
1
+ import { t as RehypeCodeOptions } from "../../rehype-code-CMrTh9Lu.js";
2
2
  import { t as RemarkImageOptions } from "../../remark-image-DQlJevNY.js";
3
3
  import { r as StructureOptions } from "../../remark-structure-c-gm2PCy.js";
4
- import { t as RemarkHeadingOptions } from "../../remark-heading-BVc1nYW5.js";
4
+ import { t as RemarkHeadingOptions } from "../../remark-heading-95OQNNoH.js";
5
5
  import { t as RemarkCodeTabOptions } from "../../remark-code-tab-Dk79zZwn.js";
6
6
  import { t as RemarkNpmOptions } from "../../remark-npm-7SDuqMc6.js";
7
7
  import { t as ResolvePlugins } from "../../util-D2LMvKsn.js";
@@ -1,4 +1,4 @@
1
- import { c as TOCItemType } from "../toc-Bw56X0rx.js";
1
+ import { c as TOCItemType } from "../toc-CgnJPi4Q.js";
2
2
  import { Compatible } from "vfile";
3
3
  import { PluggableList } from "unified";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { LinkProps } from "./link.js";
2
- import * as react from "react";
2
+ import * as _$react from "react";
3
3
 
4
4
  //#region src/dynamic-link.d.ts
5
5
  type DynamicLinkProps = LinkProps;
@@ -8,7 +8,7 @@ type DynamicLinkProps = LinkProps;
8
8
  *
9
9
  * It supports dynamic hrefs, which means you can use `/[lang]/my-page` with `dynamicHrefs` enabled
10
10
  */
11
- declare const DynamicLink: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
11
+ declare const DynamicLink: _$react.ForwardRefExoticComponent<LinkProps & _$react.RefAttributes<HTMLAnchorElement>>;
12
12
  declare function updateHref(href: string, params: Record<string, string | string[]>): string;
13
13
  //#endregion
14
14
  export { DynamicLink, DynamicLink as default, DynamicLinkProps, updateHref };
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps, FC, ReactNode } from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
- import { StaticImport } from "next/dist/shared/lib/get-img-props";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+ import { StaticImport } from "next/dist/shared/lib/get-img-props.js";
4
4
 
5
5
  //#region src/framework/index.d.ts
6
6
  interface ImageProps extends Omit<ComponentProps<'img'>, 'src'> {
@@ -39,11 +39,11 @@ declare function FrameworkProvider({
39
39
  children
40
40
  }: Framework & {
41
41
  children: ReactNode;
42
- }): react_jsx_runtime0.JSX.Element;
42
+ }): _$react_jsx_runtime0.JSX.Element;
43
43
  declare function usePathname(): string;
44
44
  declare function useRouter(): Router;
45
45
  declare function useParams(): Record<string, string | string[]>;
46
- declare function Image(props: ImageProps): react_jsx_runtime0.JSX.Element;
47
- declare function Link(props: LinkProps): react_jsx_runtime0.JSX.Element;
46
+ declare function Image(props: ImageProps): _$react_jsx_runtime0.JSX.Element;
47
+ declare function Link(props: LinkProps): _$react_jsx_runtime0.JSX.Element;
48
48
  //#endregion
49
49
  export { Framework, FrameworkProvider, Image, ImageProps, Link, Router, useParams, usePathname, useRouter };
@@ -1,6 +1,6 @@
1
1
  import { Framework } from "./index.js";
2
2
  import { ReactNode } from "react";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/framework/next.d.ts
6
6
  declare function NextProvider({
@@ -11,6 +11,6 @@ declare function NextProvider({
11
11
  children: ReactNode;
12
12
  Link?: Framework['Link'];
13
13
  Image?: Framework['Image'];
14
- }): react_jsx_runtime0.JSX.Element;
14
+ }): _$react_jsx_runtime0.JSX.Element;
15
15
  //#endregion
16
16
  export { NextProvider };
@@ -1,6 +1,6 @@
1
1
  import { Framework } from "./index.js";
2
2
  import { ReactNode } from "react";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/framework/react-router.d.ts
6
6
  declare function ReactRouterProvider({
@@ -11,6 +11,6 @@ declare function ReactRouterProvider({
11
11
  children: ReactNode;
12
12
  Link?: Framework['Link'];
13
13
  Image?: Framework['Image'];
14
- }): react_jsx_runtime0.JSX.Element;
14
+ }): _$react_jsx_runtime0.JSX.Element;
15
15
  //#endregion
16
16
  export { ReactRouterProvider };
@@ -1,6 +1,6 @@
1
1
  import { Framework } from "./index.js";
2
2
  import { ReactNode } from "react";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/framework/tanstack.d.ts
6
6
  /**
@@ -14,6 +14,6 @@ declare function TanstackProvider({
14
14
  children: ReactNode;
15
15
  Link?: Framework['Link'];
16
16
  Image?: Framework['Image'];
17
- }): react_jsx_runtime0.JSX.Element;
17
+ }): _$react_jsx_runtime0.JSX.Element;
18
18
  //#endregion
19
19
  export { TanstackProvider };
@@ -1,6 +1,6 @@
1
1
  import { Framework } from "./index.js";
2
2
  import { ReactNode } from "react";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/framework/waku.d.ts
6
6
  declare function WakuProvider({
@@ -11,6 +11,6 @@ declare function WakuProvider({
11
11
  children: ReactNode;
12
12
  Link?: Framework['Link'];
13
13
  Image?: Framework['Image'];
14
- }): react_jsx_runtime0.JSX.Element;
14
+ }): _$react_jsx_runtime0.JSX.Element;
15
15
  //#endregion
16
16
  export { WakuProvider };
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  import { Components } from "hast-util-to-jsx-runtime";
3
3
  import { Root } from "hast";
4
- import * as shiki from "shiki";
4
+ import * as _$shiki from "shiki";
5
5
  import { BundledLanguage, BundledTheme, CodeOptionsMeta, CodeOptionsThemes, CodeToHastOptionsCommon, LanguageRegistration, ThemeRegistrationAny } from "shiki";
6
6
 
7
7
  //#region src/highlight/index.d.ts
@@ -27,7 +27,7 @@ declare function highlightHast(code: string, options: HighlightHastOptions): Pro
27
27
  declare function getHighlighter(engineType: 'js' | 'oniguruma', options?: {
28
28
  langs?: (BundledLanguage | LanguageRegistration)[];
29
29
  themes?: (BundledTheme | ThemeRegistrationAny)[];
30
- }): Promise<shiki.HighlighterCore>;
30
+ }): Promise<_$shiki.HighlighterCore>;
31
31
  declare function highlight(code: string, options: HighlightOptions): Promise<ReactNode>;
32
32
  //#endregion
33
33
  export { HighlightHastOptions, HighlightOptions, getHighlighter, highlight, highlightHast };
@@ -1,6 +1,6 @@
1
1
  import { t as I18nConfig } from "../index-DAzunKMp.js";
2
- import { NextProxy } from "next/server";
3
- import { NextURL } from "next/dist/server/web/next-url";
2
+ import { NextProxy } from "next/server.js";
3
+ import { NextURL } from "next/dist/server/web/next-url.js";
4
4
 
5
5
  //#region src/i18n/middleware.d.ts
6
6
  interface MiddlewareOptions extends I18nConfig {
package/dist/link.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as react from "react";
1
+ import * as _$react from "react";
2
2
  import { AnchorHTMLAttributes } from "react";
3
3
 
4
4
  //#region src/link.d.ts
@@ -14,6 +14,6 @@ interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
14
14
  */
15
15
  prefetch?: boolean;
16
16
  }
17
- declare const Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
17
+ declare const Link: _$react.ForwardRefExoticComponent<LinkProps & _$react.RefAttributes<HTMLAnchorElement>>;
18
18
  //#endregion
19
19
  export { LinkProps, Link as default };
@@ -1,9 +1,9 @@
1
1
  import { n as remarkGfm, t as RemarkGfmOptions } from "../remark-gfm-DIHBRjLx.js";
2
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-DFx-xacR.js";
3
+ import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-CMrTh9Lu.js";
4
4
  import { n as remarkImage, t as RemarkImageOptions } from "../remark-image-DQlJevNY.js";
5
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-BVc1nYW5.js";
6
+ import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-95OQNNoH.js";
7
7
  import { n as remarkAdmonition, t as RemarkAdmonitionOptions } from "../remark-admonition-0gZM40ZU.js";
8
8
  import { n as remarkDirectiveAdmonition, t as RemarkDirectiveAdmonitionOptions } from "../remark-directive-admonition-CxFIkQ_i.js";
9
9
  import { n as RehypeTocOptions, r as rehypeToc, t as RehypeTOCItemType } from "../rehype-toc-iWxg6ELI.js";
@@ -1,3 +1,3 @@
1
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-DFx-xacR.js";
2
+ import { n as rehypeCode, r as rehypeCodeDefaultOptions, t as RehypeCodeOptions } from "../rehype-code-CMrTh9Lu.js";
3
3
  export { CodeBlockIcon, RehypeCodeOptions, rehypeCode, rehypeCodeDefaultOptions, transformerIcon, transformerTab };
@@ -1,2 +1,2 @@
1
- import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-BVc1nYW5.js";
1
+ import { n as remarkHeading, t as RemarkHeadingOptions } from "../remark-heading-95OQNNoH.js";
2
2
  export { RemarkHeadingOptions, remarkHeading };
@@ -1,6 +1,6 @@
1
1
  import { t as RehypeCodeOptionsCommon } from "./rehype-code.core-AAMsXdqJ.js";
2
- import * as unified from "unified";
3
- import * as hast from "hast";
2
+ import * as _$unified from "unified";
3
+ import * as _$hast from "hast";
4
4
 
5
5
  //#region src/mdx-plugins/rehype-code.d.ts
6
6
  type RehypeCodeOptions = RehypeCodeOptionsCommon & {
@@ -12,6 +12,6 @@ type RehypeCodeOptions = RehypeCodeOptionsCommon & {
12
12
  engine?: 'js' | 'oniguruma';
13
13
  };
14
14
  declare const rehypeCodeDefaultOptions: RehypeCodeOptions;
15
- declare const rehypeCode: (this: unified.Processor, _options?: Partial<RehypeCodeOptions> | undefined) => unified.Transformer<hast.Root, hast.Root>;
15
+ declare const rehypeCode: (this: _$unified.Processor, _options?: Partial<RehypeCodeOptions> | undefined) => _$unified.Transformer<_$hast.Root, _$hast.Root>;
16
16
  //#endregion
17
17
  export { rehypeCode as n, rehypeCodeDefaultOptions as r, RehypeCodeOptions as t };
@@ -1,4 +1,4 @@
1
- import { c as TOCItemType } from "./toc-Bw56X0rx.js";
1
+ import { c as TOCItemType } from "./toc-CgnJPi4Q.js";
2
2
  import { Transformer } from "unified";
3
3
  import { Heading, Root } from "mdast";
4
4
 
@@ -2,14 +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", { dangerouslySetInnerHTML: { __html: html } });
7
- }
8
5
  function deserializePageTree(serialized) {
9
6
  const root = serialized.data;
10
7
  visit(root, (item) => {
11
- if ("icon" in item && typeof item.icon === "string") item.icon = deserializeHTML(item.icon);
12
- 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
+ });
13
13
  });
14
14
  return root;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps, ReactNode, RefObject } from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/toc.d.ts
5
5
  interface TOCItemType {
@@ -40,12 +40,12 @@ interface ScrollProviderProps {
40
40
  declare function ScrollProvider({
41
41
  containerRef,
42
42
  children
43
- }: ScrollProviderProps): react_jsx_runtime0.JSX.Element;
43
+ }: ScrollProviderProps): _$react_jsx_runtime0.JSX.Element;
44
44
  declare function AnchorProvider({
45
45
  toc,
46
46
  single,
47
47
  children
48
- }: AnchorProviderProps): react_jsx_runtime0.JSX.Element;
48
+ }: AnchorProviderProps): _$react_jsx_runtime0.JSX.Element;
49
49
  interface TOCItemProps extends ComponentProps<'a'> {
50
50
  onActiveChange?: (v: boolean) => void;
51
51
  }
@@ -53,7 +53,7 @@ declare function TOCItem({
53
53
  ref,
54
54
  onActiveChange,
55
55
  ...props
56
- }: TOCItemProps): react_jsx_runtime0.JSX.Element;
56
+ }: TOCItemProps): _$react_jsx_runtime0.JSX.Element;
57
57
  /**
58
58
  * The estimated active heading ID
59
59
  */
package/dist/toc.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as TOCItem, c as TOCItemType, d as useActiveAnchors, f as useItems, i as ScrollProviderProps, l as TableOfContents, n as AnchorProviderProps, o as TOCItemInfo, r as ScrollProvider, s as TOCItemProps, t as AnchorProvider, u as useActiveAnchor } from "./toc-Bw56X0rx.js";
1
+ import { a as TOCItem, c as TOCItemType, d as useActiveAnchors, f as useItems, i as ScrollProviderProps, l as TableOfContents, n as AnchorProviderProps, o as TOCItemInfo, r as ScrollProvider, s as TOCItemProps, t as AnchorProvider, u as useActiveAnchor } from "./toc-CgnJPi4Q.js";
2
2
  export { AnchorProvider, AnchorProviderProps, ScrollProvider, ScrollProviderProps, TOCItem, TOCItemInfo, TOCItemProps, TOCItemType, TableOfContents, useActiveAnchor, useActiveAnchors, useItems };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "16.7.7",
3
+ "version": "16.7.9",
4
4
  "description": "The React.js library for building a documentation website",
5
5
  "keywords": [
6
6
  "Docs",
@@ -129,7 +129,7 @@
129
129
  "mdast-util-to-markdown": "^2.1.2",
130
130
  "negotiator": "^1.0.0",
131
131
  "npm-to-yarn": "^3.0.1",
132
- "path-to-regexp": "^8.3.0",
132
+ "path-to-regexp": "^8.4.0",
133
133
  "remark": "^15.0.1",
134
134
  "remark-gfm": "^4.0.1",
135
135
  "remark-rehype": "^11.1.2",
@@ -145,7 +145,7 @@
145
145
  "@mixedbread/sdk": "^0.61.0",
146
146
  "@orama/core": "^1.2.19",
147
147
  "@oramacloud/client": "^2.1.4",
148
- "@tanstack/react-router": "1.168.3",
148
+ "@tanstack/react-router": "1.168.7",
149
149
  "@types/estree-jsx": "^1.0.5",
150
150
  "@types/hast": "^3.0.4",
151
151
  "@types/mdast": "^4.0.4",
@@ -155,17 +155,16 @@
155
155
  "@types/react-dom": "^19.2.3",
156
156
  "algoliasearch": "5.50.0",
157
157
  "flexsearch": "^0.8.212",
158
- "lucide-react": "^1.6.0",
158
+ "lucide-react": "^1.7.0",
159
159
  "next": "16.2.1",
160
160
  "react-router": "^7.13.2",
161
161
  "remark-directive": "^4.0.0",
162
162
  "remark-mdx": "^3.1.1",
163
163
  "remove-markdown": "^0.6.3",
164
- "tsdown": "0.21.5",
164
+ "tsdown": "0.21.6",
165
165
  "typescript": "^6.0.2",
166
166
  "waku": "1.0.0-alpha.6",
167
167
  "zod": "^4.3.6",
168
- "eslint-config-custom": "0.0.0",
169
168
  "tsconfig": "0.0.0"
170
169
  },
171
170
  "peerDependencies": {
@@ -248,7 +247,7 @@
248
247
  "build": "tsdown",
249
248
  "clean": "rimraf dist",
250
249
  "dev": "tsdown --watch --clean false",
251
- "lint": "eslint .",
250
+ "lint": "oxlint .",
252
251
  "types:check": "tsc --noEmit"
253
252
  }
254
253
  }