@netless/telebox-insider 0.3.0-beta.12 → 0.3.0-beta.14

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.12",
3
+ "version": "0.3.0-beta.14",
4
4
  "private": false,
5
5
  "description": "Window widget for Whiteboard",
6
6
  "author": "CRIMX <straybugs@gmail.com> (https://github.com/crimx/)",
@@ -15,6 +15,7 @@ export interface TeleBoxCollectorConfig {
15
15
  }
16
16
 
17
17
  export class TeleBoxCollector {
18
+ static readonly kind = "TeleBoxCollector";
18
19
  public getBoxesStatus?: () => Map<string, TeleBoxState>;
19
20
  public constructor({
20
21
  visible = true,
@@ -48,6 +48,7 @@ type ValConfig = {
48
48
  export interface TeleBoxManager extends ValEnhancedResult<ValConfig> {}
49
49
 
50
50
  export class TeleBoxManager {
51
+ static readonly kind = "TeleBoxManager";
51
52
  protected boxesStatus$: Map<string, TeleBoxState>;
52
53
  protected lastNotMinimizedBoxesStatus$: Map<string, NotMinimizedBoxState>;
53
54
  protected appMenu: AppMenu | undefined;
@@ -495,12 +496,12 @@ export class TeleBoxManager {
495
496
  }
496
497
 
497
498
  public get maxForceTopBox(): TeleBox | undefined {
498
- return this.boxes.reduce((maxTopBox, box) => {
499
+ return this.boxes.reduce<TeleBox | undefined>((maxTopBox, box) => {
499
500
  if (box.forceTop && box.zIndex > (maxTopBox?.zIndex ?? 0)) {
500
501
  return box;
501
502
  }
502
503
  return maxTopBox;
503
- });
504
+ }, undefined);
504
505
  }
505
506
 
506
507
  public get forceNormalBoxes(): TeleBox | undefined {