fcr-ui-scene 3.9.0 → 3.9.1-alpha

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 (199) hide show
  1. package/lib/creator/provider-initializer.browser.js +2 -1
  2. package/lib/creator/provider-initializer.electron.js +11 -4
  3. package/lib/electron/injections.d.ts +1 -0
  4. package/lib/electron/injections.js +4 -1
  5. package/lib/electron/preload.js +1 -0
  6. package/lib/modules/action-bar/main-scene/store.base.d.ts +1 -0
  7. package/lib/modules/action-bar/main-scene/store.base.js +5 -0
  8. package/lib/modules/audio-stream/index.d.ts +2 -0
  9. package/lib/modules/audio-stream/index.js +33 -1
  10. package/lib/modules/chat/index.js +1 -1
  11. package/lib/modules/chat/store.d.ts +1 -1
  12. package/lib/modules/chat/store.js +4 -2
  13. package/lib/modules/components/device-control/store.base.d.ts +1 -0
  14. package/lib/modules/components/device-control/store.base.js +22 -3
  15. package/lib/modules/components/leave-meeting/index.js +3 -2
  16. package/lib/modules/components/leave-meeting/main-scene/store.d.ts +1 -0
  17. package/lib/modules/components/leave-meeting/main-scene/store.js +6 -1
  18. package/lib/modules/components/leave-meeting/store.base.d.ts +1 -0
  19. package/lib/modules/components/leave-meeting/store.base.js +1 -1
  20. package/lib/modules/components/leave-meeting/waiting-scene/store.d.ts +1 -0
  21. package/lib/modules/components/leave-meeting/waiting-scene/store.js +6 -1
  22. package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +7 -10
  23. package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +2 -2
  24. package/lib/modules/components/member-window/components/member-actions/index.js +0 -7
  25. package/lib/modules/components/member-window/components/member-actions/store.js +1 -1
  26. package/lib/modules/components/member-window/index.js +1 -1
  27. package/lib/modules/components/tab-frame/index.css +12 -1
  28. package/lib/modules/components/tab-frame/index.js +4 -1
  29. package/lib/modules/control-bar/components/share-state-nav/index.js +1 -3
  30. package/lib/modules/control-bar/mouse-event-bridge.d.ts +23 -0
  31. package/lib/modules/control-bar/mouse-event-bridge.js +87 -0
  32. package/lib/modules/control-bar/store.d.ts +1 -1
  33. package/lib/modules/control-bar/store.js +10 -27
  34. package/lib/modules/control-bar/type.d.ts +0 -1
  35. package/lib/modules/control-bar/view.js +9 -16
  36. package/lib/modules/dialog/dialogs/connection-gateway/tabs.js +3 -2
  37. package/lib/modules/dialog/dialogs/invite/index.js +6 -24
  38. package/lib/modules/invite/components/copy-info.css +72 -0
  39. package/lib/modules/invite/components/copy-info.d.ts +3 -0
  40. package/lib/modules/invite/components/copy-info.js +144 -0
  41. package/lib/modules/invite/components/pstn-invite.js +3 -15
  42. package/lib/modules/invite/components/voip-invite.js +10 -1
  43. package/lib/modules/invite/enums.d.ts +3 -1
  44. package/lib/modules/invite/enums.js +2 -0
  45. package/lib/modules/invite/store.d.ts +4 -1
  46. package/lib/modules/invite/store.js +37 -13
  47. package/lib/modules/invite/view.js +41 -20
  48. package/lib/modules/layout/store.base.d.ts +2 -1
  49. package/lib/modules/layout/store.base.js +20 -23
  50. package/lib/modules/participant/components/confirm-input/index.css +67 -1
  51. package/lib/modules/participant/components/confirm-input/index.js +16 -13
  52. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +4 -0
  53. package/lib/modules/participant/store.base.d.ts +1 -0
  54. package/lib/modules/participant/store.base.js +34 -7
  55. package/lib/modules/pc-audio-connect/main-scene/store.d.ts +2 -0
  56. package/lib/modules/pc-audio-connect/main-scene/store.js +12 -2
  57. package/lib/modules/pc-audio-connect/view.js +4 -2
  58. package/lib/modules/phone-audio-connect/store.d.ts +6 -4
  59. package/lib/modules/phone-audio-connect/store.js +12 -1
  60. package/lib/modules/phone-audio-connect/view.js +6 -4
  61. package/lib/modules/secondary-window/index.js +2 -2
  62. package/lib/modules/secondary-window/store.d.ts +3 -0
  63. package/lib/modules/secondary-window/store.js +16 -1
  64. package/lib/modules/secondary-window/view.js +96 -72
  65. package/lib/modules/toast-manager/type.d.ts +2 -1
  66. package/lib/modules/toast-manager/type.js +4 -1
  67. package/lib/plugins/module-dev-plugin.js +4 -4
  68. package/lib/providers/ability-provider.d.ts +15 -0
  69. package/lib/providers/ability-provider.js +13 -1
  70. package/lib/providers/mouse-detect/provider.d.ts +2 -0
  71. package/lib/providers/mouse-detect/provider.empty.d.ts +14 -0
  72. package/lib/providers/mouse-detect/provider.empty.js +47 -0
  73. package/lib/providers/mouse-detect/provider.js +13 -4
  74. package/lib/providers/mouse-detect/type.d.ts +2 -0
  75. package/lib/providers/phone-audio-provider.d.ts +31 -5
  76. package/lib/providers/phone-audio-provider.js +83 -22
  77. package/lib/runtime.d.ts +1 -0
  78. package/lib/scenes/main-scene.js +2 -1
  79. package/lib/shared-data/chat-data.d.ts +19 -0
  80. package/lib/shared-data/chat-data.js +54 -7
  81. package/lib/shared-data/member-data.d.ts +9 -1
  82. package/lib/shared-data/member-data.js +46 -17
  83. package/lib/shared-data/video-window.js +8 -4
  84. package/lib/translations/enUS.d.ts +245 -1
  85. package/lib/translations/enUS.js +247 -3
  86. package/lib/translations/zhCN.d.ts +245 -1
  87. package/lib/translations/zhCN.js +246 -2
  88. package/lib/utilities/os.d.ts +1 -0
  89. package/lib/utilities/os.js +15 -0
  90. package/lib/utilities/renderer.d.ts +1 -0
  91. package/lib/utilities/renderer.js +7 -1
  92. package/lib-es/creator/provider-initializer.browser.js +2 -1
  93. package/lib-es/creator/provider-initializer.electron.js +9 -2
  94. package/lib-es/electron/injections.js +3 -0
  95. package/lib-es/electron/preload.js +2 -1
  96. package/lib-es/modules/action-bar/main-scene/store.base.js +5 -0
  97. package/lib-es/modules/audio-stream/index.js +33 -1
  98. package/lib-es/modules/chat/index.js +1 -1
  99. package/lib-es/modules/chat/store.js +4 -2
  100. package/lib-es/modules/components/device-control/store.base.js +22 -3
  101. package/lib-es/modules/components/leave-meeting/index.js +3 -2
  102. package/lib-es/modules/components/leave-meeting/main-scene/store.js +6 -1
  103. package/lib-es/modules/components/leave-meeting/store.base.js +1 -1
  104. package/lib-es/modules/components/leave-meeting/waiting-scene/store.js +6 -1
  105. package/lib-es/modules/components/member-window/components/member-actions/components/icon-status.js +7 -10
  106. package/lib-es/modules/components/member-window/components/member-actions/components/more-actions.js +2 -2
  107. package/lib-es/modules/components/member-window/components/member-actions/index.js +0 -7
  108. package/lib-es/modules/components/member-window/components/member-actions/store.js +1 -1
  109. package/lib-es/modules/components/member-window/index.js +1 -1
  110. package/lib-es/modules/components/tab-frame/index.css +12 -1
  111. package/lib-es/modules/components/tab-frame/index.js +4 -1
  112. package/lib-es/modules/control-bar/components/share-state-nav/index.js +1 -3
  113. package/lib-es/modules/control-bar/mouse-event-bridge.js +79 -0
  114. package/lib-es/modules/control-bar/store.js +11 -28
  115. package/lib-es/modules/control-bar/view.js +9 -16
  116. package/lib-es/modules/dialog/dialogs/connection-gateway/tabs.js +3 -2
  117. package/lib-es/modules/dialog/dialogs/invite/index.js +6 -24
  118. package/lib-es/modules/invite/components/copy-info.css +72 -0
  119. package/lib-es/modules/invite/components/copy-info.js +137 -0
  120. package/lib-es/modules/invite/components/pstn-invite.js +3 -15
  121. package/lib-es/modules/invite/components/voip-invite.js +10 -1
  122. package/lib-es/modules/invite/enums.js +2 -0
  123. package/lib-es/modules/invite/store.js +38 -14
  124. package/lib-es/modules/invite/view.js +43 -22
  125. package/lib-es/modules/layout/store.base.js +20 -23
  126. package/lib-es/modules/participant/components/confirm-input/index.css +67 -1
  127. package/lib-es/modules/participant/components/confirm-input/index.js +16 -13
  128. package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/index.css +4 -0
  129. package/lib-es/modules/participant/store.base.js +34 -7
  130. package/lib-es/modules/pc-audio-connect/main-scene/store.js +12 -2
  131. package/lib-es/modules/pc-audio-connect/view.js +4 -2
  132. package/lib-es/modules/phone-audio-connect/store.js +12 -1
  133. package/lib-es/modules/phone-audio-connect/view.js +6 -4
  134. package/lib-es/modules/secondary-window/index.js +2 -2
  135. package/lib-es/modules/secondary-window/store.js +16 -1
  136. package/lib-es/modules/secondary-window/view.js +97 -73
  137. package/lib-es/modules/toast-manager/type.js +4 -1
  138. package/lib-es/plugins/module-dev-plugin.js +4 -4
  139. package/lib-es/providers/ability-provider.js +13 -1
  140. package/lib-es/providers/mouse-detect/provider.empty.js +39 -0
  141. package/lib-es/providers/mouse-detect/provider.js +13 -4
  142. package/lib-es/providers/phone-audio-provider.js +109 -48
  143. package/lib-es/scenes/main-scene.js +3 -2
  144. package/lib-es/shared-data/chat-data.js +55 -8
  145. package/lib-es/shared-data/member-data.js +46 -17
  146. package/lib-es/shared-data/video-window.js +8 -4
  147. package/lib-es/translations/enUS.js +247 -3
  148. package/lib-es/translations/zhCN.js +246 -2
  149. package/lib-es/utilities/os.js +8 -0
  150. package/lib-es/utilities/renderer.js +7 -1
  151. package/lib-es/utilities/shared-storage.js +2 -2
  152. package/package.json +6 -6
  153. package/lib/modules/connection-gateway/components/computer/index.css +0 -12
  154. package/lib/modules/connection-gateway/components/computer/index.d.ts +0 -3
  155. package/lib/modules/connection-gateway/components/computer/index.js +0 -66
  156. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +0 -36
  157. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +0 -10
  158. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +0 -78
  159. package/lib/modules/connection-gateway/components/phone/components/calling/index.css +0 -72
  160. package/lib/modules/connection-gateway/components/phone/components/calling/index.d.ts +0 -7
  161. package/lib/modules/connection-gateway/components/phone/components/calling/index.js +0 -58
  162. package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +0 -10
  163. package/lib/modules/connection-gateway/components/phone/components/remeber/index.d.ts +0 -5
  164. package/lib/modules/connection-gateway/components/phone/components/remeber/index.js +0 -24
  165. package/lib/modules/connection-gateway/components/phone/components/useing/index.css +0 -46
  166. package/lib/modules/connection-gateway/components/phone/components/useing/index.d.ts +0 -3
  167. package/lib/modules/connection-gateway/components/phone/components/useing/index.js +0 -36
  168. package/lib/modules/connection-gateway/components/phone/index.css +0 -49
  169. package/lib/modules/connection-gateway/components/phone/index.d.ts +0 -3
  170. package/lib/modules/connection-gateway/components/phone/index.js +0 -185
  171. package/lib/modules/connection-gateway/enums.d.ts +0 -4
  172. package/lib/modules/connection-gateway/enums.js +0 -12
  173. package/lib/modules/connection-gateway/index.css +0 -6
  174. package/lib/modules/connection-gateway/index.d.ts +0 -10
  175. package/lib/modules/connection-gateway/index.js +0 -78
  176. package/lib/modules/connection-gateway/store.d.ts +0 -68
  177. package/lib/modules/connection-gateway/store.js +0 -713
  178. package/lib/modules/connection-gateway/types.d.ts +0 -8
  179. package/lib/modules/connection-gateway/types.js +0 -6
  180. package/lib/modules/connection-gateway/view.d.ts +0 -1
  181. package/lib/modules/connection-gateway/view.js +0 -39
  182. package/lib-es/modules/connection-gateway/components/computer/index.css +0 -12
  183. package/lib-es/modules/connection-gateway/components/computer/index.js +0 -59
  184. package/lib-es/modules/connection-gateway/components/phone/components/callinfo/index.css +0 -36
  185. package/lib-es/modules/connection-gateway/components/phone/components/callinfo/index.js +0 -71
  186. package/lib-es/modules/connection-gateway/components/phone/components/calling/index.css +0 -72
  187. package/lib-es/modules/connection-gateway/components/phone/components/calling/index.js +0 -51
  188. package/lib-es/modules/connection-gateway/components/phone/components/remeber/index.css +0 -10
  189. package/lib-es/modules/connection-gateway/components/phone/components/remeber/index.js +0 -17
  190. package/lib-es/modules/connection-gateway/components/phone/components/useing/index.css +0 -46
  191. package/lib-es/modules/connection-gateway/components/phone/components/useing/index.js +0 -29
  192. package/lib-es/modules/connection-gateway/components/phone/index.css +0 -49
  193. package/lib-es/modules/connection-gateway/components/phone/index.js +0 -177
  194. package/lib-es/modules/connection-gateway/enums.js +0 -5
  195. package/lib-es/modules/connection-gateway/index.css +0 -6
  196. package/lib-es/modules/connection-gateway/index.js +0 -60
  197. package/lib-es/modules/connection-gateway/store.js +0 -707
  198. package/lib-es/modules/connection-gateway/types.js +0 -1
  199. package/lib-es/modules/connection-gateway/view.js +0 -31
