ExtensionRegistry beta
Class of @v12-engine/editor
export declare class ExtensionRegistryThe extensions of the page's editors and their versions (editor-panels F2): what an editor added (seen), the newest of each id, and the editors to tell of a new one (version), which put it in the place of the one before, their layout, the panels' state and the shared values kept. An editor opened after a new version, with the one before in its options, takes the newest (current). The page's (pageExtensions) is every editor's; a test makes its own (new EditorExtensions(editor, registry))
Members
current
current(extension: EditorExtension): EditorExtension;The newest version of an extension: itself unless a later one of its id came
forget
forget(editors: EditorExtensions): void;An editor's extensions let go of: told of no more versions
listen
listen(editors: EditorExtensions): void;An editor's extensions, told of new versions until they are let go of (forget)
module
module(exports: Readonly<Record<string, unknown>>): void;A module of extensions run again as it was saved (hot reload): what it exports of an id the editors know is a new version of it (version)
seen
seen(extension: EditorExtension): void;An extension an editor added: the first of its id is its newest, until another comes (version)
version
version(next: EditorExtension): void;A new version of an extension: the editors with the one before take it in its place