import { actions } from "@nteract/core" ; import { DesktopCommand , ReqContent } from "../types" ; export const ChangeCellToCode = { name : "ChangeCellToCode" , props : { contentRef : "required" , } , makeAction : actions . changeCellType . with ( { to : "code" } ) , } ; export const ChangeCellToText = { name : "ChangeCellToText" , props : { contentRef : "required" , } , makeAction : actions . changeCellType . with ( { to : "markdown" } ) , } ; export const RunAll = { name : "RunAll" , props : { contentRef : "required" , } , makeAction : actions . executeAllCells , } ; export const RunAllAbove = { name : "RunAllAbove" , props : { contentRef : "required" , } , makeAction : actions . executeAllCellsAbove , } ; export const RunAllBelow = { name : "RunAllBelow" , props : { contentRef : "required" , } , makeAction : actions . executeAllCellsBelow , } ; export const ClearAll = { name : "ClearAll" , props : { contentRef : "required" , } , makeAction : actions . clearAllOutputs , } ; export const UnhideAll = { name : "UnhideAll" , props : { contentRef : "required" , } , makeAction : actions . unhideAll . with ( { inputHidden : false , outputHidden : false , } ) , } ;