@@ -0,0 +1,87 @@
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.ControlBarMouseEventBridge = void 0;
9
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
+ var _struct = require("../../providers/mouse-detect/struct");
12
+ var ControlBarMouseEventBridge = exports.ControlBarMouseEventBridge = /*#__PURE__*/function () {
13
+ function ControlBarMouseEventBridge(_ref) {
14
+ var _this = this;
15
+ var controlBarWindow = _ref.controlBarWindow,
16
+ mouseDetectProvider = _ref.mouseDetectProvider,
17
+ logger = _ref.logger;
18
+ (0, _classCallCheck2["default"])(this, ControlBarMouseEventBridge);
19
+ this._controlBarWindow = controlBarWindow;
20
+ this._mouseDetectProvider = mouseDetectProvider;
21
+ this._logger = logger;
22
+ this._mouseDetectObserver = {
23
+ onMouseEnterDetectArea: function onMouseEnterDetectArea(areaId) {
24
+ if (areaId !== _struct.FcrUIDetectAreaID.ControlBar) return;
25
+ if (!_this._shouldUseMouseDetect()) return;
26
+ _this._controlBarWindow.setIgnoreMouseEvents(false);
27
+ _this._controlBarWindow.focus();
28
+ },
29
+ onMouseLeaveDetectArea: function onMouseLeaveDetectArea(areaId) {
30
+ if (areaId !== _struct.FcrUIDetectAreaID.ControlBar) return;
31
+ if (!_this._shouldUseMouseDetect()) return;
32
+ _this._controlBarWindow.setIgnoreMouseEvents(true, {
33
+ forward: true
34
+ });
35
+ }
36
+ };
37
+ this._windowObserver = {
38
+ onBlurred: function onBlurred() {
39
+ if (!_this._shouldUseMouseDetect()) return;
40
+ _this._controlBarWindow.setIgnoreMouseEvents(true, {
41
+ forward: true
42
+ });
43
+ }
44
+ };
45
+ this._logger.info('should use dom mouse:', this._shouldUseDomMouse());
46
+ this._logger.info('should use mouse detect:', this._shouldUseMouseDetect());
47
+ }
48
+ return (0, _createClass2["default"])(ControlBarMouseEventBridge, [{
49
+ key: "initialize",
50
+ value: function initialize() {
51
+ this._mouseDetectProvider.addObserver(this._mouseDetectObserver);
52
+ this._controlBarWindow.addObserver(this._windowObserver);
53
+ }
54
+ }, {
55
+ key: "dispose",
56
+ value: function dispose() {
57
+ this._mouseDetectProvider.removeObserver(this._mouseDetectObserver);
58
+ this._controlBarWindow.removeObserver(this._windowObserver);
59
+ }
60
+ }, {
61
+ key: "handleDomMouseEnter",
62
+ value: function handleDomMouseEnter() {
63
+ if (!this._shouldUseDomMouse()) return;
64
+ this._logger.info('handleMouseEnter');
65
+ this._controlBarWindow.setIgnoreMouseEvents(false);
66
+ }
67
+ }, {
68
+ key: "handleDomMouseLeave",
69
+ value: function handleDomMouseLeave() {
70
+ if (!this._shouldUseDomMouse()) return;
71
+ this._logger.info('handleMouseLeave');
72
+ this._controlBarWindow.setIgnoreMouseEvents(true, {
73
+ forward: true
74
+ });
75
+ }
76
+ }, {
77
+ key: "_shouldUseMouseDetect",
78
+ value: function _shouldUseMouseDetect() {
79
+ return this._mouseDetectProvider.isMouseDetectEnabled();
80
+ }
81
+ }, {
82
+ key: "_shouldUseDomMouse",
83
+ value: function _shouldUseDomMouse() {
84
+ return !this._mouseDetectProvider.isMouseDetectEnabled();
85
+ }
86
+ }]);
87
+ }();
@@ -30,7 +30,7 @@ export default class ControlBarStore implements FcrUIManagedObject {
30
30
  private _sharedLayoutDataSource;
31
31
  private _controlBarWindow;
32
32
  private _screenShareObserver;
33
- private _mouseDetectObserver;
33
+ private _mouseEventBridge;
34
34
  private _stateNavArea;
35
35
  private _contentArea;
36
36
  private _popoverArea;
@@ -73,6 +73,7 @@ var _struct = require("../../providers/mouse-detect/struct");
73
73
  var _type3 = require("fcr-core/lib/room-control/sharing-control/type");
74
74
  var _type4 = require("../secondary-window/type");
75
75
  var _type5 = require("../../modules/toast-manager/type");
76
+ var _mouseEventBridge = require("./mouse-event-bridge");
76
77
  var _ControlBarStore;
77
78
  var _initProto, _init_roomDuration, _init_startTime, _init_cloudRecordingState, _init_playUrl, _init_liveStreamingState, _init_allApplicationWindows, _init_boardOwnerUser, _init_currentShareDisplayId, _init_position, _init_appActionbarPopoverVisible, _setCheckedStateMapDecs, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _showToastDecs, _handleLeaveRoomDecs, _closeLeaveMeetingDialogDecs, _handleMoreClickDecs, _setAppActionbarPopoverVisibleDecs, _ref;
78
79
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
@@ -166,23 +167,6 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
166
167
  _this.updateWindowBounds(sharingDisplayBounds);
167
168
  }
