// tslint:disable:max-line-length import { CellId, CellType, ImmutableCell } from "@nteract/commutable"; import { Action, HasCell, HasContent, makeActionFunction, MaybeHasCell } from "../utils"; export const CREATE_CELL_BELOW = "CREATE_CELL_BELOW"; export const CREATE_CELL_ABOVE = "CREATE_CELL_ABOVE"; export const CREATE_CELL_APPEND = "CREATE_CELL_APPEND"; export const MOVE_CELL = "MOVE_CELL"; export const DELETE_CELL = "DELETE_CELL"; export const CUT_CELL = "CUT_CELL"; export const COPY_CELL = "COPY_CELL"; export const PASTE_CELL = "PASTE_CELL"; export type CreateCellBelow = Action; export type CreateCellAbove = Action; export type CreateCellAppend = Action; export type MoveCell = Action; export type DeleteCell = Action; export type CutCell = Action; export type CopyCell = Action; export type PasteCell = Action; export const createCellBelow = makeActionFunction (CREATE_CELL_BELOW); export const createCellAbove = makeActionFunction (CREATE_CELL_ABOVE); export const createCellAppend = makeActionFunction (CREATE_CELL_APPEND); export const moveCell = makeActionFunction (MOVE_CELL); export const deleteCell = makeActionFunction (DELETE_CELL); export const cutCell = makeActionFunction (CUT_CELL); export const copyCell = makeActionFunction (COPY_CELL); export const pasteCell = makeActionFunction (PASTE_CELL);