fcr-ui-scene 3.2.0 → 3.3.0

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 (219) hide show
  1. package/installer/icons/favicon.ico +0 -0
  2. package/installer/icons/favicon.png +0 -0
  3. package/installer/mac/entitlements.mac.plist +16 -0
  4. package/lib/common/device-store.d.ts +1 -1
  5. package/lib/common/device-store.js +11 -3
  6. package/lib/common/event-store.d.ts +17 -1
  7. package/lib/common/event-store.js +38 -5
  8. package/lib/common/security-store.d.ts +14 -4
  9. package/lib/common/security-store.js +149 -30
  10. package/lib/electron/bootstrap-dev.d.ts +1 -0
  11. package/lib/electron/bootstrap-dev.js +51 -0
  12. package/lib/electron/bootstrap-sdk.d.ts +1 -0
  13. package/lib/electron/bootstrap-sdk.js +56 -0
  14. package/lib/electron/bootstrap.d.ts +1 -0
  15. package/lib/electron/bootstrap.js +56 -0
  16. package/lib/electron/default-options.js +1 -1
  17. package/lib/electron/dev.d.ts +1 -0
  18. package/lib/electron/dev.js +51 -0
  19. package/lib/electron/injections.d.ts +1 -1
  20. package/lib/electron/injections.js +3 -6
  21. package/lib/electron/main.js +4 -16
  22. package/lib/electron/plugins/meeting-state.d.ts +2 -0
  23. package/lib/electron/plugins/meeting-state.js +39 -0
  24. package/lib/electron/preload.js +1 -1
  25. package/lib/fragments/control-bar/control-bar-store.d.ts +34 -1
  26. package/lib/fragments/control-bar/control-bar-store.js +371 -79
  27. package/lib/fragments/control-bar/device/index.js +5 -3
  28. package/lib/fragments/control-bar/index.css +15 -10
  29. package/lib/fragments/control-bar/index.js +18 -0
  30. package/lib/fragments/control-bar/meeting-details/meeting-detail.css +109 -0
  31. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +3 -0
  32. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +60 -0
  33. package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +2 -0
  34. package/lib/fragments/control-bar/meeting-details/meeting-details.js +179 -0
  35. package/lib/fragments/control-bar/more-actions/index.css +53 -0
  36. package/lib/fragments/control-bar/more-actions/index.js +72 -37
  37. package/lib/fragments/control-bar/security-content/index.css +10 -0
  38. package/lib/fragments/control-bar/security-content/index.js +40 -18
  39. package/lib/fragments/control-bar/view.js +8 -2
  40. package/lib/login-confirm-dialog.d.ts +12 -0
  41. package/lib/login-confirm-dialog.js +80 -0
  42. package/lib/modules/action-bar/action-bar-collapes-items.js +5 -5
  43. package/lib/modules/action-bar/chat/index.js +5 -5
  44. package/lib/modules/action-bar/device/index.css +7 -2
  45. package/lib/modules/action-bar/device/index.js +4 -4
  46. package/lib/modules/action-bar/index.css +59 -12
  47. package/lib/modules/action-bar/index.d.ts +3 -2
  48. package/lib/modules/action-bar/index.dev.js +1 -1
  49. package/lib/modules/action-bar/index.js +21 -0
  50. package/lib/modules/action-bar/leave/assign-host.d.ts +3 -0
  51. package/lib/modules/action-bar/leave/assign-host.js +2 -4
  52. package/lib/modules/action-bar/leave/index.js +29 -6
  53. package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -0
  54. package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
  55. package/lib/modules/action-bar/more/poppover-content.js +4 -4
  56. package/lib/modules/action-bar/participants/index.css +12 -0
  57. package/lib/modules/action-bar/participants/index.js +21 -14
  58. package/lib/modules/action-bar/screen-share/index.js +5 -1
  59. package/lib/modules/action-bar/screen-share/submenu.js +16 -22
  60. package/lib/modules/action-bar/security/drop-menu.js +90 -13
  61. package/lib/modules/action-bar/store.d.ts +38 -6
  62. package/lib/modules/action-bar/store.js +487 -95
  63. package/lib/modules/action-bar/view.js +65 -42
  64. package/lib/modules/chat/chat-bar/index.js +39 -27
  65. package/lib/modules/chat/chat-select/index.css +14 -4
  66. package/lib/modules/chat/chat.d.ts +1 -2
  67. package/lib/modules/chat/chat.js +184 -105
  68. package/lib/modules/chat/index.css +49 -0
  69. package/lib/modules/chat/index.d.ts +2 -2
  70. package/lib/modules/chat/index.dev.js +1 -1
  71. package/lib/modules/chat/index.js +13 -8
  72. package/lib/modules/chat/message-list.js +59 -48
  73. package/lib/modules/chat/store.d.ts +48 -2
  74. package/lib/modules/chat/store.js +258 -45
  75. package/lib/modules/connection-gateway/index.d.ts +2 -1
  76. package/lib/modules/connection-gateway/store.d.ts +6 -3
  77. package/lib/modules/connection-gateway/store.js +5 -1
  78. package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
  79. package/lib/modules/device-pretest/index.css +0 -4
  80. package/lib/modules/device-pretest/settings/beauty.js +17 -6
  81. package/lib/modules/device-pretest/store.js +7 -11
  82. package/lib/modules/dialog/components/chat/electron.js +2 -1
  83. package/lib/modules/dialog/components/confirm/electron.js +5 -3
  84. package/lib/modules/dialog/components/connection-gateway/electron.js +3 -1
  85. package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
  86. package/lib/modules/dialog/components/device-setting/electron.js +3 -1
  87. package/lib/modules/dialog/components/device-setting/index.css +0 -1
  88. package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +5 -0
  89. package/lib/modules/dialog/components/operation-waiting-room/electron.js +89 -0
  90. package/lib/modules/dialog/components/operation-waiting-room/index.css +44 -0
  91. package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +5 -0
  92. package/lib/modules/dialog/components/operation-waiting-room/index.js +156 -0
  93. package/lib/modules/dialog/components/participant/electron.js +2 -1
  94. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +5 -0
  95. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +89 -0
  96. package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +50 -0
  97. package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +5 -0
  98. package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +90 -0
  99. package/lib/modules/dialog/components/whiteboard/index.js +2 -1
  100. package/lib/modules/dialog/dialogs.js +17 -13
  101. package/lib/modules/dialog/index.css +2 -0
  102. package/lib/modules/dialog/store.d.ts +4 -0
  103. package/lib/modules/dialog/store.js +16 -2
  104. package/lib/modules/event-notification/context.d.ts +2 -0
  105. package/lib/modules/event-notification/context.js +9 -0
  106. package/lib/modules/event-notification/index.css +58 -0
  107. package/lib/modules/event-notification/index.d.ts +13 -0
  108. package/lib/modules/event-notification/index.js +48 -0
  109. package/lib/modules/event-notification/store.d.ts +17 -0
  110. package/lib/modules/event-notification/store.js +133 -0
  111. package/lib/modules/event-notification/view.d.ts +5 -0
  112. package/lib/modules/event-notification/view.js +114 -0
  113. package/lib/modules/invite/index.css +4 -4
  114. package/lib/modules/invite/pstn-invite.js +1 -0
  115. package/lib/modules/layout/components/Gallery.js +7 -1
  116. package/lib/modules/layout/components/Layout.js +82 -57
  117. package/lib/modules/layout/components/index.css +33 -6
  118. package/lib/modules/layout/index.css +30 -0
  119. package/lib/modules/layout/member-window/index.js +9 -3
  120. package/lib/modules/layout/store.d.ts +19 -2
  121. package/lib/modules/layout/store.js +177 -70
  122. package/lib/modules/layout/video-window-datasource.d.ts +1 -1
  123. package/lib/modules/layout/video-window-datasource.js +1 -1
  124. package/lib/modules/live-streaming/index.dev.js +1 -1
  125. package/lib/modules/participant/attendee/index.d.ts +12 -3
  126. package/lib/modules/participant/attendee/index.js +132 -30
  127. package/lib/modules/participant/index.css +20 -0
  128. package/lib/modules/participant/index.d.ts +5 -2
  129. package/lib/modules/participant/index.dev.js +1 -1
  130. package/lib/modules/participant/index.js +27 -0
  131. package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
  132. package/lib/modules/participant/store.d.ts +30 -5
  133. package/lib/modules/participant/store.js +347 -74
  134. package/lib/modules/participant/view.js +133 -34
  135. package/lib/modules/setting/index.css +1 -5
  136. package/lib/modules/setting/index.dev.js +1 -1
  137. package/lib/modules/setting/store.d.ts +2 -2
  138. package/lib/modules/setting/store.js +3 -8
  139. package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
  140. package/lib/modules/setting/video-settings/index.css +9 -6
  141. package/lib/modules/share-screen/index.d.ts +2 -0
  142. package/lib/modules/share-screen/index.dev.js +3 -2
  143. package/lib/modules/share-screen/selection/index.css +2 -0
  144. package/lib/modules/share-screen/store.d.ts +6 -3
  145. package/lib/modules/share-screen/store.js +170 -129
  146. package/lib/modules/state-bar/index.css +2 -2
  147. package/lib/modules/state-bar/index.d.ts +2 -2
  148. package/lib/modules/state-bar/index.dev.js +1 -1
  149. package/lib/modules/state-bar/meeting-detail.css +6 -4
  150. package/lib/modules/state-bar/meeting-details.js +29 -3
  151. package/lib/modules/state-bar/meeting-network-state.css +14 -3
  152. package/lib/modules/state-bar/meeting-network-state.js +10 -4
  153. package/lib/modules/state-bar/recording.js +3 -5
  154. package/lib/modules/state-bar/store.d.ts +4 -2
  155. package/lib/modules/state-bar/store.js +18 -3
  156. package/lib/modules/state-bar/view.js +1 -6
  157. package/lib/modules/video-window/index.css +1 -0
  158. package/lib/modules/video-window/store.d.ts +2 -2
  159. package/lib/modules/video-window/store.js +14 -11
  160. package/lib/modules/waiting-room-layout/context.d.ts +2 -0
  161. package/lib/modules/waiting-room-layout/context.js +9 -0
  162. package/lib/modules/waiting-room-layout/index.css +71 -0
  163. package/lib/modules/waiting-room-layout/index.d.ts +8 -0
  164. package/lib/modules/waiting-room-layout/index.js +47 -0
  165. package/lib/modules/waiting-room-layout/store.d.ts +30 -0
  166. package/lib/modules/waiting-room-layout/store.js +189 -0
  167. package/lib/modules/waiting-room-layout/type.d.ts +0 -0
  168. package/lib/modules/waiting-room-layout/type.js +1 -0
  169. package/lib/modules/waiting-room-layout/view.d.ts +3 -0
  170. package/lib/modules/waiting-room-layout/view.js +67 -0
  171. package/lib/modules/whiteboard/app.js +0 -6
  172. package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
  173. package/lib/modules/whiteboard/components/multi-window/index.js +6 -1
  174. package/lib/modules/whiteboard/components/progress/electron.js +2 -1
  175. package/lib/modules/whiteboard/components/switch-theme/index.css +4 -0
  176. package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -1
  177. package/lib/modules/whiteboard/components/switch-theme/index.js +20 -15
  178. package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
  179. package/lib/modules/whiteboard/components/switch-theme/item.js +9 -2
  180. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +14 -10
  181. package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -0
  182. package/lib/modules/whiteboard/components/toolbar/store.js +3 -0
  183. package/lib/modules/whiteboard/context.d.ts +4 -0
  184. package/lib/modules/whiteboard/context.js +4 -2
  185. package/lib/modules/whiteboard/index.js +22 -6
  186. package/lib/plugins/browser-runtime-plugin.js +1 -1
  187. package/lib/plugins/module-dev-plugin.js +8 -6
  188. package/lib/runtime.d.ts +1 -1
  189. package/lib/translations/enUS.d.ts +449 -6
  190. package/lib/translations/enUS.js +485 -32
  191. package/lib/translations/zhCN.d.ts +447 -6
  192. package/lib/translations/zhCN.js +468 -17
  193. package/lib/type.d.ts +6 -2
  194. package/lib/ui-manager.d.ts +7 -3
  195. package/lib/ui-manager.js +576 -139
  196. package/lib/ui-scene.d.ts +1 -0
  197. package/lib/ui-scene.js +26 -21
  198. package/lib/utilities/constant.d.ts +43 -4
  199. package/lib/utilities/constant.js +41 -1
  200. package/lib/utilities/parameters.js +2 -2
  201. package/lib/utilities/renderer.d.ts +1 -0
  202. package/lib/utilities/renderer.js +6 -2
  203. package/package.json +14 -14
  204. package/public/assets/fcr_defaultpage.png +0 -0
  205. package/public/assets/login_confirm.png +0 -0
  206. package/public/index.html +29 -11
  207. package/dist/132.js +0 -2
  208. package/dist/132.js.LICENSE.txt +0 -311
  209. package/dist/651.js +0 -2
  210. package/dist/651.js.LICENSE.txt +0 -1
  211. package/dist/73.js +0 -1
  212. package/dist/index.html +0 -13
  213. package/dist/main.da7c203ab32d15742cfe.css +0 -11760
  214. package/dist/main.js +0 -2
  215. package/dist/main.js.LICENSE.txt +0 -254
  216. package/dist/worker-entry.worker.js.LICENSE.txt +0 -13
  217. package/lib/modules/device-pretest/settings/index.css +0 -15
  218. package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
  219. package/lib/modules/participant/attendee/participants-more-action.js +0 -278
