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,160 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.PeopleIcon = exports.MobileMoreIcon = exports.FcrMobileVideoCrash = exports.FcrMobileMicroCrash = exports.ChatIcon = void 0;
8
+ var _icon = require("agora-ui-foundation/lib/components/icon");
9
+ var _type = require("agora-ui-foundation/lib/components/icon/type");
10
+ var _i18n = require("agora-ui-foundation/lib/i18n");
11
+ var _mobxReact = require("mobx-react");
12
+ var _react = require("react");
13
+ var _globalContext = require("../../common/global-context");
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ var MobileMoreIcon = exports.MobileMoreIcon = (0, _mobxReact.observer)(function (_ref) {
16
+ var _ref$size = _ref.size,
17
+ size = _ref$size === void 0 ? 32 : _ref$size;
18
+ var _useContext = (0, _react.useContext)(_globalContext.FcrMobileGlobalContext),
19
+ settingStore = _useContext.settingStore;
20
+ var setMorePopoverOpened = settingStore.setMorePopoverOpened;
21
+ var colors = {
22
+ iconPrimary: 'var(--fcr_ui_scene_icontext5)',
23
+ iconSecondary: 'var(--fcr_ui_scene_icontext5)'
24
+ };
25
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
26
+ className: "fcr-action-bar-item-wrapper",
27
+ onClick: function onClick() {
28
+ setMorePopoverOpened === null || setMorePopoverOpened === void 0 || setMorePopoverOpened(true);
29
+ },
30
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
31
+ className: "fcr-action-bar-device",
32
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
33
+ className: "fcr-action-bar-device-inner",
34
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
35
+ type: _type.FcrIconType.FCR_MOBILE_MORE,
36
+ size: size,
37
+ colors: colors,
38
+ className: 'fcr-mobile-item-icon'
39
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
40
+ className: "fcr-action-bar-device-text",
41
+ children: (0, _i18n.transI18n)('fmt_participants_member_button_more')
42
+ })]
43
+ })
44
+ })
45
+ });
46
+ });
47
+ var ChatIcon = exports.ChatIcon = (0, _mobxReact.observer)(function (_ref2) {
48
+ var _ref2$size = _ref2.size,
49
+ size = _ref2$size === void 0 ? 32 : _ref2$size,
50
+ unreadMsgCnt = _ref2.unreadMsgCnt;
51
+ var colors = {
52
+ iconPrimary: 'var(--fcr_ui_scene_icontext5)',
53
+ iconSecondary: 'var(--fcr_ui_scene_icontext5)'
54
+ };
55
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
56
+ className: "fcr-action-bar-item-wrapper",
57
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
58
+ className: "fcr-action-bar-device",
59
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
60
+ className: "fcr-action-bar-device-inner",
61
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
62
+ type: _type.FcrIconType.FCR_CHAT_ON,
63
+ size: size,
64
+ colors: colors,
65
+ className: 'fcr-mobile-item-icon'
66
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
67
+ className: "fcr-action-bar-device-text",
68
+ children: (0, _i18n.transI18n)('fmt_chat_label_chat')
69
+ })]
70
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(FcrMobileActionBarRedPoint, {
71
+ num: unreadMsgCnt
72
+ })]
73
+ })
74
+ });
75
+ });
76
+ var PeopleIcon = exports.PeopleIcon = (0, _mobxReact.observer)(function (_ref3) {
77
+ var _ref3$size = _ref3.size,
78
+ size = _ref3$size === void 0 ? 32 : _ref3$size,
79
+ setParticipantsPopoverOpened = _ref3.setParticipantsPopoverOpened,
80
+ _ref3$count = _ref3.count,
81
+ count = _ref3$count === void 0 ? 0 : _ref3$count;
82
+ var colors = {
83
+ iconPrimary: 'var(--fcr_ui_scene_icontext5)',
84
+ iconSecondary: 'var(--fcr_ui_scene_icontext5)'
85
+ };
86
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
87
+ className: "fcr-action-bar-item-wrapper",
88
+ onClick: function onClick() {
89
+ return setParticipantsPopoverOpened(true);
90
+ },
91
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
92
+ className: "fcr-action-bar-device",
93
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
94
+ className: "fcr-action-bar-device-inner",
95
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
96
+ type: _type.FcrIconType.FCR_PEOPLE,
97
+ size: size,
98
+ colors: colors,
99
+ className: 'fcr-mobile-item-icon'
100
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
101
+ className: "fcr-action-bar-device-text",
102
+ children: count
103
+ })]
104
+ })
105
+ })
106
+ });
107
+ });
108
+ var FcrMobileMicroCrash = exports.FcrMobileMicroCrash = function FcrMobileMicroCrash() {
109
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
110
+ className: "fcr-action-bar-item-wrapper",
111
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
112
+ className: "fcr-action-bar-device",
113
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
114
+ className: "fcr-action-bar-device-inner",
115
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
116
+ type: _type.FcrIconType.FCR_MUTECRASH,
117
+ size: 32,
118
+ colors: {
119
+ iconPrimary: "var(--fcr_web_ui_scene_mainicon1)",
120
+ iconSecondary: 'var(--fcr_ui_scene_ramp_red6)'
121
+ },
122
+ className: 'fcr-mobile-item-icon'
123
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
124
+ className: "fcr-action-bar-device-text",
125
+ children: (0, _i18n.transI18n)('fmt_pstn_status_unconnectted')
126
+ })]
127
+ })
128
+ })
129
+ });
130
+ };
131
+ var FcrMobileVideoCrash = exports.FcrMobileVideoCrash = function FcrMobileVideoCrash() {
132
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
133
+ className: "fcr-action-bar-item-wrapper",
134
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
135
+ className: "fcr-action-bar-device",
136
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
137
+ className: "fcr-action-bar-device-inner",
138
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
139
+ type: _type.FcrIconType.FCR_CAMERACRASH,
140
+ size: 32,
141
+ colors: {
142
+ iconPrimary: "var(--fcr_web_ui_scene_mainicon1)",
143
+ iconSecondary: 'var(--fcr_ui_scene_ramp_red6)'
144
+ },
145
+ className: 'fcr-mobile-item-icon'
146
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
147
+ className: "fcr-action-bar-device-text",
148
+ children: (0, _i18n.transI18n)('fmt_pstn_status_unconnectted')
149
+ })]
150
+ })
151
+ })
152
+ });
153
+ };
154
+ var FcrMobileActionBarRedPoint = function FcrMobileActionBarRedPoint(_ref4) {
155
+ var num = _ref4.num;
156
+ return num > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
157
+ className: "fcr-mobile-action-bar-red-point",
158
+ children: num > 99 ? '...' : num
159
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
160
+ };
@@ -0,0 +1,2 @@
1
+ import ActionBarStore from './store';
2
+ export declare const ActionBarContext: import("react").Context<ActionBarStore>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.ActionBarContext = void 0;
8
+ var _react = require("react");
9
+ var ActionBarContext = exports.ActionBarContext = /*#__PURE__*/(0, _react.createContext)(null);
@@ -0,0 +1,33 @@
1
+ .fcr-bottom-action-main-wrap{
2
+ width: 100vw;
3
+ min-height: 70px;
4
+ background-color: var(--fcr_mobile_ui_scene_guide);
5
+ display: flex;
6
+ position: fixed;
7
+ bottom: 0px;
8
+ }
9
+
10
+ .fcr-bottom-action-item{
11
+ width: 20vw;
12
+ height: 70px;
13
+ padding-top: 6px;
14
+ position: relative;
15
+ }
16
+
17
+ .fcr-mobile-action-bar-red-point{
18
+ min-width: 18px;
19
+ height: 17px;
20
+ line-height: 17px;
21
+ background-color: var(--fcr_ui_scene_ramp_red6);
22
+ border-radius: var(--fcr_cornerradius_xxs);
23
+ position: absolute;
24
+ right: 5px;
25
+ top: 2px;
26
+ font-size: 10px;
27
+ text-align: center;
28
+ color: var(--fcr_ui_scene_white10);
29
+ }
30
+
31
+ .fcr-action-bar-device-text{
32
+ color:var(--fcr_ui_scene_icontext1);
33
+ }
@@ -0,0 +1,27 @@
1
+ import { UIModule } from '../../base';
2
+ import './index.css';
3
+ import { FcrDesktopMediaControl, FcrStreamControl, FcrUserControl } from 'fcr-core';
4
+ import { FcrUIEventStore } from '../../common/event-store';
5
+ import { FcrDeviceStore } from '../../common/device-store';
6
+ import { FcrSecurityStore } from '../../common/security-store';
7
+ import { FcrDeviceStreamStore } from '../../common/device-stream-store';
8
+ import { FcrMainRoomControl, FcrWaitingRoomControl } from 'fcr-core/lib/room-control/type';
9
+ import { FcrParticipantStore } from '../../common/participant-store';
10
+ interface FcrMobileActionBarUIModuleArgs {
11
+ roomControl: FcrMainRoomControl | FcrWaitingRoomControl;
12
+ userControl: FcrUserControl;
13
+ uiEventStore: FcrUIEventStore;
14
+ deviceStore: FcrDeviceStore;
15
+ deviceStreamStore: FcrDeviceStreamStore;
16
+ securityStore: FcrSecurityStore;
17
+ streamControl: FcrStreamControl;
18
+ mediaControl: FcrDesktopMediaControl;
19
+ participantStore: FcrParticipantStore;
20
+ }
21
+ export declare class FcrMobileActionBarUIModule extends UIModule {
22
+ private _store;
23
+ constructor(args: FcrMobileActionBarUIModuleArgs);
24
+ getComponent(): import("react/jsx-runtime").JSX.Element;
25
+ release(): void;
26
+ }
27
+ export {};
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ require("core-js/modules/es.reflect.construct.js");
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.FcrMobileActionBarUIModule = void 0;
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
12
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
13
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
15
+ var _base = require("../../base");
16
+ var _view = require("./view");
17
+ var _store = _interopRequireDefault(require("./store"));
18
+ var _context = require("./context");
19
+ require("./index.css");
20
+ var _jsxRuntime = require("react/jsx-runtime");
21
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
22
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
23
+ var FcrMobileActionBarUIModule = exports.FcrMobileActionBarUIModule = /*#__PURE__*/function (_UIModule) {
24
+ function FcrMobileActionBarUIModule(args) {
25
+ var _this;
26
+ (0, _classCallCheck2["default"])(this, FcrMobileActionBarUIModule);
27
+ _this = _callSuper(this, FcrMobileActionBarUIModule);
28
+ _this._store = new _store["default"](args);
29
+ return _this;
30
+ }
31
+ (0, _inherits2["default"])(FcrMobileActionBarUIModule, _UIModule);
32
+ return (0, _createClass2["default"])(FcrMobileActionBarUIModule, [{
33
+ key: "getComponent",
34
+ value: function getComponent() {
35
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.ActionBarContext.Provider, {
36
+ value: this._store,
37
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_view.FcrMobileActionBar, {})
38
+ });
39
+ }
40
+ }, {
41
+ key: "release",
42
+ value: function release() {
43
+ this._store.release();
44
+ }
45
+ }]);
46
+ }(_base.UIModule);
@@ -0,0 +1,130 @@
1
+ .fcr-mobile-participants-cfg-con-wrap .fcr-participant-attendee_mobile {
2
+ width: 92%;
3
+ height: 60px;
4
+ margin: 0 auto;
5
+ }
6
+
7
+ .fcr-participants-more-dropmenu{
8
+ border: 0px !important;
9
+ border-radius: var(--fcr_cornerradius_xl) !important;
10
+ }
11
+
12
+
13
+ .fcr-participants-more-dropmenu .fcr-drop-menu-option-text{
14
+ align-self: center !important;
15
+ }
16
+
17
+ .fcr-participants-more-dropmenu .fcr-drop-menu-option{
18
+ padding: 0px !important;
19
+ }
20
+
21
+ .fcr-participant-attendee_container{
22
+ background-color: var(--fcr_mobile_ui_scene_color_popup_block1);
23
+ border-radius: var(--fcr_cornerradius_xl);
24
+ padding: 8px;
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ width: 100%;
29
+ height: 50px;
30
+ }
31
+ .fcr-participant-attendee_avatar {
32
+ width: 36px;
33
+ height: 36px;
34
+ border-radius: 10px;
35
+ background-color: var(--for_head7);
36
+ font-size: 14px;
37
+ font-weight: 600;
38
+ color: var(--fcr_ui_scene_white10);
39
+ display: flex;
40
+ align-items: center;
41
+ justify-content: center;
42
+ }
43
+
44
+ .fcr-participant-attendee_info {
45
+ flex: 1;
46
+ display: flex;
47
+ flex-direction: column;
48
+ align-items: flex-start;
49
+ justify-content: center;
50
+ margin-left: 8px;
51
+ min-width: 0;
52
+ }
53
+
54
+ .fcr-participant-attendee_info-name {
55
+ font-size: 14px;
56
+ font-weight: 600;
57
+ color: var(--fcr_ui_scene_icontext1);
58
+ max-width: 100%;
59
+ overflow: hidden;
60
+ text-overflow: ellipsis;
61
+ white-space: nowrap;
62
+ }
63
+
64
+ .fcr-participant-attendee_info-role {
65
+ font-size: 12px;
66
+ color: rgba(255, 255, 255, 1) ;
67
+ font-weight: 600;
68
+ padding: 0 4px;
69
+ border-radius: var(--fcr_cornerradius_xxs);
70
+ display: flex;
71
+ align-items: center;
72
+ justify-content: center;
73
+ }
74
+ .fcr-participant-attendee_info-role-host{
75
+ background-color: rgba(68, 75, 113, 1);
76
+ }
77
+ .fcr-participant-attendee_info-role-cohost{
78
+ background-color: rgba(131, 188, 83, 1);
79
+ }
80
+ .fcr-participant-attendee_action{
81
+ display: flex;
82
+ }
83
+ .fcr-participant-attendee_action-item {
84
+ width: 32px;
85
+ height: 32px;
86
+ margin-left: -8px;
87
+ border-radius: 50%;
88
+ background-color: var(--fcr_ui_scene_ramp_red6);
89
+ display: flex;
90
+ align-items: center;
91
+ justify-content: center;
92
+ border: 2px solid var(--fcr_mobile_ui_scene_color_popup_block1);
93
+ }
94
+ .fcr-participant-attendee_action-item-microphone{
95
+ background-color: var(--fcr_ui_scene_white10);
96
+ }
97
+ .fcr-participant-attendee_action-item-camera{
98
+ background-color: var(--fcr_ui_scene_ramp_purple6);
99
+ }
100
+ .fcr-participant-attendee_action-item-microphone{
101
+ background-color: var(--fcr_ui_scene_ramp_green6);
102
+ }
103
+ .fcr-participant-attendee_action-item-screen-sharing{
104
+ background-color: var(--fcr_ui_scene_ramp_green6);
105
+ }
106
+ .fcr-participant-attendee_more {
107
+ width: 32px;
108
+ height: 32px;
109
+ margin-left: -8px;
110
+ display: flex;
111
+ align-items: center;
112
+ justify-content: center;
113
+ background-color: var(--fcr_ui_scene_btn2);
114
+ border-radius: 50%;
115
+ }
116
+
117
+ .attendee__user-info-avatar_speakerSpotlight {
118
+ position: relative;
119
+ }
120
+ .attendee__user-info-avatar_speakerSpotlight::before {
121
+ content: '';
122
+ display: block;
123
+ position: absolute;
124
+ top: -4px;
125
+ left: -4px;
126
+ width: calc(100% + 8px);
127
+ height: calc(100% + 8px);
128
+ border: 2px solid var(--fcr_ui_scene_ramp_green6);
129
+ border-radius: var(--fcr_cornerradius_l);
130
+ }
@@ -0,0 +1,19 @@
1
+ import './index.css';
2
+ import { ParticipantActionType } from 'agora-ui-foundation/lib/components/participants/attendee';
3
+ import { ParticipantUser } from '../../../../common/type';
4
+ interface ParticipantAttendeeProps extends ParticipantUser {
5
+ isBoardActive?: boolean;
6
+ hasPinnedStream: boolean;
7
+ enableSpotlight: boolean;
8
+ activeTab: string;
9
+ moveToMainRoomByUserIds: (userId: string[]) => void;
10
+ hasMutePermission: boolean;
11
+ hasUnmutePermission: boolean;
12
+ hasRequestStartAudioPermission: boolean;
13
+ onParticipantsButtonClick: (type: ParticipantActionType) => void;
14
+ currentPerspectiveType?: 'host' | 'attendee' | 'cohost';
15
+ }
16
+ export declare const ParticipantAttendee: ((props: ParticipantAttendeeProps) => import("react/jsx-runtime").JSX.Element) & {
17
+ displayName: string;
18
+ };
19
+ export {};