@xiongtao.xt/tau-plugins 0.28.0 → 0.29.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.
@@ -56,6 +56,18 @@ export interface ContentNode {
56
56
  type?: string;
57
57
  children?: ContentNode[];
58
58
  }
59
+ /** 由宿主生成发布快照、由博客渲染器内置展示的业务节点。 */
60
+ export declare const PUBLISHED_HOST_ELEMENT_TYPES: readonly ["project-card-list"];
61
+ export interface PublishedProjectCardListNode extends ContentNode {
62
+ type: "project-card-list";
63
+ items: {
64
+ id: number;
65
+ title: string;
66
+ summary: string;
67
+ target: ContentRef;
68
+ }[];
69
+ children: ContentNode[];
70
+ }
59
71
  export interface TreeItem {
60
72
  title: string;
61
73
  target?: ContentRef;
@@ -13,6 +13,7 @@ export * from "./primitives/Button";
13
13
  export * from "./primitives/IconButton";
14
14
  export * from "./primitives/Loading";
15
15
  export * from "./primitives/Panel";
16
+ export * from "./primitives/DocumentCard";
16
17
  export * from "./primitives/Toast";
17
18
  export * from "./primitives/Notification";
18
19
  export * from "./primitives/Tooltip";
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from "react";
2
+ export declare function DocumentCardGrid({ children }: {
3
+ children: ReactNode;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ /** 尺寸使用 em,让编辑器与发布站点的卡片随正文字号一起缩放。 */
6
+ export declare function DocumentCard({ title, description, href, onClick, }: {
7
+ title: string;
8
+ description: string;
9
+ href?: string;
10
+ onClick?: () => void;
11
+ }): import("react/jsx-runtime").JSX.Element;