@windrun-huaiin/third-ui 4.0.1 → 5.0.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/clerk/index.js +83 -83
- package/dist/clerk/index.js.map +1 -1
- package/dist/clerk/index.mjs +83 -83
- package/dist/clerk/index.mjs.map +1 -1
- package/dist/fuma/index.d.mts +3 -1
- package/dist/fuma/index.d.ts +3 -1
- package/dist/fuma/index.js +312 -367
- package/dist/fuma/index.js.map +1 -1
- package/dist/fuma/index.mjs +275 -330
- package/dist/fuma/index.mjs.map +1 -1
- package/dist/fuma/mdx/index.js +86 -86
- package/dist/fuma/mdx/index.js.map +1 -1
- package/dist/fuma/mdx/index.mjs +86 -86
- package/dist/fuma/mdx/index.mjs.map +1 -1
- package/dist/index.js +298 -353
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +262 -317
- package/dist/index.mjs.map +1 -1
- package/dist/main/index.js +86 -86
- package/dist/main/index.js.map +1 -1
- package/dist/main/index.mjs +86 -86
- package/dist/main/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/fuma/fuma-page-genarator.tsx +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@windrun-huaiin/third-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Third-party integrated UI components for windrun-huaiin projects",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"mermaid": "^11.6.0",
|
|
58
58
|
"react-medium-image-zoom": "^5.2.14",
|
|
59
59
|
"zod": "^3.22.4",
|
|
60
|
-
"@windrun-huaiin/base-ui": "^
|
|
60
|
+
"@windrun-huaiin/base-ui": "^5.0.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"react": "19.
|
|
64
|
-
"react-dom": "19.
|
|
63
|
+
"react": "19.1.0",
|
|
64
|
+
"react-dom": "19.1.0",
|
|
65
65
|
"next": "15.3.2",
|
|
66
66
|
"next-intl": "^3.26.5",
|
|
67
67
|
"next-themes": "^0.4.6",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DocsBody, DocsDescription, DocsPage, DocsTitle } from 'fumadocs-ui/page';
|
|
2
2
|
import { NotFoundPage } from '@base-ui/components/client';
|
|
3
3
|
import { TocFooter } from '@third-ui/fuma/mdx/toc';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
4
5
|
|
|
5
6
|
interface FumaPageParams {
|
|
6
7
|
/*
|
|
@@ -23,6 +24,10 @@ interface FumaPageParams {
|
|
|
23
24
|
* Whether to show the copy button, default is true
|
|
24
25
|
*/
|
|
25
26
|
showCopy?: boolean;
|
|
27
|
+
/*
|
|
28
|
+
* The site icon component to use in NotFoundPage
|
|
29
|
+
*/
|
|
30
|
+
siteIcon: ReactNode;
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
export function createFumaPage({
|
|
@@ -31,12 +36,13 @@ export function createFumaPage({
|
|
|
31
36
|
mdxSourceDir,
|
|
32
37
|
githubBaseUrl,
|
|
33
38
|
showCopy = true,
|
|
39
|
+
siteIcon,
|
|
34
40
|
}: FumaPageParams) {
|
|
35
41
|
const Page = async function Page({ params }: { params: Promise<{ locale: string; slug?: string[] }> }) {
|
|
36
42
|
const { slug, locale } = await params;
|
|
37
43
|
const page = mdxContentSource.getPage(slug, locale);
|
|
38
44
|
if (!page) {
|
|
39
|
-
return <NotFoundPage />;
|
|
45
|
+
return <NotFoundPage siteIcon={siteIcon} />;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
const path = githubBaseUrl ? `${mdxSourceDir}/${page.file.path}` : undefined;
|