@@ -94,7 +94,7 @@ var _icon = require("agora-ui-foundation/lib/components/icon");
94
94
  var _types = require("agora-edu-core/lib/room-control/whiteboard-control/types");
95
95
  var _jsxRuntime = require("react/jsx-runtime");
96
96
  var _ShareScreenStore;
97
- var _initProto, _init__shareSelectionDialogId, _init__controlBarDialogId, _init__videoWindowDialogId, _init__isHost, _init__shareLocked, _init__screenTrack, _init__shareAudioTrack, _init__localUser, _init_screenSharingState, _init_applicationCaptureSources, _init_screenCaptureSources, _init_hasScreenCapturePermission, _init_showConfirm, _init_shareControlBarActive, _init_withAudio, _init_currentShareAudioProcessingChannel, _init_currentShareId, _init_sharerId, _init_currentShareType, _init_currentSelection, _init_currentSelectionType, _init_shareWithAudio, _init_boardOwnerUser, _init_localUser, _init_localUserRole, _init_title, _init_localMicrophoneMute, _handleChooseScreenDecs, _init_handleChooseScreen, _setShareWithAudioStateDecs, _setShareAudioProcessingChannelDecs, _sendLocalAudioStateEventDecs, _handleCheckScreenCapturePermissionDecs, _handleToSettingDecs, _muteLocalAudioDecs, _muteLocalVideoDecs, _handleShareStartWithAudioDecs, _handleShareStopWithAudioDecs, _startPreviewDecs, _setShareControlBarActiveDecs, _setCurrentCameraIdDecs, _setCurrentSpeakerIdDecs, _setCurrentMicrophoneIdDecs, _setAllowChangeSelfNameDecs, _setAllowChatDecs, _setAllowJoinWithMuteAudioDecs, _setAllowShareScreenDecs, _setAllowUnmuteSelfVideoDecs, _setAllowUnmuteSelfAudioDecs, _setLockRoomEnabledDecs, _setWaitingRoomEnabledDecs, _openDialogDecs, _closeShareScreenSelectionDecs, _openControlBarDecs, _setControlBarWindowIdDecs, _openVideoWindowDialogDecs, _closeControlBarDecs, _closeVideoWindowDialogDecs, _setShareWithAudioDecs, _setWithAudioStateDecs, _handleShareScreenResourceDecs, _handleStartShareDecs, _handleReplaceScreenDecs, _handleStopShareDecs, _handleScreenCaptureStateUpdatedDecs, _updateCameraListDecs, _updateMicrophoneListDecs, _updateSpeakerListDecs, _handleLiveStreamingStateUpdatedDecs, _setShareLockDecs, _refreshLocalUserDecs, _ref;
97
+ var _initProto, _init__shareSelectionDialogId, _init__controlBarDialogId, _init__videoWindowDialogId, _init__isHost, _init__shareLocked, _init__screenTrack, _init__shareAudioTrack, _init__localUser, _init_screenSharingState, _init_applicationCaptureSources, _init_screenCaptureSources, _init_hasScreenCapturePermission, _init_showConfirm, _init_shareControlBarActive, _init_withAudio, _init_currentShareAudioProcessingChannel, _init_currentShareId, _init_sharerId, _init_currentShareType, _init_currentSelection, _init_currentSelectionType, _init_shareWithAudio, _init_boardOwnerUser, _init_localUser, _init_localUserRole, _init_title, _init_localMicrophoneMute, _handleChooseScreenDecs, _init_handleChooseScreen, _setShareWithAudioStateDecs, _setShareAudioProcessingChannelDecs, _sendLocalAudioStateEventDecs, _handleCheckScreenCapturePermissionDecs, _handleToSettingDecs, _muteLocalAudioDecs, _muteLocalVideoDecs, _handleShareStartWithAudioDecs, _handleShareStopWithAudioDecs, _startPreviewDecs, _setShareControlBarActiveDecs, _setCurrentCameraIdDecs, _setCurrentSpeakerIdDecs, _setCurrentMicrophoneIdDecs, _setAllowChangeSelfNameDecs, _setAllowChatDecs, _setAllowJoinWithMuteAudioDecs, _setAllowShareScreenDecs, _setAllowUnmuteSelfVideoDecs, _setAllowUnmuteSelfAudioDecs, _setLockRoomEnabledDecs, _openDialogDecs, _closeShareScreenSelectionDecs, _openControlBarDecs, _setControlBarWindowIdDecs, _openVideoWindowDialogDecs, _closeControlBarDecs, _closeVideoWindowDialogDecs, _setShareWithAudioDecs, _setWithAudioStateDecs, _handleShareScreenResourceDecs, _handleStartShareDecs, _handleReplaceScreenDecs, _handleStopShareDecs, _handleScreenCaptureStateUpdatedDecs, _updateCameraListDecs, _updateMicrophoneListDecs, _updateSpeakerListDecs, _handleLiveStreamingStateUpdatedDecs, _setShareLockDecs, _refreshLocalUserDecs, _ref;
98
98
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
99
99
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
100
100
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -132,7 +132,7 @@ var _X = /*#__PURE__*/new WeakMap();
132
132
  var _Y = /*#__PURE__*/new WeakMap();