168
169
  });
169
- (0, _defineProperty2["default"])(this, "_mouseDetectObserver", {
170
- onMouseEnterDetectArea: function onMouseEnterDetectArea(areaId) {
171
- if (areaId === _struct.FcrUIDetectAreaID.ControlBar) {
172
- _this._controlBarWindow.setIgnoreMouseEvents(false);
173
- if ((0, _env.isWindows)()) {
174
- _this._controlBarWindow.focus();
175
- }
176
- }
177
- },
178
- onMouseLeaveDetectArea: function onMouseLeaveDetectArea(areaId) {
179
- if (areaId === _struct.FcrUIDetectAreaID.ControlBar) {
180
- _this._controlBarWindow.setIgnoreMouseEvents(true, {
181
- forward: true
182
- });
183
- }
184
- }
185
- });
186
170
  (0, _defineProperty2["default"])(this, "_stateNavArea", {
187
171
  x: 0,
188
172
  y: 0,
@@ -287,7 +271,12 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
287
271
  _this.boardOwnerUser = '';
288
272
  }
289
273
  };
290
- this._mouseDetectProvider.addObserver(this._mouseDetectObserver);
274
+ this._mouseEventBridge = new _mouseEventBridge.ControlBarMouseEventBridge({
275
+ controlBarWindow: this._controlBarWindow,
276
+ mouseDetectProvider: this._mouseDetectProvider,
277
+ logger: this.logger
278
+ });
279
+ this._mouseEventBridge.initialize();
291
280
  this._screenShareProvider.addObserver(this._screenShareObserver);
