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
@@ -27,6 +27,7 @@ var _env = require("agora-foundation/lib/utilities/env");
27
27
  var _checkbox = require("agora-ui-foundation/lib/components/checkbox");
28
28
  var _dialog = require("agora-ui-foundation/lib/components/dialog");
29
29
  var _participants = require("agora-ui-foundation/lib/components/participants");
30
+ var _tabs = require("agora-ui-foundation/lib/components/tabs");
30
31
  var _footer = require("agora-ui-foundation/lib/components/participants/footer");
31
32
  var _mobxReact = require("mobx-react");
32
33
  var _react = require("react");
@@ -37,6 +38,8 @@ var _context2 = require("../dialog/context");
37
38
  require("./index.css");
38
39
  var _roomControlDropMenu = require("./room-control-drop-menu");
39
40
  var _i18n = require("agora-ui-foundation/lib/i18n");
41
+ var _button = require("agora-ui-foundation/lib/components/button");
42
+ var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
40
43
  var _jsxRuntime = require("react/jsx-runtime");
41
44
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
42
45
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -73,7 +76,11 @@ var MuteAllDialog = exports.MuteAllDialog = function MuteAllDialog(_ref) {
73
76
  title: transI18n('fmt_attendies_options_muteall'),
74
77
  visible: showMuteAllDialog,
75
78
  okButtonProps: {
76
- styleType: 'danger'
79
+ styleType: 'danger',
80
+ shape: 'rounded'
81
+ },
82
+ cancelButtonProps: {
83
+ shape: 'rounded'
77
84
  },
78
85
  onCancel: onCancel,
79
86
  okText: transI18n('fmt_attendies_button_muteall'),
@@ -92,6 +99,9 @@ var MuteAllDialog = exports.MuteAllDialog = function MuteAllDialog(_ref) {
92
99
  checked: allowUnmute,
93
100
  onChange: function onChange(checked) {
94
101
  return setAllowUnmute(checked);
102
+ },
103
+ style: {
104
+ marginTop: '16px'
95
105
  }
96
106
  })]
97
107
  })
@@ -135,34 +145,103 @@ var MergeConfrimDialog = function MergeConfrimDialog(_ref2) {
135
145
  })
136
146
  });
137
147
  };
