@stencila/thema
Version:
Themes for executable documents
19 lines (18 loc) • 899 B
TypeScript
/**
* Read query parameters from the URL, and conditionally hide the Theme Editor UI components
*/
export declare const initUiVisibility: () => void;
export declare const getExample: () => string;
export declare const setExample: (example: string) => void;
export declare const forceReady: (doc?: Document | null | undefined) => void;
export declare const getPreview: () => HTMLIFrameElement | null;
export declare const getPreviewDoc: () => Document | null;
export declare const getPreviewHead: () => HTMLHeadElement | null;
/**
* Inject necessary stylesheets and scripts to fully render a document
* Currently this function inject the scripts for Stencila Components. Note that you will need to trigger the
* `DOMContentLoaded` event manually by callign `forceReady()` after invoking this funcion.
*
* @function injectPreviewAssets
*/
export declare const injectPreviewAssets: () => void;