@coco-vexel/coco-office-editor 1.0.10 → 1.0.12

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 (46) hide show
  1. package/dist/index.cjs +1519 -28489
  2. package/dist/index.d.cts +3 -3
  3. package/dist/index.d.ts +3 -3
  4. package/dist/index.js +1518 -28267
  5. package/dist/{model-DT8Dw2G6.d.cts → model-CgISL5eB.d.cts} +2 -0
  6. package/dist/{model-DT8Dw2G6.d.ts → model-CgISL5eB.d.ts} +2 -0
  7. package/dist/{native-C3ZdrIcW.d.ts → native-D9lhNG94.d.ts} +2 -1
  8. package/dist/{native-wR2uhZvi.d.cts → native-DVRWKaOC.d.cts} +2 -1
  9. package/dist/ppt-native.cjs +7 -5369
  10. package/dist/ppt-native.js +7 -5367
  11. package/dist/ppt.cjs +7 -5462
  12. package/dist/ppt.js +7 -5445
  13. package/dist/spreadsheet.cjs +17 -5789
  14. package/dist/spreadsheet.d.cts +25 -6
  15. package/dist/spreadsheet.d.ts +25 -6
  16. package/dist/spreadsheet.js +17 -5718
  17. package/dist/word-editing.cjs +2 -812
  18. package/dist/word-editing.js +2 -803
  19. package/dist/word-native.cjs +1541 -13831
  20. package/dist/word-native.d.cts +2 -2
  21. package/dist/word-native.d.ts +2 -2
  22. package/dist/word-native.js +1541 -13723
  23. package/dist/word-prosemirror.cjs +1 -489
  24. package/dist/word-prosemirror.js +1 -483
  25. package/dist/word.cjs +1373 -17298
  26. package/dist/word.d.cts +5 -5
  27. package/dist/word.d.ts +5 -5
  28. package/dist/word.js +1373 -17163
  29. package/package.json +3 -3
  30. package/src/styles/editor.css +49 -5
  31. package/dist/index.cjs.map +0 -1
  32. package/dist/index.js.map +0 -1
  33. package/dist/ppt-native.cjs.map +0 -1
  34. package/dist/ppt-native.js.map +0 -1
  35. package/dist/ppt.cjs.map +0 -1
  36. package/dist/ppt.js.map +0 -1
  37. package/dist/spreadsheet.cjs.map +0 -1
  38. package/dist/spreadsheet.js.map +0 -1
  39. package/dist/word-editing.cjs.map +0 -1
  40. package/dist/word-editing.js.map +0 -1
  41. package/dist/word-native.cjs.map +0 -1
  42. package/dist/word-native.js.map +0 -1
  43. package/dist/word-prosemirror.cjs.map +0 -1
  44. package/dist/word-prosemirror.js.map +0 -1
  45. package/dist/word.cjs.map +0 -1
  46. package/dist/word.js.map +0 -1