292
281
  this._mainRoomControl.addObserver(this._roomObserver);
293
282
  this._mainRoomControl.getSharingControl().getBoardControl().addObserver(this._boardObserver);
@@ -632,18 +621,12 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
632
621
  }, {
633
622
  key: "handleMouseEnter",
634
623
  value: function handleMouseEnter() {
635
- if ((0, _env.isMac)()) {
636
- this._controlBarWindow.setIgnoreMouseEvents(false);
637
- }
624
+ this._mouseEventBridge.handleDomMouseEnter();
638
625
  }
639
626
  }, {
640
627
  key: "handleMouseLeave",
641
628
  value: function handleMouseLeave() {
642
- if ((0, _env.isMac)()) {
643
- this._controlBarWindow.setIgnoreMouseEvents(true, {
644
- forward: true
645
- });
646
- }
629
+ this._mouseEventBridge.handleDomMouseLeave();
647
630
  }
648
631
  }, {
649
632
  key: "openLiveStreamingDialog",
@@ -721,7 +704,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
721
704
  this._mainRoomControl.getSharingControl().getBoardControl().removeObserver(this._boardObserver);
722
705
  this._mainRoomControl.removeObserver(this._roomObserver);
723
706
  this._screenShareProvider.removeObserver(this._screenShareObserver);
724
- this._mouseDetectProvider.removeObserver(this._mouseDetectObserver);
707
+ this._mouseEventBridge.dispose();
725
708
  this._mouseDetectProvider.deleteDetectArea(_struct.FcrUIDetectAreaID.ControlBar);
726
709
  }
