@8wave/ai-elements 0.123.0-beta.16 → 0.123.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/PkFilePreview-DXmgMwwu.js +1143 -0
- package/dist/_chunks/PkFilePreview-DXmgMwwu.js.map +1 -0
- package/dist/_chunks/{PkFilePreviewDialog-nibxELSF.js → PkFilePreviewDialog-Bzt534GA.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-nibxELSF.js.map → PkFilePreviewDialog-Bzt534GA.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-C6cFkf82.js → PkStreamingMarkdown-PQ3X83Fq.js} +2 -2
- package/dist/_chunks/{PkStreamingMarkdown-C6cFkf82.js.map → PkStreamingMarkdown-PQ3X83Fq.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-5t_1vL81.js → PkToolChatFile-CYxqugvO.js} +2 -2
- package/dist/_chunks/{PkToolChatFile-5t_1vL81.js.map → PkToolChatFile-CYxqugvO.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-DV78g_yD.js → PkToolShowArtifact-BIpD-GkV.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-DV78g_yD.js.map → PkToolShowArtifact-BIpD-GkV.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Bnjy0g50.js → PkToolShowContactForm-2_YDqjeM.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-Bnjy0g50.js.map → PkToolShowContactForm-2_YDqjeM.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-CT5_ln9b.js → PkToolShowForm-Bu4igmQL.js} +5 -5
- package/dist/_chunks/{PkToolShowForm-CT5_ln9b.js.map → PkToolShowForm-Bu4igmQL.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-DhZ5I_J-.js → PkToolShowSources-DKtdU_Bq.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-DhZ5I_J-.js.map → PkToolShowSources-DKtdU_Bq.js.map} +1 -1
- package/dist/_chunks/{utils-B5VcWm3g.js → utils-Bz1Gb3iO.js} +114 -77
- package/dist/_chunks/utils-Bz1Gb3iO.js.map +1 -0
- package/dist/ai-elements.es.js +252 -252
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-tq-fJUij.js → PkChatbot-MEYD0XUR.js} +5 -5
- package/dist-vue/_chunks/{PkChatbot-tq-fJUij.js.map → PkChatbot-MEYD0XUR.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-Dp0_UPJm.js → PkChatbotEmptyState-qKpfIuvI.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-Dp0_UPJm.js.map → PkChatbotEmptyState-qKpfIuvI.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-B_kPnNNB.js → PkChatbotInput-DSH5IrO6.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-B_kPnNNB.js.map → PkChatbotInput-DSH5IrO6.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-BTZOic9V.js → PkChatbotMessages-BcHNPZUB.js} +327 -327
- package/dist-vue/_chunks/{PkChatbotMessages-BTZOic9V.js.map → PkChatbotMessages-BcHNPZUB.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-CoGCHBhJ.js → PkChatbotStepPayload-BT-Xg18D.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-CoGCHBhJ.js.map → PkChatbotStepPayload-BT-Xg18D.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-BJtIZBF0.js → PkChatbotStepToolDetail-Cs322RDk.js} +16 -16
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-BJtIZBF0.js.map → PkChatbotStepToolDetail-Cs322RDk.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-CEJNclG4.js → PkChatbotSteps-Dd62GEXJ.js} +23 -23
- package/dist-vue/_chunks/{PkChatbotSteps-CEJNclG4.js.map → PkChatbotSteps-Dd62GEXJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-CnEOSH32.js → PkChatbotViewChat-CfpGWukX.js} +9 -9
- package/dist-vue/_chunks/{PkChatbotViewChat-CnEOSH32.js.map → PkChatbotViewChat-CfpGWukX.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-D7j5P1RO.js → PkChatbotViewConversations-JCrQIoGf.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-D7j5P1RO.js.map → PkChatbotViewConversations-JCrQIoGf.js.map} +1 -1
- package/dist-vue/_chunks/PkFilePreview-CFqcO3vY.js +1126 -0
- package/dist-vue/_chunks/PkFilePreview-CFqcO3vY.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreviewDialog-Cic7gmVR.js → PkFilePreviewDialog-DeNnbXWq.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-Cic7gmVR.js.map → PkFilePreviewDialog-DeNnbXWq.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-CYlCIfA0.js → PkStreamingMarkdown-QDsT-4jC.js} +2 -2
- package/dist-vue/_chunks/{PkStreamingMarkdown-CYlCIfA0.js.map → PkStreamingMarkdown-QDsT-4jC.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-B_PeJef8.js → PkToolChatFile-UZeUytvT.js} +2 -2
- package/dist-vue/_chunks/{PkToolChatFile-B_PeJef8.js.map → PkToolChatFile-UZeUytvT.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-Bh-jIo0V.js → PkToolShowArtifact-ldnH-U3h.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-Bh-jIo0V.js.map → PkToolShowArtifact-ldnH-U3h.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BjfRuNuj.js → PkToolShowContactForm-4hISKYqb.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-BjfRuNuj.js.map → PkToolShowContactForm-4hISKYqb.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-_NnrFDGT.js → PkToolShowDiagram-uHFCQ0FJ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-_NnrFDGT.js.map → PkToolShowDiagram-uHFCQ0FJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-AqEY4_do.js → PkToolShowForm-DiUz5_Ct.js} +5 -5
- package/dist-vue/_chunks/{PkToolShowForm-AqEY4_do.js.map → PkToolShowForm-DiUz5_Ct.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-DM5AJNZ3.js → PkToolShowImageGallery-CEzeXupr.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-DM5AJNZ3.js.map → PkToolShowImageGallery-CEzeXupr.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-CAV8be9a.js → PkToolShowProductList-h4Dqvk1V.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-CAV8be9a.js.map → PkToolShowProductList-h4Dqvk1V.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-CriswKr_.js → PkToolShowSources-BJd4zYAY.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSources-CriswKr_.js.map → PkToolShowSources-BJd4zYAY.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-FSWM5MOl.js → PkToolShowVideo-DgkpZriW.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-FSWM5MOl.js.map → PkToolShowVideo-DgkpZriW.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-CPhm2ba3.js → PkToolShowWebPages-DQr3SEGC.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-CPhm2ba3.js.map → PkToolShowWebPages-DQr3SEGC.js.map} +1 -1
- package/dist-vue/_chunks/{utils-BgvjC1Pu.js → utils-DmBnucJs.js} +129 -92
- package/dist-vue/_chunks/utils-DmBnucJs.js.map +1 -0
- package/dist-vue/composables.js +1 -1
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +32 -32
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/packages/components/src/chat/PkWordPreview.d.ts +3 -1
- package/dist-vue/packages/components/src/chat/PkWordPreviewBlock.d.ts +9 -3
- package/dist-vue/packages/components/src/chat/PkWordPreviewPart.d.ts +20 -0
- package/dist-vue/packages/components/src/chat/PkWordPreviewRuns.d.ts +12 -3
- package/dist-vue/packages/components/src/chat/useChatFilePreview.d.ts +420 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +49 -1
- package/dist-vue/packages/models/src/schema/SpreadsheetPreview.d.ts +339 -0
- package/dist-vue/packages/models/src/schema/WordPreview.d.ts +571 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkFilePreview-Bcdfci6i.js +0 -948
- package/dist/_chunks/PkFilePreview-Bcdfci6i.js.map +0 -1
- package/dist/_chunks/utils-B5VcWm3g.js.map +0 -1
- package/dist-vue/_chunks/PkFilePreview-BKwnNsyV.js +0 -934
- package/dist-vue/_chunks/PkFilePreview-BKwnNsyV.js.map +0 -1
- package/dist-vue/_chunks/utils-BgvjC1Pu.js.map +0 -1
|
@@ -9,7 +9,9 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
9
9
|
* paragraph and each table row is measured at the width of the page and
|
|
10
10
|
* placed on the next page when it does not fit, or where the document
|
|
11
11
|
* breaks the page, so they come close to Word's without matching them.
|
|
12
|
-
*
|
|
12
|
+
* Each page carries the header and the footer of its section, with its
|
|
13
|
+
* page numbers, and the images Word positions on it. Below 640 pixels
|
|
14
|
+
* the text flows at the width of the screen, with no header. A side
|
|
13
15
|
* panel lists the headings and the tracked changes, and leads to them.
|
|
14
16
|
* The pages keep their white in the dark theme. Framed by
|
|
15
17
|
* `PkFilePreview`.
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
import { WordPreviewBlock } from '../../../models/src';
|
|
2
|
-
import { WordPreviewMode } from './utils';
|
|
1
|
+
import { WordPreviewBlock, WordPreviewPage } from '../../../models/src';
|
|
2
|
+
import { WordPageNumbers, WordPreviewMode } from './utils';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
/**
|
|
5
5
|
* One piece of a Word document's flow in the viewer: a paragraph or a
|
|
6
6
|
* heading laid out as its style says (alignment, indents, spacing, line
|
|
7
7
|
* height, the number of a list item in its hanging indent), or one row of
|
|
8
8
|
* a table, so a table can break between pages as Word breaks it. A
|
|
9
|
-
* paragraph with a tracked change carries Word's bar in the margin.
|
|
9
|
+
* paragraph with a tracked change carries Word's bar in the margin. The
|
|
10
|
+
* images of a paragraph are positioned on `page`; those of a cell sit in
|
|
11
|
+
* its text.
|
|
10
12
|
*/
|
|
11
13
|
type __VLS_Props = {
|
|
12
14
|
block: WordPreviewBlock;
|
|
13
15
|
/** The row of a table this piece draws. */
|
|
14
16
|
row?: number;
|
|
15
17
|
mode: WordPreviewMode;
|
|
18
|
+
/** The page of the section, where images are positioned. */
|
|
19
|
+
page?: WordPreviewPage;
|
|
20
|
+
/** The numbers of the page, for its page number fields. */
|
|
21
|
+
numbers?: WordPageNumbers;
|
|
16
22
|
};
|
|
17
23
|
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
18
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { WordPreviewBlock, WordPreviewSection } from '../../../models/src';
|
|
2
|
+
import { WordPageNumbers, WordPreviewMode } from './utils';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* The header or the footer of a page of a Word document in the viewer,
|
|
6
|
+
* over the whole page: its text at the distance from the page's edge the
|
|
7
|
+
* section gives, between the margins, and its images where Word
|
|
8
|
+
* positions them on the page, a logo or a background. Its page number
|
|
9
|
+
* fields show the page's numbers.
|
|
10
|
+
*/
|
|
11
|
+
type __VLS_Props = {
|
|
12
|
+
blocks: WordPreviewBlock[];
|
|
13
|
+
where: 'header' | 'footer';
|
|
14
|
+
section: WordPreviewSection;
|
|
15
|
+
mode: WordPreviewMode;
|
|
16
|
+
numbers: WordPageNumbers;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WordPreviewRun } from '../../../models/src';
|
|
2
|
-
import { WordPreviewMode } from './utils';
|
|
1
|
+
import { WordPreviewPage, WordPreviewRun } from '../../../models/src';
|
|
2
|
+
import { WordPageNumbers, WordPreviewMode } from './utils';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
/**
|
|
5
5
|
* The runs of a paragraph or a cell of a Word document in the viewer, as
|
|
@@ -7,11 +7,20 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
7
7
|
* highlight, bold, italic, underline, capitals. With the revisions in
|
|
8
8
|
* sight, a tracked change is struck where words went and underlined
|
|
9
9
|
* where they came, its author said on hover; as if accepted or as before
|
|
10
|
-
* them, the changed text is plain. An image is
|
|
10
|
+
* them, the changed text is plain. An image is drawn at its size: in the
|
|
11
|
+
* text, beside the text of its paragraph, on a line of its own or where
|
|
12
|
+
* Word positions it from its paragraph; one positioned on the page is
|
|
13
|
+
* the page's to draw. Without the page (in a cell, or where the text
|
|
14
|
+
* flows) every image sits in the text. An image the preview could not
|
|
15
|
+
* read is a placeholder. A page number field shows the page's number.
|
|
11
16
|
*/
|
|
12
17
|
type __VLS_Props = {
|
|
13
18
|
runs: WordPreviewRun[];
|
|
14
19
|
mode?: WordPreviewMode;
|
|
20
|
+
/** The page of the section, where images are positioned. */
|
|
21
|
+
page?: WordPreviewPage;
|
|
22
|
+
/** The numbers of the page the runs are on. */
|
|
23
|
+
numbers?: WordPageNumbers;
|
|
15
24
|
};
|
|
16
25
|
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
17
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -29,6 +29,19 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
|
|
|
29
29
|
color?: string | undefined;
|
|
30
30
|
highlight?: string | undefined;
|
|
31
31
|
image?: true | undefined;
|
|
32
|
+
picture?: {
|
|
33
|
+
ref: string;
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
anchor?: {
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
xFrom: "page" | "margin";
|
|
40
|
+
yFrom: "page" | "margin" | "paragraph";
|
|
41
|
+
wrap: "behind" | "front" | "around" | "block";
|
|
42
|
+
} | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
field?: "page" | "pages" | "sectionPages" | undefined;
|
|
32
45
|
}[];
|
|
33
46
|
label?: string | undefined;
|
|
34
47
|
style?: {
|
|
@@ -43,7 +56,9 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
|
|
|
43
56
|
lineAtLeast?: number | undefined;
|
|
44
57
|
pageBreakBefore?: true | undefined;
|
|
45
58
|
shading?: string | undefined;
|
|
59
|
+
size?: number | undefined;
|
|
46
60
|
} | undefined;
|
|
61
|
+
section?: number | undefined;
|
|
47
62
|
} | {
|
|
48
63
|
kind: "paragraph";
|
|
49
64
|
runs: {
|
|
@@ -61,6 +76,19 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
|
|
|
61
76
|
color?: string | undefined;
|
|
62
77
|
highlight?: string | undefined;
|
|
63
78
|
image?: true | undefined;
|
|
79
|
+
picture?: {
|
|
80
|
+
ref: string;
|
|
81
|
+
width: number;
|
|
82
|
+
height: number;
|
|
83
|
+
anchor?: {
|
|
84
|
+
x: number;
|
|
85
|
+
y: number;
|
|
86
|
+
xFrom: "page" | "margin";
|
|
87
|
+
yFrom: "page" | "margin" | "paragraph";
|
|
88
|
+
wrap: "behind" | "front" | "around" | "block";
|
|
89
|
+
} | undefined;
|
|
90
|
+
} | undefined;
|
|
91
|
+
field?: "page" | "pages" | "sectionPages" | undefined;
|
|
64
92
|
}[];
|
|
65
93
|
label?: string | undefined;
|
|
66
94
|
style?: {
|
|
@@ -75,7 +103,9 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
|
|
|
75
103
|
lineAtLeast?: number | undefined;
|
|
76
104
|
pageBreakBefore?: true | undefined;
|
|
77
105
|
shading?: string | undefined;
|
|
106
|
+
size?: number | undefined;
|
|
78
107
|
} | undefined;
|
|
108
|
+
section?: number | undefined;
|
|
79
109
|
} | {
|
|
80
110
|
kind: "table";
|
|
81
111
|
rows: {
|
|
@@ -94,14 +124,29 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
|
|
|
94
124
|
color?: string | undefined;
|
|
95
125
|
highlight?: string | undefined;
|
|
96
126
|
image?: true | undefined;
|
|
127
|
+
picture?: {
|
|
128
|
+
ref: string;
|
|
129
|
+
width: number;
|
|
130
|
+
height: number;
|
|
131
|
+
anchor?: {
|
|
132
|
+
x: number;
|
|
133
|
+
y: number;
|
|
134
|
+
xFrom: "page" | "margin";
|
|
135
|
+
yFrom: "page" | "margin" | "paragraph";
|
|
136
|
+
wrap: "behind" | "front" | "around" | "block";
|
|
137
|
+
} | undefined;
|
|
138
|
+
} | undefined;
|
|
139
|
+
field?: "page" | "pages" | "sectionPages" | undefined;
|
|
97
140
|
}[];
|
|
98
141
|
span?: number | undefined;
|
|
99
142
|
fill?: string | undefined;
|
|
100
143
|
align?: "left" | "right" | "center" | "justify" | undefined;
|
|
144
|
+
size?: number | undefined;
|
|
101
145
|
}[][];
|
|
102
146
|
borders: boolean;
|
|
103
147
|
widths?: number[] | undefined;
|
|
104
148
|
pageBreakBefore?: true | undefined;
|
|
149
|
+
section?: number | undefined;
|
|
105
150
|
})[];
|
|
106
151
|
truncated: boolean;
|
|
107
152
|
revisionAuthors: string[];
|
|
@@ -120,6 +165,171 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
|
|
|
120
165
|
size: number;
|
|
121
166
|
color?: string | undefined;
|
|
122
167
|
};
|
|
168
|
+
sections?: {
|
|
169
|
+
page: {
|
|
170
|
+
width: number;
|
|
171
|
+
height: number;
|
|
172
|
+
margins: {
|
|
173
|
+
top: number;
|
|
174
|
+
right: number;
|
|
175
|
+
bottom: number;
|
|
176
|
+
left: number;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
headerDistance: number;
|
|
180
|
+
footerDistance: number;
|
|
181
|
+
headers: {
|
|
182
|
+
default?: string | undefined;
|
|
183
|
+
first?: string | undefined;
|
|
184
|
+
even?: string | undefined;
|
|
185
|
+
};
|
|
186
|
+
footers: {
|
|
187
|
+
default?: string | undefined;
|
|
188
|
+
first?: string | undefined;
|
|
189
|
+
even?: string | undefined;
|
|
190
|
+
};
|
|
191
|
+
titlePage?: true | undefined;
|
|
192
|
+
pageStart?: number | undefined;
|
|
193
|
+
}[] | undefined;
|
|
194
|
+
parts?: Record<string, ({
|
|
195
|
+
kind: "heading";
|
|
196
|
+
level: number;
|
|
197
|
+
runs: {
|
|
198
|
+
text: string;
|
|
199
|
+
change?: "deleted" | "inserted" | undefined;
|
|
200
|
+
author?: string | undefined;
|
|
201
|
+
bold?: true | undefined;
|
|
202
|
+
italic?: true | undefined;
|
|
203
|
+
underline?: true | undefined;
|
|
204
|
+
strike?: true | undefined;
|
|
205
|
+
caps?: true | undefined;
|
|
206
|
+
vertAlign?: "sub" | "super" | undefined;
|
|
207
|
+
font?: string | undefined;
|
|
208
|
+
size?: number | undefined;
|
|
209
|
+
color?: string | undefined;
|
|
210
|
+
highlight?: string | undefined;
|
|
211
|
+
image?: true | undefined;
|
|
212
|
+
picture?: {
|
|
213
|
+
ref: string;
|
|
214
|
+
width: number;
|
|
215
|
+
height: number;
|
|
216
|
+
anchor?: {
|
|
217
|
+
x: number;
|
|
218
|
+
y: number;
|
|
219
|
+
xFrom: "page" | "margin";
|
|
220
|
+
yFrom: "page" | "margin" | "paragraph";
|
|
221
|
+
wrap: "behind" | "front" | "around" | "block";
|
|
222
|
+
} | undefined;
|
|
223
|
+
} | undefined;
|
|
224
|
+
field?: "page" | "pages" | "sectionPages" | undefined;
|
|
225
|
+
}[];
|
|
226
|
+
label?: string | undefined;
|
|
227
|
+
style?: {
|
|
228
|
+
align?: "left" | "right" | "center" | "justify" | undefined;
|
|
229
|
+
indentLeft?: number | undefined;
|
|
230
|
+
indentRight?: number | undefined;
|
|
231
|
+
firstLine?: number | undefined;
|
|
232
|
+
spaceBefore?: number | undefined;
|
|
233
|
+
spaceAfter?: number | undefined;
|
|
234
|
+
lineHeight?: number | undefined;
|
|
235
|
+
lineExact?: number | undefined;
|
|
236
|
+
lineAtLeast?: number | undefined;
|
|
237
|
+
pageBreakBefore?: true | undefined;
|
|
238
|
+
shading?: string | undefined;
|
|
239
|
+
size?: number | undefined;
|
|
240
|
+
} | undefined;
|
|
241
|
+
section?: number | undefined;
|
|
242
|
+
} | {
|
|
243
|
+
kind: "paragraph";
|
|
244
|
+
runs: {
|
|
245
|
+
text: string;
|
|
246
|
+
change?: "deleted" | "inserted" | undefined;
|
|
247
|
+
author?: string | undefined;
|
|
248
|
+
bold?: true | undefined;
|
|
249
|
+
italic?: true | undefined;
|
|
250
|
+
underline?: true | undefined;
|
|
251
|
+
strike?: true | undefined;
|
|
252
|
+
caps?: true | undefined;
|
|
253
|
+
vertAlign?: "sub" | "super" | undefined;
|
|
254
|
+
font?: string | undefined;
|
|
255
|
+
size?: number | undefined;
|
|
256
|
+
color?: string | undefined;
|
|
257
|
+
highlight?: string | undefined;
|
|
258
|
+
image?: true | undefined;
|
|
259
|
+
picture?: {
|
|
260
|
+
ref: string;
|
|
261
|
+
width: number;
|
|
262
|
+
height: number;
|
|
263
|
+
anchor?: {
|
|
264
|
+
x: number;
|
|
265
|
+
y: number;
|
|
266
|
+
xFrom: "page" | "margin";
|
|
267
|
+
yFrom: "page" | "margin" | "paragraph";
|
|
268
|
+
wrap: "behind" | "front" | "around" | "block";
|
|
269
|
+
} | undefined;
|
|
270
|
+
} | undefined;
|
|
271
|
+
field?: "page" | "pages" | "sectionPages" | undefined;
|
|
272
|
+
}[];
|
|
273
|
+
label?: string | undefined;
|
|
274
|
+
style?: {
|
|
275
|
+
align?: "left" | "right" | "center" | "justify" | undefined;
|
|
276
|
+
indentLeft?: number | undefined;
|
|
277
|
+
indentRight?: number | undefined;
|
|
278
|
+
firstLine?: number | undefined;
|
|
279
|
+
spaceBefore?: number | undefined;
|
|
280
|
+
spaceAfter?: number | undefined;
|
|
281
|
+
lineHeight?: number | undefined;
|
|
282
|
+
lineExact?: number | undefined;
|
|
283
|
+
lineAtLeast?: number | undefined;
|
|
284
|
+
pageBreakBefore?: true | undefined;
|
|
285
|
+
shading?: string | undefined;
|
|
286
|
+
size?: number | undefined;
|
|
287
|
+
} | undefined;
|
|
288
|
+
section?: number | undefined;
|
|
289
|
+
} | {
|
|
290
|
+
kind: "table";
|
|
291
|
+
rows: {
|
|
292
|
+
runs: {
|
|
293
|
+
text: string;
|
|
294
|
+
change?: "deleted" | "inserted" | undefined;
|
|
295
|
+
author?: string | undefined;
|
|
296
|
+
bold?: true | undefined;
|
|
297
|
+
italic?: true | undefined;
|
|
298
|
+
underline?: true | undefined;
|
|
299
|
+
strike?: true | undefined;
|
|
300
|
+
caps?: true | undefined;
|
|
301
|
+
vertAlign?: "sub" | "super" | undefined;
|
|
302
|
+
font?: string | undefined;
|
|
303
|
+
size?: number | undefined;
|
|
304
|
+
color?: string | undefined;
|
|
305
|
+
highlight?: string | undefined;
|
|
306
|
+
image?: true | undefined;
|
|
307
|
+
picture?: {
|
|
308
|
+
ref: string;
|
|
309
|
+
width: number;
|
|
310
|
+
height: number;
|
|
311
|
+
anchor?: {
|
|
312
|
+
x: number;
|
|
313
|
+
y: number;
|
|
314
|
+
xFrom: "page" | "margin";
|
|
315
|
+
yFrom: "page" | "margin" | "paragraph";
|
|
316
|
+
wrap: "behind" | "front" | "around" | "block";
|
|
317
|
+
} | undefined;
|
|
318
|
+
} | undefined;
|
|
319
|
+
field?: "page" | "pages" | "sectionPages" | undefined;
|
|
320
|
+
}[];
|
|
321
|
+
span?: number | undefined;
|
|
322
|
+
fill?: string | undefined;
|
|
323
|
+
align?: "left" | "right" | "center" | "justify" | undefined;
|
|
324
|
+
size?: number | undefined;
|
|
325
|
+
}[][];
|
|
326
|
+
borders: boolean;
|
|
327
|
+
widths?: number[] | undefined;
|
|
328
|
+
pageBreakBefore?: true | undefined;
|
|
329
|
+
section?: number | undefined;
|
|
330
|
+
})[]> | undefined;
|
|
331
|
+
evenAndOddHeaders?: true | undefined;
|
|
332
|
+
images?: Record<string, string> | undefined;
|
|
123
333
|
} | {
|
|
124
334
|
kind: "spreadsheet";
|
|
125
335
|
sheets: {
|
|
@@ -212,6 +422,19 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
|
|
|
212
422
|
color?: string | undefined;
|
|
213
423
|
highlight?: string | undefined;
|
|
214
424
|
image?: true | undefined;
|
|
425
|
+
picture?: {
|
|
426
|
+
ref: string;
|
|
427
|
+
width: number;
|
|
428
|
+
height: number;
|
|
429
|
+
anchor?: {
|
|
430
|
+
x: number;
|
|
431
|
+
y: number;
|
|
432
|
+
xFrom: "page" | "margin";
|
|
433
|
+
yFrom: "page" | "margin" | "paragraph";
|
|
434
|
+
wrap: "behind" | "front" | "around" | "block";
|
|
435
|
+
} | undefined;
|
|
436
|
+
} | undefined;
|
|
437
|
+
field?: "page" | "pages" | "sectionPages" | undefined;
|
|
215
438
|
}[];
|
|
216
439
|
label?: string | undefined;
|
|
217
440
|
style?: {
|
|
@@ -226,7 +449,9 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
|
|
|
226
449
|
lineAtLeast?: number | undefined;
|
|
227
450
|
pageBreakBefore?: true | undefined;
|
|
228
451
|
shading?: string | undefined;
|
|
452
|
+
size?: number | undefined;
|
|
229
453
|
} | undefined;
|
|
454
|
+
section?: number | undefined;
|
|
230
455
|
} | {
|
|
231
456
|
kind: "paragraph";
|
|
232
457
|
runs: {
|
|
@@ -244,6 +469,19 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
|
|
|
244
469
|
color?: string | undefined;
|
|
245
470
|
highlight?: string | undefined;
|
|
246
471
|
image?: true | undefined;
|
|
472
|
+
picture?: {
|
|
473
|
+
ref: string;
|
|
474
|
+
width: number;
|
|
475
|
+
height: number;
|
|
476
|
+
anchor?: {
|
|
477
|
+
x: number;
|
|
478
|
+
y: number;
|
|
479
|
+
xFrom: "page" | "margin";
|
|
480
|
+
yFrom: "page" | "margin" | "paragraph";
|
|
481
|
+
wrap: "behind" | "front" | "around" | "block";
|
|
482
|
+
} | undefined;
|
|
483
|
+
} | undefined;
|
|
484
|
+
field?: "page" | "pages" | "sectionPages" | undefined;
|
|
247
485
|
}[];
|
|
248
486
|
label?: string | undefined;
|
|
249
487
|
style?: {
|
|
@@ -258,7 +496,9 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
|
|
|
258
496
|
lineAtLeast?: number | undefined;
|
|
259
497
|
pageBreakBefore?: true | undefined;
|
|
260
498
|
shading?: string | undefined;
|
|
499
|
+
size?: number | undefined;
|
|
261
500
|
} | undefined;
|
|
501
|
+
section?: number | undefined;
|
|
262
502
|
} | {
|
|
263
503
|
kind: "table";
|
|
264
504
|
rows: {
|
|
@@ -277,14 +517,29 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
|
|
|
277
517
|
color?: string | undefined;
|
|
278
518
|
highlight?: string | undefined;
|
|
279
519
|
image?: true | undefined;
|
|
520
|
+
picture?: {
|
|
521
|
+
ref: string;
|
|
522
|
+
width: number;
|
|
523
|
+
height: number;
|
|
524
|
+
anchor?: {
|
|
525
|
+
x: number;
|
|
526
|
+
y: number;
|
|
527
|
+
xFrom: "page" | "margin";
|
|
528
|
+
yFrom: "page" | "margin" | "paragraph";
|
|
529
|
+
wrap: "behind" | "front" | "around" | "block";
|
|
530
|
+
} | undefined;
|
|
531
|
+
} | undefined;
|
|
532
|
+
field?: "page" | "pages" | "sectionPages" | undefined;
|
|
280
533
|
}[];
|
|
281
534
|
span?: number | undefined;
|
|
282
535
|
fill?: string | undefined;
|
|
283
536
|
align?: "left" | "right" | "center" | "justify" | undefined;
|
|
537
|
+
size?: number | undefined;
|
|
284
538
|
}[][];
|
|
285
539
|
borders: boolean;
|
|
286
540
|
widths?: number[] | undefined;
|
|
287
541
|
pageBreakBefore?: true | undefined;
|
|
542
|
+
section?: number | undefined;
|
|
288
543
|
})[];
|
|
289
544
|
truncated: boolean;
|
|
290
545
|
revisionAuthors: string[];
|
|
@@ -303,6 +558,171 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
|
|
|
303
558
|
size: number;
|
|
304
559
|
color?: string | undefined;
|
|
305
560
|
};
|
|
561
|
+
sections?: {
|
|
562
|
+
page: {
|
|
563
|
+
width: number;
|
|
564
|
+
height: number;
|
|
565
|
+
margins: {
|
|
566
|
+
top: number;
|
|
567
|
+
right: number;
|
|
568
|
+
bottom: number;
|
|
569
|
+
left: number;
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
headerDistance: number;
|
|
573
|
+
footerDistance: number;
|
|
574
|
+
headers: {
|
|
575
|
+
default?: string | undefined;
|
|
576
|
+
first?: string | undefined;
|
|
577
|
+
even?: string | undefined;
|
|
578
|
+
};
|
|
579
|
+
footers: {
|
|
580
|
+
default?: string | undefined;
|
|
581
|
+
first?: string | undefined;
|
|
582
|
+
even?: string | undefined;
|
|
583
|
+
};
|
|
584
|
+
titlePage?: true | undefined;
|
|
585
|
+
pageStart?: number | undefined;
|
|
586
|
+
}[] | undefined;
|
|
587
|
+
parts?: Record<string, ({
|
|
588
|
+
kind: "heading";
|
|
589
|
+
level: number;
|
|
590
|
+
runs: {
|
|
591
|
+
text: string;
|
|
592
|
+
change?: "deleted" | "inserted" | undefined;
|
|
593
|
+
author?: string | undefined;
|
|
594
|
+
bold?: true | undefined;
|
|
595
|
+
italic?: true | undefined;
|
|
596
|
+
underline?: true | undefined;
|
|
597
|
+
strike?: true | undefined;
|
|
598
|
+
caps?: true | undefined;
|
|
599
|
+
vertAlign?: "sub" | "super" | undefined;
|
|
600
|
+
font?: string | undefined;
|
|
601
|
+
size?: number | undefined;
|
|
602
|
+
color?: string | undefined;
|
|
603
|
+
highlight?: string | undefined;
|
|
604
|
+
image?: true | undefined;
|
|
605
|
+
picture?: {
|
|
606
|
+
ref: string;
|
|
607
|
+
width: number;
|
|
608
|
+
height: number;
|
|
609
|
+
anchor?: {
|
|
610
|
+
x: number;
|
|
611
|
+
y: number;
|
|
612
|
+
xFrom: "page" | "margin";
|
|
613
|
+
yFrom: "page" | "margin" | "paragraph";
|
|
614
|
+
wrap: "behind" | "front" | "around" | "block";
|
|
615
|
+
} | undefined;
|
|
616
|
+
} | undefined;
|
|
617
|
+
field?: "page" | "pages" | "sectionPages" | undefined;
|
|
618
|
+
}[];
|
|
619
|
+
label?: string | undefined;
|
|
620
|
+
style?: {
|
|
621
|
+
align?: "left" | "right" | "center" | "justify" | undefined;
|
|
622
|
+
indentLeft?: number | undefined;
|
|
623
|
+
indentRight?: number | undefined;
|
|
624
|
+
firstLine?: number | undefined;
|
|
625
|
+
spaceBefore?: number | undefined;
|
|
626
|
+
spaceAfter?: number | undefined;
|
|
627
|
+
lineHeight?: number | undefined;
|
|
628
|
+
lineExact?: number | undefined;
|
|
629
|
+
lineAtLeast?: number | undefined;
|
|
630
|
+
pageBreakBefore?: true | undefined;
|
|
631
|
+
shading?: string | undefined;
|
|
632
|
+
size?: number | undefined;
|
|
633
|
+
} | undefined;
|
|
634
|
+
section?: number | undefined;
|
|
635
|
+
} | {
|
|
636
|
+
kind: "paragraph";
|
|
637
|
+
runs: {
|
|
638
|
+
text: string;
|
|
639
|
+
change?: "deleted" | "inserted" | undefined;
|
|
640
|
+
author?: string | undefined;
|
|
641
|
+
bold?: true | undefined;
|
|
642
|
+
italic?: true | undefined;
|
|
643
|
+
underline?: true | undefined;
|
|
644
|
+
strike?: true | undefined;
|
|
645
|
+
caps?: true | undefined;
|
|
646
|
+
vertAlign?: "sub" | "super" | undefined;
|
|
647
|
+
font?: string | undefined;
|
|
648
|
+
size?: number | undefined;
|
|
649
|
+
color?: string | undefined;
|
|
650
|
+
highlight?: string | undefined;
|
|
651
|
+
image?: true | undefined;
|
|
652
|
+
picture?: {
|
|
653
|
+
ref: string;
|
|
654
|
+
width: number;
|
|
655
|
+
height: number;
|
|
656
|
+
anchor?: {
|
|
657
|
+
x: number;
|
|
658
|
+
y: number;
|
|
659
|
+
xFrom: "page" | "margin";
|
|
660
|
+
yFrom: "page" | "margin" | "paragraph";
|
|
661
|
+
wrap: "behind" | "front" | "around" | "block";
|
|
662
|
+
} | undefined;
|
|
663
|
+
} | undefined;
|
|
664
|
+
field?: "page" | "pages" | "sectionPages" | undefined;
|
|
665
|
+
}[];
|
|
666
|
+
label?: string | undefined;
|
|
667
|
+
style?: {
|
|
668
|
+
align?: "left" | "right" | "center" | "justify" | undefined;
|
|
669
|
+
indentLeft?: number | undefined;
|
|
670
|
+
indentRight?: number | undefined;
|
|
671
|
+
firstLine?: number | undefined;
|
|
672
|
+
spaceBefore?: number | undefined;
|
|
673
|
+
spaceAfter?: number | undefined;
|
|
674
|
+
lineHeight?: number | undefined;
|
|
675
|
+
lineExact?: number | undefined;
|
|
676
|
+
lineAtLeast?: number | undefined;
|
|
677
|
+
pageBreakBefore?: true | undefined;
|
|
678
|
+
shading?: string | undefined;
|
|
679
|
+
size?: number | undefined;
|
|
680
|
+
} | undefined;
|
|
681
|
+
section?: number | undefined;
|
|
682
|
+
} | {
|
|
683
|
+
kind: "table";
|
|
684
|
+
rows: {
|
|
685
|
+
runs: {
|
|
686
|
+
text: string;
|
|
687
|
+
change?: "deleted" | "inserted" | undefined;
|
|
688
|
+
author?: string | undefined;
|
|
689
|
+
bold?: true | undefined;
|
|
690
|
+
italic?: true | undefined;
|
|
691
|
+
underline?: true | undefined;
|
|
692
|
+
strike?: true | undefined;
|
|
693
|
+
caps?: true | undefined;
|
|
694
|
+
vertAlign?: "sub" | "super" | undefined;
|
|
695
|
+
font?: string | undefined;
|
|
696
|
+
size?: number | undefined;
|
|
697
|
+
color?: string | undefined;
|
|
698
|
+
highlight?: string | undefined;
|
|
699
|
+
image?: true | undefined;
|
|
700
|
+
picture?: {
|
|
701
|
+
ref: string;
|
|
702
|
+
width: number;
|
|
703
|
+
height: number;
|
|
704
|
+
anchor?: {
|
|
705
|
+
x: number;
|
|
706
|
+
y: number;
|
|
707
|
+
xFrom: "page" | "margin";
|
|
708
|
+
yFrom: "page" | "margin" | "paragraph";
|
|
709
|
+
wrap: "behind" | "front" | "around" | "block";
|
|
710
|
+
} | undefined;
|
|
711
|
+
} | undefined;
|
|
712
|
+
field?: "page" | "pages" | "sectionPages" | undefined;
|
|
713
|
+
}[];
|
|
714
|
+
span?: number | undefined;
|
|
715
|
+
fill?: string | undefined;
|
|
716
|
+
align?: "left" | "right" | "center" | "justify" | undefined;
|
|
717
|
+
size?: number | undefined;
|
|
718
|
+
}[][];
|
|
719
|
+
borders: boolean;
|
|
720
|
+
widths?: number[] | undefined;
|
|
721
|
+
pageBreakBefore?: true | undefined;
|
|
722
|
+
section?: number | undefined;
|
|
723
|
+
})[]> | undefined;
|
|
724
|
+
evenAndOddHeaders?: true | undefined;
|
|
725
|
+
images?: Record<string, string> | undefined;
|
|
306
726
|
} | {
|
|
307
727
|
kind: "spreadsheet";
|
|
308
728
|
sheets: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UIMessage } from 'ai';
|
|
2
|
-
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { CSSProperties, InjectionKey, Ref } from 'vue';
|
|
3
|
+
import { WordPreviewBlock, WordPreviewPage, WordPreviewPicture, WordPreviewRun } from '../../../models/src';
|
|
3
4
|
import { isTextPart, isFilePart, isToolPart, isReasoningPart, hasPartText, hasTextPart, getTextPart, getMessageText } from 'utils';
|
|
4
5
|
export { isTextPart, isFilePart, isToolPart, isReasoningPart, hasPartText, hasTextPart, getTextPart, getMessageText, };
|
|
5
6
|
/**
|
|
@@ -233,6 +234,53 @@ export type WordPreviewMode = 'markup' | 'accepted' | 'original';
|
|
|
233
234
|
export declare const wordLineFactor: (font: string) => number;
|
|
234
235
|
/** The CSS font stack for a font a Word document names. */
|
|
235
236
|
export declare const wordFontStack: (font: string) => string;
|
|
237
|
+
/**
|
|
238
|
+
* The images of the Word document in the viewer, by reference, which its
|
|
239
|
+
* runs draw (`PkWordPreview` provides them).
|
|
240
|
+
*/
|
|
241
|
+
export declare const WORD_PREVIEW_IMAGES: InjectionKey<Ref<Record<string, string> | undefined>>;
|
|
242
|
+
/**
|
|
243
|
+
* The image a run draws, only a WebP the server wrote: anything else in the
|
|
244
|
+
* map is not drawn.
|
|
245
|
+
*/
|
|
246
|
+
export declare const wordPictureSrc: (images: Record<string, string> | undefined, ref: string) => string | undefined;
|
|
247
|
+
/** The numbers the page number fields of a page show. */
|
|
248
|
+
export type WordPageNumbers = {
|
|
249
|
+
page: number;
|
|
250
|
+
pages: number;
|
|
251
|
+
sectionPages: number;
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Where an image Word positions on the page sits on it: from the page's top
|
|
255
|
+
* left corner, in points, under the text or over it.
|
|
256
|
+
*/
|
|
257
|
+
export declare const wordPageAnchorCss: (picture: WordPreviewPicture, page: WordPreviewPage) => CSSProperties;
|
|
258
|
+
/**
|
|
259
|
+
* How an image of a run is placed: in the text, beside the text of its
|
|
260
|
+
* paragraph, on a line of its own, from its paragraph, or on the page,
|
|
261
|
+
* which the page draws.
|
|
262
|
+
*/
|
|
263
|
+
export declare const wordPicturePlacement: (picture: WordPreviewPicture) => "inline" | "around" | "block" | "paragraph" | "page";
|
|
264
|
+
/** The runs a mode keeps: a deletion is gone once accepted. */
|
|
265
|
+
export declare const wordKeptRuns: (runs: WordPreviewRun[], mode: WordPreviewMode) => WordPreviewRun[];
|
|
266
|
+
/** A piece of a Word document's flow: a paragraph or a table row. */
|
|
267
|
+
export type WordFlowItem = {
|
|
268
|
+
key: string;
|
|
269
|
+
block: number;
|
|
270
|
+
row?: number;
|
|
271
|
+
breakBefore: boolean;
|
|
272
|
+
/** The section it opens. */
|
|
273
|
+
section?: number;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* The pieces of `blocks` in order, as the pages hold them. A paragraph or a
|
|
277
|
+
* table row a mode empties is gone (a row inserted, as the original); one
|
|
278
|
+
* empty in the document stays, a blank line as in Word. A section a gone
|
|
279
|
+
* piece opened, with its page break, passes to the next one.
|
|
280
|
+
*/
|
|
281
|
+
export declare const wordFlowItems: (blocks: WordPreviewBlock[], mode: WordPreviewMode) => WordFlowItem[];
|
|
282
|
+
/** The images Word positions on the page among the paragraphs of `blocks`. */
|
|
283
|
+
export declare const wordPageAnchors: (blocks: WordPreviewBlock[], mode: WordPreviewMode) => WordPreviewPicture[];
|
|
236
284
|
/** An earlier version of a file of the chat, for the agent to restore. */
|
|
237
285
|
export type ChatFileRestoreTarget = {
|
|
238
286
|
/** The id the agent names the file with: the stored name of version 1. */
|