import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
export const INSERT_TABLE_ROW = 'INSERT_TABLE_ROW';
export const INSERT_TABLE_ROW_INTO_SAME_SECTION = 'INSERT_TABLE_ROW_INTO_SAME_SECTION';
export var InsertTableRowDirection;
(function (InsertTableRowDirection) {
  InsertTableRowDirection["ABOVE"] = "ABOVE";
  InsertTableRowDirection["BELOW"] = "BELOW";
})(InsertTableRowDirection || (InsertTableRowDirection = {}));
/**
 * Action class for inserting a new row into a table within the rich text editor.
 */
export class InsertTableRowIntoSameSectionAction extends ModifyContentAction {
  /**
   * Constructs an InsertTableRowIntoSameSectionAction.
   *
   * @param {InsertTableRowDirection} insertDirection - The direction to insert the new row (above or below the current row).
   * @param {RTETableRowBlock[]} selectedRows - The currently selected rows in the table.
   */
  constructor(insertDirection, selectedRows = []) {
    super();
    this.isFlushable = true;
    this.type = INSERT_TABLE_ROW_INTO_SAME_SECTION;
    this.selectedRows = [];
    this.insertDirection = insertDirection;
    this.selectedRows = selectedRows;
  }
}
