fcr-ui-scene 3.8.0-alpha → 3.8.1-alpha

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.
Files changed (237) hide show
  1. package/lib/base.js +2 -2
  2. package/lib/electron/bootstrap-sdk.js +6 -6
  3. package/lib/electron/exit-codes.js +11 -11
  4. package/lib/electron/hang-detection/manager.js +4 -4
  5. package/lib/electron/ipc-protocol.js +12 -12
  6. package/lib/electron/process-manager/event-manager.js +30 -30
  7. package/lib/electron/process-manager/index.js +88 -88
  8. package/lib/electron/process-manager/state-manager.js +57 -57
  9. package/lib/electron/process-manager/types.js +16 -16
  10. package/lib/electron/sdk-helper.js +3 -3
  11. package/lib/electron/window-proxy/browser-window-proxy.js +13 -13
  12. package/lib/electron/window-proxy/main-process-handler.js +14 -14
  13. package/lib/fragments/annotation/style.css +9 -9
  14. package/lib/fragments/annotation/toolbar/components/item/style.css +45 -45
  15. package/lib/fragments/annotation/toolbar/components/panel/style.css +24 -24
  16. package/lib/fragments/annotation/toolbar/components/tips/style.css +19 -19
  17. package/lib/fragments/annotation/toolbar/style.css +55 -55
  18. package/lib/fragments/whiteboard/cursor.css +77 -77
  19. package/lib/fragments/whiteboard/store.js +1 -1
  20. package/lib/fragments/whiteboard/style.css +4 -4
  21. package/lib/global.css +62 -62
  22. package/lib/global.d.ts +27 -27
  23. package/lib/modules/action-bar/components/chat/index.css +88 -88
  24. package/lib/modules/action-bar/components/more/index.css +114 -114
  25. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.css +58 -58
  26. package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.css +56 -56
  27. package/lib/modules/action-bar/components/notification-bar/index.css +74 -74
  28. package/lib/modules/action-bar/components/participants/index.css +21 -21
  29. package/lib/modules/action-bar/components/record/index.css +39 -39
  30. package/lib/modules/action-bar/components/trigger-output-language/index.css +86 -86
  31. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +22 -22
  32. package/lib/modules/action-bar/index.css +358 -358
  33. package/lib/modules/action-bar/main-scene/view.js +3 -3
  34. package/lib/modules/audio-stream/index.js +3 -3
  35. package/lib/modules/caption/draggable-container/index.css +10 -10
  36. package/lib/modules/caption/draggable-container/index.js +34 -12
  37. package/lib/modules/caption/store.d.ts +1 -4
  38. package/lib/modules/caption/store.js +10 -18
  39. package/lib/modules/caption/view.css +158 -158
  40. package/lib/modules/caption/view.js +16 -27
  41. package/lib/modules/chat/components/chat-bar/index.css +89 -89
  42. package/lib/modules/chat/components/chat-select/index.css +185 -185
  43. package/lib/modules/chat/index.css +124 -124
  44. package/lib/modules/chat/store.d.ts +1 -0
  45. package/lib/modules/chat/store.js +2 -2
  46. package/lib/modules/components/apps/app-item/index.css +49 -49
  47. package/lib/modules/components/apps/index.css +9 -9
  48. package/lib/modules/components/caption-menu/index.css +58 -58
  49. package/lib/modules/components/caption-menu/index.d.ts +2 -0
  50. package/lib/modules/components/caption-menu/index.js +13 -10
  51. package/lib/modules/components/caption-menu/participants-privilege-control-options.js +5 -19
  52. package/lib/modules/components/caption-menu/steps/index.css +73 -73
  53. package/lib/modules/components/caption-menu/translation-setting-options.js +31 -24
  54. package/lib/modules/components/control-bar/components/loading/index.css +76 -76
  55. package/lib/modules/components/control-bar/components/progress/style.css +51 -51
  56. package/lib/modules/components/control-bar/components/switch-theme/index.css +101 -101
  57. package/lib/modules/components/control-bar/index.css +99 -99
  58. package/lib/modules/components/device-control/index.css +177 -177
  59. package/lib/modules/components/leave-meeting/components/index.css +151 -151
  60. package/lib/modules/components/leave-meeting/style.css +9 -9
  61. package/lib/modules/components/member-window/components/member-actions/store.js +22 -22
  62. package/lib/modules/components/member-window/index.css +502 -502
  63. package/lib/modules/components/security-menu/index.css +42 -42
  64. package/lib/modules/components/tab-frame/index.css +40 -40
  65. package/lib/modules/components/toolbar/components/item/style.css +94 -94
  66. package/lib/modules/components/toolbar/components/panel/style.css +86 -86
  67. package/lib/modules/components/toolbar/style.css +85 -85
  68. package/lib/modules/connection-gateway/components/computer/index.css +12 -12
  69. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +36 -36
  70. package/lib/modules/connection-gateway/components/phone/components/calling/index.css +72 -72
  71. package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +10 -10
  72. package/lib/modules/connection-gateway/components/phone/components/useing/index.css +46 -46
  73. package/lib/modules/connection-gateway/components/phone/index.css +49 -49
  74. package/lib/modules/connection-gateway/index.css +6 -6
  75. package/lib/modules/control-bar/components/carmera/index.js +7 -39
  76. package/lib/modules/control-bar/components/cloud-recording-buttons.js +18 -33
  77. package/lib/modules/control-bar/components/meeting-details/index.css +133 -133
  78. package/lib/modules/control-bar/components/microphone/index.js +3 -43
  79. package/lib/modules/control-bar/components/more-actions/index.css +103 -103
  80. package/lib/modules/control-bar/components/share-audio/index.css +90 -90
  81. package/lib/modules/control-bar/components/share-audio/index.d.ts +2 -0
  82. package/lib/modules/control-bar/components/share-audio/index.js +4 -10
  83. package/lib/modules/control-bar/components/share-state-nav/index.css +79 -79
  84. package/lib/modules/control-bar/hooks.d.ts +1 -0
  85. package/lib/modules/control-bar/hooks.js +140 -1
  86. package/lib/modules/control-bar/index.css +340 -340
  87. package/lib/modules/control-bar/index.js +4 -4
  88. package/lib/modules/control-bar/store.d.ts +3 -4
  89. package/lib/modules/control-bar/store.js +37 -30
  90. package/lib/modules/control-bar/type.d.ts +3 -0
  91. package/lib/modules/control-bar/view.js +40 -57
  92. package/lib/modules/device-pretest/index.css +123 -123
  93. package/lib/modules/dialog/components/confirm/index.css +24 -24
  94. package/lib/modules/dialog/components/confirm/index.js +0 -1
  95. package/lib/modules/dialog/components/dialog-container/index.css +112 -112
  96. package/lib/modules/dialog/components/dialog-container/index.js +1 -0
  97. package/lib/modules/dialog/dialogs/confirm/index.css +24 -24
  98. package/lib/modules/dialog/dialogs/device-setting/index.css +26 -26
  99. package/lib/modules/dialog/dialogs/interpreter/index.css +30 -30
  100. package/lib/modules/dialog/dialogs/mute-all/index.css +20 -20
  101. package/lib/modules/dialog/dialogs/system-preference/index.css +52 -52
  102. package/lib/modules/dialog/dialogs/widget/index.js +4 -4
  103. package/lib/modules/dialog/index.css +56 -56
  104. package/lib/modules/event-toast/index.css +25 -25
  105. package/lib/modules/event-toast/index.js +7 -1
  106. package/lib/modules/interpreter/action/add-btn/index.css +4 -4
  107. package/lib/modules/interpreter/action/delete-btn/index.css +14 -14
  108. package/lib/modules/interpreter/action/switch-btn/index.css +3 -3
  109. package/lib/modules/interpreter/dialog-content/index.css +33 -33
  110. package/lib/modules/interpreter/footer/index.css +11 -11
  111. package/lib/modules/interpreter/index.css +4 -4
  112. package/lib/modules/interpreter/interpreter-list/index.css +8 -8
  113. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +46 -46
  114. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +46 -46
  115. package/lib/modules/interpreter/interpreter-list/interpreter-item/index.css +32 -32
  116. package/lib/modules/interpreter/loading-wrapper/index.css +53 -53
  117. package/lib/modules/invite/components/voip-invite.css +26 -26
  118. package/lib/modules/invite/index.css +331 -331
  119. package/lib/modules/layout/components/CommonVideoRenderer.js +4 -4
  120. package/lib/modules/layout/components/index.css +653 -653
  121. package/lib/modules/layout/index.css +59 -59
  122. package/lib/modules/layout/store.base.d.ts +1 -1
  123. package/lib/modules/layout/store.base.js +5 -5
  124. package/lib/modules/layout/store.electron.d.ts +0 -1
  125. package/lib/modules/layout/store.electron.js +37 -133
  126. package/lib/modules/layout/type.js +5 -5
  127. package/lib/modules/notification/index.css +77 -77
  128. package/lib/modules/notification/interpreter-status/index.css +76 -76
  129. package/lib/modules/participant/components/confirm-input/index.css +4 -4
  130. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +83 -83
  131. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +87 -87
  132. package/lib/modules/participant/index.css +102 -102
  133. package/lib/modules/participant/store.base.js +183 -185
  134. package/lib/modules/pc-audio-connect/index.css +12 -12
  135. package/lib/modules/phone-audio-connect/components/callinfo/index.css +36 -36
  136. package/lib/modules/phone-audio-connect/components/calling/index.css +72 -72
  137. package/lib/modules/phone-audio-connect/components/remeber/index.css +10 -10
  138. package/lib/modules/phone-audio-connect/components/useing/index.css +46 -46
  139. package/lib/modules/phone-audio-connect/index.css +56 -56
  140. package/lib/modules/secondary-window/store.js +8 -10
  141. package/lib/modules/setting/audio-settings/index.css +195 -195
  142. package/lib/modules/setting/audio-whiteList/audio-device-adaptation.d.ts +28 -0
  143. package/lib/modules/setting/audio-whiteList/audio-device-adaptation.js +43 -7
  144. package/lib/modules/setting/audio-whiteList/audio-whiteList-manager.d.ts +3 -14
  145. package/lib/modules/setting/audio-whiteList/audio-whiteList-manager.js +51 -30
  146. package/lib/modules/setting/caption_and_transcribing/index.css +88 -88
  147. package/lib/modules/setting/general-settings/index.css +41 -41
  148. package/lib/modules/setting/index.css +112 -112
  149. package/lib/modules/setting/index.js +4 -2
  150. package/lib/modules/setting/minutes-settings/index.css +65 -65
  151. package/lib/modules/setting/state/index.css +207 -207
  152. package/lib/modules/setting/storage-settings/index.css +91 -91
  153. package/lib/modules/setting/store.base.d.ts +5 -3
  154. package/lib/modules/setting/store.base.js +64 -43
  155. package/lib/modules/setting/store.electron.d.ts +1 -1
  156. package/lib/modules/setting/store.electron.js +3 -7
  157. package/lib/modules/setting/translate-settings/index.css +47 -47
  158. package/lib/modules/setting/video-settings/index.css +357 -357
  159. package/lib/modules/setting/view.js +3 -2
  160. package/lib/modules/share-screen/components/control-bar/index.css +75 -75
  161. package/lib/modules/share-screen/components/selection/index.css +73 -73
  162. package/lib/modules/share-screen/components/share-state-bar/index.css +76 -76
  163. package/lib/modules/share-screen/index.js +10 -10
  164. package/lib/modules/share-screen/store.base.js +2 -2
  165. package/lib/modules/share-screen/store.electron.js +51 -23
  166. package/lib/modules/state-bar/assets/fcr_grid_big.svg +3 -3
  167. package/lib/modules/state-bar/assets/fcr_listontop_big.svg +3 -3
  168. package/lib/modules/state-bar/index.css +706 -706
  169. package/lib/modules/state-bar/main-scene/store.base.js +2 -2
  170. package/lib/modules/state-bar/meeting-detail.css +137 -137
  171. package/lib/modules/state-bar/meeting-network-state.css +150 -150
  172. package/lib/modules/state-bar/waiting-scene/store.base.js +2 -2
  173. package/lib/modules/subtitles-history/components/list-item.js +4 -7
  174. package/lib/modules/subtitles-history/components/settings/index.css +5 -5
  175. package/lib/modules/subtitles-history/index.css +129 -129
  176. package/lib/modules/subtitles-history/store.base.d.ts +3 -1
  177. package/lib/modules/subtitles-history/store.base.js +11 -1
  178. package/lib/modules/video-window/components/members/index.css +51 -51
  179. package/lib/modules/video-window/components/speaking/index.css +86 -86
  180. package/lib/modules/video-window/components/topControl/index.css +35 -35
  181. package/lib/modules/video-window/index.css +21 -21
  182. package/lib/modules/video-window/popover-watcher.js +3 -3
  183. package/lib/modules/video-window/store.js +10 -10
  184. package/lib/modules/waiting-room-layout/index.css +96 -96
  185. package/lib/modules/whiteboard/components/control-bar/index.css +52 -52
  186. package/lib/modules/whiteboard/components/loading/index.css +76 -76
  187. package/lib/modules/whiteboard/components/multi-window/index.css +63 -63
  188. package/lib/modules/whiteboard/components/pagination/index.css +228 -228
  189. package/lib/modules/whiteboard/components/progress/style.css +51 -51
  190. package/lib/modules/whiteboard/components/switch-theme/index.css +99 -99
  191. package/lib/modules/whiteboard/components/toolbar/style.css +591 -591
  192. package/lib/modules/whiteboard/style.css +140 -140
  193. package/lib/modules/widget/index.css +9 -9
  194. package/lib/object-manager.js +8 -8
  195. package/lib/plugins/module-dev-plugin.js +11 -11
  196. package/lib/providers/ability-provider.js +17 -17
  197. package/lib/providers/board-share/struct.js +6 -6
  198. package/lib/providers/dialog/provider.base.js +2 -2
  199. package/lib/providers/dialog/type.js +3 -3
  200. package/lib/providers/multi-display-provider.js +4 -4
  201. package/lib/providers/privilege-provider.js +7 -7
  202. package/lib/providers/screen-share/provider.base.d.ts +2 -13
  203. package/lib/providers/screen-share/provider.base.js +28 -35
  204. package/lib/providers/screen-share/provider.electron.d.ts +0 -5
  205. package/lib/providers/screen-share/provider.electron.js +31 -18
  206. package/lib/providers/screen-share/stream-state-sync.js +18 -18
  207. package/lib/providers/screen-share/struct.js +24 -24
  208. package/lib/providers/screen-share/type.d.ts +0 -16
  209. package/lib/providers/stt-provider/stt-provider.d.ts +3 -4
  210. package/lib/providers/stt-provider/stt-provider.js +145 -146
  211. package/lib/providers/stt-provider/type.d.ts +2 -10
  212. package/lib/providers/stt-provider/type.js +3 -3
  213. package/lib/providers/window/main-window.js +2 -2
  214. package/lib/providers/window/provider.js +5 -5
  215. package/lib/providers/window/renderer-window.js +2 -2
  216. package/lib/schema.js +26 -26
  217. package/lib/shared-data/meeting-time.js +8 -8
  218. package/lib/shared-data/setting.js +3 -3
  219. package/lib/translations/enUS.d.ts +12 -1
  220. package/lib/translations/enUS.js +22 -19
  221. package/lib/translations/zhCN.d.ts +12 -1
  222. package/lib/translations/zhCN.js +20 -17
  223. package/lib/type.js +21 -21
  224. package/lib/ui-scene-switch.js +2 -2
  225. package/lib/utilities/constant.js +6 -6
  226. package/lib/utilities/renderer.js +8 -8
  227. package/lib/utilities/shared-storage.js +2 -2
  228. package/lib/utilities/tools.js +14 -14
  229. package/package.json +78 -79
  230. package/public/assets/fcr_chat_reddot.svg +5 -5
  231. package/public/assets/fcr_grid_big.svg +3 -3
  232. package/public/assets/fcr_leave2.svg +58 -58
  233. package/public/assets/fcr_listontop_big.svg +3 -3
  234. package/public/assets/step-gradient.svg +10 -10
  235. package/public/fragment.html +10 -10
  236. package/public/index.html +183 -183
  237. package/public/meeting-manager.js +405 -405