138
- var ParticipantsContainer = (0, _mobxReact.observer)(function () {
148
+ var ParticipantWaitingRoomFooterBtnList = function ParticipantWaitingRoomFooterBtnList(_ref3) {
149
+ var openRemoveAdmitWaitingRoomDialog = _ref3.openRemoveAdmitWaitingRoomDialog;
150
+ var t = (0, _i18n.useI18n)();
151
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
152
+ className: "fcr-participant__footer fcr-participant__footer_waiting_room",
153
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
154
+ content: t('fmt_waitingroom_sidebar_button_removeall'),
155
+ mouseEnterDelay: 0,
156
+ trigger: "hover",
157
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
158
+ type: "secondary-bordered",
159
+ size: "XS",
160
+ onClick: function onClick() {
161
+ openRemoveAdmitWaitingRoomDialog(_constant.DialogKey.WAITING_ROOM_ALL_REMOVE, {
162
+ title: t('fmt_waitingroom_sidebar_popup_removeall'),
163
+ type: 'removeAll',
164
+ tooltip: t('fmt_waitingroom_mobile_memberlist_popup_label_sure_to_remove_all')
165
+ });
166
+ },
167
+ children: t('fmt_waitingroom_sidebar_button_removeall')
168
+ })
169
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
170
+ content: t('fmt_waitingroom_sidebar_button_admitall'),
171
+ mouseEnterDelay: 0,
172
+ trigger: "hover",
173
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
174
+ type: "secondary-bordered",
175
+ size: "XS",
176
+ onClick: function onClick() {
177
+ openRemoveAdmitWaitingRoomDialog(_constant.DialogKey.WAITING_ROOM_ALL_ADMIT, {
178
+ title: t('fmt_waitingroom_mobile_memberlist_popup_label_admit_all'),
179
+ type: 'admitAll',
180
+ tooltip: t('fmt_waitingroom_mobile_memberlist_popup_label_sure_to_admit_all')
181
+ });
182
+ },
183
+ children: t('fmt_waitingroom_sidebar_button_admitall')
184
+ })
185
+ })]
186
+ });
187
+ };
188
+ var ParticipantFooter = (0, _mobxReact.observer)(function (_ref4) {
189
+ var handlerRoomControlClick = _ref4.handlerRoomControlClick;
139
190
  var _useContext = (0, _react.useContext)(_context.StoreContext),
140
- userList = _useContext.userList,
141
- handlerSearchUser = _useContext.handlerSearchUser,
142
- searchText = _useContext.searchText,
143
- currentPerspectiveType = _useContext.currentPerspectiveType,
144
- setCurrentModal = _useContext.setCurrentModal,
145
- handlerRoomControlAction = _useContext.handlerRoomControlAction,
146
- handlerUserAction = _useContext.handlerUserAction,
147
- allowUnmuteSelfAudio = _useContext.allowUnmuteSelfAudio,
148
- allowJoinWithMuteAudio = _useContext.allowJoinWithMuteAudio,
149
- currentModal = _useContext.currentModal,
150
- openParticipantsWindow = _useContext.openParticipantsWindow,
151
- onInvite = _useContext.onInvite,
191
+ activeTab = _useContext.activeTab,
152
192
  hasRevokeHostPermission = _useContext.hasRevokeHostPermission,
153
- checkIsPin = _useContext.checkIsPin,
154
- hasPinnedStream = _useContext.hasPinnedStream,
155
- enableSpotlight = _useContext.enableSpotlight,
156
- mergeConfirmDialog = _useContext.mergeConfirmDialog,
157
- setMergeConfirmDialog = _useContext.setMergeConfirmDialog,
158
- mergeConfirmDialogOk = _useContext.mergeConfirmDialogOk,
159
- mergeUserId = _useContext.mergeUserId,
160
- mergeUserInfo = _useContext.mergeUserInfo,
161
- getAllowedOperations = _useContext.getAllowedOperations,
162
- hasMutePermission = _useContext.hasMutePermission,
163
- hasUnmutePermission = _useContext.hasUnmutePermission,
164
- hasRequestStartAudioPermission = _useContext.hasRequestStartAudioPermission;
193
+ currentPerspectiveType = _useContext.currentPerspectiveType,
194
+ kickOutWaitingRoomAllMember = _useContext.kickOutWaitingRoomAllMember,
195
+ moveToMainRoomAllMember = _useContext.moveToMainRoomAllMember,
196
+ openRemoveAdmitWaitingRoomDialog = _useContext.openRemoveAdmitWaitingRoomDialog;
197
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
198
+ children: activeTab === _constant.RoomType.MAIN_ROOM ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_footer.FcrParticipantsFooter, {
199
+ hasRevokeHostPermission: hasRevokeHostPermission,
200
+ onRoomControlClick: handlerRoomControlClick,
201
+ type: currentPerspectiveType,
202
+ moreDropMenu: /*#__PURE__*/(0, _jsxRuntime.jsx)(_roomControlDropMenu.RoomControlDropMenu, {})
203
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(ParticipantWaitingRoomFooterBtnList, {
204
+ openRemoveAdmitWaitingRoomDialog: openRemoveAdmitWaitingRoomDialog
205
+ })
206
+ });
207
+ });
208
+ var ParticipantsContainer = (0, _mobxReact.observer)(function () {
209
+ var _useContext2 = (0, _react.useContext)(_context.StoreContext),
210
+ userList = _useContext2.userList,
211
+ handlerSearchUser = _useContext2.handlerSearchUser,
212
+ searchText = _useContext2.searchText,
213
+ currentPerspectiveType = _useContext2.currentPerspectiveType,
214
+ setCurrentModal = _useContext2.setCurrentModal,
215
+ handlerRoomControlAction = _useContext2.handlerRoomControlAction,
216
+ handlerUserAction = _useContext2.handlerUserAction,
217
+ allowUnmuteSelfAudio = _useContext2.allowUnmuteSelfAudio,
218
+ allowJoinWithMuteAudio = _useContext2.allowJoinWithMuteAudio,
219
+ currentModal = _useContext2.currentModal,
220
+ openParticipantsWindow = _useContext2.openParticipantsWindow,
221
+ onInvite = _useContext2.onInvite,
222
+ hasRevokeHostPermission = _useContext2.hasRevokeHostPermission,
223
+ checkIsPin = _useContext2.checkIsPin,
224
+ hasPinnedStream = _useContext2.hasPinnedStream,
225
+ enableSpotlight = _useContext2.enableSpotlight,
226
+ mergeConfirmDialog = _useContext2.mergeConfirmDialog,
227
+ setMergeConfirmDialog = _useContext2.setMergeConfirmDialog,
228
+ mergeConfirmDialogOk = _useContext2.mergeConfirmDialogOk,
229
+ mergeUserId = _useContext2.mergeUserId,
230
+ mergeUserInfo = _useContext2.mergeUserInfo,
231
+ getAllowedOperations = _useContext2.getAllowedOperations,
232
+ hasMutePermission = _useContext2.hasMutePermission,
233
+ hasUnmutePermission = _useContext2.hasUnmutePermission,
234
+ hasRequestStartAudioPermission = _useContext2.hasRequestStartAudioPermission,
235
+ hasWaitingRoomPermission = _useContext2.hasWaitingRoomPermission,
236
+ handleActiveTab = _useContext2.handleActiveTab,
237
+ activeTab = _useContext2.activeTab,
238
+ moveToMainRoomByUserIds = _useContext2.moveToMainRoomByUserIds,
239
+ kickOutWaitingRoomAllMember = _useContext2.kickOutWaitingRoomAllMember,
240
+ moveToMainRoomAllMember = _useContext2.moveToMainRoomAllMember,
241
+ isNewWaitingRoomUserEnter = _useContext2.isNewWaitingRoomUserEnter,
242
+ waitingRoomUserCount = _useContext2.waitingRoomUserCount;
165
243
  var dialogStore = (0, _react.useContext)(_context2.StoreContext);
244
+ var transI18n = (0, _i18n.useI18n)();
166
245
  var handlerRoomControlClick = function handlerRoomControlClick(action, userId) {
167
246
  if (action === _constant.RoomControlType.MUTE_ALL_AUDIO) {
168
247
  setShowMuteAllDialog(true);
@@ -186,16 +265,39 @@ var ParticipantsContainer = (0, _mobxReact.observer)(function () {
186
265
  } : void 0;
187
266
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
188
267
  className: "participants-container",
189
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_participants.FcrParticipants, {
268
+ children: [waitingRoomUserCount > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_tabs.FcrTabs, {
269
+ items: [{
270
+ label: transI18n('fmt_waitingroom_sidebar_chat_label_meeting'),
271
+ key: _constant.RoomType.MAIN_ROOM
272
+ }, {
273
+ label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
274
+ className: "participants-container-icon",
275
+ children: [isNewWaitingRoomUserEnter ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
276
+ className: "participants-container-red"
277
+ }) : null, transI18n('fmt_waitingroom_sidebar_label_waiting', {
278
+ reason1: waitingRoomUserCount
279
+ })]
280
+ }),
281
+ key: _constant.RoomType.WAITING_ROOM
282
+ }],
283
+ activeKey: activeTab,
284
+ onChange: function onChange(key) {
285
+ handleActiveTab(key);
286
+ }
287
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_participants.FcrParticipants, {
190
288
  type: currentModal,
191
289
  userList: userList,
192
290
  onSearch: handlerSearchUser,
193
291
  searchText: searchText,
194
292
  onInvite: onInvite,
293
+ hasPinnedStream: hasPinnedStream,
294
+ toggleParticipantAction: handlerUserAction,
195
295
  userRenderer: function userRenderer(user) {
196
296
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mobxReact.Observer, {
197
297
  children: function children() {
198
298
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_attendee.ParticipantAttendee, _objectSpread(_objectSpread({
299
+ activeTab: activeTab,
300
+ moveToMainRoomByUserIds: moveToMainRoomByUserIds,
199
301
  hasMutePermission: hasMutePermission,
200
302
  hasUnmutePermission: hasUnmutePermission,
201
303
  hasRequestStartAudioPermission: hasRequestStartAudioPermission,
@@ -215,11 +317,8 @@ var ParticipantsContainer = (0, _mobxReact.observer)(function () {
215
317
  // <FcrWindowHeader type={currentModal} onTypeChange={handlerTypeChange} title="参会人" />
216
318
  // }
217
319
  ,
218
- footer: /*#__PURE__*/(0, _jsxRuntime.jsx)(_footer.FcrParticipantsFooter, {
219
- hasRevokeHostPermission: hasRevokeHostPermission,
220
- onRoomControlClick: handlerRoomControlClick,
221
- type: currentPerspectiveType,
222
- moreDropMenu: /*#__PURE__*/(0, _jsxRuntime.jsx)(_roomControlDropMenu.RoomControlDropMenu, {})
320
+ footer: /*#__PURE__*/(0, _jsxRuntime.jsx)(ParticipantFooter, {
321
+ handlerRoomControlClick: handlerRoomControlClick
223
322
  })
224
323
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(MuteAllDialog, {
225
324
  getContainer: dialogContaner,
@@ -253,8 +352,8 @@ var ParticipantsContainer = (0, _mobxReact.observer)(function () {
253
352
  });
254
353
  });
255
354
  var View = exports.View = (0, _mobxReact.observer)(function () {
256
- var _useContext2 = (0, _react.useContext)(_context.StoreContext),
257
- currentModal = _useContext2.currentModal;
355
+ var _useContext3 = (0, _react.useContext)(_context.StoreContext),
356
+ currentModal = _useContext3.currentModal;
258
357
  if (currentModal === 'modal') {
259
358
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(ParticipantsContainer, {});
260
359
  }
@@ -101,11 +101,7 @@
101
101
  width: 100%;
102
102
  height: 100%;
103
103
  }
104
- .fcr-device-settings__tab-content-wrapper .fcr-device-settings-video__bottom {
105
- position: inherit;
106
- bottom: 8px;
107
- width: calc(100% - 30px);
108
- }
104
+
109
105
  .fcr-device-settings__tab-content-wrapper.is-tab-content-video-wrapper {
110
106
  overflow: hidden;
111
107
  }
@@ -28,7 +28,7 @@ window.__DEV_ENGINE_IS_READY__.then(/*#__PURE__*/(0, _asyncToGenerator2["default
28
28
  _context.next = 5;
29
29
  return engine.login();
30
30
  case 5:
31
- roomControl = engine.createRoomControl(roomId);
31
+ roomControl = engine.createMainRoomControl(roomId);
32
32
  userName = 'test-user';
33
33
  _context.next = 9;
34
34
  return roomControl.join({
@@ -8,7 +8,7 @@ import { DEFAULT_BEAUTY_VALUE } from 'agora-ui-foundation/lib/components/local-v
8
8
  import { FcrUISceneConfig } from '../../type';
9
9
  import { VirtualBackground } from '../device-pretest/assets/virtual-backdound-resources';
10
10
  import { FcrDeviceStore } from '../../common/device-store';
11
- import { FcrMainRoomControl } from 'agora-edu-core/lib/room-control/type';
11
+ import { FcrBaseRoomControl } from 'agora-edu-core/lib/room-control/type';
12
12
  export interface DeviceItem {
13
13
  text: string;
14
14
  value: string;
@@ -159,7 +159,7 @@ export default class SettingStore {
159
159
  uiEventStore: FcrUIEventStore;
160
160
  monitorControl: FcrMonitorControl;
161
161
  streamControl: FcrStreamControl;
162
- roomControl: FcrMainRoomControl;
162
+ roomControl: FcrBaseRoomControl;
163
163
  deviceStore: FcrDeviceStore;
164
164
  });
165
165
  enableVirtualBackground(enable: boolean, source?: VirtualBackground): void;
@@ -1092,16 +1092,11 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
1092
1092
  }, {
1093
1093
  key: "_handleCameraListUpdated",
1094
1094
  value: function () {
1095
- var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(cameraList, currentDeviceExist) {
1096
- var deviceId, cameraTrack;
1095
+ var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(cameraList) {
1097
1096
  return _regenerator["default"].wrap(function _callee3$(_context3) {
1098
1097
  while (1) switch (_context3.prev = _context3.next) {
1099
1098
  case 0:
1100
- if (!currentDeviceExist && cameraList.length > 0) {
1101
- deviceId = cameraList[0].deviceId;
1102
- this._deviceStore.setCameraId(deviceId);
1103
- cameraTrack = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
1104
- cameraTrack.start();
1099
+ if (cameraList.length > 0) {
1105
1100
  this._settingVideoOpened && this._deviceStore.startOrStopCamera(true);
1106
1101
  }
1107
1102
  case 1:
@@ -1110,7 +1105,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
1110
1105
  }
1111
1106
  }, _callee3, this);
1112
1107
  }));
1113
- function _handleCameraListUpdated(_x, _x2) {
1108
+ function _handleCameraListUpdated(_x) {
1114
1109
  return _handleCameraListUpdated2.apply(this, arguments);
1115
1110
  }
1116
1111
  return _handleCameraListUpdated;
@@ -51,7 +51,7 @@ var TranslateSettings = exports.TranslateSettings = (0, _mobxReact.observer)(fun
51
51
  addition: '',
52
52
  value: 1
53
53
  }, {
54
- label: t('fmt_ai_transcriptions_setting_option_translate_'),
54
+ label: t('fmt_ai_transcriptions_setting_option_translate'),
55
55
  addition: '',
56
56
  value: 2
57
57
  }];
@@ -33,7 +33,6 @@
33
33
  align-items: center;
34
34
  padding: 10px 12px;
35
35
  flex: 1;
36
- max-width: 76%;
37
36
  }
38
37
 
39
38
  .fcr-device-settings-video__beauty-slider-value {
@@ -56,8 +55,8 @@
56
55
  .fcr-device-settings-video__video-flip-container {
57
56
  position: absolute;
58
57
  z-index: 10;
59
- right: 8px;
60
- bottom: 8px;
58
+ right: 6px;
59
+ bottom: 6px;
61
60
  border-radius: var(--fcr_cornerradius_s);
62
61
  background: var(--fcr_ui_scene_click);
63
62
  }
@@ -166,7 +165,6 @@
166
165
  .fcr-virtual-background-setting__container {
167
166
  display: flex;
168
167
  flex-direction: column;
169
- gap: 10px;
170
168
  }
171
169
 
172
170
  .fcr-device-settings-video__tips {
@@ -176,7 +174,7 @@
176
174
  display: flex;
177
175
  align-items: center;
178
176
  justify-content: center;
179
- margin-bottom: 20px;
177
+ margin: 20px 0px;
180
178
  color: var(--fcr_ui_scene_icontext7);
181
179
  }
182
180
 
@@ -221,6 +219,11 @@
221
219
  flex-direction: column;
222
220
  }
223
221
 
222
+ .fcr-virtual-background-setting__virtual-item:not(:first-child):hover
223
+ .fcr-virtual-background-setting__virtual-source {
224
+ transform: scale(1.05);
225
+ }
226
+
224
227
  .fcr-virtual-background-setting__virtual-video-source {
225
228
  position: relative;
226
229
  width: 100%;
@@ -297,7 +300,7 @@
297
300
  font-weight: 300;
298
301
  font-size: 12px;
299
302
  line-height: 12px;
300
- color: var(--fcr_ui_scene_icontext2);
303
+ color: var(--fcr_ui_scene_icontext1);
301
304
  padding: 10px 0px 8px;
302
305
  }
303
306
 
@@ -5,6 +5,7 @@ import { FcrDeviceStore } from '../../common/device-store';
5
5
  import { FcrSecurityStore } from '../../common/security-store';
6
6
  import { FcrUIEventStore } from '../../common/event-store';
7
7
  import { FcrDeviceStreamStore } from '../../common/device-stream-store';
8
+ import { FcrUISceneConfig } from '../../type';
8
9
  export declare class ShareScreenUIModule extends UIModule {
9
10
  private _store;
10
11
  constructor(args: {
@@ -14,6 +15,7 @@ export declare class ShareScreenUIModule extends UIModule {
14
15
  securityStore: FcrSecurityStore;
15
16
  uiEventStore: FcrUIEventStore;
16
17
  deviceStreamStore: FcrDeviceStreamStore;
18
+ config: FcrUISceneConfig;
17
19
  });
18
20
  getShareState(): void;
19
21
  startShareScreen(): void;
@@ -31,7 +31,7 @@ window.__DEV_ENGINE_IS_READY__.then(/*#__PURE__*/(0, _asyncToGenerator2["default
31
31
  _context.next = 5;
32
32
  return engine.login();
33
33
  case 5:
34
- roomControl = engine.createRoomControl(roomId);
34
+ roomControl = engine.createMainRoomControl(roomId);
35
35
  userName = 'test-user';
36
36
  deviceStore = new _deviceStore.FcrDeviceStore(userName, engine.getDesktopMediaControl());
37
37
  _context.next = 10;
@@ -66,7 +66,8 @@ window.__DEV_ENGINE_IS_READY__.then(/*#__PURE__*/(0, _asyncToGenerator2["default
66
66
  uiEventStore: uiEventStore
67
67
  }),
68
68
  securityStore: securityStore,
69
- uiEventStore: uiEventStore
69
+ uiEventStore: uiEventStore,
70
+ config: {}
70
71
  });
71
72
  App = (0, _root.hot)(function () {
72
73
  (0, _hooks.useUnmount)(function () {
@@ -18,6 +18,8 @@
18
18
  min-height: 550px;
19
19
  overflow: hidden;
20
20
  -webkit-app-region: no-drag;
21
+ background-color: #fff;
22
+ border-radius: var(--fcr_cornerradius_l);
21
23
  }
22
24
 
23
25
  .share-selection-window__share-content {
@@ -7,6 +7,7 @@ import { FcrSecurityStore } from '../../common/security-store';
7
7
  import { DialogKey } from '../../utilities/constant';
8
8
  import { FcrDeviceStreamStore } from '../../common/device-stream-store';
9
9
  import { FcrDeviceStore } from '../../common/device-store';
10
+ import { FcrUISceneConfig } from '../../type';
10
11
  type ScreenCaptureSourceType = Omit<AgoraRtcDisplayInfo, 'image'> & {
11
12
  image: React.ReactNode | Uint8Array;
12
13
  };
@@ -59,16 +60,18 @@ export default class ShareScreenStore {
59
60
  accessor localUserRole: FcrUserRole;
60
61
  accessor title: string;
61
62
  accessor localMicrophoneMute: boolean;
63
+ private _config;
62
64
  get localVideoState(): boolean | undefined;
63
65
  get localAudioState(): boolean | undefined;
64
66
  get localAudioVolume(): boolean | undefined;
65
- constructor({ roomControl, mediaControl, securityStore, uiEventStore, deviceStore, deviceStreamStore, }: {
67
+ constructor({ roomControl, mediaControl, securityStore, uiEventStore, deviceStore, deviceStreamStore, config, }: {
66
68
  roomControl: FcrBaseRoomControl;
67
69
  mediaControl: FcrDesktopMediaControl;
68
70
  securityStore: FcrSecurityStore;
69
71
  uiEventStore: FcrUIEventStore;
70
72
  deviceStore: FcrDeviceStore;
71
73
  deviceStreamStore: FcrDeviceStreamStore;
74
+ config: FcrUISceneConfig;
72
75
  });
73
76
  handleChooseScreen: (id: string, type?: AgoraRtcScreenCaptureType) => void;
74
77
  setShareWithAudioState(withAudio: boolean): void;
@@ -94,7 +97,6 @@ export default class ShareScreenStore {
94
97
  setAllowUnmuteSelfVideo(allow: boolean): void;
95
98
  setAllowUnmuteSelfAudio(allow: boolean): void;
96
99
  setLockRoomEnabled(lock: boolean): void;
97
- setWaitingRoomEnabled(allow: boolean): void;
98
100
  openDialog(item: DialogKey): void;
99
101
  closeDialog(item: DialogKey): void;
100
102
  openLiveStreamingDialog(): void;
@@ -104,7 +106,7 @@ export default class ShareScreenStore {
104
106
  openVideoWindowDialog(): void;
105
107
  closeControlBar(): void;
106
108
  closeVideoWindowDialog(): void;
107
- setShareWithAudio(withAudio: any, confirmAudioShareWhileMicOff?: boolean): void;
109
+ setShareWithAudio(withAudio: boolean, confirmAudioShareWhileMicOff?: boolean): void;
108
110
  private _setWithAudioState;
109
111
  handleShareScreenResource(): Promise<void>;
110
112
  handleStartShare(id?: string, type?: AgoraRtcScreenCaptureType, withAudio?: boolean, audioProcessingChannel?: AudioProcessingChannel): Promise<void>;
@@ -134,6 +136,7 @@ export default class ShareScreenStore {
134
136
  private _validateShareStart;
135
137
  private _hasScreenSharePermission;
136
138
  private _getExcludeWindows;
139
+ private _initToolbar;
137
140
  }
138
141
  export declare const StoreContext: import("react").Context<ShareScreenStore>;
139
142
  export {};