133
133
  var _Z = /*#__PURE__*/new WeakMap();
134
134
  var _a = /*#__PURE__*/new WeakMap();
135
- _ref = (_handleChooseScreenDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _sendLocalAudioStateEventDecs = [_mobx.action, _mobx.action.bound], _handleCheckScreenCapturePermissionDecs = [_mobx.action, _mobx.action.bound], _handleToSettingDecs = [_mobx.action, _mobx.action.bound], _muteLocalAudioDecs = [_mobx.action, _mobx.action.bound], _muteLocalVideoDecs = [_mobx.action, _mobx.action.bound], _handleShareStartWithAudioDecs = [_mobx.action, _mobx.action.bound], _handleShareStopWithAudioDecs = [_mobx.action, _mobx.action.bound], _startPreviewDecs = [_mobx.action, _mobx.action.bound], _setShareControlBarActiveDecs = [_mobx.action, _mobx.action.bound], _setCurrentCameraIdDecs = [_mobx.action, _mobx.action.bound], _setCurrentSpeakerIdDecs = [_mobx.action, _mobx.action.bound], _setCurrentMicrophoneIdDecs = [_mobx.action, _mobx.action.bound], _setAllowChangeSelfNameDecs = [_mobx.action, _mobx.action.bound], _setAllowChatDecs = [_mobx.action, _mobx.action.bound], _setAllowJoinWithMuteAudioDecs = [_mobx.action, _mobx.action.bound], _setAllowShareScreenDecs = [_mobx.action, _mobx.action.bound], _setAllowUnmuteSelfVideoDecs = [_mobx.action, _mobx.action.bound], _setAllowUnmuteSelfAudioDecs = [_mobx.action, _mobx.action.bound], _setLockRoomEnabledDecs = [_mobx.action, _mobx.action.bound], _setWaitingRoomEnabledDecs = [_mobx.action, _mobx.action.bound], _openDialogDecs = [_mobx.action, _mobx.action.bound], _closeShareScreenSelectionDecs = [_mobx.action, _mobx.action.bound], _openControlBarDecs = [_mobx.action, _mobx.action.bound], _setControlBarWindowIdDecs = [_mobx.action, _mobx.action.bound], _openVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _closeControlBarDecs = [_mobx.action, _mobx.action.bound], _closeVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioDecs = [_mobx.action, _mobx.action.bound], _setWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _handleShareScreenResourceDecs = [_mobx.action, _mobx.action.bound], _handleStartShareDecs = [_mobx.action, _mobx.action.bound], _handleReplaceScreenDecs = [_mobx.action, _mobx.action.bound], _handleStopShareDecs = [_mobx.action, _mobx.action.bound], _handleScreenCaptureStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _updateCameraListDecs = [_mobx.action, _mobx.action.bound], _updateMicrophoneListDecs = [_mobx.action, _mobx.action.bound], _updateSpeakerListDecs = [_mobx.action, _mobx.action.bound], _handleLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _setShareLockDecs = [_mobx.action, _mobx.action.bound], _refreshLocalUserDecs = [_mobx.action, _mobx.action.bound], "logger");
135
+ _ref = (_handleChooseScreenDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _sendLocalAudioStateEventDecs = [_mobx.action, _mobx.action.bound], _handleCheckScreenCapturePermissionDecs = [_mobx.action, _mobx.action.bound], _handleToSettingDecs = [_mobx.action, _mobx.action.bound], _muteLocalAudioDecs = [_mobx.action, _mobx.action.bound], _muteLocalVideoDecs = [_mobx.action, _mobx.action.bound], _handleShareStartWithAudioDecs = [_mobx.action, _mobx.action.bound], _handleShareStopWithAudioDecs = [_mobx.action, _mobx.action.bound], _startPreviewDecs = [_mobx.action, _mobx.action.bound], _setShareControlBarActiveDecs = [_mobx.action, _mobx.action.bound], _setCurrentCameraIdDecs = [_mobx.action, _mobx.action.bound], _setCurrentSpeakerIdDecs = [_mobx.action, _mobx.action.bound], _setCurrentMicrophoneIdDecs = [_mobx.action, _mobx.action.bound], _setAllowChangeSelfNameDecs = [_mobx.action, _mobx.action.bound], _setAllowChatDecs = [_mobx.action, _mobx.action.bound], _setAllowJoinWithMuteAudioDecs = [_mobx.action, _mobx.action.bound], _setAllowShareScreenDecs = [_mobx.action, _mobx.action.bound], _setAllowUnmuteSelfVideoDecs = [_mobx.action, _mobx.action.bound], _setAllowUnmuteSelfAudioDecs = [_mobx.action, _mobx.action.bound], _setLockRoomEnabledDecs = [_mobx.action, _mobx.action.bound], _openDialogDecs = [_mobx.action, _mobx.action.bound], _closeShareScreenSelectionDecs = [_mobx.action, _mobx.action.bound], _openControlBarDecs = [_mobx.action, _mobx.action.bound], _setControlBarWindowIdDecs = [_mobx.action, _mobx.action.bound], _openVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _closeControlBarDecs = [_mobx.action, _mobx.action.bound], _closeVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioDecs = [_mobx.action, _mobx.action.bound], _setWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _handleShareScreenResourceDecs = [_mobx.action, _mobx.action.bound], _handleStartShareDecs = [_mobx.action, _mobx.action.bound], _handleReplaceScreenDecs = [_mobx.action, _mobx.action.bound], _handleStopShareDecs = [_mobx.action, _mobx.action.bound], _handleScreenCaptureStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _updateCameraListDecs = [_mobx.action, _mobx.action.bound], _updateMicrophoneListDecs = [_mobx.action, _mobx.action.bound], _updateSpeakerListDecs = [_mobx.action, _mobx.action.bound], _handleLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _setShareLockDecs = [_mobx.action, _mobx.action.bound], _refreshLocalUserDecs = [_mobx.action, _mobx.action.bound], "logger");
136
136
  var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