@@ -1,59 +1,59 @@
1
- .layout-demo {
2
- padding: 50px;
3
- }
4
-
5
- .layout-demo__meta {
6
- padding: 0 10px 10px;
7
- font-family: monospace;
8
- font-size: 1rem;
9
- }
10
-
11
- .layout-demo__frame {
12
- position: relative;
13
- border: 1px solid rgba(127, 127, 127, 0.2);
14
- height: 60vh;
15
- }
16
-
17
- .layout-demo__controls {
18
- padding-top: 20px;
19
- display: flex;
20
- flex-flow: row wrap;
21
- gap: 10px;
22
- }
23
-
24
- .fcr-layer {
25
- position: absolute;
26
- z-index: 1000;
27
- height: 0;
28
- }
29
-
30
- .login-confirm-dialog-content {
31
- display: flex;
32
- align-items: center;
33
- justify-content: center;
34
- flex-direction: column;
35
- padding: 20px;
36
- }
37
-
38
- .login-confirm-dialog-content img {
39
- margin-top: -36px;
40
- margin-bottom: 24px;
41
- }
42
-
43
- .login-confirm-dialog-title {
44
- font-weight: 600;
45
- font-size: 16px;
46
- margin-bottom: 10px;
47
- }
48
-
49
- .login-confirm-dialog-desc {
50
- margin-bottom: 20px;
51
- }
52
-
53
- .login-confirm-dialog-btn {
54
- width: 100%;
55
- }
56
-
57
- .login-confirm-dialog-content .fcr-button {
58
- width: 100%;
59
- }
1
+ .layout-demo {
2
+ padding: 50px;
3
+ }
4
+
5
+ .layout-demo__meta {
6
+ padding: 0 10px 10px;
7
+ font-family: monospace;
8
+ font-size: 1rem;
9
+ }
10
+
11
+ .layout-demo__frame {
12
+ position: relative;
13
+ border: 1px solid rgba(127, 127, 127, 0.2);
14
+ height: 60vh;
15
+ }
16
+
17
+ .layout-demo__controls {
18
+ padding-top: 20px;
19
+ display: flex;
20
+ flex-flow: row wrap;
21
+ gap: 10px;
22
+ }
23
+
24
+ .fcr-layer {
25
+ position: absolute;
26
+ z-index: 1000;
27
+ height: 0;
28
+ }
29
+
30
+ .login-confirm-dialog-content {
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ flex-direction: column;
35
+ padding: 20px;
36
+ }
37
+
38
+ .login-confirm-dialog-content img {
39
+ margin-top: -36px;
40
+ margin-bottom: 24px;
41
+ }
42
+
43
+ .login-confirm-dialog-title {
44
+ font-weight: 600;
45
+ font-size: 16px;
46
+ margin-bottom: 10px;
47
+ }
48
+
49
+ .login-confirm-dialog-desc {
50
+ margin-bottom: 20px;
51
+ }
52
+
53
+ .login-confirm-dialog-btn {
54
+ width: 100%;
55
+ }
56
+
57
+ .login-confirm-dialog-content .fcr-button {
58
+ width: 100%;
59
+ }
@@ -9,7 +9,7 @@ import { FcrUIManagedObject } from '../../object-manager';
9
9
  import { FcrUIDisplayDistributionContentType, SharingType } from '../secondary-window/type';
