@netless/telebox-insider 1.0.0-alpha.23 → 1.0.0-alpha.26

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": "1.0.0-alpha.23",
3
+ "version": "1.0.0-alpha.26",
4
4
  "private": false,
5
5
  "description": "Window widget for Whiteboard",
6
6
  "license": "MIT",
@@ -65,6 +65,7 @@ type PropsValConfig = {
65
65
  readonly: RequiredTeleBoxConfig["readonly$"];
66
66
  rootRect: RequiredTeleBoxConfig["rootRect$"];
67
67
  managerStageRect: RequiredTeleBoxConfig["managerStageRect$"];
68
+ managerStageRatio: RequiredTeleBoxConfig["managerStageRatio$"];
68
69
  defaultBoxStageStyle: RequiredTeleBoxConfig["defaultBoxStageStyle$"];
69
70
  defaultBoxBodyStyle: RequiredTeleBoxConfig["defaultBoxBodyStyle$"];
70
71
  collectorRect: RequiredTeleBoxConfig["collectorRect$"];
@@ -240,6 +241,7 @@ export class TeleBox {
240
241
  readonly: readonly$,
241
242
  rootRect: rootRect$,
242
243
  managerStageRect: managerStageRect$,
244
+ managerStageRatio: managerStageRatio$,
243
245
  defaultBoxBodyStyle: defaultBoxBodyStyle$,
244
246
  defaultBoxStageStyle: defaultBoxStageStyle$,
245
247
  collectorRect: collectorRect$,
@@ -857,6 +859,10 @@ export class TeleBox {
857
859
  this.$main = $main;
858
860
  $boxMain.appendChild($main);
859
861
 
862
+ const $quarantineOuter = document.createElement("div");
863
+ $quarantineOuter.className = this.wrapClassName("quarantine-outer");
864
+ $main.appendChild($quarantineOuter);
865
+
860
866
  const $quarantine = document.createElement("div");
861
867
  $quarantine.className = this.wrapClassName("quarantine");
862
868
  $quarantine.appendChild($body);
@@ -867,10 +873,10 @@ export class TeleBox {
867
873
  const $shadowStyle = document.createElement("style");
868
874
  $shadowStyle.textContent = shadowStyles;
869
875
  $quarantine.insertBefore($shadowStyle, $quarantine.firstChild);
870
- const shadow = $main.attachShadow({ mode: "open" });
876
+ const shadow = $quarantineOuter.attachShadow({ mode: "open" });
871
877
  shadow.appendChild($quarantine);
872
878
  } else {
873
- $main.appendChild($quarantine);
879
+ $quarantineOuter.appendChild($quarantine);
874
880
  }
875
881
 
876
882
  this._renderResizeHandlers();
@@ -39,6 +39,12 @@
39
39
  overflow: hidden;
40
40
  }
41
41
 
42
+ .#{$namespace}-quarantine-outer {
43
+ width: 100%;
44
+ height: 100%;
45
+ overflow: hidden;
46
+ }
47
+
42
48
  .#{$namespace}-resize-handle {
43
49
  @include no-user-select;
44
50
 
@@ -51,6 +51,9 @@
51
51
  display: flex;
52
52
  flex-direction: column;
53
53
 
54
+ @include v(color, box-footer-color, $titlebar-color);
55
+ @include v(background-color, box-footer-background, $titlebar-background);
56
+
54
57
  &::before {
55
58
  content: "";
56
59
  display: block;
@@ -85,4 +88,13 @@
85
88
  $manager-stage-shadow-dark
86
89
  );
87
90
  }
91
+
92
+ .#{$namespace}-footer-wrap {
93
+ @include v(color, box-footer-color-dark, $titlebar-color-dark);
94
+ @include v(
95
+ background-color,
96
+ box-footer-background-dark,
97
+ $titlebar-background-dark
98
+ );
99
+ }
88
100
  }