@netless/window-manager 0.3.5-canary.0 → 0.3.5-canary.1
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/Cursor/Cursor.d.ts +1 -0
- package/dist/Cursor/index.d.ts +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/AppManager.ts +1 -1
- package/src/Base/Context.ts +1 -1
- package/src/Cursor/Cursor.ts +4 -0
- package/src/Cursor/index.ts +2 -6
- package/src/index.ts +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@netless/window-manager",
|
3
|
-
"version": "0.3.5-canary.
|
3
|
+
"version": "0.3.5-canary.1",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/index.es.js",
|
6
6
|
"module": "dist/index.es.js",
|
@@ -56,6 +56,6 @@
|
|
56
56
|
"typescript": "^4.3.5",
|
57
57
|
"video.js": "^7.14.3",
|
58
58
|
"vite": "^2.5.3",
|
59
|
-
"white-web-sdk": "
|
59
|
+
"white-web-sdk": "2.15.6"
|
60
60
|
}
|
61
61
|
}
|
package/src/AppManager.ts
CHANGED
@@ -83,7 +83,7 @@ export class AppManager {
|
|
83
83
|
return autorun(() => {
|
84
84
|
const minimized = this.attributes.minimized;
|
85
85
|
if (this.boxManager.minimized !== minimized) {
|
86
|
-
if (minimized === true) {
|
86
|
+
if (minimized === true && this.store.focus !== undefined) {
|
87
87
|
this.store.cleanFocus();
|
88
88
|
this.boxManager.blurFocusBox();
|
89
89
|
}
|
package/src/Base/Context.ts
CHANGED
package/src/Cursor/Cursor.ts
CHANGED
@@ -181,6 +181,10 @@ export class Cursor extends Base {
|
|
181
181
|
|
182
182
|
public setMember() {
|
183
183
|
this.member = this.context.findMemberByUid(this.memberId);
|
184
|
+
this.updateComponent();
|
185
|
+
}
|
186
|
+
|
187
|
+
private updateComponent() {
|
184
188
|
this.component?.$set(omit(this.initProps(), ["x", "y"]));
|
185
189
|
}
|
186
190
|
|
package/src/Cursor/index.ts
CHANGED
@@ -187,7 +187,7 @@ export class CursorManager extends Base {
|
|
187
187
|
}
|
188
188
|
}
|
189
189
|
|
190
|
-
public
|
190
|
+
public deleteCursor(uid: string) {
|
191
191
|
this.store.cleanCursor(uid);
|
192
192
|
const cursor = this.cursorInstances.get(uid);
|
193
193
|
if (cursor) {
|
@@ -213,11 +213,7 @@ export class CursorManager extends Base {
|
|
213
213
|
}
|
214
214
|
});
|
215
215
|
needDeleteIds.forEach(uid => {
|
216
|
-
|
217
|
-
if (instance) {
|
218
|
-
instance.destroy();
|
219
|
-
}
|
220
|
-
this.store.cleanCursor(uid);
|
216
|
+
this.deleteCursor(uid);
|
221
217
|
});
|
222
218
|
}
|
223
219
|
|
package/src/index.ts
CHANGED
@@ -170,7 +170,7 @@ export class WindowManager extends InvisiblePlugin<WindowMangerAttributes> {
|
|
170
170
|
public static containerSizeRatio = DEFAULT_CONTAINER_RATIO;
|
171
171
|
private static isCreated = false;
|
172
172
|
|
173
|
-
public version = "0.3.5-canary.
|
173
|
+
public version = "0.3.5-canary.1";
|
174
174
|
|
175
175
|
public appListeners?: AppListeners;
|
176
176
|
|