@netless/telebox-insider 0.2.31 → 0.2.32-beta.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netless/telebox-insider",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.32-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Window widget for Whiteboard",
|
|
6
6
|
"author": "CRIMX <straybugs@gmail.com> (https://github.com/crimx/)",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"sass": "^1.36.0",
|
|
73
73
|
"sass-loader": "^10.1.1",
|
|
74
74
|
"side-effect-manager": "0.1.5",
|
|
75
|
-
"typescript": "^
|
|
75
|
+
"typescript": "^4.9.5",
|
|
76
76
|
"value-enhancer": "^0.0.8",
|
|
77
77
|
"vite": "^2.4.4"
|
|
78
78
|
}
|
|
@@ -63,6 +63,12 @@ export class MaxTitleBar extends DefaultTitleBar {
|
|
|
63
63
|
|
|
64
64
|
public setBoxes(boxes: MaxTitleBarTeleBox[]): void {
|
|
65
65
|
this.boxes = boxes;
|
|
66
|
+
if (this.$titleBar) {
|
|
67
|
+
this.$titleBar.classList.toggle(
|
|
68
|
+
this.wrapClassName("max-titlebar-maximized"),
|
|
69
|
+
this.state === TELE_BOX_STATE.Maximized && boxes.length > 0
|
|
70
|
+
);
|
|
71
|
+
}
|
|
66
72
|
this.updateTitles();
|
|
67
73
|
}
|
|
68
74
|
|
|
@@ -71,7 +77,7 @@ export class MaxTitleBar extends DefaultTitleBar {
|
|
|
71
77
|
if (this.$titleBar) {
|
|
72
78
|
this.$titleBar.classList.toggle(
|
|
73
79
|
this.wrapClassName("max-titlebar-maximized"),
|
|
74
|
-
state === TELE_BOX_STATE.Maximized
|
|
80
|
+
state === TELE_BOX_STATE.Maximized && this.boxes.length > 0
|
|
75
81
|
);
|
|
76
82
|
}
|
|
77
83
|
this.updateTitles();
|
|
@@ -113,7 +119,7 @@ export class MaxTitleBar extends DefaultTitleBar {
|
|
|
113
119
|
$titleBar.classList.add(this.wrapClassName("max-titlebar"));
|
|
114
120
|
$titleBar.classList.toggle(
|
|
115
121
|
this.wrapClassName("max-titlebar-maximized"),
|
|
116
|
-
this.state === TELE_BOX_STATE.Maximized
|
|
122
|
+
this.state === TELE_BOX_STATE.Maximized && this.boxes.length > 0
|
|
117
123
|
);
|
|
118
124
|
$titleBar.classList.toggle(
|
|
119
125
|
this.wrapClassName("readonly"),
|