@netless/window-manager 0.4.14 → 0.4.17
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 +12 -0
- package/dist/AppManager.d.ts +5 -3
- package/dist/Utils/AppCreateQueue.d.ts +1 -0
- package/dist/Utils/Common.d.ts +2 -1
- package/dist/constants.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +5 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/docs/app-context.md +111 -0
- package/docs/develop-app.md +2 -0
- package/package.json +1 -1
- package/src/AppListener.ts +4 -2
- package/src/AppManager.ts +18 -13
- package/src/AppProxy.ts +4 -2
- package/src/InternalEmitter.ts +1 -1
- package/src/Utils/AppCreateQueue.ts +9 -1
- package/src/Utils/Common.ts +5 -2
- package/src/Utils/RoomHacker.ts +6 -2
- package/src/View/MainView.ts +2 -1
- package/src/constants.ts +2 -0
- package/src/index.ts +26 -3
- package/.eslintignore +0 -4
- package/.eslintrc.js +0 -28
- package/.idea/inspectionProfiles/Project_Default.xml +0 -7
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.idea/window-manager.iml +0 -12
- package/.vscode/settings.json +0 -22
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
## 0.4.17
|
2
|
+
|
3
|
+
1. 修复 safari 浏览器下 removeScenes 为 "/" 没有清理完成完成时可以 addApp
|
4
|
+
|
5
|
+
## 0.4.16
|
6
|
+
|
7
|
+
1. 修复 removeScenes 为 "/" 没有清理完成完成时 addApp 造成的状态错误
|
8
|
+
|
9
|
+
## 0.4.15
|
10
|
+
|
11
|
+
1. 修复 removeScenes 为 "/" 时, 切换主白板和 app focus 失效的问题
|
12
|
+
|
1
13
|
## 0.4.14
|
2
14
|
|
3
15
|
1. 修复 removeScenes 为 "/" 时, 同步端笔迹依旧存在的问题
|
package/dist/AppManager.d.ts
CHANGED
@@ -26,17 +26,18 @@ export declare class AppManager {
|
|
26
26
|
private appCreateQueue;
|
27
27
|
private sideEffectManager;
|
28
28
|
sceneState: SceneState | null;
|
29
|
+
rootDirRemoving: boolean;
|
29
30
|
constructor(windowManger: WindowManager);
|
30
31
|
private onRemoveScenes;
|
31
32
|
/**
|
32
33
|
* 根目录被删除时所有的 scene 都会被删除.
|
33
34
|
* 所以需要关掉所有开启了 view 的 app
|
34
35
|
*/
|
35
|
-
onRootDirRemoved(): void
|
36
|
+
onRootDirRemoved(needClose?: boolean): Promise<void>;
|
36
37
|
private onReadonlyChanged;
|
37
38
|
private onPlayerSeekStart;
|
38
39
|
private onPlayerSeekDone;
|
39
|
-
|
40
|
+
createRootDirScenesCallback: () => void;
|
40
41
|
private onSceneChange;
|
41
42
|
private emitMainViewScenesChange;
|
42
43
|
private updateSceneState;
|
@@ -72,7 +73,7 @@ export declare class AppManager {
|
|
72
73
|
addApp(params: AddAppParams, isDynamicPPT: boolean): Promise<string | undefined>;
|
73
74
|
private beforeAddApp;
|
74
75
|
private afterAddApp;
|
75
|
-
closeApp(appId: string): Promise<void>;
|
76
|
+
closeApp(appId: string, needClose?: boolean): Promise<void>;
|
76
77
|
private baseInsertApp;
|
77
78
|
private displayerStateListener;
|
78
79
|
displayerWritableListener: (isReadonly: boolean) => void;
|
@@ -89,6 +90,7 @@ export declare class AppManager {
|
|
89
90
|
focusByAttributes(apps: any): void;
|
90
91
|
onReconnected(): Promise<void>;
|
91
92
|
notifyContainerRectUpdate(rect: TeleBoxRect): void;
|
93
|
+
updateRootDirRemoving: (removing: boolean) => void;
|
92
94
|
dispatchInternalEvent(event: Events, payload?: any): void;
|
93
95
|
destroy(): void;
|
94
96
|
}
|
package/dist/Utils/Common.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { PublicEvent } from "../callback";
|
2
|
-
import type { Displayer, ViewVisionMode, Room, View } from "white-web-sdk";
|
2
|
+
import type { Displayer, ViewVisionMode, Room, View, SceneDefinition } from "white-web-sdk";
|
3
3
|
import type Emittery from "emittery";
|
4
4
|
export declare const genAppId: (kind: string) => Promise<string>;
|
5
5
|
export declare const setViewFocusScenePath: (view: View, focusScenePath: string) => View | undefined;
|
@@ -13,6 +13,7 @@ export declare const addEmitterOnceListener: (event: any, listener: any) => void
|
|
13
13
|
export declare const notifyMainViewModeChange: import("lodash").DebouncedFunc<(callbacks: Emittery<PublicEvent>, mode: ViewVisionMode) => void>;
|
14
14
|
export declare const makeValidScenePath: (displayer: Displayer, scenePath: string, index?: number) => string | undefined;
|
15
15
|
export declare const entireScenes: (displayer: Displayer) => import("white-web-sdk").SceneMap;
|
16
|
+
export declare const putScenes: (room: Room | undefined, path: string, scenes: SceneDefinition[]) => void | undefined;
|
16
17
|
export declare const isValidScenePath: (scenePath: string) => boolean;
|
17
18
|
export declare const parseSceneDir: (scenePath: string) => string;
|
18
19
|
export declare const ensureValidScenePath: (scenePath: string) => string;
|
package/dist/constants.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
@@ -135,6 +135,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
135
135
|
* 创建一个 app 至白板
|
136
136
|
*/
|
137
137
|
addApp<T = any>(params: AddAppParams<T>): Promise<string | undefined>;
|
138
|
+
private _addApp;
|
138
139
|
private setupScenePath;
|
139
140
|
/**
|
140
141
|
* 设置 mainView 的 ScenePath, 并且切换白板为可写状态
|