fcr-ui-scene 3.9.0-alpha → 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 +4 -2
- package/lib/creator/provider-initializer.electron.js +13 -5
- package/lib/electron/injections.d.ts +1 -0
- package/lib/electron/injections.js +4 -1
- package/lib/electron/preload.js +1 -0
- package/lib/fragments/annotation/style.css +1 -0
- package/lib/fragments/whiteboard/style.css +4 -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/chat-room-store.js +4 -2
- 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 +3 -2
- package/lib/modules/control-bar/store.js +17 -29
- package/lib/modules/control-bar/type.d.ts +0 -1
- package/lib/modules/control-bar/view.js +21 -17
- 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/providers/user-audio-volume-provider.d.ts +6 -0
- package/lib/providers/user-audio-volume-provider.js +3 -2
- 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 +4 -2
- package/lib-es/creator/provider-initializer.electron.js +11 -3
- package/lib-es/electron/injections.js +3 -0
- package/lib-es/electron/preload.js +2 -1
- package/lib-es/fragments/annotation/style.css +1 -0
- package/lib-es/fragments/whiteboard/style.css +4 -0
- 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/chat-room-store.js +4 -2
- 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 +18 -30
- package/lib-es/modules/control-bar/view.js +21 -17
- 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/providers/user-audio-volume-provider.js +3 -2
- 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
|
@@ -33,7 +33,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
33
33
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
34
34
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
35
35
|
var _LayoutStoreBase;
|
|
36
|
-
var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _annotationDecs, _init_annotation, _screenShareControlDecs, _init_screenShareControl, _subtitlesDecs, _init_subtitles, _subtitlesHistoryDecs, _init_subtitlesHistory, _subtitlesHistorySettingsDecs, _init_subtitlesHistorySettings, _init_collapsed, _init_aside, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth,
|
|
36
|
+
var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _annotationDecs, _init_annotation, _screenShareControlDecs, _init_screenShareControl, _subtitlesDecs, _init_subtitles, _subtitlesHistoryDecs, _init_subtitlesHistory, _subtitlesHistorySettingsDecs, _init_subtitlesHistorySettings, _init_collapsed, _init_aside, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_whiteboardActive, _init_ownerUser, _addPinMessageDecs, _cancelPinMessageDecs, _setWhiteboardActiveDecs, _setAsideWidthDecs, _updateSlotsDecs, _toggleLayoutDecs, _toggleCollapsedDecs, _toggleAsideDecs, _asideWidthChangedDecs, _toggleLayoutBarLockDecs, _toggleLayoutBarHiddenDecs, _resetLockTimerDecs, _setHoveringHandlerDecs, _setHoveringLeaveHandlerDecs, _setScreenShareSpeakerViewSizeDecs, _handleLiveLayoutChangeDecs, _onUserInfoUpdatedDecs, _handleLayoutUpdatedDecs, _init__handleLayoutUpdated, _handleMainListLengthChangedDecs, _handleMainListChangedDecs, _setBarHoveringDecs, _handleConnectionUpdatedDecs, _findVideoWindowByUserIdDecs, _onRemoteUsersLeftDecs, _ref;
|
|
37
37
|
import "core-js/modules/es.array.every.js";
|
|
38
38
|
import "core-js/modules/es.array.filter.js";
|
|
39
39
|
import "core-js/modules/es.array.find.js";
|
|
@@ -107,7 +107,6 @@ var _Q = /*#__PURE__*/new WeakMap();
|
|
|
107
107
|
var _R = /*#__PURE__*/new WeakMap();
|
|
108
108
|
var _S = /*#__PURE__*/new WeakMap();
|
|
109
109
|
var _T = /*#__PURE__*/new WeakMap();
|
|
110
|
-
var _U = /*#__PURE__*/new WeakMap();
|
|
111
110
|
_ref = (_participantDecs = [observable, observable.ref], _chatDecs = [observable, observable.ref], _chatActionDecs = [observable, observable.ref], _stateBarDecs = [observable, observable.ref], _actionBarDecs = [observable, observable.ref], _layersDecs = [observable, observable.ref], _whiteboardDecs = [observable, observable.ref], _annotationDecs = [observable, observable.ref], _screenShareControlDecs = [observable, observable.ref], _subtitlesDecs = [observable, observable.ref], _subtitlesHistoryDecs = [observable, observable.ref], _subtitlesHistorySettingsDecs = [observable, observable.ref], _addPinMessageDecs = [action, action.bound], _cancelPinMessageDecs = [action, action.bound], _setWhiteboardActiveDecs = [action, action.bound], _setAsideWidthDecs = [action, action.bound], _updateSlotsDecs = [action, action.bound], _toggleLayoutDecs = [action, action.bound], _toggleCollapsedDecs = [action, action.bound], _toggleAsideDecs = [action, action.bound], _asideWidthChangedDecs = [action, action.bound], _toggleLayoutBarLockDecs = [action, action.bound], _toggleLayoutBarHiddenDecs = [action, action.bound], _resetLockTimerDecs = [action, action.bound], _setHoveringHandlerDecs = [action, action.bound], _setHoveringLeaveHandlerDecs = [action, action.bound], _setScreenShareSpeakerViewSizeDecs = [debounced(400), bound], _handleLiveLayoutChangeDecs = [action, action.bound], _onUserInfoUpdatedDecs = [action, action.bound], _handleLayoutUpdatedDecs = [action, action.bound], _handleMainListLengthChangedDecs = [action, action.bound], _handleMainListChangedDecs = [action, action.bound], _setBarHoveringDecs = [action, action.bound], _handleConnectionUpdatedDecs = [action, action.bound], _findVideoWindowByUserIdDecs = [action, action.bound], _onRemoteUsersLeftDecs = [action, action.bound], "logger");
|
|
112
111
|
export var LayoutStoreBase = /*#__PURE__*/function () {
|
|
113
112
|
function LayoutStoreBase(_ref2) {
|
|
@@ -141,9 +140,8 @@ export var LayoutStoreBase = /*#__PURE__*/function () {
|
|
|
141
140
|
_classPrivateFieldInitSpec(this, _P, _init_barLocked(this, true));
|
|
142
141
|
_classPrivateFieldInitSpec(this, _Q, _init_barHidden(this, false));
|
|
143
142
|
_classPrivateFieldInitSpec(this, _R, _init_asideWidth(this, MinAsideWidth));
|
|
144
|
-
_classPrivateFieldInitSpec(this, _S,
|
|
145
|
-
_classPrivateFieldInitSpec(this, _T,
|
|
146
|
-
_classPrivateFieldInitSpec(this, _U, _init_ownerUser(this, undefined));
|
|
143
|
+
_classPrivateFieldInitSpec(this, _S, _init_whiteboardActive(this, false));
|
|
144
|
+
_classPrivateFieldInitSpec(this, _T, _init_ownerUser(this, undefined));
|
|
147
145
|
_defineProperty(this, "getAllowedOperations", computedFn(function (targetRole, isSelf) {
|
|
148
146
|
return _this._privilegeProvider.getAllowedOperations(targetRole, isSelf);
|
|
149
147
|
}));
|
|
@@ -169,6 +167,7 @@ export var LayoutStoreBase = /*#__PURE__*/function () {
|
|
|
169
167
|
this._privilegeProvider = objectManager.getObject(FcrUIObjectKeys.P_PRIVILEGE_PROVIDER);
|
|
170
168
|
this._sharedSettingDataSource = objectManager.getObject(FcrUIObjectKeys.S_SHARED_SETTING_DATA_SOURCE);
|
|
171
169
|
this._sharedInterpreterDataSource = objectManager.getObject(FcrUIObjectKeys.S_SHARED_INTERPRETER_DATA_SOURCE);
|
|
170
|
+
this._sharedChatDataSource = objectManager.getObject(FcrUIObjectKeys.S_SHARED_CHAT_DATA_SOURCE);
|
|
172
171
|
this._chatProvider = objectManager.getObject(FcrUIObjectKeys.P_CHAT_PROVIDER);
|
|
173
172
|
this._sharedUserAudioVolumeDataSource = objectManager.getObject(FcrUIObjectKeys.S_SHARED_USER_AUDIO_VOLUME_DATA_SOURCE);
|
|
174
173
|
this._videoWindowDataSource = objectManager.getObject(FcrUIObjectKeys.S_SHARED_VIDEO_WINDOW_DATA_SOURCE);
|
|
@@ -176,7 +175,7 @@ export var LayoutStoreBase = /*#__PURE__*/function () {
|
|
|
176
175
|
this._pinDataSource = objectManager.getObject(FcrUIObjectKeys.S_SHARED_PIN_DATA_SOURCE);
|
|
177
176
|
this._sharedScreenShareDataSource = objectManager.getObject(FcrUIObjectKeys.S_SHARED_SCREEN_SHARE_DATA_SOURCE);
|
|
178
177
|
this._annotationProvider = objectManager.getObject(FcrUIObjectKeys.P_ANNOTATION_PROVIDER);
|
|
179
|
-
this.
|
|
178
|
+
this._sharedChatDataSource.setConnectionState(FcrUIRoomType.MAIN_ROOM, this._chatRoomControl.getConnectionState());
|
|
180
179
|
}
|
|
181
180
|
return _createClass(LayoutStoreBase, [{
|
|
182
181
|
key: "participant",
|
|
@@ -325,26 +324,24 @@ export var LayoutStoreBase = /*#__PURE__*/function () {
|
|
|
325
324
|
}, {
|
|
326
325
|
key: "chatRoomState",
|
|
327
326
|
get: function get() {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
set: function set(v) {
|
|
331
|
-
_classPrivateFieldSet(_S, this, v);
|
|
327
|
+
var _this$_sharedChatData, _this$_sharedChatData2;
|
|
328
|
+
return (_this$_sharedChatData = (_this$_sharedChatData2 = this._sharedChatDataSource) === null || _this$_sharedChatData2 === void 0 ? void 0 : _this$_sharedChatData2.currentConnectionState) !== null && _this$_sharedChatData !== void 0 ? _this$_sharedChatData : FcrChatRoomConnectionState.Disconnected;
|
|
332
329
|
}
|
|
333
330
|
}, {
|
|
334
331
|
key: "whiteboardActive",
|
|
335
332
|
get: function get() {
|
|
336
|
-
return _classPrivateFieldGet(
|
|
333
|
+
return _classPrivateFieldGet(_S, this);
|
|
337
334
|
},
|
|
338
335
|
set: function set(v) {
|
|
339
|
-
_classPrivateFieldSet(
|
|
336
|
+
_classPrivateFieldSet(_S, this, v);
|
|
340
337
|
}
|
|
341
338
|
}, {
|
|
342
339
|
key: "ownerUser",
|
|
343
340
|
get: function get() {
|
|
344
|
-
return _classPrivateFieldGet(
|
|
341
|
+
return _classPrivateFieldGet(_T, this);
|
|
345
342
|
},
|
|
346
343
|
set: function set(v) {
|
|
347
|
-
_classPrivateFieldSet(
|
|
344
|
+
_classPrivateFieldSet(_T, this, v);
|
|
348
345
|
}
|
|
349
346
|
}, {
|
|
350
347
|
key: "streamControl",
|
|
@@ -1212,9 +1209,10 @@ export var LayoutStoreBase = /*#__PURE__*/function () {
|
|
|
1212
1209
|
}
|
|
1213
1210
|
}, {
|
|
1214
1211
|
key: "_handleConnectionUpdated",
|
|
1215
|
-
value: function _handleConnectionUpdated(_, state) {
|
|
1216
|
-
this.logger.info('layout store handleConnectionUpdated', state);
|
|
1217
|
-
|
|
1212
|
+
value: function _handleConnectionUpdated(_, state, roomType) {
|
|
1213
|
+
this.logger.info('layout store handleConnectionUpdated', state, roomType);
|
|
1214
|
+
// 连接状态已由共享数据源统一管理,这里不需要再更新
|
|
1215
|
+
// 共享数据源会在收到回调时自动更新状态
|
|
1218
1216
|
}
|
|
1219
1217
|
}, {
|
|
1220
1218
|
key: "_findVideoWindowByUserId",
|
|
@@ -1312,7 +1310,7 @@ export var LayoutStoreBase = /*#__PURE__*/function () {
|
|
|
1312
1310
|
}]);
|
|
1313
1311
|
}();
|
|
1314
1312
|
_LayoutStoreBase = LayoutStoreBase;
|
|
1315
|
-
var _applyDecs$e = _slicedToArray(_applyDecs(_LayoutStoreBase, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_annotationDecs, 17, "annotation"], [_screenShareControlDecs, 17, "screenShareControl"], [_subtitlesDecs, 17, "subtitles"], [_subtitlesHistoryDecs, 17, "subtitlesHistory"], [_subtitlesHistorySettingsDecs, 17, "subtitlesHistorySettings"], [observable, 1, "collapsed"], [observable, 1, "aside"], [observable, 1, "barHovering"], [observable, 1, "barLocked"], [observable, 1, "barHidden"], [observable, 1, "asideWidth"], [
|
|
1313
|
+
var _applyDecs$e = _slicedToArray(_applyDecs(_LayoutStoreBase, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_annotationDecs, 17, "annotation"], [_screenShareControlDecs, 17, "screenShareControl"], [_subtitlesDecs, 17, "subtitles"], [_subtitlesHistoryDecs, 17, "subtitlesHistory"], [_subtitlesHistorySettingsDecs, 17, "subtitlesHistorySettings"], [observable, 1, "collapsed"], [observable, 1, "aside"], [observable, 1, "barHovering"], [observable, 1, "barLocked"], [observable, 1, "barHidden"], [observable, 1, "asideWidth"], [computed, 3, "chatRoomState"], [observable, 1, "whiteboardActive"], [observable, 1, "ownerUser"], [computed, 3, "isWaterMarkEnabled"], [computed, 3, "isMulti"], [computed, 3, "layout"], [computed, 3, "manualLayout"], [computed, 3, "scalcValue"], [computed, 3, "sourceList"], [computed, 3, "layoutMainList"], [computed, 3, "mainList"], [computed, 3, "spotlightStreamId"], [computed, 3, "foldList"], [computed, 3, "galleryList"], [computed, 3, "isMainWindowInScreenSharing"], [computed, 3, "isCurrentUserInBoardSharing"], [computed, 3, "asideLayout"], [computed, 3, "carouselList"], [computed, 3, "hasPinnedStream"], [computed, 3, "isRobot"], [computed, 3, "findSpotlightUser"], [computed, 3, "isWhoISpeakingActive"], [computed, 3, "microphoneEnabled"], [computed, 3, "cameraEnabled"], [computed, 3, "galleryMaxSize"], [computed, 3, "asideContent"], [computed, 3, "participantsRenderAt"], [computed, 3, "chatRenderAt"], [computed, 3, "subtitlesHistoryRenderAt"], [bound, 2, "getWaterMarkContent"], [bound, 2, "hasMutePermission"], [bound, 2, "hasUnmutePermission"], [bound, 2, "hasRequestStartAudioPermission"], [bound, 2, "toggleMainStream"], [_addPinMessageDecs, 18, "addPinMessage"], [_cancelPinMessageDecs, 18, "cancelPinMessage"], [bound, 2, "addPin"], [bound, 2, "removePin"], [bound, 2, "setVideoOrientation"], [bound, 2, "setAllowChat"], [bound, 2, "handleSetPinState"], [_setWhiteboardActiveDecs, 18, "setWhiteboardActive"], [_setAsideWidthDecs, 18, "setAsideWidth"], [_updateSlotsDecs, 18, "updateSlots"], [bound, 2, "closeParticipantFromAside"], [bound, 2, "moveParticipantFromAsideToDialog"], [bound, 2, "closeChatFromAside"], [bound, 2, "closeAsideChat"], [bound, 2, "moveChatFromAsideToDialog"], [bound, 2, "openPrivateChat"], [bound, 2, "openRenameDialog"], [bound, 2, "closeSubtitlesHistoryFromAside"], [bound, 2, "moveSubtitlesHistoryFromAsideToDialog"], [_toggleLayoutDecs, 18, "toggleLayout"], [_toggleCollapsedDecs, 18, "toggleCollapsed"], [_toggleAsideDecs, 18, "toggleAside"], [_asideWidthChangedDecs, 18, "asideWidthChanged"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_toggleLayoutBarHiddenDecs, 18, "toggleLayoutBarHidden"], [_resetLockTimerDecs, 18, "resetLockTimer"], [_setHoveringHandlerDecs, 18, "setHoveringHandler"], [_setHoveringLeaveHandlerDecs, 18, "setHoveringLeaveHandler"], [_setScreenShareSpeakerViewSizeDecs, 2, "setScreenShareSpeakerViewSize"], [_handleLiveLayoutChangeDecs, 18, "handleLiveLayoutChange"], [_onUserInfoUpdatedDecs, 18, "onUserInfoUpdated"], [bound, 2, "stopLocalPreview"], [bound, 2, "startLocalPreview"], [bound, 2, "setAllowChatWithPayload"], [bound, 2, "setScaleValue"], [bound, 2, "muteAudio"], [bound, 2, "setControlbarEnabled"], [bound, 2, "sendParticipantEvent"], [bound, 2, "onEvent"], [bound, 2, "_addListeners"], [computed, 3, "_hasVideoStreamUser"], [_handleMainListLengthChangedDecs, 18, "_handleMainListLengthChanged"], [_handleMainListChangedDecs, 18, "_handleMainListChanged"], [action, 2, "_switchToSpeaker"], [action, 2, "_switchToGallery"], [_setBarHoveringDecs, 18, "_setBarHovering"], [_handleConnectionUpdatedDecs, 18, "_handleConnectionUpdated"], [_findVideoWindowByUserIdDecs, 18, "_findVideoWindowByUserId"], [_onRemoteUsersLeftDecs, 18, "_onRemoteUsersLeft"], [bound, 2, "_handleLiveStreamingStateUpdated"], [bound, 2, "_handleStreamAdded"], [bound, 2, "_onStreamsAdded"], [bound, 2, "_onStreamsUpdated"], [bound, 2, "_onStreamsRemoved"], [_handleLayoutUpdatedDecs, 16, "_handleLayoutUpdated"]], []).e, 22);
|
|
1316
1314
|
_init_participant = _applyDecs$e[0];
|
|
1317
1315
|
_init_chat = _applyDecs$e[1];
|
|
1318
1316
|
_init_chatAction = _applyDecs$e[2];
|
|
@@ -1331,9 +1329,8 @@ _init_barHovering = _applyDecs$e[14];
|
|
|
1331
1329
|
_init_barLocked = _applyDecs$e[15];
|
|
1332
1330
|
_init_barHidden = _applyDecs$e[16];
|
|
1333
1331
|
_init_asideWidth = _applyDecs$e[17];
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
_initProto = _applyDecs$e[22];
|
|
1332
|
+
_init_whiteboardActive = _applyDecs$e[18];
|
|
1333
|
+
_init_ownerUser = _applyDecs$e[19];
|
|
1334
|
+
_init__handleLayoutUpdated = _applyDecs$e[20];
|
|
1335
|
+
_initProto = _applyDecs$e[21];
|
|
1339
1336
|
export var StoreContext = /*#__PURE__*/createContext(null);
|
|
@@ -14,6 +14,72 @@
|
|
|
14
14
|
flex-direction: column;
|
|
15
15
|
align-items: center;
|
|
16
16
|
justify-content: center;
|
|
17
|
-
gap:
|
|
17
|
+
gap: 20px;
|
|
18
18
|
overflow: hidden;
|
|
19
19
|
}
|
|
20
|
+
|
|
21
|
+
.participants-container-rename-input-wrapper {
|
|
22
|
+
width: 100%;
|
|
23
|
+
position: relative;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.participants-container-rename-input-wrapper .fcr-textarea {
|
|
27
|
+
width: 272px;
|
|
28
|
+
height: 84px;
|
|
29
|
+
border-radius: var(--fcr_cornerradius_l);
|
|
30
|
+
border-width: 1px;
|
|
31
|
+
padding-top: 12px;
|
|
32
|
+
padding-right: 12px;
|
|
33
|
+
padding-bottom: 26px; /* 8px (Figma padding-bottom) + 18px (字符计数区域) = 26px */
|
|
34
|
+
padding-left: 12px;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.participants-container-rename-input-wrapper .fcr-textarea textarea {
|
|
39
|
+
width: 248px; /* 272 - 12*2 = 248px */
|
|
40
|
+
height: 40px;
|
|
41
|
+
font-family:
|
|
42
|
+
'Inter',
|
|
43
|
+
ui-sans-serif,
|
|
44
|
+
system-ui,
|
|
45
|
+
-apple-system,
|
|
46
|
+
BlinkMacSystemFont,
|
|
47
|
+
'Segoe UI',
|
|
48
|
+
Roboto,
|
|
49
|
+
'Helvetica Neue',
|
|
50
|
+
Arial,
|
|
51
|
+
sans-serif;
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
font-size: 14px;
|
|
54
|
+
line-height: 20px;
|
|
55
|
+
letter-spacing: 0;
|
|
56
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
57
|
+
padding: 0; /* 容器的 padding 已经处理了间距 */
|
|
58
|
+
box-sizing: border-box;
|
|
59
|
+
vertical-align: bottom;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.participants-container-rename-input-wrapper .fcr-textarea .fcr-textarea-wc {
|
|
63
|
+
height: 16px;
|
|
64
|
+
font-family:
|
|
65
|
+
'Inter',
|
|
66
|
+
ui-sans-serif,
|
|
67
|
+
system-ui,
|
|
68
|
+
-apple-system,
|
|
69
|
+
BlinkMacSystemFont,
|
|
70
|
+
'Segoe UI',
|
|
71
|
+
Roboto,
|
|
72
|
+
'Helvetica Neue',
|
|
73
|
+
Arial,
|
|
74
|
+
sans-serif;
|
|
75
|
+
font-weight: 400;
|
|
76
|
+
font-size: 12px;
|
|
77
|
+
line-height: 16px;
|
|
78
|
+
letter-spacing: 0;
|
|
79
|
+
text-align: right;
|
|
80
|
+
color: var(--fcr_ui_scene_icontext2);
|
|
81
|
+
position: absolute;
|
|
82
|
+
bottom: 8px; /* 根据 Figma padding-bottom: 8px 调整 */
|
|
83
|
+
left: 12px; /* 与容器的 padding-left 对齐 */
|
|
84
|
+
right: 12px; /* 与容器的 padding-right 对齐,宽度自动计算为 248px (272 - 12*2) */
|
|
85
|
+
}
|
|
@@ -4,6 +4,7 @@ import "core-js/modules/es.regexp.test.js";
|
|
|
4
4
|
import "core-js/modules/es.string.replace.js";
|
|
5
5
|
import "core-js/modules/es.string.trim.js";
|
|
6
6
|
import { FcrInput } from 'agora-ui-foundation/lib/components/input';
|
|
7
|
+
import { FcrTextArea } from 'agora-ui-foundation/lib/components/textarea';
|
|
7
8
|
import { useI18n } from 'agora-ui-foundation/lib/i18n';
|
|
8
9
|
import { useContext, useEffect, useState } from 'react';
|
|
9
10
|
import { StoreContext } from '../../store.base';
|
|
@@ -24,12 +25,14 @@ var FcrConfirmRenameForm = function FcrConfirmRenameForm(props) {
|
|
|
24
25
|
name = _useState2[0],
|
|
25
26
|
setName = _useState2[1];
|
|
26
27
|
var t = useI18n();
|
|
28
|
+
var MAX_BYTE_LENGTH = 48;
|
|
29
|
+
var MAX_LENGTH = 24;
|
|
27
30
|
useEffect(function () {
|
|
28
31
|
setName(value);
|
|
29
32
|
}, [value]);
|
|
30
33
|
function handleNameChange(name) {
|
|
31
34
|
var length = name.replace(/[^\x00-\xff]/g, '**').length;
|
|
32
|
-
if (length >
|
|
35
|
+
if (length > MAX_BYTE_LENGTH) {
|
|
33
36
|
return;
|
|
34
37
|
}
|
|
35
38
|
type === 'number' ? (/^\d+$/.test(name) || name === '') && setName(name.trim()) : setName(name.trim());
|
|
@@ -37,17 +40,17 @@ var FcrConfirmRenameForm = function FcrConfirmRenameForm(props) {
|
|
|
37
40
|
}
|
|
38
41
|
return /*#__PURE__*/_jsxs("div", {
|
|
39
42
|
className: "participants-container-rename",
|
|
40
|
-
children: [/*#__PURE__*/_jsx(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
44
|
+
className: "participants-container-rename-input-wrapper",
|
|
45
|
+
children: /*#__PURE__*/_jsx(FcrTextArea, {
|
|
46
|
+
value: name,
|
|
47
|
+
onChange: handleNameChange,
|
|
48
|
+
placeholder: placeholder || t('fmt_additional_popup_label_enter_nickname'),
|
|
49
|
+
maxCount: MAX_LENGTH,
|
|
50
|
+
showCount: true,
|
|
51
|
+
autoSize: false,
|
|
52
|
+
resizable: false
|
|
53
|
+
})
|
|
51
54
|
}), /*#__PURE__*/_jsxs("div", {
|
|
52
55
|
className: 'participants-container-rename-footer fcr-confirm-content-footer fcr-confirm-content-footer__center',
|
|
53
56
|
children: [/*#__PURE__*/_jsx(FcrButton, {
|
|
@@ -91,7 +94,7 @@ export var FcrConfirmInput = function FcrConfirmInput(props) {
|
|
|
91
94
|
size: "large",
|
|
92
95
|
allowClear: true,
|
|
93
96
|
shape: "rounded",
|
|
94
|
-
maxLength:
|
|
97
|
+
maxLength: 24,
|
|
95
98
|
placeholder: placeholder || t('fmt_additional_popup_label_enter_nickname')
|
|
96
99
|
})
|
|
97
100
|
});
|
|
@@ -624,7 +624,7 @@ export var ParticipantStoreBase = /*#__PURE__*/function () {
|
|
|
624
624
|
}, {
|
|
625
625
|
key: "hasInvite",
|
|
626
626
|
get: function get() {
|
|
627
|
-
return this._abilityProvider.isRoomDetailSupported()
|
|
627
|
+
return this._abilityProvider.isRoomDetailSupported();
|
|
628
628
|
}
|
|
629
629
|
}, {
|
|
630
630
|
key: "checkedStateMap",
|
|
@@ -1132,9 +1132,10 @@ export var ParticipantStoreBase = /*#__PURE__*/function () {
|
|
|
1132
1132
|
var _streams$find;
|
|
1133
1133
|
var user = this.mainRoomUserMap.get(userId);
|
|
1134
1134
|
var isPSTN = (user === null || user === void 0 ? void 0 : user.userInfo.connectorType) === FcrRoomConnectorType.PSTN;
|
|
1135
|
+
var isVOLTE = (user === null || user === void 0 ? void 0 : user.userInfo.connectorType) === FcrRoomConnectorType.VOLTE;
|
|
1135
1136
|
var streams = user === null || user === void 0 ? void 0 : user.streams;
|
|
1136
1137
|
var streamId = streams === null || streams === void 0 || (_streams$find = streams.find(function (stream) {
|
|
1137
|
-
return stream.videoSourceType === FcrVideoSourceType.CAMERA || isPSTN && stream.videoSourceType === FcrVideoSourceType.NONE;
|
|
1138
|
+
return stream.videoSourceType === FcrVideoSourceType.CAMERA || isPSTN && stream.videoSourceType === FcrVideoSourceType.NONE || isVOLTE && stream.videoSourceType === FcrVideoSourceType.NONE;
|
|
1138
1139
|
})) === null || _streams$find === void 0 ? void 0 : _streams$find.streamId;
|
|
1139
1140
|
return streamId;
|
|
1140
1141
|
}
|
|
@@ -1206,6 +1207,8 @@ export var ParticipantStoreBase = /*#__PURE__*/function () {
|
|
|
1206
1207
|
return this._getNormalUserDeviceInfo(userStreams, isSelf);
|
|
1207
1208
|
case FcrRoomConnectorType.PSTN:
|
|
1208
1209
|
return this._getPstnUserDeviceInfo(userStreams);
|
|
1210
|
+
case FcrRoomConnectorType.VOLTE:
|
|
1211
|
+
return this._getVolteUserDeviceInfo(userStreams);
|
|
1209
1212
|
case FcrRoomConnectorType.SIP:
|
|
1210
1213
|
case FcrRoomConnectorType.H323:
|
|
1211
1214
|
return this._getSipOrH323UserDeviceInfo(userStreams);
|
|
@@ -1225,14 +1228,16 @@ export var ParticipantStoreBase = /*#__PURE__*/function () {
|
|
|
1225
1228
|
value: function _getNormalUserDeviceInfo(userStreams, isSelf) {
|
|
1226
1229
|
var defaultStream = this._findStreamByVideoSourceType(userStreams, FcrVideoSourceType.CAMERA);
|
|
1227
1230
|
var pstnStream = this._findStreamByConnectorType(userStreams, FcrRoomConnectorType.PSTN);
|
|
1231
|
+
var volteStream = this._findStreamByConnectorType(userStreams, FcrRoomConnectorType.VOLTE);
|
|
1228
1232
|
var hasVideo = isSelf ? this._deviceStore.cameraEnabled : this._hasVideoPublishedAndStarted(defaultStream);
|
|
1229
|
-
|
|
1230
|
-
|
|
1233
|
+
var phoneStream = volteStream || pstnStream;
|
|
1234
|
+
if (phoneStream) {
|
|
1235
|
+
// 有PSTN或VOLTE流,使用电话麦克风
|
|
1231
1236
|
return {
|
|
1232
1237
|
audioDeviceType: USER_FORMAT_CONFIG.DEVICE_TYPES.AUDIO.PHONE_MIC,
|
|
1233
1238
|
videoDeviceType: USER_FORMAT_CONFIG.DEVICE_TYPES.VIDEO.COMPUTER_CAM,
|
|
1234
1239
|
userType: USER_FORMAT_CONFIG.USER_TYPES.NORMAL,
|
|
1235
|
-
hasAudio:
|
|
1240
|
+
hasAudio: phoneStream.audioSourceState === FcrMediaSourceState.OPEN,
|
|
1236
1241
|
hasVideo: hasVideo
|
|
1237
1242
|
};
|
|
1238
1243
|
} else {
|
|
@@ -1264,6 +1269,18 @@ export var ParticipantStoreBase = /*#__PURE__*/function () {
|
|
|
1264
1269
|
hasVideo: false
|
|
1265
1270
|
};
|
|
1266
1271
|
}
|
|
1272
|
+
}, {
|
|
1273
|
+
key: "_getVolteUserDeviceInfo",
|
|
1274
|
+
value: function _getVolteUserDeviceInfo(userStreams) {
|
|
1275
|
+
var volteStream = this._findStreamByConnectorType(userStreams, FcrRoomConnectorType.VOLTE);
|
|
1276
|
+
return {
|
|
1277
|
+
audioDeviceType: USER_FORMAT_CONFIG.DEVICE_TYPES.AUDIO.PHONE_MIC,
|
|
1278
|
+
videoDeviceType: USER_FORMAT_CONFIG.DEVICE_TYPES.VIDEO.COMPUTER_CAM,
|
|
1279
|
+
userType: USER_FORMAT_CONFIG.USER_TYPES.MEETING_SYSTEM,
|
|
1280
|
+
hasAudio: this._hasAudioPublishedAndStarted(volteStream),
|
|
1281
|
+
hasVideo: this._hasVideoPublishedAndStarted(volteStream)
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1267
1284
|
|
|
1268
1285
|
/**
|
|
1269
1286
|
* 获取SIP/H323会议系统用户的设备信息
|
|
@@ -1727,8 +1744,18 @@ export var ParticipantStoreBase = /*#__PURE__*/function () {
|
|
|
1727
1744
|
}, {
|
|
1728
1745
|
key: "_unmuteUserVideo",
|
|
1729
1746
|
value: function _unmuteUserVideo(userId) {
|
|
1730
|
-
var
|
|
1731
|
-
|
|
1747
|
+
var _this$_getUserTargetA3 = this._getUserTargetAudioStreams(userId),
|
|
1748
|
+
hardwareDeviceStream = _this$_getUserTargetA3.hardwareDeviceStream,
|
|
1749
|
+
isLocalUser = _this$_getUserTargetA3.isLocalUser;
|
|
1750
|
+
|
|
1751
|
+
// 如果是硬件设备流,直接更新流的发布权限来取消静音
|
|
1752
|
+
if (hardwareDeviceStream) {
|
|
1753
|
+
this._updateStreamPrivilege(hardwareDeviceStream.streamId, FcrStreamPrivilegeOperation.NOOPERATION, FcrStreamPrivilegeOperation.HAS_PRIVILEGE);
|
|
1754
|
+
return;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
// 如果是本地用户,直接启用本地麦克风(上面硬件已经处理了,所以从这里往后都不是硬件设备了)
|
|
1758
|
+
if (isLocalUser) {
|
|
1732
1759
|
this._deviceStreamStore.enableCameraWithPreCheck(true);
|
|
1733
1760
|
return;
|
|
1734
1761
|
}
|
|
@@ -161,6 +161,11 @@ var ConnectionGatewayStoreMainScene = /*#__PURE__*/function () {
|
|
|
161
161
|
get: function get() {
|
|
162
162
|
return this._phoneAudioConnectorProvider.hasOwnPstnStream;
|
|
163
163
|
}
|
|
164
|
+
}, {
|
|
165
|
+
key: "hasOwnVolteStream",
|
|
166
|
+
get: function get() {
|
|
167
|
+
return this._phoneAudioConnectorProvider.hasOwnVolteStream;
|
|
168
|
+
}
|
|
164
169
|
}, {
|
|
165
170
|
key: "outgoingCall",
|
|
166
171
|
get: function get() {
|
|
@@ -171,6 +176,11 @@ var ConnectionGatewayStoreMainScene = /*#__PURE__*/function () {
|
|
|
171
176
|
get: function get() {
|
|
172
177
|
return this._phoneAudioConnectorProvider.hasPstnStream;
|
|
173
178
|
}
|
|
179
|
+
}, {
|
|
180
|
+
key: "hasVolteStream",
|
|
181
|
+
get: function get() {
|
|
182
|
+
return this._phoneAudioConnectorProvider.hasVolteStream;
|
|
183
|
+
}
|
|
174
184
|
}, {
|
|
175
185
|
key: "connectInfo",
|
|
176
186
|
get: function get() {
|
|
@@ -208,7 +218,7 @@ var ConnectionGatewayStoreMainScene = /*#__PURE__*/function () {
|
|
|
208
218
|
return false;
|
|
209
219
|
}
|
|
210
220
|
this._needShowConfirmDialog = false;
|
|
211
|
-
if (this.hasOwnPstnStream) {
|
|
221
|
+
if (this.hasOwnPstnStream || this.hasOwnVolteStream) {
|
|
212
222
|
return false;
|
|
213
223
|
}
|
|
214
224
|
var dialogId = this._dialogProvider.openConfirmDialog({
|
|
@@ -303,7 +313,7 @@ var ConnectionGatewayStoreMainScene = /*#__PURE__*/function () {
|
|
|
303
313
|
}]);
|
|
304
314
|
}();
|
|
305
315
|
_ConnectionGatewayStoreMainScene = ConnectionGatewayStoreMainScene;
|
|
306
|
-
var _applyDecs$e = _slicedToArray(_applyDecs(_ConnectionGatewayStoreMainScene, [[observable, 1, "phoneCallState"], [observable, 1, "phoneCallReason"], [observable, 1, "connectSession"], [observable, 1, "calling"], [computed, 3, "connectType"], [computed, 3, "hasNeedMergedStream"], [computed, 3, "hasOwnPstnStream"], [computed, 3, "outgoingCall"], [computed, 3, "hasPstnStream"], [computed, 3, "connectInfo"], [bound, 2, "openAudioSettings"], [bound, 2, "_handleInterceptorCloseDialog"], [bound, 2, "joinAudioByComputer"], [bound, 2, "stopAudioByComputer"], [bound, 2, "openInviteDialog"]], []).e, 5);
|
|
316
|
+
var _applyDecs$e = _slicedToArray(_applyDecs(_ConnectionGatewayStoreMainScene, [[observable, 1, "phoneCallState"], [observable, 1, "phoneCallReason"], [observable, 1, "connectSession"], [observable, 1, "calling"], [computed, 3, "connectType"], [computed, 3, "hasNeedMergedStream"], [computed, 3, "hasOwnPstnStream"], [computed, 3, "hasOwnVolteStream"], [computed, 3, "outgoingCall"], [computed, 3, "hasPstnStream"], [computed, 3, "hasVolteStream"], [computed, 3, "connectInfo"], [bound, 2, "openAudioSettings"], [bound, 2, "_handleInterceptorCloseDialog"], [bound, 2, "joinAudioByComputer"], [bound, 2, "stopAudioByComputer"], [bound, 2, "openInviteDialog"]], []).e, 5);
|
|
307
317
|
_init_phoneCallState = _applyDecs$e[0];
|
|
308
318
|
_init_phoneCallReason = _applyDecs$e[1];
|
|
309
319
|
_init_connectSession = _applyDecs$e[2];
|
|
@@ -18,6 +18,8 @@ var View = observer(function () {
|
|
|
18
18
|
hasOwnPstnStream = _useContext.hasOwnPstnStream,
|
|
19
19
|
outgoingCall = _useContext.outgoingCall,
|
|
20
20
|
hasPstnStream = _useContext.hasPstnStream,
|
|
21
|
+
hasVolteStream = _useContext.hasVolteStream,
|
|
22
|
+
hasOwnVolteStream = _useContext.hasOwnVolteStream,
|
|
21
23
|
connectInfo = _useContext.connectInfo;
|
|
22
24
|
var transI18n = useI18n();
|
|
23
25
|
return /*#__PURE__*/_jsxs("div", {
|
|
@@ -28,7 +30,7 @@ var View = observer(function () {
|
|
|
28
30
|
className: "var(--fcrcornerradiusround) fcr_ui_scene_ramp_brand6",
|
|
29
31
|
onClick: joinAudioByComputer,
|
|
30
32
|
children: transI18n('fmt_pstn_label_accessmethodPC')
|
|
31
|
-
}), hasPstnStream && !outgoingCall && !hasOwnPstnStream && hasNeedMergedStream && /*#__PURE__*/_jsx("div", {
|
|
33
|
+
}), (hasPstnStream || hasVolteStream) && !outgoingCall && !hasOwnPstnStream && !hasOwnVolteStream && hasNeedMergedStream && /*#__PURE__*/_jsx("div", {
|
|
32
34
|
className: "connector-phone-alert",
|
|
33
35
|
children: transI18n('fmt_pstn_label_alreadyin', {
|
|
34
36
|
reason1: connectInfo === null || connectInfo === void 0 ? void 0 : connectInfo.phoneUserId
|
|
@@ -40,7 +42,7 @@ var View = observer(function () {
|
|
|
40
42
|
className: "var(--fcrcornerradiusround)",
|
|
41
43
|
onClick: stopAudioByComputer,
|
|
42
44
|
children: transI18n('fmt_pstn_button_PCaudiostop')
|
|
43
|
-
}), connectType === FcrUIConnectType.PHONE && hasOwnPstnStream && /*#__PURE__*/_jsx(FcrToolTip, {
|
|
45
|
+
}), connectType === FcrUIConnectType.PHONE && (hasOwnPstnStream || hasOwnVolteStream) && /*#__PURE__*/_jsx(FcrToolTip, {
|
|
44
46
|
content: transI18n('fmt_pstn_tips_alreadyphone'),
|
|
45
47
|
children: /*#__PURE__*/_jsx(FcrButton, {
|
|
46
48
|
size: "XS",
|
|
@@ -75,6 +75,7 @@ import { FcrUIDialogKey, FcrUIHighlightElement } from '../../utilities/constant'
|
|
|
75
75
|
import { ConnectorRegion } from './enums';
|
|
76
76
|
import { FcrUIObjectKeys } from '../../object-manager';
|
|
77
77
|
import { DeviceSettingTab } from '../setting/type';
|
|
78
|
+
import { FcrPhoneConnectorSessionType } from 'fcr-core/lib/room-control/room-connector-control/type';
|
|
78
79
|
var _A = /*#__PURE__*/new WeakMap();
|
|
79
80
|
var _B = /*#__PURE__*/new WeakMap();
|
|
80
81
|
var _C = /*#__PURE__*/new WeakMap();
|
|
@@ -182,6 +183,16 @@ var ConnectionGatewayStore = /*#__PURE__*/function () {
|
|
|
182
183
|
get: function get() {
|
|
183
184
|
return this._phoneAudioConnectorProvider.hasOwnPstnStream;
|
|
184
185
|
}
|
|
186
|
+
}, {
|
|
187
|
+
key: "hasVolteStream",
|
|
188
|
+
get: function get() {
|
|
189
|
+
return this._phoneAudioConnectorProvider.hasVolteStream;
|
|
190
|
+
}
|
|
191
|
+
}, {
|
|
192
|
+
key: "hasOwnVolteStream",
|
|
193
|
+
get: function get() {
|
|
194
|
+
return this._phoneAudioConnectorProvider.hasOwnVolteStream;
|
|
195
|
+
}
|
|
185
196
|
}, {
|
|
186
197
|
key: "hasNeedMergedStream",
|
|
187
198
|
get: function get() {
|
|
@@ -200,7 +211,7 @@ var ConnectionGatewayStore = /*#__PURE__*/function () {
|
|
|
200
211
|
}, {
|
|
201
212
|
key: "startCall",
|
|
202
213
|
value: function startCall() {
|
|
203
|
-
this._phoneAudioConnectorProvider.startCall(this.currentCallInfo.phone);
|
|
214
|
+
this._phoneAudioConnectorProvider.startCall(this.currentCallInfo.phone, FcrPhoneConnectorSessionType.PSTN);
|
|
204
215
|
}
|
|
205
216
|
}, {
|
|
206
217
|
key: "stopCall",
|
|
@@ -39,7 +39,9 @@ var View = observer(function () {
|
|
|
39
39
|
outgoingCall = _useContext.outgoingCall,
|
|
40
40
|
isHangup = _useContext.isHangup,
|
|
41
41
|
hasPstnStream = _useContext.hasPstnStream,
|
|
42
|
+
hasVolteStream = _useContext.hasVolteStream,
|
|
42
43
|
hasOwnPstnStream = _useContext.hasOwnPstnStream,
|
|
44
|
+
hasOwnVolteStream = _useContext.hasOwnVolteStream,
|
|
43
45
|
hasNeedMergedStream = _useContext.hasNeedMergedStream;
|
|
44
46
|
var transI18n = useI18n();
|
|
45
47
|
var _useState = useState(''),
|
|
@@ -88,7 +90,7 @@ var View = observer(function () {
|
|
|
88
90
|
}, [phoneCallState, phoneCallReason]);
|
|
89
91
|
return /*#__PURE__*/_jsxs("div", {
|
|
90
92
|
className: "connector-phone",
|
|
91
|
-
children: [(isStaticState && !isAcceptingState && !hasOwnPstnStream || hasPstnStream && !hasOwnPstnStream) && /*#__PURE__*/_jsxs("div", {
|
|
93
|
+
children: [(isStaticState && !isAcceptingState && !hasOwnPstnStream && !hasOwnVolteStream || hasPstnStream && !hasOwnPstnStream || hasVolteStream && !hasOwnVolteStream) && /*#__PURE__*/_jsxs("div", {
|
|
92
94
|
className: "connector-phone_inner",
|
|
93
95
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
94
96
|
className: "connector-phone_selector",
|
|
@@ -127,7 +129,7 @@ var View = observer(function () {
|
|
|
127
129
|
checked: rememberMe,
|
|
128
130
|
onChange: setRememberMe
|
|
129
131
|
})]
|
|
130
|
-
}), (isPhoneAudioConnected || isAcceptingState) && hasOwnPstnStream && /*#__PURE__*/_jsx(ConnectionUsing, {}), isStaticState && !hasOwnPstnStream && /*#__PURE__*/_jsx("div", {
|
|
132
|
+
}), (isPhoneAudioConnected || isAcceptingState) && (hasOwnPstnStream || hasOwnVolteStream) && /*#__PURE__*/_jsx(ConnectionUsing, {}), isStaticState && !hasOwnPstnStream && !hasOwnVolteStream && /*#__PURE__*/_jsx("div", {
|
|
131
133
|
className: "connector-phone_inner",
|
|
132
134
|
children: /*#__PURE__*/_jsx(FcrButton, {
|
|
133
135
|
size: "XS",
|
|
@@ -154,14 +156,14 @@ var View = observer(function () {
|
|
|
154
156
|
onClick: stopCall,
|
|
155
157
|
children: transI18n('fmt_pstn_button_hangupphone')
|
|
156
158
|
})
|
|
157
|
-
}), (outgoingCall || isStaticState) && (!hasOwnPstnStream || isAcceptingState) && /*#__PURE__*/_jsx(FcrDivider, {
|
|
159
|
+
}), (outgoingCall || isStaticState) && (!hasOwnPstnStream && !hasOwnVolteStream || isAcceptingState) && /*#__PURE__*/_jsx(FcrDivider, {
|
|
158
160
|
style: {
|
|
159
161
|
margin: '10px 0 12px'
|
|
160
162
|
},
|
|
161
163
|
type: "horizontal",
|
|
162
164
|
size: "0.4px",
|
|
163
165
|
children: transI18n('fmt_pstn_label_dialinphone')
|
|
164
|
-
}), hasPstnStream && !outgoingCall && !hasOwnPstnStream && hasNeedMergedStream && /*#__PURE__*/_jsx("div", {
|
|
166
|
+
}), (hasPstnStream || hasVolteStream) && !outgoingCall && !hasOwnPstnStream && !hasOwnVolteStream && hasNeedMergedStream && /*#__PURE__*/_jsx("div", {
|
|
165
167
|
className: "connector-phone-alert",
|
|
166
168
|
children: transI18n('fmt_pstn_label_alreadyin', {
|
|
167
169
|
reason1: connectInfo === null || connectInfo === void 0 ? void 0 : connectInfo.phoneUserId
|
|
@@ -93,7 +93,7 @@ export var FcrUISecondaryWindowModule = /*#__PURE__*/function (_UIModule) {
|
|
|
93
93
|
}
|
|
94
94
|
}]);
|
|
95
95
|
}(UIModule);
|
|
96
|
-
export var FcrUIMainWindowRendererImpl = /*#__PURE__*/function (
|
|
96
|
+
export var FcrUIMainWindowRendererImpl = /*#__PURE__*/function (_AgoraObservable) {
|
|
97
97
|
function FcrUIMainWindowRendererImpl() {
|
|
98
98
|
var _this2;
|
|
99
99
|
_classCallCheck(this, FcrUIMainWindowRendererImpl);
|
|
@@ -106,7 +106,7 @@ export var FcrUIMainWindowRendererImpl = /*#__PURE__*/function (_ref) {
|
|
|
106
106
|
_this2.addObserver(generateLogObserver(_this2.logger, ['onConnectionStateUpdated', 'onViewportSizeUpdated', 'onBackgroundColorUpdated', 'onDraftSaved', 'onPermissionUpdated', 'onRedoStateUpdated', 'onUndoStateUpdated', 'onWhiteboardStrokeColorChanged', 'onWhiteboardStrokeWidthChanged', 'onWhiteboardToolSelected']));
|
|
107
107
|
return _this2;
|
|
108
108
|
}
|
|
109
|
-
_inherits(FcrUIMainWindowRendererImpl,
|
|
109
|
+
_inherits(FcrUIMainWindowRendererImpl, _AgoraObservable);
|
|
110
110
|
return _createClass(FcrUIMainWindowRendererImpl, [{
|
|
111
111
|
key: "ownerUser",
|
|
112
112
|
get: function get() {
|
|
@@ -317,9 +317,24 @@ export var SecondaryWindowStore = /*#__PURE__*/function () {
|
|
|
317
317
|
get: function get() {
|
|
318
318
|
return this._annotationProvider.isAnnotationOpened;
|
|
319
319
|
}
|
|
320
|
+
}, {
|
|
321
|
+
key: "isWaterMarkEnabled",
|
|
322
|
+
get: function get() {
|
|
323
|
+
return this._privilegeProvider.isWaterMarkEnabled();
|
|
324
|
+
}
|
|
325
|
+
}, {
|
|
326
|
+
key: "isMulti",
|
|
327
|
+
get: function get() {
|
|
328
|
+
return this._privilegeProvider.isMultiWaterMarkEnabled();
|
|
329
|
+
}
|
|
320
330
|
}, {
|
|
321
331
|
key: "getContent",
|
|
322
332
|
value: function getContent() {}
|
|
333
|
+
}, {
|
|
334
|
+
key: "getWaterMarkContent",
|
|
335
|
+
value: function getWaterMarkContent() {
|
|
336
|
+
return this._privilegeProvider.getWaterMarkContent();
|
|
337
|
+
}
|
|
323
338
|
}, {
|
|
324
339
|
key: "handleIframeLoad",
|
|
325
340
|
value: function handleIframeLoad(iframe) {
|
|
@@ -525,7 +540,7 @@ export var SecondaryWindowStore = /*#__PURE__*/function () {
|
|
|
525
540
|
}]);
|
|
526
541
|
}();
|
|
527
542
|
_SecondaryWindowStore = SecondaryWindowStore;
|
|
528
|
-
var _applyDecs$e = _slicedToArray(_applyDecs(_SecondaryWindowStore, [[observable, 1, "_screenShareScalcValue"], [observable, 1, "isSharingWhiteboard"], [observable, 1, "interceptedClose"], [computed, 3, "videoWindowData"], [computed, 3, "isAspectRatioPreserved"], [computed, 3, "scalValue"], [computed, 3, "canWriteBoard"], [bound, 2, "handleIframeLoad"], [bound, 2, "zoomIn"], [bound, 2, "zoomOut"], [bound, 2, "fullContainer"], [bound, 2, "setInterceptedClose"], [bound, 2, "setScaleValue"], [bound, 2, "setOriginScalc"], [bound, 2, "setSpeakerViewSize"], [bound, 2, "setWhiteboardTool"], [bound, 2, "saveWhiteboardDraft"], [bound, 2, "setProgress"], [bound, 2, "setTheme"], [bound, 2, "setControlEnable"], [bound, 2, "setShowLoading"], [bound, 2, "setCommonColors"], [bound, 2, "log"]], []).e, 4);
|
|
543
|
+
var _applyDecs$e = _slicedToArray(_applyDecs(_SecondaryWindowStore, [[observable, 1, "_screenShareScalcValue"], [observable, 1, "isSharingWhiteboard"], [observable, 1, "interceptedClose"], [computed, 3, "videoWindowData"], [computed, 3, "isAspectRatioPreserved"], [computed, 3, "scalValue"], [computed, 3, "canWriteBoard"], [computed, 3, "isWaterMarkEnabled"], [computed, 3, "isMulti"], [bound, 2, "getWaterMarkContent"], [bound, 2, "handleIframeLoad"], [bound, 2, "zoomIn"], [bound, 2, "zoomOut"], [bound, 2, "fullContainer"], [bound, 2, "setInterceptedClose"], [bound, 2, "setScaleValue"], [bound, 2, "setOriginScalc"], [bound, 2, "setSpeakerViewSize"], [bound, 2, "setWhiteboardTool"], [bound, 2, "saveWhiteboardDraft"], [bound, 2, "setProgress"], [bound, 2, "setTheme"], [bound, 2, "setControlEnable"], [bound, 2, "setShowLoading"], [bound, 2, "setCommonColors"], [bound, 2, "log"]], []).e, 4);
|
|
529
544
|
_init__screenShareScalcValue = _applyDecs$e[0];
|
|
530
545
|
_init_isSharingWhiteboard = _applyDecs$e[1];
|
|
531
546
|
_init_interceptedClose = _applyDecs$e[2];
|