137
137
  function ShareScreenStore(_ref2) {
138
138
  var _this = this,
@@ -143,7 +143,8 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
143
143
  securityStore = _ref2.securityStore,
144
144
  uiEventStore = _ref2.uiEventStore,
145
145
  deviceStore = _ref2.deviceStore,
146
- deviceStreamStore = _ref2.deviceStreamStore;
146
+ deviceStreamStore = _ref2.deviceStreamStore,
147
+ config = _ref2.config;
147
148
  (0, _classCallCheck2["default"])(this, ShareScreenStore);
148
149
  (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
149
150
  (0, _defineProperty2["default"])(this, "_disposers", []);
@@ -204,6 +205,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
204
205
  _this.currentSelection = id;
205
206
  _this.currentSelectionType = type;
206
207
  }));
208
+ this._config = config;
207
209
  this._roomControl = roomControl;
208
210
  this._mediaControl = mediaControl;
209
211
  this._streamControl = roomControl.getStreamControl();
@@ -655,11 +657,11 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
655
657
  value: function setLockRoomEnabled(lock) {
656
658
  this._securityStore.setLockRoomEnabled(lock);
657
659
  }
658
- }, {
659
- key: "setWaitingRoomEnabled",
660
- value: function setWaitingRoomEnabled(allow) {
661
- this._securityStore.setWaitingRoomEnabled();
662
- }
660
+
661
+ // @action.bound
662
+ // setWaitingRoomEnabled(allow: boolean) {
663
+ // this._securityStore.setWaitingRoomEnabled();
664
+ // }
663
665
  }, {
664
666
  key: "openDialog",
665
667
  value: function openDialog(item) {
@@ -723,6 +725,11 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
723
725
  onOk: function onOk() {
724
726
  _this2._deviceStore.setMicrophoneEnabled(true);
725
727
  _this2._setWithAudioState(withAudio);
728
+ if (withAudio) {
729
+ _this2.handleShareStartWithAudio();
730
+ } else {
731
+ _this2.handleShareStopWithAudio();
732
+ }
726
733
  dialogKey && _this2._uiEventStore.closeDialog(dialogKey);
727
734
  },
728
735
  onCancel: function onCancel() {
@@ -732,6 +739,11 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
732
739
  });
733
740
  if (dialogKey) return;
734
741
  this._setWithAudioState(withAudio);
742
+ if (withAudio) {
743
+ this.handleShareStartWithAudio();
744
+ } else {
745
+ this.handleShareStopWithAudio();
746
+ }
735
747
  }
736
748
  }, {
737
749
  key: "_setWithAudioState",
@@ -796,7 +808,8 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
796
808
  height: shareSelectionHeight,
797
809
  x: mainWidowX + Math.floor(mainWidth / 2) - Math.floor(NORMAL_WIDTH / 2),
798
810
  y: mainWindowY + Math.floor(mainHeight / 2) - Math.floor(shareSelectionHeight / 2) + offsetForToast,
799
- controlBarDialogId: this._controlBarDialogId
811
+ controlBarDialogId: this._controlBarDialogId,
812
+ transparent: true
800
813
  });
801
814
  return _context3.abrupt("return");
802
815
  case 20:
@@ -952,9 +965,10 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
952
965
  while (1) switch (_context5.prev = _context5.next) {
953
966
  case 0:
954
967
  if (!(state === _agoraEduCore.FcrMediaSourceState.STOPPED)) {
955
- _context5.next = 17;
968
+ _context5.next = 18;
956
969
  break;
957
970
  }
971
+ _this3._initToolbar();
958
972
  screenTrack.removeObserver(_this3._observer);
959
973
  screenTrack.removeObserver(observer);
960
974
  newScreenTrack = _this3._mediaControl.getScreenTrack(id);
@@ -964,14 +978,14 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
964
978
  _this3._screenTrack = newScreenTrack;
965
979
  excludeWindows = [];
966
980
  if (!(0, _env.isElectron)()) {
967
- _context5.next = 11;
981
+ _context5.next = 12;
968
982
  break;
969
983
  }
970
- _context5.next = 10;
984
+ _context5.next = 11;
971
985
  return _this3._getExcludeWindows();
972
- case 10:
973
- excludeWindows = _context5.sent;
974
986
  case 11:
987
+ excludeWindows = _context5.sent;
988
+ case 12:
975
989
  newScreenTrack.addObserver(_this3._observer);
976
990
  newScreenTrack.start(type, {
977
991
  // preview: true,
@@ -995,7 +1009,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
995
1009
  withAudio: withAudio
996
1010
  }
997
1011
  });
998
- case 17:
1012
+ case 18:
999
1013
  case "end":
1000
1014
  return _context5.stop();
1001
1015
  }
@@ -1330,123 +1344,15 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1330
1344
  return _this6.shareControlBarActive;
