@netless/window-manager 1.0.7-beta.6 → 1.0.7-beta.8
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 +22 -1
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +215 -65
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/App/AppContext.ts +1 -0
- package/src/App/AppProxy.ts +23 -3
- package/src/AppManager.ts +4 -0
- package/src/AttributesDelegate.ts +9 -1
- package/src/BoxManager.ts +10 -0
- package/src/Cursor/index.ts +1 -0
- package/src/Utils/extendClass.ts +23 -19
- package/src/index.ts +25 -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;
|
|
@@ -505,6 +507,9 @@ type CreateBoxParams = {
|
|
|
505
507
|
canOperate?: boolean;
|
|
506
508
|
smartPosition?: boolean;
|
|
507
509
|
boxStatus?: TeleBoxState;
|
|
510
|
+
forceTop?: boolean;
|
|
511
|
+
forceNormal?: boolean;
|
|
512
|
+
isDragContent?: boolean;
|
|
508
513
|
};
|
|
509
514
|
type AppId = {
|
|
510
515
|
appId: string;
|
|
@@ -548,6 +553,7 @@ type BoxManagerContext = {
|
|
|
548
553
|
declare class BoxManager {
|
|
549
554
|
private context;
|
|
550
555
|
private createTeleBoxManagerConfig?;
|
|
556
|
+
static readonly kind = "BoxManager";
|
|
551
557
|
teleBoxManager: TeleBoxManager;
|
|
552
558
|
constructor(context: BoxManagerContext, createTeleBoxManagerConfig?: CreateTeleBoxManagerConfig | undefined);
|
|
553
559
|
private get mainView();
|
|
@@ -622,6 +628,7 @@ declare class AppContext<TAttributes extends {} = any, TMagixEventPayloads = any
|
|
|
622
628
|
appId: string;
|
|
623
629
|
private appProxy;
|
|
624
630
|
private appOptions?;
|
|
631
|
+
static readonly kind = "AppContext";
|
|
625
632
|
readonly emitter: Emittery<AppEmitterEvent<TAttributes>>;
|
|
626
633
|
readonly mobxUtils: {
|
|
627
634
|
autorun: any;
|
|
@@ -695,6 +702,7 @@ type AppEmitter = Emittery<AppEmitterEvent>;
|
|
|
695
702
|
declare class AppProxy implements PageRemoveService {
|
|
696
703
|
private params;
|
|
697
704
|
private manager;
|
|
705
|
+
static readonly kind = "AppProxy";
|
|
698
706
|
kind: string;
|
|
699
707
|
id: string;
|
|
700
708
|
scenePath?: string;
|
|
@@ -844,6 +852,7 @@ declare class ReconnectRefresher {
|
|
|
844
852
|
|
|
845
853
|
declare class AppManager {
|
|
846
854
|
windowManger: WindowManager;
|
|
855
|
+
static readonly kind = "AppManager";
|
|
847
856
|
displayer: Displayer;
|
|
848
857
|
viewManager: ViewManager;
|
|
849
858
|
appProxies: Map<string, AppProxy>;
|
|
@@ -1180,6 +1189,9 @@ type AddAppParams<TAttributes = any> = {
|
|
|
1180
1189
|
src?: string;
|
|
1181
1190
|
options?: AddAppOptions;
|
|
1182
1191
|
attributes?: TAttributes;
|
|
1192
|
+
forceTop?: boolean;
|
|
1193
|
+
forceNormal?: boolean;
|
|
1194
|
+
isDragContent?: boolean;
|
|
1183
1195
|
};
|
|
1184
1196
|
type BaseInsertParams = {
|
|
1185
1197
|
kind: string;
|
|
@@ -1187,6 +1199,9 @@ type BaseInsertParams = {
|
|
|
1187
1199
|
options?: AddAppOptions;
|
|
1188
1200
|
attributes?: any;
|
|
1189
1201
|
isDynamicPPT?: boolean;
|
|
1202
|
+
forceTop?: boolean;
|
|
1203
|
+
forceNormal?: boolean;
|
|
1204
|
+
isDragContent?: boolean;
|
|
1190
1205
|
};
|
|
1191
1206
|
type AppSyncAttributes = {
|
|
1192
1207
|
kind: string;
|
|
@@ -1196,6 +1211,9 @@ type AppSyncAttributes = {
|
|
|
1196
1211
|
isDynamicPPT?: boolean;
|
|
1197
1212
|
fullPath?: string;
|
|
1198
1213
|
createdAt?: number;
|
|
1214
|
+
forceTop?: boolean;
|
|
1215
|
+
forceNormal?: boolean;
|
|
1216
|
+
isDragContent?: boolean;
|
|
1199
1217
|
};
|
|
1200
1218
|
type AppInitState = {
|
|
1201
1219
|
id: string;
|
|
@@ -1214,6 +1232,9 @@ type AppInitState = {
|
|
|
1214
1232
|
boxStatus?: TeleBoxState;
|
|
1215
1233
|
/** 上次非最小化窗口状态 */
|
|
1216
1234
|
lastNotMinimizedBoxStatus?: NotMinimizedBoxState;
|
|
1235
|
+
forceTop?: boolean;
|
|
1236
|
+
forceNormal?: boolean;
|
|
1237
|
+
isDragContent?: boolean;
|
|
1217
1238
|
};
|
|
1218
1239
|
type CursorMovePayload = {
|
|
1219
1240
|
uid: string;
|
|
@@ -1252,7 +1273,7 @@ type MountParams = {
|
|
|
1252
1273
|
};
|
|
1253
1274
|
declare const reconnectRefresher: ReconnectRefresher;
|
|
1254
1275
|
declare class WindowManager extends InvisiblePlugin<WindowMangerAttributes, any> implements PageController {
|
|
1255
|
-
static kind
|
|
1276
|
+
static readonly kind = "WindowManager";
|
|
1256
1277
|
static displayer: Displayer;
|
|
1257
1278
|
static wrapper?: HTMLElement;
|
|
1258
1279
|
static sizer?: HTMLElement;
|