fumadocs-ui 15.0.12 → 15.0.13
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/css/preset.css +13 -11
- package/dist/components/github-info.d.ts +7 -0
- package/dist/components/github-info.d.ts.map +1 -0
- package/dist/components/github-info.js +30 -0
- package/dist/components/registry.d.ts.map +1 -1
- package/dist/components/registry.js +5 -0
- package/dist/components/type-table.d.ts +1 -0
- package/dist/components/type-table.d.ts.map +1 -1
- package/dist/components/type-table.js +1 -1
- package/dist/layouts/docs/shared.d.ts +1 -1
- package/dist/layouts/docs/shared.d.ts.map +1 -1
- package/dist/layouts/docs/shared.js +1 -1
- package/dist/layouts/docs.js +1 -1
- package/dist/style.css +46 -31
- package/package.json +5 -4
package/css/preset.css
CHANGED
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
@
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
40
|
+
@utility fd-steps {
|
|
41
|
+
counter-reset: step;
|
|
42
|
+
border-left-width: 1px;
|
|
43
|
+
margin-left: 1rem;
|
|
44
|
+
padding-left: 1.75rem;
|
|
45
|
+
position: relative;
|
|
46
|
+
}
|
|
48
47
|
|
|
49
|
-
|
|
48
|
+
@utility fd-step {
|
|
49
|
+
&:before {
|
|
50
50
|
background-color: var(--color-fd-secondary);
|
|
51
51
|
color: var(--color-fd-secondary-foreground);
|
|
52
52
|
content: counter(step);
|
|
@@ -62,12 +62,14 @@
|
|
|
62
62
|
position: absolute;
|
|
63
63
|
left: -1rem;
|
|
64
64
|
}
|
|
65
|
+
}
|
|
65
66
|
|
|
66
|
-
|
|
67
|
+
@utility prose-no-margin {
|
|
68
|
+
& > :first-child {
|
|
67
69
|
margin-top: 0;
|
|
68
70
|
}
|
|
69
71
|
|
|
70
|
-
|
|
72
|
+
& > :last-child {
|
|
71
73
|
margin-bottom: 0;
|
|
72
74
|
}
|
|
73
75
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type AnchorHTMLAttributes } from 'react';
|
|
2
|
+
export declare function GithubInfo({ repo, owner, token, ...props }: AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
3
|
+
owner: string;
|
|
4
|
+
repo: string;
|
|
5
|
+
token?: string;
|
|
6
|
+
}): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
//# sourceMappingURL=github-info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-info.d.ts","sourceRoot":"","sources":["../../src/components/github-info.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAsClD,wBAAsB,UAAU,CAAC,EAC/B,IAAI,EACJ,KAAK,EACL,KAAK,EACL,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,oDA2BA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Star } from 'lucide-react';
|
|
3
|
+
import { cn } from '../utils/cn.js';
|
|
4
|
+
async function getRepoStarsAndForks(owner, repo, token) {
|
|
5
|
+
const endpoint = `https://api.github.com/repos/${owner}/${repo}`;
|
|
6
|
+
const headers = new Headers({
|
|
7
|
+
'Content-Type': 'application/json',
|
|
8
|
+
});
|
|
9
|
+
if (token)
|
|
10
|
+
headers.set('Authorization', `Bearer ${token}`);
|
|
11
|
+
const response = await fetch(endpoint, {
|
|
12
|
+
headers,
|
|
13
|
+
next: {
|
|
14
|
+
revalidate: 60,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
if (!response.ok) {
|
|
18
|
+
const message = await response.text();
|
|
19
|
+
throw new Error(`Failed to fetch repository data: ${message}`);
|
|
20
|
+
}
|
|
21
|
+
const data = await response.json();
|
|
22
|
+
return {
|
|
23
|
+
stars: data.stargazers_count,
|
|
24
|
+
forks: data.forks_count,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export async function GithubInfo({ repo, owner, token, ...props }) {
|
|
28
|
+
const { stars } = await getRepoStarsAndForks(owner, repo, token);
|
|
29
|
+
return (_jsxs("a", { href: `https://github.com/${owner}/${repo}`, rel: "noreferrer noopener", target: "_blank", ...props, className: cn('flex flex-col gap-1.5 p-2 rounded-lg text-sm text-fd-foreground/80 transition-colors lg:flex-row lg:items-center hover:text-fd-accent-foreground hover:bg-fd-accent', props.className), children: [_jsxs("p", { className: "flex items-center gap-2 truncate", children: [_jsxs("svg", { fill: "currentColor", viewBox: "0 0 24 24", className: "size-3.5", children: [_jsx("title", { children: "GitHub" }), _jsx("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" })] }), owner, "/", repo] }), _jsxs("p", { className: "flex text-xs items-center gap-1 text-fd-muted-foreground", children: [_jsx(Star, { className: "size-3" }), stars] })] }));
|
|
30
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/components/registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAUpD,eAAO,MAAM,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/components/registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAUpD,eAAO,MAAM,QAAQ,EAAE,QAmFtB,CAAC"}
|
|
@@ -52,6 +52,11 @@ export const registry = {
|
|
|
52
52
|
mapImportPath: contextsMap,
|
|
53
53
|
},
|
|
54
54
|
{ name: 'accordion', files: ['accordion.tsx'] },
|
|
55
|
+
{
|
|
56
|
+
name: 'github-info',
|
|
57
|
+
files: ['github-info.tsx'],
|
|
58
|
+
description: 'A card to display GitHub repo info',
|
|
59
|
+
},
|
|
55
60
|
{ name: 'banner', files: ['banner.tsx'] },
|
|
56
61
|
{ name: 'callout', files: ['callout.tsx'] },
|
|
57
62
|
{ name: 'card', files: ['card.tsx'] },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-table.d.ts","sourceRoot":"","sources":["../../src/components/type-table.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,SAAS,CAWrE;AAED,UAAU,UAAU;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"type-table.d.ts","sourceRoot":"","sources":["../../src/components/type-table.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,SAAS,CAWrE;AAED,UAAU,UAAU;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAYD,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;CAAE,2CAiDvE"}
|
|
@@ -15,5 +15,5 @@ const code = cva('rounded-md bg-fd-secondary p-1 text-fd-secondary-foreground',
|
|
|
15
15
|
},
|
|
16
16
|
});
|
|
17
17
|
export function TypeTable({ type }) {
|
|
18
|
-
return (_jsx("div", { className: "prose my-6 overflow-auto prose-no-margin", children: _jsxs("table", { className: "whitespace-nowrap text-sm text-fd-muted-foreground", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "w-[45%]", children: "Prop" }), _jsx("th", { className: "w-[30%]", children: "Type" }), _jsx("th", { className: "w-1/4", children: "Default" })] }) }), _jsx("tbody", { children: Object.entries(type).map(([key, value]) => (_jsxs("tr", { children: [_jsx("td", { children: _jsxs("div", { className: field(), children: [
|
|
18
|
+
return (_jsx("div", { className: "prose my-6 overflow-auto prose-no-margin", children: _jsxs("table", { className: "whitespace-nowrap text-sm text-fd-muted-foreground", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "w-[45%]", children: "Prop" }), _jsx("th", { className: "w-[30%]", children: "Type" }), _jsx("th", { className: "w-1/4", children: "Default" })] }) }), _jsx("tbody", { children: Object.entries(type).map(([key, value]) => (_jsxs("tr", { children: [_jsx("td", { children: _jsxs("div", { className: field(), children: [_jsxs("code", { className: cn(code({ color: 'primary' })), children: [key, !value.required && '?'] }), value.description ? _jsx(Info, { children: value.description }) : null] }) }), _jsx("td", { children: _jsxs("div", { className: field(), children: [_jsx("code", { className: code(), children: value.type }), value.typeDescription ? (_jsx(Info, { children: value.typeDescription })) : null, value.typeDescriptionLink ? (_jsx(Link, { href: value.typeDescriptionLink, children: _jsx(InfoIcon, { className: "size-4" }) })) : null] }) }), _jsx("td", { children: value.default ? (_jsx("code", { className: code(), children: value.default })) : (_jsx("span", { children: "-" })) })] }, key))) })] }) }));
|
|
19
19
|
}
|
|
@@ -43,7 +43,7 @@ export interface SidebarComponents {
|
|
|
43
43
|
export declare function SidebarLinkItem({ item, ...props }: {
|
|
44
44
|
item: LinkItemType;
|
|
45
45
|
className?: string;
|
|
46
|
-
}):
|
|
46
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
47
47
|
export declare function checkPageTree(passed: unknown): void;
|
|
48
48
|
export declare function getSidebarTabsFromOptions(options: SidebarOptions['tabs'], tree: PageTree.Root): Option[] | undefined;
|
|
49
49
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/layouts/docs/shared.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAML,KAAK,YAAY,EAClB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE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,SAAS,CAAA;KAAE,CAAC,CAAC;CAC7C;AAED,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,GAAG,KAAK,EACT,EAAE;IACD,IAAI,EAAE,YAAY,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAsDA;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,QAY5C;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,EAC/B,IAAI,EAAE,QAAQ,CAAC,IAAI,wBASpB"}
|
|
@@ -16,7 +16,7 @@ export function SidebarLinkItem({ item, ...props }) {
|
|
|
16
16
|
}), 'gap-1.5 [&_svg]:size-4', props.className), children: [item.icon, item.text] }));
|
|
17
17
|
}
|
|
18
18
|
if (item.type === 'custom')
|
|
19
|
-
return item.children;
|
|
19
|
+
return _jsx("div", { ...props, children: item.children });
|
|
20
20
|
return (_jsx(SidebarItem, { href: item.url, icon: item.icon, external: item.external, ...props, children: item.text }));
|
|
21
21
|
}
|
|
22
22
|
export function checkPageTree(passed) {
|
package/dist/layouts/docs.js
CHANGED
|
@@ -37,7 +37,7 @@ export function DocsLayout({ nav: { enabled: navEnabled = true, component: navRe
|
|
|
37
37
|
}), 'fixed top-1/2 -translate-y-1/2 start-0 z-40 text-fd-muted-foreground border-s-0 rounded-s-none shadow-md data-[collapsed=false]:hidden max-md:hidden'), children: _jsx(ChevronRight, {}) })) : null, replaceOrDefault({ enabled: sidebarEnabled, component: sidebarReplace }, _jsxs(Aside, { ...sidebar, className: cn('md:ps-(--fd-layout-offset)', sidebar.className), children: [_jsxs(SidebarHeader, { children: [_jsxs("div", { className: "flex flex-row pt-1 max-md:hidden", children: [_jsx(Link, { href: nav.url ?? '/', className: "inline-flex text-[15px] items-center gap-2.5 font-medium", children: nav.title }), nav.children, collapsible && (_jsx(SidebarCollapseTrigger, { className: cn(buttonVariants({
|
|
38
38
|
color: 'ghost',
|
|
39
39
|
size: 'icon-sm',
|
|
40
|
-
}), 'ms-auto mb-auto text-fd-muted-foreground max-md:hidden') }))] }), sidebarBanner, tabs.length > 0 ? (_jsx(RootToggle, { options: tabs, className: "-mx-2" })) : null, !sidebarHideSearch ? (_jsx(LargeSearchToggle, { hideIfDisabled: true, className: "rounded-lg max-md:hidden" })) : null] }), _jsxs(SidebarViewport, { children: [_jsx("div", { className: "mb-4 empty:hidden
|
|
40
|
+
}), 'ms-auto mb-auto text-fd-muted-foreground max-md:hidden') }))] }), sidebarBanner, tabs.length > 0 ? (_jsx(RootToggle, { options: tabs, className: "-mx-2" })) : null, !sidebarHideSearch ? (_jsx(LargeSearchToggle, { hideIfDisabled: true, className: "rounded-lg max-md:hidden" })) : null] }), _jsxs(SidebarViewport, { children: [_jsx("div", { className: "mb-4 empty:hidden", children: links
|
|
41
41
|
.filter((v) => v.type !== 'icon')
|
|
42
42
|
.map((item, i) => (_jsx(SidebarLinkItem, { item: item }, i))) }), _jsx(SidebarPageTree, { components: sidebarComponents })] }), _jsxs(SidebarFooter, { children: [_jsx(SidebarFooterItems, { links: links, i18n: i18n, disableThemeSwitch: props.disableThemeSwitch ?? false }), sidebarFooter] })] }), {
|
|
43
43
|
...sidebar,
|
package/dist/style.css
CHANGED
|
@@ -564,6 +564,31 @@
|
|
|
564
564
|
.collapse {
|
|
565
565
|
visibility: collapse;
|
|
566
566
|
}
|
|
567
|
+
.fd-step {
|
|
568
|
+
&:before {
|
|
569
|
+
background-color: var(--color-fd-secondary);
|
|
570
|
+
color: var(--color-fd-secondary-foreground);
|
|
571
|
+
content: counter(step);
|
|
572
|
+
counter-increment: step;
|
|
573
|
+
border-radius: 9999px;
|
|
574
|
+
justify-content: center;
|
|
575
|
+
align-items: center;
|
|
576
|
+
width: 2rem;
|
|
577
|
+
height: 2rem;
|
|
578
|
+
font-size: 0.875rem;
|
|
579
|
+
line-height: 1.25rem;
|
|
580
|
+
display: flex;
|
|
581
|
+
position: absolute;
|
|
582
|
+
left: -1rem;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
.fd-steps {
|
|
586
|
+
counter-reset: step;
|
|
587
|
+
border-left-width: 1px;
|
|
588
|
+
margin-left: 1rem;
|
|
589
|
+
padding-left: 1.75rem;
|
|
590
|
+
position: relative;
|
|
591
|
+
}
|
|
567
592
|
.absolute {
|
|
568
593
|
position: absolute;
|
|
569
594
|
}
|
|
@@ -1087,6 +1112,14 @@
|
|
|
1087
1112
|
border-bottom-color: var(--tw-prose-th-borders);
|
|
1088
1113
|
}
|
|
1089
1114
|
}
|
|
1115
|
+
.prose-no-margin {
|
|
1116
|
+
& > :first-child {
|
|
1117
|
+
margin-top: 0;
|
|
1118
|
+
}
|
|
1119
|
+
& > :last-child {
|
|
1120
|
+
margin-bottom: 0;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1090
1123
|
.mt-\(--fd-nav-height\) {
|
|
1091
1124
|
margin-top: var(--fd-nav-height);
|
|
1092
1125
|
}
|
|
@@ -1706,6 +1739,9 @@
|
|
|
1706
1739
|
.text-fd-foreground\/30 {
|
|
1707
1740
|
color: color-mix(in oklab, var(--color-fd-foreground) 30%, transparent);
|
|
1708
1741
|
}
|
|
1742
|
+
.text-fd-foreground\/80 {
|
|
1743
|
+
color: color-mix(in oklab, var(--color-fd-foreground) 80%, transparent);
|
|
1744
|
+
}
|
|
1709
1745
|
.text-fd-muted-foreground {
|
|
1710
1746
|
color: var(--color-fd-muted-foreground);
|
|
1711
1747
|
}
|
|
@@ -2305,6 +2341,16 @@
|
|
|
2305
2341
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
2306
2342
|
}
|
|
2307
2343
|
}
|
|
2344
|
+
.lg\:flex-row {
|
|
2345
|
+
@media (width >= 64rem) {
|
|
2346
|
+
flex-direction: row;
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2349
|
+
.lg\:items-center {
|
|
2350
|
+
@media (width >= 64rem) {
|
|
2351
|
+
align-items: center;
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2308
2354
|
.lg\:rounded-2xl {
|
|
2309
2355
|
@media (width >= 64rem) {
|
|
2310
2356
|
border-radius: var(--radius-2xl);
|
|
@@ -2521,37 +2567,6 @@
|
|
|
2521
2567
|
background-color: var(--color-fd-background);
|
|
2522
2568
|
}
|
|
2523
2569
|
}
|
|
2524
|
-
@layer utilities {
|
|
2525
|
-
.fd-steps {
|
|
2526
|
-
counter-reset: step;
|
|
2527
|
-
border-left-width: 1px;
|
|
2528
|
-
margin-left: 1rem;
|
|
2529
|
-
padding-left: 1.75rem;
|
|
2530
|
-
position: relative;
|
|
2531
|
-
}
|
|
2532
|
-
.fd-step:before {
|
|
2533
|
-
background-color: var(--color-fd-secondary);
|
|
2534
|
-
color: var(--color-fd-secondary-foreground);
|
|
2535
|
-
content: counter(step);
|
|
2536
|
-
counter-increment: step;
|
|
2537
|
-
border-radius: 9999px;
|
|
2538
|
-
justify-content: center;
|
|
2539
|
-
align-items: center;
|
|
2540
|
-
width: 2rem;
|
|
2541
|
-
height: 2rem;
|
|
2542
|
-
font-size: 0.875rem;
|
|
2543
|
-
line-height: 1.25rem;
|
|
2544
|
-
display: flex;
|
|
2545
|
-
position: absolute;
|
|
2546
|
-
left: -1rem;
|
|
2547
|
-
}
|
|
2548
|
-
.prose-no-margin > :first-child {
|
|
2549
|
-
margin-top: 0;
|
|
2550
|
-
}
|
|
2551
|
-
.prose-no-margin > :last-child {
|
|
2552
|
-
margin-bottom: 0;
|
|
2553
|
-
}
|
|
2554
|
-
}
|
|
2555
2570
|
@property --radix-collapsible-content-height {
|
|
2556
2571
|
syntax: '<length>';
|
|
2557
2572
|
inherits: false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.13",
|
|
4
4
|
"description": "The framework for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"./image-zoom.css": "./dist/image-zoom.css",
|
|
18
18
|
"./components/*": {
|
|
19
19
|
"import": "./dist/components/*.js",
|
|
20
|
-
"types": "./dist/components/*.d.ts"
|
|
20
|
+
"types": "./dist/components/*.d.ts",
|
|
21
|
+
"default": "./dist/components/*.js"
|
|
21
22
|
},
|
|
22
23
|
"./i18n": {
|
|
23
24
|
"import": "./dist/i18n.js",
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
"tsc-alias": "^1.8.10",
|
|
82
83
|
"@fumadocs/cli": "0.0.8",
|
|
83
84
|
"eslint-config-custom": "0.0.0",
|
|
84
|
-
"fumadocs-core": "15.0.
|
|
85
|
+
"fumadocs-core": "15.0.13",
|
|
85
86
|
"tsconfig": "0.0.0"
|
|
86
87
|
},
|
|
87
88
|
"peerDependencies": {
|
|
@@ -89,7 +90,7 @@
|
|
|
89
90
|
"react": "18.x.x || 19.x.x",
|
|
90
91
|
"react-dom": "18.x.x || 19.x.x",
|
|
91
92
|
"tailwindcss": "^3.4.14 || ^4.0.0",
|
|
92
|
-
"fumadocs-core": "15.0.
|
|
93
|
+
"fumadocs-core": "15.0.13"
|
|
93
94
|
},
|
|
94
95
|
"peerDependenciesMeta": {
|
|
95
96
|
"tailwindcss": {
|