1331
1345
  }, /*#__PURE__*/function () {
1332
1346
  var _ref4 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee10(active) {
1333
- var cameraList, microphoneList, speakerList, localUser, scheduleInfo, liveStreamingConfig;
1334
1347
  return _regenerator["default"].wrap(function _callee10$(_context10) {
1335
1348
  while (1) switch (_context10.prev = _context10.next) {
1336
1349
  case 0:
1337
- if (!active) {
1338
- _context10.next = 60;
1339
- break;
1350
+ if (active) {
1351
+ _this6._initToolbar();
1352
+ } else {
1353
+ _this6._deviceStore.removeObserver(_this6._deviceStoreObserver);
1340
1354
  }
1341
- _this6._deviceStore.addObserver(_this6._deviceStoreObserver);
1342
- cameraList = _this6._deviceStore.cameraList;
1343
- microphoneList = _this6._deviceStore.microphoneList;
1344
- speakerList = _this6._deviceStore.speakerList;
1345
- localUser = _this6._roomControl.getUserControl().getLocalUser();
1346
- scheduleInfo = _this6._roomControl.getRoomSchedule();
1347
- liveStreamingConfig = _this6._roomControl.getLiveStreamingConfig();
1348
- _context10.t0 = _rendererEvent.sendEvent;
1349
- _context10.t1 = _constant.RendererEventAction.INIT_CONTROL_BAR;
1350
- _context10.t2 = _shareAudio.AudioProcessingChannel.MONO;
1351
- _context10.t3 = _this6.currentShareId;
1352
- _context10.t4 = _this6.currentShareType;
1353
- _context10.t5 = _this6.withAudio;
1354
- _context10.t6 = cameraList;
1355
- _context10.t7 = _this6._deviceStore.cameraId;
1356
- _context10.t8 = !_this6.localVideoState;
1357
- _context10.t9 = microphoneList;
1358
- _context10.t10 = speakerList;
1359
- _context10.t11 = _this6._deviceStore.microphoneId;
1360
- _context10.t12 = _this6._deviceStore.speakerId;
1361
- _context10.t13 = !_this6.localAudioState;
1362
- _context10.t14 = _this6._deviceStore.microphoneVolumeLevel;
1363
- _context10.t15 = (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.duration) || 0;
1364
- _context10.t16 = (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.startTime) || new Date().getTime();
1365
- _context10.t17 = localUser.userRole === _type.FcrUserRole.HOST;
1366
- _context10.t18 = localUser.userRole === _type.FcrUserRole.HOST;
1367
- _context10.t19 = _this6._securityStore.allowChangeSelfName();
1368
- _context10.t20 = _this6._securityStore.allowChat();
1369
- _context10.t21 = _this6._securityStore.allowJoinWithMuteAudio();
1370
- _context10.t22 = _this6._securityStore.allowScreenShareAndBoard();
1371
- _context10.t23 = _this6._securityStore.allowUnmuteSelfVideo();
1372
- _context10.t24 = _this6._securityStore.allowUnmuteSelfAudio();
1373
- _context10.t25 = _this6._securityStore.isLockRoomEnabled();
1374
- _context10.t26 = _this6._securityStore.isWaitingRoomEnabled();
1375
- _context10.t27 = liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pushStreamingUrl;
1376
- _context10.t28 = liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pushStreamingUrl;
1377
- _context10.t29 = liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pullStreamingUrl;
1378
- _context10.t30 = _this6._roomControl.getLiveStreamingState();
1379
- _context10.t31 = _this6._securityStore.hasStartCloudRecordingPermission();
1380
- _context10.t32 = _this6._securityStore.hasStartLiveStreamingPermission();
1381
- _context10.t33 = _this6._securityStore.hasStopLiveStreamingPermission();
1382
- _context10.t34 = _this6._securityStore.hasGetLiveStreamingLinkPermission();
1383
- _context10.next = 45;
1384
- return _this6._mediaControl.getWindowList();
1385
- case 45:
1386
- _context10.t35 = _context10.sent;
1387
- _context10.t36 = _this6._connectType;
1388
- _context10.t37 = _this6._securityStore.hasEnableStartScreenSharePermission();
1389
- _context10.t38 = _this6._securityStore.hasPermissionToControlAllowSendAll();
1390
- _context10.t39 = _this6._securityStore.hasEnableStartAudioPermission();
1391
- _context10.t40 = _this6._securityStore.hasEnableChangeNamePermission();
1392
- _context10.t41 = _this6._securityStore.hasEnableStartVideoPermission();
1393
- _context10.t42 = _this6._securityStore.hasLockRoomPermission();
1394
- _context10.t43 = {
1395
- currentShareAudioProcessingChannel: _context10.t2,
1396
- currentShareId: _context10.t3,
1397
- currentShareType: _context10.t4,
1398
- shareWithAudio: _context10.t5,
1399
- cameraList: _context10.t6,
1400
- currentCameraId: _context10.t7,
1401
- isMuteVideo: _context10.t8,
1402
- microphoneList: _context10.t9,
1403
- speakerList: _context10.t10,
1404
- currentMicrophoneId: _context10.t11,
1405
- currentSpeakerId: _context10.t12,
1406
- isMuteAudio: _context10.t13,
1407
- localAudioVolume: _context10.t14,
1408
- duration: _context10.t15,
1409
- startTime: _context10.t16,
1410
- isHost: _context10.t17,
1411
- showSecurity: _context10.t18,
1412
- allowChangeSelfName: _context10.t19,
1413
- allowChat: _context10.t20,
1414
- allowJoinWithMuteAudio: _context10.t21,
1415
- allowShareScreen: _context10.t22,
1416
- allowUnmuteSelfVideo: _context10.t23,
1417
- allowUnmuteSelfAudio: _context10.t24,
1418
- isLockRoomEnabled: _context10.t25,
1419
- isWaitingRoomEnabled: _context10.t26,
1420
- videoSteamingUrl: _context10.t27,
1421
- videoStreamingKey: _context10.t28,
1422
- playUrl: _context10.t29,
1423
- liveStreamingState: _context10.t30,
1424
- isStartError: false,
1425
- hasStartCloudRecordingPermission: _context10.t31,
1426
- hasStartLiveStreamingPermission: _context10.t32,
1427
- hasStopLiveStreamingPermission: _context10.t33,
1428
- hasGetLiveStreamingLinkPermission: _context10.t34,
1429
- allApplicationWindows: _context10.t35,
1430
- connectType: _context10.t36,
1431
- hasEnableStartScreenSharePermission: _context10.t37,
1432
- hasPermissionToControlAllowSendAll: _context10.t38,
1433
- hasEnableStartAudioPermission: _context10.t39,
1434
- hasEnableChangeNamePermission: _context10.t40,
1435
- hasEnableStartVideoPermission: _context10.t41,
1436
- hasLockRoomPermission: _context10.t42
1437
- };
1438
- _context10.t44 = {
1439
- action: _context10.t1,
1440
- payload: _context10.t43
1441
- };
1442
- (0, _context10.t0)(_context10.t44);
1443
- window.runtime.browserWindow.setFullScreen(false);
1444
- window.runtime.browserWindow.hide();
1445
- _context10.next = 61;
1446
- break;
1447
- case 60:
1448
- _this6._deviceStore.removeObserver(_this6._deviceStoreObserver);
1449
- case 61:
1355
+ case 1:
1450
1356
  case "end":
1451
1357
  return _context10.stop();
1452
1358
  }
@@ -1764,10 +1670,145 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1764
1670
  }
1765
1671
  return _getExcludeWindows;
1766
1672
  }()
1673
+ }, {
1674
+ key: "_initToolbar",
1675
+ value: function () {
1676
+ var _initToolbar2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee16() {
1677
+ var cameraList, microphoneList, speakerList, localUser, scheduleInfo, liveStreamingConfig;
1678
+ return _regenerator["default"].wrap(function _callee16$(_context16) {
1679
+ while (1) switch (_context16.prev = _context16.next) {
1680
+ case 0:
1681
+ this._deviceStore.addObserver(this._deviceStoreObserver);
1682
+ cameraList = this._deviceStore.cameraList;
1683
+ microphoneList = this._deviceStore.microphoneList;
1684
+ speakerList = this._deviceStore.speakerList;
1685
+ localUser = this._roomControl.getUserControl().getLocalUser();
1686
+ scheduleInfo = this._roomControl.getRoomSchedule();
1687
+ liveStreamingConfig = this._roomControl.getLiveStreamingConfig();
1688
+ _context16.t0 = _rendererEvent.sendEvent;
1689
+ _context16.t1 = _constant.RendererEventAction.INIT_CONTROL_BAR;
1690
+ _context16.t2 = _shareAudio.AudioProcessingChannel.MONO;
1691
+ _context16.t3 = this.currentShareId;
1692
+ _context16.t4 = this.currentShareType;
1693
+ _context16.t5 = this.withAudio;
1694
+ _context16.t6 = cameraList;
1695
+ _context16.t7 = this._deviceStore.cameraId;
1696
+ _context16.t8 = !this.localVideoState;
1697
+ _context16.t9 = microphoneList;
1698
+ _context16.t10 = speakerList;
1699
+ _context16.t11 = this._deviceStore.microphoneId;
1700
+ _context16.t12 = this._deviceStore.speakerId;
1701
+ _context16.t13 = !this.localAudioState;
1702
+ _context16.t14 = this._deviceStore.microphoneVolumeLevel;
1703
+ _context16.t15 = localUser.userName;
1704
+ _context16.t16 = this._config.inviteLink;
1705
+ _context16.t17 = this._roomControl.getRoomInfo();
1706
+ _context16.t18 = (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.duration) || 0;
1707
+ _context16.t19 = (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.startTime) || new Date().getTime();
1708
+ _context16.t20 = localUser.userRole === _type.FcrUserRole.HOST;
1709
+ _context16.t21 = localUser.userRole === _type.FcrUserRole.HOST;
1710
+ _context16.t22 = this._securityStore.allowChangeSelfName();
1711
+ _context16.t23 = this._securityStore.allowChat();
1712
+ _context16.t24 = this._securityStore.allowJoinWithMuteAudio();
1713
+ _context16.t25 = this._securityStore.allowScreenShareAndBoard();
1714
+ _context16.t26 = this._securityStore.allowBoardWrite();
1715
+ _context16.t27 = this._securityStore.allowUnmuteSelfVideo();
1716
+ _context16.t28 = this._securityStore.allowUnmuteSelfAudio();
1717
+ _context16.t29 = this._securityStore.isLockRoomEnabled();
1718
+ _context16.t30 = this._securityStore.isWaitingRoomEnabled();
1719
+ _context16.t31 = liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pushStreamingUrl;
1720
+ _context16.t32 = liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pushStreamingUrl;
1721
+ _context16.t33 = liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pullStreamingUrl;
1722
+ _context16.t34 = this._roomControl.getLiveStreamingState();
1723
+ _context16.t35 = this._securityStore.hasStartCloudRecordingPermission();
1724
+ _context16.t36 = this._securityStore.hasStartLiveStreamingPermission();
1725
+ _context16.t37 = this._securityStore.hasStopLiveStreamingPermission();
1726
+ _context16.t38 = this._securityStore.hasGetLiveStreamingLinkPermission();
1727
+ _context16.next = 48;
1728
+ return this._mediaControl.getWindowList();
1729
+ case 48:
1730
+ _context16.t39 = _context16.sent;
1731
+ _context16.t40 = this._connectType;
1732
+ _context16.t41 = this._securityStore.hasEnableStartScreenSharePermission();
1733
+ _context16.t42 = this._securityStore.hasPermissionToControlAllowSendAll();
1734
+ _context16.t43 = this._securityStore.hasEnableStartAudioPermission();
1735
+ _context16.t44 = this._securityStore.hasEnableChangeNamePermission();
1736
+ _context16.t45 = this._securityStore.hasEnableStartVideoPermission();
1737
+ _context16.t46 = this._securityStore.hasLockRoomPermission();
1738
+ _context16.t47 = this._securityStore.hasAllowWriteBoardPermission();
1739
+ _context16.t48 = this._securityStore.hasWaitingRoomPermission();
1740
+ _context16.t49 = {
1741
+ currentShareAudioProcessingChannel: _context16.t2,
1742
+ currentShareId: _context16.t3,
1743
+ currentShareType: _context16.t4,
1744
+ shareWithAudio: _context16.t5,
1745
+ cameraList: _context16.t6,
1746
+ currentCameraId: _context16.t7,
1747
+ isMuteVideo: _context16.t8,
1748
+ microphoneList: _context16.t9,
1749
+ speakerList: _context16.t10,
1750
+ currentMicrophoneId: _context16.t11,
1751
+ currentSpeakerId: _context16.t12,
1752
+ isMuteAudio: _context16.t13,
1753
+ localAudioVolume: _context16.t14,
1754
+ userName: _context16.t15,
1755
+ inviteLink: _context16.t16,
1756
+ roomInfo: _context16.t17,
1757
+ duration: _context16.t18,
1758
+ startTime: _context16.t19,
1759
+ isHost: _context16.t20,
1760
+ showSecurity: _context16.t21,
1761
+ allowChangeSelfName: _context16.t22,
1762
+ allowChat: _context16.t23,
1763
+ allowJoinWithMuteAudio: _context16.t24,
1764
+ allowShareScreen: _context16.t25,
1765
+ allowBoardWrite: _context16.t26,
1766
+ allowUnmuteSelfVideo: _context16.t27,
1767
+ allowUnmuteSelfAudio: _context16.t28,
1768
+ isLockRoomEnabled: _context16.t29,
1769
+ isWaitingRoomEnabled: _context16.t30,
1770
+ videoSteamingUrl: _context16.t31,
1771
+ videoStreamingKey: _context16.t32,
1772
+ playUrl: _context16.t33,
1773
+ liveStreamingState: _context16.t34,
1774
+ isStartError: false,
1775
+ hasStartCloudRecordingPermission: _context16.t35,
1776
+ hasStartLiveStreamingPermission: _context16.t36,
1777
+ hasStopLiveStreamingPermission: _context16.t37,
1778
+ hasGetLiveStreamingLinkPermission: _context16.t38,
1779
+ allApplicationWindows: _context16.t39,
1780
+ connectType: _context16.t40,
1781
+ hasEnableStartScreenSharePermission: _context16.t41,
1782
+ hasPermissionToControlAllowSendAll: _context16.t42,
1783
+ hasEnableStartAudioPermission: _context16.t43,
1784
+ hasEnableChangeNamePermission: _context16.t44,
1785
+ hasEnableStartVideoPermission: _context16.t45,
1786
+ hasLockRoomPermission: _context16.t46,
1787
+ hasAllowWriteBoardPermission: _context16.t47,
1788
+ hasWaitingRoomPermission: _context16.t48
1789
+ };
1790
+ _context16.t50 = {
1791
+ action: _context16.t1,
1792
+ payload: _context16.t49
1793
+ };
1794
+ (0, _context16.t0)(_context16.t50);
1795
+ window.runtime.browserWindow.setFullScreen(false);
1796
+ window.runtime.browserWindow.hide();
1797
+ case 63:
1798
+ case "end":
1799
+ return _context16.stop();
1800
+ }
1801
+ }, _callee16, this);
1802
+ }));
1803
+ function _initToolbar() {
1804
+ return _initToolbar2.apply(this, arguments);
1805
+ }
1806
+ return _initToolbar;
1807
+ }()
1767
1808
  }]);