727
710
  }, {
@@ -9,7 +9,6 @@ export interface IShareStateNav {
9
9
  onStopShare: () => void;
10
10
  currentPosition: TransferPosition;
11
11
  onMouseEnter: () => void;
12
- onMouseLeave: () => void;
13
12
  }
14
13
  export interface ITransferPositionIconProps {
15
14
  currentPosition: TransferPosition;
@@ -296,11 +296,13 @@ var ControlBar = (0, _mobxReact.observer)(function () {
296
296
  currentShareDisplayId = _useContext5.currentShareDisplayId,
297
297
  updateWindowBounds = _useContext5.updateWindowBounds,
298
298
  setPopoverArea = _useContext5.setPopoverArea,
299
- resetPopoverArea = _useContext5.resetPopoverArea;
299
+ resetPopoverArea = _useContext5.resetPopoverArea,
300
+ handleMouseLeave = _useContext5.handleMouseLeave;
300
301
  var updatePosition = (0, _react.useContext)(_context.DragStateUpdaterContext);
301
302
  var _useContext6 = (0, _react.useContext)(_context.ControlBarCalculationUpdaterContext),
302
303
  setDimensions = _useContext6.setDimensions,
303
- setNavPosition = _useContext6.setNavPosition;
304
+ setNavPosition = _useContext6.setNavPosition,
305
+ restartActiveTask = _useContext6.restartActiveTask;
304
306
  var _useState9 = (0, _react.useState)('hidden'),
305
307
  _useState0 = (0, _slicedToArray2["default"])(_useState9, 2),
306
308
  visibility = _useState0[0],
@@ -354,12 +356,17 @@ var ControlBar = (0, _mobxReact.observer)(function () {
354
356
  }
355
357
  }, [visibility]);
356
358
  (0, _hooks.usePopoverWatcher)(containerRef, setPopoverArea, resetPopoverArea);
359
+ var handleControlBarMouseLeave = (0, _react.useCallback)(function () {
360
+ handleMouseLeave();
361
+ restartActiveTask();
362
+ }, [handleMouseLeave, restartActiveTask]);
357
363
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
358
364
  ref: containerRef,
359
365
  className: rootClassNames,
360
366
  style: {
361
367
  visibility: visibility
362
368
  },
369
+ onMouseLeave: handleControlBarMouseLeave,
363
370
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(ControlBarContent, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(ShareStateNavigation, {})]
364
371
  });
365
372
  });
