@netless/window-manager 0.4.0-canary.15 → 0.4.0-canary.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  1. 废弃 `WindowManager.mount` 的多参数类型
4
4
  2. 添加 `bindContainer` 接口,`mount` 时 `container` 参数不再是必选
5
-
5
+ 3. 关闭 `App` 会移除相关的 `Scene`
6
6
 
7
7
  ## 0.3.18
8
8
 
@@ -1,5 +1,5 @@
1
1
  import { AppAttributes } from "./constants";
2
- import { TELE_BOX_STATE, TeleBoxManager } from "@netless/telebox-insider";
2
+ import { TELE_BOX_STATE, TeleBoxManager, TeleBoxConfig } from "@netless/telebox-insider";
3
3
  import { WindowManager } from "./index";
4
4
  import type { AddAppOptions, AppInitState, EmitterType, CallbacksType } from "./index";
5
5
  import type { TeleBoxManagerUpdateConfig, ReadonlyTeleBox, TeleBoxColorScheme, TeleBoxRect } from "@netless/telebox-insider";
@@ -86,6 +86,7 @@ export declare class BoxManager {
86
86
  setMaximized(maximized: boolean): void;
87
87
  setMinimized(minimized: boolean, skipUpdate?: boolean): void;
88
88
  focusTopBox(): void;
89
+ updateBox(id: string, payload: TeleBoxConfig, skipUpdate?: boolean): void;
89
90
  setReadonly(readonly: boolean): void;
90
91
  setPrefersColorScheme(colorScheme: TeleBoxColorScheme): void;
91
92
  setZIndex(id: string, zIndex: number, skipUpdate?: boolean): void;
@@ -1,4 +1,8 @@
1
+ export declare type Item = {
2
+ kind: string;
3
+ sourceCode: string;
4
+ };
1
5
  export declare const initDb: () => Promise<void>;
2
6
  export declare const setItem: (key: string, val: any) => Promise<void> | undefined;
3
- export declare const getItem: (key: string) => Promise<string | null>;
7
+ export declare const getItem: (key: string) => Promise<Item | null>;
4
8
  export declare const removeItem: (key: string) => Promise<void> | undefined;
@@ -6,6 +6,7 @@ export declare const setViewFocusScenePath: (view: View, focusScenePath: string)
6
6
  export declare const setViewSceneIndex: (view: View, index: number) => View | undefined;
7
7
  export declare const setScenePath: (room: Room | undefined, scenePath: string) => void;
8
8
  export declare const getScenePath: (room: Room | undefined, dir: string | undefined, index: number) => string | undefined;
9
+ export declare const removeScenes: (room: Room | undefined, scenePath: string) => void;
9
10
  export declare const setViewMode: (view: View, mode: ViewVisionMode) => void;
10
11
  export declare const emitError: (error: Error) => void;
11
12
  export declare const addEmitterOnceListener: (event: any, listener: any) => void;