fcr-ui-scene-mobile 3.4.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 (281) hide show
  1. package/lib/assets/ground_glass_bg.png +0 -0
  2. package/lib/base.d.ts +11 -0
  3. package/lib/base.js +39 -0
  4. package/lib/common/device-store.d.ts +86 -0
  5. package/lib/common/device-store.js +642 -0
  6. package/lib/common/device-stream-store.d.ts +26 -0
  7. package/lib/common/device-stream-store.js +298 -0
  8. package/lib/common/event-store.d.ts +124 -0
  9. package/lib/common/event-store.js +249 -0
  10. package/lib/common/global-context.d.ts +11 -0
  11. package/lib/common/global-context.js +9 -0
  12. package/lib/common/member-list-data-source.d.ts +28 -0
  13. package/lib/common/member-list-data-source.js +305 -0
  14. package/lib/common/participant-store.d.ts +195 -0
  15. package/lib/common/participant-store.js +1577 -0
  16. package/lib/common/security-store.d.ts +119 -0
  17. package/lib/common/security-store.js +948 -0
  18. package/lib/common/setting-store.d.ts +181 -0
  19. package/lib/common/setting-store.js +797 -0
  20. package/lib/common/type.d.ts +73 -0
  21. package/lib/common/type.js +22 -0
  22. package/lib/config/default-config.d.ts +32 -0
  23. package/lib/config/default-config.js +39 -0
  24. package/lib/config/setting-config.d.ts +16 -0
  25. package/lib/config/setting-config.js +17 -0
  26. package/lib/creator.d.ts +10 -0
  27. package/lib/creator.js +49 -0
  28. package/lib/global.d.ts +8 -0
  29. package/lib/hooks/meeting-time.d.ts +15 -0
  30. package/lib/hooks/meeting-time.js +92 -0
  31. package/lib/hooks/useIsNodePresent.d.ts +4 -0
  32. package/lib/hooks/useIsNodePresent.js +53 -0
  33. package/lib/hooks/useOnRefMount.d.ts +2 -0
  34. package/lib/hooks/useOnRefMount.js +27 -0
  35. package/lib/index.d.ts +6 -0
  36. package/lib/index.js +50 -0
  37. package/lib/mobile-global.css +28 -0
  38. package/lib/modules/action-bar/bottom-icons.d.ts +17 -0
  39. package/lib/modules/action-bar/bottom-icons.js +160 -0
  40. package/lib/modules/action-bar/context.d.ts +2 -0
  41. package/lib/modules/action-bar/context.js +9 -0
  42. package/lib/modules/action-bar/index.css +33 -0
  43. package/lib/modules/action-bar/index.d.ts +27 -0
  44. package/lib/modules/action-bar/index.js +46 -0
  45. package/lib/modules/action-bar/member-list-popup/attendee/index.css +130 -0
  46. package/lib/modules/action-bar/member-list-popup/attendee/index.d.ts +19 -0
  47. package/lib/modules/action-bar/member-list-popup/attendee/index.js +252 -0
  48. package/lib/modules/action-bar/member-list-popup/attendee/list.d.ts +1 -0
  49. package/lib/modules/action-bar/member-list-popup/attendee/list.js +82 -0
  50. package/lib/modules/action-bar/member-list-popup/index.css +35 -0
  51. package/lib/modules/action-bar/member-list-popup/index.d.ts +7 -0
  52. package/lib/modules/action-bar/member-list-popup/index.js +40 -0
  53. package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.css +0 -0
  54. package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.d.ts +12 -0
  55. package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.js +58 -0
  56. package/lib/modules/action-bar/more-popup/index.css +71 -0
  57. package/lib/modules/action-bar/more-popup/index.d.ts +2 -0
  58. package/lib/modules/action-bar/more-popup/index.js +126 -0
  59. package/lib/modules/action-bar/store.d.ts +196 -0
  60. package/lib/modules/action-bar/store.js +1425 -0
  61. package/lib/modules/action-bar/type.d.ts +6 -0
  62. package/lib/modules/action-bar/type.js +13 -0
  63. package/lib/modules/action-bar/view.d.ts +2 -0
  64. package/lib/modules/action-bar/view.js +75 -0
  65. package/lib/modules/audio-stream/ index.d.ts +19 -0
  66. package/lib/modules/audio-stream/ index.js +109 -0
  67. package/lib/modules/audio-stream/index.d.ts +25 -0
  68. package/lib/modules/audio-stream/index.js +135 -0
  69. package/lib/modules/chat/chat-bar/index.css +97 -0
  70. package/lib/modules/chat/chat-bar/index.d.ts +12 -0
  71. package/lib/modules/chat/chat-bar/index.js +129 -0
  72. package/lib/modules/chat/chat-notification/index.css +71 -0
  73. package/lib/modules/chat/chat-notification/index.d.ts +3 -0
  74. package/lib/modules/chat/chat-notification/index.js +75 -0
  75. package/lib/modules/chat/chat-select/index.css +183 -0
  76. package/lib/modules/chat/chat-select/index.d.ts +12 -0
  77. package/lib/modules/chat/chat-select/index.js +223 -0
  78. package/lib/modules/chat/contex.d.ts +2 -0
  79. package/lib/modules/chat/contex.js +9 -0
  80. package/lib/modules/chat/demo-wrapper.d.ts +1 -0
  81. package/lib/modules/chat/demo-wrapper.js +42 -0
  82. package/lib/modules/chat/index.css +108 -0
  83. package/lib/modules/chat/index.d.ts +28 -0
  84. package/lib/modules/chat/index.dev.d.ts +1 -0
  85. package/lib/modules/chat/index.dev.js +58 -0
  86. package/lib/modules/chat/index.js +208 -0
  87. package/lib/modules/chat/message-list.d.ts +22 -0
  88. package/lib/modules/chat/message-list.js +617 -0
  89. package/lib/modules/chat/mock.d.ts +2 -0
  90. package/lib/modules/chat/mock.js +283 -0
  91. package/lib/modules/chat/store.d.ts +183 -0
  92. package/lib/modules/chat/store.js +1101 -0
  93. package/lib/modules/chat/util.d.ts +6 -0
  94. package/lib/modules/chat/util.js +69 -0
  95. package/lib/modules/chat/view.d.ts +11 -0
  96. package/lib/modules/chat/view.js +414 -0
  97. package/lib/modules/layout/bottom-drawer/index.css +34 -0
  98. package/lib/modules/layout/bottom-drawer/index.d.ts +3 -0
  99. package/lib/modules/layout/bottom-drawer/index.js +129 -0
  100. package/lib/modules/layout/components/Layout.d.ts +1 -0
  101. package/lib/modules/layout/components/Layout.js +98 -0
  102. package/lib/modules/layout/components/equip-request-popup/index.css +30 -0
  103. package/lib/modules/layout/components/equip-request-popup/index.d.ts +3 -0
  104. package/lib/modules/layout/components/equip-request-popup/index.js +78 -0
  105. package/lib/modules/layout/components/index.css +78 -0
  106. package/lib/modules/layout/components/index.d.ts +2 -0
  107. package/lib/modules/layout/components/index.js +25 -0
  108. package/lib/modules/layout/context.d.ts +2 -0
  109. package/lib/modules/layout/context.js +9 -0
  110. package/lib/modules/layout/drawer-header/index.css +27 -0
  111. package/lib/modules/layout/drawer-header/index.d.ts +10 -0
  112. package/lib/modules/layout/drawer-header/index.js +54 -0
  113. package/lib/modules/layout/index.css +22 -0
  114. package/lib/modules/layout/index.d.ts +8 -0
  115. package/lib/modules/layout/index.js +47 -0
  116. package/lib/modules/layout/store.d.ts +59 -0
  117. package/lib/modules/layout/store.js +379 -0
  118. package/lib/modules/layout/type.d.ts +65 -0
  119. package/lib/modules/layout/type.js +52 -0
  120. package/lib/modules/layout/view.d.ts +2 -0
  121. package/lib/modules/layout/view.js +10 -0
  122. package/lib/modules/member-layout/context.d.ts +2 -0
  123. package/lib/modules/member-layout/context.js +9 -0
  124. package/lib/modules/member-layout/data.d.ts +2 -0
  125. package/lib/modules/member-layout/data.js +304 -0
  126. package/lib/modules/member-layout/grid/index.css +98 -0
  127. package/lib/modules/member-layout/grid/index.d.ts +21 -0
  128. package/lib/modules/member-layout/grid/index.js +316 -0
  129. package/lib/modules/member-layout/index.css +88 -0
  130. package/lib/modules/member-layout/index.d.ts +8 -0
  131. package/lib/modules/member-layout/index.js +45 -0
  132. package/lib/modules/member-layout/share-toast/index.css +30 -0
  133. package/lib/modules/member-layout/share-toast/index.d.ts +5 -0
  134. package/lib/modules/member-layout/share-toast/index.js +43 -0
  135. package/lib/modules/member-layout/speaker/index.css +30 -0
  136. package/lib/modules/member-layout/speaker/index.d.ts +9 -0
  137. package/lib/modules/member-layout/speaker/index.js +28 -0
  138. package/lib/modules/member-layout/store.d.ts +70 -0
  139. package/lib/modules/member-layout/store.js +479 -0
  140. package/lib/modules/member-layout/user/index.css +121 -0
  141. package/lib/modules/member-layout/user/index.d.ts +34 -0
  142. package/lib/modules/member-layout/user/index.js +355 -0
  143. package/lib/modules/member-layout/user/types.d.ts +16 -0
  144. package/lib/modules/member-layout/user/types.js +6 -0
  145. package/lib/modules/member-layout/view.d.ts +2 -0
  146. package/lib/modules/member-layout/view.js +225 -0
  147. package/lib/modules/state-bar/context.d.ts +2 -0
  148. package/lib/modules/state-bar/context.js +9 -0
  149. package/lib/modules/state-bar/index.css +79 -0
  150. package/lib/modules/state-bar/index.d.ts +17 -0
  151. package/lib/modules/state-bar/index.js +55 -0
  152. package/lib/modules/state-bar/leaving-room/index.css +14 -0
  153. package/lib/modules/state-bar/leaving-room/index.d.ts +7 -0
  154. package/lib/modules/state-bar/leaving-room/index.js +38 -0
  155. package/lib/modules/state-bar/meeting-detail/index.css +72 -0
  156. package/lib/modules/state-bar/meeting-detail/index.d.ts +2 -0
  157. package/lib/modules/state-bar/meeting-detail/index.js +59 -0
  158. package/lib/modules/state-bar/meeting-detail/meeting-info/copy.d.ts +4 -0
  159. package/lib/modules/state-bar/meeting-detail/meeting-info/copy.js +81 -0
  160. package/lib/modules/state-bar/meeting-detail/meeting-info/index.css +92 -0
  161. package/lib/modules/state-bar/meeting-detail/meeting-info/index.d.ts +2 -0
  162. package/lib/modules/state-bar/meeting-detail/meeting-info/index.js +188 -0
  163. package/lib/modules/state-bar/meeting-detail/net-quality/index.css +27 -0
  164. package/lib/modules/state-bar/meeting-detail/net-quality/index.d.ts +2 -0
  165. package/lib/modules/state-bar/meeting-detail/net-quality/index.js +87 -0
  166. package/lib/modules/state-bar/store.d.ts +76 -0
  167. package/lib/modules/state-bar/store.js +561 -0
  168. package/lib/modules/state-bar/view.d.ts +7 -0
  169. package/lib/modules/state-bar/view.js +215 -0
  170. package/lib/modules/whiteboard/app.d.ts +2 -0
  171. package/lib/modules/whiteboard/app.js +41 -0
  172. package/lib/modules/whiteboard/components/control-bar/index.css +53 -0
  173. package/lib/modules/whiteboard/components/control-bar/index.d.ts +2 -0
  174. package/lib/modules/whiteboard/components/control-bar/index.js +156 -0
  175. package/lib/modules/whiteboard/components/control-bar/store.d.ts +35 -0
  176. package/lib/modules/whiteboard/components/control-bar/store.js +288 -0
  177. package/lib/modules/whiteboard/components/loading/index.css +76 -0
  178. package/lib/modules/whiteboard/components/loading/index.d.ts +2 -0
  179. package/lib/modules/whiteboard/components/loading/index.js +68 -0
  180. package/lib/modules/whiteboard/components/loading/loading.png +0 -0
  181. package/lib/modules/whiteboard/components/multi-window/index.css +65 -0
  182. package/lib/modules/whiteboard/components/multi-window/index.d.ts +5 -0
  183. package/lib/modules/whiteboard/components/multi-window/index.js +39 -0
  184. package/lib/modules/whiteboard/components/pagination/index.css +228 -0
  185. package/lib/modules/whiteboard/components/pagination/index.d.ts +15 -0
  186. package/lib/modules/whiteboard/components/pagination/index.js +163 -0
  187. package/lib/modules/whiteboard/components/pagination/store.d.ts +18 -0
  188. package/lib/modules/whiteboard/components/pagination/store.js +17 -0
  189. package/lib/modules/whiteboard/components/progress/index.d.ts +5 -0
  190. package/lib/modules/whiteboard/components/progress/index.js +43 -0
  191. package/lib/modules/whiteboard/components/progress/style.css +52 -0
  192. package/lib/modules/whiteboard/components/scene-pagination.d.ts +1 -0
  193. package/lib/modules/whiteboard/components/scene-pagination.js +30 -0
  194. package/lib/modules/whiteboard/components/switch-theme/index.css +98 -0
  195. package/lib/modules/whiteboard/components/switch-theme/index.d.ts +3 -0
  196. package/lib/modules/whiteboard/components/switch-theme/index.js +89 -0
  197. package/lib/modules/whiteboard/components/switch-theme/item.d.ts +9 -0
  198. package/lib/modules/whiteboard/components/switch-theme/item.js +53 -0
  199. package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +4 -0
  200. package/lib/modules/whiteboard/components/switch-theme/libs.js +29 -0
  201. package/lib/modules/whiteboard/components/toolbar/ style.css +588 -0
  202. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.d.ts +5 -0
  203. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +38 -0
  204. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.d.ts +1 -0
  205. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +107 -0
  206. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.d.ts +1 -0
  207. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +59 -0
  208. package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.d.ts +2 -0
  209. package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +44 -0
  210. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.d.ts +4 -0
  211. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +89 -0
  212. package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.d.ts +1 -0
  213. package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +63 -0
  214. package/lib/modules/whiteboard/components/toolbar/components/history.d.ts +2 -0
  215. package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -0
  216. package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.d.ts +2 -0
  217. package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +39 -0
  218. package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.d.ts +1 -0
  219. package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.js +66 -0
  220. package/lib/modules/whiteboard/components/toolbar/components/move-handle.d.ts +5 -0
  221. package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +134 -0
  222. package/lib/modules/whiteboard/components/toolbar/components/pen-picker.d.ts +4 -0
  223. package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +106 -0
  224. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.d.ts +4 -0
  225. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +168 -0
  226. package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
  227. package/lib/modules/whiteboard/components/toolbar/hooks/index.js +211 -0
  228. package/lib/modules/whiteboard/components/toolbar/index.d.ts +2 -0
  229. package/lib/modules/whiteboard/components/toolbar/index.js +183 -0
  230. package/lib/modules/whiteboard/components/toolbar/store.d.ts +51 -0
  231. package/lib/modules/whiteboard/components/toolbar/store.js +248 -0
  232. package/lib/modules/whiteboard/context.d.ts +69 -0
  233. package/lib/modules/whiteboard/context.js +36 -0
  234. package/lib/modules/whiteboard/index.d.ts +119 -0
  235. package/lib/modules/whiteboard/index.js +1134 -0
  236. package/lib/modules/whiteboard/style.css +143 -0
  237. package/lib/modules/whiteboard/type.d.ts +94 -0
  238. package/lib/modules/whiteboard/type.js +89 -0
  239. package/lib/modules/whiteboard/utils.d.ts +12 -0
  240. package/lib/modules/whiteboard/utils.js +36 -0
  241. package/lib/plugins/css-preset-plugin.d.ts +1 -0
  242. package/lib/plugins/css-preset-plugin.js +29 -0
  243. package/lib/plugins/module-dev-plugin.d.ts +12 -0
  244. package/lib/plugins/module-dev-plugin.js +183 -0
  245. package/lib/plugins/multi-lang-plugin.d.ts +1 -0
  246. package/lib/plugins/multi-lang-plugin.js +19 -0
  247. package/lib/plugins/rtm-plugin.d.ts +1 -0
  248. package/lib/plugins/rtm-plugin.js +5 -0
  249. package/lib/plugins/web-rtc-plugin.d.ts +1 -0
  250. package/lib/plugins/web-rtc-plugin.js +5 -0
  251. package/lib/translations/enUS.d.ts +1855 -0
  252. package/lib/translations/enUS.js +1895 -0
  253. package/lib/translations/zhCN.d.ts +1852 -0
  254. package/lib/translations/zhCN.js +1892 -0
  255. package/lib/type.d.ts +121 -0
  256. package/lib/type.js +46 -0
  257. package/lib/ui-manager.d.ts +32 -0
  258. package/lib/ui-manager.js +426 -0
  259. package/lib/ui-scene.d.ts +14 -0
  260. package/lib/ui-scene.js +141 -0
  261. package/lib/utilities/board-context.d.ts +4 -0
  262. package/lib/utilities/board-context.js +12 -0
  263. package/lib/utilities/constant.d.ts +286 -0
  264. package/lib/utilities/constant.js +271 -0
  265. package/lib/utilities/copyText.d.ts +2 -0
  266. package/lib/utilities/copyText.js +43 -0
  267. package/lib/utilities/extract.d.ts +5 -0
  268. package/lib/utilities/extract.js +117 -0
  269. package/lib/utilities/hooks.d.ts +14 -0
  270. package/lib/utilities/hooks.js +101 -0
  271. package/lib/utilities/mute-action.d.ts +4 -0
  272. package/lib/utilities/mute-action.js +48 -0
  273. package/lib/utilities/parameters.d.ts +7 -0
  274. package/lib/utilities/parameters.js +20 -0
  275. package/lib/utilities/regex.d.ts +1 -0
  276. package/lib/utilities/regex.js +14 -0
  277. package/lib/utilities/tools.d.ts +27 -0
  278. package/lib/utilities/tools.js +169 -0
  279. package/lib/utilities/useNamespace.d.ts +15 -0
  280. package/lib/utilities/useNamespace.js +66 -0
  281. package/package.json +63 -0