@@ -368,11 +375,9 @@ var ControlBar = (0, _mobxReact.observer)(function () {
368
375
  var ControlBarContent = /*#__PURE__*/(0, _react.memo)(function () {
369
376
  var _useContext7 = (0, _react.useContext)(_store.StoreContext),
370
377
  handleMouseEnter = _useContext7.handleMouseEnter,
371
- handleMouseLeave = _useContext7.handleMouseLeave,
372
378
  setControlBarContentArea = _useContext7.setControlBarContentArea;
373
379
  var _useContext8 = (0, _react.useContext)(_context.ControlBarCalculationUpdaterContext),
374
380
  setIsShareActionNavHidden = _useContext8.setIsShareActionNavHidden,
375
- restartActiveTask = _useContext8.restartActiveTask,
376
381
  cancelActiveTask = _useContext8.cancelActiveTask;
377
382
  var calculation = (0, _react.useContext)(_context.ControlBarCalculationContext);
378
383
  var navClassName = (0, _react.useMemo)(function () {
@@ -383,10 +388,6 @@ var ControlBarContent = /*#__PURE__*/(0, _react.memo)(function () {
383
388
  handleMouseEnter();
384
389
  cancelActiveTask();
385
390
  }, []);
386
- var handleMouseLeaveNav = (0, _react.useCallback)(function () {
387
- handleMouseLeave();
388
- restartActiveTask();
389
- }, []);
390
391
  var handleBoundariesChanged = (0, _react.useCallback)(function (boundaries) {
391
392
  console.log('ControlBarContent boundaries changed');
392
393
  setControlBarContentArea(boundaries);
@@ -422,7 +423,6 @@ var ControlBarContent = /*#__PURE__*/(0, _react.memo)(function () {
422
423
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
423
424
  className: navClassName,
424
425
  onMouseEnter: handleMouseEnterNav,
425
- onMouseLeave: handleMouseLeaveNav,
426
426
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(MediaControlGroup, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_divider["default"], {
427
427
  style: {
428
428
  marginRight: 24,
@@ -660,7 +660,6 @@ var ShareStateNavigation = /*#__PURE__*/(0, _react.memo)(function () {
660
660
  var _useContext17 = (0, _react.useContext)(_store.StoreContext),
661
661
  handlerStopShare = _useContext17.handlerStopShare,
662
662
  handleMouseEnter = _useContext17.handleMouseEnter,
663
- handleMouseLeave = _useContext17.handleMouseLeave,
664
663
  setStateNavArea = _useContext17.setStateNavArea;
665
664
  var calculation = (0, _react.useContext)(_context.ControlBarCalculationContext);
666
665
  var _useContext18 = (0, _react.useContext)(_context.ControlBarCalculationUpdaterContext),
@@ -668,7 +667,6 @@ var ShareStateNavigation = /*#__PURE__*/(0, _react.memo)(function () {
668
667
  setNavPosition = _useContext18.setNavPosition,
669
668
  moveBottom = _useContext18.moveBottom,
670
669
  moveTop = _useContext18.moveTop,
671
- restartActiveTask = _useContext18.restartActiveTask,
672
670
  cancelActiveTask = _useContext18.cancelActiveTask;
673
671
 
674
672
  // 从store获取当前位置和相关方法
@@ -687,10 +685,6 @@ var ShareStateNavigation = /*#__PURE__*/(0, _react.memo)(function () {
687
685
  handleMouseEnter();
688
686
  cancelActiveTask();
689
687
  }, [setIsShareActionNavHidden, handleMouseEnter, cancelActiveTask]);
690
- var handleMouseLeaveNav = (0, _react.useCallback)(function () {
691
- handleMouseLeave();
692
- restartActiveTask();
693
- }, [handleMouseLeave, restartActiveTask]);
694
688
  var handleBoundariesChanged = (0, _react.useCallback)(function (boundaries) {
695
689
  console.log('ShareStateNavigation boundaries changed');
696
690
  setStateNavArea(boundaries);
@@ -713,7 +707,6 @@ var ShareStateNavigation = /*#__PURE__*/(0, _react.memo)(function () {
713
707
  ref: detector,
714
708
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_shareStateNav.ShareStateNav, {
715
709
  onMouseEnter: handleMouseEnterNav,
716
- onMouseLeave: handleMouseLeaveNav,
717
710
  onShareStateNavTransferPosition: handleTransferPosition,
718
711
  currentPosition: navCurrentPosition,
719
712
  onStopShare: handlerStopShare
@@ -21,7 +21,8 @@ var GatewayConnectorTabs = exports.GatewayConnectorTabs = (0, _mobxReact.observe
21
21
  phoneChildren = props.phoneChildren;
22
22
  var _useContext = (0, _react.useContext)(_store.StoreContext),
23
23
  connectType = _useContext.connectType,
24
- hasOwnPstnStream = _useContext.hasOwnPstnStream;
24
+ hasOwnPstnStream = _useContext.hasOwnPstnStream,
25
+ hasOwnVolteStream = _useContext.hasOwnVolteStream;
25
26
  var _useState = (0, _react.useState)("".concat(type)),
26
27
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
27
28
  activeTabKey = _useState2[0],
@@ -31,7 +32,7 @@ var GatewayConnectorTabs = exports.GatewayConnectorTabs = (0, _mobxReact.observe
31
32
  key: 'computer',
32
33
  content: computerChildren
33
34
  }, {
34
- label: "".concat((0, _i18n.transI18n)('fmt_pstn_options_phoneaudio')).concat(hasOwnPstnStream ? "-".concat((0, _i18n.transI18n)('fmt_PSTN_status_connected')) : ''),
35
+ label: "".concat((0, _i18n.transI18n)('fmt_pstn_options_phoneaudio')).concat(hasOwnPstnStream || hasOwnVolteStream ? "-".concat((0, _i18n.transI18n)('fmt_PSTN_status_connected')) : ''),
35
36
  key: 'phone',
36
37
  content: phoneChildren
37
38
  }];
@@ -1,31 +1,14 @@
1
1
  "use strict";
2
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
3
  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.iterator.constructor.js");
14
- require("core-js/modules/esnext.iterator.filter.js");
15
- require("core-js/modules/esnext.iterator.for-each.js");
16
- require("core-js/modules/web.dom-collections.for-each.js");
17
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
18
4
  Object.defineProperty(exports, "__esModule", {
19
5
  value: true
20
6
  });
21
7
  exports.webDialogConfig = exports.electronWindowConfig = exports.InviteDialog = void 0;
22
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
23
8
  var _constant = require("../../../../utilities/constant");
24
9
  require("../../index.css");
25
10
  var _normalWindow = require("../../components/normal-window");
26
11
  var _jsxRuntime = require("react/jsx-runtime");
27
- 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; }
28
- 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; }
29
12
  var InviteDialog = exports.InviteDialog = function InviteDialog(_ref) {
30
13
  var dialogKey = _ref.dialogKey,
31
14
  dialogId = _ref.dialogId,
@@ -36,12 +19,12 @@ var InviteDialog = exports.InviteDialog = function InviteDialog(_ref) {
36
19
  body: children
37
20
  });
38
21
  };
39
- var baseDialogConfig = {
40
- // width: 430,
41
- // height: 420,
22
+ var webDialogConfig = exports.webDialogConfig = {
23
+ onlyTitleCanTriggerDrag: false
42
24
  };
43
- var webDialogConfig = exports.webDialogConfig = baseDialogConfig;
44
- var electronWindowConfig = exports.electronWindowConfig = _objectSpread(_objectSpread({}, baseDialogConfig), {}, {
25
+ var electronWindowConfig = exports.electronWindowConfig = {
26
+ height: 424,
27
+ width: 400,
45
28
  frame: false,
46
29
  maximizable: false,
47
30
  minimizable: false,
@@ -51,9 +34,8 @@ var electronWindowConfig = exports.electronWindowConfig = _objectSpread(_objectS
51
34
  y: 0
52
35
  },
53
36
  resizable: false,
54
- hasShadow: false,
55
37
  useContentSize: true,
56
38
  transparent: true,
57
39
  backgroundColor: '#00000000',
58
40
  alwaysOnTop: true
59
- });
41
+ };
@@ -0,0 +1,72 @@
1
+ .fcr-invite-copy-info {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: start;
5
+ justify-content: center;
6
+ padding: 0 20px 0 20px;
7
+ height: 100%;
8
+ }
9
+
10
+ .fcr-invite-copy-info-content {
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: 20px;
14
+ width: 100%;
15
+ padding-bottom: 16px;
16
+ }
17
+
18
+ .fcr-invite-copy-info-title {
19
+ font-size: 14px;
20
+ font-weight: 600;
21
+ color: var(--fcr_ui_scene_icontext1);
22
+ font-weight: 700;
23
+ line-height: 18px;
24
+ letter-spacing: 0px;
25
+ text-transform: capitalize;
26
+ }
27
+
28
+ .fcr-invite-copy-info-content-item {
29
+ width: 100%;
30
+ display: flex;
31
+ flex-direction: row;
32
+ justify-content: flex-start;
33
+ }
34
+
35
+ .fcr-invite-copy-info-content-item-label {
36
+ font-size: 12px;
37
+ font-weight: 400;
38
+ width: 96px;
39
+ color: var(--fcr_ui_scene_icontext2);
40
+ line-height: 18px;
41
+ }
42
+
43
+ .fcr-invite-copy-info-content-item-value {
44
+ font-size: 12px;
45
+ font-weight: 400;
46
+ font-family: Verdana;
47
+ line-height: 18px;
48
+ color: var(--fcr_ui_scene_icontext1);
49
+ width: calc(100% - 96px);
50
+ word-break: break-all;
51
+ }
52
+
53
+ .fcr-invite-copy-info-content-item-value-meeting-id {
54
+ display: flex;
55
+ align-items: center;
56
+ }
57
+
58
+ .fcr-invite-copy-info-content-item-value-meeting-id > svg {
59
+ flex-shrink: 0;
60
+ margin-left: 8px;
61
+ border-radius: var(--fcr_cornerradius_s, 4px);
62
+ cursor: pointer;
63
+ }
64
+
65
+ .fcr-invite-copy-info-content-item-value-meeting-id > svg:hover {
66
+ background-color: var(--fcr_web_ui_scene_hover);
67
+ border: none;
68
+ }
69
+
70
+ .fcr-invite-copy-info-content-item-value-meeting-id > svg:hover path {
71
+ fill: var(--fcr_web_ui_scene_mainicon2);
72
+ }
@@ -0,0 +1,3 @@
1
+ import './copy-info.css';
2
+ declare const CopyInfo: () => import("react/jsx-runtime").JSX.Element;
3
+ export default CopyInfo;
@@ -0,0 +1,144 @@
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["default"] = void 0;
8
+ require("core-js/modules/es.regexp.exec.js");
9
+ require("core-js/modules/es.string.replace.js");
10
+ var _i18n = require("agora-ui-foundation/lib/i18n");
11
+ require("./copy-info.css");
12
+ var _button = require("agora-ui-foundation/lib/components/button");
13
+ var _react = require("react");
14
+ var _copyText = require("agora-ui-foundation/lib/utilities/copy-text");
15
+ var _type = require("../../toast-manager/type");
16
+ var _store = require("../store");
17
+ var _icon = require("agora-ui-foundation/lib/components/icon");
18
+ var _type2 = require("agora-ui-foundation/lib/components/icon/type");
19
+ var _tools = require("agora-foundation/lib/utilities/tools");
20
+ var _meetingDetail = require("../../../utilities/meeting-detail");
21
+ var _jsxRuntime = require("react/jsx-runtime");
22
+ var CopyInfo = function CopyInfo() {
23
+ var transI18n = (0, _i18n.useI18n)();
24
+ var _useContext = (0, _react.useContext)(_store.StoreContext),
25
+ _useContext$roomInfo = _useContext.roomInfo,
26
+ inviteLink = _useContext$roomInfo.inviteLink,
27
+ roomId = _useContext$roomInfo.roomId,
28
+ roomName = _useContext$roomInfo.roomName,
29
+ password = _useContext$roomInfo.password,
30
+ showToast = _useContext.showToast,
31
+ roomDetailCopyText = _useContext.roomDetailCopyText,
32
+ localUserName = _useContext.localUserName,
33
+ meetingId = _useContext.meetingId,
34
+ roomSchedule = _useContext.roomSchedule;
35
+ var duration = (roomSchedule === null || roomSchedule === void 0 ? void 0 : roomSchedule.duration) || 0;
36
+ var startTime = (roomSchedule === null || roomSchedule === void 0 ? void 0 : roomSchedule.startTime) || 0;
37
+ function handleCopyMeetingId(copyContent) {
38
+ if (!copyContent) return;
39
+ var content = meetingId ? copyContent : copyContent.replace(/\s+/g, '');
40
+ (0, _copyText.copyText)(content).then(function () {
41
+ showToast({
42
+ key: _type.FcrUIToastKey.FMT_STATUSBAR_STATUS_COPPIED
43
+ });
44
+ })["catch"](function () {
45
+ showToast({
46
+ key: _type.FcrUIToastKey.FMT_INFORMATION_TIPS_NUMBERCOPYFAILED
47
+ });
48
+ });
49
+ }
50
+ var handleCopyMeetingDetail = (0, _react.useCallback)(function () {
51
+ (0, _copyText.copyText)(roomDetailCopyText).then(function () {
52
+ showToast({
53
+ key: _type.FcrUIToastKey.FMT_STATUSBAR_STATUS_COPPIED
54
+ });
55
+ });
56
+ }, []);
57
+ var displayMeetingId = (0, _tools.renderMeetingId)(meetingId, roomId);
58
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
59
+ className: "fcr-invite-copy-info",
60
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
61
+ className: "fcr-invite-copy-info-content",
62
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
63
+ className: "fcr-invite-copy-info-title",
64
+ children: transI18n('fmt_link_invitation', {
65
+ reason1: localUserName
66
+ })
67
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
68
+ className: "fcr-invite-copy-info-content-item",
69
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
70
+ className: "fcr-invite-copy-info-content-item-label",
71
+ children: transI18n('fmt_meetinginfo_room_topic')
72
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
73
+ className: "fcr-invite-copy-info-content-item-value",
74
+ children: roomName
75
+ })]
76
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
77
+ className: "fcr-invite-copy-info-content-item",
78
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
79
+ className: "fcr-invite-copy-info-content-item-label",
80
+ children: transI18n('fmt_meetingInfo_window_info_meetingID')
81
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
82
+ className: "fcr-invite-copy-info-content-item-value fcr-invite-copy-info-content-item-value-meeting-id",
83
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
84
+ children: displayMeetingId
85
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
86
+ onClick: function onClick() {
87
+ return handleCopyMeetingId(displayMeetingId);
88
+ },
89
+ type: _type2.FcrIconType.FCR_COPY_ICON,
90
+ size: 20,
91
+ colors: {
92
+ iconPrimary: 'var(--fcr_ui_scene_icontext1)'
93
+ }
94
+ })]
95
+ })]
96
+ }), password && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
97
+ className: "fcr-invite-copy-info-content-item",
98
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
99
+ className: "fcr-invite-copy-info-content-item-label",
100
+ children: transI18n('fmt_premeeting_joinroom_mobile_tips_password')
101
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
102
+ className: "fcr-invite-copy-info-content-item-value fcr-invite-copy-info-content-item-value-meeting-id",
103
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
104
+ children: password
105
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
106
+ onClick: function onClick() {
107
+ return handleCopyMeetingId(password);
108
+ },
109
+ type: _type2.FcrIconType.FCR_COPY_ICON,
110
+ size: 20,
111
+ colors: {
112
+ iconPrimary: 'var(--fcr_ui_scene_icontext1)'
113
+ }
114
+ })]
115
+ })]
116
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
117
+ className: "fcr-invite-copy-info-content-item",
118
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
119
+ className: "fcr-invite-copy-info-content-item-label",
120
+ children: transI18n('fmt_invitepage_label_invite_link')
121
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
122
+ className: "fcr-invite-copy-info-content-item-value",
123
+ children: inviteLink
124
+ })]
125
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
126
+ className: "fcr-invite-copy-info-content-item",
127
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
128
+ className: "fcr-invite-copy-info-content-item-label",
129
+ children: transI18n('fmt_ai_summary_create_labels_meeting_time')
130
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
131
+ className: "fcr-invite-copy-info-content-item-value",
132
+ children: (0, _meetingDetail.generateMeetingDuration)(startTime || 0, duration)
133
+ })]
134
+ })]
135
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
136
+ type: "secondary-bordered",
137
+ size: "XS",
138
+ onClick: handleCopyMeetingDetail,
139
+ className: "invite__pstn-invite-copyinfo",
140
+ children: transI18n('fmt_popup_button_meetinginfor')
141
+ })]
142
+ });
143
+ };
144
+ var _default = exports["default"] = CopyInfo;
@@ -170,9 +170,9 @@ var PSTNInvite = exports.PSTNInvite = (0, _mobxReact.observer)(function () {
170
170
  setIsInvitePhoneNumberError(true);
171
171
  }
172
172
  };