1768
1809
  }();
1769
1810
  _ShareScreenStore = ShareScreenStore;
1770
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ShareScreenStore, [[_mobx.observable, 1, "_shareSelectionDialogId"], [_mobx.observable, 1, "_controlBarDialogId"], [_mobx.observable, 1, "_videoWindowDialogId"], [_mobx.observable, 1, "_isHost"], [_mobx.observable, 1, "_shareLocked"], [_mobx.observable, 1, "_screenTrack"], [_mobx.observable, 1, "_shareAudioTrack"], [_mobx.observable, 1, "_localUser"], [_mobx.observable, 1, "screenSharingState"], [_mobx.observable, 1, "applicationCaptureSources"], [_mobx.observable, 1, "screenCaptureSources"], [_mobx.observable, 1, "hasScreenCapturePermission"], [_mobx.observable, 1, "showConfirm"], [_mobx.observable, 1, "shareControlBarActive"], [_mobx.observable, 1, "withAudio"], [_mobx.observable, 1, "currentShareAudioProcessingChannel"], [_mobx.observable, 1, "currentShareId"], [_mobx.observable, 1, "sharerId"], [_mobx.observable, 1, "currentShareType"], [_mobx.observable, 1, "currentSelection"], [_mobx.observable, 1, "currentSelectionType"], [_mobx.observable, 1, "shareWithAudio"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "title"], [_mobx.observable, 1, "localMicrophoneMute"], [_mobx.computed, 3, "localVideoState"], [_mobx.computed, 3, "localAudioState"], [_mobx.computed, 3, "localAudioVolume"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_decorator.bound, 2, "handlerBoardShareStop"], [_sendLocalAudioStateEventDecs, 18, "sendLocalAudioStateEvent"], [_decorator.bound, 2, "release"], [_handleCheckScreenCapturePermissionDecs, 18, "handleCheckScreenCapturePermission"], [_handleToSettingDecs, 18, "handleToSetting"], [_muteLocalAudioDecs, 18, "muteLocalAudio"], [_muteLocalVideoDecs, 18, "muteLocalVideo"], [_handleShareStartWithAudioDecs, 18, "handleShareStartWithAudio"], [_handleShareStopWithAudioDecs, 18, "handleShareStopWithAudio"], [_startPreviewDecs, 18, "startPreview"], [_setShareControlBarActiveDecs, 18, "setShareControlBarActive"], [_setCurrentCameraIdDecs, 18, "setCurrentCameraId"], [_setCurrentSpeakerIdDecs, 18, "setCurrentSpeakerId"], [_setCurrentMicrophoneIdDecs, 18, "setCurrentMicrophoneId"], [_setAllowChangeSelfNameDecs, 18, "setAllowChangeSelfName"], [_setAllowChatDecs, 18, "setAllowChat"], [_setAllowJoinWithMuteAudioDecs, 18, "setAllowJoinWithMuteAudio"], [_setAllowShareScreenDecs, 18, "setAllowShareScreen"], [_setAllowUnmuteSelfVideoDecs, 18, "setAllowUnmuteSelfVideo"], [_setAllowUnmuteSelfAudioDecs, 18, "setAllowUnmuteSelfAudio"], [_setLockRoomEnabledDecs, 18, "setLockRoomEnabled"], [_setWaitingRoomEnabledDecs, 18, "setWaitingRoomEnabled"], [_openDialogDecs, 18, "openDialog"], [_decorator.bound, 2, "closeDialog"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_closeShareScreenSelectionDecs, 18, "closeShareScreenSelection"], [_openControlBarDecs, 18, "openControlBar"], [_setControlBarWindowIdDecs, 18, "setControlBarWindowId"], [_openVideoWindowDialogDecs, 18, "openVideoWindowDialog"], [_closeControlBarDecs, 18, "closeControlBar"], [_closeVideoWindowDialogDecs, 18, "closeVideoWindowDialog"], [_setShareWithAudioDecs, 18, "setShareWithAudio"], [_setWithAudioStateDecs, 18, "_setWithAudioState"], [_handleShareScreenResourceDecs, 18, "handleShareScreenResource"], [_handleStartShareDecs, 18, "handleStartShare"], [_handleReplaceScreenDecs, 18, "handleReplaceScreen"], [_handleStopShareDecs, 18, "handleStopShare"], [_decorator.bound, 2, "_handleWebScreenCaptureStateUpdated"], [_handleScreenCaptureStateUpdatedDecs, 18, "_handleScreenCaptureStateUpdated"], [_updateCameraListDecs, 18, "_updateCameraList"], [_updateMicrophoneListDecs, 18, "_updateMicrophoneList"], [_updateSpeakerListDecs, 18, "_updateSpeakerList"], [_handleLiveStreamingStateUpdatedDecs, 18, "_handleLiveStreamingStateUpdated"], [_setShareLockDecs, 18, "_setShareLock"], [_decorator.bound, 2, "_syncShareStreamState"], [_refreshLocalUserDecs, 18, "_refreshLocalUser"], [_handleChooseScreenDecs, 16, "handleChooseScreen"]], []).e, 29);
1811
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ShareScreenStore, [[_mobx.observable, 1, "_shareSelectionDialogId"], [_mobx.observable, 1, "_controlBarDialogId"], [_mobx.observable, 1, "_videoWindowDialogId"], [_mobx.observable, 1, "_isHost"], [_mobx.observable, 1, "_shareLocked"], [_mobx.observable, 1, "_screenTrack"], [_mobx.observable, 1, "_shareAudioTrack"], [_mobx.observable, 1, "_localUser"], [_mobx.observable, 1, "screenSharingState"], [_mobx.observable, 1, "applicationCaptureSources"], [_mobx.observable, 1, "screenCaptureSources"], [_mobx.observable, 1, "hasScreenCapturePermission"], [_mobx.observable, 1, "showConfirm"], [_mobx.observable, 1, "shareControlBarActive"], [_mobx.observable, 1, "withAudio"], [_mobx.observable, 1, "currentShareAudioProcessingChannel"], [_mobx.observable, 1, "currentShareId"], [_mobx.observable, 1, "sharerId"], [_mobx.observable, 1, "currentShareType"], [_mobx.observable, 1, "currentSelection"], [_mobx.observable, 1, "currentSelectionType"], [_mobx.observable, 1, "shareWithAudio"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "title"], [_mobx.observable, 1, "localMicrophoneMute"], [_mobx.computed, 3, "localVideoState"], [_mobx.computed, 3, "localAudioState"], [_mobx.computed, 3, "localAudioVolume"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_decorator.bound, 2, "handlerBoardShareStop"], [_sendLocalAudioStateEventDecs, 18, "sendLocalAudioStateEvent"], [_decorator.bound, 2, "release"], [_handleCheckScreenCapturePermissionDecs, 18, "handleCheckScreenCapturePermission"], [_handleToSettingDecs, 18, "handleToSetting"], [_muteLocalAudioDecs, 18, "muteLocalAudio"], [_muteLocalVideoDecs, 18, "muteLocalVideo"], [_handleShareStartWithAudioDecs, 18, "handleShareStartWithAudio"], [_handleShareStopWithAudioDecs, 18, "handleShareStopWithAudio"], [_startPreviewDecs, 18, "startPreview"], [_setShareControlBarActiveDecs, 18, "setShareControlBarActive"], [_setCurrentCameraIdDecs, 18, "setCurrentCameraId"], [_setCurrentSpeakerIdDecs, 18, "setCurrentSpeakerId"], [_setCurrentMicrophoneIdDecs, 18, "setCurrentMicrophoneId"], [_setAllowChangeSelfNameDecs, 18, "setAllowChangeSelfName"], [_setAllowChatDecs, 18, "setAllowChat"], [_setAllowJoinWithMuteAudioDecs, 18, "setAllowJoinWithMuteAudio"], [_setAllowShareScreenDecs, 18, "setAllowShareScreen"], [_setAllowUnmuteSelfVideoDecs, 18, "setAllowUnmuteSelfVideo"], [_setAllowUnmuteSelfAudioDecs, 18, "setAllowUnmuteSelfAudio"], [_setLockRoomEnabledDecs, 18, "setLockRoomEnabled"], [_openDialogDecs, 18, "openDialog"], [_decorator.bound, 2, "closeDialog"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_closeShareScreenSelectionDecs, 18, "closeShareScreenSelection"], [_openControlBarDecs, 18, "openControlBar"], [_setControlBarWindowIdDecs, 18, "setControlBarWindowId"], [_openVideoWindowDialogDecs, 18, "openVideoWindowDialog"], [_closeControlBarDecs, 18, "closeControlBar"], [_closeVideoWindowDialogDecs, 18, "closeVideoWindowDialog"], [_setShareWithAudioDecs, 18, "setShareWithAudio"], [_setWithAudioStateDecs, 18, "_setWithAudioState"], [_handleShareScreenResourceDecs, 18, "handleShareScreenResource"], [_handleStartShareDecs, 18, "handleStartShare"], [_handleReplaceScreenDecs, 18, "handleReplaceScreen"], [_handleStopShareDecs, 18, "handleStopShare"], [_decorator.bound, 2, "_handleWebScreenCaptureStateUpdated"], [_handleScreenCaptureStateUpdatedDecs, 18, "_handleScreenCaptureStateUpdated"], [_updateCameraListDecs, 18, "_updateCameraList"], [_updateMicrophoneListDecs, 18, "_updateMicrophoneList"], [_updateSpeakerListDecs, 18, "_updateSpeakerList"], [_handleLiveStreamingStateUpdatedDecs, 18, "_handleLiveStreamingStateUpdated"], [_setShareLockDecs, 18, "_setShareLock"], [_decorator.bound, 2, "_syncShareStreamState"], [_refreshLocalUserDecs, 18, "_refreshLocalUser"], [_handleChooseScreenDecs, 16, "handleChooseScreen"]], []).e, 29);
1771
1812
  _init__shareSelectionDialogId = _applyDecs$e[0];
