@netless/window-manager 1.0.7-beta.7 → 1.0.7-beta.9
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/index.d.ts +9 -1
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +75 -45
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/App/AppContext.ts +1 -0
- package/src/App/AppProxy.ts +1 -0
- package/src/AppManager.ts +22 -4
- package/src/AttributesDelegate.ts +1 -0
- package/src/BoxManager.ts +1 -0
- package/src/Cursor/index.ts +1 -0
- package/src/Utils/extendClass.ts +22 -19
- package/src/index.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -335,6 +335,7 @@ type EmitterType = Emittery<EmitterEvent>;
|
|
|
335
335
|
declare class CursorManager {
|
|
336
336
|
private manager;
|
|
337
337
|
private enableCursor;
|
|
338
|
+
static readonly kind = "CursorManager";
|
|
338
339
|
containerRect?: DOMRect;
|
|
339
340
|
wrapperRect?: DOMRect;
|
|
340
341
|
cursorInstances: Map<string, Cursor>;
|
|
@@ -433,6 +434,7 @@ type ISize = Size & {
|
|
|
433
434
|
};
|
|
434
435
|
declare class AttributesDelegate {
|
|
435
436
|
private context;
|
|
437
|
+
static readonly kind = "AttributesDelegate";
|
|
436
438
|
constructor(context: StoreContext);
|
|
437
439
|
setContext(context: StoreContext): void;
|
|
438
440
|
get attributes(): any;
|
|
@@ -551,6 +553,7 @@ type BoxManagerContext = {
|
|
|
551
553
|
declare class BoxManager {
|
|
552
554
|
private context;
|
|
553
555
|
private createTeleBoxManagerConfig?;
|
|
556
|
+
static readonly kind = "BoxManager";
|
|
554
557
|
teleBoxManager: TeleBoxManager;
|
|
555
558
|
constructor(context: BoxManagerContext, createTeleBoxManagerConfig?: CreateTeleBoxManagerConfig | undefined);
|
|
556
559
|
private get mainView();
|
|
@@ -625,6 +628,7 @@ declare class AppContext<TAttributes extends {} = any, TMagixEventPayloads = any
|
|
|
625
628
|
appId: string;
|
|
626
629
|
private appProxy;
|
|
627
630
|
private appOptions?;
|
|
631
|
+
static readonly kind = "AppContext";
|
|
628
632
|
readonly emitter: Emittery<AppEmitterEvent<TAttributes>>;
|
|
629
633
|
readonly mobxUtils: {
|
|
630
634
|
autorun: any;
|
|
@@ -698,6 +702,7 @@ type AppEmitter = Emittery<AppEmitterEvent>;
|
|
|
698
702
|
declare class AppProxy implements PageRemoveService {
|
|
699
703
|
private params;
|
|
700
704
|
private manager;
|
|
705
|
+
static readonly kind = "AppProxy";
|
|
701
706
|
kind: string;
|
|
702
707
|
id: string;
|
|
703
708
|
scenePath?: string;
|
|
@@ -847,6 +852,7 @@ declare class ReconnectRefresher {
|
|
|
847
852
|
|
|
848
853
|
declare class AppManager {
|
|
849
854
|
windowManger: WindowManager;
|
|
855
|
+
static readonly kind = "AppManager";
|
|
850
856
|
displayer: Displayer;
|
|
851
857
|
viewManager: ViewManager;
|
|
852
858
|
appProxies: Map<string, AppProxy>;
|
|
@@ -863,6 +869,8 @@ declare class AppManager {
|
|
|
863
869
|
private callbacksNode;
|
|
864
870
|
private appCreateQueue;
|
|
865
871
|
private _focusAppCreatedResolve?;
|
|
872
|
+
private _focusAppId;
|
|
873
|
+
private _resolveTimer;
|
|
866
874
|
private sideEffectManager;
|
|
867
875
|
sceneState: SceneState | null;
|
|
868
876
|
rootDirRemoving: boolean;
|
|
@@ -1267,7 +1275,7 @@ type MountParams = {
|
|
|
1267
1275
|
};
|
|
1268
1276
|
declare const reconnectRefresher: ReconnectRefresher;
|
|
1269
1277
|
declare class WindowManager extends InvisiblePlugin<WindowMangerAttributes, any> implements PageController {
|
|
1270
|
-
static kind
|
|
1278
|
+
static readonly kind = "WindowManager";
|
|
1271
1279
|
static displayer: Displayer;
|
|
1272
1280
|
static wrapper?: HTMLElement;
|
|
1273
1281
|
static sizer?: HTMLElement;
|