@blueking/chat-x 0.0.18 → 0.0.20

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.
@@ -29,7 +29,7 @@ button.ai-shortcut-btn(flex,gap: 4px,height: 28px,padding: 0 4px,white
29
29
 
30
30
  ├── <slot name="default">(覆盖后图标+名称全部替换)
31
31
  │ ├── [shortcut.icon 为字符串 && 以 'http' 开头]
32
- │ │ <img class="ai-common-icon ai-shortcut-btn-icon" :src="icon">
32
+ │ │ 加载成功:<img />;加载失败:回退 AgentIcon.ai-shortcut-btn-icon
33
33
  │ ├── [shortcut.icon 为字符串 && 不以 'http' 开头]
34
34
  │ │ <span :class="icon" />(CSS 图标类名,无其他 class)
35
35
  │ ├── [shortcut.icon 为函数或组件]
@@ -47,14 +47,14 @@ defineExpose: { get $el() { return el.value } }(懒 getter,返回 button 元
47
47
 
48
48
  ## 图标渲染规则
49
49
 
50
- | `shortcut.icon` 类型 | 渲染结果 | 额外说明 |
51
- | ------------------------------------- | --------------------------- | ---------------------------------------------- |
52
- | 未设置(且 `components` 为空/未设置) | `AgentIcon`(默认图标) | `components: []` 与不传效果相同 |
53
- | 未设置(且 `components` 有内容) | 无图标 | 表单类快捷指令 |
54
- | `string`,以 `'http'` 开头 | `<img>` | 同时有 `.ai-common-icon .ai-shortcut-btn-icon` |
55
- | `string`,不以 `'http'` 开头 | `<span :class="icon">` | 视为 CSS 图标类名,无其他 class |
56
- | 函数 `(h) => Component/VNode` | `<component :is="icon(h)">` | 有 `.ai-shortcut-btn-icon` |
57
- | 组件对象 | `<component :is="icon">` | 有 `.ai-shortcut-btn-icon` |
50
+ | `shortcut.icon` 类型 | 渲染结果 | 额外说明 |
51
+ | ------------------------------------- | --------------------------- | ---------------------------------------------------------------- |
52
+ | 未设置(且 `components` 为空/未设置) | `AgentIcon`(默认图标) | `components: []` 与不传效果相同 |
53
+ | 未设置(且 `components` 有内容) | 无图标 | 表单类快捷指令 |
54
+ | `string`,以 `'http'` 开头 | `<img>`,失败时 `AgentIcon` | `.ai-common-icon .ai-shortcut-btn-icon`;`@error` 后回退默认图标 |
55
+ | `string`,不以 `'http'` 开头 | `<span :class="icon">` | 视为 CSS 图标类名,无其他 class |
56
+ | 函数 `(h) => Component/VNode` | `<component :is="icon(h)">` | 有 `.ai-shortcut-btn-icon` |
57
+ | 组件对象 | `<component :is="icon">` | 有 `.ai-shortcut-btn-icon` |
58
58
 
59
59
  ## 基础用法
60
60
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "2.0.0",
3
- "generatedAt": "2026-04-08T08:35:29.670Z",
3
+ "generatedAt": "2026-04-13T02:27:40.682Z",
4
4
  "domains": {
5
5
  "message": {
6
6
  "label": "消息展示",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/chat-x",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "蓝鲸智云 AI Chat 组件库 —— 遵循 AG-UI,为 AI Agent 和人类开发者共同设计的对话 UI 组件库。",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -41,8 +41,13 @@
41
41
  "README.md"
42
42
  ],
43
43
  "keywords": [],
44
- "author": "",
44
+ "author": "Tencent BlueKing",
45
45
  "license": "MIT",
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "https://github.com/TencentBlueKing/bk-aidev-agent.git",
49
+ "directory": "src/frontend/ai-blueking/packages/chat-x"
50
+ },
46
51
  "dependencies": {
47
52
  "@modelcontextprotocol/sdk": "^1.27.1",
48
53
  "bkui-vue": "2.0.2-beta.81",
@@ -57,7 +62,9 @@
57
62
  "markdown-it-sup": "^2.0.0",
58
63
  "markdown-it-task-checkbox": "^1.0.6",
59
64
  "mermaid": "^11.12.2",
65
+ "tippy.js": "^6.3.7",
60
66
  "vue": "^3.5.24",
67
+ "vue-tippy": "^6.7.1",
61
68
  "zod": "^4.3.6"
62
69
  },
63
70
  "devDependencies": {
@@ -88,7 +95,6 @@
88
95
  "vite-bundle-analyzer": "^1.3.2",
89
96
  "vitepress": "2.0.0-alpha.16",
90
97
  "vitest": "^4.0.18",
91
- "vue-tippy": "^6.7.1",
92
98
  "vue-tsc": "^3.1.4"
93
99
  }
94
100
  }