@deep-eye/core 1.3.4 → 1.3.6
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/CHANGELOG.md +17 -0
- package/dist/chat-token.css +227 -0
- package/dist/components/chat/ChatApp.vue.d.ts +200 -0
- package/dist/components/chat/ChatApp.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatBot.vue.d.ts +12 -1
- package/dist/components/chat/ChatBot.vue.d.ts.map +1 -1
- package/dist/components/chat/attachments.d.ts +4 -1
- package/dist/components/chat/attachments.d.ts.map +1 -1
- package/dist/components/chat/chatContext.d.ts +3 -2
- package/dist/components/chat/chatContext.d.ts.map +1 -1
- package/dist/components/chat/chatSessionSidebarAssets.d.ts +21 -0
- package/dist/components/chat/chatSessionSidebarAssets.d.ts.map +1 -0
- package/dist/components/chat/chatSessionSidebarTypes.d.ts +67 -0
- package/dist/components/chat/chatSessionSidebarTypes.d.ts.map +1 -0
- package/dist/components/chat/cloudConfig.d.ts +94 -0
- package/dist/components/chat/cloudConfig.d.ts.map +1 -0
- package/dist/components/chat/components/ArtifactList.vue.d.ts +14 -0
- package/dist/components/chat/components/ArtifactList.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatHistorySearchDialog.vue.d.ts +37 -0
- package/dist/components/chat/components/ChatHistorySearchDialog.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatProvider.vue.d.ts +10 -7
- package/dist/components/chat/components/ChatProvider.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSender.vue.d.ts +15 -3
- package/dist/components/chat/components/ChatSender.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSessionExpandHistoryCard.vue.d.ts +34 -0
- package/dist/components/chat/components/ChatSessionExpandHistoryCard.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatSessionHistoryItem.vue.d.ts +21 -0
- package/dist/components/chat/components/ChatSessionHistoryItem.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatSessionLoadingDots.vue.d.ts +11 -0
- package/dist/components/chat/components/ChatSessionLoadingDots.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatSessionOverflowTooltip.vue.d.ts +22 -0
- package/dist/components/chat/components/ChatSessionOverflowTooltip.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatSessionSidebar.vue.d.ts +84 -0
- package/dist/components/chat/components/ChatSessionSidebar.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatSessionSkeleton.vue.d.ts +6 -0
- package/dist/components/chat/components/ChatSessionSkeleton.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatSessionStatusMark.vue.d.ts +15 -0
- package/dist/components/chat/components/ChatSessionStatusMark.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatSkillPanel.vue.d.ts +8 -2
- package/dist/components/chat/components/ChatSkillPanel.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ConversationList.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/html/HtmlRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/screenshotCapture.d.ts +3 -2
- package/dist/components/chat/components/document-viewer/screenshotCapture.d.ts.map +1 -1
- package/dist/components/chat/components/index.d.ts +3 -0
- package/dist/components/chat/components/index.d.ts.map +1 -1
- package/dist/components/chat/composables/chatApiRequest.d.ts +39 -0
- package/dist/components/chat/composables/chatApiRequest.d.ts.map +1 -0
- package/dist/components/chat/composables/chatHistoryApi.d.ts +45 -0
- package/dist/components/chat/composables/chatHistoryApi.d.ts.map +1 -0
- package/dist/components/chat/composables/chatSessionId.d.ts +8 -0
- package/dist/components/chat/composables/chatSessionId.d.ts.map +1 -0
- package/dist/components/chat/composables/fetchModelList.d.ts +2 -0
- package/dist/components/chat/composables/fetchModelList.d.ts.map +1 -1
- package/dist/components/chat/composables/useChatNewSessionEpoch.d.ts +3 -0
- package/dist/components/chat/composables/useChatNewSessionEpoch.d.ts.map +1 -0
- package/dist/components/chat/composables/useChatSessionHistory.d.ts +58 -0
- package/dist/components/chat/composables/useChatSessionHistory.d.ts.map +1 -0
- package/dist/components/chat/composables/useChatSessionSwitch.d.ts +22 -0
- package/dist/components/chat/composables/useChatSessionSwitch.d.ts.map +1 -0
- package/dist/components/chat/composables/useHistoryGroupExpand.d.ts +14 -0
- package/dist/components/chat/composables/useHistoryGroupExpand.d.ts.map +1 -0
- package/dist/components/chat/harness/Tooltip.vue.d.ts +1 -1
- package/dist/components/chat/harness/Tooltip.vue.d.ts.map +1 -1
- package/dist/components/chat/htmlPreview.d.ts +13 -0
- package/dist/components/chat/htmlPreview.d.ts.map +1 -1
- package/dist/components/chat/icons/{ChatTipMenuLucideIcon.vue.d.ts → ChatArtifactFilesIcon.vue.d.ts} +1 -3
- package/dist/components/chat/icons/ChatArtifactFilesIcon.vue.d.ts.map +1 -0
- package/dist/components/chat/icons/ChatTipMenuAssetIcon.vue.d.ts +10 -0
- package/dist/components/chat/icons/ChatTipMenuAssetIcon.vue.d.ts.map +1 -0
- package/dist/components/chat/icons/ChatTipMenuExpertIcon.vue.d.ts +1 -3
- package/dist/components/chat/icons/ChatTipMenuExpertIcon.vue.d.ts.map +1 -1
- package/dist/components/chat/icons/index.d.ts +1 -0
- package/dist/components/chat/icons/index.d.ts.map +1 -1
- package/dist/components/chat/icons/tipMenuItemIcons.d.ts +1 -3
- package/dist/components/chat/icons/tipMenuItemIcons.d.ts.map +1 -1
- package/dist/components/chat/index.d.ts +14 -2
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/mdoc/ArtifactBlock.vue.d.ts +4 -1
- package/dist/components/chat/mdoc/ArtifactBlock.vue.d.ts.map +1 -1
- package/dist/components/chat/mdoc/ArtifactStack.vue.d.ts +13 -0
- package/dist/components/chat/mdoc/ArtifactStack.vue.d.ts.map +1 -0
- package/dist/components/chat/mdoc/ContentNodes.vue.d.ts.map +1 -1
- package/dist/components/chat/mdoc/artifactOpenStrategy.d.ts +1 -1
- package/dist/components/chat/mdoc/artifactOpenStrategy.d.ts.map +1 -1
- package/dist/components/chat/mdoc/artifactStack.d.ts +17 -0
- package/dist/components/chat/mdoc/artifactStack.d.ts.map +1 -0
- package/dist/components/chat/mdoc/index.d.ts +2 -0
- package/dist/components/chat/mdoc/index.d.ts.map +1 -1
- package/dist/components/chat/mdoc/sessionArtifacts.d.ts +20 -0
- package/dist/components/chat/mdoc/sessionArtifacts.d.ts.map +1 -0
- package/dist/components/chat/mentionEditor.d.ts +7 -2
- package/dist/components/chat/mentionEditor.d.ts.map +1 -1
- package/dist/components/chat/sidebarMotion.d.ts +5 -0
- package/dist/components/chat/sidebarMotion.d.ts.map +1 -1
- package/dist/components/chat/types.d.ts +136 -9
- package/dist/components/chat/types.d.ts.map +1 -1
- package/dist/components/skill/api/skillCloudUrl.d.ts.map +1 -1
- package/dist/components/skill/components/ChatSkillCard.vue.d.ts.map +1 -1
- package/dist/components/skill/components/ChatSkillCardSkeleton.vue.d.ts.map +1 -1
- package/dist/components/skill/components/ChatSkillDetailDialog.vue.d.ts.map +1 -1
- package/dist/components/skill/composables/useChatSkills.d.ts +6 -1
- package/dist/components/skill/composables/useChatSkills.d.ts.map +1 -1
- package/dist/components/skill/formatSkillUsageCount.d.ts +3 -0
- package/dist/components/skill/formatSkillUsageCount.d.ts.map +1 -0
- package/dist/components/skill/skillCardModel.d.ts.map +1 -1
- package/dist/components/skill/skillTabs.d.ts +5 -0
- package/dist/components/skill/skillTabs.d.ts.map +1 -0
- package/dist/components/skill/types.d.ts +2 -0
- package/dist/components/skill/types.d.ts.map +1 -1
- package/dist/components/ui/components/UiDialog.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiDropdown.vue.d.ts +8 -4
- package/dist/components/ui/components/UiDropdown.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiMenu.vue.d.ts +9 -3
- package/dist/components/ui/components/UiMenu.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiMenuColumn.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiMenuNestedSubmenu.vue.d.ts +6 -0
- package/dist/components/ui/components/UiMenuNestedSubmenu.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiMenuSubmenuList.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiSearchInput.vue.d.ts +5 -1
- package/dist/components/ui/components/UiSearchInput.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiTabs.vue.d.ts.map +1 -1
- package/dist/components/ui/composables/floatingPosition.d.ts +3 -1
- package/dist/components/ui/composables/floatingPosition.d.ts.map +1 -1
- package/dist/components/ui/composables/index.d.ts +1 -1
- package/dist/components/ui/composables/index.d.ts.map +1 -1
- package/dist/components/ui/composables/useUiDropdown.d.ts +12 -2
- package/dist/components/ui/composables/useUiDropdown.d.ts.map +1 -1
- package/dist/components/ui/composables/useUiMenuFloating.d.ts +5 -2
- package/dist/components/ui/composables/useUiMenuFloating.d.ts.map +1 -1
- package/dist/components/ui/types.d.ts +34 -6
- package/dist/components/ui/types.d.ts.map +1 -1
- package/dist/components/ui/utils/index.d.ts +1 -1
- package/dist/components/ui/utils/index.d.ts.map +1 -1
- package/dist/components/ui/utils/mapDropdownMenuItems.d.ts +6 -1
- package/dist/components/ui/utils/mapDropdownMenuItems.d.ts.map +1 -1
- package/dist/components/ui/utils/menuSubmenu.d.ts +3 -1
- package/dist/components/ui/utils/menuSubmenu.d.ts.map +1 -1
- package/dist/{index-oK2gNaio.js → index-BKxbaGuU.js} +1 -1
- package/dist/{index-GDdWx_nR.cjs → index-BvdV0Eu0.cjs} +1 -1
- package/dist/{index-B9m5lEtT.cjs → index-CPq9HVwe.cjs} +232 -228
- package/dist/{index-B1l7WLyd.js → index-CT4dZd6h.js} +38782 -35178
- package/dist/{index-zKQpqRx4.cjs → index-DHbY1Eq1.cjs} +1 -1
- package/dist/{index-DZFa6Oqy.js → index-YIVH2TCo.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +328 -276
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/components/chat/icons/ChatTipMenuLucideIcon.vue.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,23 @@
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [1.3.6] - 2026-09-01
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `ChatSkillPanel` 支持滚动加载更多:面板内部滚动,触底通过 IntersectionObserver 拉取下一页。`useChatSkills` 新增 `panelPage` / `panelTotal` / `panelHasMore` / `panelLoadingMore` / `loadMorePanel`。`ChatApp` 空态与 `ChatSender` 技能面板均已接入。
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- 空会话技能面板改为在面板内滚动(`ChatBot` 空态主区 `overflow: hidden` + flex `min-height: 0`),技能列表不再把整页撑长。
|
|
16
|
+
- 面板内技能卡片去掉阴影,悬停上浮。
|
|
17
|
+
- 技能分类 Tab 不再逐个探测是否有已发布内容;直接展示类型接口返回的全部分类。仍仅在分类数 > 1 时显示 Tab。
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- 开启模型选择后,内置对话请求会带上当前选中的 `model`(切模型后发送不再丢参数)。`ChatSender` 把选中 id 写入 `ChatSendPayload.model`;`ChatBot` 在未绑定 `v-model:model` 时也会记住选中值;`ChatApp` 补齐文档已写的 `v-model:model`。
|
|
22
|
+
- `model_list` 适配云端展示名 key(如 `DeepSeek-V4-pro预览版`):`预览版` / `正式版` 抽成 tag,并识别智谱 / MiniMax / Kimi 分组。
|
|
23
|
+
|
|
7
24
|
## [1.3.4] - 2026-09-01
|
|
8
25
|
|
|
9
26
|
### Added
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chat Design Token — single source of truth for the `--chat-*` / `--ai-conversation-*`
|
|
3
|
+
* CSS custom properties consumed by the chat components (`ChatBot`, `ChatSender`,
|
|
4
|
+
* `ConversationList`/`MessageBubble`, `ChatSessionSidebar`, `ChatApp`, …).
|
|
5
|
+
*
|
|
6
|
+
* - `style.css` `@import`s this file, so importing only `@deep-eye/core/style.css`
|
|
7
|
+
* already gets correct defaults.
|
|
8
|
+
* - It is also published standalone as `@deep-eye/core/chat-token.css` so a host can
|
|
9
|
+
* copy this file, edit values, and `import` it *after* `style.css` to override the
|
|
10
|
+
* whole token set in one go (see docs/guide/theming.md).
|
|
11
|
+
* - Variable names are never renamed/removed here — only additive. Components keep
|
|
12
|
+
* their own `var(--chat-xxx, fallback)` safety net for when this file isn't loaded
|
|
13
|
+
* at all; the fallback values must stay in sync with the defaults below.
|
|
14
|
+
* - Dark values live under the existing `[data-chat-color-mode='dark']` attribute
|
|
15
|
+
* (already toggled by `ChatProvider`/`ChatBot`) — no new theming mechanism.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
:root {
|
|
19
|
+
/* ---------------------------------------------------------------------- */
|
|
20
|
+
/* ChatSender */
|
|
21
|
+
/* ---------------------------------------------------------------------- */
|
|
22
|
+
--chat-sender-bg: #ffffff;
|
|
23
|
+
--chat-sender-border: #e6e6e6;
|
|
24
|
+
--chat-sender-focus-border: #3964fe;
|
|
25
|
+
--chat-sender-focus-ring: #cee6ff;
|
|
26
|
+
--chat-sender-shadow: 0 8px 24px rgba(57, 100, 254, 0.08);
|
|
27
|
+
--chat-sender-focus-shadow: 0 10px 28px rgba(57, 100, 254, 0.14);
|
|
28
|
+
--chat-sender-radius: 24px;
|
|
29
|
+
--chat-sender-min-height: 120px;
|
|
30
|
+
--chat-sender-text: #1f2329;
|
|
31
|
+
--chat-sender-text-secondary: #52525b;
|
|
32
|
+
--chat-sender-text-muted: #71717a;
|
|
33
|
+
--chat-sender-placeholder: #b5bac1;
|
|
34
|
+
--chat-sender-icon-color: #333333;
|
|
35
|
+
--chat-sender-icon-hover-color: #333333;
|
|
36
|
+
--chat-sender-btn-hover-bg: #f5f6f8;
|
|
37
|
+
--chat-sender-file-bg: #ffffff;
|
|
38
|
+
--chat-sender-file-border: #e4e4e7;
|
|
39
|
+
--chat-sender-file-border-hover: #a1a1aa;
|
|
40
|
+
--chat-sender-file-remove-bg: #52525b;
|
|
41
|
+
--chat-sender-file-remove-bg-hover: #3f3f46;
|
|
42
|
+
--chat-sender-menu-bg: #ffffff;
|
|
43
|
+
--chat-sender-menu-item-hover: #f4f4f5;
|
|
44
|
+
--chat-sender-mention-color: #2d6af3;
|
|
45
|
+
--chat-sender-mention-hover-color: #2d6af3;
|
|
46
|
+
--chat-sender-selection-bg: #b3d4fc;
|
|
47
|
+
--chat-sender-selection-fg: #0b1f33;
|
|
48
|
+
--chat-sender-trigger-menu-min-width: 200px;
|
|
49
|
+
--chat-sender-trigger-menu-max-width: 320px;
|
|
50
|
+
--chat-sender-trigger-menu-max-height: 320px;
|
|
51
|
+
--chat-sender-quick-active-bg: #f0f5ff;
|
|
52
|
+
--chat-sender-accent: #508ffb;
|
|
53
|
+
--chat-sender-send-active-bg: #3964fe;
|
|
54
|
+
--chat-sender-send-hover-bg: #2952e6;
|
|
55
|
+
--chat-sender-stop-bg: #ff584f;
|
|
56
|
+
--chat-sender-stop-hover-bg: #e64e46;
|
|
57
|
+
--chat-sender-progress-track: #e4e4e7;
|
|
58
|
+
--chat-sender-level-bg: #e5e7eb;
|
|
59
|
+
--chat-sender-switch-bg: #d1d5db;
|
|
60
|
+
--chat-sender-model-label: rgb(97, 102, 107);
|
|
61
|
+
--chat-sender-model-caption: rgb(129, 133, 140);
|
|
62
|
+
--chat-sender-model-hover-bg: rgba(38, 49, 72, 0.06);
|
|
63
|
+
--chat-sender-model-menu-border: rgba(0, 0, 0, 0);
|
|
64
|
+
|
|
65
|
+
/* ---------------------------------------------------------------------- */
|
|
66
|
+
/* ChatBot shell */
|
|
67
|
+
/* ---------------------------------------------------------------------- */
|
|
68
|
+
--chat-bot-border: transparent;
|
|
69
|
+
--chat-bot-sidebar-bg: var(--bg-surface, #f7f7f5);
|
|
70
|
+
--chat-bot-sender-bg: transparent;
|
|
71
|
+
--chat-bot-sidebar-width: 320px;
|
|
72
|
+
|
|
73
|
+
/* ---------------------------------------------------------------------- */
|
|
74
|
+
/* ai-conversation (ConversationList / MessageBubble / tool renderers) */
|
|
75
|
+
/* ---------------------------------------------------------------------- */
|
|
76
|
+
--ai-conversation-user-bg: var(--accent-subtle, #eff4ff);
|
|
77
|
+
--ai-conversation-user-color: var(--text-primary, #1a1a1a);
|
|
78
|
+
--ai-conversation-user-border: transparent;
|
|
79
|
+
--ai-conversation-assistant-bg: transparent;
|
|
80
|
+
--ai-conversation-assistant-color: var(--text-primary, #1a1a1a);
|
|
81
|
+
--ai-conversation-assistant-border: transparent;
|
|
82
|
+
--ai-conversation-tool-bg: var(--bg-surface, #f7f7f5);
|
|
83
|
+
--ai-conversation-tool-border: var(--border-subtle, #e8e8e5);
|
|
84
|
+
--ai-conversation-tool-pending: var(--accent, #2563eb);
|
|
85
|
+
--ai-conversation-tool-running: var(--accent, #2563eb);
|
|
86
|
+
--ai-conversation-tool-success: var(--success, #16a34a);
|
|
87
|
+
--ai-conversation-tool-error: var(--error, #dc2626);
|
|
88
|
+
--ai-conversation-muted-color: var(--text-secondary, #6b6b68);
|
|
89
|
+
--ai-conversation-code-bg: var(--bg-code, #f4f4f5);
|
|
90
|
+
--ai-conversation-chart-blue: var(--color-chart-blue, var(--ai-conversation-tool-running));
|
|
91
|
+
--ai-conversation-chart-purple: var(--color-chart-purple, var(--ai-conversation-tool-running));
|
|
92
|
+
--ai-conversation-chart-pink: var(--color-chart-pink, var(--ai-conversation-tool-error));
|
|
93
|
+
--ai-conversation-chart-amber: var(--color-chart-amber, var(--ai-conversation-tool-pending));
|
|
94
|
+
--ai-conversation-chart-green: var(--color-chart-green, var(--ai-conversation-tool-success));
|
|
95
|
+
--ai-conversation-chart-cyan: var(--color-chart-cyan, var(--ai-conversation-tool-running));
|
|
96
|
+
--ai-conversation-chart-orange: var(--color-chart-orange, var(--ai-conversation-tool-error));
|
|
97
|
+
--ai-conversation-radius-sm: var(--radius-tool, var(--radius-sm, 6px));
|
|
98
|
+
--ai-conversation-radius-md: var(--radius-md, 10px);
|
|
99
|
+
--ai-conversation-radius-lg: var(--radius-lg, 16px);
|
|
100
|
+
--ai-conversation-radius: 0.75rem;
|
|
101
|
+
--ai-conversation-bubble-radius: 12px;
|
|
102
|
+
--ai-conversation-spacing: 0.75rem;
|
|
103
|
+
--ai-conversation-content-max: 944px;
|
|
104
|
+
--ai-conversation-user-max: min(85%, 36rem);
|
|
105
|
+
--ai-conversation-assistant-max: 944px;
|
|
106
|
+
--ai-conversation-avatar-size: 1.375rem;
|
|
107
|
+
--ai-conversation-assistant-avatar-size: 2rem;
|
|
108
|
+
--ai-conversation-assistant-avatar-radius: 0.5rem;
|
|
109
|
+
--ai-conversation-avatar-radius: 0.375rem;
|
|
110
|
+
--ai-conversation-avatar-gap: 0.625rem;
|
|
111
|
+
/* 内置助手标识采用品牌色;自定义头像仍完整覆盖标识。 */
|
|
112
|
+
--ai-conversation-avatar-assistant-bg: transparent;
|
|
113
|
+
--ai-conversation-avatar-assistant-color: var(--color-accent-brand, #c96546);
|
|
114
|
+
--ai-conversation-avatar-user-bg: var(--bg-surface, #f7f7f5);
|
|
115
|
+
--ai-conversation-avatar-user-color: var(--text-secondary, #6b6b68);
|
|
116
|
+
--ai-conversation-ease: var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
|
|
117
|
+
--ai-conversation-prose-size: 0.875rem;
|
|
118
|
+
--ai-conversation-prose-leading: 1.6;
|
|
119
|
+
--ai-conversation-shadow-sm: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
|
|
120
|
+
--ai-conversation-return-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
|
|
121
|
+
|
|
122
|
+
/* ---------------------------------------------------------------------- */
|
|
123
|
+
/* Shell (ChatApp) */
|
|
124
|
+
/* ---------------------------------------------------------------------- */
|
|
125
|
+
--chat-app-bg: #f2f4f9;
|
|
126
|
+
--chat-app-content-bg: #ffffff;
|
|
127
|
+
|
|
128
|
+
/* ---------------------------------------------------------------------- */
|
|
129
|
+
/* Sidebar (ChatSessionSidebar) */
|
|
130
|
+
/* ---------------------------------------------------------------------- */
|
|
131
|
+
--chat-sidebar-width: 280px;
|
|
132
|
+
--chat-sidebar-collapsed-width: 65px;
|
|
133
|
+
--chat-sidebar-bg: #ffffff;
|
|
134
|
+
--chat-sidebar-inner-bg: #fafafa;
|
|
135
|
+
--chat-sidebar-border: #eef0f4;
|
|
136
|
+
--chat-sidebar-text: #1f2329;
|
|
137
|
+
--chat-sidebar-text-muted: #999999;
|
|
138
|
+
--chat-sidebar-accent: #1677ff;
|
|
139
|
+
--chat-sidebar-item-hover-bg: #f5f6f8;
|
|
140
|
+
--chat-sidebar-item-active-bg: #ffffff;
|
|
141
|
+
--chat-sidebar-logo-size: 40px;
|
|
142
|
+
--chat-sidebar-nav-icon-size: 20px;
|
|
143
|
+
--chat-sidebar-nav-item-min-height: 40px;
|
|
144
|
+
--chat-sidebar-top-min-height: 40px;
|
|
145
|
+
--chat-sidebar-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
|
146
|
+
|
|
147
|
+
/* ---------------------------------------------------------------------- */
|
|
148
|
+
/* History list */
|
|
149
|
+
/* ---------------------------------------------------------------------- */
|
|
150
|
+
--chat-history-status-running: #1677ff;
|
|
151
|
+
--chat-history-status-error: #f87171;
|
|
152
|
+
--chat-history-unread-dot: #1677ff;
|
|
153
|
+
--chat-history-item-height: 40px;
|
|
154
|
+
--chat-history-item-radius: 6px;
|
|
155
|
+
--chat-history-item-color: #999999;
|
|
156
|
+
--chat-history-item-hover-bg: #ebecef;
|
|
157
|
+
--chat-history-item-hover-color: #333333;
|
|
158
|
+
--chat-history-item-active-bg: #f0f2f5;
|
|
159
|
+
--chat-history-item-active-color: #333333;
|
|
160
|
+
--chat-history-empty-color: #bbbbbb;
|
|
161
|
+
--chat-history-footer-color: #8f959e;
|
|
162
|
+
--chat-history-scrollbar-thumb: #e1e5e9;
|
|
163
|
+
|
|
164
|
+
/* Empty / welcome state (ChatApp / ChatBot empty layout)
|
|
165
|
+
* Robot bottom aligns with composer top; --chat-empty-welcome-chat-gap is the
|
|
166
|
+
* title's bottom inset inside the welcome row, not a gap below the row. */
|
|
167
|
+
--chat-empty-welcome-top: clamp(48px, 7cqi + 2vh, 105px);
|
|
168
|
+
--chat-empty-welcome-chat-gap: 20px;
|
|
169
|
+
--chat-empty-welcome-gap: var(--chat-empty-welcome-chat-gap);
|
|
170
|
+
--chat-empty-robot-height: clamp(92px, 9cqi, 109px);
|
|
171
|
+
--chat-empty-welcome-min-height: var(--chat-empty-robot-height);
|
|
172
|
+
--chat-empty-sender-max-width: 944px;
|
|
173
|
+
--chat-empty-welcome-max-width: 944px;
|
|
174
|
+
--chat-empty-title-color: #1f2329;
|
|
175
|
+
--chat-empty-title-size: clamp(20px, calc(1.6cqi + 16px), 32px);
|
|
176
|
+
--chat-empty-skill-gap: clamp(16px, 2cqi, 24px);
|
|
177
|
+
--chat-empty-skill-disclaimer-gap: 20px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
[data-chat-color-mode='dark'] {
|
|
181
|
+
/* ChatSender */
|
|
182
|
+
--chat-sender-bg: #202023;
|
|
183
|
+
--chat-sender-border: #3f3f46;
|
|
184
|
+
--chat-sender-focus-border: #71717a;
|
|
185
|
+
--chat-sender-text: #f4f4f5;
|
|
186
|
+
--chat-sender-text-secondary: #a1a1aa;
|
|
187
|
+
--chat-sender-text-muted: #71717a;
|
|
188
|
+
--chat-sender-placeholder: #71717a;
|
|
189
|
+
--chat-sender-icon-color: #a1a1aa;
|
|
190
|
+
--chat-sender-icon-hover-color: #f4f4f5;
|
|
191
|
+
--chat-sender-btn-hover-bg: #27272a;
|
|
192
|
+
--chat-sender-file-bg: #27272a;
|
|
193
|
+
--chat-sender-file-border: #3f3f46;
|
|
194
|
+
--chat-sender-file-border-hover: #52525b;
|
|
195
|
+
--chat-sender-menu-bg: #202023;
|
|
196
|
+
--chat-sender-menu-item-hover: #27272a;
|
|
197
|
+
--chat-sender-level-bg: #3f3f46;
|
|
198
|
+
--chat-sender-switch-bg: #3f3f46;
|
|
199
|
+
|
|
200
|
+
/* ChatBot shell */
|
|
201
|
+
--chat-bot-border: #3a3a3a;
|
|
202
|
+
--chat-bot-sidebar-bg: #1a1a1a;
|
|
203
|
+
--chat-bot-sender-bg: #0f0f0f;
|
|
204
|
+
|
|
205
|
+
/* Shell (ChatApp) */
|
|
206
|
+
--chat-app-bg: #0f0f11;
|
|
207
|
+
--chat-app-content-bg: #18181b;
|
|
208
|
+
|
|
209
|
+
/* Sidebar (ChatSessionSidebar) */
|
|
210
|
+
--chat-sidebar-bg: #1c1c1f;
|
|
211
|
+
--chat-sidebar-inner-bg: #1c1c1f;
|
|
212
|
+
--chat-sidebar-border: #2c2c30;
|
|
213
|
+
--chat-sidebar-text: #f4f4f5;
|
|
214
|
+
--chat-sidebar-text-muted: #a1a1aa;
|
|
215
|
+
--chat-sidebar-item-hover-bg: rgba(255, 255, 255, 0.06);
|
|
216
|
+
--chat-sidebar-item-active-bg: rgba(255, 255, 255, 0.1);
|
|
217
|
+
|
|
218
|
+
/* History list */
|
|
219
|
+
--chat-history-item-color: #a1a1aa;
|
|
220
|
+
--chat-history-item-hover-bg: rgba(255, 255, 255, 0.06);
|
|
221
|
+
--chat-history-item-hover-color: #f4f4f5;
|
|
222
|
+
--chat-history-item-active-bg: rgba(255, 255, 255, 0.1);
|
|
223
|
+
--chat-history-item-active-color: #f4f4f5;
|
|
224
|
+
--chat-history-empty-color: #52525b;
|
|
225
|
+
--chat-history-footer-color: #71717a;
|
|
226
|
+
--chat-history-scrollbar-thumb: #3f3f46;
|
|
227
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import type { ChatSkillCardModel } from '../skill/types';
|
|
2
|
+
import { type ChatCloudConfig } from './cloudConfig';
|
|
3
|
+
import { type ChatSessionNavItem, type ChatSidebarTexts } from './chatSessionSidebarTypes';
|
|
4
|
+
import type { ChatAppExpose, ChatAttachmentInput, ChatAttachmentLimits, ChatColorMode, ChatMentionKind, ChatPreviewRendererMap, ChatSenderProps, ChatSendPayload, ChatToolRendererMap, ChatToolStates, ConversationListConfig, ConversationMessage, ConversationStreamStatus, ChatTheme } from './types';
|
|
5
|
+
import type { AskUserPayload } from './askUser';
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
cloud: ChatCloudConfig;
|
|
8
|
+
brand?: {
|
|
9
|
+
title?: string;
|
|
10
|
+
logo?: string;
|
|
11
|
+
logoAlt?: string;
|
|
12
|
+
};
|
|
13
|
+
navItems?: ChatSessionNavItem[];
|
|
14
|
+
sidebarTexts?: Partial<ChatSidebarTexts>;
|
|
15
|
+
/** `v-model:session-id`. */
|
|
16
|
+
sessionId?: string | null;
|
|
17
|
+
/** Two-way syncs `?sessionId=` via `History.replaceState`. Default `true`. */
|
|
18
|
+
syncSessionQuery?: boolean;
|
|
19
|
+
/** Explicit override; omit to let the sidebar own its own (persisted) collapse state, auto-forced on narrow screens. */
|
|
20
|
+
collapsed?: boolean;
|
|
21
|
+
senderConfig?: Partial<ChatSenderProps>;
|
|
22
|
+
colorMode?: ChatColorMode;
|
|
23
|
+
theme?: ChatTheme;
|
|
24
|
+
attachmentInput?: ChatAttachmentInput;
|
|
25
|
+
attachmentLimits?: Partial<ChatAttachmentLimits>;
|
|
26
|
+
conversationConfig?: ConversationListConfig;
|
|
27
|
+
previewRenderers?: ChatPreviewRendererMap;
|
|
28
|
+
toolRenderers?: ChatToolRendererMap;
|
|
29
|
+
toolStates?: ChatToolStates;
|
|
30
|
+
followUps?: string[];
|
|
31
|
+
pendingAskUser?: AskUserPayload | null;
|
|
32
|
+
enableQueue?: boolean;
|
|
33
|
+
showSidebar?: boolean;
|
|
34
|
+
sidebarWidth?: string | number;
|
|
35
|
+
/** Forwarded to `ChatBot`; see `ChatBotProps.centeredEmptyState`. Default `true`. */
|
|
36
|
+
centeredEmptyState?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Right column: `chat` shows ChatBot; `page` shows the `#page` slot.
|
|
39
|
+
* The session sidebar never unmounts. `v-model:pane`.
|
|
40
|
+
*/
|
|
41
|
+
pane?: 'chat' | 'page';
|
|
42
|
+
/** Override sidebar nav highlight. Default: `'new'` on a blank chat, unset when a history session is open. */
|
|
43
|
+
activeNavKey?: string;
|
|
44
|
+
};
|
|
45
|
+
type __VLS_ModelProps = {
|
|
46
|
+
'sessionId'?: string | null;
|
|
47
|
+
'pane'?: 'chat' | 'page';
|
|
48
|
+
'model'?: string | undefined;
|
|
49
|
+
};
|
|
50
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
51
|
+
declare var __VLS_18: {}, __VLS_21: {}, __VLS_66: {}, __VLS_69: {
|
|
52
|
+
triggerId: string;
|
|
53
|
+
query: string;
|
|
54
|
+
select: (payload: {
|
|
55
|
+
id: string;
|
|
56
|
+
label: string;
|
|
57
|
+
}) => void;
|
|
58
|
+
close: () => void;
|
|
59
|
+
anchorRect: DOMRect | null;
|
|
60
|
+
}, __VLS_72: {
|
|
61
|
+
message: ConversationMessage;
|
|
62
|
+
index: number;
|
|
63
|
+
isLast: boolean;
|
|
64
|
+
messageProps: import("./types").ChatMessageProps;
|
|
65
|
+
onAction: (action: import("./types").ConversationUiAction) => void;
|
|
66
|
+
onCopy: (payload: import("./types").ChatActionbarCopyPayload) => void;
|
|
67
|
+
onAttachmentPreview: (file: import("./types").ChatResourceFile) => void;
|
|
68
|
+
onToolAction: (payload: import("./types").ChatToolActionPayload) => void;
|
|
69
|
+
}, __VLS_75: {}, __VLS_78: {}, __VLS_90: {}, __VLS_97: {};
|
|
70
|
+
type __VLS_Slots = {} & {
|
|
71
|
+
'sidebar-brand'?: (props: typeof __VLS_18) => any;
|
|
72
|
+
} & {
|
|
73
|
+
nav?: (props: typeof __VLS_21) => any;
|
|
74
|
+
} & {
|
|
75
|
+
sender?: (props: typeof __VLS_66) => any;
|
|
76
|
+
} & {
|
|
77
|
+
'trigger-menu'?: (props: typeof __VLS_69) => any;
|
|
78
|
+
} & {
|
|
79
|
+
message?: (props: typeof __VLS_72) => any;
|
|
80
|
+
} & {
|
|
81
|
+
empty?: (props: typeof __VLS_75) => any;
|
|
82
|
+
} & {
|
|
83
|
+
'empty-extra'?: (props: typeof __VLS_78) => any;
|
|
84
|
+
} & {
|
|
85
|
+
footer?: (props: typeof __VLS_90) => any;
|
|
86
|
+
} & {
|
|
87
|
+
page?: (props: typeof __VLS_97) => any;
|
|
88
|
+
};
|
|
89
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, ChatAppExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
90
|
+
stop: () => any;
|
|
91
|
+
action: (payload: unknown) => any;
|
|
92
|
+
send: (payload: ChatSendPayload) => any;
|
|
93
|
+
"attachment-error": (error: unknown, file?: File | undefined) => any;
|
|
94
|
+
"mention-insert": (payload: {
|
|
95
|
+
triggerId: string;
|
|
96
|
+
id: string;
|
|
97
|
+
label: string;
|
|
98
|
+
kind?: ChatMentionKind;
|
|
99
|
+
}) => any;
|
|
100
|
+
"mention-remove": (payload: {
|
|
101
|
+
triggerId: string;
|
|
102
|
+
id: string;
|
|
103
|
+
label: string;
|
|
104
|
+
kind?: ChatMentionKind;
|
|
105
|
+
}) => any;
|
|
106
|
+
"update:model": (value: string | undefined) => any;
|
|
107
|
+
"update:sessionId": (value: string | null) => any;
|
|
108
|
+
"artifact-open": (payload: unknown) => any;
|
|
109
|
+
"file-preview": (payload: unknown) => any;
|
|
110
|
+
"response-error": (error: Error, info: unknown) => any;
|
|
111
|
+
"nav-select": (key: string) => any;
|
|
112
|
+
"session-created": (payload: {
|
|
113
|
+
id: string;
|
|
114
|
+
title: string;
|
|
115
|
+
}) => any;
|
|
116
|
+
"session-status-change": (payload: {
|
|
117
|
+
id: string;
|
|
118
|
+
status: ConversationStreamStatus;
|
|
119
|
+
}) => any;
|
|
120
|
+
"skill-use": (skill: ChatSkillCardModel) => any;
|
|
121
|
+
"skill-shortcut": (payload: {
|
|
122
|
+
skill: ChatSkillCardModel;
|
|
123
|
+
text: string;
|
|
124
|
+
}) => any;
|
|
125
|
+
"update:pane": (value: "page" | "chat") => any;
|
|
126
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
127
|
+
onStop?: (() => any) | undefined;
|
|
128
|
+
onAction?: ((payload: unknown) => any) | undefined;
|
|
129
|
+
onSend?: ((payload: ChatSendPayload) => any) | undefined;
|
|
130
|
+
"onAttachment-error"?: ((error: unknown, file?: File | undefined) => any) | undefined;
|
|
131
|
+
"onMention-insert"?: ((payload: {
|
|
132
|
+
triggerId: string;
|
|
133
|
+
id: string;
|
|
134
|
+
label: string;
|
|
135
|
+
kind?: ChatMentionKind;
|
|
136
|
+
}) => any) | undefined;
|
|
137
|
+
"onMention-remove"?: ((payload: {
|
|
138
|
+
triggerId: string;
|
|
139
|
+
id: string;
|
|
140
|
+
label: string;
|
|
141
|
+
kind?: ChatMentionKind;
|
|
142
|
+
}) => any) | undefined;
|
|
143
|
+
"onUpdate:model"?: ((value: string | undefined) => any) | undefined;
|
|
144
|
+
"onUpdate:sessionId"?: ((value: string | null) => any) | undefined;
|
|
145
|
+
"onArtifact-open"?: ((payload: unknown) => any) | undefined;
|
|
146
|
+
"onFile-preview"?: ((payload: unknown) => any) | undefined;
|
|
147
|
+
"onResponse-error"?: ((error: Error, info: unknown) => any) | undefined;
|
|
148
|
+
"onNav-select"?: ((key: string) => any) | undefined;
|
|
149
|
+
"onSession-created"?: ((payload: {
|
|
150
|
+
id: string;
|
|
151
|
+
title: string;
|
|
152
|
+
}) => any) | undefined;
|
|
153
|
+
"onSession-status-change"?: ((payload: {
|
|
154
|
+
id: string;
|
|
155
|
+
status: ConversationStreamStatus;
|
|
156
|
+
}) => any) | undefined;
|
|
157
|
+
"onSkill-use"?: ((skill: ChatSkillCardModel) => any) | undefined;
|
|
158
|
+
"onSkill-shortcut"?: ((payload: {
|
|
159
|
+
skill: ChatSkillCardModel;
|
|
160
|
+
text: string;
|
|
161
|
+
}) => any) | undefined;
|
|
162
|
+
"onUpdate:pane"?: ((value: "page" | "chat") => any) | undefined;
|
|
163
|
+
}>, {
|
|
164
|
+
theme: ChatTheme;
|
|
165
|
+
sessionId: string | null;
|
|
166
|
+
toolStates: ChatToolStates;
|
|
167
|
+
collapsed: boolean;
|
|
168
|
+
followUps: string[];
|
|
169
|
+
attachmentLimits: Partial<ChatAttachmentLimits>;
|
|
170
|
+
attachmentInput: ChatAttachmentInput;
|
|
171
|
+
pendingAskUser: AskUserPayload | null;
|
|
172
|
+
showSidebar: boolean;
|
|
173
|
+
sidebarWidth: string | number;
|
|
174
|
+
enableQueue: boolean;
|
|
175
|
+
senderConfig: Partial<ChatSenderProps>;
|
|
176
|
+
conversationConfig: ConversationListConfig;
|
|
177
|
+
colorMode: ChatColorMode;
|
|
178
|
+
previewRenderers: ChatPreviewRendererMap;
|
|
179
|
+
toolRenderers: ChatToolRendererMap;
|
|
180
|
+
centeredEmptyState: boolean;
|
|
181
|
+
navItems: ChatSessionNavItem[];
|
|
182
|
+
activeNavKey: string;
|
|
183
|
+
brand: {
|
|
184
|
+
title?: string;
|
|
185
|
+
logo?: string;
|
|
186
|
+
logoAlt?: string;
|
|
187
|
+
};
|
|
188
|
+
sidebarTexts: Partial<ChatSidebarTexts>;
|
|
189
|
+
syncSessionQuery: boolean;
|
|
190
|
+
pane: "chat" | "page";
|
|
191
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
192
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
193
|
+
declare const _default: typeof __VLS_export;
|
|
194
|
+
export default _default;
|
|
195
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
196
|
+
new (): {
|
|
197
|
+
$slots: S;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
//# sourceMappingURL=ChatApp.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatApp.vue.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatApp.vue"],"names":[],"mappings":"AA43BA,OAAO,KAAK,EAAE,kBAAkB,EAAwB,MAAM,gBAAgB,CAAA;AAC9E,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAA;AACxE,OAAO,EAGL,KAAK,kBAAkB,EAEvB,KAAK,gBAAgB,EACtB,MAAM,2BAA2B,CAAA;AAGlC,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EAEpB,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EACxB,SAAS,EACV,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAI/C,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,eAAe,CAAA;IACtB,KAAK,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAC3D,QAAQ,CAAC,EAAE,kBAAkB,EAAE,CAAA;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAA;IACxC,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,wHAAwH;IACxH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;IACvC,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,KAAK,CAAC,EAAE,SAAS,CAAA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BAAoB,CAAC;qBAD9B,mBAAmB;oBAOpB,cAAc,GAAG,IAAI;iBAExB,OAAO;kBACN,MAAM,GAAG,MAAM;iBAFhB,OAAO;kBAXN,OAAO,CAAC,eAAe,CAAC;wBAKlB,sBAAsB;eAJ/B,aAAa;sBAKN,sBAAsB;mBACzB,mBAAmB;wBAQd,OAAO;cAvBjB,kBAAkB,EAAE;kBA8BhB,MAAM;WA/Bb;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;kBAE5C,OAAO,CAAC,gBAAgB,CAAC;sBAIrB,OAAO;UAuBnB,MAAM,GAAG,MAAM;6EAmkCxB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ClassifiedChatError } from './chatErrors';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SessionArtifact } from './mdoc/sessionArtifacts';
|
|
3
|
+
import type { ChatActionbarCopyPayload, ChatAttachmentError, ChatBotExpose, ChatBotProps, ChatMessageProps, ChatComposerAttachment, ChatMentionKind, ChatQueueItem, ChatResourceFile, ChatSendPayload, ChatSenderModelOption, ChatSenderQuickAction, ChatToolActionPayload, ConversationMessage, ConversationStreamStatus, ConversationToolCall, ConversationUiAction, ResponseStreamEvent, ResponseSseFrame } from './types';
|
|
3
4
|
interface ChatBotTriggerMenuSlotProps {
|
|
4
5
|
triggerId: string;
|
|
5
6
|
query: string;
|
|
@@ -21,6 +22,7 @@ type __VLS_Slots = {
|
|
|
21
22
|
sidebar?: (props: {
|
|
22
23
|
artifact: ConversationUiAction | null;
|
|
23
24
|
file: ChatResourceFile | null;
|
|
25
|
+
artifacts: SessionArtifact[];
|
|
24
26
|
}) => unknown;
|
|
25
27
|
sender?: () => unknown;
|
|
26
28
|
'sender-prepend'?: () => unknown;
|
|
@@ -103,16 +105,19 @@ declare const __VLS_base: import("vue").DefineComponent<ChatBotProps, ChatBotExp
|
|
|
103
105
|
triggerId: string;
|
|
104
106
|
id: string;
|
|
105
107
|
label: string;
|
|
108
|
+
kind?: ChatMentionKind;
|
|
106
109
|
}) => any;
|
|
107
110
|
"mention-remove": (payload: {
|
|
108
111
|
triggerId: string;
|
|
109
112
|
id: string;
|
|
110
113
|
label: string;
|
|
114
|
+
kind?: ChatMentionKind;
|
|
111
115
|
}) => any;
|
|
112
116
|
"mic-permission-guide-click": () => any;
|
|
113
117
|
"update:model": (model: string) => any;
|
|
114
118
|
"model-select": (option: ChatSenderModelOption) => any;
|
|
115
119
|
"update:messages": (messages: ConversationMessage[]) => any;
|
|
120
|
+
"update:sessionId": (sessionId: string | null) => any;
|
|
116
121
|
"update:queue": (queue: readonly ChatQueueItem[]) => any;
|
|
117
122
|
"artifact-open": (payload: ConversationUiAction) => any;
|
|
118
123
|
"file-preview": (resource: ChatResourceFile) => any;
|
|
@@ -158,16 +163,19 @@ declare const __VLS_base: import("vue").DefineComponent<ChatBotProps, ChatBotExp
|
|
|
158
163
|
triggerId: string;
|
|
159
164
|
id: string;
|
|
160
165
|
label: string;
|
|
166
|
+
kind?: ChatMentionKind;
|
|
161
167
|
}) => any) | undefined;
|
|
162
168
|
"onMention-remove"?: ((payload: {
|
|
163
169
|
triggerId: string;
|
|
164
170
|
id: string;
|
|
165
171
|
label: string;
|
|
172
|
+
kind?: ChatMentionKind;
|
|
166
173
|
}) => any) | undefined;
|
|
167
174
|
"onMic-permission-guide-click"?: (() => any) | undefined;
|
|
168
175
|
"onUpdate:model"?: ((model: string) => any) | undefined;
|
|
169
176
|
"onModel-select"?: ((option: ChatSenderModelOption) => any) | undefined;
|
|
170
177
|
"onUpdate:messages"?: ((messages: ConversationMessage[]) => any) | undefined;
|
|
178
|
+
"onUpdate:sessionId"?: ((sessionId: string | null) => any) | undefined;
|
|
171
179
|
"onUpdate:queue"?: ((queue: readonly ChatQueueItem[]) => any) | undefined;
|
|
172
180
|
"onArtifact-open"?: ((payload: ConversationUiAction) => any) | undefined;
|
|
173
181
|
"onFile-preview"?: ((resource: ChatResourceFile) => any) | undefined;
|
|
@@ -181,6 +189,9 @@ declare const __VLS_base: import("vue").DefineComponent<ChatBotProps, ChatBotExp
|
|
|
181
189
|
enableQueue: boolean;
|
|
182
190
|
senderConfig: Partial<import("./types").ChatSenderProps>;
|
|
183
191
|
conversationConfig: import("./types").ConversationListConfig;
|
|
192
|
+
centeredEmptyState: boolean;
|
|
193
|
+
isLoadingSession: boolean;
|
|
194
|
+
senderDisclaimer: boolean | string;
|
|
184
195
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
185
196
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
186
197
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatBot.vue.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatBot.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatBot.vue.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatBot.vue"],"names":[],"mappings":"AAq8DA,OAAO,EAAqB,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAI1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAe9D,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EAEnB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EA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AO,CAAA;CACvC,CAAC;AAu8DF,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;mBA55DyB,MAAM;;;mBACL,MAAM;eAAS,MAAM;;;mBACrB,MAAM;;;mBAEtB,MAAM;YAAM,MAAM;eAAS,MAAM;eAAS,eAAe;;;mBAGzD,MAAM;YAAM,MAAM;eAAS,MAAM;eAAS,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAP1C,MAAM;;;mBACL,MAAM;eAAS,MAAM;;;mBACrB,MAAM;;;mBAEtB,MAAM;YAAM,MAAM;eAAS,MAAM;eAAS,eAAe;;;mBAGzD,MAAM;YAAM,MAAM;eAAS,MAAM;eAAS,eAAe;;;;;;;;;;;;;;;;;;;;;;;6EA05DjF,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChatAttachmentError, ChatAttachmentInput, ChatAttachmentInputTarget, ChatAttachmentLimits, ChatComposerAttachment, ChatFileCategory, ChatModelInputMediaPart, ChatResourceFile, ChatSendPayload, QiniuUploadFileItem } from './types';
|
|
1
|
+
import type { ChatAttachmentError, ChatAttachmentInput, ChatAttachmentInputTarget, ChatAttachmentLimits, ChatComposerAttachment, ChatFileCategory, ChatModelInputMediaPart, ChatResourceFile, ChatSendMention, ChatSendPayload, QiniuUploadFileItem } from './types';
|
|
2
2
|
export declare const DEFAULT_CHAT_ATTACHMENT_LIMITS: ChatAttachmentLimits;
|
|
3
3
|
export declare function getFileExtension(fileName: string): string;
|
|
4
4
|
export declare function classifyAttachment(file: Pick<File, 'name' | 'type'>): ChatFileCategory;
|
|
@@ -10,6 +10,9 @@ export declare function parseQiniuUploadResult(value: unknown): QiniuUploadFileI
|
|
|
10
10
|
export declare function toChatResourceFile(result: QiniuUploadFileItem): ChatResourceFile;
|
|
11
11
|
export interface BuildChatSendPayloadOptions {
|
|
12
12
|
attachmentInput?: ChatAttachmentInput;
|
|
13
|
+
mentions?: readonly ChatSendMention[];
|
|
14
|
+
sceneId?: string;
|
|
15
|
+
model?: string;
|
|
13
16
|
}
|
|
14
17
|
export declare function buildChatSendPayload(content: string, attachments: readonly ChatComposerAttachment[], options?: BuildChatSendPayloadOptions): ChatSendPayload;
|
|
15
18
|
/** Queue-edit helper: replace user text without re-dispatching attachments. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachments.d.ts","sourceRoot":"","sources":["../../../src/components/chat/attachments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,uBAAuB,EAEvB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EAEpB,MAAM,SAAS,CAAA;AA8BhB,eAAO,MAAM,8BAA8B,EAAE,oBAM5C,CAAA;AAID,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGzD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,gBAAgB,CAOtF;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,gBAAgB,CAKjF;AAED,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,gBAAgB,EAC1B,eAAe,GAAE,mBAAsC,GACtD,yBAAyB,CAS3B;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,CAAC,GACjD,MAAM,CAER;AAED,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,KAAK,EAAE,OAAO,GAAG,mBAAmB,CAe1E;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,mBAAmB,GAAG,gBAAgB,CAOhF;AAED,MAAM,WAAW,2BAA2B;IAC1C,eAAe,CAAC,EAAE,mBAAmB,CAAA;IACrC,QAAQ,CAAC,EAAE,SAAS,eAAe,EAAE,CAAA;IACrC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,SAAS,sBAAsB,EAAE,EAC9C,OAAO,GAAE,2BAAgC,GACxC,eAAe,CAmCjB;AAED,+EAA+E;AAC/E,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,GAAG,eAAe,CASjG;AAcD,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,uBAAuB,CAazF;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAM5C"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type ComputedRef } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ChatCloudConfig } from './cloudConfig';
|
|
3
|
+
import type { ChatAttachmentLimits, ChatColorMode, ChatPreviewRendererMap, ChatTheme, ChatToolRendererMap } from './types';
|
|
3
4
|
export interface ChatContext {
|
|
4
5
|
colorMode: ComputedRef<ChatColorMode>;
|
|
5
|
-
|
|
6
|
+
cloud: ComputedRef<ChatCloudConfig | undefined>;
|
|
6
7
|
limits: ComputedRef<ChatAttachmentLimits>;
|
|
7
8
|
theme: ComputedRef<ChatTheme>;
|
|
8
9
|
previewRenderers: ComputedRef<ChatPreviewRendererMap>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatContext.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chatContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,WAAW,EAAqB,MAAM,KAAK,CAAA;AAEpF,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,sBAAsB,EACtB,SAAS,EACT,mBAAmB,
|
|
1
|
+
{"version":3,"file":"chatContext.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chatContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,WAAW,EAAqB,MAAM,KAAK,CAAA;AAEpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,sBAAsB,EACtB,SAAS,EACT,mBAAmB,EACpB,MAAM,SAAS,CAAA;AAEhB,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;IACrC,KAAK,EAAE,WAAW,CAAC,eAAe,GAAG,SAAS,CAAC,CAAA;IAC/C,MAAM,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAA;IACzC,KAAK,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;IAC7B,gBAAgB,EAAE,WAAW,CAAC,sBAAsB,CAAC,CAAA;IACrD,aAAa,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAA;CAChD;AAaD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAE7D;AAED,wBAAgB,cAAc,IAAI,WAAW,CAE5C;AAED,wBAAgB,2BAA2B,CACzC,GAAG,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,GAC7D,oBAAoB,CAYtB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ChatSidebarTexts } from './chatSessionSidebarTypes';
|
|
2
|
+
export interface ChatSessionSidebarAssets {
|
|
3
|
+
logo: string;
|
|
4
|
+
back: string;
|
|
5
|
+
collapse: string;
|
|
6
|
+
search: string;
|
|
7
|
+
historyGroupExpand: string;
|
|
8
|
+
newSession: string;
|
|
9
|
+
newSessionActive: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const DEFAULT_SIDEBAR_ASSETS: ChatSessionSidebarAssets;
|
|
12
|
+
export declare function resolveNavIcon(assets: ChatSessionSidebarAssets, item: {
|
|
13
|
+
key: string;
|
|
14
|
+
icon?: string;
|
|
15
|
+
activeIcon?: string;
|
|
16
|
+
}, active: boolean): string;
|
|
17
|
+
export declare function resolveBrandLogo(brand?: {
|
|
18
|
+
logo?: string;
|
|
19
|
+
}): string;
|
|
20
|
+
export declare function resolveSidebarTexts(texts?: Partial<ChatSidebarTexts>): ChatSidebarTexts;
|
|
21
|
+
//# sourceMappingURL=chatSessionSidebarAssets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatSessionSidebarAssets.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chatSessionSidebarAssets.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAGjE,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,kBAAkB,EAAE,MAAM,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,eAAO,MAAM,sBAAsB,EAAE,wBAQpC,CAAA;AAED,wBAAgB,cAAc,CAC5B,MAAM,EAAE,wBAAwB,EAChC,IAAI,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,EACzD,MAAM,EAAE,OAAO,GACd,MAAM,CAOR;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAElE;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAEvF"}
|