@coco-vexel/coco-office-editor 0.0.0-stage → 1.0.0

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.
Files changed (57) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +510 -2
  3. package/THIRD_PARTY_NOTICES.md +212 -0
  4. package/dist/index.cjs +26401 -0
  5. package/dist/index.cjs.map +1 -0
  6. package/dist/index.d.cts +12 -0
  7. package/dist/index.d.ts +12 -0
  8. package/dist/index.js +26192 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/model-DB6aN6uJ.d.cts +321 -0
  11. package/dist/model-DB6aN6uJ.d.ts +321 -0
  12. package/dist/native-B6B649CC.d.ts +1111 -0
  13. package/dist/native-Ct9nN06K.d.cts +1111 -0
  14. package/dist/ppt-native.cjs +5334 -0
  15. package/dist/ppt-native.cjs.map +1 -0
  16. package/dist/ppt-native.d.cts +2 -0
  17. package/dist/ppt-native.d.ts +2 -0
  18. package/dist/ppt-native.js +5332 -0
  19. package/dist/ppt-native.js.map +1 -0
  20. package/dist/ppt.cjs +5426 -0
  21. package/dist/ppt.cjs.map +1 -0
  22. package/dist/ppt.d.cts +306 -0
  23. package/dist/ppt.d.ts +306 -0
  24. package/dist/ppt.js +5410 -0
  25. package/dist/ppt.js.map +1 -0
  26. package/dist/spreadsheet.cjs +4276 -0
  27. package/dist/spreadsheet.cjs.map +1 -0
  28. package/dist/spreadsheet.d.cts +676 -0
  29. package/dist/spreadsheet.d.ts +676 -0
  30. package/dist/spreadsheet.js +4213 -0
  31. package/dist/spreadsheet.js.map +1 -0
  32. package/dist/word-editing.cjs +812 -0
  33. package/dist/word-editing.cjs.map +1 -0
  34. package/dist/word-editing.d.cts +149 -0
  35. package/dist/word-editing.d.ts +149 -0
  36. package/dist/word-editing.js +803 -0
  37. package/dist/word-editing.js.map +1 -0
  38. package/dist/word-native.cjs +13400 -0
  39. package/dist/word-native.cjs.map +1 -0
  40. package/dist/word-native.d.cts +4 -0
  41. package/dist/word-native.d.ts +4 -0
  42. package/dist/word-native.js +13293 -0
  43. package/dist/word-native.js.map +1 -0
  44. package/dist/word-prosemirror.cjs +489 -0
  45. package/dist/word-prosemirror.cjs.map +1 -0
  46. package/dist/word-prosemirror.d.cts +21 -0
  47. package/dist/word-prosemirror.d.ts +21 -0
  48. package/dist/word-prosemirror.js +483 -0
  49. package/dist/word-prosemirror.js.map +1 -0
  50. package/dist/word.cjs +16764 -0
  51. package/dist/word.cjs.map +1 -0
  52. package/dist/word.d.cts +84 -0
  53. package/dist/word.d.ts +84 -0
  54. package/dist/word.js +16632 -0
  55. package/dist/word.js.map +1 -0
  56. package/package.json +106 -3
  57. package/src/styles/editor.css +1507 -0