173
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
173
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
174
174
  className: "invite__pstn-invite",
175
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
175
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
176
176
  className: "invite__pstn-invite__phone",
177
177
  children: [!isPstnCalling ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
178
178
  className: "invite__pstn-invite_edit_phone",
@@ -246,18 +246,6 @@ var PSTNInvite = exports.PSTNInvite = (0, _mobxReact.observer)(function () {
246
246
  size: "XS",
247
247
  children: !isPstnCalling ? transI18n('fmt_pstn_label_phonecall') : transI18n('fmt_pstn_button_hangupphone')
248
248
  })]
249
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
250
- className: "invite__pstn-invite-divider",
251
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
252
- className: "invite__pstn-invite-divider-content",
253
- children: transI18n('fmt_pstn_label_or')
254
- })
255
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
256
- type: "secondary-bordered",
257
- size: "XS",
258
- onClick: handleCopyMeetingDetail,
259
- className: "invite__pstn-invite-copyinfo",
260
- children: transI18n('fmt_popup_button_meetinginfor')
261
- })]
249
+ })
262
250
  });
263
251
  });
@@ -27,6 +27,8 @@ var _i18n = require("agora-ui-foundation/lib/i18n");
27
27
  var _errorTips = require("./error-tips");
28
28
  var _enums = require("../enums");
