@netless/telebox-insider 0.3.0-beta.6 → 0.3.0-beta.7

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.3.0-beta.6",
3
+ "version": "0.3.0-beta.7",
4
4
  "private": false,
5
5
  "description": "Window widget for Whiteboard",
6
6
  "author": "CRIMX <straybugs@gmail.com> (https://github.com/crimx/)",
@@ -69,7 +69,7 @@
69
69
  "react-dom": "^17.0.2",
70
70
  "react-refresh": "^0.8.3",
71
71
  "rimraf": "^3.0.0",
72
- "sass": "^1.36.0",
72
+ "sass": "^1.77.0",
73
73
  "sass-loader": "^10.1.1",
74
74
  "side-effect-manager": "0.1.5",
75
75
  "typescript": "^4.9.5",
@@ -1,5 +1,5 @@
1
- @import "../scss/variables.scss";
2
- @import "../scss/mixins.scss";
1
+ @use "../scss/variables" as *;
2
+ @use "../scss/mixins" as *;
3
3
 
4
4
  .#{$namespace}-box {
5
5
  position: absolute;
@@ -1,5 +1,5 @@
1
- @import "../scss/variables.scss";
2
- @import "../scss/mixins.scss";
1
+ @use "../scss/variables" as *;
2
+ @use "../scss/mixins" as *;
3
3
 
4
4
  .#{$namespace}-collector {
5
5
  @include no-user-select;
@@ -1,5 +1,5 @@
1
- @import "../../scss/variables.scss";
2
- @import "../../scss/mixins.scss";
1
+ @use "../../scss/variables" as *;
2
+ @use "../../scss/mixins" as *;
3
3
 
4
4
  $scrollbar-size: 8px;
5
5
  $scrollbar-ff-width: auto; // FF-only accepts auto, thin, none
@@ -563,11 +563,15 @@ export class TeleBoxManager {
563
563
  return this.lastNotMinimizedBoxesStatus$;
564
564
  }
565
565
 
566
- public async setBoxesStatus(boxesStatus: Map<string, TeleBoxState>, skipUpdate = false): Promise<void> {
566
+ public setBoxesStatus(boxesStatus: Map<string, TeleBoxState>, skipUpdate = false) {
567
567
  this.boxesStatus$ = boxesStatus;
568
568
  this.effectBoxesStatusChange(skipUpdate);
569
569
  }
570
570
 
571
+ public getBoxesStatus(): Map<string, TeleBoxState> {
572
+ return this.boxesStatus$;
573
+ }
574
+
571
575
  private effectBoxStatusChange(){
572
576
  if (!this.useBoxesStatus) {
573
577
  return;
@@ -1,5 +1,5 @@
1
- @import "../../scss/variables.scss";
2
- @import "../../scss/mixins.scss";
1
+ @use "../../scss/variables" as *;
2
+ @use "../../scss/mixins" as *;
3
3
 
4
4
  .#{$namespace}-titlebar {
5
5
  @include no-user-select;