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.
- package/lib/creator/provider-initializer.browser.js +2 -1
- package/lib/creator/provider-initializer.electron.js +11 -4
- package/lib/electron/injections.d.ts +1 -0
- package/lib/electron/injections.js +4 -1
- package/lib/electron/preload.js +1 -0
- package/lib/modules/action-bar/main-scene/store.base.d.ts +1 -0
- package/lib/modules/action-bar/main-scene/store.base.js +5 -0
- package/lib/modules/audio-stream/index.d.ts +2 -0
- package/lib/modules/audio-stream/index.js +33 -1
- package/lib/modules/chat/index.js +1 -1
- package/lib/modules/chat/store.d.ts +1 -1
- package/lib/modules/chat/store.js +4 -2
- package/lib/modules/components/device-control/store.base.d.ts +1 -0
- package/lib/modules/components/device-control/store.base.js +22 -3
- package/lib/modules/components/leave-meeting/index.js +3 -2
- package/lib/modules/components/leave-meeting/main-scene/store.d.ts +1 -0
- package/lib/modules/components/leave-meeting/main-scene/store.js +6 -1
- package/lib/modules/components/leave-meeting/store.base.d.ts +1 -0
- package/lib/modules/components/leave-meeting/store.base.js +1 -1
- package/lib/modules/components/leave-meeting/waiting-scene/store.d.ts +1 -0
- package/lib/modules/components/leave-meeting/waiting-scene/store.js +6 -1
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +7 -10
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +2 -2
- package/lib/modules/components/member-window/components/member-actions/index.js +0 -7
- package/lib/modules/components/member-window/components/member-actions/store.js +1 -1
- package/lib/modules/components/member-window/index.js +1 -1
- package/lib/modules/components/tab-frame/index.css +12 -1
- package/lib/modules/components/tab-frame/index.js +4 -1
- package/lib/modules/control-bar/components/share-state-nav/index.js +1 -3
- package/lib/modules/control-bar/mouse-event-bridge.d.ts +23 -0
- package/lib/modules/control-bar/mouse-event-bridge.js +87 -0
- package/lib/modules/control-bar/store.d.ts +1 -1
- package/lib/modules/control-bar/store.js +10 -27
- package/lib/modules/control-bar/type.d.ts +0 -1
- package/lib/modules/control-bar/view.js +9 -16
- package/lib/modules/dialog/dialogs/connection-gateway/tabs.js +3 -2
- package/lib/modules/dialog/dialogs/invite/index.js +6 -24
- package/lib/modules/invite/components/copy-info.css +72 -0
- package/lib/modules/invite/components/copy-info.d.ts +3 -0
- package/lib/modules/invite/components/copy-info.js +144 -0
- package/lib/modules/invite/components/pstn-invite.js +3 -15
- package/lib/modules/invite/components/voip-invite.js +10 -1
- package/lib/modules/invite/enums.d.ts +3 -1
- package/lib/modules/invite/enums.js +2 -0
- package/lib/modules/invite/store.d.ts +4 -1
- package/lib/modules/invite/store.js +37 -13
- package/lib/modules/invite/view.js +41 -20
- package/lib/modules/layout/store.base.d.ts +2 -1
- package/lib/modules/layout/store.base.js +20 -23
- package/lib/modules/participant/components/confirm-input/index.css +67 -1
- package/lib/modules/participant/components/confirm-input/index.js +16 -13
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +4 -0
- package/lib/modules/participant/store.base.d.ts +1 -0
- package/lib/modules/participant/store.base.js +34 -7
- package/lib/modules/pc-audio-connect/main-scene/store.d.ts +2 -0
- package/lib/modules/pc-audio-connect/main-scene/store.js +12 -2
- package/lib/modules/pc-audio-connect/view.js +4 -2
- package/lib/modules/phone-audio-connect/store.d.ts +6 -4
- package/lib/modules/phone-audio-connect/store.js +12 -1
- package/lib/modules/phone-audio-connect/view.js +6 -4
- package/lib/modules/secondary-window/index.js +2 -2
- package/lib/modules/secondary-window/store.d.ts +3 -0
- package/lib/modules/secondary-window/store.js +16 -1
- package/lib/modules/secondary-window/view.js +96 -72
- package/lib/modules/toast-manager/type.d.ts +2 -1
- package/lib/modules/toast-manager/type.js +4 -1
- package/lib/plugins/module-dev-plugin.js +4 -4
- package/lib/providers/ability-provider.d.ts +15 -0
- package/lib/providers/ability-provider.js +13 -1
- package/lib/providers/mouse-detect/provider.d.ts +2 -0
- package/lib/providers/mouse-detect/provider.empty.d.ts +14 -0
- package/lib/providers/mouse-detect/provider.empty.js +47 -0
- package/lib/providers/mouse-detect/provider.js +13 -4
- package/lib/providers/mouse-detect/type.d.ts +2 -0
- package/lib/providers/phone-audio-provider.d.ts +31 -5
- package/lib/providers/phone-audio-provider.js +83 -22
- package/lib/runtime.d.ts +1 -0
- package/lib/scenes/main-scene.js +2 -1
- package/lib/shared-data/chat-data.d.ts +19 -0
- package/lib/shared-data/chat-data.js +54 -7
- package/lib/shared-data/member-data.d.ts +9 -1
- package/lib/shared-data/member-data.js +46 -17
- package/lib/shared-data/video-window.js +8 -4
- package/lib/translations/enUS.d.ts +245 -1
- package/lib/translations/enUS.js +247 -3
- package/lib/translations/zhCN.d.ts +245 -1
- package/lib/translations/zhCN.js +246 -2
- package/lib/utilities/os.d.ts +1 -0
- package/lib/utilities/os.js +15 -0
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +7 -1
- package/lib-es/creator/provider-initializer.browser.js +2 -1
- package/lib-es/creator/provider-initializer.electron.js +9 -2
- package/lib-es/electron/injections.js +3 -0
- package/lib-es/electron/preload.js +2 -1
- package/lib-es/modules/action-bar/main-scene/store.base.js +5 -0
- package/lib-es/modules/audio-stream/index.js +33 -1
- package/lib-es/modules/chat/index.js +1 -1
- package/lib-es/modules/chat/store.js +4 -2
- package/lib-es/modules/components/device-control/store.base.js +22 -3
- package/lib-es/modules/components/leave-meeting/index.js +3 -2
- package/lib-es/modules/components/leave-meeting/main-scene/store.js +6 -1
- package/lib-es/modules/components/leave-meeting/store.base.js +1 -1
- package/lib-es/modules/components/leave-meeting/waiting-scene/store.js +6 -1
- package/lib-es/modules/components/member-window/components/member-actions/components/icon-status.js +7 -10
- package/lib-es/modules/components/member-window/components/member-actions/components/more-actions.js +2 -2
- package/lib-es/modules/components/member-window/components/member-actions/index.js +0 -7
- package/lib-es/modules/components/member-window/components/member-actions/store.js +1 -1
- package/lib-es/modules/components/member-window/index.js +1 -1
- package/lib-es/modules/components/tab-frame/index.css +12 -1
- package/lib-es/modules/components/tab-frame/index.js +4 -1
- package/lib-es/modules/control-bar/components/share-state-nav/index.js +1 -3
- package/lib-es/modules/control-bar/mouse-event-bridge.js +79 -0
- package/lib-es/modules/control-bar/store.js +11 -28
- package/lib-es/modules/control-bar/view.js +9 -16
- package/lib-es/modules/dialog/dialogs/connection-gateway/tabs.js +3 -2
- package/lib-es/modules/dialog/dialogs/invite/index.js +6 -24
- package/lib-es/modules/invite/components/copy-info.css +72 -0
- package/lib-es/modules/invite/components/copy-info.js +137 -0
- package/lib-es/modules/invite/components/pstn-invite.js +3 -15
- package/lib-es/modules/invite/components/voip-invite.js +10 -1
- package/lib-es/modules/invite/enums.js +2 -0
- package/lib-es/modules/invite/store.js +38 -14
- package/lib-es/modules/invite/view.js +43 -22
- package/lib-es/modules/layout/store.base.js +20 -23
- package/lib-es/modules/participant/components/confirm-input/index.css +67 -1
- package/lib-es/modules/participant/components/confirm-input/index.js +16 -13
- package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/index.css +4 -0
- package/lib-es/modules/participant/store.base.js +34 -7
- package/lib-es/modules/pc-audio-connect/main-scene/store.js +12 -2
- package/lib-es/modules/pc-audio-connect/view.js +4 -2
- package/lib-es/modules/phone-audio-connect/store.js +12 -1
- package/lib-es/modules/phone-audio-connect/view.js +6 -4
- package/lib-es/modules/secondary-window/index.js +2 -2
- package/lib-es/modules/secondary-window/store.js +16 -1
- package/lib-es/modules/secondary-window/view.js +97 -73
- package/lib-es/modules/toast-manager/type.js +4 -1
- package/lib-es/plugins/module-dev-plugin.js +4 -4
- package/lib-es/providers/ability-provider.js +13 -1
- package/lib-es/providers/mouse-detect/provider.empty.js +39 -0
- package/lib-es/providers/mouse-detect/provider.js +13 -4
- package/lib-es/providers/phone-audio-provider.js +109 -48
- package/lib-es/scenes/main-scene.js +3 -2
- package/lib-es/shared-data/chat-data.js +55 -8
- package/lib-es/shared-data/member-data.js +46 -17
- package/lib-es/shared-data/video-window.js +8 -4
- package/lib-es/translations/enUS.js +247 -3
- package/lib-es/translations/zhCN.js +246 -2
- package/lib-es/utilities/os.js +8 -0
- package/lib-es/utilities/renderer.js +7 -1
- package/lib-es/utilities/shared-storage.js +2 -2
- package/package.json +6 -6
- package/lib/modules/connection-gateway/components/computer/index.css +0 -12
- package/lib/modules/connection-gateway/components/computer/index.d.ts +0 -3
- package/lib/modules/connection-gateway/components/computer/index.js +0 -66
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +0 -36
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +0 -10
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +0 -78
- package/lib/modules/connection-gateway/components/phone/components/calling/index.css +0 -72
- package/lib/modules/connection-gateway/components/phone/components/calling/index.d.ts +0 -7
- package/lib/modules/connection-gateway/components/phone/components/calling/index.js +0 -58
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +0 -10
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.d.ts +0 -5
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.js +0 -24
- package/lib/modules/connection-gateway/components/phone/components/useing/index.css +0 -46
- package/lib/modules/connection-gateway/components/phone/components/useing/index.d.ts +0 -3
- package/lib/modules/connection-gateway/components/phone/components/useing/index.js +0 -36
- package/lib/modules/connection-gateway/components/phone/index.css +0 -49
- package/lib/modules/connection-gateway/components/phone/index.d.ts +0 -3
- package/lib/modules/connection-gateway/components/phone/index.js +0 -185
- package/lib/modules/connection-gateway/enums.d.ts +0 -4
- package/lib/modules/connection-gateway/enums.js +0 -12
- package/lib/modules/connection-gateway/index.css +0 -6
- package/lib/modules/connection-gateway/index.d.ts +0 -10
- package/lib/modules/connection-gateway/index.js +0 -78
- package/lib/modules/connection-gateway/store.d.ts +0 -68
- package/lib/modules/connection-gateway/store.js +0 -713
- package/lib/modules/connection-gateway/types.d.ts +0 -8
- package/lib/modules/connection-gateway/types.js +0 -6
- package/lib/modules/connection-gateway/view.d.ts +0 -1
- package/lib/modules/connection-gateway/view.js +0 -39
- package/lib-es/modules/connection-gateway/components/computer/index.css +0 -12
- package/lib-es/modules/connection-gateway/components/computer/index.js +0 -59
- package/lib-es/modules/connection-gateway/components/phone/components/callinfo/index.css +0 -36
- package/lib-es/modules/connection-gateway/components/phone/components/callinfo/index.js +0 -71
- package/lib-es/modules/connection-gateway/components/phone/components/calling/index.css +0 -72
- package/lib-es/modules/connection-gateway/components/phone/components/calling/index.js +0 -51
- package/lib-es/modules/connection-gateway/components/phone/components/remeber/index.css +0 -10
- package/lib-es/modules/connection-gateway/components/phone/components/remeber/index.js +0 -17
- package/lib-es/modules/connection-gateway/components/phone/components/useing/index.css +0 -46
- package/lib-es/modules/connection-gateway/components/phone/components/useing/index.js +0 -29
- package/lib-es/modules/connection-gateway/components/phone/index.css +0 -49
- package/lib-es/modules/connection-gateway/components/phone/index.js +0 -177
- package/lib-es/modules/connection-gateway/enums.js +0 -5
- package/lib-es/modules/connection-gateway/index.css +0 -6
- package/lib-es/modules/connection-gateway/index.js +0 -60
- package/lib-es/modules/connection-gateway/store.js +0 -707
- package/lib-es/modules/connection-gateway/types.js +0 -1
- package/lib-es/modules/connection-gateway/view.js +0 -31
|
@@ -168,6 +168,11 @@ var ConnectionGatewayStoreMainScene = exports["default"] = /*#__PURE__*/function
|
|
|
168
168
|
get: function get() {
|
|
169
169
|
return this._phoneAudioConnectorProvider.hasOwnPstnStream;
|
|
170
170
|
}
|
|
171
|
+
}, {
|
|
172
|
+
key: "hasOwnVolteStream",
|
|
173
|
+
get: function get() {
|
|
174
|
+
return this._phoneAudioConnectorProvider.hasOwnVolteStream;
|
|
175
|
+
}
|
|
171
176
|
}, {
|
|
172
177
|
key: "outgoingCall",
|
|
173
178
|
get: function get() {
|
|
@@ -178,6 +183,11 @@ var ConnectionGatewayStoreMainScene = exports["default"] = /*#__PURE__*/function
|
|
|
178
183
|
get: function get() {
|
|
179
184
|
return this._phoneAudioConnectorProvider.hasPstnStream;
|
|
180
185
|
}
|
|
186
|
+
}, {
|
|
187
|
+
key: "hasVolteStream",
|
|
188
|
+
get: function get() {
|
|
189
|
+
return this._phoneAudioConnectorProvider.hasVolteStream;
|
|
190
|
+
}
|
|
181
191
|
}, {
|
|
182
192
|
key: "connectInfo",
|
|
183
193
|
get: function get() {
|
|
@@ -215,7 +225,7 @@ var ConnectionGatewayStoreMainScene = exports["default"] = /*#__PURE__*/function
|
|
|
215
225
|
return false;
|
|
216
226
|
}
|
|
217
227
|
this._needShowConfirmDialog = false;
|
|
218
|
-
if (this.hasOwnPstnStream) {
|
|
228
|
+
if (this.hasOwnPstnStream || this.hasOwnVolteStream) {
|
|
219
229
|
return false;
|
|
220
230
|
}
|
|
221
231
|
var dialogId = this._dialogProvider.openConfirmDialog({
|
|
@@ -310,7 +320,7 @@ var ConnectionGatewayStoreMainScene = exports["default"] = /*#__PURE__*/function
|
|
|
310
320
|
}]);
|
|
311
321
|
}();
|
|
312
322
|
_ConnectionGatewayStoreMainScene = ConnectionGatewayStoreMainScene;
|
|
313
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ConnectionGatewayStoreMainScene, [[_mobx.observable, 1, "phoneCallState"], [_mobx.observable, 1, "phoneCallReason"], [_mobx.observable, 1, "connectSession"], [_mobx.observable, 1, "calling"], [_mobx.computed, 3, "connectType"], [_mobx.computed, 3, "hasNeedMergedStream"], [_mobx.computed, 3, "hasOwnPstnStream"], [_mobx.computed, 3, "outgoingCall"], [_mobx.computed, 3, "hasPstnStream"], [_mobx.computed, 3, "connectInfo"], [_decorator.bound, 2, "openAudioSettings"], [_decorator.bound, 2, "_handleInterceptorCloseDialog"], [_decorator.bound, 2, "joinAudioByComputer"], [_decorator.bound, 2, "stopAudioByComputer"], [_decorator.bound, 2, "openInviteDialog"]], []).e, 5);
|
|
323
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ConnectionGatewayStoreMainScene, [[_mobx.observable, 1, "phoneCallState"], [_mobx.observable, 1, "phoneCallReason"], [_mobx.observable, 1, "connectSession"], [_mobx.observable, 1, "calling"], [_mobx.computed, 3, "connectType"], [_mobx.computed, 3, "hasNeedMergedStream"], [_mobx.computed, 3, "hasOwnPstnStream"], [_mobx.computed, 3, "hasOwnVolteStream"], [_mobx.computed, 3, "outgoingCall"], [_mobx.computed, 3, "hasPstnStream"], [_mobx.computed, 3, "hasVolteStream"], [_mobx.computed, 3, "connectInfo"], [_decorator.bound, 2, "openAudioSettings"], [_decorator.bound, 2, "_handleInterceptorCloseDialog"], [_decorator.bound, 2, "joinAudioByComputer"], [_decorator.bound, 2, "stopAudioByComputer"], [_decorator.bound, 2, "openInviteDialog"]], []).e, 5);
|
|
314
324
|
_init_phoneCallState = _applyDecs$e[0];
|
|
315
325
|
_init_phoneCallReason = _applyDecs$e[1];
|
|
316
326
|
_init_connectSession = _applyDecs$e[2];
|
|
@@ -25,6 +25,8 @@ var View = (0, _mobxReact.observer)(function () {
|
|
|
25
25
|
hasOwnPstnStream = _useContext.hasOwnPstnStream,
|
|
26
26
|
outgoingCall = _useContext.outgoingCall,
|
|
27
27
|
hasPstnStream = _useContext.hasPstnStream,
|
|
28
|
+
hasVolteStream = _useContext.hasVolteStream,
|
|
29
|
+
hasOwnVolteStream = _useContext.hasOwnVolteStream,
|
|
28
30
|
connectInfo = _useContext.connectInfo;
|
|
29
31
|
var transI18n = (0, _i18n.useI18n)();
|
|
30
32
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -35,7 +37,7 @@ var View = (0, _mobxReact.observer)(function () {
|
|
|
35
37
|
className: "var(--fcrcornerradiusround) fcr_ui_scene_ramp_brand6",
|
|
36
38
|
onClick: joinAudioByComputer,
|
|
37
39
|
children: transI18n('fmt_pstn_label_accessmethodPC')
|
|
38
|
-
}), hasPstnStream && !outgoingCall && !hasOwnPstnStream && hasNeedMergedStream && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
40
|
+
}), (hasPstnStream || hasVolteStream) && !outgoingCall && !hasOwnPstnStream && !hasOwnVolteStream && hasNeedMergedStream && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
39
41
|
className: "connector-phone-alert",
|
|
40
42
|
children: transI18n('fmt_pstn_label_alreadyin', {
|
|
41
43
|
reason1: connectInfo === null || connectInfo === void 0 ? void 0 : connectInfo.phoneUserId
|
|
@@ -47,7 +49,7 @@ var View = (0, _mobxReact.observer)(function () {
|
|
|
47
49
|
className: "var(--fcrcornerradiusround)",
|
|
48
50
|
onClick: stopAudioByComputer,
|
|
49
51
|
children: transI18n('fmt_pstn_button_PCaudiostop')
|
|
50
|
-
}), connectType === _type.FcrUIConnectType.PHONE && hasOwnPstnStream && /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
52
|
+
}), connectType === _type.FcrUIConnectType.PHONE && (hasOwnPstnStream || hasOwnVolteStream) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
51
53
|
content: transI18n('fmt_pstn_tips_alreadyphone'),
|
|
52
54
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
53
55
|
size: "XS",
|
|
@@ -13,16 +13,18 @@ export default class ConnectionGatewayStore {
|
|
|
13
13
|
accessor currentRegion: ConnectorRegion;
|
|
14
14
|
accessor currentCallInfo: ConnectListType;
|
|
15
15
|
get connectType(): import("../../type").FcrUIConnectType;
|
|
16
|
-
get phoneCallState(): import("fcr-core/lib/type").FcrRoomConnectorSessionState;
|
|
16
|
+
get phoneCallState(): import("fcr-core/lib/room-control/room-connector-control/type").FcrRoomConnectorSessionState;
|
|
17
17
|
get calling(): boolean;
|
|
18
|
-
get phoneCallReason(): import("fcr-core/lib/type").FcrRoomConnectorSessionReason;
|
|
18
|
+
get phoneCallReason(): import("fcr-core/lib/room-control/room-connector-control/type").FcrRoomConnectorSessionReason;
|
|
19
19
|
get outgoingCall(): boolean;
|
|
20
20
|
get isHangup(): boolean;
|
|
21
21
|
get hasPstnStream(): boolean;
|
|
22
22
|
get hasOwnPstnStream(): boolean;
|
|
23
|
+
get hasVolteStream(): boolean;
|
|
24
|
+
get hasOwnVolteStream(): boolean;
|
|
23
25
|
get hasNeedMergedStream(): boolean;
|
|
24
|
-
get connectInfo(): import("fcr-core/lib/type").FcrRoomConnectorPhoneInfo;
|
|
25
|
-
get connectSession(): import("fcr-core/lib/type").FcrPhoneConnectorSession | null;
|
|
26
|
+
get connectInfo(): import("fcr-core/lib/room-control/room-connector-control/type").FcrRoomConnectorPhoneInfo;
|
|
27
|
+
get connectSession(): import("fcr-core/lib/room-control/room-connector-control/type").FcrPhoneConnectorSession | null;
|
|
26
28
|
constructor({ objectManager }: ConnectionGatewayStoreArgs);
|
|
27
29
|
startCall(): void;
|
|
28
30
|
stopCall(): void;
|
|
@@ -70,6 +70,7 @@ var _constant = require("../../utilities/constant");
|
|
|
70
70
|
var _enums = require("./enums");
|
|
71
71
|
var _objectManager = require("../../object-manager");
|
|
72
72
|
var _type = require("../setting/type");
|
|
73
|
+
var _type2 = require("fcr-core/lib/room-control/room-connector-control/type");
|
|
73
74
|
var _ConnectionGatewayStore;
|
|
74
75
|
var _initProto, _init_rememberMe, _init_rememberedNumberList, _init_currentRegion, _init_currentCallInfo, _startCallDecs, _stopCallDecs, _regionChangeHandlerDecs, _setRememberMeDecs, _initRememberedDataDecs, _rememberNumberDecs, _ref;
|
|
75
76
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
@@ -189,6 +190,16 @@ var ConnectionGatewayStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
189
190
|
get: function get() {
|
|
190
191
|
return this._phoneAudioConnectorProvider.hasOwnPstnStream;
|
|
191
192
|
}
|
|
193
|
+
}, {
|
|
194
|
+
key: "hasVolteStream",
|
|
195
|
+
get: function get() {
|
|
196
|
+
return this._phoneAudioConnectorProvider.hasVolteStream;
|
|
197
|
+
}
|
|
198
|
+
}, {
|
|
199
|
+
key: "hasOwnVolteStream",
|
|
200
|
+
get: function get() {
|
|
201
|
+
return this._phoneAudioConnectorProvider.hasOwnVolteStream;
|
|
202
|
+
}
|
|
192
203
|
}, {
|
|
193
204
|
key: "hasNeedMergedStream",
|
|
194
205
|
get: function get() {
|
|
@@ -207,7 +218,7 @@ var ConnectionGatewayStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
207
218
|
}, {
|
|
208
219
|
key: "startCall",
|
|
209
220
|
value: function startCall() {
|
|
210
|
-
this._phoneAudioConnectorProvider.startCall(this.currentCallInfo.phone);
|
|
221
|
+
this._phoneAudioConnectorProvider.startCall(this.currentCallInfo.phone, _type2.FcrPhoneConnectorSessionType.PSTN);
|
|
211
222
|
}
|
|
212
223
|
}, {
|
|
213
224
|
key: "stopCall",
|
|
@@ -47,7 +47,9 @@ var View = (0, _mobxReact.observer)(function () {
|
|
|
47
47
|
outgoingCall = _useContext.outgoingCall,
|
|
48
48
|
isHangup = _useContext.isHangup,
|
|
49
49
|
hasPstnStream = _useContext.hasPstnStream,
|
|
50
|
+
hasVolteStream = _useContext.hasVolteStream,
|
|
50
51
|
hasOwnPstnStream = _useContext.hasOwnPstnStream,
|
|
52
|
+
hasOwnVolteStream = _useContext.hasOwnVolteStream,
|
|
51
53
|
hasNeedMergedStream = _useContext.hasNeedMergedStream;
|
|
52
54
|
var transI18n = (0, _i18n.useI18n)();
|
|
53
55
|
var _useState = (0, _react.useState)(''),
|
|
@@ -96,7 +98,7 @@ var View = (0, _mobxReact.observer)(function () {
|
|
|
96
98
|
}, [phoneCallState, phoneCallReason]);
|
|
97
99
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
98
100
|
className: "connector-phone",
|
|
99
|
-
children: [(isStaticState && !isAcceptingState && !hasOwnPstnStream || hasPstnStream && !hasOwnPstnStream) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
101
|
+
children: [(isStaticState && !isAcceptingState && !hasOwnPstnStream && !hasOwnVolteStream || hasPstnStream && !hasOwnPstnStream || hasVolteStream && !hasOwnVolteStream) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
100
102
|
className: "connector-phone_inner",
|
|
101
103
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
102
104
|
className: "connector-phone_selector",
|
|
@@ -135,7 +137,7 @@ var View = (0, _mobxReact.observer)(function () {
|
|
|
135
137
|
checked: rememberMe,
|
|
136
138
|
onChange: setRememberMe
|
|
137
139
|
})]
|
|
138
|
-
}), (isPhoneAudioConnected || isAcceptingState) && hasOwnPstnStream && /*#__PURE__*/(0, _jsxRuntime.jsx)(_useing.ConnectionUsing, {}), isStaticState && !hasOwnPstnStream && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
140
|
+
}), (isPhoneAudioConnected || isAcceptingState) && (hasOwnPstnStream || hasOwnVolteStream) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_useing.ConnectionUsing, {}), isStaticState && !hasOwnPstnStream && !hasOwnVolteStream && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
139
141
|
className: "connector-phone_inner",
|
|
140
142
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
141
143
|
size: "XS",
|
|
@@ -162,14 +164,14 @@ var View = (0, _mobxReact.observer)(function () {
|
|
|
162
164
|
onClick: stopCall,
|
|
163
165
|
children: transI18n('fmt_pstn_button_hangupphone')
|
|
164
166
|
})
|
|
165
|
-
}), (outgoingCall || isStaticState) && (!hasOwnPstnStream || isAcceptingState) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_divider["default"], {
|
|
167
|
+
}), (outgoingCall || isStaticState) && (!hasOwnPstnStream && !hasOwnVolteStream || isAcceptingState) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_divider["default"], {
|
|
166
168
|
style: {
|
|
167
169
|
margin: '10px 0 12px'
|
|
168
170
|
},
|
|
169
171
|
type: "horizontal",
|
|
170
172
|
size: "0.4px",
|
|
171
173
|
children: transI18n('fmt_pstn_label_dialinphone')
|
|
172
|
-
}), hasPstnStream && !outgoingCall && !hasOwnPstnStream && hasNeedMergedStream && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
174
|
+
}), (hasPstnStream || hasVolteStream) && !outgoingCall && !hasOwnPstnStream && !hasOwnVolteStream && hasNeedMergedStream && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
173
175
|
className: "connector-phone-alert",
|
|
174
176
|
children: transI18n('fmt_pstn_label_alreadyin', {
|
|
175
177
|
reason1: connectInfo === null || connectInfo === void 0 ? void 0 : connectInfo.phoneUserId
|
|
@@ -101,7 +101,7 @@ var FcrUISecondaryWindowModule = exports.FcrUISecondaryWindowModule = /*#__PURE_
|
|
|
101
101
|
}
|
|
102
102
|
}]);
|
|
103
103
|
}(_base.UIModule);
|
|
104
|
-
var FcrUIMainWindowRendererImpl = exports.FcrUIMainWindowRendererImpl = /*#__PURE__*/function (
|
|
104
|
+
var FcrUIMainWindowRendererImpl = exports.FcrUIMainWindowRendererImpl = /*#__PURE__*/function (_AgoraObservable) {
|
|
105
105
|
function FcrUIMainWindowRendererImpl() {
|
|
106
106
|
var _this2;
|
|
107
107
|
(0, _classCallCheck2["default"])(this, FcrUIMainWindowRendererImpl);
|
|
@@ -114,7 +114,7 @@ var FcrUIMainWindowRendererImpl = exports.FcrUIMainWindowRendererImpl = /*#__PUR
|
|
|
114
114
|
_this2.addObserver((0, _logger.generateLogObserver)(_this2.logger, ['onConnectionStateUpdated', 'onViewportSizeUpdated', 'onBackgroundColorUpdated', 'onDraftSaved', 'onPermissionUpdated', 'onRedoStateUpdated', 'onUndoStateUpdated', 'onWhiteboardStrokeColorChanged', 'onWhiteboardStrokeWidthChanged', 'onWhiteboardToolSelected']));
|
|
115
115
|
return _this2;
|
|
116
116
|
}
|
|
117
|
-
(0, _inherits2["default"])(FcrUIMainWindowRendererImpl,
|
|
117
|
+
(0, _inherits2["default"])(FcrUIMainWindowRendererImpl, _AgoraObservable);
|
|
118
118
|
return (0, _createClass2["default"])(FcrUIMainWindowRendererImpl, [{
|
|
119
119
|
key: "ownerUser",
|
|
120
120
|
get: function get() {
|
|
@@ -48,8 +48,11 @@ export declare class SecondaryWindowStore {
|
|
|
48
48
|
get isActive(): boolean;
|
|
49
49
|
get baseUrl(): string;
|
|
50
50
|
get isAnnotationOpened(): boolean;
|
|
51
|
+
get isWaterMarkEnabled(): boolean;
|
|
52
|
+
get isMulti(): boolean;
|
|
51
53
|
constructor({ objectManager }: SecondaryWindowStoreArgs);
|
|
52
54
|
getContent(): void;
|
|
55
|
+
getWaterMarkContent(): string;
|
|
53
56
|
handleIframeLoad(iframe: HTMLIFrameElement): void;
|
|
54
57
|
zoomIn(): void;
|
|
55
58
|
zoomOut(): void;
|
|
@@ -324,9 +324,24 @@ var SecondaryWindowStore = exports.SecondaryWindowStore = /*#__PURE__*/function
|
|
|
324
324
|
get: function get() {
|
|
325
325
|
return this._annotationProvider.isAnnotationOpened;
|
|
326
326
|
}
|
|
327
|
+
}, {
|
|
328
|
+
key: "isWaterMarkEnabled",
|
|
329
|
+
get: function get() {
|
|
330
|
+
return this._privilegeProvider.isWaterMarkEnabled();
|
|
331
|
+
}
|
|
332
|
+
}, {
|
|
333
|
+
key: "isMulti",
|
|
334
|
+
get: function get() {
|
|
335
|
+
return this._privilegeProvider.isMultiWaterMarkEnabled();
|
|
336
|
+
}
|
|
327
337
|
}, {
|
|
328
338
|
key: "getContent",
|
|
329
339
|
value: function getContent() {}
|
|
340
|
+
}, {
|
|
341
|
+
key: "getWaterMarkContent",
|
|
342
|
+
value: function getWaterMarkContent() {
|
|
343
|
+
return this._privilegeProvider.getWaterMarkContent();
|
|
344
|
+
}
|
|
330
345
|
}, {
|
|
331
346
|
key: "handleIframeLoad",
|
|
332
347
|
value: function handleIframeLoad(iframe) {
|
|
@@ -532,7 +547,7 @@ var SecondaryWindowStore = exports.SecondaryWindowStore = /*#__PURE__*/function
|
|
|
532
547
|
}]);
|
|
533
548
|
}();
|
|
534
549
|
_SecondaryWindowStore = SecondaryWindowStore;
|
|
535
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_SecondaryWindowStore, [[_mobx.observable, 1, "_screenShareScalcValue"], [_mobx.observable, 1, "isSharingWhiteboard"], [_mobx.observable, 1, "interceptedClose"], [_mobx.computed, 3, "videoWindowData"], [_mobx.computed, 3, "isAspectRatioPreserved"], [_mobx.computed, 3, "scalValue"], [_mobx.computed, 3, "canWriteBoard"], [_decorator.bound, 2, "handleIframeLoad"], [_decorator.bound, 2, "zoomIn"], [_decorator.bound, 2, "zoomOut"], [_decorator.bound, 2, "fullContainer"], [_decorator.bound, 2, "setInterceptedClose"], [_decorator.bound, 2, "setScaleValue"], [_decorator.bound, 2, "setOriginScalc"], [_decorator.bound, 2, "setSpeakerViewSize"], [_decorator.bound, 2, "setWhiteboardTool"], [_decorator.bound, 2, "saveWhiteboardDraft"], [_decorator.bound, 2, "setProgress"], [_decorator.bound, 2, "setTheme"], [_decorator.bound, 2, "setControlEnable"], [_decorator.bound, 2, "setShowLoading"], [_decorator.bound, 2, "setCommonColors"], [_decorator.bound, 2, "log"]], []).e, 4);
|
|
550
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_SecondaryWindowStore, [[_mobx.observable, 1, "_screenShareScalcValue"], [_mobx.observable, 1, "isSharingWhiteboard"], [_mobx.observable, 1, "interceptedClose"], [_mobx.computed, 3, "videoWindowData"], [_mobx.computed, 3, "isAspectRatioPreserved"], [_mobx.computed, 3, "scalValue"], [_mobx.computed, 3, "canWriteBoard"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_decorator.bound, 2, "getWaterMarkContent"], [_decorator.bound, 2, "handleIframeLoad"], [_decorator.bound, 2, "zoomIn"], [_decorator.bound, 2, "zoomOut"], [_decorator.bound, 2, "fullContainer"], [_decorator.bound, 2, "setInterceptedClose"], [_decorator.bound, 2, "setScaleValue"], [_decorator.bound, 2, "setOriginScalc"], [_decorator.bound, 2, "setSpeakerViewSize"], [_decorator.bound, 2, "setWhiteboardTool"], [_decorator.bound, 2, "saveWhiteboardDraft"], [_decorator.bound, 2, "setProgress"], [_decorator.bound, 2, "setTheme"], [_decorator.bound, 2, "setControlEnable"], [_decorator.bound, 2, "setShowLoading"], [_decorator.bound, 2, "setCommonColors"], [_decorator.bound, 2, "log"]], []).e, 4);
|
|
536
551
|
_init__screenShareScalcValue = _applyDecs$e[0];
|
|
537
552
|
_init_isSharingWhiteboard = _applyDecs$e[1];
|
|
538
553
|
_init_interceptedClose = _applyDecs$e[2];
|
|
@@ -10,6 +10,7 @@ require("core-js/modules/es.error.to-string.js");
|
|
|
10
10
|
require("core-js/modules/es.date.to-string.js");
|
|
11
11
|
require("core-js/modules/es.object.to-string.js");
|
|
12
12
|
require("core-js/modules/es.regexp.to-string.js");
|
|
13
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
14
|
var _mobxReact = require("mobx-react");
|
|
14
15
|
var _react = require("react");
|
|
15
16
|
var _store = require("./store");
|
|
@@ -24,6 +25,8 @@ var _progress = _interopRequireDefault(require("../components/control-bar/compon
|
|
|
24
25
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
25
26
|
var _portal = require("../components/leave-meeting/portal");
|
|
26
27
|
var _videoTrackRenderContext = require("../../shared-context/video-track-render-context");
|
|
28
|
+
var _watermark = require("agora-ui-foundation/lib/components/watermark");
|
|
29
|
+
var _hooks = require("agora-ui-foundation/lib/utilities/hooks");
|
|
27
30
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
28
31
|
var SubWindowView = exports.SubWindowView = (0, _mobxReact.observer)(function (props) {
|
|
29
32
|
var renderScreenShareControl = props.renderScreenShareControl;
|
|
@@ -46,7 +49,10 @@ var SubWindowView = exports.SubWindowView = (0, _mobxReact.observer)(function (p
|
|
|
46
49
|
isAspectRatioPreserved = store.isAspectRatioPreserved,
|
|
47
50
|
isShowToolbar = store.isShowToolbar,
|
|
48
51
|
isActive = store.isActive,
|
|
52
|
+
isWaterMarkEnabled = store.isWaterMarkEnabled,
|
|
53
|
+
isMulti = store.isMulti,
|
|
49
54
|
baseUrl = store.baseUrl,
|
|
55
|
+
currentUser = store.currentUser,
|
|
50
56
|
setOriginScalc = store.setOriginScalc,
|
|
51
57
|
zoomIn = store.zoomIn,
|
|
52
58
|
zoomOut = store.zoomOut,
|
|
@@ -64,8 +70,17 @@ var SubWindowView = exports.SubWindowView = (0, _mobxReact.observer)(function (p
|
|
|
64
70
|
interceptedClose = store.interceptedClose,
|
|
65
71
|
setInterceptedClose = store.setInterceptedClose,
|
|
66
72
|
videoRenderContext = store.videoRenderContext,
|
|
67
|
-
isAnnotationOpened = store.isAnnotationOpened
|
|
73
|
+
isAnnotationOpened = store.isAnnotationOpened,
|
|
74
|
+
getWaterMarkContent = store.getWaterMarkContent;
|
|
68
75
|
var videoWindowContainer = (0, _react.useRef)(null);
|
|
76
|
+
var _useDelayedMeasure = (0, _hooks.useDelayedMeasure)(),
|
|
77
|
+
_useDelayedMeasure2 = (0, _slicedToArray2["default"])(_useDelayedMeasure, 2),
|
|
78
|
+
delayedMeasureRef = _useDelayedMeasure2[0],
|
|
79
|
+
delayedMeasureBounds = _useDelayedMeasure2[1];
|
|
80
|
+
var waterMarkRenderContent = (0, _react.useMemo)(function () {
|
|
81
|
+
var remoteWaterMark = getWaterMarkContent();
|
|
82
|
+
return isWaterMarkEnabled ? [remoteWaterMark] : [];
|
|
83
|
+
}, [isWaterMarkEnabled, currentUser]);
|
|
69
84
|
(0, _react.useEffect)(function () {
|
|
70
85
|
if (!interceptedClose) return;
|
|
71
86
|
if (!videoWindowContainer.current) {
|
|
@@ -213,78 +228,87 @@ var SubWindowView = exports.SubWindowView = (0, _mobxReact.observer)(function (p
|
|
|
213
228
|
})
|
|
214
229
|
});
|
|
215
230
|
}
|
|
216
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
children: [interceptedClose && /*#__PURE__*/(0, _jsxRuntime.jsx)(_portal.LeaveMeetingPortal, {
|
|
226
|
-
setPopoverOpened: function setPopoverOpened() {
|
|
227
|
-
return setInterceptedClose(false);
|
|
228
|
-
}
|
|
229
|
-
}), content, (isBoardShare || isAnnotationOpened) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_toolbar.WhiteboardToolbar, {
|
|
230
|
-
offsetTop: 28,
|
|
231
|
-
direction: "vertical",
|
|
232
|
-
container: videoWindowContainer.current || undefined,
|
|
233
|
-
show: canWriteBoard && joinSuccess && isShowToolbar && !showLoading,
|
|
234
|
-
currentStrokeWidth: toolbarState.currentStrokeWidth,
|
|
235
|
-
currentColor: toolbarState.currentColor,
|
|
236
|
-
currentTool: toolbarState.currentTool,
|
|
237
|
-
currentShape: toolbarState.currentShape,
|
|
238
|
-
redoSteps: toolbarState.redoSteps,
|
|
239
|
-
undoSteps: toolbarState.undoSteps,
|
|
240
|
-
commonColors: isBoardShare ? toolbarState.commonColors : undefined,
|
|
241
|
-
themeColors: toolbarState.themeColors,
|
|
242
|
-
setCommonColors: setCommonColors,
|
|
243
|
-
setStrokeWidth: function setStrokeWidth(width) {
|
|
244
|
-
setWhiteboardTool({
|
|
245
|
-
action: _type2.WhiteboardToolAction.WIDTH,
|
|
246
|
-
tool: width
|
|
247
|
-
});
|
|
248
|
-
},
|
|
249
|
-
setTool: function setTool(tool) {
|
|
250
|
-
setWhiteboardTool({
|
|
251
|
-
action: _type2.WhiteboardToolAction.TOOL,
|
|
252
|
-
tool: tool
|
|
253
|
-
});
|
|
254
|
-
},
|
|
255
|
-
setShape: function setShape(shape) {
|
|
256
|
-
setWhiteboardTool({
|
|
257
|
-
action: _type2.WhiteboardToolAction.SHAPE,
|
|
258
|
-
tool: shape
|
|
259
|
-
});
|
|
260
|
-
},
|
|
261
|
-
setStrokeColor: function setStrokeColor(color) {
|
|
262
|
-
setWhiteboardTool({
|
|
263
|
-
action: _type2.WhiteboardToolAction.COLOR,
|
|
264
|
-
tool: color.toString()
|
|
265
|
-
});
|
|
231
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_watermark.WaterMark, {
|
|
232
|
+
content: waterMarkRenderContent,
|
|
233
|
+
width: isMulti ? 120 : delayedMeasureBounds.width,
|
|
234
|
+
height: isMulti ? 64 : delayedMeasureBounds.height,
|
|
235
|
+
multiLine: Boolean(isMulti),
|
|
236
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
237
|
+
ref: function ref(node) {
|
|
238
|
+
delayedMeasureRef(node);
|
|
239
|
+
videoWindowContainer.current = node;
|
|
266
240
|
},
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
241
|
+
className: "sub-window-view",
|
|
242
|
+
style: {
|
|
243
|
+
width: '100%',
|
|
244
|
+
height: '100%',
|
|
245
|
+
position: 'relative',
|
|
246
|
+
top: 0
|
|
272
247
|
},
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
248
|
+
children: [interceptedClose && /*#__PURE__*/(0, _jsxRuntime.jsx)(_portal.LeaveMeetingPortal, {
|
|
249
|
+
setPopoverOpened: function setPopoverOpened() {
|
|
250
|
+
return setInterceptedClose(false);
|
|
251
|
+
}
|
|
252
|
+
}), content, (isBoardShare || isAnnotationOpened) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_toolbar.WhiteboardToolbar, {
|
|
253
|
+
offsetTop: 28,
|
|
254
|
+
direction: "vertical",
|
|
255
|
+
container: videoWindowContainer.current || undefined,
|
|
256
|
+
show: canWriteBoard && joinSuccess && isShowToolbar && !showLoading,
|
|
257
|
+
currentStrokeWidth: toolbarState.currentStrokeWidth,
|
|
258
|
+
currentColor: toolbarState.currentColor,
|
|
259
|
+
currentTool: toolbarState.currentTool,
|
|
260
|
+
currentShape: toolbarState.currentShape,
|
|
261
|
+
redoSteps: toolbarState.redoSteps,
|
|
262
|
+
undoSteps: toolbarState.undoSteps,
|
|
263
|
+
commonColors: isBoardShare ? toolbarState.commonColors : undefined,
|
|
264
|
+
themeColors: toolbarState.themeColors,
|
|
265
|
+
setCommonColors: setCommonColors,
|
|
266
|
+
setStrokeWidth: function setStrokeWidth(width) {
|
|
267
|
+
setWhiteboardTool({
|
|
268
|
+
action: _type2.WhiteboardToolAction.WIDTH,
|
|
269
|
+
tool: width
|
|
270
|
+
});
|
|
271
|
+
},
|
|
272
|
+
setTool: function setTool(tool) {
|
|
273
|
+
setWhiteboardTool({
|
|
274
|
+
action: _type2.WhiteboardToolAction.TOOL,
|
|
275
|
+
tool: tool
|
|
276
|
+
});
|
|
277
|
+
},
|
|
278
|
+
setShape: function setShape(shape) {
|
|
279
|
+
setWhiteboardTool({
|
|
280
|
+
action: _type2.WhiteboardToolAction.SHAPE,
|
|
281
|
+
tool: shape
|
|
282
|
+
});
|
|
283
|
+
},
|
|
284
|
+
setStrokeColor: function setStrokeColor(color) {
|
|
285
|
+
setWhiteboardTool({
|
|
286
|
+
action: _type2.WhiteboardToolAction.COLOR,
|
|
287
|
+
tool: color.toString()
|
|
288
|
+
});
|
|
289
|
+
},
|
|
290
|
+
undo: function undo() {
|
|
291
|
+
return setWhiteboardTool({
|
|
292
|
+
action: _type2.WhiteboardToolAction.UNDO,
|
|
293
|
+
tool: _fcrCore.FcrBoardToolType.NONE
|
|
294
|
+
});
|
|
295
|
+
},
|
|
296
|
+
redo: function redo() {
|
|
297
|
+
return setWhiteboardTool({
|
|
298
|
+
action: _type2.WhiteboardToolAction.REDO,
|
|
299
|
+
tool: _fcrCore.FcrBoardToolType.NONE
|
|
300
|
+
});
|
|
301
|
+
},
|
|
302
|
+
clean: function clean() {
|
|
303
|
+
return setWhiteboardTool({
|
|
304
|
+
action: _type2.WhiteboardToolAction.CLEAR,
|
|
305
|
+
tool: _fcrCore.FcrBoardToolType.NONE
|
|
306
|
+
});
|
|
307
|
+
},
|
|
308
|
+
onSave: isBoardShare ? saveWhiteboardDraft : undefined,
|
|
309
|
+
progress: toolbarState.progress,
|
|
310
|
+
setProgress: setProgress
|
|
311
|
+
})]
|
|
312
|
+
})
|
|
289
313
|
});
|
|
290
314
|
});
|
|
@@ -104,7 +104,8 @@ export declare enum FcrUIToastKey {
|
|
|
104
104
|
FMT_SCREENSHARE_TIPS_ALREADYOPENED = "fmt_screenshare_tips_alreadyopened",
|
|
105
105
|
FMT_WHITEBOARD_TIPS_SHARE_FAILED = "fmt_whiteboard_tips_share_failed",
|
|
106
106
|
FMT_AUDIO_WINDOW_MIC_TURN_ON_ERROR = "fmt_audio_window_mic_turn_on_error",
|
|
107
|
-
FMT_AUDIO_WINDOW_CAMERA_TURN_ON_ERROR = "fmt_audio_window_camera_turn_on_error"
|
|
107
|
+
FMT_AUDIO_WINDOW_CAMERA_TURN_ON_ERROR = "fmt_audio_window_camera_turn_on_error",
|
|
108
|
+
FMT_SIP_TIPS_ENTER_CORRECT_NUMBER = "fmt_SIP_tips_enter_correct_number"
|
|
108
109
|
}
|
|
109
110
|
export declare const DefaultToastParamsMap: Record<FcrUIToastKey, {
|
|
110
111
|
type: 'error' | 'warn' | 'info' | 'normal';
|
|
@@ -115,6 +115,7 @@ var FcrUIToastKey = exports.FcrUIToastKey = /*#__PURE__*/function (FcrUIToastKey
|
|
|
115
115
|
FcrUIToastKey["FMT_WHITEBOARD_TIPS_SHARE_FAILED"] = "fmt_whiteboard_tips_share_failed";
|
|
116
116
|
FcrUIToastKey["FMT_AUDIO_WINDOW_MIC_TURN_ON_ERROR"] = "fmt_audio_window_mic_turn_on_error";
|
|
117
117
|
FcrUIToastKey["FMT_AUDIO_WINDOW_CAMERA_TURN_ON_ERROR"] = "fmt_audio_window_camera_turn_on_error";
|
|
118
|
+
FcrUIToastKey["FMT_SIP_TIPS_ENTER_CORRECT_NUMBER"] = "fmt_SIP_tips_enter_correct_number";
|
|
118
119
|
return FcrUIToastKey;
|
|
119
120
|
}({});
|
|
120
121
|
var DefaultToastParamsMap = exports.DefaultToastParamsMap = (_DefaultToastParamsMa = {}, (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_DefaultToastParamsMa, FcrUIToastKey.ERR_MESSAGE, {
|
|
@@ -322,7 +323,7 @@ var DefaultToastParamsMap = exports.DefaultToastParamsMap = (_DefaultToastParams
|
|
|
322
323
|
type: 'normal'
|
|
323
324
|
}), FcrUIToastKey.FMT_MEETING_TOAST_DISABLED_WAITINGROOM, {
|
|
324
325
|
type: 'normal'
|
|
325
|
-
}), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_DefaultToastParamsMa, FcrUIToastKey.FMT_SCREENSHARE_TIPS_FAILD_RESELECT, {
|
|
326
|
+
}), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_DefaultToastParamsMa, FcrUIToastKey.FMT_SCREENSHARE_TIPS_FAILD_RESELECT, {
|
|
326
327
|
type: 'error'
|
|
327
328
|
}), FcrUIToastKey.FMT_SCREENSHARE_TIPS_FAILD_SCREENSELECT, {
|
|
328
329
|
type: 'error'
|
|
@@ -334,4 +335,6 @@ var DefaultToastParamsMap = exports.DefaultToastParamsMap = (_DefaultToastParams
|
|
|
334
335
|
type: 'error'
|
|
335
336
|
}), FcrUIToastKey.FMT_AUDIO_WINDOW_CAMERA_TURN_ON_ERROR, {
|
|
336
337
|
type: 'error'
|
|
338
|
+
}), FcrUIToastKey.FMT_SIP_TIPS_ENTER_CORRECT_NUMBER, {
|
|
339
|
+
type: 'error'
|
|
337
340
|
}));
|
|
@@ -23,7 +23,7 @@ var createRoom = /*#__PURE__*/function () {
|
|
|
23
23
|
return _regenerator["default"].wrap(function (_context) {
|
|
24
24
|
while (1) switch (_context.prev = _context.next) {
|
|
25
25
|
case 0:
|
|
26
|
-
url = "http://api-solutions-dev.
|
|
26
|
+
url = "http://api-solutions-dev-bj.shengwang.cn/conference/companys/v1/rooms";
|
|
27
27
|
_context.next = 1;
|
|
28
28
|
return fetch(url, {
|
|
29
29
|
headers: {
|
|
@@ -71,7 +71,7 @@ var getUserToken = /*#__PURE__*/function () {
|
|
|
71
71
|
return _regenerator["default"].wrap(function (_context2) {
|
|
72
72
|
while (1) switch (_context2.prev = _context2.next) {
|
|
73
73
|
case 0:
|
|
74
|
-
url = "https://api-solutions-
|
|
74
|
+
url = "https://api-solutions-test.shengwang.cn/conference/companys/v1/rooms";
|
|
75
75
|
_context2.next = 1;
|
|
76
76
|
return fetch(url, {
|
|
77
77
|
headers: {
|
|
@@ -151,10 +151,10 @@ var role = 'host';
|
|
|
151
151
|
// },
|
|
152
152
|
// parameters: {
|
|
153
153
|
// rte: {
|
|
154
|
-
// rteIpList: ['http://api-solutions-dev.
|
|
154
|
+
// rteIpList: ['http://api-solutions-dev-bj.shengwang.cn'],
|
|
155
155
|
// },
|
|
156
156
|
// core: {
|
|
157
|
-
// coreIpList: ['http://api-solutions-dev.
|
|
157
|
+
// coreIpList: ['http://api-solutions-dev-bj.shengwang.cn'],
|
|
158
158
|
// },
|
|
159
159
|
// },
|
|
160
160
|
// });
|
|
@@ -51,6 +51,18 @@ export interface FcrUIAbilityProvider {
|
|
|
51
51
|
* 检查当前平台是否支持外呼
|
|
52
52
|
*/
|
|
53
53
|
isCallOutAbilitySupported(): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* 检查当前平台是否支持Volte外呼
|
|
56
|
+
*/
|
|
57
|
+
isCallOutVolteAbilitySupported(): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* 检查当前平台是否支持H323外呼
|
|
60
|
+
*/
|
|
61
|
+
isCallOutH323AbilitySupported(): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* 检查当前平台是否支持Sip外呼
|
|
64
|
+
*/
|
|
65
|
+
isCallOutSipAbilitySupported(): boolean;
|
|
54
66
|
}
|
|
55
67
|
export declare class FcrUIAbilityProviderImpl implements FcrUIAbilityProvider, FcrUIManagedObject {
|
|
56
68
|
private _abilityControl;
|
|
@@ -106,4 +118,7 @@ export declare class FcrUIAbilityProviderImpl implements FcrUIAbilityProvider, F
|
|
|
106
118
|
* 检查当前平台是否支持外呼
|
|
107
119
|
*/
|
|
108
120
|
isCallOutAbilitySupported: () => boolean;
|
|
121
|
+
isCallOutVolteAbilitySupported: () => boolean;
|
|
122
|
+
isCallOutH323AbilitySupported: () => boolean;
|
|
123
|
+
isCallOutSipAbilitySupported: () => boolean;
|
|
109
124
|
}
|
|
@@ -100,7 +100,19 @@ var FcrUIAbilityProviderImpl = exports.FcrUIAbilityProviderImpl = /*#__PURE__*/f
|
|
|
100
100
|
* 检查当前平台是否支持外呼
|
|
101
101
|
*/
|
|
102
102
|
(0, _defineProperty2["default"])(this, "isCallOutAbilitySupported", function () {
|
|
103
|
-
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.
|
|
103
|
+
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.CallOutPstn);
|
|
104
|
+
return result;
|
|
105
|
+
});
|
|
106
|
+
(0, _defineProperty2["default"])(this, "isCallOutVolteAbilitySupported", function () {
|
|
107
|
+
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.CallOutVolte);
|
|
108
|
+
return result;
|
|
109
|
+
});
|
|
110
|
+
(0, _defineProperty2["default"])(this, "isCallOutH323AbilitySupported", function () {
|
|
111
|
+
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.CallOutH323);
|
|
112
|
+
return result;
|
|
113
|
+
});
|
|
114
|
+
(0, _defineProperty2["default"])(this, "isCallOutSipAbilitySupported", function () {
|
|
115
|
+
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.CallOutSip);
|
|
104
116
|
return result;
|
|
105
117
|
});
|
|
106
118
|
this._abilityControl = _abilityControl;
|
|
@@ -13,8 +13,10 @@ export declare class FcrUIMouseDetectProviderImpl implements FcrUIManagedObject,
|
|
|
13
13
|
private _detectionOffset;
|
|
14
14
|
private _isDebug;
|
|
15
15
|
private _displayId;
|
|
16
|
+
private _macMenuBarOffsetY;
|
|
16
17
|
private _debugWindowObserver;
|
|
17
18
|
constructor(objectManager: FcrUIObjectManager);
|
|
19
|
+
isMouseDetectEnabled(): boolean;
|
|
18
20
|
setDisplayId(displayId: number): void;
|
|
19
21
|
setDetectArea(areaId: FcrUIDetectAreaID, areaList: FcrUI.FcrUIRectangle[]): void;
|
|
20
22
|
getDetectAreas(areaId: FcrUIDetectAreaID): FcrUI.FcrUIRectangle[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FcrUIManagedObject } from '../../object-manager';
|
|
2
|
+
import { FcrUIDetectAreaID } from './struct';
|
|
3
|
+
import { FcrUIMouseDetectObserver, FcrUIMouseDetectProvider } from './type';
|
|
4
|
+
export declare class FcrUIMouseDetectProviderEmptyImpl implements FcrUIManagedObject, FcrUIMouseDetectProvider {
|
|
5
|
+
isMouseDetectEnabled(): boolean;
|
|
6
|
+
setDisplayId(_displayId: number): void;
|
|
7
|
+
setDetectionPositionOffset(_offset: FcrUI.FcrUIPoint): void;
|
|
8
|
+
setDetectArea(_areaId: FcrUIDetectAreaID, _areaList: FcrUI.FcrUIRectangle[]): void;
|
|
9
|
+
getDetectAreas(_areaId: FcrUIDetectAreaID): FcrUI.FcrUIRectangle[];
|
|
10
|
+
deleteDetectArea(_areaId: FcrUIDetectAreaID): void;
|
|
11
|
+
addObserver(_observer: FcrUIMouseDetectObserver): void;
|
|
12
|
+
removeObserver(_observer: FcrUIMouseDetectObserver): void;
|
|
13
|
+
release(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.FcrUIMouseDetectProviderEmptyImpl = void 0;
|
|
9
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
+
var FcrUIMouseDetectProviderEmptyImpl = exports.FcrUIMouseDetectProviderEmptyImpl = /*#__PURE__*/function () {
|
|
12
|
+
function FcrUIMouseDetectProviderEmptyImpl() {
|
|
13
|
+
(0, _classCallCheck2["default"])(this, FcrUIMouseDetectProviderEmptyImpl);
|
|
14
|
+
}
|
|
15
|
+
return (0, _createClass2["default"])(FcrUIMouseDetectProviderEmptyImpl, [{
|
|
16
|
+
key: "isMouseDetectEnabled",
|
|
17
|
+
value: function isMouseDetectEnabled() {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
}, {
|
|
21
|
+
key: "setDisplayId",
|
|
22
|
+
value: function setDisplayId(_displayId) {}
|
|
23
|
+
}, {
|
|
24
|
+
key: "setDetectionPositionOffset",
|
|
25
|
+
value: function setDetectionPositionOffset(_offset) {}
|
|
26
|
+
}, {
|
|
27
|
+
key: "setDetectArea",
|
|
28
|
+
value: function setDetectArea(_areaId, _areaList) {}
|
|
29
|
+
}, {
|
|
30
|
+
key: "getDetectAreas",
|
|
31
|
+
value: function getDetectAreas(_areaId) {
|
|
32
|
+
return [];
|
|
33
|
+
}
|
|
34
|
+
}, {
|
|
35
|
+
key: "deleteDetectArea",
|
|
36
|
+
value: function deleteDetectArea(_areaId) {}
|
|
37
|
+
}, {
|
|
38
|
+
key: "addObserver",
|
|
39
|
+
value: function addObserver(_observer) {}
|
|
40
|
+
}, {
|
|
41
|
+
key: "removeObserver",
|
|
42
|
+
value: function removeObserver(_observer) {}
|
|
43
|
+
}, {
|
|
44
|
+
key: "release",
|
|
45
|
+
value: function release() {}
|
|
46
|
+
}]);
|
|
47
|
+
}();
|