@@ -183,6 +183,7 @@ interface EditorTableCellView {
183
183
  rowSpan?: number;
184
184
  vMerge: 'restart' | 'continue' | null;
185
185
  width?: number;
186
+ widthType?: EditorTableLayout['widthType'];
186
187
  margin?: EditorBoxEdges;
187
188
  borders?: EditorTableBorders;
188
189
  shading?: {
@@ -215,6 +216,7 @@ interface EditorTableView {
215
216
  rows: EditorTableRowView[];
216
217
  }
217
218
  interface EditorTableLayout {
219
+ mode?: 'autofit' | 'fixed';
218
220
  width?: number;
219
221
  widthType?: 'auto' | 'dxa' | 'pct';
220
222
  indent?: number;
@@ -183,6 +183,7 @@ interface EditorTableCellView {
183
183
  rowSpan?: number;
184
184
  vMerge: 'restart' | 'continue' | null;
185
185
  width?: number;
186
+ widthType?: EditorTableLayout['widthType'];
186
187
  margin?: EditorBoxEdges;
187
188
  borders?: EditorTableBorders;
188
189
  shading?: {
@@ -215,6 +216,7 @@ interface EditorTableView {
215
216
  rows: EditorTableRowView[];
216
217
  }
217
218
  interface EditorTableLayout {
219
+ mode?: 'autofit' | 'fixed';
218
220
  width?: number;
219
221
  widthType?: 'auto' | 'dxa' | 'pct';
220
222
  indent?: number;
@@ -1,4 +1,4 @@
1
- import { q as EditorParagraphFormat, w as EditorRunFormat, u as EditorRevisionSegment, k as EditorHyperlink, l as EditorImageSegment, g as EditorDrawingSegment, h as EditorFieldSegment, J as EditorTableView, D as EditorTableBorders, F as EditorTableCellView, e as EditorDocumentDefaults, n as EditorPageLayout, f as EditorDocumentView, j as EditorHeaderFooterStoryView, m as EditorNumberingFormat } from './model-DT8Dw2G6.js';
1
+ import { q as EditorParagraphFormat, w as EditorRunFormat, u as EditorRevisionSegment, k as EditorHyperlink, l as EditorImageSegment, g as EditorDrawingSegment, h as EditorFieldSegment, J as EditorTableView, D as EditorTableBorders, F as EditorTableCellView, e as EditorDocumentDefaults, n as EditorPageLayout, f as EditorDocumentView, j as EditorHeaderFooterStoryView, m as EditorNumberingFormat } from './model-CgISL5eB.js';
2
2
  import { Package } from '@coco-vexel/coco-office/pack';
3
3
  import { PackageIndices } from '@coco-vexel/coco-office/word-view';
4
4
 
@@ -119,6 +119,7 @@ interface NativeWordTableCellNode {
119
119
  rowSpan?: number;
120
120
  vMerge?: EditorTableCellView['vMerge'];
121
121
  width?: number;
122
+ widthType?: EditorTableCellView['widthType'];
122
123
  margin?: EditorTableCellView['margin'];
123
124
  borders?: EditorTableCellView['borders'];
124
125
  shading?: EditorTableCellView['shading'];
@@ -1,4 +1,4 @@
1
- import { q as EditorParagraphFormat, w as EditorRunFormat, u as EditorRevisionSegment, k as EditorHyperlink, l as EditorImageSegment, g as EditorDrawingSegment, h as EditorFieldSegment, J as EditorTableView, D as EditorTableBorders, F as EditorTableCellView, e as EditorDocumentDefaults, n as EditorPageLayout, f as EditorDocumentView, j as EditorHeaderFooterStoryView, m as EditorNumberingFormat } from './model-DT8Dw2G6.cjs';
1
+ import { q as EditorParagraphFormat, w as EditorRunFormat, u as EditorRevisionSegment, k as EditorHyperlink, l as EditorImageSegment, g as EditorDrawingSegment, h as EditorFieldSegment, J as EditorTableView, D as EditorTableBorders, F as EditorTableCellView, e as EditorDocumentDefaults, n as EditorPageLayout, f as EditorDocumentView, j as EditorHeaderFooterStoryView, m as EditorNumberingFormat } from './model-CgISL5eB.cjs';
2
2
  import { Package } from '@coco-vexel/coco-office/pack';
3
3
  import { PackageIndices } from '@coco-vexel/coco-office/word-view';
4
4
 
@@ -119,6 +119,7 @@ interface NativeWordTableCellNode {
119
119
  rowSpan?: number;
120
120
  vMerge?: EditorTableCellView['vMerge'];
121
121
  width?: number;
122
+ widthType?: EditorTableCellView['widthType'];
122
123
  margin?: EditorTableCellView['margin'];
123
124
  borders?: EditorTableCellView['borders'];
124
125
  shading?: EditorTableCellView['shading'];