10
10
  import { FcrUIDialogProvider } from '../../providers/dialog/type';
11
11
  export declare abstract class LayoutStoreBase implements FcrLayoutSlots, FcrUIEventObserver, FcrUIManagedObject {
12
- protected readonly logger: import("agora-foundation/lib/logger").Logger;
12
+ private readonly logger;
13
13
  private _videoWindowDataSource;
14
14
  protected _eventProvider: FcrUIEventProvider;
15
15
  private _messageProvider;
@@ -794,9 +794,9 @@ var LayoutStoreBase = exports.LayoutStoreBase = /*#__PURE__*/function () {
794
794
  !this.aside && this.toggleAside(true);
795
795
  this.asideWidth = val;
796
796
  }
797
- /**
798
- * Partially update slots, use `null` to delete the slot.
799
- * `undefined` is ignored.
797
+ /**
798
+ * Partially update slots, use `null` to delete the slot.
799
+ * `undefined` is ignored.
800
800
  */
801
801
  }, {
802
802
  key: "updateSlots",
@@ -1054,8 +1054,8 @@ var LayoutStoreBase = exports.LayoutStoreBase = /*#__PURE__*/function () {
1054
1054
  }
1055
1055
  }
1056
1056
 
1057
- /**
1058
- * Initialize the store, must be called in the sub class construction
1057
+ /**
1058
+ * Initialize the store, must be called in the sub class construction
1059
1059
  */
