@@ -45,22 +45,6 @@ async windowIsExists(window: AppWindow) : Promise<Result<boolean, string>> {
4545 if ( e instanceof Error ) throw e ;
4646 else return { status : "error" , error : e as any } ;
4747}
48- } ,
49- async setFakeWindowBounds ( name : string , bounds : OverlayBound ) : Promise < Result < null , string > > {
50- try {
51- return { status : "ok" , data : await TAURI_INVOKE ( "plugin:windows|set_fake_window_bounds" , { name, bounds } ) } ;
52- } catch ( e ) {
53- if ( e instanceof Error ) throw e ;
54- else return { status : "error" , error : e as any } ;
55- }
56- } ,
57- async removeFakeWindow ( name : string ) : Promise < Result < null , string > > {
58- try {
59- return { status : "ok" , data : await TAURI_INVOKE ( "plugin:windows|remove_fake_window" , { name } ) } ;
60- } catch ( e ) {
61- if ( e instanceof Error ) throw e ;
62- else return { status : "error" , error : e as any } ;
63- }
6448}
6549}
6650
@@ -70,10 +54,12 @@ async removeFakeWindow(name: string) : Promise<Result<null, string>> {
7054export const events = __makeEvents__ < {
7155navigate : Navigate ,
7256openTab : OpenTab ,
57+ visibilityEvent : VisibilityEvent ,
7358windowDestroyed : WindowDestroyed
7459} > ( {
7560navigate : "plugin:windows:navigate" ,
7661openTab : "plugin:windows:open-tab" ,
62+ visibilityEvent : "plugin:windows:visibility-event" ,
7763windowDestroyed : "plugin:windows:window-destroyed"
7864} )
7965
@@ -96,11 +82,11 @@ export type ExtensionsState = { selectedExtension: string | null }
9682export type JsonValue = null | boolean | number | string | JsonValue [ ] | Partial < { [ key in string ] : JsonValue } >
9783export type Navigate = { path : string ; search : Partial < { [ key in string ] : JsonValue } > | null }
9884export type OpenTab = { tab : TabInput }
99- export type OverlayBound = { x : number ; y : number ; width : number ; height : number }
10085export type PromptsState = { selectedTask : string | null }
10186export type SessionsState = { view : EditorView | null ; autoStart : boolean | null }
10287export type TabInput = { type : "sessions" ; id : string ; state ?: SessionsState | null } | { type : "contacts" ; state ?: ContactsState | null } | { type : "templates" ; state ?: TemplatesState | null } | { type : "prompts" ; state ?: PromptsState | null } | { type : "chat_shortcuts" ; state ?: ChatShortcutsState | null } | { type : "extensions" ; state ?: ExtensionsState | null } | { type : "humans" ; id : string } | { type : "organizations" ; id : string } | { type : "folders" ; id : string | null } | { type : "empty" } | { type : "extension" ; extensionId : string ; state ?: Partial < { [ key in string ] : JsonValue } > | null } | { type : "calendar" } | { type : "changelog" ; state : ChangelogState } | { type : "settings" } | { type : "ai" ; state ?: AiState | null } | { type : "data" ; state ?: DataState | null }
10388export type TemplatesState = { showHomepage : boolean | null ; isWebMode : boolean | null ; selectedMineId : string | null ; selectedWebIndex : number | null }
89+ export type VisibilityEvent = { window : AppWindow ; visible : boolean }
10490export type WindowDestroyed = { window : AppWindow }
10591
10692/** tauri-specta globals **/
0 commit comments