oasis-editor 0.0.270 → 0.0.272

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.
@@ -4,6 +4,10 @@ export interface TableCellAlignment {
4
4
  horizontal: "left" | "center" | "right";
5
5
  vertical: "top" | "middle" | "bottom";
6
6
  }
7
+ export interface TableCellAlignmentState {
8
+ horizontal: TableCellAlignment["horizontal"] | "mixed" | null;
9
+ vertical: TableCellAlignment["vertical"] | "mixed" | null;
10
+ }
7
11
  /** Word's default border: black, solid, one half point. */
8
12
  export declare const DEFAULT_TABLE_BORDER: EditorBorderStyle;
9
13
  /** Explicitly suppresses a border. Missing cell borders intentionally fall
@@ -12,6 +16,8 @@ export declare const NO_TABLE_BORDER: EditorBorderStyle;
12
16
  export declare function setTableCellStyleValue<K extends keyof EditorTableCellStyle>(state: EditorState, key: K, value: EditorTableCellStyle[K] | null): EditorState;
13
17
  /** Set the horizontal and vertical alignment of selected table-cell text. */
14
18
  export declare function setTableCellAlignment(state: EditorState, horizontal: TableCellAlignment["horizontal"], vertical: TableCellAlignment["vertical"]): EditorState;
19
+ /** Read the alignment shared by the current cell selection, preserving mixed state. */
20
+ export declare function getTableCellAlignmentState(state: EditorState): TableCellAlignmentState | null;
15
21
  export declare function setTableCellWidth(state: EditorState, width: number | string | null): EditorState;
16
22
  export declare function setTableCellBorders(state: EditorState, border: EditorBorderStyle | null): EditorState;
17
23
  /** Apply a ribbon Borders preset to the selected cells. The cell-style command