29
29
  require("./voip-invite.css");
30
+ var _regex = require("agora-foundation/lib/utilities/regex");
31
+ var _type3 = require("../../toast-manager/type");
30
32
  var _jsxRuntime = require("react/jsx-runtime");
31
33
  var VoipInvite = exports.VoipInvite = (0, _mobxReact.observer)(function () {
32
34
  var _calledVoipInfo$state;
@@ -53,12 +55,19 @@ var VoipInvite = exports.VoipInvite = (0, _mobxReact.observer)(function () {
53
55
  isVoipCalling = _useContext.isVoipCalling,
54
56
  startSessionByVoip = _useContext.startSessionByVoip,
55
57
  stopSession = _useContext.stopSession,
56
- calledVoipInfo = _useContext.calledVoipInfo;
58
+ calledVoipInfo = _useContext.calledVoipInfo,
59
+ showToast = _useContext.showToast;
57
60
  var _useState9 = (0, _react.useState)(false),
58
61
  _useState0 = (0, _slicedToArray2["default"])(_useState9, 2),
59
62
  isLoading = _useState0[0],
60
63
  setIsLoading = _useState0[1];
61
64
  var handleCallVoip = function handleCallVoip() {
65
+ if ((0, _regex.isPhoneNumber)(callVoip)) {
66
+ showToast({
67
+ key: _type3.FcrUIToastKey.FMT_SIP_TIPS_ENTER_CORRECT_NUMBER
68
+ });
69
+ return;
70
+ }
62
71
  checkInput(callVoip, setIsError);
63
72
  if (callVoip.trim().length === 0) {
64
73
  return;
@@ -1,6 +1,8 @@
1
1
  export declare enum InviteType {
2
2
  PSTN = "PSTN",
3
- VOIP = "VOIP"
3
+ VOIP = "VOIP",
4
+ COPY = "COPY",
5
+ WIDGET = "WIDGET"
4
6
  }
5
7
  export declare enum CallType {
6
8
  INCOMING = "incoming",
@@ -8,6 +8,8 @@ exports.VoipType = exports.InviteType = exports.InviteStatus = exports.CallType
8
8
  var InviteType = exports.InviteType = /*#__PURE__*/function (InviteType) {
9
9
  InviteType["PSTN"] = "PSTN";
10
10
  InviteType["VOIP"] = "VOIP";
11
+ InviteType["COPY"] = "COPY";
12
+ InviteType["WIDGET"] = "WIDGET";
11
13
  return InviteType;
12
14
  }({});
13
15
  var CallType = exports.CallType = /*#__PURE__*/function (CallType) {