@windrun-huaiin/third-ui 6.2.1 → 6.2.2

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;
@@ -71,18 +72,6 @@ interface GradientButtonProps {
71
72
  }
72
73
  declare function GradientButton({ title, icon, align, disabled, className, href, openInNewTab, onClick, loadingText, preventDoubleClick, }: GradientButtonProps): react_jsx_runtime.JSX.Element;
73
74
 
74
- interface LLMCopyButtonProps {
75
- llmApiUrl?: string;
76
- sourceKey?: string;
77
- }
78
- declare function LLMCopyButton({ llmApiUrl, sourceKey }?: LLMCopyButtonProps): react_jsx_runtime.JSX.Element;
79
- declare function EditOnGitHub({ url }: {
80
- url: string;
81
- }): react_jsx_runtime.JSX.Element;
82
- declare function LastUpdatedDate({ date }: {
83
- date: string | undefined;
84
- }): react_jsx_runtime.JSX.Element;
85
-
86
75
  interface FumaGithubInfoProps {
87
76
  owner: string;
88
77
  repo: string;
@@ -141,4 +130,4 @@ declare function Banner({ id, variant, changeLayout, height, ...props }: HTMLAtt
141
130
  changeLayout?: boolean;
142
131
  }): react_jsx_runtime.JSX.Element | null;
143
132
 
144
- export { Banner, EditOnGitHub, FumaGithubInfo, GradientButton, type GradientButtonProps, ImageGrid, ImageZoom, type ImageZoomProps, LLMCopyButton, type LLMCopyButtonProps, LastUpdatedDate, Mermaid, TocFooterWrapper, TrophyCard, ZiaCard, type ZiaCardProps, ZiaFile, type ZiaFileProps, ZiaFolder, type ZiaFolderProps };
133
+ export { Banner, FumaGithubInfo, GradientButton, type GradientButtonProps, ImageGrid, ImageZoom, type ImageZoomProps, Mermaid, 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;
@@ -71,18 +72,6 @@ interface GradientButtonProps {
71
72
  }
72
73
  declare function GradientButton({ title, icon, align, disabled, className, href, openInNewTab, onClick, loadingText, preventDoubleClick, }: GradientButtonProps): react_jsx_runtime.JSX.Element;
73
74
 
74
- interface LLMCopyButtonProps {
75
- llmApiUrl?: string;
76
- sourceKey?: string;
77
- }
78
- declare function LLMCopyButton({ llmApiUrl, sourceKey }?: LLMCopyButtonProps): react_jsx_runtime.JSX.Element;
79
- declare function EditOnGitHub({ url }: {
80
- url: string;
81
- }): react_jsx_runtime.JSX.Element;
82
- declare function LastUpdatedDate({ date }: {
83
- date: string | undefined;
84
- }): react_jsx_runtime.JSX.Element;
85
-
86
75
  interface FumaGithubInfoProps {
87
76
  owner: string;
88
77
  repo: string;
@@ -141,4 +130,4 @@ declare function Banner({ id, variant, changeLayout, height, ...props }: HTMLAtt
141
130
  changeLayout?: boolean;
142
131
  }): react_jsx_runtime.JSX.Element | null;
143
132
 
144
- export { Banner, EditOnGitHub, FumaGithubInfo, GradientButton, type GradientButtonProps, ImageGrid, ImageZoom, type ImageZoomProps, LLMCopyButton, type LLMCopyButtonProps, LastUpdatedDate, Mermaid, TocFooterWrapper, TrophyCard, ZiaCard, type ZiaCardProps, ZiaFile, type ZiaFileProps, ZiaFolder, type ZiaFolderProps };
133
+ export { Banner, FumaGithubInfo, GradientButton, type GradientButtonProps, ImageGrid, ImageZoom, type ImageZoomProps, Mermaid, TocFooterWrapper, TrophyCard, ZiaCard, type ZiaCardProps, ZiaFile, type ZiaFileProps, ZiaFolder, type ZiaFolderProps };
@@ -3145,7 +3145,6 @@ function TrophyCard({
3145
3145
  }
3146
3146
 
3147
3147
  // src/fuma/mdx/image-grid.tsx
3148
- var import_image_zoom = require("@third-ui/fuma/mdx/image-zoom");
3149
3148
  var import_jsx_runtime36 = require("react/jsx-runtime");
3150
3149
  function ImageGrid({
3151
3150
  type = "url",
@@ -3164,7 +3163,7 @@ function ImageGrid({
3164
3163
  alignItems: "center"
3165
3164
  },
3166
3165
  children: images.map((img, idx) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3167
- import_image_zoom.ImageZoom,
3166
+ ImageZoom,
3168
3167
  {
3169
3168
  src: img.startsWith("http://") || img.startsWith("https://") ? img : type === "url" ? `${cdnBaseUrl == null ? void 0 : cdnBaseUrl.replace(/\/+$/, "")}/${img.replace(/^\/+/, "")}` : img,
3170
3169
  alt: `${altPrefix}-${idx + 1}`
@@ -3819,14 +3818,13 @@ function ZiaFolder(_a) {
3819
3818
  }
3820
3819
 
3821
3820
  // src/fuma/mdx/toc-footer-wrapper.tsx
3822
- var import_toc_base = require("@third-ui/fuma/mdx/toc-base");
3823
3821
  var import_jsx_runtime44 = require("react/jsx-runtime");
3824
3822
  function TocFooterWrapper({ lastModified, editPath, githubBaseUrl, copyButtonComponent }) {
3825
3823
  const showEdit = githubBaseUrl && editPath;
3826
3824
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-col gap-y-2 items-start m-4", children: [
3827
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_toc_base.LastUpdatedDate, { date: lastModified }),
3825
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(LastUpdatedDate, { date: lastModified }),
3828
3826
  copyButtonComponent,
3829
- showEdit && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_toc_base.EditOnGitHub, { url: `${githubBaseUrl}${editPath}` })
3827
+ showEdit && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(EditOnGitHub, { url: `${githubBaseUrl}${editPath}` })
3830
3828
  ] });
3831
3829
  }
3832
3830