/** * @packageDocumentation * @module htmlviewer */ import { IFrame, IWidgetTracker } from '@jupyterlab/apputils'; import { ABCWidgetFactory, DocumentRegistry, DocumentWidget, IDocumentWidget } from '@jupyterlab/docregistry'; import { ITranslator } from '@jupyterlab/translation'; import { Token } from '@lumino/coreutils'; import { ISignal } from '@lumino/signaling'; /** * A class that tracks HTML viewer widgets. */ export interface IHTMLViewerTracker extends IWidgetTracker { } /** * The HTML viewer tracker token. */ export declare const IHTMLViewerTracker: Token; /** * A viewer widget for HTML documents. * * #### Notes * The iframed HTML document can pose a potential security risk, * since it can execute Javascript, and make same-origin requests * to the server, thereby executing arbitrary Javascript. * * Here, we sandbox the iframe so that it can't execute Javascript * or launch any popups. We allow one exception: 'allow-same-origin' * requests, so that local HTML documents can access CSS, images, * etc from the files system. */ export declare class HTMLViewer extends DocumentWidget