roosterjs 8.16.0 → 8.17.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.
@@ -1,4 +1,4 @@
1
- // Type definitions for roosterjs (Version 8.16.0)
1
+ // Type definitions for roosterjs (Version 8.17.0)
2
2
  // Generated by dts tool from roosterjs
3
3
  // Project: https://github.com/Microsoft/roosterjs
4
4
 
@@ -729,7 +729,11 @@ export const enum ExperimentalFeatures {
729
729
  /**
730
730
  * Paste the Html instead of the Img when the Html Body only have one IMG Child node
731
731
  */
732
- ConvertSingleImageBody = "ConvertSingleImageBody"
732
+ ConvertSingleImageBody = "ConvertSingleImageBody",
733
+ /**
734
+ * Align table elements to left, center and right using setAlignment API
735
+ */
736
+ TableAlignment = "TableAlignment"
733
737
  }
734
738
 
735
739
  /**
@@ -5130,7 +5134,7 @@ export class VTable {
5130
5134
  /**
5131
5135
  * Current format of the table
5132
5136
  */
5133
- formatInfo: TableFormat;
5137
+ formatInfo: Required<TableFormat>;
5134
5138
  private trs;
5135
5139
  /**
5136
5140
  * Create a new instance of VTable object using HTML TABLE or TD node
@@ -5141,15 +5145,17 @@ export class VTable {
5141
5145
  constructor(node: HTMLTableElement | HTMLTableCellElement, normalizeSize?: boolean, zoomScale?: number | SizeTransformer);
5142
5146
  /**
5143
5147
  * Write the virtual table back to DOM tree to represent the change of VTable
5148
+ * @param skipApplyFormat Do not reapply table format when write back.
5149
+ * Only use this parameter when you are pretty sure there is no format or table structure change during the process.
5144
5150
  */
5145
- writeBack(): void;
5151
+ writeBack(skipApplyFormat?: boolean): void;
5146
5152
  /**
5147
5153
  * Apply the given table format to this virtual table
5148
5154
  * @param format Table format to apply
5149
5155
  */
5150
5156
  applyFormat(format: Partial<TableFormat>): void;
5151
5157
  /**
5152
- * Remove the cellshade dataset to apply a new style format at the cell.
5158
+ * Remove the cellShade dataset to apply a new style format at the cell.
5153
5159
  * @param cells
5154
5160
  */
5155
5161
  private deleteCellShadeDataset;