fcr-ui-scene 3.4.2 → 3.4.4

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 (215) hide show
  1. package/lib/common/device-store.d.ts +23 -14
  2. package/lib/common/device-store.js +361 -252
  3. package/lib/common/device-stream-store.d.ts +8 -14
  4. package/lib/common/device-stream-store.js +254 -116
  5. package/lib/common/event-store.d.ts +35 -10
  6. package/lib/common/event-store.js +64 -13
  7. package/lib/common/security-store.d.ts +47 -39
  8. package/lib/common/security-store.js +335 -379
  9. package/lib/electron/app.js +1 -0
  10. package/lib/modules/action-bar/action-bar-collapes-items.d.ts +4 -1
  11. package/lib/modules/action-bar/action-bar-collapes-items.js +38 -21
  12. package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +7 -0
  13. package/lib/modules/action-bar/components/apps/useWidgetList.js +43 -0
  14. package/lib/modules/action-bar/components/leave/assign-host.d.ts +8 -1
  15. package/lib/modules/action-bar/components/leave/assign-host.js +1 -1
  16. package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +16 -1
  17. package/lib/modules/action-bar/smaller.js +5 -5
  18. package/lib/modules/chat/chat-bar/index.css +6 -0
  19. package/lib/modules/chat/chat-bar/index.d.ts +3 -3
  20. package/lib/modules/chat/chat-bar/index.js +51 -39
  21. package/lib/modules/chat/chat-select/index.css +27 -7
  22. package/lib/modules/chat/chat-select/index.d.ts +1 -1
  23. package/lib/modules/chat/chat-select/index.js +18 -4
  24. package/lib/modules/chat/chat.d.ts +1 -2
  25. package/lib/modules/chat/chat.js +196 -128
  26. package/lib/modules/chat/components/chat-select/select-input/index.d.ts +7 -0
  27. package/lib/modules/chat/components/chat-select/select-input/index.js +35 -0
  28. package/lib/modules/chat/components/chat-select/select-item/index.d.ts +12 -0
  29. package/lib/modules/chat/components/chat-select/select-item/index.js +153 -0
  30. package/lib/modules/chat/components/chat-tabs/index.d.ts +2 -0
  31. package/lib/modules/chat/components/chat-tabs/index.js +61 -0
  32. package/lib/modules/chat/components/message-list/chat-empty/index.d.ts +2 -0
  33. package/lib/modules/chat/components/message-list/chat-empty/index.js +26 -0
  34. package/lib/modules/chat/components/message-list/history-unread-message-button/index.d.ts +7 -0
  35. package/lib/modules/chat/components/message-list/history-unread-message-button/index.js +55 -0
  36. package/lib/modules/chat/components/message-list/message-item/index.d.ts +15 -0
  37. package/lib/modules/chat/components/message-list/message-item/index.js +279 -0
  38. package/lib/modules/chat/components/message-list/scroll-bottom-button/index.d.ts +9 -0
  39. package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +67 -0
  40. package/lib/modules/chat/message-list.js +68 -51
  41. package/lib/modules/components/dialog-container/component/body.js +1 -2
  42. package/lib/modules/components/dialog-container/index.d.ts +2 -2
  43. package/lib/modules/components/member-window/components/member-actions/components/audio-control.d.ts +6 -0
  44. package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +36 -0
  45. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +40 -0
  46. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +170 -0
  47. package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +11 -0
  48. package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +105 -0
  49. package/lib/modules/components/member-window/components/member-actions/components/layout/index.d.ts +9 -0
  50. package/lib/modules/components/member-window/components/member-actions/components/layout/index.js +42 -0
  51. package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +11 -0
  52. package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +159 -0
  53. package/lib/modules/components/member-window/components/member-actions/components/share-status.d.ts +2 -0
  54. package/lib/modules/components/member-window/components/member-actions/components/share-status.js +32 -0
  55. package/lib/modules/components/member-window/components/member-actions/components/user-info.d.ts +16 -0
  56. package/lib/modules/components/member-window/components/member-actions/components/user-info.js +130 -0
  57. package/lib/modules/components/member-window/components/member-actions/components/user-tag.d.ts +12 -0
  58. package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +57 -0
  59. package/lib/modules/components/member-window/components/member-actions/index.d.ts +3 -0
  60. package/lib/modules/components/member-window/components/member-actions/index.js +122 -0
  61. package/lib/modules/components/member-window/components/member-actions/libs/index.d.ts +2 -0
  62. package/lib/modules/components/member-window/components/member-actions/libs/index.js +24 -0
  63. package/lib/modules/components/member-window/components/member-actions/provider.d.ts +21 -0
  64. package/lib/modules/components/member-window/components/member-actions/provider.js +77 -0
  65. package/lib/modules/components/member-window/components/member-actions/store.d.ts +48 -0
  66. package/lib/modules/components/member-window/components/member-actions/store.js +306 -0
  67. package/lib/modules/components/member-window/components/member-board.d.ts +2 -0
  68. package/lib/modules/components/member-window/components/member-board.js +63 -0
  69. package/lib/modules/components/member-window/components/mic-volume.d.ts +2 -0
  70. package/lib/modules/components/member-window/components/mic-volume.js +23 -0
  71. package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +4 -0
  72. package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +40 -0
  73. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +8 -0
  74. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +62 -0
  75. package/lib/modules/components/member-window/components/video-player/index.d.ts +9 -0
  76. package/lib/modules/components/member-window/components/video-player/index.js +38 -0
  77. package/lib/modules/components/member-window/types.d.ts +78 -0
  78. package/lib/modules/components/member-window/types.js +6 -0
  79. package/lib/modules/connection-gateway/components/tabs/index.js +2 -1
  80. package/lib/modules/control-bar/components/meeting-details/index.js +7 -15
  81. package/lib/modules/control-bar/components/more-actions/index.js +5 -15
  82. package/lib/modules/dialog/components/system-preference/assets/bg1.png +0 -0
  83. package/lib/modules/dialog/components/system-preference/assets/bg2.png +0 -0
  84. package/lib/modules/dialog/components/system-preference/assets/fcr_png_host.png +0 -0
  85. package/lib/modules/dialog/components/widget/electron.d.ts +5 -0
  86. package/lib/modules/dialog/components/widget/electron.js +41 -0
  87. package/lib/modules/dialog/components/widget/index.d.ts +6 -0
  88. package/lib/modules/dialog/components/widget/index.js +41 -0
  89. package/lib/modules/dialog/type.d.ts +84 -0
  90. package/lib/modules/dialog/type.js +6 -0
  91. package/lib/modules/invite/components/pstn-invite.js +4 -13
  92. package/lib/modules/invite/pstn-invite.js +7 -9
  93. package/lib/modules/invite/store.d.ts +2 -0
  94. package/lib/modules/invite/store.js +6 -0
  95. package/lib/modules/invite/voip-invite.js +5 -6
  96. package/lib/modules/layout/member-window/index.css +116 -18
  97. package/lib/modules/layout/member-window/index.d.ts +10 -3
  98. package/lib/modules/layout/member-window/index.js +227 -115
  99. package/lib/modules/participant/attendee/index.css +0 -51
  100. package/lib/modules/participant/attendee/index.d.ts +8 -5
  101. package/lib/modules/participant/attendee/index.js +61 -15
  102. package/lib/modules/participant/components/attendee/components/interpreter-tag/index.d.ts +3 -0
  103. package/lib/modules/participant/components/attendee/components/interpreter-tag/index.js +48 -0
  104. package/lib/modules/participant/components/confirm-input/index.d.ts +6 -0
  105. package/lib/modules/participant/components/confirm-input/index.js +49 -0
  106. package/lib/modules/participant/components/drop-menu/util.d.ts +5 -0
  107. package/lib/modules/participant/components/drop-menu/util.js +28 -0
  108. package/lib/modules/participant/components/participants/components/footer/components/buttons.d.ts +6 -0
  109. package/lib/modules/participant/components/participants/components/footer/components/buttons.js +52 -0
  110. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +60 -0
  111. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.d.ts +2 -0
  112. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +166 -0
  113. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +5 -0
  114. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +28 -0
  115. package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +13 -0
  116. package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +5 -0
  117. package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +242 -0
  118. package/lib/modules/participant/components/participants/components/footer/index.d.ts +5 -0
  119. package/lib/modules/participant/components/participants/components/footer/index.js +47 -0
  120. package/lib/modules/participant/components/participants/components/merge/index.d.ts +11 -0
  121. package/lib/modules/participant/components/participants/components/merge/index.js +49 -0
  122. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +191 -0
  123. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.d.ts +4 -0
  124. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +204 -0
  125. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +49 -0
  126. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.d.ts +5 -0
  127. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +219 -0
  128. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +5 -0
  129. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +70 -0
  130. package/lib/modules/participant/components/participants/components/participants/index.css +104 -0
  131. package/lib/modules/participant/components/participants/components/participants/index.d.ts +3 -0
  132. package/lib/modules/participant/components/participants/components/participants/index.js +110 -0
  133. package/lib/modules/participant/components/participants/components/render-tab/index.d.ts +2 -0
  134. package/lib/modules/participant/components/participants/components/render-tab/index.js +49 -0
  135. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.d.ts +3 -0
  136. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +48 -0
  137. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.d.ts +6 -0
  138. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +28 -0
  139. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.d.ts +7 -0
  140. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.js +39 -0
  141. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +69 -0
  142. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.d.ts +5 -0
  143. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +135 -0
  144. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.d.ts +7 -0
  145. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.js +31 -0
  146. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +12 -0
  147. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +82 -0
  148. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.d.ts +4 -0
  149. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.js +26 -0
  150. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.d.ts +2 -0
  151. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +75 -0
  152. package/lib/modules/participant/components/participants/components/render-user/index.d.ts +5 -0
  153. package/lib/modules/participant/components/participants/components/render-user/index.js +21 -0
  154. package/lib/modules/participant/components/participants/render-tab/index.d.ts +2 -0
  155. package/lib/modules/participant/components/participants/render-tab/index.js +49 -0
  156. package/lib/modules/participant/components/participants/render-user/index.d.ts +5 -0
  157. package/lib/modules/participant/components/participants/render-user/index.js +21 -0
  158. package/lib/modules/participant/components/participants/types.d.ts +96 -0
  159. package/lib/modules/participant/components/participants/types.js +37 -0
  160. package/lib/modules/participant/components/user-action/audio-button/index.d.ts +7 -0
  161. package/lib/modules/participant/components/user-action/audio-button/index.js +31 -0
  162. package/lib/modules/participant/components/user-action/move-actions-popover/index.d.ts +12 -0
  163. package/lib/modules/participant/components/user-action/move-actions-popover/index.js +82 -0
  164. package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.d.ts +4 -0
  165. package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.js +26 -0
  166. package/lib/modules/share-screen/selection/index.css +4 -0
  167. package/lib/modules/share-screen/selection/index.js +126 -129
  168. package/lib/modules/share-screen/share-state-bar/index.js +1 -1
  169. package/lib/modules/state-bar/meeting-details.js +29 -34
  170. package/lib/modules/video-window/components/deviceState/index.d.ts +7 -0
  171. package/lib/modules/video-window/components/deviceState/index.js +75 -0
  172. package/lib/modules/video-window/components/members/index.css +51 -0
  173. package/lib/modules/video-window/components/members/index.d.ts +2 -0
  174. package/lib/modules/video-window/components/members/index.js +130 -0
  175. package/lib/modules/video-window/components/speaking/index.css +86 -0
  176. package/lib/modules/video-window/components/speaking/index.d.ts +3 -0
  177. package/lib/modules/video-window/components/speaking/index.js +48 -0
  178. package/lib/modules/video-window/components/topControl/index.css +35 -0
  179. package/lib/modules/video-window/components/topControl/index.d.ts +3 -0
  180. package/lib/modules/video-window/components/topControl/index.js +79 -0
  181. package/lib/modules/widget/index.css +17 -0
  182. package/lib/modules/widget/index.d.ts +10 -0
  183. package/lib/modules/widget/index.js +114 -0
  184. package/lib/modules/widget/sdk.d.ts +30 -0
  185. package/lib/modules/widget/sdk.js +221 -0
  186. package/lib/modules/widget/store.d.ts +14 -0
  187. package/lib/modules/widget/store.js +28 -0
  188. package/lib/modules/widget/type.d.ts +155 -0
  189. package/lib/modules/widget/type.js +6 -0
  190. package/lib/modules/widget/view.d.ts +2 -0
  191. package/lib/modules/widget/view.js +47 -0
  192. package/lib/modules/widget/web-widget.d.ts +29 -0
  193. package/lib/modules/widget/web-widget.js +234 -0
  194. package/lib/providers/ability-provider.d.ts +24 -0
  195. package/lib/providers/ability-provider.js +36 -0
  196. package/lib/providers/widget-provider.d.ts +44 -0
  197. package/lib/providers/widget-provider.js +167 -0
  198. package/lib/schema.d.ts +114 -0
  199. package/lib/schema.js +77 -0
  200. package/lib/shared-data-source/member-data.d.ts +126 -0
  201. package/lib/shared-data-source/member-data.js +465 -0
  202. package/lib/translations/enUS.d.ts +5 -0
  203. package/lib/translations/enUS.js +9 -3
  204. package/lib/translations/zhCN.d.ts +5 -0
  205. package/lib/translations/zhCN.js +13 -7
  206. package/lib/utilities/extract.d.ts +1 -1
  207. package/lib/utilities/logger.d.ts +8 -0
  208. package/lib/utilities/logger.js +42 -0
  209. package/lib/utilities/meeting-detail.d.ts +2 -0
  210. package/lib/utilities/meeting-detail.js +56 -0
  211. package/lib/utilities/validate-params.d.ts +2 -0
  212. package/lib/utilities/validate-params.js +16 -0
  213. package/lib/widget-sdk.d.ts +2 -0
  214. package/lib/widget-sdk.js +13 -0
  215. package/package.json +5 -5
