import { JSONObject } from "@nteract/commutable"; import { outputToJS } from "@nteract/commutable/lib/v4"; import { actions, AppState, ContentRef, selectors } from "@nteract/core"; import IframeResizer from "iframe-resizer-react"; import Immutable from "immutable"; import postRobot from "post-robot"; import React from "react"; import { connect } from "react-redux"; import { Dispatch } from "redux"; import { CellOutputViewerProps, SnapshotResponse } from "../../../../CellOutputViewer/CellOutputViewer"; import * as cdbActions from "../../NotebookComponent/actions"; import { CdbAppState, SnapshotFragment, SnapshotRequest } from "../../NotebookComponent/types"; // Adapted from https://github.com/nteract/nteract/blob/main/packages/stateful-components/src/outputs/index.tsx // to add support for sandboxing using