@netless/window-manager 0.4.0-canary.22 → 0.4.0-canary.26
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/dist/AppManager.d.ts +3 -0
- package/dist/AppProxy.d.ts +1 -3
- package/dist/constants.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +3 -3
- 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/api.md +2 -0
- package/package.json +1 -1
- package/src/AppManager.ts +39 -5
- package/src/AppProxy.ts +5 -14
- package/src/Cursor/index.ts +1 -0
- package/src/Utils/Common.ts +3 -1
- package/src/constants.ts +2 -0
- package/src/index.ts +11 -11
package/dist/AppManager.d.ts
CHANGED
@@ -17,10 +17,12 @@ export declare class AppManager {
|
|
17
17
|
mainViewProxy: MainViewProxy;
|
18
18
|
refresher?: ReconnectRefresher;
|
19
19
|
isReplay: boolean;
|
20
|
+
mainViewScenesLength: number;
|
20
21
|
private appListeners;
|
21
22
|
boxManager?: BoxManager;
|
22
23
|
private _prevSceneIndex;
|
23
24
|
private _prevFocused;
|
25
|
+
private callbacksNode;
|
24
26
|
constructor(windowManger: WindowManager);
|
25
27
|
private get eventName();
|
26
28
|
get attributes(): import("./index").WindowMangerAttributes;
|
@@ -29,6 +31,7 @@ export declare class AppManager {
|
|
29
31
|
get mainView(): import("white-web-sdk").View;
|
30
32
|
get focusApp(): AppProxy | undefined;
|
31
33
|
get uid(): string;
|
34
|
+
getMainViewSceneDir(): string;
|
32
35
|
private onCreated;
|
33
36
|
/**
|
34
37
|
* 插件更新 attributes 时的回调
|
package/dist/AppProxy.d.ts
CHANGED
@@ -7,6 +7,7 @@ import type { ReadonlyTeleBox } from "@netless/telebox-insider";
|
|
7
7
|
export declare class AppProxy {
|
8
8
|
private params;
|
9
9
|
private manager;
|
10
|
+
kind: string;
|
10
11
|
id: string;
|
11
12
|
scenePath?: string;
|
12
13
|
appEmitter: Emittery<AppEmitterEvent>;
|
@@ -16,7 +17,6 @@ export declare class AppProxy {
|
|
16
17
|
private appProxies;
|
17
18
|
private viewManager;
|
18
19
|
private store;
|
19
|
-
private kind;
|
20
20
|
isAddApp: boolean;
|
21
21
|
private status;
|
22
22
|
private stateKey;
|
@@ -35,9 +35,7 @@ export declare class AppProxy {
|
|
35
35
|
appId: string;
|
36
36
|
app: NetlessApp;
|
37
37
|
}>;
|
38
|
-
private focusApp;
|
39
38
|
get box(): ReadonlyTeleBox | undefined;
|
40
|
-
focusBox(): void;
|
41
39
|
private setupApp;
|
42
40
|
private fixMobileSize;
|
43
41
|
private afterSetupApp;
|
package/dist/constants.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
@@ -112,6 +112,7 @@ export declare type PublicEvent = {
|
|
112
112
|
mainViewScenePathChange: string;
|
113
113
|
mainViewSceneIndexChange: number;
|
114
114
|
focusedChange: string | undefined;
|
115
|
+
mainViewScenesLengthChange: number;
|
115
116
|
};
|
116
117
|
export declare type MountParams = {
|
117
118
|
room: Room;
|
@@ -213,6 +214,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
213
214
|
get mainViewSceneIndex(): number;
|
214
215
|
get mainViewSceneDir(): string;
|
215
216
|
get topApp(): string | undefined;
|
217
|
+
get mainViewScenesLength(): number;
|
216
218
|
/**
|
217
219
|
* 查询所有的 App
|
218
220
|
*/
|
@@ -245,7 +247,6 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
245
247
|
private isDynamicPPT;
|
246
248
|
private static checkVersion;
|
247
249
|
private ensureAttributes;
|
248
|
-
private _removeScenes;
|
249
250
|
}
|
250
251
|
export * from "./typings";
|
251
252
|
export { BuiltinApps } from "./BuiltinApps";
|