@@ -0,0 +1,9 @@
1
+ import { AgoraRtcRenderMode, AgoraRtcVideoStreamType } from 'fcr-core/lib/imports';
2
+ export declare const FcrUIVideoPlayer: (props: {
3
+ isLocal: boolean;
4
+ streamId: string;
5
+ hasVideoStream: boolean;
6
+ videoStreamType: AgoraRtcVideoStreamType;
7
+ renderMode: AgoraRtcRenderMode;
8
+ hasScreenSharing: boolean;
9
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,38 @@
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.push.js");
7
+ require("core-js/modules/es.object.define-properties.js");
8
+ require("core-js/modules/es.object.define-property.js");
9
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
10
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
11
+ require("core-js/modules/es.object.keys.js");
12
+ require("core-js/modules/es.object.to-string.js");
13
+ require("core-js/modules/esnext.async-iterator.filter.js");
14
+ require("core-js/modules/esnext.async-iterator.for-each.js");
15
+ require("core-js/modules/esnext.iterator.constructor.js");
16
+ require("core-js/modules/esnext.iterator.filter.js");
17
+ require("core-js/modules/esnext.iterator.for-each.js");
18
+ require("core-js/modules/web.dom-collections.for-each.js");
19
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
20
+ Object.defineProperty(exports, "__esModule", {
21
+ value: true
22
+ });
23
+ exports.FcrUIVideoPlayer = void 0;
24
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
25
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
26
+ var _remoteVideoPlayer = require("./components/remote-video-player");
27
+ var _localVideoPlayer = require("./components/local-video-player");
28
+ var _jsxRuntime = require("react/jsx-runtime");
29
+ var _excluded = ["isLocal"];
30
+ 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; }
31
+ 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; }
32
+ var FcrUIVideoPlayer = exports.FcrUIVideoPlayer = function FcrUIVideoPlayer(props) {
33
+ var isLocal = props.isLocal,
34
+ others = (0, _objectWithoutProperties2["default"])(props, _excluded);
35
+ return isLocal ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_localVideoPlayer.FcrUILocalVideoPlayer, {
36
+ renderMode: others.renderMode
37
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_remoteVideoPlayer.FcrUIRemoteVideoPlayer, _objectSpread({}, others));
38
+ };
@@ -0,0 +1,78 @@
1
+ import { AgoraRtcRenderMode, AgoraRtcVideoStreamType } from 'fcr-core/lib/imports';
2
+ import { FcrUIVideoWindowData, FcrUserRole } from '../../../type';
3
+ import { FcrVideoWindowPreviewType } from '../../video-window/type';
4
+ import { FcrInterpreterUserInfo } from 'fcr-core/lib/room-control/interpreter-control/types';
5
+ export interface MemberWindowCustomProps {
6
+ showAvatar: boolean;
7
+ onDoubleClick: () => void;
8
+ onRemovePin: (streamId: string) => void;
9
+ slot?: React.ReactNode;
10
+ width?: number;
11
+ height?: number;
12
+ canShowSpeakerSpotlight: boolean;
13
+ memberWindowPreviewType?: 'gallery' | 'carousel' | 'suspend';
14
+ videoRenderMode: AgoraRtcRenderMode;
15
+ videoStreamType: AgoraRtcVideoStreamType;
16
+ }
17
+ export interface MemberWindowProps extends MemberWindowCustomProps {
18
+ windowData: FcrUIVideoWindowData;
19
+ }
20
+ export interface MicVolumeProps {
21
+ id: string | undefined;
22
+ size: number;
23
+ volume: number;
24
+ }
25
+ export interface MemberBoardProps {
26
+ slot: React.ReactNode;
27
+ isMask: boolean;
28
+ onMaskDoubleClick: () => void;
29
+ windowData: FcrUIVideoWindowData;
30
+ allowedOperations: string[];
31
+ showActionBottomLabel: boolean;
32
+ isShowActionAudio: boolean;
33
+ actionAudioTag: string;
34
+ hasPinnedStream: boolean;
35
+ localUserRole: FcrUserRole;
36
+ sendParticipantEvent: (event: any) => void;
37
+ muteAudio: (mute: boolean, userId: string) => void;
38
+ openPrivateChat: (userId: string) => void;
39
+ setVideoOrientation: () => void;
40
+ interpreterUserList: FcrInterpreterUserInfo[] | null;
41
+ isInterpreterEnabled: boolean;
42
+ openRenameDialog: (userId: string) => void;
43
+ id: string | undefined;
44
+ volume: number;
45
+ }
46
+ export interface MemberWindowActionsProps {
47
+ windowData: FcrUIVideoWindowData;
48
+ iconSize: number;
49
+ windowSize: 'large' | 'normal';
50
+ openPrivateChat: (userId: string) => void;
51
+ localUserRole: FcrUserRole;
52
+ sendParticipantEvent: (event: any) => void;
53
+ muteAudio: (mute: boolean, userId: string) => void;
54
+ hasPinnedStream: boolean;
55
+ allowedOperations: string[];
56
+ setVideoOrientation: () => void;
57
+ showActionBottomLabel: boolean;
58
+ isShowActionAudio: boolean;
59
+ actionAudioTag: string;
60
+ onVisibleChanged?: (visible: boolean) => void;
61
+ videoWindowCurrentWidth?: number;
62
+ videoWindowCurrentHeight?: number;
63
+ videoWindowPreviewType?: FcrVideoWindowPreviewType;
64
+ showRotation: boolean;
65
+ interpreterUserList: FcrInterpreterUserInfo[] | null;
66
+ isInterpreterEnabled: boolean;
67
+ handleRename: (userId: string) => void;
68
+ renderListLength?: number;
69
+ id: string | undefined;
70
+ volume: number;
71
+ }
72
+ export type MemberWindowSlots = {
73
+ topLeft?: React.ReactNode;
74
+ topRight?: React.ReactNode;
75
+ bottomLeft?: React.ReactNode;
76
+ bottomCenter?: React.ReactNode;
77
+ bottomRight?: React.ReactNode;
78
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
@@ -12,6 +12,7 @@ var _mobxReact = require("mobx-react");
12
12
  var _store = require("../../store");
13
13
  require("./index.css");
14
14
  var _i18n = require("agora-ui-foundation/lib/i18n");
15
+ var _deviceStore = require("../../../../common/device-store");
15
16
  var _jsxRuntime = require("react/jsx-runtime");
16
17
  var ConnectorTabs = (0, _mobxReact.observer)(function (props) {
17
18
  var _useContext = (0, _react.useContext)(_store.StoreContext),
@@ -26,7 +27,7 @@ var ConnectorTabs = (0, _mobxReact.observer)(function (props) {
26
27
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_tabs.FcrTabs, {
27
28
  activeKey: activeTabKey,
28
29
  items: [{
29
- label: "Computer Audio".concat(connectType === _store.ConnectType.COMPUTER ? "-".concat((0, _i18n.transI18n)('fmt_PSTN_status_connected')) : ''),
30
+ label: "".concat((0, _i18n.transI18n)('fmt_PSTN_label_pcaudio')).concat(connectType === _deviceStore.ConnectType.COMPUTER ? "-".concat((0, _i18n.transI18n)('fmt_PSTN_status_connected')) : ''),
30
31
  key: 'computer'
31
32
  }, {
32
33
  label: "".concat((0, _i18n.transI18n)('fmt_pstn_options_phoneaudio')).concat(hasOwnPstnStream ? "-".concat((0, _i18n.transI18n)('fmt_PSTN_status_connected')) : ''),
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.MeetingDetails = void 0;
9
- require("core-js/modules/es.array.concat.js");
10
9
  require("core-js/modules/es.regexp.exec.js");
11
10
  require("core-js/modules/es.string.replace.js");
12
11
  require("core-js/modules/web.timers.js");
@@ -24,6 +23,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
24
23
  var _store = require("../../store");
25
24
  var _meetingTime = require("../../../../hooks/meeting-time");
26
25
  var _enums = require("../../enums");
26
+ var _meetingDetail = require("../../../../utilities/meeting-detail");
27
27
  var _jsxRuntime = require("react/jsx-runtime");
28
28
  var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function () {
29
29
  var t = (0, _i18n.useI18n)();
@@ -31,7 +31,7 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
31
31
  var _useState = (0, _react.useState)({
32
32
  copyState: _enums.CopyState.COPYINIT,
33
33
  copyIcon: _type.FcrIconType.FCR_LINK,
34
- copyText: t('fmt_sharing_button_copydetailed')
34
+ copyText: t('fmt_popup_button_meetinginfor')
35
35
  }),
36
36
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
37
37
  copyInfoState = _useState2[0],
@@ -75,17 +75,7 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
75
75
  // reason3: '',
76
76
  // reason4: shareLink,
77
77
  // });
78
- var detailText = "\n".concat(t('fmt_link_invitation', {
79
- reason1: userName
80
- }), "\n").concat(t('fmt_link_invitation_topic', {
81
- reason1: roomName
82
- }), "\n").concat(t('fmt_link_invitation_link', {
83
- reason1: shareLink
84
- }), "\n").concat(t('fmt_link_invitation_id', {
85
- reason1: displayMeetingId
86
- }), "\n").concat(!!password ? t('fmt_link_invitation_password', {
87
- reason1: password
88
- }) : '').replace(/^\s*\n/gm, '');
78
+ var detailText = (0, _meetingDetail.generateMeetingDetail)(userName, roomName, (0, _meetingDetail.generateMeetingDuration)(startTime !== null && startTime !== void 0 ? startTime : 0, roomDuration), shareLink, displayMeetingId, password !== null && password !== void 0 ? password : '');
89
79
  function handleCopyMeetingId(copyContent) {
90
80
  if (!copyContent) return;
91
81
  var content = meetingId ? copyContent : copyContent.replace(/\s+/g, '');
@@ -167,7 +157,7 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
167
157
  setCopyInfoState({
168
158
  copyState: _enums.CopyState.COPYINIT,
169
159
  copyIcon: _type.FcrIconType.FCR_LINK,
170
- copyText: t('fmt_sharing_button_copydetailed')
160
+ copyText: t('fmt_popup_button_meetinginfor')
171
161
  });
172
162
  }, 1000);
173
163
  }
@@ -219,7 +209,9 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
219
209
  }), !!password && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
220
210
  className: "meeting-details__content-share-link",
221
211
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
222
- children: t('fmt_meeting_creatpage_label_password')
212
+ children: t('fmt_meeting_mainwindow_topbar_left_popup_label_meeting_password', {
213
+ reason1: ''
214
+ })
223
215
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
224
216
  children: password
225
217
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -6,12 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.MorePopoverContent = void 0;
9
- require("core-js/modules/es.array.concat.js");
10
9
  require("core-js/modules/es.array.filter.js");
11
10
  require("core-js/modules/es.array.map.js");
12
11
  require("core-js/modules/es.object.to-string.js");
13
- require("core-js/modules/es.regexp.exec.js");
14
- require("core-js/modules/es.string.replace.js");
15
12
  require("core-js/modules/esnext.async-iterator.filter.js");
16
13
  require("core-js/modules/esnext.async-iterator.map.js");
17
14
  require("core-js/modules/esnext.iterator.constructor.js");
@@ -30,6 +27,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
30
27
  var _enums = require("../../enums");
31
28
  var _type3 = require("fcr-core/lib/room-control/type");
32
29
  var _tools = require("../../../../utilities/tools");
30
+ var _meetingDetail = require("../../../../utilities/meeting-detail");
33
31
  var _jsxRuntime = require("react/jsx-runtime");
34
32
  var MorePopoverContent = exports.MorePopoverContent = (0, _mobxReact.observer)(function (props) {
35
33
  var ref = (0, _react.useRef)(null);
@@ -54,7 +52,9 @@ var MorePopoverContent = exports.MorePopoverContent = (0, _mobxReact.observer)(f
54
52
  roomId = _useContext$roomInfo.roomId,
55
53
  roomName = _useContext$roomInfo.roomName,
56
54
  userName = _useContext.localUser.userName,
57
- meetingId = _useContext.meetingId;
55
+ meetingId = _useContext.meetingId,
56
+ startTime = _useContext.startTime,
57
+ roomDuration = _useContext.roomDuration;
58
58
  var transI18n = (0, _i18n.useI18n)();
59
59
  var onItemClick = function onItemClick(item) {
60
60
  if (item.onClick) {
@@ -77,17 +77,7 @@ var MorePopoverContent = exports.MorePopoverContent = (0, _mobxReact.observer)(f
77
77
  return getShareLink();
78
78
  }, []);
79
79
  var displayMeetingId = (0, _tools.renderMeetingId)(meetingId, roomId);
80
- var detailText = "\n ".concat(transI18n('fmt_link_invitation', {
81
- reason1: userName
82
- }), "\n ").concat(transI18n('fmt_link_invitation_topic', {
83
- reason1: roomName
84
- }), "\n ").concat(transI18n('fmt_link_invitation_link', {
85
- reason1: shareLink
86
- }), "\n ").concat(transI18n('fmt_link_invitation_id', {
87
- reason1: displayMeetingId
88
- }), "\n ").concat(!!password ? transI18n('fmt_link_invitation_password', {
89
- reason1: password
90
- }) : '').replace(/^\s+/gm, '').replace(/^\s*\n/gm, '');
80
+ var detailText = (0, _meetingDetail.generateMeetingDetail)(userName, roomName, (0, _meetingDetail.generateMeetingDuration)(startTime, roomDuration), shareLink, displayMeetingId, password || '');
91
81
  var handleCopyMeetingDetail = (0, _react.useCallback)(function () {
92
82
  (0, _copyText.copyText)(detailText).then(function () {
93
83
  showToast({
@@ -0,0 +1,5 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { FcrUIWebWidgetConfig } from '../../../../type';
3
+ export declare const WidgetElectronDialog: ({ children, params, }: PropsWithChildren<{
4
+ params: FcrUIWebWidgetConfig;
5
+ }>) => null;
@@ -0,0 +1,41 @@
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.WidgetElectronDialog = void 0;
8
+ require("core-js/modules/es.function.name.js");
9
+ var _constant = require("../../../../utilities/constant");
10
+ var _useElectron = require("../../hooks/useElectron");
11
+ var _i18n = require("agora-ui-foundation/lib/i18n");
12
+ var WidgetElectronDialog = exports.WidgetElectronDialog = function WidgetElectronDialog(_ref) {
13
+ var _params$popupSize, _params$popupSize2;
14
+ var children = _ref.children,
15
+ params = _ref.params;
16
+ var transI18n = (0, _i18n.useI18n)();
17
+ var config = {
18
+ fullscreen: false,
19
+ maximizable: false,
20
+ trafficLightPosition: {
21
+ x: 10,
22
+ y: 60
23
+ },
24
+ width: (_params$popupSize = params.popupSize) === null || _params$popupSize === void 0 ? void 0 : _params$popupSize.width,
25
+ height: (_params$popupSize2 = params.popupSize) === null || _params$popupSize2 === void 0 ? void 0 : _params$popupSize2.width,
26
+ // minWidth: 620,
27
+ // minHeight: 300,
28
+ // maxWidth: 1020,
29
+ // maxHeight: 900,
30
+ title: params.name,
31
+ resizable: false
32
+ };
33
+ (0, _useElectron.useElectronDialogByDialogId)({
34
+ config: config,
35
+ dialogKey: _constant.FcrUIDialogKey.WIDGET,
36
+ dialogId: params.id,
37
+ children: children,
38
+ hasCustomShadow: false
39
+ });
40
+ return null;
41
+ };
@@ -0,0 +1,6 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { FcrUIWebWidgetConfig } from '../../../../type';
3
+ declare const WidgetDialog: ({ children, params, }: PropsWithChildren<{
4
+ params: FcrUIWebWidgetConfig;
5
+ }>) => import("react/jsx-runtime").JSX.Element;
6
+ export default WidgetDialog;
@@ -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["default"] = void 0;
9
+ require("core-js/modules/es.function.name.js");
10
+ var _env = require("agora-foundation/lib/utilities/env");
11
+ var _electron = require("./electron");
12
+ var _react = require("react");
13
+ var _i18n = require("agora-ui-foundation/lib/i18n");
14
+ var _dialogContainer = _interopRequireDefault(require("../dialog-container"));
15
+ var _constant = require("../../../../utilities/constant");
16
+ var _store = require("../../store");
17
+ var _jsxRuntime = require("react/jsx-runtime");
18
+ var WidgetDialog = function WidgetDialog(_ref) {
19
+ var _params$popupSize, _params$popupSize2;
20
+ var children = _ref.children,
21
+ params = _ref.params;
22
+ var t = (0, _i18n.useI18n)();
23
+ var _useContext = (0, _react.useContext)(_store.StoreContext),
24
+ widgetDialogIds = _useContext.widgetDialogIds;
25
+ var container = /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialogContainer["default"], {
26
+ title: params.name,
27
+ width: (_params$popupSize = params.popupSize) === null || _params$popupSize === void 0 ? void 0 : _params$popupSize.width,
28
+ height: (_params$popupSize2 = params.popupSize) === null || _params$popupSize2 === void 0 ? void 0 : _params$popupSize2.height,
29
+ dialogKey: _constant.FcrUIDialogKey.WIDGET,
30
+ dialogId: widgetDialogIds.get(params.id),
31
+ children: children
32
+ });
33
+ if ((0, _env.isElectron)()) {
34
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_electron.WidgetElectronDialog, {
35
+ params: params,
36
+ children: container
37
+ });
38
+ }
39
+ return container;
40
+ };
41
+ var _default = exports["default"] = WidgetDialog;
@@ -0,0 +1,84 @@
1
+ import React from 'react';
2
+ import { FcrUIDialogKey } from '../../utilities/constant';
3
+ import DialogStore from './store';
4
+ export type FcrUIDialogHooksProps = {
5
+ /**
6
+ * @param dialogKey - dialog 窗口的 key,为 FcrUIDialogKey 的枚举之一
7
+ */
8
+ dialogKey: FcrUIDialogKey;
9
+ /**
10
+ * @param dialogId - dialog 窗口的 id,标识唯一窗口
11
+ */
12
+ dialogId?: string;
13
+ /**
14
+ * @param config - electron 的 BrowserWindowConstructorOptions 配置,当自定义配置的 hasCustomShadow 开启时,其中的 width 和 height 会自动加上阴影的宽度
15
+ * @param height - The height value should be based on the maximum content height of the tab
16
+ */
17
+ config: Electron.BrowserWindowConstructorOptions;
18
+ /**
19
+ * @param onClose - 当 dialog 关闭时的回调函数,函数签名为 dialog 的 store
20
+ * */
21
+ onClose?: (props: {
22
+ store: DialogStore;
23
+ browserWindow: Electron.BrowserWindow;
24
+ }) => void;
25
+ /**
26
+ * @param onOpened - 当 dialog 打开时的回调函数,函数签名为 dialog 的 store、browserwindow 对象和设置 bounds 的方法,此 bounds 不同于 browserwindow 的 setBounds 会为宽高自动加上阴影的设置
27
+ */
28
+ onOpened?: (props: {
29
+ browserWindow: Electron.BrowserWindow;
30
+ newRendererWindow: Window;
31
+ store: DialogStore;
32
+ setBounds: (bounds: Partial<Electron.Rectangle>, animate?: boolean) => void;
33
+ nearDisplayBounds: Electron.Rectangle;
34
+ }) => void;
35
+ /**
36
+ * * @param onUnmounted - 当 dialog 卸载时的回调函数,函数签名为 dialog 的 store
37
+ */
38
+ onUnmounted?: (store: DialogStore) => void;
39
+ /**
40
+ * @param children - dialog 的内容
41
+ */
42
+ children: React.ReactNode;
43
+ /**
44
+ * @param scroll - 是否显示滚动栏,默认为 false
45
+ */
46
+ scroll?: boolean;
47
+ /**
48
+ * @param focus - 在 dialog 窗口打开之后,调用 browserWindow 的 focus 方法, 默认为 true
49
+ */
50
+ focus?: boolean;
51
+ /**
52
+ * @param ignoreMouseEvents - 在 dialog 窗口打开之后,设置是否忽略鼠标事件
53
+ */
54
+ ignoreMouseEvents?: boolean | Electron.IgnoreMouseEventsOptions;
55
+ /**
56
+ * @param alwaysOnTop - 在 dialog 窗口打开之后,主动调用一次 browserWindow 的 setAlwaysOnTop(true, 'normal') 方法,默认为true
57
+ * @type boolean | 'normal' | 'floating' | 'torn-off-menu' | 'modal-panel' | 'main-menu' | 'status' | 'pop-up-menu' | 'screen-saver'
58
+ */
59
+ alwaysOnTop?: boolean | 'normal' | 'floating' | 'torn-off-menu' | 'modal-panel' | 'main-menu' | 'status' | 'pop-up-menu' | 'screen-saver';
60
+ /**
61
+ * @param fullScreen - 自定义全屏设置,和 electron 的全屏设置不同,它会以主窗口的位置为基准,给新打开的窗口设置和屏幕一样的大小
62
+ */
63
+ fullScreen?: boolean;
64
+ /**
65
+ * @param polyfills - 这个可以以一句话的形式描述 polyfills,比如:fix-toast-window-flash,并通过这个字段来判断进行特殊处理
66
+ */
67
+ polyfills?: string[];
68
+ /**
69
+ * @param hasCustomShadow - 通过缩小 electron 容器内的容器宽度加 css 样式阴影实现,所以会让原生 electron 的拖动响应的边产生偏移,所以如果窗口是可拖动的,需要设置为 false。默认值 true。目前窗口有三种,一种是作为 toast 和 confirm 容器的窗口,这种窗口因为是全屏显示不需要阴影,一种是 participant 和 chat 窗口,这俩窗口需要拉伸操作,所以用系统阴影,不用自定义阴影。还有一种是独立的窗口,这种窗口不需要拉伸,所以用自定义阴影,配置为 true 时,窗口会给宽高加上阴影的偏移量,所以 toast 和 confirm 窗口需要设置为 false
70
+ * */
71
+ hasCustomShadow?: boolean;
72
+ /**
73
+ * @param disableShortcutClose - 是否可以用快捷键关闭窗口,默认为 false
74
+ */
75
+ disableShortcutClose?: boolean;
76
+ };
77
+ export type FcrUIDialogComponent = React.FC<FcrDialogProps>;
78
+ export type FcrDialogProps = {
79
+ params: unknown;
80
+ };
81
+ export type FcrUIDialogInfo = {
82
+ key: FcrUIDialogKey;
83
+ component: FcrUIDialogComponent;
84
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", {
16
16
  });
17
17
  exports.PSTNInvite = void 0;
18
18
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
19
- require("core-js/modules/es.array.concat.js");
20
19
  require("core-js/modules/es.regexp.exec.js");
21
20
  require("core-js/modules/es.string.replace.js");
22
21
  require("core-js/modules/es.string.trim.js");
@@ -36,6 +35,7 @@ var _i18n = require("agora-ui-foundation/lib/i18n");
36
35
  var _errorTips = require("./error-tips");
37
36
  var _enums = require("../enums");
38
37
  var _tools = require("../../../utilities/tools");
38
+ var _meetingDetail = require("../../../utilities/meeting-detail");
39
39
  var _jsxRuntime = require("react/jsx-runtime");
40
40
  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); }
41
41
  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; }
@@ -79,7 +79,8 @@ var PSTNInvite = exports.PSTNInvite = (0, _mobxReact.observer)(function () {
79
79
  roomId = _useContext$roomInfo.roomId,
80
80
  roomName = _useContext$roomInfo.roomName,
81
81
  userName = _useContext.localUser.userName,
82
- meetingId = _useContext.meetingId;
82
+ meetingId = _useContext.meetingId,
83
+ roomSchedule = _useContext.roomSchedule;
83
84
  var _useState13 = (0, _react.useState)(pstnCountryCodeList.length ? pstnCountryCodeList[0].text : ''),
84
85
  _useState14 = (0, _slicedToArray2["default"])(_useState13, 2),
85
86
  invitePhoneZone = _useState14[0],
@@ -107,17 +108,7 @@ var PSTNInvite = exports.PSTNInvite = (0, _mobxReact.observer)(function () {
107
108
  return getShareLink();
108
109
  }, []);
109
110
  var displayMeetingId = (0, _tools.renderMeetingId)(meetingId, roomId);
110
- var detailText = "\n ".concat(transI18n('fmt_link_invitation', {
111
- reason1: userName
112
- }), "\n ").concat(transI18n('fmt_link_invitation_topic', {
113
- reason1: roomName
114
- }), "\n ").concat(transI18n('fmt_link_invitation_link', {
115
- reason1: shareLink
116
- }), "\n ").concat(transI18n('fmt_link_invitation_id', {
117
- reason1: displayMeetingId
118
- }), "\n ").concat(!!password ? transI18n('fmt_link_invitation_password', {
119
- reason1: password
120
- }) : '').replace(/^\s+/gm, '').replace(/^\s*\n/gm, '');
111
+ var detailText = (0, _meetingDetail.generateMeetingDetail)(userName, roomName, (0, _meetingDetail.generateMeetingDuration)((roomSchedule === null || roomSchedule === void 0 ? void 0 : roomSchedule.startTime) || 0, (roomSchedule === null || roomSchedule === void 0 ? void 0 : roomSchedule.duration) || 0), shareLink, displayMeetingId, password || '');
121
112
  var handleCopyMeetingDetail = (0, _react.useCallback)(function () {
122
113
  (0, _copyText.copyText)(detailText).then(function () {
123
114
  showToast({
@@ -25,13 +25,11 @@ var _classnames = _interopRequireDefault(require("classnames"));
25
25
  var _mobxReact = require("mobx-react");
26
26
  var _react = _interopRequireWildcard(require("react"));
27
27
  var _copyText = require("../../utilities/copyText");
28
- var _context2 = require("./context");
29
28
  var _store = require("./store");
30
29
  var _regex = require("../../utilities/regex");
31
30
  var _actionPhone = require("agora-ui-foundation/lib/components/action-phone");
32
31
  var _button = require("agora-ui-foundation/lib/components/button");
33
32
  var _input = require("agora-ui-foundation/lib/components/input");
34
- var _toast = require("agora-ui-foundation/lib/components/toast");
35
33
  var _zonePhone = require("agora-ui-foundation/lib/components/zone-phone");
36
34
  var _i18n = require("agora-ui-foundation/lib/i18n");
37
35
  var _jsxRuntime = require("react/jsx-runtime");
@@ -73,12 +71,13 @@ var PSTNInvite = exports.PSTNInvite = (0, _mobxReact.observer)(function () {
73
71
  _useState12 = (0, _slicedToArray2["default"])(_useState11, 2),
74
72
  isLoading = _useState12[0],
75
73
  setIsLoading = _useState12[1];
76
- var _useContext = (0, _react.useContext)(_context2.StoreContext),
74
+ var _useContext = (0, _react.useContext)(_store.StoreContext),
77
75
  isPstnCalling = _useContext.isPstnCalling,
78
76
  startSessionByPhone = _useContext.startSessionByPhone,
79
77
  calledPstnInfo = _useContext.calledPstnInfo,
80
78
  pstnCountryCodeList = _useContext.pstnCountryCodeList,
81
- stopSession = _useContext.stopSession;
79
+ stopSession = _useContext.stopSession,
80
+ showToast = _useContext.showToast;
82
81
  var _useState13 = (0, _react.useState)(pstnCountryCodeList.length ? pstnCountryCodeList[0].text : ''),
83
82
  _useState14 = (0, _slicedToArray2["default"])(_useState13, 2),
84
83
  invitePhoneZone = _useState14[0],
@@ -95,11 +94,9 @@ var PSTNInvite = exports.PSTNInvite = (0, _mobxReact.observer)(function () {
95
94
  }, []);
96
95
  var handleCopyMeetingDetail = (0, _react.useCallback)(function () {
97
96
  (0, _copyText.copyText)('TODO 会议信息').then(function () {
98
- _toast.FcrToastApi.open({
99
- toastProps: {
100
- type: 'info',
101
- content: transI18n('fmt_statusbar_status_coppied')
102
- }
97
+ showToast({
98
+ type: 'info',
99
+ message: transI18n('fmt_statusbar_status_coppied')
103
100
  });
104
101
  });
105
102
  }, []);
@@ -267,6 +264,7 @@ var PSTNInvite = exports.PSTNInvite = (0, _mobxReact.observer)(function () {
267
264
  type: "secondary-bordered",
268
265
  size: "XS",
269
266
  onClick: handleCopyMeetingDetail,
267
+ className: "invite__pstn-invite-copyinfo",
270
268
  children: transI18n('fmt_popup_button_meetinginfor')
271
269
  })]
272
270
  });
@@ -13,6 +13,7 @@ export default class InviteStore {
13
13
  private _voipSessionId;
14
14
  private _roomConnectorObserver;
15
15
  private _userControl;
16
+ private _roomControl;
16
17
  accessor InviteStatus: number;
17
18
  accessor isPstnCalling: boolean;
18
19
  accessor isVoipCalling: boolean;
@@ -22,6 +23,7 @@ export default class InviteStore {
22
23
  accessor calledVoipInfo: VoipInfo;
23
24
  accessor roomInfo: FcrRoomInfo;
24
25
  accessor meetingId: string | undefined;
26
+ get roomSchedule(): import("fcr-core/lib/type").FcrRoomSchedule | undefined;
25
27
  get localUser(): import("fcr-core/lib/type").FcrUserInfo;
26
28
  get pstnCountryCodeList(): {
27
29
  value: FcrRoomConnectorPhoneRegion;
@@ -122,6 +122,7 @@ var InviteStore = exports["default"] = /*#__PURE__*/function () {
122
122
  inviteLink: ''
123
123
  }));
124
124
  _classPrivateFieldInitSpec(this, _I, _init_meetingId(this, undefined));
125
+ this._roomControl = roomControl;
125
126
  this._uiEventStore = uiEventStore;
126
127
  this._roomConnectorControl = roomControl.getRoomConnectorControl();
127
128
  this._roomConnectorControl.addObserver(this._roomConnectorObserver);
@@ -204,6 +205,11 @@ var InviteStore = exports["default"] = /*#__PURE__*/function () {
204
205
  set: function set(v) {
205
206
  _classPrivateFieldSet(_I, this, v);
206
207
  }
208
+ }, {
209
+ key: "roomSchedule",
210
+ get: function get() {
211
+ return this._roomControl.getRoomSchedule();
212
+ }
207
213
  }, {
208
214
  key: "localUser",
209
215
  get: function get() {
@@ -21,9 +21,8 @@ var _tabs = require("agora-ui-foundation/lib/components/tabs");
21
21
  var _classnames = _interopRequireDefault(require("classnames"));
22
22
  var _mobxReact = require("mobx-react");
23
23
  var _react = require("react");
24
- var _context2 = require("./context");
25
- var _type2 = require("agora-edu-core/lib/room-control/room-connector-control/type");
26
24
  var _store = require("./store");
25
+ var _type2 = require("fcr-core/lib/room-control/room-connector-control/type");
27
26
  var _i18n = require("agora-ui-foundation/lib/i18n");
28
27
  var _jsxRuntime = require("react/jsx-runtime");
29
28
  var CallType = /*#__PURE__*/function (CallType) {
@@ -64,7 +63,7 @@ var VoipInvite = exports.VoipInvite = (0, _mobxReact.observer)(function () {
64
63
  _useState8 = (0, _slicedToArray2["default"])(_useState7, 2),
65
64
  isIpError = _useState8[0],
66
65
  setIsError = _useState8[1];
67
- var _useContext = (0, _react.useContext)(_context2.StoreContext),
66
+ var _useContext = (0, _react.useContext)(_store.StoreContext),
68
67
  localVoipList = _useContext.localVoipList,
69
68
  ipInfo = _useContext.ipInfo,
70
69
  isVoipCalling = _useContext.isVoipCalling,
@@ -184,7 +183,7 @@ var VoipInvite = exports.VoipInvite = (0, _mobxReact.observer)(function () {
184
183
  onClick: function onClick() {
185
184
  return setCurrentVoipType(VoipType.H323);
186
185
  },
187
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
186
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
188
187
  children: "H323"
189
188
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_radio.FcrRadio, {
190
189
  styleType: "white",
@@ -198,8 +197,8 @@ var VoipInvite = exports.VoipInvite = (0, _mobxReact.observer)(function () {
198
197
  onClick: function onClick() {
199
198
  return setCurrentVoipType(VoipType.SIP);
200
199
  },
201
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
202
- children: " SIP"
200
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
201
+ children: "SIP"
203
202
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_radio.FcrRadio, {
204
203
  styleType: "white",
205
204
  value: VoipType.SIP