@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.
@@ -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 { EditOnGitHub, FumaBannerSuit, FumaGithubInfo, GradientButton, ImageGrid, ImageZoom, type ImageZoomProps, LLMCopyButton, LastUpdatedDate, Mermaid, SiteX, type SiteXProps, TocFooterWrapper, TrophyCard, ZiaCard, type ZiaCardProps, ZiaFile, type ZiaFileProps, ZiaFolder, type ZiaFolderProps };
116
+ export { FumaBannerSuit, FumaGithubInfo, GradientButton, ImageGrid, ImageZoom, type ImageZoomProps, Mermaid, SiteX, type SiteXProps, TocFooterWrapper, TrophyCard, ZiaCard, type ZiaCardProps, ZiaFile, type ZiaFileProps, ZiaFolder, type ZiaFolderProps };
@@ -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 { EditOnGitHub, FumaBannerSuit, FumaGithubInfo, GradientButton, ImageGrid, ImageZoom, type ImageZoomProps, LLMCopyButton, LastUpdatedDate, Mermaid, SiteX, type SiteXProps, TocFooterWrapper, TrophyCard, ZiaCard, type ZiaCardProps, ZiaFile, type ZiaFileProps, ZiaFolder, type ZiaFolderProps };
116
+ export { FumaBannerSuit, FumaGithubInfo, GradientButton, ImageGrid, ImageZoom, type ImageZoomProps, Mermaid, SiteX, type SiteXProps, TocFooterWrapper, TrophyCard, ZiaCard, type ZiaCardProps, ZiaFile, type ZiaFileProps, ZiaFolder, type ZiaFolderProps };
@@ -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
- const apiUrl = `${apiPrefix}?locale=${encodeURIComponent(locale)}&path=${encodeURIComponent(path)}`;
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 {