import { actions } from "@nteract/core" ; import { DesktopCommand , ElectronRoleCommand , ReqContent } from "../types" ; export const Cut = { name : "Cut" , mapToElectronRole : "cut" , } ; export const Copy = { name : "Copy" , mapToElectronRole : "copy" , } ; export const Paste = { name : "Paste" , mapToElectronRole : "paste" , } ; export const SelectAll = { name : "SelectAll" , mapToElectronRole : "selectAll" , } ; export const CopyCell = { name : "CopyCell" , props : { contentRef : "required" , } , makeAction : actions . copyCell , } ; export const CutCell = { name : "CutCell" , props : { contentRef : "required" , } , makeAction : actions . cutCell , } ; export const PasteCell = { name : "PasteCell" , props : { contentRef : "required" , } , makeAction : actions . pasteCell , } ; export const DeleteCell = { name : "DeleteCell" , props : { contentRef : "required" , } , makeAction : actions . markCellAsDeleting . with ( { id : undefined } ) , } ; export const NewCodeCellAbove = { name : "NewCodeCellAbove" , props : { contentRef : "required" , } , makeAction : actions . createCellAbove . with ( { cellType : "code" } ) , } ; export const NewCodeCellBelow = { name : "NewCodeCellBelow" , props : { contentRef : "required" , } , makeAction : actions . createCellBelow . with ( { cellType : "code" , source : "" } ) , } ; export const NewTextCellAbove = { name : "NewTextCellAbove" , props : { contentRef : "required" , } , makeAction : actions . createCellAbove . with ( { cellType : "markdown" , source : "" } ) , } ; export const NewTextCellBelow = { name : "NewTextCellBelow" , props : { contentRef : "required" , } , makeAction : actions . createCellBelow . with ( { cellType : "markdown" , source : "" , } ) , } ;