fumadocs-ui 15.0.17 → 15.1.0
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/components/callout.d.ts +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/layouts/home/navbar.d.ts +1 -1
- package/dist/mdx.d.ts +3 -2
- package/dist/mdx.d.ts.map +1 -1
- package/dist/mdx.js +5 -2
- package/dist/mdx.server.d.ts +13 -0
- package/dist/mdx.server.d.ts.map +1 -0
- package/dist/mdx.server.js +21 -0
- package/dist/page.client.d.ts +5 -8
- package/dist/page.client.d.ts.map +1 -1
- package/dist/page.client.js +10 -5
- package/dist/style.css +3 -6
- package/package.json +6 -5
- package/dist/mdx.client.d.ts +0 -10
- package/dist/mdx.client.d.ts.map +0 -1
- package/dist/mdx.client.js +0 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
-
export declare const Callout: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title" | "
|
|
2
|
+
export declare const Callout: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title" | "icon" | "type"> & {
|
|
3
3
|
title?: ReactNode;
|
|
4
4
|
/**
|
|
5
5
|
* @defaultValue info
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const buttonVariants: (props?: ({
|
|
2
2
|
color?: "primary" | "outline" | "ghost" | "secondary" | null | undefined;
|
|
3
|
-
size?: "
|
|
3
|
+
size?: "icon" | "sm" | "icon-sm" | null | undefined;
|
|
4
4
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
5
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -9,7 +9,7 @@ export declare function NavbarMenuContent(props: NavigationMenuContentProps): im
|
|
|
9
9
|
export declare function NavbarMenuTrigger(props: NavigationMenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export declare function NavbarMenuLink(props: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare const linkVariants: (props?: ({
|
|
12
|
-
variant?: "
|
|
12
|
+
variant?: "icon" | "button" | "main" | null | undefined;
|
|
13
13
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
14
14
|
export declare function NavbarLink({ item, variant, ...props }: ComponentProps<typeof BaseLinkItem> & VariantProps<typeof linkVariants>): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
package/dist/mdx.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Card, Cards } from './components/card.js';
|
|
|
3
3
|
declare function Image(props: ImgHTMLAttributes<HTMLImageElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function Table(props: TableHTMLAttributes<HTMLTableElement>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare const defaultMdxComponents: {
|
|
6
|
-
pre:
|
|
6
|
+
pre: (props: HTMLAttributes<HTMLPreElement>) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
Card: typeof Card;
|
|
8
8
|
Cards: typeof Cards;
|
|
9
9
|
a: FC<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
@@ -15,11 +15,12 @@ declare const defaultMdxComponents: {
|
|
|
15
15
|
h5: (props: HTMLAttributes<HTMLHeadingElement>) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
h6: (props: HTMLAttributes<HTMLHeadingElement>) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
table: typeof Table;
|
|
18
|
-
Callout: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title" | "
|
|
18
|
+
Callout: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title" | "icon" | "type"> & {
|
|
19
19
|
title?: import("react").ReactNode;
|
|
20
20
|
type?: "info" | "warn" | "error";
|
|
21
21
|
icon?: import("react").ReactNode;
|
|
22
22
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
23
|
};
|
|
24
|
+
export declare const createRelativeLink: typeof import('./mdx.server.js').createRelativeLink;
|
|
24
25
|
export { defaultMdxComponents as default };
|
|
25
26
|
//# sourceMappingURL=mdx.d.ts.map
|
package/dist/mdx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../src/mdx.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,EACpB,EAAE,EACF,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAMhD,iBAAS,KAAK,CAAC,KAAK,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,2CAQxD;AAED,iBAAS,KAAK,CAAC,KAAK,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,2CAM1D;AAED,QAAA,MAAM,oBAAoB;
|
|
1
|
+
{"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../src/mdx.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,EACpB,EAAE,EACF,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAMhD,iBAAS,KAAK,CAAC,KAAK,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,2CAQxD;AAED,iBAAS,KAAK,CAAC,KAAK,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,2CAM1D;AAED,QAAA,MAAM,oBAAoB;iBACX,cAAc,CAAC,cAAc,CAAC;;;OAOhC,EAAE,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;;gBAE1C,cAAc,CAAC,kBAAkB,CAAC;gBAGlC,cAAc,CAAC,kBAAkB,CAAC;gBAGlC,cAAc,CAAC,kBAAkB,CAAC;gBAGlC,cAAc,CAAC,kBAAkB,CAAC;gBAGlC,cAAc,CAAC,kBAAkB,CAAC;gBAGlC,cAAc,CAAC,kBAAkB,CAAC;;;;;;;CAK/C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,cAAc,cAAc,EAAE,kBAK5D,CAAC;AAEJ,OAAO,EAAE,oBAAoB,IAAI,OAAO,EAAE,CAAC"}
|
package/dist/mdx.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Card, Cards } from './components/card.js';
|
|
|
5
5
|
import { Callout } from './components/callout.js';
|
|
6
6
|
import { Heading } from './components/heading.js';
|
|
7
7
|
import { cn } from './utils/cn.js';
|
|
8
|
-
import { Pre } from './
|
|
8
|
+
import { CodeBlock, Pre } from './components/codeblock.js';
|
|
9
9
|
function Image(props) {
|
|
10
10
|
return (_jsx(NextImage, { sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px", ...props, className: cn('rounded-lg', props.className) }));
|
|
11
11
|
}
|
|
@@ -13,7 +13,7 @@ function Table(props) {
|
|
|
13
13
|
return (_jsx("div", { className: "relative overflow-auto", children: _jsx("table", { ...props }) }));
|
|
14
14
|
}
|
|
15
15
|
const defaultMdxComponents = {
|
|
16
|
-
pre: Pre,
|
|
16
|
+
pre: (props) => (_jsx(CodeBlock, { ...props, children: _jsx(Pre, { children: props.children }) })),
|
|
17
17
|
Card,
|
|
18
18
|
Cards,
|
|
19
19
|
a: Link,
|
|
@@ -27,4 +27,7 @@ const defaultMdxComponents = {
|
|
|
27
27
|
table: Table,
|
|
28
28
|
Callout,
|
|
29
29
|
};
|
|
30
|
+
export const createRelativeLink = () => {
|
|
31
|
+
throw new Error('`createRelativeLink` is only supported in Node.js environment');
|
|
32
|
+
};
|
|
30
33
|
export { defaultMdxComponents as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { LoaderConfig, LoaderOutput, Page } from 'fumadocs-core/source';
|
|
2
|
+
import type { ComponentProps, FC } from 'react';
|
|
3
|
+
import defaultMdxComponents from './mdx.js';
|
|
4
|
+
/**
|
|
5
|
+
* Extend the default Link component to resolve relative file paths in `href`.
|
|
6
|
+
*
|
|
7
|
+
* @param page the current page
|
|
8
|
+
* @param source the source object
|
|
9
|
+
* @param OverrideLink The component to override from
|
|
10
|
+
*/
|
|
11
|
+
export declare function createRelativeLink(source: LoaderOutput<LoaderConfig>, page: Page, OverrideLink?: FC<ComponentProps<'a'>>): FC<ComponentProps<'a'>>;
|
|
12
|
+
export { defaultMdxComponents as default };
|
|
13
|
+
//# sourceMappingURL=mdx.server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mdx.server.d.ts","sourceRoot":"","sources":["../src/mdx.server.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,oBAAoB,MAAM,OAAO,CAAC;AAEzC;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,YAAY,CAAC,YAAY,CAAC,EAClC,IAAI,EAAE,IAAI,EACV,YAAY,GAAE,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,CAA0B,GAC7D,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAUzB;AAED,OAAO,EAAE,oBAAoB,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import defaultMdxComponents from './mdx.js';
|
|
3
|
+
/**
|
|
4
|
+
* Extend the default Link component to resolve relative file paths in `href`.
|
|
5
|
+
*
|
|
6
|
+
* @param page the current page
|
|
7
|
+
* @param source the source object
|
|
8
|
+
* @param OverrideLink The component to override from
|
|
9
|
+
*/
|
|
10
|
+
export function createRelativeLink(source, page, OverrideLink = defaultMdxComponents.a) {
|
|
11
|
+
return async function RelativeLink({ href, ...props }) {
|
|
12
|
+
// resolve relative href
|
|
13
|
+
if (href && href.startsWith('.')) {
|
|
14
|
+
const target = source.getPageByHref(href, { dir: page.file.dirname });
|
|
15
|
+
if (target)
|
|
16
|
+
href = target.page.url;
|
|
17
|
+
}
|
|
18
|
+
return _jsx(OverrideLink, { href: href, ...props });
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export { defaultMdxComponents as default };
|
package/dist/page.client.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
+
import type { PageTree } from 'fumadocs-core/server';
|
|
2
3
|
import { type BreadcrumbOptions } from 'fumadocs-core/breadcrumb';
|
|
3
4
|
export declare function TocPopoverHeader(props: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
export declare function PageBody(props: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,22 +7,18 @@ export declare function PageArticle(props: HTMLAttributes<HTMLElement>): import(
|
|
|
6
7
|
export declare function LastUpdate(props: {
|
|
7
8
|
date: Date;
|
|
8
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
type Item = Pick<PageTree.Item, 'name' | 'description' | 'url'>;
|
|
9
11
|
export interface FooterProps {
|
|
10
12
|
/**
|
|
11
13
|
* Items including information for the next and previous page
|
|
12
14
|
*/
|
|
13
15
|
items?: {
|
|
14
|
-
previous?:
|
|
15
|
-
|
|
16
|
-
url: string;
|
|
17
|
-
};
|
|
18
|
-
next?: {
|
|
19
|
-
name: string;
|
|
20
|
-
url: string;
|
|
21
|
-
};
|
|
16
|
+
previous?: Item;
|
|
17
|
+
next?: Item;
|
|
22
18
|
};
|
|
23
19
|
}
|
|
24
20
|
export declare function Footer({ items }: FooterProps): import("react/jsx-runtime").JSX.Element;
|
|
25
21
|
export type BreadcrumbProps = BreadcrumbOptions;
|
|
26
22
|
export declare function Breadcrumb(options: BreadcrumbProps): import("react/jsx-runtime").JSX.Element | null;
|
|
23
|
+
export {};
|
|
27
24
|
//# sourceMappingURL=page.client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.client.d.ts","sourceRoot":"","sources":["../src/page.client.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,cAAc,EAKpB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"page.client.d.ts","sourceRoot":"","sources":["../src/page.client.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,cAAc,EAKpB,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGrD,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAC;AAMlC,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,cAAc,CAAC,cAAc,CAAC,2CA8CrE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,cAAc,CAAC,2CAY7D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC,WAAW,CAAC,2CAe7D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,2CAc/C;AAED,KAAK,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,KAAK,CAAC,CAAC;AAChE,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE;QACN,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,IAAI,CAAC,EAAE,IAAI,CAAC;KACb,CAAC;CACH;AAyBD,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,WAAW,2CA+B5C;AAuCD,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAEhD,wBAAgB,UAAU,CAAC,OAAO,EAAE,eAAe,kDAsClD"}
|
package/dist/page.client.js
CHANGED
|
@@ -3,7 +3,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { Fragment, useEffect, useMemo, useRef, useState, } from 'react';
|
|
4
4
|
import { ChevronLeft, ChevronRight } from 'lucide-react';
|
|
5
5
|
import Link from 'next/link';
|
|
6
|
-
import { cva } from 'class-variance-authority';
|
|
7
6
|
import { cn } from './utils/cn.js';
|
|
8
7
|
import { useI18n } from './contexts/i18n.js';
|
|
9
8
|
import { useTreeContext, useTreePath } from './contexts/tree.js';
|
|
@@ -54,8 +53,6 @@ export function LastUpdate(props) {
|
|
|
54
53
|
}, [props.date]);
|
|
55
54
|
return (_jsxs("p", { className: "text-sm text-fd-muted-foreground", children: [text.lastUpdate, " ", date] }));
|
|
56
55
|
}
|
|
57
|
-
const itemVariants = cva('flex w-full flex-col gap-2 rounded-lg border p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground');
|
|
58
|
-
const itemLabel = cva('inline-flex items-center gap-0.5 text-fd-muted-foreground');
|
|
59
56
|
function scanNavigationList(tree) {
|
|
60
57
|
const list = [];
|
|
61
58
|
tree.forEach((node) => {
|
|
@@ -75,7 +72,6 @@ function scanNavigationList(tree) {
|
|
|
75
72
|
const listCache = new WeakMap();
|
|
76
73
|
export function Footer({ items }) {
|
|
77
74
|
const { root } = useTreeContext();
|
|
78
|
-
const { text } = useI18n();
|
|
79
75
|
const pathname = usePathname();
|
|
80
76
|
const { previous, next } = useMemo(() => {
|
|
81
77
|
if (items)
|
|
@@ -91,7 +87,16 @@ export function Footer({ items }) {
|
|
|
91
87
|
next: list[idx + 1],
|
|
92
88
|
};
|
|
93
89
|
}, [items, pathname, root]);
|
|
94
|
-
return (_jsxs("div", { className:
|
|
90
|
+
return (_jsxs("div", { className: cn('@container grid gap-4 pb-6', previous && next ? 'grid-cols-2' : 'grid-cols-1'), children: [previous ? _jsx(FooterItem, { item: previous, index: 0 }) : null, next ? _jsx(FooterItem, { item: next, index: 1 }) : null] }));
|
|
91
|
+
}
|
|
92
|
+
function FooterItem({ item, index }) {
|
|
93
|
+
const { text } = useI18n();
|
|
94
|
+
const Icon = index === 0 ? ChevronLeft : ChevronRight;
|
|
95
|
+
const title = item.description ? item.name : null;
|
|
96
|
+
const description = item.description ?? item.name;
|
|
97
|
+
return (_jsxs(Link, { href: item.url, className: cn('flex flex-col gap-2 rounded-lg border p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground @max-lg:col-span-full', index === 1 && 'text-end'), children: [_jsxs("div", { className: cn('inline-flex items-center gap-1.5', index === 1 && 'flex-row-reverse', title ? 'font-medium' : 'text-fd-muted-foreground'), children: [_jsx(Icon, { className: "-mx-1 size-4 shrink-0 rtl:rotate-180" }), _jsx("p", { children: title ?? text.nextPage })] }), _jsx("p", { className: cn(title
|
|
98
|
+
? 'text-fd-muted-foreground truncate'
|
|
99
|
+
: 'font-medium md:text-[15px]'), children: description })] }));
|
|
95
100
|
}
|
|
96
101
|
export function Breadcrumb(options) {
|
|
97
102
|
const path = useTreePath();
|
package/dist/style.css
CHANGED
|
@@ -351,9 +351,6 @@
|
|
|
351
351
|
.z-\[2\] {
|
|
352
352
|
z-index: 2;
|
|
353
353
|
}
|
|
354
|
-
.col-start-2 {
|
|
355
|
-
grid-column-start: 2;
|
|
356
|
-
}
|
|
357
354
|
.container {
|
|
358
355
|
width: 100%;
|
|
359
356
|
@media (width >= 40rem) {
|
|
@@ -379,6 +376,9 @@
|
|
|
379
376
|
max-width: 1400px;
|
|
380
377
|
}
|
|
381
378
|
}
|
|
379
|
+
.-mx-1 {
|
|
380
|
+
margin-inline: calc(var(--spacing) * -1);
|
|
381
|
+
}
|
|
382
382
|
.-mx-2 {
|
|
383
383
|
margin-inline: calc(var(--spacing) * -2);
|
|
384
384
|
}
|
|
@@ -412,9 +412,6 @@
|
|
|
412
412
|
.ms-auto {
|
|
413
413
|
margin-inline-start: auto;
|
|
414
414
|
}
|
|
415
|
-
.-me-1 {
|
|
416
|
-
margin-inline-end: calc(var(--spacing) * -1);
|
|
417
|
-
}
|
|
418
415
|
.-me-1\.5 {
|
|
419
416
|
margin-inline-end: calc(var(--spacing) * -1.5);
|
|
420
417
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "15.0
|
|
3
|
+
"version": "15.1.0",
|
|
4
4
|
"description": "The framework for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"types": "./dist/provider.d.ts"
|
|
38
38
|
},
|
|
39
39
|
"./mdx": {
|
|
40
|
+
"node": "./dist/mdx.server.js",
|
|
40
41
|
"import": "./dist/mdx.js",
|
|
41
42
|
"types": "./dist/mdx.d.ts"
|
|
42
43
|
},
|
|
@@ -65,7 +66,7 @@
|
|
|
65
66
|
"@radix-ui/react-tabs": "^1.1.3",
|
|
66
67
|
"class-variance-authority": "^0.7.1",
|
|
67
68
|
"lodash.merge": "^4.6.2",
|
|
68
|
-
"lucide-react": "^0.
|
|
69
|
+
"lucide-react": "^0.482.0",
|
|
69
70
|
"next-themes": "^0.4.6",
|
|
70
71
|
"postcss-selector-parser": "^7.1.0",
|
|
71
72
|
"react-medium-image-zoom": "^5.2.14",
|
|
@@ -80,9 +81,9 @@
|
|
|
80
81
|
"next": "15.2.2",
|
|
81
82
|
"tailwindcss": "^4.0.14",
|
|
82
83
|
"tsc-alias": "^1.8.11",
|
|
83
|
-
"eslint-config-custom": "0.0.0",
|
|
84
|
-
"fumadocs-core": "15.0.17",
|
|
85
84
|
"@fumadocs/cli": "0.0.8",
|
|
85
|
+
"eslint-config-custom": "0.0.0",
|
|
86
|
+
"fumadocs-core": "15.1.0",
|
|
86
87
|
"tsconfig": "0.0.0"
|
|
87
88
|
},
|
|
88
89
|
"peerDependencies": {
|
|
@@ -90,7 +91,7 @@
|
|
|
90
91
|
"react": "18.x.x || 19.x.x",
|
|
91
92
|
"react-dom": "18.x.x || 19.x.x",
|
|
92
93
|
"tailwindcss": "^3.4.14 || ^4.0.0",
|
|
93
|
-
"fumadocs-core": "15.0
|
|
94
|
+
"fumadocs-core": "15.1.0"
|
|
94
95
|
},
|
|
95
96
|
"peerDependenciesMeta": {
|
|
96
97
|
"tailwindcss": {
|
package/dist/mdx.client.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as Base from './components/codeblock.js';
|
|
2
|
-
/**
|
|
3
|
-
* You are NOT supposed to use this component directly.
|
|
4
|
-
*
|
|
5
|
-
* This should be referenced in the output generated by the Rehype Code plugin.
|
|
6
|
-
*
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export declare function Pre(props: Base.CodeBlockProps): React.ReactElement;
|
|
10
|
-
//# sourceMappingURL=mdx.client.d.ts.map
|
package/dist/mdx.client.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mdx.client.d.ts","sourceRoot":"","sources":["../src/mdx.client.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAE/C;;;;;;GAMG;AACH,wBAAgB,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,YAAY,CAMlE"}
|
package/dist/mdx.client.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import * as Base from './components/codeblock.js';
|
|
4
|
-
/**
|
|
5
|
-
* You are NOT supposed to use this component directly.
|
|
6
|
-
*
|
|
7
|
-
* This should be referenced in the output generated by the Rehype Code plugin.
|
|
8
|
-
*
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
export function Pre(props) {
|
|
12
|
-
return (_jsx(Base.CodeBlock, { ...props, children: _jsx(Base.Pre, { children: props.children }) }));
|
|
13
|
-
}
|