@@ -0,0 +1,215 @@
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.NetworkQuality = exports.MeetingTimeText = exports.FcrMobileStateBar = void 0;
9
+ require("core-js/modules/web.timers.js");
10
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
+ var _mobxReact = require("mobx-react");
12
+ var _i18n = require("agora-ui-foundation/lib/i18n");
13
+ require("./index.css");
14
+ var _button = require("agora-ui-foundation/lib/components/button");
15
+ var _icon = require("agora-ui-foundation/lib/components/icon");
16
+ var _type = require("agora-ui-foundation/lib/components/icon/type");
17
+ var _meetingDetail = require("./meeting-detail");
18
+ var _react = require("react");
19
+ var _context = require("./context");
20
+ var _meetingTime = require("../../hooks/meeting-time");
21
+ var _dialog = require("agora-ui-foundation/lib/components/dialog");
22
+ var _leavingRoom = require("./leaving-room");
23
+ var _globalContext = require("../../common/global-context");
24
+ var _useIsNodePresent2 = require("../../hooks/useIsNodePresent");
25
+ var _jsxRuntime = require("react/jsx-runtime");
26
+ var RotationVideoBtn = function RotationVideoBtn(_ref) {
27
+ var onClick = _ref.onClick;
28
+ var colors = {
29
+ iconPrimary: 'var(--fcr_ui_scene_icontext5)',
30
+ iconSecondary: 'var(--fcr_ui_scene_icontext5)'
31
+ };
32
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
33
+ className: "fcr-mobile-video-rotation2-btn",
34
+ onClick: onClick,
35
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
36
+ type: _type.FcrIconType.FCR_VIDEOROTATION2,
37
+ size: 30,
38
+ colors: colors
39
+ })
40
+ });
41
+ };
42
+ var qualityImgMap = {
43
+ poor: _type.FcrIconType.FCR_V2_SIGNAL_BAD,
44
+ average: _type.FcrIconType.FCR_V2_SIGNAL_NORMAL,
45
+ excellent: _type.FcrIconType.FCR_V2_SIGNAL_GOOD,
46
+ unknown: _type.FcrIconType.FCR_V2_SIGNAL_GOOD
47
+ };
48
+ var NetworkQuality = exports.NetworkQuality = (0, _mobxReact.observer)(function (_ref2) {
49
+ var status = _ref2.status;
50
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
51
+ className: "fcr-top-action-network-quality",
52
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
53
+ type: qualityImgMap[status],
54
+ size: 20
55
+ })
56
+ });
57
+ });
58
+ var MeetingTimeText = exports.MeetingTimeText = (0, _mobxReact.observer)(function () {
59
+ var _useContext = (0, _react.useContext)(_context.StoreContext),
60
+ scheduleInfo = _useContext.scheduleInfo;
61
+ var _useMeetingTime = (0, _meetingTime.useMeetingTime)(scheduleInfo),
62
+ totalHourText = _useMeetingTime.totalHourText,
63
+ totalMinuteText = _useMeetingTime.totalMinuteText,
64
+ meetingTime = _useMeetingTime.meetingTime;
65
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
66
+ className: "fcr-top-action-center-lasttime",
67
+ children: [meetingTime, "(", totalHourText, totalMinuteText, ")"]
68
+ });
69
+ });
70
+ var FullScreenLockConfirmDialogContent = function FullScreenLockConfirmDialogContent(_ref3) {
71
+ var leave = _ref3.leave;
72
+ var _useState = (0, _react.useState)(false),
73
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
74
+ bgLoaded = _useState2[0],
75
+ setBgLoaded = _useState2[1];
76
+ (0, _react.useEffect)(function () {
77
+ var waitTimber = setTimeout(function () {
78
+ setBgLoaded(true);
79
+ }, 400);
80
+ return function () {
81
+ clearTimeout(waitTimber);
82
+ };
83
+ }, []);
84
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
85
+ className: "fcr-mobile-full-screen-cover",
86
+ children: bgLoaded && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
87
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
88
+ className: "fcr-mobile-lock-room-dialog-infos",
89
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
90
+ className: "fcr-mobile-lock-room-dialog-infos-title",
91
+ children: (0, _i18n.transI18n)('fmt_actionbar_tips_locked')
92
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
93
+ className: "fcr-mobile-lock-room-dialog-infos-tip",
94
+ children: (0, _i18n.transI18n)('fmt_actionbar_tips_recheckleave')
95
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
96
+ onClick: function onClick() {
97
+ leave();
98
+ _dialog.FcrDialogApi.closeAll();
99
+ },
100
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
101
+ styleType: "danger",
102
+ shape: "circle",
103
+ className: "fcr-mobile-lock-room-dialog-leave-btn",
104
+ children: (0, _i18n.transI18n)('fmt_popup_button_leavemeeting')
105
+ })
106
+ })]
107
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
108
+ className: "fcr-mobile-cancel-circle-btn",
109
+ onClick: function onClick() {
110
+ _dialog.FcrDialogApi.closeAll();
111
+ },
112
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
113
+ type: _type.FcrIconType.FCR_WRONG,
114
+ size: 40,
115
+ colors: {
116
+ iconPrimary: 'var(--fcr_ui_scene_white10)'
117
+ }
118
+ })
119
+ })]
120
+ })
121
+ });
122
+ };
123
+ var FcrMobileStateBar = exports.FcrMobileStateBar = (0, _mobxReact.observer)(function () {
124
+ var _useContext2 = (0, _react.useContext)(_context.StoreContext),
125
+ setMeetingDetailPopoverOpened = _useContext2.setMeetingDetailPopoverOpened,
126
+ networkStatus = _useContext2.networkStatus,
127
+ leave = _useContext2.leave,
128
+ end = _useContext2.end;
129
+ var _useContext3 = (0, _react.useContext)(_globalContext.FcrMobileGlobalContext),
130
+ participantStore = _useContext3.participantStore,
131
+ securityStore = _useContext3.securityStore,
132
+ deviceStore = _useContext3.deviceStore;
133
+ var _useIsNodePresent = (0, _useIsNodePresent2.useIsNodePresent)('.fcr-member-layout'),
134
+ isNodePresent = _useIsNodePresent.isNodePresent;
135
+ var localUser = participantStore.localUser;
136
+ var isLockRoomEnabled = securityStore.isLockRoomEnabled;
137
+ var switchCamera = deviceStore.switchCamera;
138
+ var handleEnd = function handleEnd() {
139
+ if (isLockRoomEnabled()) {
140
+ _dialog.FcrDialogApi.injectOpen({
141
+ id: 'fcr-lock-end-meeting-dialog',
142
+ dialogProps: {
143
+ content: /*#__PURE__*/(0, _jsxRuntime.jsx)(FullScreenLockConfirmDialogContent, {
144
+ leave: leave
145
+ }),
146
+ width: window.innerWidth,
147
+ closable: false
148
+ }
149
+ });
150
+ } else {
151
+ _dialog.FcrDialogApi.open({
152
+ id: 'fcr-end-meeting-dialog',
153
+ dialogProps: {
154
+ content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_leavingRoom.FcrMobileLeavingRoom, {
155
+ end: end,
156
+ leave: leave
157
+ }),
158
+ width: 322,
159
+ closable: false
160
+ }
161
+ });
162
+ }
163
+ };
164
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
165
+ className: "fcr-top-action-main-wrap",
166
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
167
+ className: "fcr-top-action-left-wrap",
168
+ children: localUser.hasVideo && /*#__PURE__*/(0, _jsxRuntime.jsx)(RotationVideoBtn, {
169
+ onClick: switchCamera
170
+ })
171
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
172
+ className: "fcr-top-action-center-wrap",
173
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
174
+ className: "fcr-top-action-center-infos",
175
+ onClick: function onClick() {
176
+ return setMeetingDetailPopoverOpened(true);
177
+ },
178
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
179
+ className: "fcr-top-action-center-title",
180
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(NetworkQuality, {
181
+ status: networkStatus
182
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
183
+ children: (0, _i18n.transI18n)('fmt_meetinginfo_dialog_title_meeting_info')
184
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
185
+ className: "fcr-top-action-center-extra-icon",
186
+ type: _type.FcrIconType.FCR_DROPDOWN,
187
+ colors: {
188
+ iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
189
+ },
190
+ size: 24
191
+ })]
192
+ })
193
+ })
194
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
195
+ className: "fcr-top-action-right-wrap",
196
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
197
+ shape: "rounded",
198
+ styleType: "danger",
199
+ size: 'XS',
200
+ onClick: function onClick() {
201
+ return handleEnd();
202
+ },
203
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
204
+ type: _type.FcrIconType.FCR_ENDMEETING,
205
+ className: "fcr-top-end-meeting-btn",
206
+ size: 32,
207
+ colors: {
208
+ iconPrimary: 'var(--fcr_ui_scene_white10)',
209
+ iconSecondary: 'var(--fcr_ui_scene_white10)'
210
+ }
211
+ })
212
+ })
213
+ }), isNodePresent ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_meetingDetail.FcrMobileMeetingDetailPopup, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {})]
214
+ });
215
+ });
@@ -0,0 +1,2 @@
1
+ import './style.css';
2
+ export declare const Whiteboard: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,41 @@
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.Whiteboard = void 0;
9
+ var _react = require("react");
10
+ var _context = require("./context");
11
+ var _mobxReact = require("mobx-react");
12
+ var _loading = require("./components/loading");
13
+ var _progress = _interopRequireDefault(require("./components/progress"));
14
+ require("./style.css");
15
+ var _i18n = require("agora-ui-foundation/lib/i18n");
16
+ var _fcrCore = require("fcr-core");
17
+ var _jsxRuntime = require("react/jsx-runtime");
18
+ var Whiteboard = exports.Whiteboard = (0, _mobxReact.observer)(function () {
19
+ var transI18n = (0, _i18n.useI18n)();
20
+ var _useContext = (0, _react.useContext)(_context.BoardUIContext),
21
+ _useContext$observabl = _useContext.observables,
22
+ connectionState = _useContext$observabl.connectionState,
23
+ progress = _useContext$observabl.progress,
24
+ handleBoardDomLoad = _useContext.handleBoardDomLoad,
25
+ handleCollectorDomLoad = _useContext.handleCollectorDomLoad;
26
+ var loading = connectionState === _fcrCore.FcrConnectionState.CONNECTING || connectionState === _fcrCore.FcrConnectionState.RECONNECTING;
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
28
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
29
+ className: "board-widget-app",
30
+ ref: handleBoardDomLoad
31
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
32
+ className: "window-manager-collector",
33
+ ref: function ref(_ref) {
34
+ handleCollectorDomLoad(_ref);
35
+ }
36
+ }), loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_loading.Loading, {}), progress > 0 && progress < 100 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_progress["default"], {
37
+ title: "".concat(transI18n('fmt_screenshare_whiteboard_tips_downloading'), "..."),
38
+ progress: progress
39
+ })]
40
+ });
41
+ });
@@ -0,0 +1,53 @@
1
+ .whiteboard-controlbar {
2
+ width: 100%;
3
+ height: 28px;
4
+ border-bottom: 1px solid var(--fcr_ui_scene_line1);
5
+ border-top: 1px solid var(--fcr_ui_scene_line1);
6
+ background: var(--fcr_mobile_ui_scene_color_popup_block3);
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ column-gap: 12px;
11
+ }
12
+ .whiteboard-controlbar-left {
13
+ flex: 1;
14
+ justify-content: flex-end;
15
+ align-items: center;
16
+ display: flex;
17
+ font-weight: 400;
18
+ color: var(-fcr_ui_scene_icontext1);
19
+ font-size: 12px;
20
+ }
21
+ .whiteboard-controlbar-center {
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ column-gap: 12px;
26
+ height: 20px;
27
+ }
28
+ .whiteboard-controlbar-center .whiteboard-controlbar-item:hover svg path {
29
+ fill: var(--fcr_web_ui_scene_mainicon2);
30
+ }
31
+ .whiteboard-controlbar-center .divider-vertical {
32
+ height: 50%;
33
+ }
34
+ .whiteboard-controlbar-right {
35
+ flex: 1;
36
+ }
37
+ .whiteboard-controlbar-right .fcr-button-XXS {
38
+ height: 20px;
39
+ padding: 0 5px;
40
+ }
41
+ .whiteboard-controlbar-item {
42
+ width: 20px;
43
+ height: 20px;
44
+ border-radius: 6px;
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ cursor: pointer;
49
+ }
50
+ .whiteboard-controlbar-item:hover {
51
+ background: var(--fcr_ui_scene_ramp_brand0);
52
+ }
53
+
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ export declare const WhiteboardControlbar: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,156 @@
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.WhiteboardControlbar = void 0;
9
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
+ var _icon = require("agora-ui-foundation/lib/components/icon");
11
+ var _type = require("agora-ui-foundation/lib/components/icon/type");
12
+ var _switchTheme = _interopRequireDefault(require("../switch-theme"));
13
+ var _mobxReact = require("mobx-react");
14
+ var _react = require("react");
15
+ var _store = require("./store");
16
+ var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
17
+ var _button = require("agora-ui-foundation/lib/components/button");
18
+ var _divider = _interopRequireDefault(require("agora-ui-foundation/lib/components/divider"));
19
+ require("./index.css");
20
+ var _i18n = require("agora-ui-foundation/lib/i18n");
21
+ var _jsxRuntime = require("react/jsx-runtime");
22
+ var WhiteboardControlbar = exports.WhiteboardControlbar = (0, _mobxReact.observer)(function () {
23
+ var _useState = (0, _react.useState)(false),
24
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
25
+ loading = _useState2[0],
26
+ setLoading = _useState2[1];
27
+ var transI18n = (0, _i18n.useI18n)();
28
+ var _useContext = (0, _react.useContext)(_store.WhiteboardControlBarUIContext),
29
+ onZoomin = _useContext.onZoomin,
30
+ onZoomout = _useContext.onZoomout,
31
+ onOrigin = _useContext.onOrigin,
32
+ onAdaptive = _useContext.onAdaptive,
33
+ onClose = _useContext.onClose,
34
+ onEnable = _useContext.onEnable,
35
+ ownerUser = _useContext.ownerUser,
36
+ currentUser = _useContext.currentUser,
37
+ canWriteBoard = _useContext.canWriteBoard,
38
+ isAdaptived = _useContext.isAdaptived,
39
+ isMaxmum = _useContext.isMaxmum,
40
+ isMinimum = _useContext.isMinimum,
41
+ isOriginal = _useContext.isOriginal,
42
+ controlEnabled = _useContext.controlEnabled,
43
+ isHost = _useContext.isHost;
44
+ (0, _react.useEffect)(function () {
45
+ return function () {
46
+ return setLoading(false);
47
+ };
48
+ }, []);
49
+ var isSponsor = (ownerUser === null || ownerUser === void 0 ? void 0 : ownerUser.userId) === (currentUser === null || currentUser === void 0 ? void 0 : currentUser.userId);
50
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
51
+ className: "whiteboard-controlbar",
52
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
53
+ className: "whiteboard-controlbar-center",
54
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
55
+ content: isMinimum ? transI18n('fmt_screenshare_whiteboard_tips_alreadyminumumsize') : transI18n('fmt_screenshare_whiteboard_button_narrow'),
56
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
57
+ className: "whiteboard-controlbar-item",
58
+ onClick: onZoomout,
59
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
60
+ type: _type.FcrIconType.FCR_ZOOMOUT,
61
+ size: 22,
62
+ colors: {
63
+ iconPrimary: isMinimum ? 'gray' : 'var(--fcr_ui_scene_icontext1)'
64
+ }
65
+ })
66
+ })
67
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
68
+ content: isMaxmum ? transI18n('fmt_screenshare_whiteboard_tips_alreadymaximumsize') : transI18n('fmt_screenshare_whiteboard_button_enlarge'),
69
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
70
+ className: "whiteboard-controlbar-item",
71
+ onClick: onZoomin,
72
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
73
+ type: _type.FcrIconType.FCR_ZOOMIN,
74
+ size: 22,
75
+ colors: {
76
+ iconPrimary: isMaxmum ? 'gray' : 'var(--fcr_ui_scene_icontext1)'
77
+ }
78
+ })
79
+ })
80
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
81
+ content: isAdaptived ? transI18n('fmt_screenshare_whiteboard_tips_alreadyadaptionsize') : transI18n('fmt_screenshare_lables_adaptionlsize'),
82
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
83
+ className: "whiteboard-controlbar-item",
84
+ onClick: onAdaptive,
85
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
86
+ type: _type.FcrIconType.FCR_FULLCOVERAGE,
87
+ size: 22,
88
+ colors: {
89
+ iconPrimary: isAdaptived ? 'gray' : 'var(--fcr_ui_scene_icontext1)'
90
+ }
91
+ })
92
+ })
93
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
94
+ content: isOriginal ? transI18n('fmt_screenshare_tips_alreadyoriginalsize') : transI18n('fmt_screenshare_lables_originalsize'),
95
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
96
+ className: "whiteboard-controlbar-item",
97
+ onClick: onOrigin,
98
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
99
+ type: _type.FcrIconType.FCR_EQUALRATIO,
100
+ size: 22,
101
+ colors: {
102
+ iconPrimary: isOriginal ? 'gray' : 'var(--fcr_ui_scene_icontext1)'
103
+ }
104
+ })
105
+ })
106
+ }), (canWriteBoard || isSponsor || isHost) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
107
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_divider["default"], {
108
+ type: "vertical"
109
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
110
+ content: transI18n('fmt_screenshare_whiteboard_options_changetheme'),
111
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
112
+ className: "whiteboard-controlbar-item",
113
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switchTheme["default"], {})
114
+ })
115
+ })]
116
+ })]
117
+ }), !controlEnabled && !isSponsor && !isHost && /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
118
+ content: canWriteBoard ? transI18n('fmt_screenshare_options_enableedit') : transI18n('fmt_screenshare_tips_unenabled'),
119
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
120
+ className: "whiteboard-controlbar-item",
121
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
122
+ type: _type.FcrIconType.FCR_WHITEBOARD2,
123
+ size: 22,
124
+ colors: {
125
+ iconPrimary: canWriteBoard ? 'var(--fcr_ui_scene_icontext1)' : 'gray'
126
+ },
127
+ onClick: function onClick() {
128
+ return canWriteBoard ? onEnable(true) : null;
129
+ }
130
+ })
131
+ })
132
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
133
+ className: "whiteboard-controlbar-right",
134
+ children: [isSponsor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
135
+ loading: loading,
136
+ size: "XXS",
137
+ styleType: "danger",
138
+ shape: "rounded",
139
+ onClick: function onClick() {
140
+ onClose();
141
+ setLoading(true);
142
+ },
143
+ children: transI18n('fmt_screenshare_controlbar_button_stop')
144
+ }), controlEnabled && !isSponsor && canWriteBoard && /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
145
+ loading: loading,
146
+ size: "XXS",
147
+ styleType: "normal",
148
+ shape: "rounded",
149
+ onClick: function onClick() {
150
+ return onEnable(false);
151
+ },
152
+ children: transI18n('fmt_screenshare_whiteboard_button_exitdrawing')
153
+ })]
154
+ })]
155
+ });
156
+ });
@@ -0,0 +1,35 @@
1
+ import { FcrUIEventStore } from '../../../../common/event-store';
2
+ import { FcrUserInfo } from 'fcr-core/lib/type';
3
+ import { FcrStreamControl, FcrUserControl } from 'fcr-core';
4
+ import { FcrSecurityStore } from '../../../../common/security-store';
5
+ export declare class WhiteboardControlBarStore {
6
+ accessor ownerUser: FcrUserInfo | undefined;
7
+ accessor currentUser: FcrUserInfo | undefined;
8
+ accessor lonelywindowOpened: boolean;
9
+ accessor isMinimum: boolean;
10
+ accessor isMaxmum: boolean;
11
+ accessor isAdaptived: boolean;
12
+ accessor isOriginal: boolean;
13
+ accessor scaleValue: number;
14
+ accessor controlEnabled: boolean;
15
+ accessor isHost: boolean;
16
+ private _uiEventStore;
17
+ private _userControl;
18
+ private _securityStore;
19
+ constructor({ uiEventStore, userControl, securityStore, }: {
20
+ uiEventStore: FcrUIEventStore;
21
+ streamControl: FcrStreamControl;
22
+ userControl: FcrUserControl;
23
+ securityStore: FcrSecurityStore;
24
+ });
25
+ get canWriteBoard(): boolean;
26
+ onZoomin(): void;
27
+ onZoomout(): void;
28
+ onAdaptive(): void;
29
+ onOrigin(): void;
30
+ onLonelyWindow(): void;
31
+ onClose(): void;
32
+ setOwnerUser(user: FcrUserInfo): void;
33
+ onEnable(controlEnabled: boolean): void;
34
+ }
35
+ export declare const WhiteboardControlBarUIContext: import("react").Context<WhiteboardControlBarStore>;