@next-bricks/ai-portal 0.70.1 → 0.70.3
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.
- package/dist/bricks.json +45 -45
- package/dist/chunks/1097.05983e91.js +3 -0
- package/dist/chunks/{1097.9e80dcca.js.LICENSE.txt → 1097.05983e91.js.LICENSE.txt} +2 -0
- package/dist/chunks/1097.05983e91.js.map +1 -0
- package/dist/chunks/{1889.b7766f77.js → 1889.803775eb.js} +2 -2
- package/dist/chunks/{1889.b7766f77.js.map → 1889.803775eb.js.map} +1 -1
- package/dist/chunks/3171.9d323cbe.js +2 -0
- package/dist/chunks/3171.9d323cbe.js.map +1 -0
- package/dist/chunks/{3186.f231329a.js → 3186.ca53075a.js} +2 -2
- package/dist/chunks/{3186.f231329a.js.map → 3186.ca53075a.js.map} +1 -1
- package/dist/chunks/3840.6080d56e.js +3 -0
- package/dist/chunks/3840.6080d56e.js.map +1 -0
- package/dist/chunks/{4864.bee3bb30.js → 4864.beefe6d5.js} +2 -2
- package/dist/chunks/{4864.bee3bb30.js.map → 4864.beefe6d5.js.map} +1 -1
- package/dist/chunks/5399.ef4bb3aa.js +2 -0
- package/dist/chunks/5399.ef4bb3aa.js.map +1 -0
- package/dist/chunks/551.ae5171a6.js +3 -0
- package/dist/chunks/551.ae5171a6.js.map +1 -0
- package/dist/chunks/5552.53024929.js +2 -0
- package/dist/chunks/5552.53024929.js.map +1 -0
- package/dist/chunks/6277.c8a6013f.js +2 -0
- package/dist/chunks/6277.c8a6013f.js.map +1 -0
- package/dist/chunks/6376.c35ff317.js +2 -0
- package/dist/chunks/6376.c35ff317.js.map +1 -0
- package/dist/chunks/7669.6f177bf2.js +3 -0
- package/dist/chunks/7669.6f177bf2.js.map +1 -0
- package/dist/chunks/794.214aa08f.js +3 -0
- package/dist/chunks/794.214aa08f.js.map +1 -0
- package/dist/chunks/948.c96c7036.js +3 -0
- package/dist/chunks/948.c96c7036.js.map +1 -0
- package/dist/chunks/action-buttons.68666920.js.map +1 -1
- package/dist/chunks/activity-timeline.96e7aaea.js.map +1 -1
- package/dist/chunks/ai-agents.cffd08a0.js.map +1 -1
- package/dist/chunks/ai-employees.267c3626.js.map +1 -1
- package/dist/chunks/blank-state.648eea95.js.map +1 -1
- package/dist/chunks/chat-box.060b8727.js +3 -0
- package/dist/chunks/chat-box.060b8727.js.map +1 -0
- package/dist/chunks/chat-input.e913e9ed.js +3 -0
- package/dist/chunks/chat-input.e913e9ed.js.map +1 -0
- package/dist/chunks/chat-panel-welcome.2f7c6c8b.js.map +1 -1
- package/dist/chunks/{chat-panel.3160f2e8.js → chat-panel.63207d2f.js} +2 -2
- package/dist/chunks/chat-panel.63207d2f.js.map +1 -0
- package/dist/chunks/chat-stream.393c8241.js.map +1 -1
- package/dist/chunks/cruise-canvas.bfae3138.js.map +1 -1
- package/dist/chunks/dropdown-select.336442ba.js.map +1 -1
- package/dist/chunks/elevo-card.49b42ed0.js.map +1 -1
- package/dist/chunks/elevo-logo.25e3b889.js.map +1 -1
- package/dist/chunks/elevo-sidebar.dfaaf9d1.js +3 -0
- package/dist/chunks/elevo-sidebar.dfaaf9d1.js.map +1 -0
- package/dist/chunks/flow-tabs.ee1290c2.js.map +1 -1
- package/dist/chunks/goal-card-list.74ab5767.js.map +1 -1
- package/dist/chunks/home-container.f1829834.js.map +1 -1
- package/dist/chunks/icon-button.545ffb24.js.map +1 -1
- package/dist/chunks/main.5e1b11a5.js +2 -0
- package/dist/chunks/main.5e1b11a5.js.map +1 -0
- package/dist/chunks/mcp-tools.f132c502.js.map +1 -1
- package/dist/chunks/notice-dropdown.63cb2415.js.map +1 -1
- package/dist/chunks/page-container.2185f2e0.js.map +1 -1
- package/dist/chunks/preview-container.a0ca6e2f.js.map +1 -1
- package/dist/chunks/project-knowledges.51731410.js.map +1 -1
- package/dist/chunks/running-flow.37a428cf.js.map +1 -1
- package/dist/chunks/show-case.44e995fc.js.map +1 -1
- package/dist/chunks/show-cases.c3921ea0.js.map +1 -1
- package/dist/chunks/space-chat-guide.b9f77cb5.js +3 -0
- package/dist/chunks/space-chat-guide.b9f77cb5.js.map +1 -0
- package/dist/chunks/space-logo.994f7a25.js.map +1 -1
- package/dist/chunks/space-workbench.9d48eec0.js +2 -0
- package/dist/chunks/space-workbench.9d48eec0.js.map +1 -0
- package/dist/chunks/stage-flow.9b6fad93.js.map +1 -1
- package/dist/chunks/stat-with-mini-chart.1509cf8c.js.map +1 -1
- package/dist/chunks/sticky-container.d3f7054e.js.map +1 -1
- package/dist/chunks/tab-list.ee97567f.js.map +1 -1
- package/dist/examples.json +56 -44
- package/dist/index.34851313.js +2 -0
- package/dist/index.34851313.js.map +1 -0
- package/dist/manifest.json +624 -343
- package/dist/types.json +1309 -1309
- package/dist-types/action-buttons/i18n.d.ts +1 -1
- package/dist-types/action-buttons/index.d.ts +10 -1
- package/dist-types/activity-timeline/i18n.d.ts +1 -1
- package/dist-types/activity-timeline/index.d.ts +10 -1
- package/dist-types/ai-agents/i18n.d.ts +1 -1
- package/dist-types/ai-agents/index.d.ts +10 -1
- package/dist-types/ai-employees/i18n.d.ts +1 -1
- package/dist-types/ai-employees/index.d.ts +16 -1
- package/dist-types/blank-state/index.d.ts +10 -1
- package/dist-types/chat-box/i18n.d.ts +1 -1
- package/dist-types/chat-input/i18n.d.ts +1 -1
- package/dist-types/chat-input/index.d.ts +37 -1
- package/dist-types/chat-panel/ChatPanelContent.d.ts +2 -2
- package/dist-types/chat-panel/index.d.ts +48 -6
- package/dist-types/chat-stream/Aside/FlowApp/i18n.d.ts +1 -1
- package/dist-types/chat-stream/i18n.d.ts +1 -1
- package/dist-types/chat-stream/index.d.ts +62 -1
- package/dist-types/cruise-canvas/NodeReplay/i18n.d.ts +1 -1
- package/dist-types/cruise-canvas/ToolCallDetail/i18n.d.ts +1 -1
- package/dist-types/cruise-canvas/i18n.d.ts +1 -1
- package/dist-types/cruise-canvas/index.d.ts +71 -1
- package/dist-types/dropdown-select/i18n.d.ts +1 -1
- package/dist-types/dropdown-select/index.d.ts +3 -1
- package/dist-types/elevo-card/index.d.ts +5 -1
- package/dist-types/elevo-logo/index.d.ts +3 -1
- package/dist-types/elevo-sidebar/i18n.d.ts +1 -1
- package/dist-types/elevo-sidebar/index.d.ts +19 -2
- package/dist-types/flow-tabs/index.d.ts +5 -1
- package/dist-types/gantt-chart/i18n.d.ts +1 -1
- package/dist-types/gantt-chart/index.d.ts +3 -1
- package/dist-types/goal-card-list/i18n.d.ts +1 -1
- package/dist-types/goal-card-list/index.d.ts +8 -1
- package/dist-types/home-container/index.d.ts +4 -1
- package/dist-types/icon-button/index.d.ts +4 -1
- package/dist-types/mcp-tools/i18n.d.ts +1 -1
- package/dist-types/mcp-tools/index.d.ts +3 -1
- package/dist-types/notice-dropdown/i18n.d.ts +1 -1
- package/dist-types/notice-list/i18n.d.ts +1 -1
- package/dist-types/page-container/index.d.ts +7 -0
- package/dist-types/preview-container/i18n.d.ts +1 -1
- package/dist-types/preview-container/index.d.ts +4 -0
- package/dist-types/project-conversations/i18n.d.ts +1 -1
- package/dist-types/project-knowledges/i18n.d.ts +1 -1
- package/dist-types/project-knowledges/index.d.ts +5 -0
- package/dist-types/running-flow/index.d.ts +3 -0
- package/dist-types/shared/ActivityPlan/i18n.d.ts +1 -1
- package/dist-types/shared/AskUser/i18n.d.ts +1 -1
- package/dist-types/shared/ChatBox/i18n.d.ts +1 -1
- package/dist-types/shared/CreatedView/i18n.d.ts +1 -1
- package/dist-types/shared/FilePreview/i18n.d.ts +1 -1
- package/dist-types/shared/FileUpload/i18n.d.ts +1 -1
- package/dist-types/shared/NodeFeedback/i18n.d.ts +1 -1
- package/dist-types/show-case/i18n.d.ts +1 -1
- package/dist-types/show-case/index.d.ts +5 -0
- package/dist-types/show-cases/i18n.d.ts +1 -1
- package/dist-types/show-cases/index.d.ts +4 -0
- package/dist-types/space-workbench/chat-panel-welcome/i18n.d.ts +1 -1
- package/dist-types/space-workbench/chat-panel-welcome/index.d.ts +3 -0
- package/dist-types/space-workbench/i18n.d.ts +1 -1
- package/dist-types/space-workbench/index.d.ts +7 -0
- package/dist-types/space-workbench/space-chat-guide/i18n.d.ts +1 -1
- package/dist-types/space-workbench/space-chat-guide/index.d.ts +3 -0
- package/dist-types/space-workbench/space-logo/index.d.ts +1 -0
- package/dist-types/stage-flow/i18n.d.ts +1 -1
- package/dist-types/stage-flow/index.d.ts +21 -0
- package/dist-types/stat-with-mini-chart/index.d.ts +10 -0
- package/dist-types/sticky-container/index.d.ts +3 -0
- package/dist-types/tab-list/index.d.ts +4 -0
- package/docs/action-buttons.md +59 -10
- package/docs/action-buttons.react.md +80 -0
- package/docs/activity-timeline.md +51 -7
- package/docs/activity-timeline.react.md +109 -0
- package/docs/ai-agents.md +62 -2
- package/docs/ai-agents.react.md +73 -0
- package/docs/ai-employees.md +76 -2
- package/docs/ai-employees.react.md +106 -0
- package/docs/blank-state.md +62 -2
- package/docs/blank-state.react.md +77 -0
- package/docs/chat-box.md +134 -52
- package/docs/chat-box.react.md +142 -0
- package/docs/chat-input.md +117 -1
- package/docs/chat-input.react.md +117 -0
- package/docs/chat-panel-welcome.md +39 -0
- package/docs/chat-panel-welcome.react.md +41 -0
- package/docs/chat-panel.md +86 -3
- package/docs/chat-panel.react.md +109 -0
- package/docs/chat-stream.md +149 -2
- package/docs/chat-stream.react.md +155 -0
- package/docs/cruise-canvas.md +159 -0
- package/docs/cruise-canvas.react.md +159 -0
- package/docs/dropdown-select.md +37 -8
- package/docs/dropdown-select.react.md +144 -0
- package/docs/elevo-card.md +75 -1
- package/docs/elevo-card.react.md +104 -0
- package/docs/elevo-logo.md +13 -1
- package/docs/elevo-logo.react.md +27 -0
- package/docs/elevo-sidebar.md +150 -1
- package/docs/elevo-sidebar.react.md +149 -0
- package/docs/flow-tabs.md +97 -2
- package/docs/flow-tabs.react.md +102 -0
- package/docs/gantt-chart.md +101 -0
- package/docs/gantt-chart.react.md +125 -0
- package/docs/goal-card-list.md +149 -13
- package/docs/goal-card-list.react.md +185 -0
- package/docs/home-container.md +48 -2
- package/docs/home-container.react.md +51 -0
- package/docs/icon-button.md +128 -2
- package/docs/icon-button.react.md +120 -0
- package/docs/mcp-tools.md +105 -2
- package/docs/mcp-tools.react.md +117 -0
- package/docs/notice-dropdown.md +53 -10
- package/docs/notice-dropdown.react.md +167 -0
- package/docs/notice-list.md +53 -5
- package/docs/notice-list.react.md +121 -0
- package/docs/page-container.md +80 -3
- package/docs/page-container.react.md +83 -0
- package/docs/preview-container.md +22 -32
- package/docs/preview-container.react.md +71 -0
- package/docs/project-conversations.md +85 -4
- package/docs/project-conversations.react.md +110 -0
- package/docs/project-knowledges.md +73 -8
- package/docs/project-knowledges.react.md +85 -0
- package/docs/running-flow.md +57 -2
- package/docs/running-flow.react.md +90 -0
- package/docs/show-case.md +48 -3
- package/docs/show-case.react.md +60 -0
- package/docs/show-cases.md +52 -2
- package/docs/show-cases.react.md +92 -0
- package/docs/space-chat-guide.md +32 -0
- package/docs/space-chat-guide.react.md +39 -0
- package/docs/space-logo.md +53 -0
- package/docs/space-logo.react.md +46 -0
- package/docs/space-workbench.md +45 -2
- package/docs/space-workbench.react.md +102 -0
- package/docs/stage-flow.md +122 -26
- package/docs/stage-flow.react.md +112 -0
- package/docs/stat-with-mini-chart.md +64 -159
- package/docs/stat-with-mini-chart.react.md +113 -0
- package/docs/sticky-container.md +56 -3
- package/docs/sticky-container.react.md +60 -0
- package/docs/tab-list.md +74 -3
- package/docs/tab-list.react.md +73 -0
- package/package.json +2 -2
- package/dist/chunks/1097.9e80dcca.js +0 -3
- package/dist/chunks/1097.9e80dcca.js.map +0 -1
- package/dist/chunks/2341.0e70532b.js +0 -2
- package/dist/chunks/2341.0e70532b.js.map +0 -1
- package/dist/chunks/3171.45ef4669.js +0 -2
- package/dist/chunks/3171.45ef4669.js.map +0 -1
- package/dist/chunks/3573.7b0bb780.js +0 -3
- package/dist/chunks/3573.7b0bb780.js.map +0 -1
- package/dist/chunks/4459.dbfa8706.js +0 -3
- package/dist/chunks/4459.dbfa8706.js.map +0 -1
- package/dist/chunks/4837.570099ad.js +0 -2
- package/dist/chunks/4837.570099ad.js.map +0 -1
- package/dist/chunks/5399.501fc322.js +0 -2
- package/dist/chunks/5399.501fc322.js.map +0 -1
- package/dist/chunks/5552.09658542.js +0 -2
- package/dist/chunks/5552.09658542.js.map +0 -1
- package/dist/chunks/6380.b8610c4b.js +0 -3
- package/dist/chunks/6380.b8610c4b.js.map +0 -1
- package/dist/chunks/7202.a893b0e6.js +0 -3
- package/dist/chunks/7202.a893b0e6.js.map +0 -1
- package/dist/chunks/948.e601f18c.js +0 -3
- package/dist/chunks/948.e601f18c.js.map +0 -1
- package/dist/chunks/9599.02a5e6e3.js +0 -2
- package/dist/chunks/9599.02a5e6e3.js.map +0 -1
- package/dist/chunks/9848.4b1f38c9.js +0 -3
- package/dist/chunks/9848.4b1f38c9.js.LICENSE.txt +0 -1
- package/dist/chunks/9848.4b1f38c9.js.map +0 -1
- package/dist/chunks/chat-box.1ac7555a.js +0 -3
- package/dist/chunks/chat-box.1ac7555a.js.map +0 -1
- package/dist/chunks/chat-input.444c80bb.js +0 -3
- package/dist/chunks/chat-input.444c80bb.js.map +0 -1
- package/dist/chunks/chat-panel.3160f2e8.js.map +0 -1
- package/dist/chunks/elevo-sidebar.a197a77f.js +0 -3
- package/dist/chunks/elevo-sidebar.a197a77f.js.map +0 -1
- package/dist/chunks/main.9d171af9.js +0 -2
- package/dist/chunks/main.9d171af9.js.map +0 -1
- package/dist/chunks/space-chat-guide.84f4a1e7.js +0 -3
- package/dist/chunks/space-chat-guide.84f4a1e7.js.map +0 -1
- package/dist/chunks/space-workbench.8c064898.js +0 -2
- package/dist/chunks/space-workbench.8c064898.js.map +0 -1
- package/dist/index.0edd6320.js +0 -2
- package/dist/index.0edd6320.js.map +0 -1
- /package/dist/chunks/{3573.7b0bb780.js.LICENSE.txt → 3840.6080d56e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{4459.dbfa8706.js.LICENSE.txt → 551.ae5171a6.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{7202.a893b0e6.js.LICENSE.txt → 7669.6f177bf2.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{6380.b8610c4b.js.LICENSE.txt → 794.214aa08f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{948.e601f18c.js.LICENSE.txt → 948.c96c7036.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-box.1ac7555a.js.LICENSE.txt → chat-box.060b8727.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-input.444c80bb.js.LICENSE.txt → chat-input.e913e9ed.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{elevo-sidebar.a197a77f.js.LICENSE.txt → elevo-sidebar.dfaaf9d1.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{space-chat-guide.84f4a1e7.js.LICENSE.txt → space-chat-guide.b9f77cb5.js.LICENSE.txt} +0 -0
package/docs/action-buttons.md
CHANGED
|
@@ -1,31 +1,80 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
tagName: ai-portal.action-buttons
|
|
3
|
+
displayName: WrappedAiPortalActionButtons
|
|
4
|
+
description: 动作按钮组,支持选中状态切换,用于聊天框的功能入口。
|
|
5
|
+
category: ai-portal
|
|
6
|
+
source: "@next-bricks/ai-portal"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# ai-portal.action-buttons
|
|
10
|
+
|
|
11
|
+
> 动作按钮组,支持选中状态切换,用于聊天框的功能入口。
|
|
12
|
+
|
|
13
|
+
## Props
|
|
14
|
+
|
|
15
|
+
| 属性 | 类型 | 必填 | 默认值 | 说明 |
|
|
16
|
+
| --------- | ----------------------------- | ---- | ------ | ---------------------------------------------------------- |
|
|
17
|
+
| items | `ActionItem[] \| undefined` | 否 | - | 按钮列表配置,每项包含文本、唯一键值及可选图标 |
|
|
18
|
+
| activeKey | `string \| null \| undefined` | 否 | - | 当前选中按钮的键值,选中后显示删除图标,再次点击可取消选中 |
|
|
19
|
+
|
|
20
|
+
## Events
|
|
21
|
+
|
|
22
|
+
| 事件 | detail | 说明 |
|
|
23
|
+
| ------ | ------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
|
|
24
|
+
| change | `ActionItem \| null` — { key: 按钮键值, text: 按钮文本, icon: 按钮图标 } \| null — 选中时为选中的 ActionItem,取消选中时为 null | 选中或取消选中动作按钮时触发 |
|
|
2
25
|
|
|
3
26
|
## Examples
|
|
4
27
|
|
|
5
28
|
### Basic
|
|
6
29
|
|
|
30
|
+
展示动作按钮组的基本用法,点击按钮切换选中状态。
|
|
31
|
+
|
|
7
32
|
```yaml preview
|
|
8
33
|
brick: ai-portal.chat-box
|
|
9
34
|
children:
|
|
10
35
|
- brick: ai-portal.action-buttons
|
|
36
|
+
slot: actions
|
|
11
37
|
properties:
|
|
12
38
|
items:
|
|
13
|
-
-
|
|
39
|
+
- key: think
|
|
14
40
|
text: 深度思考
|
|
15
41
|
icon:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
-
|
|
42
|
+
lib: antd
|
|
43
|
+
theme: outlined
|
|
44
|
+
icon: reddit
|
|
45
|
+
- key: networking
|
|
20
46
|
text: 联网搜索
|
|
21
47
|
icon:
|
|
22
48
|
lib: antd
|
|
23
49
|
theme: outlined
|
|
24
50
|
icon: global
|
|
25
51
|
events:
|
|
26
|
-
|
|
27
|
-
action: console.log
|
|
28
|
-
networking:
|
|
52
|
+
change:
|
|
29
53
|
action: console.log
|
|
30
|
-
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### With activeKey
|
|
57
|
+
|
|
58
|
+
通过 `activeKey` 属性预设选中的按钮。
|
|
59
|
+
|
|
60
|
+
```yaml preview
|
|
61
|
+
brick: ai-portal.action-buttons
|
|
62
|
+
properties:
|
|
63
|
+
activeKey: think
|
|
64
|
+
items:
|
|
65
|
+
- key: think
|
|
66
|
+
text: 深度思考
|
|
67
|
+
icon:
|
|
68
|
+
lib: antd
|
|
69
|
+
theme: outlined
|
|
70
|
+
icon: reddit
|
|
71
|
+
- key: networking
|
|
72
|
+
text: 联网搜索
|
|
73
|
+
icon:
|
|
74
|
+
lib: antd
|
|
75
|
+
theme: outlined
|
|
76
|
+
icon: global
|
|
77
|
+
events:
|
|
78
|
+
change:
|
|
79
|
+
action: console.log
|
|
31
80
|
```
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
tagName: ai-portal.action-buttons
|
|
3
|
+
displayName: WrappedAiPortalActionButtons
|
|
4
|
+
description: 动作按钮组,支持选中状态切换,用于聊天框的功能入口。
|
|
5
|
+
category: ai-portal
|
|
6
|
+
source: "@next-bricks/ai-portal"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# WrappedAiPortalActionButtons
|
|
10
|
+
|
|
11
|
+
> 动作按钮组,支持选中状态切换,用于聊天框的功能入口。
|
|
12
|
+
|
|
13
|
+
## 导入
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { WrappedAiPortalActionButtons } from "@easyops/wrapped-components";
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Props
|
|
20
|
+
|
|
21
|
+
| 属性 | 类型 | 必填 | 默认值 | 说明 |
|
|
22
|
+
| --------- | ----------------------------- | ---- | ------ | ---------------------------------------------------------- |
|
|
23
|
+
| items | `ActionItem[] \| undefined` | 否 | - | 按钮列表配置,每项包含文本、唯一键值及可选图标 |
|
|
24
|
+
| activeKey | `string \| null \| undefined` | 否 | - | 当前选中按钮的键值,选中后显示删除图标,再次点击可取消选中 |
|
|
25
|
+
|
|
26
|
+
## Events
|
|
27
|
+
|
|
28
|
+
| 事件 | detail | 说明 |
|
|
29
|
+
| -------- | ------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
|
|
30
|
+
| onChange | `ActionItem \| null` — { key: 按钮键值, text: 按钮文本, icon: 按钮图标 } \| null — 选中时为选中的 ActionItem,取消选中时为 null | 选中或取消选中动作按钮时触发 |
|
|
31
|
+
|
|
32
|
+
## Examples
|
|
33
|
+
|
|
34
|
+
### Basic
|
|
35
|
+
|
|
36
|
+
展示动作按钮组的基本用法,点击按钮切换选中状态。
|
|
37
|
+
|
|
38
|
+
```tsx
|
|
39
|
+
<WrappedAiPortalChatBox>
|
|
40
|
+
<WrappedAiPortalActionButtons
|
|
41
|
+
slot="actions"
|
|
42
|
+
items={[
|
|
43
|
+
{
|
|
44
|
+
key: "think",
|
|
45
|
+
text: "深度思考",
|
|
46
|
+
icon: { lib: "antd", theme: "outlined", icon: "reddit" },
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
key: "networking",
|
|
50
|
+
text: "联网搜索",
|
|
51
|
+
icon: { lib: "antd", theme: "outlined", icon: "global" },
|
|
52
|
+
},
|
|
53
|
+
]}
|
|
54
|
+
onChange={(e) => console.log(e.detail)}
|
|
55
|
+
/>
|
|
56
|
+
</WrappedAiPortalChatBox>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### With activeKey
|
|
60
|
+
|
|
61
|
+
通过 `activeKey` 属性预设选中的按钮。
|
|
62
|
+
|
|
63
|
+
```tsx
|
|
64
|
+
<WrappedAiPortalActionButtons
|
|
65
|
+
activeKey="think"
|
|
66
|
+
items={[
|
|
67
|
+
{
|
|
68
|
+
key: "think",
|
|
69
|
+
text: "深度思考",
|
|
70
|
+
icon: { lib: "antd", theme: "outlined", icon: "reddit" },
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
key: "networking",
|
|
74
|
+
text: "联网搜索",
|
|
75
|
+
icon: { lib: "antd", theme: "outlined", icon: "global" },
|
|
76
|
+
},
|
|
77
|
+
]}
|
|
78
|
+
onChange={(e) => console.log(e.detail)}
|
|
79
|
+
/>
|
|
80
|
+
```
|
|
@@ -1,9 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
tagName: ai-portal.activity-timeline
|
|
3
|
+
displayName: WrappedAiPortalActivityTimeline
|
|
4
|
+
description: 活动时间线,展示目标的操作历史记录,支持多种动作类型的可视化展示。
|
|
5
|
+
category: ai-portal
|
|
6
|
+
source: "@next-bricks/ai-portal"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# ai-portal.activity-timeline
|
|
10
|
+
|
|
11
|
+
> 活动时间线,展示目标的操作历史记录,支持多种动作类型的可视化展示。
|
|
12
|
+
|
|
13
|
+
## Props
|
|
14
|
+
|
|
15
|
+
| 属性 | 类型 | 必填 | 默认值 | 说明 |
|
|
16
|
+
| --------------- | ------------------------- | ---- | ------ | ---------------------------------------------------------------------- |
|
|
17
|
+
| list | `Activity[] \| undefined` | 否 | - | 活动记录列表 |
|
|
18
|
+
| chatUrlTemplate | `string \| undefined` | 否 | - | 跳转到对话详情页的 URL 模板,支持 {conversation_id} 等活动记录字段插值 |
|
|
2
19
|
|
|
3
20
|
## Examples
|
|
4
21
|
|
|
5
22
|
### Basic
|
|
6
23
|
|
|
24
|
+
展示活动时间线的基本用法,渲染包含多种动作类型的操作历史记录。
|
|
25
|
+
|
|
7
26
|
```yaml preview
|
|
8
27
|
brick: ai-portal.activity-timeline
|
|
9
28
|
properties:
|
|
@@ -18,7 +37,8 @@ properties:
|
|
|
18
37
|
time: 1757863597
|
|
19
38
|
metadata:
|
|
20
39
|
after:
|
|
21
|
-
|
|
40
|
+
owner:
|
|
41
|
+
user_name: Lucy
|
|
22
42
|
- user_id: u002
|
|
23
43
|
user_name: Lucy
|
|
24
44
|
action_type: start_conversation
|
|
@@ -33,18 +53,20 @@ properties:
|
|
|
33
53
|
metadata:
|
|
34
54
|
sub_goals_count: 2
|
|
35
55
|
sub_goals:
|
|
36
|
-
- title:
|
|
37
|
-
- title:
|
|
56
|
+
- title: 先计划
|
|
57
|
+
- title: 再执行
|
|
38
58
|
- user_id: u002
|
|
39
59
|
user_name: Lucy
|
|
40
60
|
action_type: alter_user
|
|
41
61
|
time: 1757904096
|
|
42
62
|
metadata:
|
|
43
63
|
before:
|
|
44
|
-
|
|
64
|
+
users:
|
|
65
|
+
- user_name: Jim
|
|
45
66
|
after:
|
|
46
|
-
|
|
47
|
-
|
|
67
|
+
users:
|
|
68
|
+
- user_name: Joy
|
|
69
|
+
- user_name: Green
|
|
48
70
|
- user_id: u001
|
|
49
71
|
user_name: Tom
|
|
50
72
|
action_type: add_comment
|
|
@@ -52,3 +74,25 @@ properties:
|
|
|
52
74
|
metadata:
|
|
53
75
|
comment_content: Good!
|
|
54
76
|
```
|
|
77
|
+
|
|
78
|
+
### With Chat URL Template
|
|
79
|
+
|
|
80
|
+
配置 chatUrlTemplate 属性,使对话链接可点击跳转。
|
|
81
|
+
|
|
82
|
+
```yaml preview
|
|
83
|
+
brick: ai-portal.activity-timeline
|
|
84
|
+
properties:
|
|
85
|
+
chatUrlTemplate: /chat/{conversation_id}
|
|
86
|
+
list:
|
|
87
|
+
- user_id: u002
|
|
88
|
+
user_name: Lucy
|
|
89
|
+
action_type: start_conversation
|
|
90
|
+
time: 1757904096
|
|
91
|
+
metadata:
|
|
92
|
+
conversation_id: c001
|
|
93
|
+
conversation_title: 项目规划
|
|
94
|
+
- user_id: u001
|
|
95
|
+
user_name: Tom
|
|
96
|
+
action_type: create_goal
|
|
97
|
+
time: 1757853597
|
|
98
|
+
```
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
---
|
|
2
|
+
tagName: ai-portal.activity-timeline
|
|
3
|
+
displayName: WrappedAiPortalActivityTimeline
|
|
4
|
+
description: 活动时间线,展示目标的操作历史记录,支持多种动作类型的可视化展示。
|
|
5
|
+
category: ai-portal
|
|
6
|
+
source: "@next-bricks/ai-portal"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# WrappedAiPortalActivityTimeline
|
|
10
|
+
|
|
11
|
+
> 活动时间线,展示目标的操作历史记录,支持多种动作类型的可视化展示。
|
|
12
|
+
|
|
13
|
+
## 导入
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { WrappedAiPortalActivityTimeline } from "@easyops/wrapped-components";
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Props
|
|
20
|
+
|
|
21
|
+
| 属性 | 类型 | 必填 | 默认值 | 说明 |
|
|
22
|
+
| --------------- | ------------------------- | ---- | ------ | ---------------------------------------------------------------------- |
|
|
23
|
+
| list | `Activity[] \| undefined` | 否 | - | 活动记录列表 |
|
|
24
|
+
| chatUrlTemplate | `string \| undefined` | 否 | - | 跳转到对话详情页的 URL 模板,支持 {conversation_id} 等活动记录字段插值 |
|
|
25
|
+
|
|
26
|
+
## Examples
|
|
27
|
+
|
|
28
|
+
### Basic
|
|
29
|
+
|
|
30
|
+
展示活动时间线的基本用法,渲染包含多种动作类型的操作历史记录。
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
<WrappedAiPortalActivityTimeline
|
|
34
|
+
list={[
|
|
35
|
+
{
|
|
36
|
+
user_id: "u001",
|
|
37
|
+
user_name: "Tom",
|
|
38
|
+
action_type: "create_goal",
|
|
39
|
+
time: 1757853597,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
user_id: "u001",
|
|
43
|
+
user_name: "Tom",
|
|
44
|
+
action_type: "alter_owner",
|
|
45
|
+
time: 1757863597,
|
|
46
|
+
metadata: { after: { owner: { user_name: "Lucy" } } },
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
user_id: "u002",
|
|
50
|
+
user_name: "Lucy",
|
|
51
|
+
action_type: "start_conversation",
|
|
52
|
+
time: 1757904096,
|
|
53
|
+
metadata: { conversation_id: "c001", conversation_title: "项目规划" },
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
user_id: "u002",
|
|
57
|
+
user_name: "Lucy",
|
|
58
|
+
action_type: "decompose_goals",
|
|
59
|
+
time: 1757904096,
|
|
60
|
+
metadata: {
|
|
61
|
+
sub_goals_count: 2,
|
|
62
|
+
sub_goals: [{ title: "先计划" }, { title: "再执行" }],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
user_id: "u002",
|
|
67
|
+
user_name: "Lucy",
|
|
68
|
+
action_type: "alter_user",
|
|
69
|
+
time: 1757904096,
|
|
70
|
+
metadata: {
|
|
71
|
+
before: { users: [{ user_name: "Jim" }] },
|
|
72
|
+
after: { users: [{ user_name: "Joy" }, { user_name: "Green" }] },
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
user_id: "u001",
|
|
77
|
+
user_name: "Tom",
|
|
78
|
+
action_type: "add_comment",
|
|
79
|
+
time: 1757904096,
|
|
80
|
+
metadata: { comment_content: "Good!" },
|
|
81
|
+
},
|
|
82
|
+
]}
|
|
83
|
+
/>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### With Chat URL Template
|
|
87
|
+
|
|
88
|
+
配置 chatUrlTemplate 属性,使对话链接可点击跳转。
|
|
89
|
+
|
|
90
|
+
```tsx
|
|
91
|
+
<WrappedAiPortalActivityTimeline
|
|
92
|
+
chatUrlTemplate="/chat/{conversation_id}"
|
|
93
|
+
list={[
|
|
94
|
+
{
|
|
95
|
+
user_id: "u002",
|
|
96
|
+
user_name: "Lucy",
|
|
97
|
+
action_type: "start_conversation",
|
|
98
|
+
time: 1757904096,
|
|
99
|
+
metadata: { conversation_id: "c001", conversation_title: "项目规划" },
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
user_id: "u001",
|
|
103
|
+
user_name: "Tom",
|
|
104
|
+
action_type: "create_goal",
|
|
105
|
+
time: 1757853597,
|
|
106
|
+
},
|
|
107
|
+
]}
|
|
108
|
+
/>
|
|
109
|
+
```
|
package/docs/ai-agents.md
CHANGED
|
@@ -1,11 +1,71 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
tagName: ai-portal.ai-agents
|
|
3
|
+
displayName: WrappedAiPortalAiAgents
|
|
4
|
+
description: AI Agents 卡片列表,展示可用的 AI 智能体,支持点击跳转到对应详情页。
|
|
5
|
+
category: ai-portal
|
|
6
|
+
source: "@next-bricks/ai-portal"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# ai-portal.ai-agents
|
|
10
|
+
|
|
11
|
+
> AI Agents 卡片列表,展示可用的 AI 智能体,支持点击跳转到对应详情页。
|
|
12
|
+
|
|
13
|
+
## Props
|
|
14
|
+
|
|
15
|
+
| 属性 | 类型 | 必填 | 默认值 | 说明 |
|
|
16
|
+
| ----------- | ---------------------- | ---- | ------ | ------------------------------------------------------------- |
|
|
17
|
+
| list | `Agent[] \| undefined` | 否 | - | AI Agent 列表数据 |
|
|
18
|
+
| urlTemplate | `string \| undefined` | 否 | - | 跳转到 Agent 详情页的 URL 模板,支持 {name} 等 Agent 字段插值 |
|
|
2
19
|
|
|
3
20
|
## Examples
|
|
4
21
|
|
|
5
22
|
### Basic
|
|
6
23
|
|
|
24
|
+
展示 AI Agents 卡片列表的基本用法。
|
|
25
|
+
|
|
26
|
+
```yaml preview
|
|
27
|
+
brick: ai-portal.ai-agents
|
|
28
|
+
properties:
|
|
29
|
+
list:
|
|
30
|
+
- name: 运维专家
|
|
31
|
+
description: 擅长处理服务器运维、故障排查和性能优化等问题。
|
|
32
|
+
icon:
|
|
33
|
+
lib: antd
|
|
34
|
+
icon: tool
|
|
35
|
+
tags:
|
|
36
|
+
- 运维
|
|
37
|
+
- 故障排查
|
|
38
|
+
- name: 数据分析师
|
|
39
|
+
description: 专注于数据处理、报表生成和趋势分析。
|
|
40
|
+
icon:
|
|
41
|
+
lib: antd
|
|
42
|
+
icon: bar-chart
|
|
43
|
+
tags:
|
|
44
|
+
- 数据
|
|
45
|
+
- 分析
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### With URL Template
|
|
49
|
+
|
|
50
|
+
配置 urlTemplate 属性,使每个 Agent 卡片点击后跳转到对应详情页。
|
|
51
|
+
|
|
7
52
|
```yaml preview
|
|
8
53
|
brick: ai-portal.ai-agents
|
|
9
54
|
properties:
|
|
10
|
-
|
|
55
|
+
urlTemplate: /agents/{name}
|
|
56
|
+
list:
|
|
57
|
+
- name: 运维专家
|
|
58
|
+
description: 擅长处理服务器运维、故障排查和性能优化等问题。
|
|
59
|
+
icon:
|
|
60
|
+
lib: antd
|
|
61
|
+
icon: tool
|
|
62
|
+
tags:
|
|
63
|
+
- 运维
|
|
64
|
+
- name: 数据分析师
|
|
65
|
+
description: 专注于数据处理、报表生成和趋势分析。
|
|
66
|
+
icon:
|
|
67
|
+
lib: antd
|
|
68
|
+
icon: bar-chart
|
|
69
|
+
tags:
|
|
70
|
+
- 数据
|
|
11
71
|
```
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
tagName: ai-portal.ai-agents
|
|
3
|
+
displayName: WrappedAiPortalAiAgents
|
|
4
|
+
description: AI Agents 卡片列表,展示可用的 AI 智能体,支持点击跳转到对应详情页。
|
|
5
|
+
category: ai-portal
|
|
6
|
+
source: "@next-bricks/ai-portal"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# WrappedAiPortalAiAgents
|
|
10
|
+
|
|
11
|
+
> AI Agents 卡片列表,展示可用的 AI 智能体,支持点击跳转到对应详情页。
|
|
12
|
+
|
|
13
|
+
## 导入
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { WrappedAiPortalAiAgents } from "@easyops/wrapped-components";
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Props
|
|
20
|
+
|
|
21
|
+
| 属性 | 类型 | 必填 | 默认值 | 说明 |
|
|
22
|
+
| ----------- | ---------------------- | ---- | ------ | ------------------------------------------------------------- |
|
|
23
|
+
| list | `Agent[] \| undefined` | 否 | - | AI Agent 列表数据 |
|
|
24
|
+
| urlTemplate | `string \| undefined` | 否 | - | 跳转到 Agent 详情页的 URL 模板,支持 {name} 等 Agent 字段插值 |
|
|
25
|
+
|
|
26
|
+
## Examples
|
|
27
|
+
|
|
28
|
+
### Basic
|
|
29
|
+
|
|
30
|
+
展示 AI Agents 卡片列表的基本用法。
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
<WrappedAiPortalAiAgents
|
|
34
|
+
list={[
|
|
35
|
+
{
|
|
36
|
+
name: "运维专家",
|
|
37
|
+
description: "擅长处理服务器运维、故障排查和性能优化等问题。",
|
|
38
|
+
icon: { lib: "antd", icon: "tool" },
|
|
39
|
+
tags: ["运维", "故障排查"],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "数据分析师",
|
|
43
|
+
description: "专注于数据处理、报表生成和趋势分析。",
|
|
44
|
+
icon: { lib: "antd", icon: "bar-chart" },
|
|
45
|
+
tags: ["数据", "分析"],
|
|
46
|
+
},
|
|
47
|
+
]}
|
|
48
|
+
/>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### With URL Template
|
|
52
|
+
|
|
53
|
+
配置 urlTemplate 属性,使每个 Agent 卡片点击后跳转到对应详情页。
|
|
54
|
+
|
|
55
|
+
```tsx
|
|
56
|
+
<WrappedAiPortalAiAgents
|
|
57
|
+
urlTemplate="/agents/{name}"
|
|
58
|
+
list={[
|
|
59
|
+
{
|
|
60
|
+
name: "运维专家",
|
|
61
|
+
description: "擅长处理服务器运维、故障排查和性能优化等问题。",
|
|
62
|
+
icon: { lib: "antd", icon: "tool" },
|
|
63
|
+
tags: ["运维"],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "数据分析师",
|
|
67
|
+
description: "专注于数据处理、报表生成和趋势分析。",
|
|
68
|
+
icon: { lib: "antd", icon: "bar-chart" },
|
|
69
|
+
tags: ["数据"],
|
|
70
|
+
},
|
|
71
|
+
]}
|
|
72
|
+
/>
|
|
73
|
+
```
|
package/docs/ai-employees.md
CHANGED
|
@@ -1,11 +1,85 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
tagName: ai-portal.ai-employees
|
|
3
|
+
displayName: WrappedAiPortalAiEmployees
|
|
4
|
+
description: AI 数字人卡片列表,按行业和角色分组展示,支持 Tab 切换行业和点击跳转。
|
|
5
|
+
category: ai-portal
|
|
6
|
+
source: "@next-bricks/ai-portal"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# ai-portal.ai-employees
|
|
10
|
+
|
|
11
|
+
> AI 数字人卡片列表,按行业和角色分组展示,支持 Tab 切换行业和点击跳转。
|
|
12
|
+
|
|
13
|
+
## Props
|
|
14
|
+
|
|
15
|
+
| 属性 | 类型 | 必填 | 默认值 | 说明 |
|
|
16
|
+
| ----------- | ------------------------- | ---- | ------ | ----------------------------------------------------------------------- |
|
|
17
|
+
| list | `Employee[] \| undefined` | 否 | - | 数字人列表数据 |
|
|
18
|
+
| industries | `string[] \| undefined` | 否 | - | 行业列表,用于指定 Tab 的顺序,未在此列表中的行业将按出现顺序附加在末尾 |
|
|
19
|
+
| urlTemplate | `string \| undefined` | 否 | - | 跳转到数字人详情页的 URL 模板,支持 {name} 等数字人字段插值 |
|
|
20
|
+
| stickyTop | `number \| undefined` | 否 | - | 行业 Tab 栏吸顶时距顶部的距离(px),不设置则不吸顶 |
|
|
2
21
|
|
|
3
22
|
## Examples
|
|
4
23
|
|
|
5
24
|
### Basic
|
|
6
25
|
|
|
26
|
+
展示 AI 数字人卡片列表,按行业 Tab 分组浏览。
|
|
27
|
+
|
|
28
|
+
```yaml preview
|
|
29
|
+
brick: ai-portal.ai-employees
|
|
30
|
+
properties:
|
|
31
|
+
list:
|
|
32
|
+
- name: 运维工程师小李
|
|
33
|
+
industry: IT
|
|
34
|
+
role: 运维专家
|
|
35
|
+
description: 专注于服务器运维和故障处理。
|
|
36
|
+
- name: 开发工程师小王
|
|
37
|
+
industry: IT
|
|
38
|
+
role: 开发专家
|
|
39
|
+
description: 擅长全栈开发和架构设计。
|
|
40
|
+
- name: 数据分析师小张
|
|
41
|
+
industry: 金融
|
|
42
|
+
role: 数据分析
|
|
43
|
+
description: 专注于金融数据分析和风险评估。
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### With URL Template
|
|
47
|
+
|
|
48
|
+
配置 urlTemplate 属性,使每个数字人卡片点击后跳转到对应详情页。
|
|
49
|
+
|
|
50
|
+
```yaml preview
|
|
51
|
+
brick: ai-portal.ai-employees
|
|
52
|
+
properties:
|
|
53
|
+
urlTemplate: /employees/{name}
|
|
54
|
+
list:
|
|
55
|
+
- name: 运维工程师小李
|
|
56
|
+
industry: IT
|
|
57
|
+
role: 运维专家
|
|
58
|
+
description: 专注于服务器运维和故障处理。
|
|
59
|
+
- name: 开发工程师小王
|
|
60
|
+
industry: IT
|
|
61
|
+
role: 开发专家
|
|
62
|
+
description: 擅长全栈开发和架构设计。
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### With Industries and Sticky Tab
|
|
66
|
+
|
|
67
|
+
配置 industries 和 stickyTop 属性,控制行业 Tab 顺序及吸顶效果。
|
|
68
|
+
|
|
7
69
|
```yaml preview
|
|
8
70
|
brick: ai-portal.ai-employees
|
|
9
71
|
properties:
|
|
10
|
-
|
|
72
|
+
industries:
|
|
73
|
+
- 金融
|
|
74
|
+
- IT
|
|
75
|
+
stickyTop: 0
|
|
76
|
+
list:
|
|
77
|
+
- name: 数据分析师小张
|
|
78
|
+
industry: 金融
|
|
79
|
+
role: 数据分析
|
|
80
|
+
description: 专注于金融数据分析和风险评估。
|
|
81
|
+
- name: 运维工程师小李
|
|
82
|
+
industry: IT
|
|
83
|
+
role: 运维专家
|
|
84
|
+
description: 专注于服务器运维和故障处理。
|
|
11
85
|
```
|