1060
1060
  }, {
1061
1061
  key: "_initialize",
@@ -5,7 +5,6 @@ export default class LayoutStoreElectron extends LayoutStoreBase {
5
5
  private _screenShareProvider;
6
6
  private _windowProvider;
7
7
  private _mainWindow;
8
- private _renderer;
9
8
  get isSharingScreen(): boolean;
10
9
  get shareScreenOwnerId(): string;
11
10
  get secondaryWindowContentType(): "speaker" | "gallery" | "hidden" | "local-camera" | "remote-camera" | "sharing-screen" | "sharing-screen-with-annotation" | "sharing-whiteboard";
@@ -15,6 +15,7 @@ require("core-js/modules/es.number.constructor.js");
15
15
  require("core-js/modules/es.object.create.js");
16
16
  require("core-js/modules/es.object.define-property.js");
17
17
  require("core-js/modules/es.object.get-own-property-descriptor.js");
18
+ require("core-js/modules/es.object.to-string.js");
18
19
  require("core-js/modules/es.reflect.construct.js");
19
20
  require("core-js/modules/es.string.iterator.js");
20
21
  require("core-js/modules/esnext.function.metadata.js");
@@ -40,17 +41,8 @@ Object.defineProperty(exports, "__esModule", {
40
41
  value: true
41
42
  });
42
43
  exports["default"] = void 0;
43
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
44
- require("core-js/modules/es.array.concat.js");
45
- require("core-js/modules/es.array.find.js");
46
44
  require("core-js/modules/es.array.push.js");
47
- require("core-js/modules/es.date.to-json.js");
48
- require("core-js/modules/es.json.stringify.js");
49
- require("core-js/modules/es.object.to-string.js");
50
- require("core-js/modules/esnext.iterator.constructor.js");
51
- require("core-js/modules/esnext.iterator.find.js");
52
45
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
53
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
54
46
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
55
47
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
56
48
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
@@ -64,7 +56,7 @@ var _store = require("./store.base");
64
56
  var _type = require("./type");
65
57
  var _constant = require("../../utilities/constant");
66
58
  var _videoWindow = require("../dialog/dialogs/video-window");
67
- var _type2 = require("fcr-core/lib/type");
59
+ var _lodash = require("lodash");
68
60
  var _LayoutStoreElectron;
69
61
  var _initProto;
70
62
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
@@ -89,137 +81,49 @@ var LayoutStoreElectron = exports["default"] = /*#__PURE__*/function (_LayoutSto
89
81
  _this._screenShareProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_SCREEN_SHARE_PROVIDER);
90
82
  _this._windowProvider = windowProvider;
91
83
  _this._mainWindow = windowProvider.getCurrentWindow();
92
- _this._renderer = objectManager.getObject(_objectManager.FcrUIObjectKeys.RENDERER_WRAPPER);
93
84
  _superPropGet((_this, LayoutStoreElectron), "_initialize", _this, 3)([]);
94
85
 
95
86
  // 进入房间后,如果双屏模式处于激活状态,则需要设置主窗口为窗口最大化
96
87
  if (_this._multiDisplayProvider.isActive) {
97
88
  _this._multiDisplayProvider.setMainWindowMaximize();
98
89
  }
90
+ var handleMultiDisplayActiveChange = (0, _lodash.debounce)(function (isActive) {
91
+ var _this$_multiDisplayPr = _this._multiDisplayProvider.displayState,
92
+ sharingBySelf = _this$_multiDisplayPr.sharingBySelf,
93
+ isSharingScreen = _this$_multiDisplayPr.isSharingScreen;
94
+ if (isActive) {
95
+ // 多屏模式激活时,需要设置主窗口为窗口最大化
96
+ // 如果自己正在共享屏幕,则关闭 vidoe window 悬浮窗、显示主窗口
97
+ if (sharingBySelf && isSharingScreen) {
98
+ _this._dialogProvider.closeDialog(_constant.FcrUIDialogKey.VIDEO_WINDOW);
99
+ _this._multiDisplayProvider.showMainWindowInIndexLeastDisplay({
100
+ isMaximized: true
101
+ });
102
+ } else {
103
+ _this._multiDisplayProvider.setMainWindowMaximize();
104
+ }
105
+ return;
106
+ }
107
+
108
+ // 多屏模式从激活状态转变为非激活状态时,
109
+ // 如果当前是自己在共享屏幕,则隐藏主窗口,打开 vidoe window 悬浮窗
110
+ // 如果不是自己在共享,则切换布局到演讲者模式
111
+ // 没屏幕共享时,不做操作
112
+ if (sharingBySelf && isSharingScreen) {
113
+ _this._mainWindow.hide();
114
+ _this._dialogProvider.openDialog(_constant.FcrUIDialogKey.VIDEO_WINDOW);
115
+ var workarea = _this._screenShareProvider.sharingDisplayBounds;
116
+ var videoWindow = _this._windowProvider.getWindowById(_constant.FcrUIDialogKey.VIDEO_WINDOW);
117
+ (0, _videoWindow.setVideoWindowDialogPosition)(workarea, videoWindow);
118
+ } else if (isSharingScreen) {
119
+ _this.toggleLayout(_type.FcrUIVideoWindowLayoutType.Speaker);
120
+ }
121
+ }, 100);
99
122
  _this._disposers.push((0, _mobx.reaction)(function () {
100
123
  return _this.isMultiDisplayActive;
101
- }, /*#__PURE__*/function () {
102
- var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(isActive) {
103
- var _this$_multiDisplayPr, sharingBySelf, isSharingScreen, selectionIdAndType, _selectionIdAndType, id, type, workarea, displayList, display, windowList, window, bounds, _display, videoWindow, _t, _t2;
104
- return _regenerator["default"].wrap(function (_context) {
105
- while (1) switch (_context.prev = _context.next) {
106
- case 0:
107
- _this$_multiDisplayPr = _this._multiDisplayProvider.displayState, sharingBySelf = _this$_multiDisplayPr.sharingBySelf, isSharingScreen = _this$_multiDisplayPr.isSharingScreen;
108
- if (!isActive) {
109
- _context.next = 1;
110
- break;
111
- }
112
- // 多屏模式激活时,需要设置主窗口为窗口最大化
113
- // 如果自己正在共享屏幕,则关闭 vidoe window 悬浮窗、显示主窗口
114
- if (sharingBySelf && isSharingScreen) {
115
- _this._dialogProvider.closeDialog(_constant.FcrUIDialogKey.VIDEO_WINDOW);
116
- _this._multiDisplayProvider.showMainWindowInIndexLeastDisplay({
117
- isMaximized: true
118
- });
119
- } else {
120
- _this._multiDisplayProvider.setMainWindowMaximize();
121
- }
122
- return _context.abrupt("return");
123
- case 1:
124
- if (!(sharingBySelf && isSharingScreen)) {
125
- _context.next = 16;
126
- break;
127
- }
128
- _this._mainWindow.hide();
129
- _this._dialogProvider.openDialog(_constant.FcrUIDialogKey.VIDEO_WINDOW);
130
- _context.prev = 2;
131
- selectionIdAndType = _this._screenShareProvider.selectionIdAndType;
132
- _context.next = 4;
133
- break;
134
- case 3:
135
- _context.prev = 3;
136
- _t = _context["catch"](2);
137
- _this.logger.warn("get selection id and type error, can not set video window position: ".concat(_t));
138
- return _context.abrupt("return");
139
- case 4:
140
- _selectionIdAndType = selectionIdAndType, id = _selectionIdAndType.id, type = _selectionIdAndType.type;
141
- if (!(type === _type2.FcrScreenCaptureType.SCREEN)) {
142
- _context.next = 8;
143
- break;
144
- }
145
- _context.next = 5;
146
- return _this._screenShareProvider.getDisplayList();
147
- case 5:
148
- displayList = _context.sent;
149
- display = displayList.find(function (item) {
150
- return item.id === id;
151
- });
152
- if (!display) {
153
- _context.next = 6;
154
- break;
155
- }
156
- workarea = display.bounds;
157
- _context.next = 7;
158
- break;
159
- case 6:
160
- _this.logger.warn("can not find display info for shared screen id: ".concat(id));
161
- return _context.abrupt("return");
162
- case 7:
163
- _context.next = 15;
164
- break;
165
- case 8:
166
- _context.next = 9;
167
- return _this._screenShareProvider.getWindowList();
168
- case 9:
169
- windowList = _context.sent;
170
- window = windowList.find(function (item) {
171
- return item.id === id;
172
- });
173
- if (!window) {
174
- _context.next = 10;
175
- break;
176
- }
177
- bounds = window.bounds;
178
- _context.next = 13;
179
- break;
180
- case 10:
181
- _this.logger.warn("can not find window info for shared window id: ".concat(id));
182
-
183
- // 共享的窗口被隐藏时,尝试使用 selectionBounds 作为位置依据
184
- _context.prev = 11;
185
- bounds = _this._screenShareProvider.selectionBounds;
186
- _context.next = 13;
187
- break;
188
- case 12:
189
- _context.prev = 12;
190
- _t2 = _context["catch"](11);
191
- _this.logger.warn("get selection bounds error, can not set video window position: ".concat(_t2));
192
- return _context.abrupt("return");
193
- case 13:
194
- _display = _this._renderer.getDisplayMatching(bounds);
195
- if (_display) {
196
- _context.next = 14;
197
- break;
198
- }
199
- _this.logger.warn("can not find display for shared window id: ".concat(id, ", bounds: ").concat(JSON.stringify(bounds)));
200
- return _context.abrupt("return");
201
- case 14:
202
- workarea = _display.bounds;
203
- case 15:
204
- videoWindow = _this._windowProvider.getWindowById(_constant.FcrUIDialogKey.VIDEO_WINDOW);
205
- (0, _videoWindow.setVideoWindowDialogPosition)(workarea, videoWindow);
206
- _this.logger.info("set video window position while multi display mode off, workarea: ".concat(JSON.stringify(workarea)));
207
- _context.next = 17;
208
- break;
209
- case 16:
210
- if (isSharingScreen) {
211
- _this.toggleLayout(_type.FcrUIVideoWindowLayoutType.Speaker);
212
- }
213
- case 17:
214
- case "end":
215
- return _context.stop();
216
- }
217
- }, _callee, null, [[2, 3], [11, 12]]);
218
- }));
219
- return function (_x) {
220
- return _ref2.apply(this, arguments);
221
- };
222
- }()));
124
+ }, function (isActive) {
125
+ handleMultiDisplayActiveChange(isActive);
126
+ }));
223
127
  return _this;