@@ -0,0 +1,321 @@
1
+ import { StoryId, ParagraphFormat, ParagraphInfo, RevisionInfo, CommentInfo } from '@coco-vexel/coco-office/word-view';
2
+
3
+ type EditorSegmentKind = 'text' | 'revision' | 'field' | 'placeholder' | 'image' | 'drawing';
4
+ type EditorSpanKind = 'comment' | 'revision';
5
+ interface EditorTextSegment {
6
+ kind: 'text';
7
+ from: number;
8
+ to: number;
9
+ text: string;
10
+ format?: EditorRunFormat;
11
+ hyperlink?: EditorHyperlink;
12
+ }
13
+ interface EditorHyperlink {
14
+ target?: string;
15
+ anchor?: string;
16
+ tooltip?: string;
17
+ }
18
+ interface EditorRevisionSegment {
19
+ kind: 'revision';
20
+ from: number;
21
+ to: number;
22
+ text: string;
23
+ format?: EditorRunFormat;
24
+ revisionId: string;
25
+ revisionKind: RevisionInfo['kind'];
26
+ author: string;
27
+ date: string;
28
+ }
29
+ interface EditorFieldSegment {
30
+ kind: 'field';
31
+ from: number;
32
+ to: number;
33
+ fieldKind: 'pageNumber' | 'totalPages' | 'sectionPages';
34
+ instruction: string;
35
+ cachedText?: string;
36
+ format?: EditorRunFormat;
37
+ }
38
+ interface EditorPlaceholderSegment {
39
+ kind: 'placeholder';
40
+ from: number;
41
+ to: number;
42
+ placeholderKind: 'drawing' | 'object' | 'pageBreak' | 'unknown';
43
+ sourceTag: string;
44
+ }
45
+ interface EditorImageSegment {
46
+ kind: 'image';
47
+ from: number;
48
+ to: number;
49
+ drawingId: string;
50
+ src: string;
51
+ contentType: string;
52
+ width?: number;
53
+ height?: number;
54
+ anchoringMode?: 'inline' | 'anchor';
55
+ wrap?: 'none' | 'square' | 'tight' | 'through' | 'topAndBottom' | 'behind' | 'inFront';
56
+ position?: {
57
+ horizontal?: {
58
+ relativeFrom?: string;
59
+ posOffset?: number;
60
+ align?: string;
61
+ };
62
+ vertical?: {
63
+ relativeFrom?: string;
64
+ posOffset?: number;
65
+ align?: string;
66
+ };
67
+ };
68
+ }
69
+ interface EditorDrawingSegment {
70
+ kind: 'drawing';
71
+ from: number;
72
+ to: number;
73
+ drawingId: string;
74
+ drawingKind: 'chart' | 'smartArt' | 'shape' | 'textBox' | 'group' | 'canvas' | 'other';
75
+ text?: string;
76
+ width?: number;
77
+ height?: number;
78
+ anchoringMode?: 'inline' | 'anchor';
79
+ wrap?: 'none' | 'square' | 'tight' | 'through' | 'topAndBottom' | 'behind' | 'inFront';
80
+ position?: EditorImageSegment['position'];
81
+ hasBorder?: boolean;
82
+ hasFill?: boolean;
83
+ isLineOrConnector?: boolean;
84
+ innerTextAlign?: string;
85
+ paragraphs?: EditorParagraphView[];
86
+ }
87
+ type EditorContentSegment = EditorTextSegment | EditorRevisionSegment | EditorFieldSegment | EditorPlaceholderSegment | EditorImageSegment | EditorDrawingSegment;
88
+ interface EditorTextSpan {
89
+ kind: EditorSpanKind;
90
+ id: string;
91
+ paraId: string;
92
+ from: number;
93
+ to: number;
94
+ text?: string;
95
+ }
96
+ interface EditorCommentSpan extends EditorTextSpan {
97
+ kind: 'comment';
98
+ commentId: number;
99
+ rangeKind: CommentInfo['rangeKind'];
100
+ author: string;
101
+ date: string;
102
+ body: string;
103
+ }
104
+ interface EditorRevisionSpan extends EditorTextSpan {
105
+ kind: 'revision';
106
+ revisionId: string;
107
+ revisionKind: RevisionInfo['kind'];
108
+ author: string;
109
+ date: string;
110
+ }
111
+ type EditorParagraphSpan = EditorCommentSpan | EditorRevisionSpan;
112
+ interface EditorRunFormat {
113
+ bold?: boolean;
114
+ italic?: boolean;
115
+ underline?: boolean;
116
+ strike?: boolean;
117
+ doubleStrike?: boolean;
118
+ caps?: boolean;
119
+ smallCaps?: boolean;
120
+ fontSize?: number;
121
+ fontFamily?: string;
122
+ color?: string;
123
+ characterSpacing?: number;
124
+ verticalAlign?: 'baseline' | 'superscript' | 'subscript';
125
+ highlight?: string;
126
+ shading?: EditorShading;
127
+ }
128
+ interface EditorParagraphFormat extends ParagraphFormat {
129
+ fontFamily?: string;
130
+ tabStops?: EditorTabStop[];
131
+ numbering?: EditorNumberingFormat;
132
+ characterSpacing?: number;
133
+ highlight?: string;
134
+ shading?: EditorShading;
135
+ keepNext?: boolean;
136
+ keepLines?: boolean;
137
+ widowControl?: boolean;
138
+ snapToGrid?: boolean;
139
+ borders?: EditorParagraphBorders;
140
+ borderBottom?: EditorParagraphBorder;
141
+ }
142
+ interface EditorTabStop {
143
+ alignment: 'left' | 'center' | 'right' | 'decimal' | 'bar';
144
+ position: number;
145
+ leader?: 'none' | 'dot' | 'hyphen' | 'underscore' | 'heavy' | 'middleDot';
146
+ }
147
+ interface EditorNumberingFormat {
148
+ numId: string;
149
+ ilvl: number;
150
+ numFmt?: string;
151
+ lvlText?: string;
152
+ start?: number;
153
+ label?: string;
154
+ }
155
+ interface EditorShading {
156
+ fill?: string;
157
+ color?: string;
158
+ val?: string;
159
+ }
160
+ interface EditorParagraphView {
161
+ type: 'paragraph';
162
+ paraId: string;
163
+ story: StoryId;
164
+ text: string;
165
+ styleId?: string;
166
+ format?: EditorParagraphFormat;
167
+ table?: ParagraphInfo['table'];
168
+ flags: {
169
+ hasComments: boolean;
170
+ hasRevisions: boolean;
171
+ hasBookmarks: boolean;
172
+ hasMath: boolean;
173
+ };
174
+ segments: EditorContentSegment[];
175
+ spans: EditorParagraphSpan[];
176
+ }
177
+ interface EditorTableCellView {
178
+ text: string;
179
+ gridSpan: number;
180
+ rowSpan?: number;
181
+ vMerge: 'restart' | 'continue' | null;
182
+ width?: number;
183
+ margin?: EditorBoxEdges;
184
+ borders?: EditorTableBorders;
185
+ shading?: {
186
+ fill?: string;
187
+ color?: string;
188
+ val?: string;
189
+ };
190
+ verticalAlignment?: 'top' | 'center' | 'bottom' | 'both';
191
+ noWrap?: boolean;
192
+ blocks: EditorBlockView[];
193
+ paragraphs: EditorParagraphView[];
194
+ }
195
+ interface EditorTableRowView {
196
+ height?: {
197
+ val: number;
198
+ hRule: 'auto' | 'atLeast' | 'exact';
199
+ };
200
+ isHeader?: boolean;
201
+ cantSplit?: boolean;
202
+ cells: EditorTableCellView[];
203
+ }
204
+ interface EditorTableView {
205
+ type: 'table';
206
+ tableId: string;
207
+ tableStyleId?: string;
208
+ columnWidths: number[];
209
+ layout?: EditorTableLayout;
210
+ tableLook?: EditorTableLook;
211
+ borders?: EditorTableBorders;
212
+ rows: EditorTableRowView[];
213
+ }
214
+ interface EditorTableLayout {
215
+ width?: number;
216
+ widthType?: 'auto' | 'dxa' | 'pct';
217
+ indent?: number;
218
+ cellSpacing?: number;
219
+ cellSpacingType?: 'auto' | 'dxa' | 'pct';
220
+ alignment?: 'left' | 'center' | 'right';
221
+ }
222
+ interface EditorTableLook {
223
+ firstRow?: boolean;
224
+ lastRow?: boolean;
225
+ firstColumn?: boolean;
226
+ lastColumn?: boolean;
227
+ noHorizontalBand?: boolean;
228
+ noVerticalBand?: boolean;
229
+ rowBandSize?: number;
230
+ columnBandSize?: number;
231
+ }
232
+ type EditorBlockView = EditorParagraphView | EditorTableView;
233
+ interface EditorBoxEdges {
234
+ top?: number;
235
+ right?: number;
236
+ bottom?: number;
237
+ left?: number;
238
+ }
239
+ interface EditorTableBorder {
240
+ val?: string;
241
+ color?: string;
242
+ size?: number;
243
+ }
244
+ interface EditorParagraphBorder extends EditorTableBorder {
245
+ space?: number;
246
+ }
247
+ interface EditorParagraphBorders {
248
+ top?: EditorParagraphBorder;
249
+ right?: EditorParagraphBorder;
250
+ bottom?: EditorParagraphBorder;
251
+ left?: EditorParagraphBorder;
252
+ between?: EditorParagraphBorder;
253
+ bar?: EditorParagraphBorder;
254
+ }
255
+ interface EditorTableBorders {
256
+ top?: EditorTableBorder;
257
+ right?: EditorTableBorder;
258
+ bottom?: EditorTableBorder;
259
+ left?: EditorTableBorder;
260
+ insideH?: EditorTableBorder;
261
+ insideV?: EditorTableBorder;
262
+ }
263
+ interface EditorDocumentDefaults {
264
+ run?: EditorRunFormat;
265
+ paragraph?: EditorParagraphFormat;
266
+ }
267
+ interface EditorPageLayout {
268
+ width: number;
269
+ height: number;
270
+ headerDistance?: number;
271
+ footerDistance?: number;
272
+ docGrid?: {
273
+ type?: 'default' | 'lines' | 'linesAndChars' | 'snapToChars';
274
+ linePitch?: number;
275
+ charSpace?: number;
276
+ };
277
+ margin: {
278
+ top: number;
279
+ right: number;
280
+ bottom: number;
281
+ left: number;
282
+ };
283
+ orientation?: 'portrait' | 'landscape';
284
+ }
285
+ interface EditorHeaderFooterRef {
286
+ type: 'default' | 'first' | 'even';
287
+ partName: string;
288
+ }
289
+ interface EditorSectionView {
290
+ sectionIndex: number;
291
+ firstParaId: string;
292
+ lastParaId: string;
293
+ type?: 'nextPage' | 'continuous' | 'evenPage' | 'oddPage' | 'nextColumn';
294
+ pageLayout?: EditorPageLayout;
295
+ pageNumberStart?: number;
296
+ headerRefs: EditorHeaderFooterRef[];
297
+ footerRefs: EditorHeaderFooterRef[];
298
+ titlePage: boolean;
299
+ }
300
+ interface EditorHeaderFooterStoryView {
301
+ kind: 'header' | 'footer';
302
+ partName: string;
303
+ blocks: EditorBlockView[];
304
+ paragraphs: EditorParagraphView[];
305
+ tables: EditorTableView[];
306
+ }
307
+ interface EditorDocumentView {
308
+ kind: 'word';
309
+ defaults?: EditorDocumentDefaults;
310
+ pageLayout?: EditorPageLayout;
311
+ sections: EditorSectionView[];
312
+ headers: EditorHeaderFooterStoryView[];
313
+ footers: EditorHeaderFooterStoryView[];
314
+ blocks: EditorBlockView[];
315
+ paragraphs: EditorParagraphView[];
316
+ tables: EditorTableView[];
317
+ detachedComments: CommentInfo[];
318
+ detachedRevisions: RevisionInfo[];
319
+ }
320
+
321
+ export type { EditorTabStop as A, EditorTableBorder as B, EditorTableBorders as C, EditorTableCellView as D, EditorBlockView as E, EditorTableLayout as F, EditorTableLook as G, EditorTableRowView as H, EditorTableView as I, EditorTextSegment as J, EditorTextSpan as K, EditorBoxEdges as a, EditorCommentSpan as b, EditorContentSegment as c, EditorDocumentDefaults as d, EditorDocumentView as e, EditorDrawingSegment as f, EditorFieldSegment as g, EditorHeaderFooterRef as h, EditorHeaderFooterStoryView as i, EditorHyperlink as j, EditorImageSegment as k, EditorNumberingFormat as l, EditorPageLayout as m, EditorParagraphBorder as n, EditorParagraphBorders as o, EditorParagraphFormat as p, EditorParagraphSpan as q, EditorParagraphView as r, EditorPlaceholderSegment as s, EditorRevisionSegment as t, EditorRevisionSpan as u, EditorRunFormat as v, EditorSectionView as w, EditorSegmentKind as x, EditorShading as y, EditorSpanKind as z };
@@ -0,0 +1,321 @@
1
+ import { StoryId, ParagraphFormat, ParagraphInfo, RevisionInfo, CommentInfo } from '@coco-vexel/coco-office/word-view';
2
+
3
+ type EditorSegmentKind = 'text' | 'revision' | 'field' | 'placeholder' | 'image' | 'drawing';
4
+ type EditorSpanKind = 'comment' | 'revision';
5
+ interface EditorTextSegment {
6
+ kind: 'text';
7
+ from: number;
8
+ to: number;
9
+ text: string;
10
+ format?: EditorRunFormat;
11
+ hyperlink?: EditorHyperlink;
12
+ }
13
+ interface EditorHyperlink {
14
+ target?: string;
15
+ anchor?: string;
16
+ tooltip?: string;
17
+ }
18
+ interface EditorRevisionSegment {
19
+ kind: 'revision';
20
+ from: number;
21
+ to: number;
22
+ text: string;
23
+ format?: EditorRunFormat;
24
+ revisionId: string;
25
+ revisionKind: RevisionInfo['kind'];
26
+ author: string;
27
+ date: string;
28
+ }
29
+ interface EditorFieldSegment {
30
+ kind: 'field';
31
+ from: number;
32
+ to: number;
33
+ fieldKind: 'pageNumber' | 'totalPages' | 'sectionPages';
34
+ instruction: string;
35
+ cachedText?: string;
36
+ format?: EditorRunFormat;
37
+ }
38
+ interface EditorPlaceholderSegment {
39
+ kind: 'placeholder';
40
+ from: number;
41
+ to: number;
42
+ placeholderKind: 'drawing' | 'object' | 'pageBreak' | 'unknown';
43
+ sourceTag: string;
44
+ }
45
+ interface EditorImageSegment {
46
+ kind: 'image';
47
+ from: number;
48
+ to: number;
49
+ drawingId: string;
50
+ src: string;
51
+ contentType: string;
52
+ width?: number;
53
+ height?: number;
54
+ anchoringMode?: 'inline' | 'anchor';
55
+ wrap?: 'none' | 'square' | 'tight' | 'through' | 'topAndBottom' | 'behind' | 'inFront';
56
+ position?: {
57
+ horizontal?: {
58
+ relativeFrom?: string;
59
+ posOffset?: number;
60
+ align?: string;
61
+ };
62
+ vertical?: {
63
+ relativeFrom?: string;
64
+ posOffset?: number;
65
+ align?: string;
66
+ };
67
+ };
68
+ }
69
+ interface EditorDrawingSegment {
70
+ kind: 'drawing';
71
+ from: number;
72
+ to: number;
73
+ drawingId: string;
74
+ drawingKind: 'chart' | 'smartArt' | 'shape' | 'textBox' | 'group' | 'canvas' | 'other';
75
+ text?: string;
76
+ width?: number;
77
+ height?: number;
78
+ anchoringMode?: 'inline' | 'anchor';
79
+ wrap?: 'none' | 'square' | 'tight' | 'through' | 'topAndBottom' | 'behind' | 'inFront';
80
+ position?: EditorImageSegment['position'];
81
+ hasBorder?: boolean;
82
+ hasFill?: boolean;
83
+ isLineOrConnector?: boolean;
84
+ innerTextAlign?: string;
85
+ paragraphs?: EditorParagraphView[];
86
+ }
87
+ type EditorContentSegment = EditorTextSegment | EditorRevisionSegment | EditorFieldSegment | EditorPlaceholderSegment | EditorImageSegment | EditorDrawingSegment;
88
+ interface EditorTextSpan {
89
+ kind: EditorSpanKind;
90
+ id: string;
91
+ paraId: string;
92
+ from: number;
93
+ to: number;
94
+ text?: string;
95
+ }
96
+ interface EditorCommentSpan extends EditorTextSpan {
97
+ kind: 'comment';
98
+ commentId: number;
99
+ rangeKind: CommentInfo['rangeKind'];
100
+ author: string;
101
+ date: string;
102
+ body: string;
103
+ }
104
+ interface EditorRevisionSpan extends EditorTextSpan {
105
+ kind: 'revision';
106
+ revisionId: string;
107
+ revisionKind: RevisionInfo['kind'];
108
+ author: string;
109
+ date: string;
110
+ }
111
+ type EditorParagraphSpan = EditorCommentSpan | EditorRevisionSpan;
112
+ interface EditorRunFormat {
113
+ bold?: boolean;
114
+ italic?: boolean;
115
+ underline?: boolean;
116
+ strike?: boolean;
117
+ doubleStrike?: boolean;
118
+ caps?: boolean;
119
+ smallCaps?: boolean;
120
+ fontSize?: number;
121
+ fontFamily?: string;
122
+ color?: string;
123
+ characterSpacing?: number;
124
+ verticalAlign?: 'baseline' | 'superscript' | 'subscript';
125
+ highlight?: string;
126
+ shading?: EditorShading;
127
+ }
128
+ interface EditorParagraphFormat extends ParagraphFormat {
129
+ fontFamily?: string;
130
+ tabStops?: EditorTabStop[];
131
+ numbering?: EditorNumberingFormat;
132
+ characterSpacing?: number;
133
+ highlight?: string;
134
+ shading?: EditorShading;
135
+ keepNext?: boolean;
136
+ keepLines?: boolean;
137
+ widowControl?: boolean;
138
+ snapToGrid?: boolean;
139
+ borders?: EditorParagraphBorders;
140
+ borderBottom?: EditorParagraphBorder;
141
+ }
142
+ interface EditorTabStop {
143
+ alignment: 'left' | 'center' | 'right' | 'decimal' | 'bar';
144
+ position: number;
145
+ leader?: 'none' | 'dot' | 'hyphen' | 'underscore' | 'heavy' | 'middleDot';
146
+ }
147
+ interface EditorNumberingFormat {
148
+ numId: string;
149
+ ilvl: number;
150
+ numFmt?: string;
151
+ lvlText?: string;
152
+ start?: number;
153
+ label?: string;
154
+ }
155
+ interface EditorShading {
156
+ fill?: string;
157
+ color?: string;
158
+ val?: string;
159
+ }
160
+ interface EditorParagraphView {
161
+ type: 'paragraph';
162
+ paraId: string;
163
+ story: StoryId;
164
+ text: string;
165
+ styleId?: string;
166
+ format?: EditorParagraphFormat;
167
+ table?: ParagraphInfo['table'];
168
+ flags: {
169
+ hasComments: boolean;
170
+ hasRevisions: boolean;
171
+ hasBookmarks: boolean;
172
+ hasMath: boolean;
173
+ };
174
+ segments: EditorContentSegment[];
175
+ spans: EditorParagraphSpan[];
176
+ }
177
+ interface EditorTableCellView {
178
+ text: string;
179
+ gridSpan: number;
180
+ rowSpan?: number;
181
+ vMerge: 'restart' | 'continue' | null;
182
+ width?: number;
183
+ margin?: EditorBoxEdges;
184
+ borders?: EditorTableBorders;
185
+ shading?: {
186
+ fill?: string;
187
+ color?: string;
188
+ val?: string;
189
+ };
190
+ verticalAlignment?: 'top' | 'center' | 'bottom' | 'both';
191
+ noWrap?: boolean;
192
+ blocks: EditorBlockView[];
193
+ paragraphs: EditorParagraphView[];
194
+ }
195
+ interface EditorTableRowView {
196
+ height?: {
197
+ val: number;
198
+ hRule: 'auto' | 'atLeast' | 'exact';
199
+ };
200
+ isHeader?: boolean;
201
+ cantSplit?: boolean;
202
+ cells: EditorTableCellView[];
203
+ }
204
+ interface EditorTableView {
205
+ type: 'table';
206
+ tableId: string;
207
+ tableStyleId?: string;
208
+ columnWidths: number[];
209
+ layout?: EditorTableLayout;
210
+ tableLook?: EditorTableLook;
211
+ borders?: EditorTableBorders;
212
+ rows: EditorTableRowView[];
213
+ }
214
+ interface EditorTableLayout {
215
+ width?: number;
216
+ widthType?: 'auto' | 'dxa' | 'pct';
217
+ indent?: number;
218
+ cellSpacing?: number;
219
+ cellSpacingType?: 'auto' | 'dxa' | 'pct';
220
+ alignment?: 'left' | 'center' | 'right';
221
+ }
222
+ interface EditorTableLook {
223
+ firstRow?: boolean;
224
+ lastRow?: boolean;
225
+ firstColumn?: boolean;
226
+ lastColumn?: boolean;
227
+ noHorizontalBand?: boolean;
228
+ noVerticalBand?: boolean;
229
+ rowBandSize?: number;
230
+ columnBandSize?: number;
231
+ }
232
+ type EditorBlockView = EditorParagraphView | EditorTableView;
233
+ interface EditorBoxEdges {
234
+ top?: number;
235
+ right?: number;
236
+ bottom?: number;
237
+ left?: number;
238
+ }
239
+ interface EditorTableBorder {
240
+ val?: string;
241
+ color?: string;
242
+ size?: number;
243
+ }
244
+ interface EditorParagraphBorder extends EditorTableBorder {
245
+ space?: number;
246
+ }
247
+ interface EditorParagraphBorders {
248
+ top?: EditorParagraphBorder;
249
+ right?: EditorParagraphBorder;
250
+ bottom?: EditorParagraphBorder;
251
+ left?: EditorParagraphBorder;
252
+ between?: EditorParagraphBorder;
253
+ bar?: EditorParagraphBorder;
254
+ }
255
+ interface EditorTableBorders {
256
+ top?: EditorTableBorder;
257
+ right?: EditorTableBorder;
258
+ bottom?: EditorTableBorder;
259
+ left?: EditorTableBorder;
260
+ insideH?: EditorTableBorder;
261
+ insideV?: EditorTableBorder;
262
+ }
263
+ interface EditorDocumentDefaults {
264
+ run?: EditorRunFormat;
265
+ paragraph?: EditorParagraphFormat;
266
+ }
267
+ interface EditorPageLayout {
268
+ width: number;
269
+ height: number;
270
+ headerDistance?: number;
271
+ footerDistance?: number;
272
+ docGrid?: {
273
+ type?: 'default' | 'lines' | 'linesAndChars' | 'snapToChars';
274
+ linePitch?: number;
275
+ charSpace?: number;
276
+ };
277
+ margin: {
278
+ top: number;
279
+ right: number;
280
+ bottom: number;
281
+ left: number;
282
+ };
283
+ orientation?: 'portrait' | 'landscape';
284
+ }
285
+ interface EditorHeaderFooterRef {
286
+ type: 'default' | 'first' | 'even';
287
+ partName: string;
288
+ }
289
+ interface EditorSectionView {
290
+ sectionIndex: number;
291
+ firstParaId: string;
292
+ lastParaId: string;
293
+ type?: 'nextPage' | 'continuous' | 'evenPage' | 'oddPage' | 'nextColumn';
294
+ pageLayout?: EditorPageLayout;
295
+ pageNumberStart?: number;
296
+ headerRefs: EditorHeaderFooterRef[];
297
+ footerRefs: EditorHeaderFooterRef[];
298
+ titlePage: boolean;
299
+ }
300
+ interface EditorHeaderFooterStoryView {
301
+ kind: 'header' | 'footer';
302
+ partName: string;
303
+ blocks: EditorBlockView[];
304
+ paragraphs: EditorParagraphView[];
305
+ tables: EditorTableView[];
306
+ }
307
+ interface EditorDocumentView {
308
+ kind: 'word';
309
+ defaults?: EditorDocumentDefaults;
310
+ pageLayout?: EditorPageLayout;
311
+ sections: EditorSectionView[];
312
+ headers: EditorHeaderFooterStoryView[];
313
+ footers: EditorHeaderFooterStoryView[];
314
+ blocks: EditorBlockView[];
315
+ paragraphs: EditorParagraphView[];
316
+ tables: EditorTableView[];
317
+ detachedComments: CommentInfo[];
318
+ detachedRevisions: RevisionInfo[];
319
+ }
320
+
321
+ export type { EditorTabStop as A, EditorTableBorder as B, EditorTableBorders as C, EditorTableCellView as D, EditorBlockView as E, EditorTableLayout as F, EditorTableLook as G, EditorTableRowView as H, EditorTableView as I, EditorTextSegment as J, EditorTextSpan as K, EditorBoxEdges as a, EditorCommentSpan as b, EditorContentSegment as c, EditorDocumentDefaults as d, EditorDocumentView as e, EditorDrawingSegment as f, EditorFieldSegment as g, EditorHeaderFooterRef as h, EditorHeaderFooterStoryView as i, EditorHyperlink as j, EditorImageSegment as k, EditorNumberingFormat as l, EditorPageLayout as m, EditorParagraphBorder as n, EditorParagraphBorders as o, EditorParagraphFormat as p, EditorParagraphSpan as q, EditorParagraphView as r, EditorPlaceholderSegment as s, EditorRevisionSegment as t, EditorRevisionSpan as u, EditorRunFormat as v, EditorSectionView as w, EditorSegmentKind as x, EditorShading as y, EditorSpanKind as z };