@deep-eye/core 1.2.90 → 1.2.92
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 +37 -0
- package/dist/components/chat/ChatBot.vue.d.ts +2 -0
- package/dist/components/chat/ChatBot.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ArtifactPreview.vue.d.ts +6 -0
- package/dist/components/chat/components/ArtifactPreview.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatFilePreview.vue.d.ts +12 -3
- package/dist/components/chat/components/ChatFilePreview.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatFilePreviewPanel.vue.d.ts +6 -1
- package/dist/components/chat/components/ChatFilePreviewPanel.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSender.vue.d.ts +10 -1
- package/dist/components/chat/components/ChatSender.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/ContentArea.vue.d.ts +523 -0
- package/dist/components/chat/components/document-viewer/ContentArea.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/DocViewerNavList.vue.d.ts +14 -0
- package/dist/components/chat/components/document-viewer/DocViewerNavList.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/DocViewerSidebar.vue.d.ts +26 -0
- package/dist/components/chat/components/document-viewer/DocViewerSidebar.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/DocViewerToolbar.vue.d.ts +69 -0
- package/dist/components/chat/components/document-viewer/DocViewerToolbar.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/DocumentViewer.vue.d.ts +18 -0
- package/dist/components/chat/components/document-viewer/DocumentViewer.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/PageNumberInput.vue.d.ts +12 -0
- package/dist/components/chat/components/document-viewer/PageNumberInput.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/ScreenshotCropOverlay.vue.d.ts +13 -0
- package/dist/components/chat/components/document-viewer/ScreenshotCropOverlay.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/adapter.d.ts +70 -0
- package/dist/components/chat/components/document-viewer/adapter.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/html/HtmlRenderer.vue.d.ts +24 -0
- package/dist/components/chat/components/document-viewer/html/HtmlRenderer.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/markdown/MarkdownRenderer.vue.d.ts +27 -0
- package/dist/components/chat/components/document-viewer/markdown/MarkdownRenderer.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/office/OfficeDocumentViewer.vue.d.ts +16 -0
- package/dist/components/chat/components/document-viewer/office/OfficeDocumentViewer.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/office/domNav.d.ts +16 -0
- package/dist/components/chat/components/document-viewer/office/domNav.d.ts.map +1 -0
- package/dist/components/chat/components/{ChatOfficePreview.vue.d.ts → document-viewer/pdf/PdfAttachmentList.vue.d.ts} +3 -4
- package/dist/components/chat/components/document-viewer/pdf/PdfAttachmentList.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/pdf/PdfOutlineList.vue.d.ts +13 -0
- package/dist/components/chat/components/document-viewer/pdf/PdfOutlineList.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/pdf/PdfPage.vue.d.ts +16 -0
- package/dist/components/chat/components/document-viewer/pdf/PdfPage.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/pdf/PdfPageList.vue.d.ts +18 -0
- package/dist/components/chat/components/document-viewer/pdf/PdfPageList.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/pdf/PdfRenderer.vue.d.ts +57 -0
- package/dist/components/chat/components/document-viewer/pdf/PdfRenderer.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/pdf/PdfThumbnailItem.vue.d.ts +15 -0
- package/dist/components/chat/components/document-viewer/pdf/PdfThumbnailItem.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/pdf/PdfThumbnailList.vue.d.ts +14 -0
- package/dist/components/chat/components/document-viewer/pdf/PdfThumbnailList.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/pdf/pdfIntrospection.d.ts +11 -0
- package/dist/components/chat/components/document-viewer/pdf/pdfIntrospection.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/pdf/pdfWorker.d.ts +5 -0
- package/dist/components/chat/components/document-viewer/pdf/pdfWorker.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/pdf/usePdfDocument.d.ts +13 -0
- package/dist/components/chat/components/document-viewer/pdf/usePdfDocument.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/pdf/useVirtualScroll.d.ts +16 -0
- package/dist/components/chat/components/document-viewer/pdf/useVirtualScroll.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/screenshotCapture.d.ts +35 -0
- package/dist/components/chat/components/document-viewer/screenshotCapture.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/text/TextRenderer.vue.d.ts +25 -0
- package/dist/components/chat/components/document-viewer/text/TextRenderer.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/types.d.ts +12 -0
- package/dist/components/chat/components/document-viewer/types.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/xlsx/XlsxRenderer.vue.d.ts +24 -0
- package/dist/components/chat/components/document-viewer/xlsx/XlsxRenderer.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/xlsx/XlsxTable.vue.d.ts +7 -0
- package/dist/components/chat/components/document-viewer/xlsx/XlsxTable.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/xlsx/columnLabel.d.ts +3 -0
- package/dist/components/chat/components/document-viewer/xlsx/columnLabel.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/xlsx/parseSpreadsheet.d.ts +15 -0
- package/dist/components/chat/components/document-viewer/xlsx/parseSpreadsheet.d.ts.map +1 -0
- package/dist/components/chat/components/index.d.ts +1 -0
- package/dist/components/chat/components/index.d.ts.map +1 -1
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/mdoc/ContentNodes.vue.d.ts +1 -0
- package/dist/components/chat/mdoc/ContentNodes.vue.d.ts.map +1 -1
- package/dist/components/chat/mdoc/artifactOpenStrategy.d.ts.map +1 -1
- package/dist/components/chat/mdoc/index.d.ts +1 -1
- package/dist/components/chat/mdoc/index.d.ts.map +1 -1
- package/dist/components/chat/mdoc/referenceMarkup.d.ts +26 -0
- package/dist/components/chat/mdoc/referenceMarkup.d.ts.map +1 -1
- package/dist/components/chat/previewRenderers.d.ts.map +1 -1
- package/dist/components/chat/types.d.ts +6 -2
- package/dist/components/chat/types.d.ts.map +1 -1
- package/dist/html2canvas.esm-BA_v9SIU.cjs +22 -0
- package/dist/html2canvas.esm-d2sM-0Wm.js +4870 -0
- package/dist/{index-BJdNN1GV.cjs → index-BWdg422O.cjs} +4 -4
- package/dist/index-BWnpcJym.cjs +850 -0
- package/dist/index-Bh4xn5LB.cjs +1 -0
- package/dist/index-BuN8GnS7.js +22 -0
- package/dist/{index-BufnUXnQ.js → index-CNZScDK0.js} +4 -3
- package/dist/index-D-krptDG.js +107981 -0
- package/dist/{index-Bj9h-xEr.cjs → index-D2welI3B.cjs} +20 -20
- package/dist/{index-DF8KmkKX.js → index-WX1XCf-8.js} +4 -3
- package/dist/index.cjs +1 -664
- package/dist/index.js +225 -68958
- package/dist/style.css +1 -1
- package/package.json +7 -1
- package/dist/components/chat/components/ChatOfficePreview.vue.d.ts.map +0 -1
- package/dist/index-B4hgICk-.cjs +0 -198
- package/dist/index-CnxZBHPD.js +0 -42825
- package/dist/index-DPhuLMkO.cjs +0 -1
- package/dist/index-Dq4cniDm.cjs +0 -5
- package/dist/index-cW_BnxHR.js +0 -1722
- package/dist/index-iCVvFIlX.js +0 -28
package/CHANGELOG.md
CHANGED
|
@@ -4,10 +4,47 @@
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [1.2.92] - 2026-08-21
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- 引用徽标点击:消息 / 工件预览 / `src` 拉取的 Markdown·纯文本查看器统一发出 `action`(`type: 'reference-click', refIndex`);导出 `createReferenceClickHandler`、`extractReferenceIndex`、`renderPlainTextWithReferences`、`escapeHtml`;样式抽到 `mdoc/referenceTag.css`。
|
|
12
|
+
- `ChatBot` 事件 `file-preview`:附件在侧栏打开时抛出(与 `artifact-open` 对称)。
|
|
13
|
+
- `ChatSender` 事件 `preview`:已上传的非图片附件点击时抛出;图片附件走内置 `ChatImageLightbox`。
|
|
14
|
+
- 侧栏打开策略:`type="text"` / `.txt` / `.text` 的 `src` 工件也可进侧栏预览。
|
|
15
|
+
- Playground:**引用标记** Demo(真实教案 + 内联 / `.txt` / `.md` 三种打开路径)。
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- `ChatBot` 侧栏默认宽度 `sidebarWidth`:`'70%'` → `'55%'`。
|
|
20
|
+
- `v-model:messages` 清空线程时自动关闭文件/工件预览侧栏。
|
|
21
|
+
- 文档截图:`captureImageInRect` 按选区裁剪渲染(不再整页 rasterize 再裁),长文档「截图提问」更轻。
|
|
22
|
+
- `ChatSender`:Shift+Enter 换行在空草稿 / 行尾也能立刻显示新行(补 trailing `<br>`,并跳过空编辑器清理)。
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- 纯文本工件 Preview 与 `TextRenderer`:`[REF:x-y]` / `$$x-y$$` 渲染为引用徽标(先 escape 再转标记),与 Markdown / 消息气泡一致。
|
|
27
|
+
|
|
28
|
+
## [1.2.91] - 2026-08-21
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- 多格式文档查看器 `DocumentViewer`(外壳 + `DocumentAdapter`):`pdf`(paginated)、`html` / `markdown` / `text` / `excel`(含 CSV,flow)走统一工具栏与侧边栏;`docx` / `pptx` 仍经 `OfficeDocumentViewer`。
|
|
33
|
+
- 文档预览「截图提问」:框选区域后可复制,或回填到输入框(提取到文本 → `insertText`;截图 → `addFiles` 附件)。
|
|
34
|
+
- `ChatBot` / `ChatSender` 暴露 `insertText(text)`,供文档截图等场景程序化写入草稿。
|
|
35
|
+
- Playground:`DocumentViewerDemo`;Chat Showcase 工件 `src` 样例覆盖多格式。
|
|
36
|
+
|
|
7
37
|
### Changed
|
|
8
38
|
|
|
39
|
+
- `ChatBot` 侧栏默认宽度 `sidebarWidth`:`'42%'` → `'70%'`。
|
|
40
|
+
- 带 `src` 的可预览工件卡片:侧栏只保留 `DocumentViewer` / Office 一层工具栏(去掉与 `ArtifactPreview` 叠头)。
|
|
41
|
+
- `ArtifactPreview` 顶栏复用 `DocViewerToolbar` 分区布局,与文档查看器视觉一致。
|
|
9
42
|
- `ProcessStepGroup` / 工具行对齐豆包过程块:折叠摘要去掉时长、标题后置 `>`/`∨`、展开区扁平化(去嵌套思考折叠头)、工具行「已读取 filename」;流式自动展开、完成后自动折叠;过程块内工具行不再扫光;仅折叠/展开做高度动画(流式增高不 tween);过程文字 14px、行间距 16px。
|
|
10
43
|
|
|
44
|
+
### Dependencies
|
|
45
|
+
|
|
46
|
+
- 新增:`html2canvas`、`marked`、`xlsx`、`papaparse`(及 `@types/papaparse` 开发依赖)。请按合规要求自行确认体积与许可。
|
|
47
|
+
|
|
11
48
|
## [1.2.90] - 2026-08-21
|
|
12
49
|
|
|
13
50
|
### Changed
|
|
@@ -116,6 +116,7 @@ declare const __VLS_base: import("vue").DefineComponent<ChatBotProps, ChatBotExp
|
|
|
116
116
|
"update:messages": (messages: ConversationMessage[]) => any;
|
|
117
117
|
"update:queue": (queue: readonly ChatQueueItem[]) => any;
|
|
118
118
|
"artifact-open": (payload: ConversationUiAction) => any;
|
|
119
|
+
"file-preview": (resource: ChatResourceFile) => any;
|
|
119
120
|
"status-change": (status: ConversationStreamStatus) => any;
|
|
120
121
|
"response-event": (event: ResponseStreamEvent, frame: ResponseSseFrame) => any;
|
|
121
122
|
"response-error": (error: Error, info: ClassifiedChatError) => any;
|
|
@@ -171,6 +172,7 @@ declare const __VLS_base: import("vue").DefineComponent<ChatBotProps, ChatBotExp
|
|
|
171
172
|
"onUpdate:messages"?: ((messages: ConversationMessage[]) => any) | undefined;
|
|
172
173
|
"onUpdate:queue"?: ((queue: readonly ChatQueueItem[]) => any) | undefined;
|
|
173
174
|
"onArtifact-open"?: ((payload: ConversationUiAction) => any) | undefined;
|
|
175
|
+
"onFile-preview"?: ((resource: ChatResourceFile) => any) | undefined;
|
|
174
176
|
"onStatus-change"?: ((status: ConversationStreamStatus) => any) | undefined;
|
|
175
177
|
"onResponse-event"?: ((event: ResponseStreamEvent, frame: ResponseSseFrame) => any) | undefined;
|
|
176
178
|
"onResponse-error"?: ((error: Error, info: ClassifiedChatError) => any) | undefined;
|
|
@@ -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":"AAywCA,OAAO,EAAqB,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAe1E,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EAEnB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EAErB,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EAEpB,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,SAAS,CAAA;AAEhB,UAAU,2BAA2B;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE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;;;;;;;;;;;mBAJnC,MAAM;;;mBACL,MAAM;eAAS,MAAM;;;mBACrB,MAAM;;;mBACL,MAAM;YAAM,MAAM;eAAS,MAAM;;;mBACjC,MAAM;YAAM,MAAM;eAAS,MAAM;;;;;;;;;;;;;;;;;;;;6EA62C1E,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,13 +1,19 @@
|
|
|
1
1
|
import type { ConversationUiAction } from '../types';
|
|
2
|
+
import '../mdoc/referenceTag.css';
|
|
3
|
+
import type { DocumentScreenshotResult } from './document-viewer/adapter';
|
|
2
4
|
type __VLS_Props = {
|
|
3
5
|
artifact: ConversationUiAction;
|
|
4
6
|
expanded?: boolean;
|
|
5
7
|
};
|
|
6
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
9
|
close: () => any;
|
|
10
|
+
action: (payload: ConversationUiAction) => any;
|
|
11
|
+
"screenshot-result": (result: DocumentScreenshotResult) => any;
|
|
8
12
|
"toggle-expanded": () => any;
|
|
9
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
14
|
onClose?: (() => any) | undefined;
|
|
15
|
+
onAction?: ((payload: ConversationUiAction) => any) | undefined;
|
|
16
|
+
"onScreenshot-result"?: ((result: DocumentScreenshotResult) => any) | undefined;
|
|
11
17
|
"onToggle-expanded"?: (() => any) | undefined;
|
|
12
18
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
19
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArtifactPreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ArtifactPreview.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ArtifactPreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ArtifactPreview.vue"],"names":[],"mappings":"AA0UA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAKpD,OAAO,0BAA0B,CAAA;AAEjC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAKzE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,oBAAoB,CAAA;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAotBF,QAAA,MAAM,YAAY;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Component, type PropType } from 'vue';
|
|
2
|
-
import type { ChatPreviewKind, ChatResourceFile } from '../types';
|
|
2
|
+
import type { ChatPreviewKind, ChatResourceFile, ConversationUiAction } from '../types';
|
|
3
|
+
import type { DocumentScreenshotResult } from './document-viewer/adapter';
|
|
3
4
|
declare var __VLS_1: {
|
|
4
5
|
resource: ChatResourceFile;
|
|
5
6
|
kind: ChatPreviewKind;
|
|
@@ -22,7 +23,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
22
23
|
type: PropType<Component>;
|
|
23
24
|
default: undefined;
|
|
24
25
|
};
|
|
25
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
close: () => any;
|
|
28
|
+
action: (payload: ConversationUiAction) => any;
|
|
29
|
+
"screenshot-result": (result: DocumentScreenshotResult) => any;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
31
|
resource: {
|
|
27
32
|
type: PropType<ChatResourceFile>;
|
|
28
33
|
required: true;
|
|
@@ -31,7 +36,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
31
36
|
type: PropType<Component>;
|
|
32
37
|
default: undefined;
|
|
33
38
|
};
|
|
34
|
-
}>> & Readonly<{
|
|
39
|
+
}>> & Readonly<{
|
|
40
|
+
onClose?: (() => any) | undefined;
|
|
41
|
+
onAction?: ((payload: ConversationUiAction) => any) | undefined;
|
|
42
|
+
"onScreenshot-result"?: ((result: DocumentScreenshotResult) => any) | undefined;
|
|
43
|
+
}>, {
|
|
35
44
|
renderer: Component;
|
|
36
45
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
37
46
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatFilePreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatFilePreview.vue"],"names":[],"mappings":"AA6IA,OAAO,EAAgC,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGjF,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"ChatFilePreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatFilePreview.vue"],"names":[],"mappings":"AA6IA,OAAO,EAAgC,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGjF,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AACvF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AA2IzE,QAAA,IAAI,OAAO;;;;;;;;;CAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;cAGc,QAAQ,CAAC,gBAAgB,CAAC;;;;cAC1B,QAAQ,CAAC,SAAS,CAAC;;;;;;;;;cADnB,QAAQ,CAAC,gBAAgB,CAAC;;;;cAC1B,QAAQ,CAAC,SAAS,CAAC;;;;;;;;;4EAE/C,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ChatResourceFile } from '../types';
|
|
1
|
+
import type { ChatResourceFile, ConversationUiAction } from '../types';
|
|
2
|
+
import type { DocumentScreenshotResult } from './document-viewer/adapter';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
resource: ChatResourceFile;
|
|
4
5
|
};
|
|
@@ -10,8 +11,12 @@ type __VLS_Slots = {} & {
|
|
|
10
11
|
};
|
|
11
12
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
13
|
close: () => any;
|
|
14
|
+
action: (payload: ConversationUiAction) => any;
|
|
15
|
+
"screenshot-result": (result: DocumentScreenshotResult) => any;
|
|
13
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
17
|
onClose?: (() => any) | undefined;
|
|
18
|
+
onAction?: ((payload: ConversationUiAction) => any) | undefined;
|
|
19
|
+
"onScreenshot-result"?: ((result: DocumentScreenshotResult) => any) | undefined;
|
|
15
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
22
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatFilePreviewPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatFilePreviewPanel.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatFilePreviewPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatFilePreviewPanel.vue"],"names":[],"mappings":"AA0JA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AACtE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAGzE,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAAC;AA2LlD,QAAA,IAAI,QAAQ;;CAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAQhD,QAAA,MAAM,UAAU;;;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,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, ChatAttachmentLimits, ChatComposerAttachment, ChatSendPayload, ChatSenderMentionSlotProps, ChatSenderModelOption, ChatSenderProps, ChatSenderQuickAction, ChatSenderTrigger, ChatUploadConfig } from '../types';
|
|
1
|
+
import type { ChatAttachmentError, ChatAttachmentLimits, ChatComposerAttachment, ChatResourceFile, ChatSendPayload, ChatSenderMentionSlotProps, ChatSenderModelOption, ChatSenderProps, ChatSenderQuickAction, ChatSenderTrigger, ChatUploadConfig } from '../types';
|
|
2
2
|
type __VLS_Slots = {
|
|
3
3
|
'trigger-menu'?: (props: {
|
|
4
4
|
triggerId: string;
|
|
@@ -16,10 +16,18 @@ type __VLS_Slots = {
|
|
|
16
16
|
'toolbar-before-voice'?: () => unknown;
|
|
17
17
|
};
|
|
18
18
|
declare function addFiles(files: readonly File[]): void;
|
|
19
|
+
/**
|
|
20
|
+
* Programmatic text insertion (e.g. the document viewer's "截图提问" crop
|
|
21
|
+
* tool feeding extracted text back in). Unlike `insertTextAtCaret`, this
|
|
22
|
+
* works even when the editor isn't currently focused/selected.
|
|
23
|
+
*/
|
|
24
|
+
declare function insertText(text: string): void;
|
|
19
25
|
declare const __VLS_base: import("vue").DefineComponent<ChatSenderProps, {
|
|
20
26
|
addFiles: typeof addFiles;
|
|
27
|
+
insertText: typeof insertText;
|
|
21
28
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
29
|
stop: () => any;
|
|
30
|
+
preview: (resource: ChatResourceFile) => any;
|
|
23
31
|
send: (payload: ChatSendPayload) => any;
|
|
24
32
|
"update:draft": (value: string) => any;
|
|
25
33
|
"update:attachments": (attachments: readonly ChatComposerAttachment[]) => any;
|
|
@@ -64,6 +72,7 @@ declare const __VLS_base: import("vue").DefineComponent<ChatSenderProps, {
|
|
|
64
72
|
"load-models": () => any;
|
|
65
73
|
}, string, import("vue").PublicProps, Readonly<ChatSenderProps> & Readonly<{
|
|
66
74
|
onStop?: (() => any) | undefined;
|
|
75
|
+
onPreview?: ((resource: ChatResourceFile) => any) | undefined;
|
|
67
76
|
onSend?: ((payload: ChatSendPayload) => any) | undefined;
|
|
68
77
|
"onUpdate:draft"?: ((value: string) => any) | undefined;
|
|
69
78
|
"onUpdate:attachments"?: ((attachments: readonly ChatComposerAttachment[]) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatSender.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatSender.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatSender.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatSender.vue"],"names":[],"mappings":"AA8gIA,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,0BAA0B,EAC1B,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAwEjB,KAAK,WAAW,GAAG;IACjB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE;QACvB,SAAS,EAAE,MAAM,CAAA;QACjB,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,CAAC,OAAO,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,KAAK,IAAI,CAAA;QACxD,KAAK,EAAE,MAAM,IAAI,CAAA;QACjB,UAAU,EAAE,OAAO,GAAG,IAAI,CAAA;KAC3B,KAAK,OAAO,CAAA;IACb,4EAA4E;IAC5E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,OAAO,CAAA;IACxD,6EAA6E;IAC7E,sBAAsB,CAAC,EAAE,MAAM,OAAO,CAAA;CACvC,CAAC;AAo5CF,iBAAS,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,GAAG,IAAI,CAE9C;AAED;;;;GAIG;AACH,iBAAS,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAwBtC;AAo0DD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;mBArxGyB,MAAM;;;mBACL,MAAM;eAAS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