import type { DocumentRegistry, IDocumentWidget } from '@jupyterlab/docregistry'; import { ABCWidgetFactory, DocumentWidget } from '@jupyterlab/docregistry'; import type { ITranslator } from '@jupyterlab/translation'; import { IFrame } from '@jupyterlab/ui-components'; import type { ISignal } from '@lumino/signaling'; import type { Widget } from '@lumino/widgets'; /** * 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