monaco-editor-comp
Version:
Lit Component for Monaco-Editor and Monaco Languageclient Wrapper
67 lines • 2.63 kB
TypeScript
import { LitElement } from 'lit';
export declare class MonacoEditorWebComponent extends LitElement {
private container;
private monacoWrapper;
private monacoEditorOptions;
private monacoDiffEditorOptions;
private languageDef;
private themeData;
code: string;
languageId: string;
modifiedCode: string;
modifiedLanguageId: string;
theme: string;
automaticLayout: boolean;
enableInlineConfig: boolean;
useDiffEditor: boolean;
useLanguageClient: boolean;
useWebSocket: boolean;
wsSecured: boolean;
wsHost: string;
wsPort: number;
wsPath: string;
workerURL: string;
useModuleWorker: boolean;
workerName: string;
static styles: import("lit").CSSResult;
render(): import("lit-html").TemplateResult<1>;
setCode(code: string): void;
setLanguageId(languageId: string): void;
setModifiedCode(modifiedCode: string): void;
setModifiedLanguageId(modifiedLanguageId: string): void;
setTheme(theme: string): void;
setAutomaticLayout(automaticLayout: boolean): void;
setUseLanguageClient(useLanguageClient: boolean): void;
setUseWebSocket(useWebSocket: boolean): void;
setWsSecured(wsSecured: boolean): void;
setWsHost(wsHost: string): void;
setWsPort(wsPort: number): void;
setWsPath(wsPath: string): void;
setWorkerURL(workerURL: string): void;
setUseModuleWorker(useModuleWorker: boolean): void;
setWorkerName(workerName: string): void;
setLanguageDef(languageDef: unknown): void;
setThemeData(themeData: unknown): void;
setUseDiffEditor(useDiffEditor: boolean): void;
startEditor(reloadInlineConfig: boolean): void;
updateDiffEditorContent(code: string, languageId: string, modifiedCode: string, modifiedLanguageId: string): void;
loadInlineConfig(): void;
updateLayout(): void;
private syncPropertiesAndEditorConfig;
private buildAndCallConfigFunction;
private retrieveMonacoEditorOptions;
setMonacoEditorOptions(options: Record<string, unknown> | undefined): void;
private retrieveMonacoDiffEditorOptions;
setMonacoDiffEditorOptions(options: Record<string, unknown> | undefined): void;
private retrieveLanguageClientOptions;
setLanguageClientOptions(options: Record<string, unknown> | undefined): void;
private isEnableInlineConfig;
firstUpdated(): void;
registerListeners(): void;
}
declare global {
interface HTMLElementTagNameMap {
'monaco-editor-comp': MonacoEditorWebComponent;
}
}
//# sourceMappingURL=index.d.ts.map