@deep-eye/core 1.3.6 → 1.3.7
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 +22 -0
- package/dist/components/chat/ChatApp.vue.d.ts +29 -11
- package/dist/components/chat/ChatApp.vue.d.ts.map +1 -1
- package/dist/components/chat/ChatBot.vue.d.ts +16 -0
- package/dist/components/chat/ChatBot.vue.d.ts.map +1 -1
- package/dist/components/chat/attachments.d.ts.map +1 -1
- package/dist/components/chat/buildTimelineSegments.d.ts.map +1 -1
- package/dist/components/chat/chatContext.d.ts +5 -1
- package/dist/components/chat/chatContext.d.ts.map +1 -1
- package/dist/components/chat/components/ArtifactPreview.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatActionbar.vue.d.ts +3 -3
- package/dist/components/chat/components/ChatActionbar.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatFileCard.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatFilePreview.vue.d.ts +18 -0
- package/dist/components/chat/components/ChatFilePreview.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatFilePreviewPanel.vue.d.ts +9 -1
- package/dist/components/chat/components/ChatFilePreviewPanel.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatMessage.vue.d.ts +9 -0
- package/dist/components/chat/components/ChatMessage.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatProvider.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatReasoning.vue.d.ts +4 -1
- package/dist/components/chat/components/ChatReasoning.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSender.vue.d.ts +46 -3
- package/dist/components/chat/components/ChatSender.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSessionHistoryItem.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSkillPanel.vue.d.ts +3 -0
- package/dist/components/chat/components/ChatSkillPanel.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatTipMenu.vue.d.ts +22 -12
- package/dist/components/chat/components/ChatTipMenu.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ConversationList.vue.d.ts.map +1 -1
- package/dist/components/chat/components/InputContentParts.vue.d.ts.map +1 -1
- package/dist/components/chat/components/MessageBubble.vue.d.ts +9 -0
- package/dist/components/chat/components/MessageBubble.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ProcessStepGroup.vue.d.ts +11 -2
- package/dist/components/chat/components/ProcessStepGroup.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ReasoningMarkdown.vue.d.ts +8 -0
- package/dist/components/chat/components/ReasoningMarkdown.vue.d.ts.map +1 -0
- package/dist/components/chat/components/SubagentRunDialog.vue.d.ts +20 -0
- package/dist/components/chat/components/SubagentRunDialog.vue.d.ts.map +1 -0
- package/dist/components/chat/components/SubagentRunsPanel.vue.d.ts +9 -0
- package/dist/components/chat/components/SubagentRunsPanel.vue.d.ts.map +1 -0
- package/dist/components/chat/components/TextReferenceChip.vue.d.ts +20 -0
- package/dist/components/chat/components/TextReferenceChip.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ToolCallPart.vue.d.ts.map +1 -1
- package/dist/components/chat/components/WebSearchProcessRow.vue.d.ts +9 -0
- package/dist/components/chat/components/WebSearchProcessRow.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/DocViewerToolbar.vue.d.ts +3 -0
- package/dist/components/chat/components/document-viewer/DocViewerToolbar.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/DocumentAskPopup.vue.d.ts +17 -0
- package/dist/components/chat/components/document-viewer/DocumentAskPopup.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/DocumentViewer.vue.d.ts +8 -1
- package/dist/components/chat/components/document-viewer/DocumentViewer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/ScreenshotCropOverlay.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/TextSelectionAskOverlay.vue.d.ts +16 -0
- package/dist/components/chat/components/document-viewer/TextSelectionAskOverlay.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/adapter.d.ts +4 -5
- package/dist/components/chat/components/document-viewer/adapter.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/displayCapture.d.ts +28 -0
- package/dist/components/chat/components/document-viewer/displayCapture.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/html/HtmlRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/office/DocxPreviewEngine.vue.d.ts +14 -0
- package/dist/components/chat/components/document-viewer/office/DocxPreviewEngine.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/office/OfficeDocumentViewer.vue.d.ts +5 -1
- package/dist/components/chat/components/document-viewer/office/OfficeDocumentViewer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/office/docxChrome.d.ts +45 -0
- package/dist/components/chat/components/document-viewer/office/docxChrome.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/office/domNav.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/office/fitDocx.d.ts +8 -0
- package/dist/components/chat/components/document-viewer/office/fitDocx.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/office/officePreviewUrl.d.ts +28 -0
- package/dist/components/chat/components/document-viewer/office/officePreviewUrl.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/screenshotCapture.d.ts +27 -11
- package/dist/components/chat/components/document-viewer/screenshotCapture.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/tabCaptureSession.d.ts +17 -0
- package/dist/components/chat/components/document-viewer/tabCaptureSession.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/textSelection.d.ts +20 -0
- package/dist/components/chat/components/document-viewer/textSelection.d.ts.map +1 -0
- package/dist/components/chat/components/index.d.ts +2 -0
- package/dist/components/chat/components/index.d.ts.map +1 -1
- package/dist/components/chat/composables/useChatSessionSwitch.d.ts.map +1 -1
- package/dist/components/chat/composables/useChatSkillTipMenu.d.ts +4 -2
- package/dist/components/chat/composables/useChatSkillTipMenu.d.ts.map +1 -1
- package/dist/components/chat/composables/useChatTipMenu.d.ts +8 -2
- package/dist/components/chat/composables/useChatTipMenu.d.ts.map +1 -1
- package/dist/components/chat/harness/DisclosureRow.vue.d.ts +1 -0
- package/dist/components/chat/harness/DisclosureRow.vue.d.ts.map +1 -1
- package/dist/components/chat/htmlPreview.d.ts +7 -2
- package/dist/components/chat/htmlPreview.d.ts.map +1 -1
- package/dist/components/chat/hydrateHistory.d.ts +3 -1
- package/dist/components/chat/hydrateHistory.d.ts.map +1 -1
- package/dist/components/chat/index.d.ts +4 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/mdoc/ArtifactBlock.vue.d.ts.map +1 -1
- package/dist/components/chat/mdoc/chatOccurrenceKey.d.ts +4 -0
- package/dist/components/chat/mdoc/chatOccurrenceKey.d.ts.map +1 -0
- package/dist/components/chat/mdoc/latexDelimiters.d.ts +14 -0
- package/dist/components/chat/mdoc/latexDelimiters.d.ts.map +1 -0
- package/dist/components/chat/mdoc/sessionArtifacts.d.ts +1 -1
- package/dist/components/chat/mdoc/sessionArtifacts.d.ts.map +1 -1
- package/dist/components/chat/mdoc/textContent.d.ts +0 -7
- package/dist/components/chat/mdoc/textContent.d.ts.map +1 -1
- package/dist/components/chat/messageChrome.d.ts +10 -3
- package/dist/components/chat/messageChrome.d.ts.map +1 -1
- package/dist/components/chat/processGroupSummary.d.ts +6 -4
- package/dist/components/chat/processGroupSummary.d.ts.map +1 -1
- package/dist/components/chat/reasoningDisplay.d.ts +6 -0
- package/dist/components/chat/reasoningDisplay.d.ts.map +1 -0
- package/dist/components/chat/responseStream.d.ts.map +1 -1
- package/dist/components/chat/sidebarMotion.d.ts +1 -1
- package/dist/components/chat/sidebarMotion.d.ts.map +1 -1
- package/dist/components/chat/subagentAggregate.d.ts +38 -0
- package/dist/components/chat/subagentAggregate.d.ts.map +1 -0
- package/dist/components/chat/subagentDisplay.d.ts +22 -0
- package/dist/components/chat/subagentDisplay.d.ts.map +1 -0
- package/dist/components/chat/textReference.d.ts +20 -0
- package/dist/components/chat/textReference.d.ts.map +1 -0
- package/dist/components/chat/toolLabels.d.ts +2 -0
- package/dist/components/chat/toolLabels.d.ts.map +1 -1
- package/dist/components/chat/types.d.ts +142 -9
- package/dist/components/chat/types.d.ts.map +1 -1
- package/dist/components/chat/useProcessGroupTimer.d.ts +2 -1
- package/dist/components/chat/useProcessGroupTimer.d.ts.map +1 -1
- package/dist/components/chat/utils/tipMenuBuiltin.d.ts +6 -0
- package/dist/components/chat/utils/tipMenuBuiltin.d.ts.map +1 -1
- package/dist/components/skill/components/ChatSkillCard.vue.d.ts.map +1 -1
- package/dist/components/skill/composables/useChatSkills.d.ts +1 -0
- package/dist/components/skill/composables/useChatSkills.d.ts.map +1 -1
- package/dist/components/skill/types.d.ts +20 -1
- package/dist/components/skill/types.d.ts.map +1 -1
- package/dist/components/ui/components/UiMenu.vue.d.ts +5 -1
- package/dist/components/ui/components/UiMenu.vue.d.ts.map +1 -1
- package/dist/index-AMv4u6wW.cjs +1065 -0
- package/dist/{index-BKxbaGuU.js → index-BCh0W7hP.js} +7664 -7648
- package/dist/{index-CT4dZd6h.js → index-DDlS9QfJ.js} +81798 -73873
- package/dist/{index-BvdV0Eu0.cjs → index-Ds5qv-tF.cjs} +44 -44
- package/dist/index.cjs +1 -1
- package/dist/index.js +312 -300
- package/dist/style.css +2 -2
- package/package.json +2 -2
- package/dist/index-Bh4xn5LB.cjs +0 -1
- package/dist/index-BuN8GnS7.js +0 -22
- package/dist/index-CPq9HVwe.cjs +0 -892
- package/dist/index-DHbY1Eq1.cjs +0 -33
- package/dist/index-YIVH2TCo.js +0 -5072
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { UiDropdownMenuItem } from '../../ui/types';
|
|
2
2
|
import type { UseChatSkillTipMenuReturn } from '../composables/useChatSkillTipMenu';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ChatTipMenuUiMenuProps } from '../types';
|
|
4
4
|
import type { UiMenuItem } from '../../ui/types';
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
open: boolean;
|
|
@@ -8,35 +8,45 @@ type __VLS_Props = {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
customMenuItems?: readonly UiDropdownMenuItem[];
|
|
10
10
|
menu: UseChatSkillTipMenuReturn;
|
|
11
|
-
placement
|
|
12
|
-
|
|
11
|
+
/** 透传给内层 `UiMenu`(placement、zIndex 等;anchor/items/open/disabled 由本组件接管)。 */
|
|
12
|
+
uiMenuProps?: ChatTipMenuUiMenuProps;
|
|
13
13
|
onCustomSubmenuOpen?: (itemId: string, path?: string) => void;
|
|
14
14
|
};
|
|
15
|
-
declare
|
|
15
|
+
declare function setSubmenuKeyword(itemId: string, keyword: string): void;
|
|
16
|
+
declare var __VLS_17: `${string}-icon`, __VLS_18: {
|
|
16
17
|
item: UiMenuItem;
|
|
17
|
-
},
|
|
18
|
+
}, __VLS_20: {
|
|
18
19
|
item: UiMenuItem;
|
|
19
|
-
},
|
|
20
|
+
}, __VLS_28: {
|
|
20
21
|
item: UiMenuItem;
|
|
21
22
|
};
|
|
22
23
|
type __VLS_Slots = {} & {
|
|
23
|
-
[K in NonNullable<typeof
|
|
24
|
+
[K in NonNullable<typeof __VLS_17>]?: (props: typeof __VLS_18) => any;
|
|
24
25
|
} & {
|
|
25
|
-
'item-icon'?: (props: typeof
|
|
26
|
+
'item-icon'?: (props: typeof __VLS_20) => any;
|
|
26
27
|
} & {
|
|
27
|
-
'submenu-footer'?: (props: typeof
|
|
28
|
+
'submenu-footer'?: (props: typeof __VLS_28) => any;
|
|
28
29
|
};
|
|
29
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
30
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
31
|
+
setSubmenuKeyword: typeof setSubmenuKeyword;
|
|
32
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
33
|
"update:open": (value: boolean) => any;
|
|
31
34
|
"menu-item-click": (itemId: string) => any;
|
|
35
|
+
"submenu-search": (payload: {
|
|
36
|
+
submenuId: string;
|
|
37
|
+
keyword: string;
|
|
38
|
+
}) => any;
|
|
32
39
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
33
40
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
34
41
|
"onMenu-item-click"?: ((itemId: string) => any) | undefined;
|
|
42
|
+
"onSubmenu-search"?: ((payload: {
|
|
43
|
+
submenuId: string;
|
|
44
|
+
keyword: string;
|
|
45
|
+
}) => any) | undefined;
|
|
35
46
|
}>, {
|
|
36
47
|
disabled: boolean;
|
|
37
|
-
placement: UiMenuPlacement;
|
|
38
|
-
submenuPlacement: UiMenuPlacement;
|
|
39
48
|
customMenuItems: readonly UiDropdownMenuItem[];
|
|
49
|
+
uiMenuProps: ChatTipMenuUiMenuProps;
|
|
40
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
51
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
42
52
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatTipMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatTipMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatTipMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatTipMenu.vue"],"names":[],"mappings":"AAwKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAGxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAA;AACnF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,gBAAgB,CAAA;AAW/D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AG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ConversationList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConversationList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ConversationList.vue"],"names":[],"mappings":"AA20CA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAInC,OAAO,EAML,KAAK,cAAc,EAEpB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAqB,KAAK,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAC3E,OAAO,KAAK,EACV,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACpB,WAAW,EACZ,MAAM,UAAU,CAAA;AACjB,OAAO,6BAA6B,CAAA;AAqDpC,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,OAAO,CAAA;IACtB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAChB,OAAO,EAAE,mBAAmB,CAAA;QAC5B,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,OAAO,CAAA;QACf,YAAY,EAAE,gBAAgB,CAAA;QAC9B,4FAA4F;QAC5F,QAAQ,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;QAChD,MAAM,EAAE,CAAC,OAAO,EAAE,wBAAwB,KAAK,IAAI,CAAA;QACnD,UAAU,EAAE,CAAC,OAAO,EAAE,4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,GAAG,IAAI,CAAC;;;;;;;;;;;;;cAxChC,QAAQ,CAAC,SAAS,mBAAmB,EAAE,CAAC;;;;;;;;cAQvC,QAAQ,CAAC,wBAAwB,CAAC;;;;cAIlC,QAAQ,CAAC,iBAAiB,CAAC;;;;cAI3B,QAAQ,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;cAgBxB,QAAQ,CAAC,cAAc,CAAC;;;;cAIzB,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;cAIjB,QAAQ,CAAC,cAAc,GAAG,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;4EAIjD,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputContentParts.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/InputContentParts.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InputContentParts.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/InputContentParts.vue"],"names":[],"mappings":"AA0NA,OAAO,KAAK,EAA2B,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAOjF,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,wBAAwB,CAAA;CAClC,CAAC;AAmOF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -58,6 +58,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
58
58
|
type: BooleanConstructor;
|
|
59
59
|
default: boolean;
|
|
60
60
|
};
|
|
61
|
+
occurrenceKey: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
61
65
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
62
66
|
copy: (payload: ChatActionbarCopyPayload) => any;
|
|
63
67
|
action: (payload: ConversationUiAction) => any;
|
|
@@ -102,6 +106,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
102
106
|
type: BooleanConstructor;
|
|
103
107
|
default: boolean;
|
|
104
108
|
};
|
|
109
|
+
occurrenceKey: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
105
113
|
}>> & Readonly<{
|
|
106
114
|
onCopy?: ((payload: ChatActionbarCopyPayload) => any) | undefined;
|
|
107
115
|
onAction?: ((payload: ConversationUiAction) => any) | undefined;
|
|
@@ -118,6 +126,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
118
126
|
assistantAvatar: string;
|
|
119
127
|
followUps: string[];
|
|
120
128
|
showFollowUps: boolean;
|
|
129
|
+
occurrenceKey: string;
|
|
121
130
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
122
131
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
123
132
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageBubble.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/MessageBubble.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageBubble.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/MessageBubble.vue"],"names":[],"mappings":"AAmqBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AASnC,OAAO,6BAA6B,CAAA;AAEpC,OAAO,KAAK,EACV,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,EAChB,qBAAqB,EACrB,c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,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAYnC,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"}
|
|
@@ -9,8 +9,15 @@ type __VLS_Props = {
|
|
|
9
9
|
providerSummary?: string;
|
|
10
10
|
messageId?: string;
|
|
11
11
|
groupIndex?: number;
|
|
12
|
-
/**
|
|
12
|
+
/** Wall-clock start from assistant `created_at`. */
|
|
13
13
|
startedAtMs?: number;
|
|
14
|
+
completedAtMs?: number;
|
|
15
|
+
runMs?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Turn-level elapsed belongs on one process row (the last / in-flight group).
|
|
18
|
+
* Boolean props coerce omitted values to false; default true for standalone use.
|
|
19
|
+
*/
|
|
20
|
+
showElapsed?: boolean;
|
|
14
21
|
};
|
|
15
22
|
type __VLS_Slots = {
|
|
16
23
|
tool?: (slotProps: {
|
|
@@ -23,7 +30,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
23
30
|
"tool-action": (payload: ChatToolActionPayload) => any;
|
|
24
31
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
32
|
"onTool-action"?: ((payload: ChatToolActionPayload) => any) | undefined;
|
|
26
|
-
}>, {
|
|
33
|
+
}>, {
|
|
34
|
+
showElapsed: boolean;
|
|
35
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
37
|
declare const _default: typeof __VLS_export;
|
|
29
38
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProcessStepGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ProcessStepGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProcessStepGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ProcessStepGroup.vue"],"names":[],"mappings":"AAiZA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAI9D,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,WAAW,EACZ,MAAM,UAAU,CAAA;AACjB,OAAO,6BAA6B,CAAA;AAIpC,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAA;IAClC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,SAAS,WAAW,EAAE,CAAA;IACrC,UAAU,CAAC,EAAE,cAAc,CAAA;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AAQJ,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE;QACjB,QAAQ,EAAE,oBAAoB,CAAA;QAC9B,WAAW,CAAC,EAAE,WAAW,CAAA;QACzB,SAAS,EAAE,OAAO,CAAA;KACnB,KAAK,OAAO,CAAA;CACd,CAAC;AA+ZF,QAAA,MAAM,UAAU;;;;;iBA9aE,OAAO;6EAkbvB,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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
content: string;
|
|
3
|
+
streaming?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=ReasoningMarkdown.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReasoningMarkdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ReasoningMarkdown.vue"],"names":[],"mappings":"AAwHA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AA+DF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SubagentRun } from '../types';
|
|
2
|
+
import '../harnessProcessTokens.css';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
agents: readonly SubagentRun[];
|
|
5
|
+
};
|
|
6
|
+
type __VLS_ModelProps = {
|
|
7
|
+
modelValue?: boolean;
|
|
8
|
+
'agentId'?: string | null;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: boolean) => any;
|
|
13
|
+
"update:agentId": (value: string | null) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
16
|
+
"onUpdate:agentId"?: ((value: string | null) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
//# sourceMappingURL=SubagentRunDialog.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubagentRunDialog.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/SubagentRunDialog.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE3C,OAAO,6BAA6B,CAAA;AAOpC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,SAAS,WAAW,EAAE,CAAA;CAC/B,CAAC;AA6BF,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAMF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAiGxD,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AssistantSubagentsStep } from '../types';
|
|
2
|
+
import '../harnessProcessTokens.css';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
step: AssistantSubagentsStep;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=SubagentRunsPanel.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubagentRunsPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/SubagentRunsPanel.vue"],"names":[],"mappings":"AAuLA,OAAO,KAAK,EAAE,sBAAsB,EAAe,MAAM,UAAU,CAAA;AAEnE,OAAO,6BAA6B,CAAA;AAIpC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,sBAAsB,CAAA;CAC7B,CAAC;AAgKF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text: string;
|
|
3
|
+
/** Show the dismiss (×) control — used in the composer chip. */
|
|
4
|
+
closable?: boolean;
|
|
5
|
+
/** Clamp lines in the chip itself (composer = 1, bubble = 3). */
|
|
6
|
+
lines?: 1 | 3;
|
|
7
|
+
testId?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
close: () => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onClose?: (() => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
lines: 1 | 3;
|
|
15
|
+
closable: boolean;
|
|
16
|
+
testId: string;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
//# sourceMappingURL=TextReferenceChip.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextReferenceChip.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/TextReferenceChip.vue"],"names":[],"mappings":"AAsNA,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iEAAiE;IACjE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;AAoLJ,QAAA,MAAM,YAAY;;;;;WAtLN,CAAC,GAAG,CAAC;cAFF,OAAO;YAGT,MAAM;6EAyLjB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolCallPart.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ToolCallPart.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToolCallPart.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ToolCallPart.vue"],"names":[],"mappings":"AA6gCA,OAAO,EAAyC,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAiB3E,OAAO,KAAK,EACV,qBAAqB,EACrB,aAAa,EACb,oBAAoB,EAEpB,WAAW,EACZ,MAAM,UAAU,CAAA;AACjB,OAAO,yBAAyB,CAAA;AAmBhC,OAAO,6BAA6B,CAAA;AAMpC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,oBAAoB,CAAA;IAC9B,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAC;AA03BF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AssistantWebSearchStep } from '../types';
|
|
2
|
+
import '../harnessProcessTokens.css';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
step: AssistantWebSearchStep;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=WebSearchProcessRow.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebSearchProcessRow.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/WebSearchProcessRow.vue"],"names":[],"mappings":"AA2GA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,6BAA6B,CAAA;AAIpC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,sBAAsB,CAAA;CAC7B,CAAC;AAiFF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -9,6 +9,8 @@ type __VLS_Props = {
|
|
|
9
9
|
zoomPercent?: number | null;
|
|
10
10
|
/** Hide the toggle entirely when this render has no sidebar content to show. */
|
|
11
11
|
showSidebarToggle?: boolean;
|
|
12
|
+
/** Hide the "截图提问" pill when the viewer is used as a pure file preview. */
|
|
13
|
+
showScreenshotAsk?: boolean;
|
|
12
14
|
};
|
|
13
15
|
declare var __VLS_1: {}, __VLS_15: {}, __VLS_22: {};
|
|
14
16
|
type __VLS_Slots = {} & {
|
|
@@ -57,6 +59,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
57
59
|
canRotate: boolean;
|
|
58
60
|
zoomPercent: number | null;
|
|
59
61
|
showSidebarToggle: boolean;
|
|
62
|
+
showScreenshotAsk: boolean;
|
|
60
63
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
61
64
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
62
65
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocViewerToolbar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/document-viewer/DocViewerToolbar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocViewerToolbar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/document-viewer/DocViewerToolbar.vue"],"names":[],"mappings":"AAuTA,KAAK,WAAW,GAAG;IACf,0GAA0G;IAC1G,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAC;AAgZJ,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACzC;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK9C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAnaE,MAAM;cACT,MAAM,GAAG,IAAI;iBAFV,OAAO;iBAGP,OAAO;aACX,OAAO;eACL,OAAO;iBACL,MAAM,GAAG,IAAI;uBAEP,OAAO;uBAEP,OAAO;6EA8Z7B,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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
testId?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
close: () => any;
|
|
6
|
+
copy: () => any;
|
|
7
|
+
ask: () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onClose?: (() => any) | undefined;
|
|
10
|
+
onCopy?: (() => any) | undefined;
|
|
11
|
+
onAsk?: (() => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
testId: string;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=DocumentAskPopup.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentAskPopup.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/document-viewer/DocumentAskPopup.vue"],"names":[],"mappings":"AAmGA,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;AA2IJ,QAAA,MAAM,YAAY;;;;;;;;;YA5IL,MAAM;6EAgJjB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -3,6 +3,11 @@ import type { DocumentScreenshotResult } from './adapter';
|
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
resource: ChatResourceFile;
|
|
5
5
|
kind: Extract<ChatPreviewKind, 'pdf' | 'docx' | 'excel' | 'pptx' | 'html' | 'markdown' | 'text'>;
|
|
6
|
+
/**
|
|
7
|
+
* Toolbar "截图提问" + native-selection "问问 AI". Keep on in ChatBot.
|
|
8
|
+
* Set `false` to embed this as a pure file preview.
|
|
9
|
+
*/
|
|
10
|
+
screenshotAsk?: boolean;
|
|
6
11
|
};
|
|
7
12
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
13
|
close: () => any;
|
|
@@ -12,7 +17,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
12
17
|
onClose?: (() => any) | undefined;
|
|
13
18
|
onAction?: ((payload: ConversationUiAction) => any) | undefined;
|
|
14
19
|
"onScreenshot-result"?: ((result: DocumentScreenshotResult) => any) | undefined;
|
|
15
|
-
}>, {
|
|
20
|
+
}>, {
|
|
21
|
+
screenshotAsk: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
23
|
declare const _default: typeof __VLS_export;
|
|
17
24
|
export default _default;
|
|
18
25
|
//# sourceMappingURL=DocumentViewer.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentViewer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/document-viewer/DocumentViewer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocumentViewer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/document-viewer/DocumentViewer.vue"],"names":[],"mappings":"AAibA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAkB1F,OAAO,KAAK,EAGV,wBAAwB,EAGzB,MAAM,WAAW,CAAA;AAIlB,KAAK,WAAW,GAAG;IACf,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,IAAI,EAAE,OAAO,CAAC,eAAe,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC,CAAA;IAChG;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAC;AAmsBJ,QAAA,MAAM,YAAY;;;;;;;;;mBApsBE,OAAO;6EAwsBzB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenshotCropOverlay.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/document-viewer/ScreenshotCropOverlay.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScreenshotCropOverlay.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/document-viewer/ScreenshotCropOverlay.vue"],"names":[],"mappings":"AAmRA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAKvD,KAAK,WAAW,GAAG;IACjB,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;AA+PF,QAAA,MAAM,YAAY;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Document surface the selection must live in (engine / capture root). */
|
|
3
|
+
rootEl?: HTMLElement | null;
|
|
4
|
+
/** Hide while the crop tool owns the pointer. */
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
copy: (text: string) => any;
|
|
9
|
+
ask: (text: string) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onCopy?: ((text: string) => any) | undefined;
|
|
12
|
+
onAsk?: ((text: string) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=TextSelectionAskOverlay.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextSelectionAskOverlay.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/document-viewer/TextSelectionAskOverlay.vue"],"names":[],"mappings":"AAyLA,KAAK,WAAW,GAAG;IACjB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;IAC3B,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAsMF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -23,11 +23,10 @@ export interface DocumentLoadResult {
|
|
|
23
23
|
mode: DocumentViewerMode;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* Result of
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* cropped PNG meant to be attached like a pasted screenshot.
|
|
26
|
+
* Result of toolbar "截图提问" (always a cropped PNG) or native 划词
|
|
27
|
+
* "问问 AI" (plain text). See `screenshotCapture.ts` and
|
|
28
|
+
* `TextSelectionAskOverlay`. Text becomes a composer reference chip
|
|
29
|
+
* (`setTextReference`); images attach like a pasted screenshot.
|
|
31
30
|
*/
|
|
32
31
|
export type DocumentScreenshotResult = {
|
|
33
32
|
type: 'text';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/document-viewer/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,mIAAmI;AACnI,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,MAAM,CAAA;AAErD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,6FAA6F;IAC7F,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAA;CACzB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAA;CACzB;AAED
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/document-viewer/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,mIAAmI;AACnI,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,MAAM,CAAA;AAErD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,6FAA6F;IAC7F,IAAI,CAAC,EA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QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC,CAAA;IAC9D,kBAAkB,CAAC,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IACrC,WAAW,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CACpC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pixel-accurate capture of whatever the compositor actually painted.
|
|
3
|
+
*
|
|
4
|
+
* html2canvas / DOM cloning cannot reproduce iframes, CSS filters, canvas,
|
|
5
|
+
* video, or transformed Word pages. Browsers solve this with the Screen
|
|
6
|
+
* Capture API plus Chrome's Element Capture (`RestrictionTarget`) or Region
|
|
7
|
+
* Capture (`CropTarget`): grab the current tab's painted frames, then restrict
|
|
8
|
+
* the stream to the preview element so iframe HTML and overlays are handled
|
|
9
|
+
* by the compositor, not a second renderer.
|
|
10
|
+
*
|
|
11
|
+
* @see https://developer.chrome.com/docs/web-platform/element-capture
|
|
12
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capture_API/Element_Region_Capture
|
|
13
|
+
*/
|
|
14
|
+
import type { ViewportRect } from './screenshotCapture';
|
|
15
|
+
export interface TabElementCapture {
|
|
16
|
+
grabCrop(rect: ViewportRect, filename: string): Promise<File | null>;
|
|
17
|
+
stop(): void;
|
|
18
|
+
}
|
|
19
|
+
/** Map a viewport-space crop onto a canvas that already matches `element`. */
|
|
20
|
+
export declare function cropCanvasToElementRect(source: HTMLCanvasElement, element: HTMLElement, rect: ViewportRect): HTMLCanvasElement | null;
|
|
21
|
+
/**
|
|
22
|
+
* Prompt for current-tab capture (Chrome shows only this tab when
|
|
23
|
+
* `preferCurrentTab` is set) and pin the stream to `element`. Returns null
|
|
24
|
+
* when the API is missing, the user cancels, or the track cannot be restricted
|
|
25
|
+
* — callers then fall back to format-specific rasterizers.
|
|
26
|
+
*/
|
|
27
|
+
export declare function startTabElementCapture(element: HTMLElement): Promise<TabElementCapture | null>;
|
|
28
|
+
//# sourceMappingURL=displayCapture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"displayCapture.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/document-viewer/displayCapture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEvD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;IACpE,IAAI,IAAI,IAAI,CAAA;CACb;AA8BD,8EAA8E;AAC9E,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,YAAY,GACjB,iBAAiB,GAAG,IAAI,CA2B1B;AA6CD;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CA0EnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HtmlRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/components/document-viewer/html/HtmlRenderer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HtmlRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/components/document-viewer/html/HtmlRenderer.vue"],"names":[],"mappings":"AAyKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAUjE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,gBAAgB,CAAA;CAC3B,CAAC;AA0DF,iBAAe,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAkBjD;AAED,iBAAe,UAAU,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAElD;AAED,iBAAS,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAEzC;AAED,iBAAS,QAAQ,IAAI,IAAI,CAOxB;AAiFD,QAAA,MAAM,YAAY;;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
src: string | ArrayBuffer | Blob;
|
|
3
|
+
requestOptions?: Parameters<typeof fetch>[1];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
error: (error: unknown) => any;
|
|
7
|
+
rendered: () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
10
|
+
onRendered?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=DocxPreviewEngine.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocxPreviewEngine.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/components/document-viewer/office/DocxPreviewEngine.vue"],"names":[],"mappings":"AAiFA,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAAA;IAChC,cAAc,CAAC,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;CAC7C,CAAC;AAqFF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
package/dist/components/chat/components/document-viewer/office/OfficeDocumentViewer.vue.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import type { DocumentScreenshotResult } from '../adapter';
|
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
resource: ChatResourceFile;
|
|
5
5
|
kind: 'docx' | 'pptx';
|
|
6
|
+
/** See `DocumentViewer` — set `false` to embed as a pure file preview. */
|
|
7
|
+
screenshotAsk?: boolean;
|
|
6
8
|
};
|
|
7
9
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
10
|
close: () => any;
|
|
@@ -10,7 +12,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
10
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
13
|
onClose?: (() => any) | undefined;
|
|
12
14
|
"onScreenshot-result"?: ((result: DocumentScreenshotResult) => any) | undefined;
|
|
13
|
-
}>, {
|
|
15
|
+
}>, {
|
|
16
|
+
screenshotAsk: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
18
|
declare const _default: typeof __VLS_export;
|
|
15
19
|
export default _default;
|
|
16
20
|
//# sourceMappingURL=OfficeDocumentViewer.vue.d.ts.map
|
package/dist/components/chat/components/document-viewer/office/OfficeDocumentViewer.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfficeDocumentViewer.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/components/document-viewer/office/OfficeDocumentViewer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OfficeDocumentViewer.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/components/document-viewer/office/OfficeDocumentViewer.vue"],"names":[],"mappings":"AAyaA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AActD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAS1D,KAAK,WAAW,GAAG;IACf,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,0EAA0E;IAC1E,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAC;AAuhBJ,QAAA,MAAM,YAAY;;;;;;;mBAxhBE,OAAO;6EA4hBzB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Word HTML from `docx-preview` is almost entirely inline CSS, then dropped
|
|
3
|
+
* into the chat sidebar's light DOM. WPS/Word exports still look wrong because:
|
|
4
|
+
*
|
|
5
|
+
* 1. Table borders omit `w:color`. Word treats that as auto/black; the renderer
|
|
6
|
+
* emits `border: 0.5pt solid null`. CSSOM rejects the invalid shorthand, so
|
|
7
|
+
* the style never lands on the element (repairing `solid null` in the
|
|
8
|
+
* attribute afterwards is a no-op).
|
|
9
|
+
* 2. Most style keys are kebab-case (`background-color`, `font-family`).
|
|
10
|
+
* `Object.assign(el.style, …)` drops those on WebKit, which wipes fills,
|
|
11
|
+
* zebra rows, fonts, and paragraph spacing in one go.
|
|
12
|
+
* 3. CJK faces (黑体/仿宋) are named but not installed on macOS.
|
|
13
|
+
* 4. Built-in Heading/Title are often omitted from `styles.xml`.
|
|
14
|
+
* 5. ChatBot dark `color-scheme` and host resets (`* { box-sizing }`,
|
|
15
|
+
* `table { width }`, `p { margin }`) leak into the page.
|
|
16
|
+
*/
|
|
17
|
+
export declare const DOCX_CHROME_STYLE_ATTR = "data-docx-chrome";
|
|
18
|
+
export type DocxHNode = {
|
|
19
|
+
ns?: string;
|
|
20
|
+
tagName: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
style?: Record<string, string | null | undefined> | string;
|
|
23
|
+
children?: Array<DocxHNode | Node | string>;
|
|
24
|
+
} & Record<string, unknown>;
|
|
25
|
+
export declare function docxChromeCss(className?: string): string;
|
|
26
|
+
export declare function toKebabCase(property: string): string;
|
|
27
|
+
export declare function withCjkFontFallbacks(fontFamily: string): string;
|
|
28
|
+
export declare function sanitizeCssValue(property: string, value: string): string;
|
|
29
|
+
export declare function serializeDocxStyle(style: Record<string, string | null | undefined> | string): string;
|
|
30
|
+
/**
|
|
31
|
+
* Replaces docx-preview's default `h`. Writing CSS via the `style` attribute
|
|
32
|
+
* (kebab-case, sanitized) keeps fills / borders / fonts / spacing even when
|
|
33
|
+
* CSSOM would reject `solid null` or ignore hyphenated Object.assign keys.
|
|
34
|
+
*/
|
|
35
|
+
export declare function createDocxHyperscript(): (elem: DocxHNode | Node | string) => Node;
|
|
36
|
+
/** Word treats a missing border color as auto/black; the HTML renderer emits `solid null`. */
|
|
37
|
+
export declare function repairInvalidBorders(root: ParentNode): number;
|
|
38
|
+
/**
|
|
39
|
+
* CSSOM drops invalid `solid null` before it ever becomes an attribute, so
|
|
40
|
+
* WPS tables with `tblBorders` and no `w:color` render with zero lines.
|
|
41
|
+
* Restore a Word-auto hairline on cells that ended up borderless.
|
|
42
|
+
*/
|
|
43
|
+
export declare function ensureTableCellBorders(root: ParentNode): number;
|
|
44
|
+
export declare function applyDocxChrome(root: HTMLElement, className?: string): void;
|
|
45
|
+
//# sourceMappingURL=docxChrome.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docxChrome.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/components/document-viewer/office/docxChrome.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,sBAAsB,qBAAqB,CAAA;AAuCxD,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,MAAM,CAAA;IAC1D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,GAAG,MAAM,CAAC,CAAA;CAC5C,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAiF3B,wBAAgB,aAAa,CAAC,SAAS,SAAS,GAAG,MAAM,CAExD;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGpD;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAW/D;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAUxE;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,MAAM,GACxD,MAAM,CAQR;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,MAAM,KAAK,IAAI,CA0BjF;AAED,8FAA8F;AAC9F,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAa7D;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAU/D;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,SAAS,GAAG,IAAI,CAQ3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domNav.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/components/document-viewer/office/domNav.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,EAAE,EAAE,WAAW,CAAA;CAChB;
|
|
1
|
+
{"version":3,"file":"domNav.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/components/document-viewer/office/domNav.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,EAAE,EAAE,WAAW,CAAA;CAChB;AAqBD,qFAAqF;AACrF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,eAAe,EAAE,CAkBvE;AAED,MAAM,WAAW,UAAW,SAAQ,gBAAgB;IAClD,EAAE,EAAE,WAAW,CAAA;CAChB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,EAAE,CAajE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Word pages are laid out at their real page size (A4, Letter, …) and then
|
|
3
|
+
* scaled to the sidebar width. Scaling only the first `section.docx` — or
|
|
4
|
+
* using `transform-origin: top center` inside a narrower wrapper — is what
|
|
5
|
+
* made multi-page WPS documents look like they had "lost" their layout.
|
|
6
|
+
*/
|
|
7
|
+
export declare function fitDocxSectionsToWidth(wrapper: HTMLElement, sections: HTMLElement[], zoom: number): number;
|
|
8
|
+
//# sourceMappingURL=fitDocx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fitDocx.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/components/document-viewer/office/fitDocx.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,WAAW,EAAE,EACvB,IAAI,EAAE,MAAM,GACX,MAAM,CA4BR"}
|