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
@@ -384,21 +384,17 @@ var FcrPretestStore = exports.FcrPretestStore = /*#__PURE__*/function () {
384
384
  }, {
385
385
  key: "_handleCameraListUpdated",
386
386
  value: function () {
387
- var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(cameraList, currentDeviceExist) {
388
- var previewCameraEnabled, deviceId, cameraTrack;
387
+ var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(cameraList) {
388
+ var previewCameraEnabled, cameraTrack;
389
389
  return _regenerator["default"].wrap(function _callee$(_context) {
390
390
  while (1) switch (_context.prev = _context.next) {
391
391
  case 0:
392
392
  previewCameraEnabled = this.previewCameraEnabled;
393
- if (!currentDeviceExist) {
394
- if (cameraList.length > 0) {
395
- deviceId = cameraList[0].deviceId;
396
- this.setCameraId(deviceId);
393
+ if (cameraList.length > 0) {
394
+ if (previewCameraEnabled) {
397
395
  cameraTrack = this._deviceStore.mediaControl.getCameraTrack(this._deviceStore.cameraId);
398
- if (previewCameraEnabled) {
399
- cameraTrack.start();
400
- this._setPreviewCameraEnabled(true);
401
- }
396
+ cameraTrack.start();
397
+ this._setPreviewCameraEnabled(true);
402
398
  }
403
399
  }
404
400
  case 2:
@@ -407,7 +403,7 @@ var FcrPretestStore = exports.FcrPretestStore = /*#__PURE__*/function () {
407
403
  }
408
404
  }, _callee, this);
409
405
  }));
410
- function _handleCameraListUpdated(_x, _x2) {
406
+ function _handleCameraListUpdated(_x) {
411
407
  return _handleCameraListUpdated2.apply(this, arguments);
412
408
  }
413
409
  return _handleCameraListUpdated;
@@ -48,7 +48,8 @@ var ChatElectronDialog = exports.ChatElectronDialog = (0, _mobxReact.observer)(f
48
48
  fullscreen: false,
49
49
  maximizable: false,
50
50
  y: store.currentDialogBounds.y,
51
- show: !(0, _platform.isWindows)()
51
+ show: !(0, _platform.isWindows)(),
52
+ transparent: true
52
53
  });
53
54
  return function () {
54
55
  node && (0, _reactDom.unmountComponentAtNode)(node);
@@ -59,14 +59,16 @@ var ConfirmElectronDialog = (0, _mobxReact.observer)(function (_ref) {
59
59
  frame: false,
60
60
  fullscreen: false,
61
61
  maximizable: false,
62
- width: (params === null || params === void 0 ? void 0 : params.width) || 415,
63
- height: (params === null || params === void 0 ? void 0 : params.height) || 190,
62
+ // TODO:
63
+ width: (params === null || params === void 0 ? void 0 : params.width) || 320,
64
+ height: (params === null || params === void 0 ? void 0 : params.height) || 168 + (params.closable || params.closable === undefined ? 16 : 0),
64
65
  minWidth: 255,
65
66
  minHeight: 160,
66
67
  maxWidth: 620,
67
68
  maxHeight: 700,
68
69
  x: x + ((params === null || params === void 0 ? void 0 : params.x) || 0),
69
- y: y + ((params === null || params === void 0 ? void 0 : params.y) || 0)
70
+ y: y + ((params === null || params === void 0 ? void 0 : params.y) || 0),
71
+ transparent: true
70
72
  });
71
73
  case 9:
72
74
  case "end":
@@ -21,6 +21,7 @@ var ConnectionGatewayElectronDialog = exports.ConnectionGatewayElectronDialog =
21
21
  (0, _react.useEffect)(function () {
22
22
  var node;
23
23
  window.runtime.openRendererWindow('connection-gateway', function (dom, browserWindow) {
24
+ browserWindow.webContents.insertCSS("\n ::-webkit-scrollbar {\n display: none;\n }\n ");
24
25
  browserRef.current = browserWindow;
25
26
  browserWindow.focus();
26
27
  _dialogs.dialogWindows.set(_constant.DialogKey.CONNECTION_GATEWAY, browserWindow);
@@ -43,7 +44,8 @@ var ConnectionGatewayElectronDialog = exports.ConnectionGatewayElectronDialog =
43
44
  x: 0,
44
45
  y: 0
45
46
  },
46
- resizable: false
47
+ resizable: false,
48
+ transparent: true
47
49
  });
48
50
  return function () {
49
51
  node && (0, _reactDom.unmountComponentAtNode)(node);
@@ -8,9 +8,7 @@
8
8
  overflow: hidden;
9
9
  }
10
10
  .connection-gateway-dialog.electron {
11
- border: none;
12
11
  box-shadow: none;
13
- border-radius: 0;
14
12
  }
15
13
  .connection-gateway-dialog_close {
16
14
  width: 14px;
@@ -22,6 +22,7 @@ var DeviceSettingElectronDialog = exports.DeviceSettingElectronDialog = (0, _mob
22
22
  (0, _react.useEffect)(function () {
23
23
  var node;
24
24
  window.runtime.openRendererWindow('device-setting', function (dom, browserWindow) {
25
+ browserWindow.webContents.insertCSS("\n ::-webkit-scrollbar {\n display: none;\n }\n ");
25
26
  _dialogs.dialogWindows.set(_constant.DialogKey.DEVICE_SETTINGS, browserWindow);
26
27
  node = dom;
27
28
  if (store.currentDialogBounds.height) {
@@ -61,7 +62,8 @@ var DeviceSettingElectronDialog = exports.DeviceSettingElectronDialog = (0, _mob
61
62
  minWidth: 580,
62
63
  minHeight: 600,
63
64
  maxWidth: 670,
64
- maxHeight: 800
65
+ maxHeight: 800,
66
+ transparent: true
65
67
  });
66
68
  return function () {
67
69
  node && (0, _reactDom.unmountComponentAtNode)(node);
@@ -14,7 +14,6 @@
14
14
  }
15
15
 
16
16
  .fcr-device-setting-dialog-wrapper .fcr-device-settings {
17
- cursor: move;
18
17
  height: calc(100% - 46px);
19
18
  }
20
19
  .fcr-device-setting-dialog-wrapper .fcr-device-settings-audio {
@@ -0,0 +1,5 @@
1
+ import { PropsWithChildren } from 'react';
2
+ declare const OperationWaitingRoomDialog: ({ children, params, }: PropsWithChildren<{
3
+ params: any;
4
+ }>) => null;
5
+ export default OperationWaitingRoomDialog;
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
10
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
11
+ var _mobxReact = require("mobx-react");
12
+ var _react = require("react");
13
+ var _context2 = require("../../context");
14
+ var _reactDom = require("react-dom");
15
+ var _renderer = require("../../../../utilities/renderer");
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+ var OperationWaitingRoomDialog = (0, _mobxReact.observer)(function (_ref) {
18
+ var children = _ref.children,
19
+ params = _ref.params;
20
+ var store = (0, _react.useContext)(_context2.StoreContext);
21
+ (0, _react.useEffect)(function () {
22
+ var node;
23
+ (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
24
+ var _ref3, x, y;
25
+ return _regenerator["default"].wrap(function _callee$(_context) {
26
+ while (1) switch (_context.prev = _context.next) {
27
+ case 0:
28
+ _context.next = 2;
29
+ return store.setWorkArea();
30
+ case 2:
31
+ _context.t0 = _context.sent;
32
+ if (_context.t0) {
33
+ _context.next = 5;
34
+ break;
35
+ }
36
+ _context.t0 = {
37
+ x: 0,
38
+ y: 0
39
+ };
40
+ case 5:
41
+ _ref3 = _context.t0;
42
+ x = _ref3.x;
43
+ y = _ref3.y;
44
+ window.runtime.openRendererWindow('operation-waiting-room', function (dom, browserWindow) {
45
+ node = dom;
46
+ // browserWindow.focus(); // 这里打开的confirm dialog 不会走 openRendererWindow 中的 focus 逻辑,所以单独 focus 一下
47
+
48
+ browserWindow.setBounds({
49
+ width: 445,
50
+ height: 237
51
+ });
52
+ (0, _renderer.handleWillClose)(browserWindow, function () {
53
+ (0, _reactDom.unmountComponentAtNode)(node);
54
+ });
55
+ (0, _reactDom.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_context2.StoreContext.Provider, {
56
+ value: store,
57
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
58
+ children: children
59
+ })
60
+ }), dom);
61
+ }, {
62
+ frame: false,
63
+ fullscreen: false,
64
+ maximizable: false,
65
+ // TODO:
66
+ width: (params === null || params === void 0 ? void 0 : params.width) || 320,
67
+ height: (params === null || params === void 0 ? void 0 : params.height) || 168 + (params.closable || params.closable === undefined ? 16 : 0),
68
+ minWidth: 255,
69
+ minHeight: 160,
70
+ maxWidth: 620,
71
+ maxHeight: 700,
72
+ x: x + ((params === null || params === void 0 ? void 0 : params.x) || 0),
73
+ y: y + ((params === null || params === void 0 ? void 0 : params.y) || 0),
74
+ transparent: true
75
+ });
76
+ case 9:
77
+ case "end":
78
+ return _context.stop();
79
+ }
80
+ }, _callee);
81
+ }))();
82
+ return function () {
83
+ node && (0, _reactDom.unmountComponentAtNode)(node);
84
+ window.runtime.closeRendererWindow('operation-waiting-room');
85
+ };
86
+ }, []);
87
+ return null;
88
+ });
89
+ var _default = exports["default"] = OperationWaitingRoomDialog;
@@ -0,0 +1,44 @@
1
+ .close-waiting-room-dialog {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ justify-content: center;
6
+ text-align: center;
7
+ background-color: white;
8
+ width: 100%;
9
+ height: 100%;
10
+ }
11
+
12
+ .close-waiting-room-dialog .fcr-dialog-title {
13
+ font-weight: 600;
14
+ font-size: 16px;
15
+ margin-bottom: 10px;
16
+ color: var(--fcr_ui_scene_icontext1);
17
+ }
18
+
19
+ .close-waiting-room-dialog .fcr-dialog-content {
20
+ font-weight: 400;
21
+ font-size: 13px;
22
+ margin-bottom: 10px;
23
+ color: var(--fcr_ui_scene_icontext1);
24
+ width: 90%;
25
+ }
26
+
27
+ .close-waiting-room-dialog button {
28
+ width: 100%;
29
+ margin-bottom: 10px;
30
+ }
31
+
32
+ .close-waiting-room-dialog .fcr-button-white {
33
+ background-color: var(--fcr_ui_scene_btn2);
34
+ color: var(--fcr_ui_scene_icontext2);
35
+ }
36
+
37
+ .close-waiting-room-dialog .fcr-button-white:hover {
38
+ background-color: var(--fcr_ui_scene_btn2) !important;
39
+ color: var(--fcr_ui_scene_icontext2) !important;
40
+ }
41
+
42
+ .fcr-dialog-buttons {
43
+ width: 90%;
44
+ }
@@ -0,0 +1,5 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import './index.css';
3
+ export declare const OperationWaitingRoomDialog: FC<PropsWithChildren<{
4
+ params: any;
5
+ }>>;
@@ -0,0 +1,156 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.symbol.js");
4
+ require("core-js/modules/es.array.filter.js");
5
+ require("core-js/modules/es.array.for-each.js");
6
+ require("core-js/modules/es.array.iterator.js");
7
+ require("core-js/modules/es.array.push.js");
8
+ require("core-js/modules/es.object.define-properties.js");
9
+ require("core-js/modules/es.object.define-property.js");
10
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
11
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
12
+ require("core-js/modules/es.object.keys.js");
13
+ require("core-js/modules/es.object.to-string.js");
14
+ require("core-js/modules/es.string.iterator.js");
15
+ require("core-js/modules/es.weak-map.js");
16
+ require("core-js/modules/esnext.async-iterator.filter.js");
17
+ require("core-js/modules/esnext.async-iterator.for-each.js");
18
+ require("core-js/modules/esnext.iterator.constructor.js");
19
+ require("core-js/modules/esnext.iterator.filter.js");
20
+ require("core-js/modules/esnext.iterator.for-each.js");
21
+ require("core-js/modules/esnext.weak-map.delete-all.js");
22
+ require("core-js/modules/esnext.weak-map.emplace.js");
23
+ require("core-js/modules/web.dom-collections.for-each.js");
24
+ require("core-js/modules/web.dom-collections.iterator.js");
25
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
26
+ var _typeof = require("@babel/runtime/helpers/typeof");
27
+ Object.defineProperty(exports, "__esModule", {
28
+ value: true
29
+ });
30
+ exports.OperationWaitingRoomDialog = void 0;
31
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
32
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
33
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
34
+ var _mobxReact = require("mobx-react");
35
+ var _react = _interopRequireWildcard(require("react"));
36
+ var _context3 = require("../../context");
37
+ var _reactRnd = require("react-rnd");
38
+ var _electron = _interopRequireDefault(require("./electron"));
39
+ var _platform = require("../../../../utilities/platform");
40
+ var _i18n = require("agora-ui-foundation/lib/i18n");
41
+ var _button = require("agora-ui-foundation/lib/components/button");
42
+ require("./index.css");
43
+ var _env = require("agora-foundation/lib/utilities/env");
44
+ var _jsxRuntime = require("react/jsx-runtime");
45
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
46
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
47
+ 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; }
48
+ 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; } // import { ConfirmContentProps } from 'agora-ui-foundation/lib/components/confirm-content';
49
+ var CloseWaitingRoomDialogContent = (0, _mobxReact.observer)(function (_ref) {
50
+ var totalWaitingRoomUser = _ref.totalWaitingRoomUser;
51
+ var t = (0, _i18n.useI18n)();
52
+ var _useContext = (0, _react.useContext)(_context3.StoreContext),
53
+ moveToMainRoomAllMember = _useContext.moveToMainRoomAllMember,
54
+ closeWaitingRoomDialog = _useContext.closeWaitingRoomDialog;
55
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
56
+ className: "close-waiting-room-dialog",
57
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
58
+ className: "fcr-dialog-title",
59
+ children: t('fmt_waitingroom_mobile_setting_popup_label_close')
60
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
61
+ className: "fcr-dialog-content",
62
+ children: t('fmt_waitingroom_mobile_setting_popup_label_choose', {
63
+ reason1: totalWaitingRoomUser
64
+ })
65
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
66
+ className: "fcr-dialog-buttons",
67
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
68
+ size: "S",
69
+ styleType: "normal",
70
+ shape: "rounded",
71
+ onClick: /*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
72
+ return _regenerator["default"].wrap(function _callee$(_context) {
73
+ while (1) switch (_context.prev = _context.next) {
74
+ case 0:
75
+ moveToMainRoomAllMember(true);
76
+ closeWaitingRoomDialog();
77
+ case 2:
78
+ case "end":
79
+ return _context.stop();
80
+ }
81
+ }, _callee);
82
+ })),
83
+ children: t('fmt_waitingroom_mobile_setting_popup_button_admit_all')
84
+ })
85
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
86
+ className: "fcr-dialog-buttons",
87
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
88
+ size: "S",
89
+ shape: "rounded",
90
+ styleType: "white",
91
+ onClick: /*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
92
+ return _regenerator["default"].wrap(function _callee2$(_context2) {
93
+ while (1) switch (_context2.prev = _context2.next) {
94
+ case 0:
95
+ moveToMainRoomAllMember(false);
96
+ closeWaitingRoomDialog();
97
+ case 2:
98
+ case "end":
99
+ return _context2.stop();
100
+ }
101
+ }, _callee2);
102
+ })),
103
+ children: t('fmt_waitingroom_mobile_setting_popup_button_cancel')
104
+ })
105
+ })]
106
+ });
107
+ });
108
+ var OperationWaitingRoomDialog = exports.OperationWaitingRoomDialog = (0, _mobxReact.observer)(function (_ref4) {
109
+ var params = _ref4.params;
110
+ var store = (0, _react.useContext)(_context3.StoreContext);
111
+ var containerWidth = window.innerWidth;
112
+ var containerHeight = window.innerHeight;
113
+ var _ref5 = (0, _env.isElectron)() ? window.runtime.browserWindow.getBounds() : {
114
+ x: document.body.offsetLeft,
115
+ y: document.body.offsetTop
116
+ },
117
+ offsetX = _ref5.x,
118
+ offsetY = _ref5.y;
119
+ var width = (params === null || params === void 0 ? void 0 : params.width) || 415;
120
+ var height = (params === null || params === void 0 ? void 0 : params.height) || 180;
121
+ var x = containerWidth / 2 - width / 2 + ((0, _platform.isWindows)() ? offsetX : 0);
122
+ var y = containerHeight / 2 - height / 2 + ((0, _platform.isWindows)() ? offsetY : 0);
123
+ if ((0, _env.isElectron)()) {
124
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_electron["default"], {
125
+ params: _objectSpread(_objectSpread({}, params), {}, {
126
+ x: x,
127
+ y: y
128
+ }),
129
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(CloseWaitingRoomDialogContent, {
130
+ totalWaitingRoomUser: params.totalWaitingRoomUser
131
+ })
132
+ });
133
+ }
134
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context3.StoreContext.Provider, {
135
+ value: store,
136
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRnd.Rnd, {
137
+ "default": {
138
+ x: x,
139
+ y: y,
140
+ width: width,
141
+ height: height
142
+ },
143
+ maxHeight: 700,
144
+ maxWidth: width,
145
+ minWidth: width,
146
+ minHeight: height,
147
+ bounds: '.fcr-confirm-dialog-wrapper_web',
148
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
149
+ className: "fcr-confirm-dialog-wrapper_web",
150
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(CloseWaitingRoomDialogContent, {
151
+ totalWaitingRoomUser: params.totalWaitingRoomUser
152
+ })
153
+ })
154
+ })
155
+ });
156
+ });
@@ -79,7 +79,8 @@ var ParticipantElectronDialog = exports.ParticipantElectronDialog = (0, _mobxRea
79
79
  maxHeight: 700,
80
80
  y: store.currentDialogBounds.y,
81
81
  center: true,
82
- show: !(0, _platform.isWindows)()
82
+ show: !(0, _platform.isWindows)(),
83
+ transparent: true
83
84
  }));
84
85
  return function () {
85
86
  node && (0, _reactDom.unmountComponentAtNode)(node);
@@ -0,0 +1,5 @@
1
+ import { PropsWithChildren } from 'react';
2
+ declare const DialogContent: ({ children, params, }: PropsWithChildren<{
3
+ params: any;
4
+ }>) => null;
5
+ export default DialogContent;
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
10
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
11
+ var _mobxReact = require("mobx-react");
12
+ var _react = require("react");
13
+ var _context2 = require("../../context");
14
+ var _reactDom = require("react-dom");
15
+ var _renderer = require("../../../../utilities/renderer");
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+ var DialogContent = (0, _mobxReact.observer)(function (_ref) {
18
+ var children = _ref.children,
19
+ params = _ref.params;
20
+ var store = (0, _react.useContext)(_context2.StoreContext);
21
+ (0, _react.useEffect)(function () {
22
+ var node;
23
+ (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
24
+ var _ref3, x, y;
25
+ return _regenerator["default"].wrap(function _callee$(_context) {
26
+ while (1) switch (_context.prev = _context.next) {
27
+ case 0:
28
+ _context.next = 2;
29
+ return store.setWorkArea();
30
+ case 2:
31
+ _context.t0 = _context.sent;
32
+ if (_context.t0) {
33
+ _context.next = 5;
34
+ break;
35
+ }
36
+ _context.t0 = {
37
+ x: 0,
38
+ y: 0
39
+ };
40
+ case 5:
41
+ _ref3 = _context.t0;
42
+ x = _ref3.x;
43
+ y = _ref3.y;
44
+ window.runtime.openRendererWindow("operation-waiting-room-".concat(params.type), function (dom, browserWindow) {
45
+ node = dom;
46
+ browserWindow.focus(); // 这里打开的confirm dialog 不会走 openRendererWindow 中的 focus 逻辑,所以单独 focus 一下
47
+
48
+ browserWindow.setBounds({
49
+ width: 400,
50
+ height: 300
51
+ });
52
+ (0, _renderer.handleWillClose)(browserWindow, function () {
53
+ (0, _reactDom.unmountComponentAtNode)(node);
54
+ });
55
+ (0, _reactDom.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_context2.StoreContext.Provider, {
56
+ value: store,
57
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
58
+ children: children
59
+ })
60
+ }), dom);
61
+ }, {
62
+ frame: false,
63
+ fullscreen: false,
64
+ maximizable: false,
65
+ // TODO:
66
+ width: (params === null || params === void 0 ? void 0 : params.width) || 320,
67
+ height: (params === null || params === void 0 ? void 0 : params.height) || 168 + (params.closable || params.closable === undefined ? 16 : 0),
68
+ minWidth: 255,
69
+ minHeight: 160,
70
+ maxWidth: 620,
71
+ maxHeight: 700,
72
+ x: x + ((params === null || params === void 0 ? void 0 : params.x) || 0),
73
+ y: y + ((params === null || params === void 0 ? void 0 : params.y) || 0),
74
+ transparent: true
75
+ });
76
+ case 9:
77
+ case "end":
78
+ return _context.stop();
79
+ }
80
+ }, _callee);
81
+ }))();
82
+ return function () {
83
+ node && (0, _reactDom.unmountComponentAtNode)(node);
84
+ window.runtime.closeRendererWindow("operation-waiting-room-".concat(params.type));
85
+ };
86
+ }, []);
87
+ return null;
88
+ });
89
+ var _default = exports["default"] = DialogContent;
@@ -0,0 +1,50 @@
1
+ .operate-waiting-room-dialog-content {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ justify-content: center;
6
+ background: white;
7
+ padding: 20px;
8
+ border-radius: 20px;
9
+ }
10
+
11
+ .operate-waiting-room-dialog-title {
12
+ font-weight: 600;
13
+ font-size: 16px;
14
+ margin-bottom: 10px;
15
+ }
16
+
17
+ .operate-waiting-room-dialog-tooltip {
18
+ margin-bottom: 10px;
19
+ }
20
+
21
+ .operate-waiting-room-dialog-confirm {
22
+ display: flex;
23
+ }
24
+
25
+ .operate-waiting-room-dialog-btns {
26
+ display: flex;
27
+ justify-content: space-between;
28
+ width: 100%;
29
+ margin-top: 10px;
30
+ }
31
+
32
+ .operate-waiting-room-dialog-btns .fcr-button-normal {
33
+ width: 48%;
34
+ }
35
+
36
+ .operate-waiting-room-dialog-btns .fcr-button-white {
37
+ background-color: var(--fcr_ui_scene_btn2);
38
+ color: var(--fcr_ui_scene_icontext2);
39
+ width: 48%;
40
+ }
41
+
42
+ .operate-waiting-room-dialog-btns .fcr-button-white:hover {
43
+ background-color: var(--fcr_ui_scene_btn2) !important;
44
+ color: var(--fcr_ui_scene_icontext2) !important;
45
+ width: 48%;
46
+ }
47
+
48
+ .operate-waiting-room-dialog-btns .fcr-button-danger {
49
+ width: 48%;
50
+ }
@@ -0,0 +1,5 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import './index.css';
3
+ export declare const RemoveAdmitWaitingRoomDialog: ({ children, params }: PropsWithChildren<{
4
+ params: any;
5
+ }>) => import("react/jsx-runtime").JSX.Element;