224
128
  }
225
129
  (0, _inherits2["default"])(LayoutStoreElectron, _LayoutStoreBase);
@@ -53,13 +53,13 @@ var FcrUIWindowType = exports.FcrUIWindowType = /*#__PURE__*/function (FcrUIWind
53
53
  return FcrUIWindowType;
54
54
  }({});
55
55
  var FcrUILayoutType = exports.FcrUILayoutType = /*#__PURE__*/function (FcrUILayoutType) {
56
- /**
57
- * 上下布局时,顶部的小窗口类型
56
+ /**
57
+ * 上下布局时,顶部的小窗口类型
58
58
  */
59
59
  FcrUILayoutType["CAROUSEL"] = "carousel";
60
- /**
61
- * 1. 上下布局时,底部的大窗口类型
62
- * 2. 网格布局时的窗口类型
60
+ /**
61
+ * 1. 上下布局时,底部的大窗口类型
62
+ * 2. 网格布局时的窗口类型
63
63
  */
64
64
  FcrUILayoutType["GALLERY"] = "gallery";
65
65
  return FcrUILayoutType;
@@ -1,77 +1,77 @@
1
- .waiting-room-confirm-dialog {
2
- background-color: white;
3
- border-radius: 10px;
4
- position: relative;
5
- z-index: 9999;
6
- padding: 13px 0 0 10px;
7
- }
8
-
9
- .waiting-room-confirm-dialog .fcr-dialog-body {
10
- padding: 20px;
11
- }
12
-
13
- .waiting-room-confirm-dialog-content {
14
- display: flex;
15
- align-items: center;
16
- }
17
-
18
- .fcr-notification-root .fcr-notification {
19
- position: absolute;
20
- top: 40px;
21
- z-index: 999;
22
- height: calc(100vh - 40px);
23
- }
24
-
25
- .fcr-notification-notice-wrapper {
26
- border-radius: 10px;
27
- left: 10px;
28
- }
29
-
30
- .waiting-room-confirm-dialog-content-icon {
31
- background-color: #a19fff;
32
- width: 48px;
33
- height: 48px;
34
- border-radius: 50px;
35
- margin-right: 10px;
36
- }
37
-
38
- .waiting-room-confirm-dialog-content-title {
39
- font-size: 14px;
40
- margin-bottom: 5px;
41
- }
42
-
43
- .waiting-room-confirm-dialog-content-desc {
44
- font-size: 13px;
45
- color: var(--fcr_ui_scene_icontext2);
46
- }
47
-
48
- .waiting-room-confirm-dialog-btns {
49
- display: flex;
50
- justify-content: flex-end;
51
- align-items: center;
52
- margin-top: 10px;
53
- }
54
-
55
- .waiting-room-left-btn {
56
- color: var(--fcr_ui_scene_icontext2);
57
- margin-right: 15px;
58
- font-size: 12px;
59
- cursor: pointer;
60
- }
61
-
62
- .fcr-notification_bottom {
63
- left: 50%;
64
- transform: translateX(-50%);
65
- bottom: 0;
66
- }
67
- .fcr-notification_bottom .fcr-notification-notice-wrapper {
68
- transform: translate3d(0px, 0px, 0px) !important;
69
- top: unset;
70
- bottom: 59px;
71
- background-color: transparent;
72
- box-shadow: none;
73
- }
74
- .fcr-notification_bottom .fcr-notification-notice-content {
75
- padding: 0;
76
- text-align: center;
77
- }
1
+ .waiting-room-confirm-dialog {
2
+ background-color: white;
3
+ border-radius: 10px;
4
+ position: relative;
5
+ z-index: 9999;
6
+ padding: 13px 0 0 10px;
7
+ }
8
+
9
+ .waiting-room-confirm-dialog .fcr-dialog-body {
10
+ padding: 20px;
11
+ }
12
+
13
+ .waiting-room-confirm-dialog-content {
14
+ display: flex;
15
+ align-items: center;
16
+ }
17
+
18
+ .fcr-notification-root .fcr-notification {
19
+ position: absolute;
20
+ top: 40px;
21
+ z-index: 999;
22
+ height: calc(100vh - 40px);
23
+ }
24
+
25
+ .fcr-notification-notice-wrapper {
26
+ border-radius: 10px;
27
+ left: 10px;
28
+ }
29
+
30
+ .waiting-room-confirm-dialog-content-icon {
31
+ background-color: #a19fff;
32
+ width: 48px;
33
+ height: 48px;
34
+ border-radius: 50px;
35
+ margin-right: 10px;
36
+ }
37
+
38
+ .waiting-room-confirm-dialog-content-title {
39
+ font-size: 14px;
40
+ margin-bottom: 5px;
41
+ }
42
+
43
+ .waiting-room-confirm-dialog-content-desc {
44
+ font-size: 13px;
45
+ color: var(--fcr_ui_scene_icontext2);
46
+ }
47
+
48
+ .waiting-room-confirm-dialog-btns {
49
+ display: flex;
50
+ justify-content: flex-end;
51
+ align-items: center;
52
+ margin-top: 10px;
53
+ }
54
+
55
+ .waiting-room-left-btn {
56
+ color: var(--fcr_ui_scene_icontext2);
57
+ margin-right: 15px;
58
+ font-size: 12px;
59
+ cursor: pointer;
60
+ }
61
+
62
+ .fcr-notification_bottom {
63
+ left: 50%;
64
+ transform: translateX(-50%);
65
+ bottom: 0;
66
+ }
67
+ .fcr-notification_bottom .fcr-notification-notice-wrapper {
68
+ transform: translate3d(0px, 0px, 0px) !important;
69
+ top: unset;
70
+ bottom: 59px;
71
+ background-color: transparent;
72
+ box-shadow: none;
73
+ }
74
+ .fcr-notification_bottom .fcr-notification-notice-content {
75
+ padding: 0;
76
+ text-align: center;
77
+ }