import { ModifyContentAction, ModifyContentActionType } from './modify-content-action.abstract';
/**
 * Insert a new children after a existing children
 *
 * @example parent.apply(new InsertChildrenAfterAction(existingChildren, newChildren, ...))
 */
export class InsertChildrenAfterAction extends ModifyContentAction {
  constructor(referBlock, ...blocksToBeInserted) {
    super();
    this.type = ModifyContentActionType.INSERT_CHILDREN_AFTER;
    this.referChildren = referBlock;
    this.childrenToBeInserted = blocksToBeInserted;
  }
}