1772
1813
  _init__controlBarDialogId = _applyDecs$e[1];
1773
1814
  _init__videoWindowDialogId = _applyDecs$e[2];
@@ -486,7 +486,7 @@
486
486
  .fcr-state-bar__meeting-info-drop .fcr-drop-menu {
487
487
  width: 100%;
488
488
  border: 1px solid var(--fcr_ui_scene_line1);
489
- box-shadow: 0 0 15px 0 var(--fcr_web_light_dropup_m);
489
+ box-shadow: var(--fcr_web_light_dropup_m);
490
490
  }
491
491
  .fcr-state-bar__meeting-info-drop .fcr-drop-menu-option-text {
492
492
  overflow: hidden;
@@ -527,7 +527,7 @@
527
527
  .fcr-state-bar__meeting-info-drop .fcr-drop-menu {
528
528
  width: 100%;
529
529
  border: 1px solid var(--fcr_ui_scene_line1);
530
- box-shadow: 0 0 15px 0 var(--fcr_web_light_dropup_m);
530
+ box-shadow: var(--fcr_web_light_dropup_m);
531
531
  }
532
532
  .fcr-state-bar__meeting-info-drop .fcr-drop-menu-option-text {
533
533
  overflow: hidden;
@@ -3,11 +3,11 @@ import './index.css';
3
3
  import { FcrUIEventStore } from '../../common/event-store';
4
4
  import { FcrSecurityStore } from '../../common/security-store';
5
5
  import { FcrUISceneConfig } from '../../type';
6
- import { FcrMainRoomControl } from 'agora-edu-core/lib/room-control/type';
6
+ import { FcrMainRoomControl, FcrWaitingRoomControl } from 'agora-edu-core/lib/room-control/type';
7
7
  export declare class StateBarUIModule extends UIModule {
8
8
  private _store;
9
9
  constructor({ roomControl, uiEventStore, securityStore, config, }: {
10
- roomControl: FcrMainRoomControl;
10
+ roomControl: FcrMainRoomControl | FcrWaitingRoomControl;
11
11
  uiEventStore: FcrUIEventStore;
12
12
  securityStore: FcrSecurityStore;
13
13
  config: FcrUISceneConfig;
@@ -37,7 +37,7 @@ window.__DEV_ENGINE_IS_READY__.then(/*#__PURE__*/(0, _asyncToGenerator2["default
37
37
  _context.next = 5;
38
38
  return engine.login();
39
39
  case 5:
40
- roomControl = engine.createRoomControl(roomId);
40
+ roomControl = engine.createMainRoomControl(roomId);
41
41
  _context.next = 8;
42
42
  return roomControl.join({
43
43
  userRole: _type.FcrUserRole.HOST,
@@ -18,15 +18,17 @@
18
18
  }
19
19
 
20
20
  .meeting-details__content {
21
- margin-top: 10px;
21
+ margin-top: 12px;
22
22
  }
23
23
 
24
24
  .meeting-details__content-meeting-subject {
25
25
  font-size: 12px;
26
- font-weight: 500;
26
+ font-weight: 600;
27
27
  color: var(--fcr_ui_scene_icontext1, #ffffff);
28
28
  word-break: break-all;
29
29
  text-align: left;
30
+ min-height: 32px;
31
+ line-height: 32px;
30
32
  }
31
33
 
32
34
  .meeting-details__content-meeting-id,
@@ -78,8 +80,8 @@
78
80
  .meeting-details__content-meeting-id > div > svg:hover,
79
81
  .meeting-details__content-code > div > svg:hover,
80
82
  .meeting-details__content-share-link > div > svg:hover {
81
- background-color: var(--fcr_web_ui_scene_hover, #c9cfe04d);
82
- fill: var(--fcr_web_ui_scene_hover, #c9cfe04d);
83
+ background-color: var(--fcr_web_ui_scene_hover);
84
+ fill: var(--fcr_web_ui_scene_mainicon2);
83
85
  }
84
86
 
85
87
  .meeting-details__footer {
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.MeetingDetails = void 0;
9
+ require("core-js/modules/es.array.concat.js");
9
10
  require("core-js/modules/es.regexp.exec.js");
10
11
  require("core-js/modules/es.string.replace.js");
11
12
  var _button = require("agora-ui-foundation/lib/components/button");
@@ -27,17 +28,20 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
27
28
  localUser = _useContext.localUser,
28
29
  roomInfo = _useContext.roomInfo,
29
30
  scheduleInfo = _useContext.scheduleInfo,
30
- getShareLink = _useContext.getShareLink;
31
+ getShareLink = _useContext.getShareLink,
32
+ password = _useContext.password,
33
+ toastCopyInfo = _useContext.toastCopyInfo;
31
34
  var shareLink = (0, _react.useMemo)(function () {
32
35
  return getShareLink();
33
36
  }, []);
34
37
  if (!roomInfo || !localUser) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
35
38
  var displayMeetingId = roomInfo.roomId.replace(/(.{3})/g, '$1 ');
36
- var detailText = t('fmt_sharing_label_invitationdetailed', {
39
+ var detailText = t('fmt_link_invitation', {
37
40
  reason1: localUser.userName,
38
41
  reason2: roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomName,
39
42
  reason3: (0, _dayjs["default"])((_scheduleInfo$startTi = scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.startTime) !== null && _scheduleInfo$startTi !== void 0 ? _scheduleInfo$startTi : 0).format('YYYY-MM-DD HH:mm:ss'),
40
- reason4: shareLink
43
+ reason4: shareLink,
44
+ reason5: !!password ? "".concat(t('fmt_meeting_creatpage_label_password'), ": ").concat(password) : ''
41
45
  });
42
46
  function handleCopyMeetingId(meetingId) {
43
47
  (0, _copyText.copyText)(meetingId).then(function () {
@@ -56,6 +60,13 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
56
60
  });
57
61
  });
58
62
  }
63
+ function handleCopyMeetingPassword(password) {
64
+ (0, _copyText.copyText)(password).then(function () {
65
+ toastCopyInfo('info', t('fmt_uimanager_tips_passwordcopied'));
66
+ })["catch"](function () {
67
+ toastCopyInfo('warn', t('fmt_settings_tips_passwordcopyfailed'));
68
+ });
69
+ }
59
70
  function handlerCopyMeetingShareLink(shareLink) {
60
71
  (0, _copyText.copyText)(shareLink).then(function () {
61
72
  _toast.FcrToastApi.open({
@@ -130,6 +141,21 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
130
141
  size: 22
131
142
  })
132
143
  })]
144
+ }), !!password && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
145
+ className: "meeting-details__content-share-link",
146
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
147
+ children: t('fmt_meeting_creatpage_label_password')
148
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
149
+ children: password
150
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
151
+ onClick: function onClick() {
152
+ return handleCopyMeetingPassword(password !== null && password !== void 0 ? password : '');
153
+ },
154
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
155
+ type: _type.FcrIconType.FCR_COPY,
156
+ size: 22
157
+ })
158
+ })]
133
159
  })]
134
160
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
135
161
  className: "meeting-details__footer",
@@ -11,18 +11,28 @@
11
11
  .meeting-network-state__connection {
12
12
  display: flex;
13
13
  flex-direction: column;
14
+ align-items: start;
14
15
  border-radius: var(--fcr_cornerradius_l, 8px);
15
- padding: 18px 15px;
16
+ padding: 18px 15px 20px 15px;
16
17
  background-color: var(--fcr_web_ui_scene_fill4_popup, #43434e);
17
18
  }
18
19
 
19
20
  .meeting-network-state__connection > label {
20
21
  font-size: 14px;
22
+ height: 30px;
23
+ line-height: 30px;
24
+ font-weight: 600;
25
+ }
26
+
27
+ .meeting-network-state__connection .meeting-network-state_text {
28
+ vertical-align: middle;
21
29
  }
22
30
 
23
31
  .meeting-network-state__connection > span {
24
- margin-top: 8px;
32
+ margin-top: 6px;
25
33
  font-size: 22px;
34
+ font-weight: 600;
35
+ height: 24px;
26
36
  }
27
37
 
28
38
  .meeting-network-state__connection > span.excellent {
@@ -47,7 +57,7 @@
47
57
  }
48
58
 
49
59
  .meeting-network-state__loss-rate {
50
- margin-bottom: 10px;
60
+ /* margin-bottom: 10px; */
51
61
  }
52
62
 
53
63
  .meeting-network-state__delay,
@@ -87,6 +97,7 @@
87
97
  .meeting-network-state__loss-rate__value > div {
88
98
  display: flex;
89
99
  line-height: 32px;
100
+ text-align: left;
90
101
  }
91
102
 
92
103
  .meeting-network-state__loss-rate__value > div > span:first-child {