@@ -149,6 +149,7 @@ declare module 'jsEngine/messages/MessageManager' {
149149 private messageDisplay ;
150150 constructor ( app : App , plugin : JsEnginePlugin ) ;
151151 initStatusBarItem ( ) : void ;
152+ removeStatusBarItem ( ) : void ;
152153 addMessage ( message : Message , source : InstanceId ) : MessageWrapper ;
153154 removeMessage ( id : string ) : void ;
154155 removeAllMessages ( ) : void ;
@@ -160,7 +161,7 @@ declare module 'jsEngine/settings/StartupScriptModal' {
160161 import type JsEnginePlugin from 'jsEngine/main' ;
161162 import { Modal } from 'obsidian' ;
162163 export class StartupScriptsModal extends Modal {
163- private readonly plugin ;
164+ readonly plugin : JsEnginePlugin ;
164165 private component ?;
165166 constructor ( plugin : JsEnginePlugin ) ;
166167 onOpen ( ) : void ;
@@ -174,6 +175,7 @@ declare module 'jsEngine/settings/Settings' {
174175 import { PluginSettingTab } from 'obsidian' ;
175176 export interface JsEnginePluginSettings {
176177 startupScripts ?: string [ ] ;
178+ disableStatusbar ?: boolean ;
177179 }
178180 export const JS_ENGINE_DEFAULT_SETTINGS : JsEnginePluginSettings ;
179181 export class JsEnginePluginSettingTab extends PluginSettingTab {
@@ -378,7 +380,7 @@ declare module 'jsEngine/api/prompts/Suggester' {
378380 getItems ( ) : SuggesterOption < T > [ ] ;
379381 getItemText ( item : SuggesterOption < T > ) : string ;
380382 onChooseItem ( item : SuggesterOption < T > , _ : MouseEvent | KeyboardEvent ) : void ;
381- onOpen ( ) : void ;
383+ onOpen ( ) : Promise < void > ;
382384 onClose ( ) : void ;
383385 }
384386}
@@ -686,7 +688,7 @@ declare module 'jsEngine/utils/Validators' {
686688 import { ButtonStyleType } from 'jsEngine/utils/Util' ;
687689 import type { CachedMetadata } from 'obsidian' ;
688690 import { Component , TFile } from 'obsidian' ;
689- import { z } from 'zod' ;
691+ import * as z from 'zod' ;
690692 export function schemaForType < T > ( ) : < S extends z . ZodType < T , any , any > > ( arg : S ) => S ;
691693 export function validateAPIArgs < T > ( validator : z . ZodType < T > , args : T ) : void ;
692694 export function zodFunction < T extends Function > ( ) : z . ZodCustom < T , T > ;
@@ -742,9 +744,6 @@ declare module 'jsEngine/main' {
742744 onunload ( ) : void ;
743745 loadSettings ( ) : Promise < void > ;
744746 saveSettings ( ) : Promise < void > ;
745- /**
746- * Inspired by https://github.com/SilentVoid13/Templater/blob/487805b5ad1fd7fbc145040ed82b4c41fc2c48e2/src/editor/Editor.ts#L67
747- */
748747 registerCodeMirrorMode ( ) : Promise < void > ;
749748 }
750749}
@@ -1552,7 +1551,8 @@ declare module 'jsEngine/JsMDRC' {
15521551 content : string ;
15531552 ctx : MarkdownPostProcessorContext ;
15541553 jsExecution : JsExecution | undefined ;
1555- constructor ( containerEl : HTMLElement , plugin : JsEnginePlugin , content : string , ctx : MarkdownPostProcessorContext ) ;
1554+ debugMode : boolean ;
1555+ constructor ( containerEl : HTMLElement , plugin : JsEnginePlugin , content : string , debugMode : boolean , ctx : MarkdownPostProcessorContext ) ;
15561556 getExecutionFile ( ) : TFile | undefined ;
15571557 buildExecutionContext ( ) : ExecutionContext ;
15581558 tryRun ( context : ExecutionContext ) : Promise < JsExecution > ;
0 commit comments