@linkdesk/ui 0.2.43 → 0.2.44
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.
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { MenuItemDescriptor } from "@linkdesk/contracts";
|
|
3
|
+
import type { ManifestIconShape } from "../plugin-icon/iconUtils";
|
|
4
|
+
interface PluginCardProps {
|
|
5
|
+
/** 插件身份+副文本第二行(title 过长 / 重名时 id 是唯一稳定识别物)。 */
|
|
6
|
+
pluginId: string;
|
|
7
|
+
/** 透传 `PluginIcon`——图标唯一裁决源;缺省 ⇒ `PluginIcon` 自兜底(E6#54b 纯 props)。 */
|
|
8
|
+
manifest?: ManifestIconShape;
|
|
9
|
+
/** 显示名。**调用方 `t()` 后传入**(共享件零中文,SourceBadge 先例)。 */
|
|
10
|
+
title: string;
|
|
11
|
+
/** 版本号——副文本显示为「id · v1.2.0」;缺省只显 id。 */
|
|
12
|
+
version?: string;
|
|
13
|
+
/** 常驻摘要(折叠/展开都在),如「声明 45 类 · 竞争 12 类」——管理器组装。 */
|
|
14
|
+
summary?: ReactNode;
|
|
15
|
+
/** 展开态(**受控**:开合策略=管理器策略——搜索命中自动展开、批量开合都要求外部持有)。 */
|
|
16
|
+
expanded: boolean;
|
|
17
|
+
onToggle(next: boolean): void;
|
|
18
|
+
/** 卡头齿轮菜单项(形状=共享 `ContextMenu` 既有契约);缺省或空数组 ⇒ ⛔ 不渲染齿轮。 */
|
|
19
|
+
gearItems?: MenuItemDescriptor[];
|
|
20
|
+
/** 插件停用:卡体降不透明度+「已停用」徽标。行与动作的惰性由管理器组装的 children 承担(03 §1)。 */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** 展开体(行清单)——管理器自组。 */
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
declare function PluginCard({ pluginId, manifest, title, version, summary, expanded, onToggle, gearItems, disabled, children, }: PluginCardProps): import("react").JSX.Element;
|
|
26
|
+
export default PluginCard;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linkdesk/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.44",
|
|
4
4
|
"description": "@linkdesk/ui——LinkDesk 共享 UI 组件的类型契约 + dev 解析体。L9 集中供给:组件代码与样式在运行时由壳池 vendor 单实例供给(壳改一处全生态跟随);npm i 装的是类型与本地解析体,插件源码不 import 本包 css(lint 腿 check-ui-css-import 判红)。版本号自走(E6#166 对货不对号:2026-10-01 起与壳脱钩,壳发版只查作者面货不落后)。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|