@yudaocode/univer-docs 1.6.213 → 1.6.214

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.
@@ -1051,7 +1051,7 @@ interface IDocAddGraffitiStrokeSpec {
1051
1051
  }
1052
1052
  type IDocReportTemplateMetadata = IDocTemplateMetadata;
1053
1053
  interface IDocImportWarning {
1054
- code: 'UNSUPPORTED_SHAPE' | 'UNSUPPORTED_TEXTBOX' | 'UNSUPPORTED_SMARTART' | 'UNSUPPORTED_FIELD' | 'UNSUPPORTED_NOTE' | 'UNSUPPORTED_COMMENT_TRACK' | 'UNSUPPORTED_EMBED' | 'MULTI_SECTION_FLATTENED' | 'FLOATING_IMAGE_INLINE' | 'COMPLEX_NUMBERING_SIMPLIFIED' | 'SERVER_IMPORT_WARNING' | (string & {});
1054
+ code: 'UNSUPPORTED_SHAPE' | 'UNSUPPORTED_TEXTBOX' | 'UNSUPPORTED_SMARTART' | 'UNSUPPORTED_FIELD' | 'UNSUPPORTED_NOTE' | 'UNSUPPORTED_COMMENT_TRACK' | 'UNSUPPORTED_EMBED' | 'MULTI_SECTION_FLATTENED' | 'FLOATING_IMAGE_INLINE' | 'COMPLEX_NUMBERING_SIMPLIFIED' | 'PCT_CELL_MARGIN_APPROXIMATED' | 'SERVER_IMPORT_WARNING' | (string & {});
1055
1055
  message: string;
1056
1056
  count?: number;
1057
1057
  }
@@ -3017,6 +3017,12 @@ interface IDocBuilderParagraphInput {
3017
3017
  callout?: IDocCalloutBlock;
3018
3018
  quote?: IDocQuoteBlock;
3019
3019
  }
3020
+ interface IDocBuilderCellMarginPt {
3021
+ top: number;
3022
+ bottom: number;
3023
+ start: number;
3024
+ end: number;
3025
+ }
3020
3026
  interface IDocBuilderTableCellInput {
3021
3027
  text: string;
3022
3028
  style?: ITextStyle;
@@ -3024,6 +3030,11 @@ interface IDocBuilderTableCellInput {
3024
3030
  rowSpan?: number;
3025
3031
  backgroundRgb?: string;
3026
3032
  borders?: IDocTableCellBorders;
3033
+ /** Explicit cell-only border overrides (when omitted on DOCX import, cell inherits `table.borderDefaults`) */
3034
+ explicitBorders?: Partial<IDocTableCellBorders>;
3035
+ /** Resolved 4-side cell margins in points (`1 pt = 20 twip`) */
3036
+ marginPt?: IDocBuilderCellMarginPt;
3037
+ vAlign?: ITableCell['vAlign'];
3027
3038
  tcWidthType?: 'auto' | 'dxa' | 'nil' | 'pct';
3028
3039
  cellSize?: ITableCell['size'];
3029
3040
  yudaoTcWidthPct?: number;
@@ -3033,6 +3044,8 @@ interface IDocBuilderTableCellInput {
3033
3044
  interface IDocBuilderTableInput {
3034
3045
  kind: 'table';
3035
3046
  tableId?: string;
3047
+ styleId?: string;
3048
+ fromDocxImport?: boolean;
3036
3049
  columnWidthsPt?: number[];
3037
3050
  repeatHeaderRow?: boolean;
3038
3051
  headerRowCount?: number;
@@ -3040,9 +3053,12 @@ interface IDocBuilderTableInput {
3040
3053
  rowMeta?: Array<{
3041
3054
  trHeight?: ITableRow['trHeight'];
3042
3055
  cantSplit?: BooleanNumber;
3056
+ cellMarginPt?: IDocBuilderCellMarginPt;
3043
3057
  }>;
3044
3058
  tableSize?: ITable['size'];
3045
3059
  tableLayout?: ITable['layout'];
3060
+ tableCellMarginPt?: IDocBuilderCellMarginPt;
3061
+ tableBorderDefaults?: ITable['borderDefaults'];
3046
3062
  yudaoTblWidthType?: 'dxa' | 'pct' | 'auto' | 'nil';
3047
3063
  yudaoTblWidthDxa?: number;
3048
3064
  yudaoTblWidthPct?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yudaocode/univer-docs",
3
- "version": "1.6.213",
3
+ "version": "1.6.214",
4
4
  "description": "Univer Docs enterprise enhancement core plugin: structured SDT controls, table row loop & dataset template engine, view mode & pluggable DOCX/Markdown/HTML IO adapter",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/yudaocode/yudao-univer#readme",