@windrun-huaiin/third-ui 5.7.0 → 5.8.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/fuma/mdx/index.d.mts +2 -11
- package/dist/fuma/mdx/index.d.ts +2 -11
- package/dist/fuma/mdx/index.js +5 -2
- package/dist/fuma/mdx/index.js.map +1 -1
- package/dist/fuma/mdx/index.mjs +5 -2
- package/dist/fuma/mdx/index.mjs.map +1 -1
- package/dist/fuma/server.d.mts +5 -3
- package/dist/fuma/server.d.ts +5 -3
- package/dist/fuma/server.js +3 -1
- package/dist/fuma/server.js.map +1 -1
- package/dist/fuma/server.mjs +3 -1
- package/dist/fuma/server.mjs.map +1 -1
- package/dist/toc-base-BC7kXpDU.d.mts +15 -0
- package/dist/toc-base-BC7kXpDU.d.ts +15 -0
- package/package.json +1 -1
- package/src/fuma/fuma-page-genarator.tsx +15 -5
- package/src/fuma/mdx/toc-base.tsx +10 -2
|
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { ImageProps } from 'fumadocs-core/framework';
|
|
3
3
|
import React, { ImgHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
4
4
|
import { UncontrolledProps } from 'react-medium-image-zoom';
|
|
5
|
+
export { E as EditOnGitHub, a as LLMCopyButton, L as LLMCopyButtonProps, b as LastUpdatedDate } from '../../toc-base-BC7kXpDU.mjs';
|
|
5
6
|
|
|
6
7
|
interface MermaidProps {
|
|
7
8
|
chart: string;
|
|
@@ -60,16 +61,6 @@ declare function GradientButton({ title, icon, href, align, }: {
|
|
|
60
61
|
align?: 'left' | 'center' | 'right';
|
|
61
62
|
}): react_jsx_runtime.JSX.Element;
|
|
62
63
|
|
|
63
|
-
declare function LLMCopyButton({ llmApiUrl }?: {
|
|
64
|
-
llmApiUrl?: string;
|
|
65
|
-
}): react_jsx_runtime.JSX.Element;
|
|
66
|
-
declare function EditOnGitHub({ url }: {
|
|
67
|
-
url: string;
|
|
68
|
-
}): react_jsx_runtime.JSX.Element;
|
|
69
|
-
declare function LastUpdatedDate({ date }: {
|
|
70
|
-
date: string | undefined;
|
|
71
|
-
}): react_jsx_runtime.JSX.Element;
|
|
72
|
-
|
|
73
64
|
declare function FumaBannerSuit({ showText }: {
|
|
74
65
|
showText: boolean;
|
|
75
66
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -122,4 +113,4 @@ interface TocFooterProps {
|
|
|
122
113
|
}
|
|
123
114
|
declare function TocFooterWrapper({ lastModified, editPath, githubBaseUrl, copyButtonComponent }: TocFooterProps): react_jsx_runtime.JSX.Element;
|
|
124
115
|
|
|
125
|
-
export {
|
|
116
|
+
export { FumaBannerSuit, FumaGithubInfo, GradientButton, ImageGrid, ImageZoom, type ImageZoomProps, Mermaid, SiteX, type SiteXProps, TocFooterWrapper, TrophyCard, ZiaCard, type ZiaCardProps, ZiaFile, type ZiaFileProps, ZiaFolder, type ZiaFolderProps };
|
package/dist/fuma/mdx/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { ImageProps } from 'fumadocs-core/framework';
|
|
3
3
|
import React, { ImgHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
4
4
|
import { UncontrolledProps } from 'react-medium-image-zoom';
|
|
5
|
+
export { E as EditOnGitHub, a as LLMCopyButton, L as LLMCopyButtonProps, b as LastUpdatedDate } from '../../toc-base-BC7kXpDU.js';
|
|
5
6
|
|
|
6
7
|
interface MermaidProps {
|
|
7
8
|
chart: string;
|
|
@@ -60,16 +61,6 @@ declare function GradientButton({ title, icon, href, align, }: {
|
|
|
60
61
|
align?: 'left' | 'center' | 'right';
|
|
61
62
|
}): react_jsx_runtime.JSX.Element;
|
|
62
63
|
|
|
63
|
-
declare function LLMCopyButton({ llmApiUrl }?: {
|
|
64
|
-
llmApiUrl?: string;
|
|
65
|
-
}): react_jsx_runtime.JSX.Element;
|
|
66
|
-
declare function EditOnGitHub({ url }: {
|
|
67
|
-
url: string;
|
|
68
|
-
}): react_jsx_runtime.JSX.Element;
|
|
69
|
-
declare function LastUpdatedDate({ date }: {
|
|
70
|
-
date: string | undefined;
|
|
71
|
-
}): react_jsx_runtime.JSX.Element;
|
|
72
|
-
|
|
73
64
|
declare function FumaBannerSuit({ showText }: {
|
|
74
65
|
showText: boolean;
|
|
75
66
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -122,4 +113,4 @@ interface TocFooterProps {
|
|
|
122
113
|
}
|
|
123
114
|
declare function TocFooterWrapper({ lastModified, editPath, githubBaseUrl, copyButtonComponent }: TocFooterProps): react_jsx_runtime.JSX.Element;
|
|
124
115
|
|
|
125
|
-
export {
|
|
116
|
+
export { FumaBannerSuit, FumaGithubInfo, GradientButton, ImageGrid, ImageZoom, type ImageZoomProps, Mermaid, SiteX, type SiteXProps, TocFooterWrapper, TrophyCard, ZiaCard, type ZiaCardProps, ZiaFile, type ZiaFileProps, ZiaFolder, type ZiaFolderProps };
|
package/dist/fuma/mdx/index.js
CHANGED
|
@@ -3117,7 +3117,7 @@ var import_use_copy_button = require("fumadocs-ui/utils/use-copy-button");
|
|
|
3117
3117
|
var import_link4 = __toESM(require("fumadocs-core/link"));
|
|
3118
3118
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3119
3119
|
var cache = /* @__PURE__ */ new Map();
|
|
3120
|
-
function LLMCopyButton({ llmApiUrl } = {}) {
|
|
3120
|
+
function LLMCopyButton({ llmApiUrl, sourceKey } = {}) {
|
|
3121
3121
|
const [isLoading, setLoading] = (0, import_react38.useState)(false);
|
|
3122
3122
|
const params = (0, import_navigation.useParams)();
|
|
3123
3123
|
const locale = params.locale;
|
|
@@ -3126,7 +3126,10 @@ function LLMCopyButton({ llmApiUrl } = {}) {
|
|
|
3126
3126
|
setLoading(true);
|
|
3127
3127
|
const path = slug && Array.isArray(slug) ? slug.join("/") : "";
|
|
3128
3128
|
const apiPrefix = llmApiUrl || "/api/llm-content";
|
|
3129
|
-
|
|
3129
|
+
let apiUrl = `${apiPrefix}?locale=${encodeURIComponent(locale)}&path=${encodeURIComponent(path)}`;
|
|
3130
|
+
if (sourceKey) {
|
|
3131
|
+
apiUrl += `&sourceKey=${encodeURIComponent(sourceKey)}`;
|
|
3132
|
+
}
|
|
3130
3133
|
console.log("Fetching LLM content from:", apiUrl);
|
|
3131
3134
|
let content;
|
|
3132
3135
|
try {
|