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
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
1
2
|
import "core-js/modules/es.error.to-string.js";
|
|
2
3
|
import "core-js/modules/es.date.to-string.js";
|
|
3
4
|
import "core-js/modules/es.object.to-string.js";
|
|
4
5
|
import "core-js/modules/es.regexp.to-string.js";
|
|
5
6
|
import { observer } from 'mobx-react';
|
|
6
|
-
import { useContext, useEffect, useLayoutEffect, useRef } from 'react';
|
|
7
|
+
import { useContext, useEffect, useLayoutEffect, useMemo, useRef } from 'react';
|
|
7
8
|
import { SecondaryWindowStoreContext } from './store';
|
|
8
9
|
import { FcrVideoRenderMode, FcrVideoStreamType } from 'fcr-core/lib/type';
|
|
9
10
|
import { MemberWindow } from '../components/member-window';
|
|
@@ -16,6 +17,8 @@ import ProgressDialog from '../components/control-bar/components/progress';
|
|
|
16
17
|
import { transI18n } from 'agora-ui-foundation/lib/i18n';
|
|
17
18
|
import { LeaveMeetingPortal } from '../components/leave-meeting/portal';
|
|
18
19
|
import { FcrVideoTrackRenderContext } from '../../shared-context/video-track-render-context';
|
|
20
|
+
import { WaterMark } from 'agora-ui-foundation/lib/components/watermark';
|
|
21
|
+
import { useDelayedMeasure } from 'agora-ui-foundation/lib/utilities/hooks';
|
|
19
22
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
20
23
|
export var SubWindowView = observer(function (props) {
|
|
21
24
|
var renderScreenShareControl = props.renderScreenShareControl;
|
|
@@ -38,7 +41,10 @@ export var SubWindowView = observer(function (props) {
|
|
|
38
41
|
isAspectRatioPreserved = store.isAspectRatioPreserved,
|
|
39
42
|
isShowToolbar = store.isShowToolbar,
|
|
40
43
|
isActive = store.isActive,
|
|
44
|
+
isWaterMarkEnabled = store.isWaterMarkEnabled,
|
|
45
|
+
isMulti = store.isMulti,
|
|
41
46
|
baseUrl = store.baseUrl,
|
|
47
|
+
currentUser = store.currentUser,
|
|
42
48
|
setOriginScalc = store.setOriginScalc,
|
|
43
49
|
zoomIn = store.zoomIn,
|
|
44
50
|
zoomOut = store.zoomOut,
|
|
@@ -56,8 +62,17 @@ export var SubWindowView = observer(function (props) {
|
|
|
56
62
|
interceptedClose = store.interceptedClose,
|
|
57
63
|
setInterceptedClose = store.setInterceptedClose,
|
|
58
64
|
videoRenderContext = store.videoRenderContext,
|
|
59
|
-
isAnnotationOpened = store.isAnnotationOpened
|
|
65
|
+
isAnnotationOpened = store.isAnnotationOpened,
|
|
66
|
+
getWaterMarkContent = store.getWaterMarkContent;
|
|
60
67
|
var videoWindowContainer = useRef(null);
|
|
68
|
+
var _useDelayedMeasure = useDelayedMeasure(),
|
|
69
|
+
_useDelayedMeasure2 = _slicedToArray(_useDelayedMeasure, 2),
|
|
70
|
+
delayedMeasureRef = _useDelayedMeasure2[0],
|
|
71
|
+
delayedMeasureBounds = _useDelayedMeasure2[1];
|
|
72
|
+
var waterMarkRenderContent = useMemo(function () {
|
|
73
|
+
var remoteWaterMark = getWaterMarkContent();
|
|
74
|
+
return isWaterMarkEnabled ? [remoteWaterMark] : [];
|
|
75
|
+
}, [isWaterMarkEnabled, currentUser]);
|
|
61
76
|
useEffect(function () {
|
|
62
77
|
if (!interceptedClose) return;
|
|
63
78
|
if (!videoWindowContainer.current) {
|
|
@@ -205,78 +220,87 @@ export var SubWindowView = observer(function (props) {
|
|
|
205
220
|
})
|
|
206
221
|
});
|
|
207
222
|
}
|
|
208
|
-
return /*#__PURE__*/
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
children: [interceptedClose && /*#__PURE__*/_jsx(LeaveMeetingPortal, {
|
|
218
|
-
setPopoverOpened: function setPopoverOpened() {
|
|
219
|
-
return setInterceptedClose(false);
|
|
220
|
-
}
|
|
221
|
-
}), content, (isBoardShare || isAnnotationOpened) && /*#__PURE__*/_jsx(WhiteboardToolbar, {
|
|
222
|
-
offsetTop: 28,
|
|
223
|
-
direction: "vertical",
|
|
224
|
-
container: videoWindowContainer.current || undefined,
|
|
225
|
-
show: canWriteBoard && joinSuccess && isShowToolbar && !showLoading,
|
|
226
|
-
currentStrokeWidth: toolbarState.currentStrokeWidth,
|
|
227
|
-
currentColor: toolbarState.currentColor,
|
|
228
|
-
currentTool: toolbarState.currentTool,
|
|
229
|
-
currentShape: toolbarState.currentShape,
|
|
230
|
-
redoSteps: toolbarState.redoSteps,
|
|
231
|
-
undoSteps: toolbarState.undoSteps,
|
|
232
|
-
commonColors: isBoardShare ? toolbarState.commonColors : undefined,
|
|
233
|
-
themeColors: toolbarState.themeColors,
|
|
234
|
-
setCommonColors: setCommonColors,
|
|
235
|
-
setStrokeWidth: function setStrokeWidth(width) {
|
|
236
|
-
setWhiteboardTool({
|
|
237
|
-
action: WhiteboardToolAction.WIDTH,
|
|
238
|
-
tool: width
|
|
239
|
-
});
|
|
240
|
-
},
|
|
241
|
-
setTool: function setTool(tool) {
|
|
242
|
-
setWhiteboardTool({
|
|
243
|
-
action: WhiteboardToolAction.TOOL,
|
|
244
|
-
tool: tool
|
|
245
|
-
});
|
|
246
|
-
},
|
|
247
|
-
setShape: function setShape(shape) {
|
|
248
|
-
setWhiteboardTool({
|
|
249
|
-
action: WhiteboardToolAction.SHAPE,
|
|
250
|
-
tool: shape
|
|
251
|
-
});
|
|
252
|
-
},
|
|
253
|
-
setStrokeColor: function setStrokeColor(color) {
|
|
254
|
-
setWhiteboardTool({
|
|
255
|
-
action: WhiteboardToolAction.COLOR,
|
|
256
|
-
tool: color.toString()
|
|
257
|
-
});
|
|
223
|
+
return /*#__PURE__*/_jsx(WaterMark, {
|
|
224
|
+
content: waterMarkRenderContent,
|
|
225
|
+
width: isMulti ? 120 : delayedMeasureBounds.width,
|
|
226
|
+
height: isMulti ? 64 : delayedMeasureBounds.height,
|
|
227
|
+
multiLine: Boolean(isMulti),
|
|
228
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
229
|
+
ref: function ref(node) {
|
|
230
|
+
delayedMeasureRef(node);
|
|
231
|
+
videoWindowContainer.current = node;
|
|
258
232
|
},
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
233
|
+
className: "sub-window-view",
|
|
234
|
+
style: {
|
|
235
|
+
width: '100%',
|
|
236
|
+
height: '100%',
|
|
237
|
+
position: 'relative',
|
|
238
|
+
top: 0
|
|
264
239
|
},
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
240
|
+
children: [interceptedClose && /*#__PURE__*/_jsx(LeaveMeetingPortal, {
|
|
241
|
+
setPopoverOpened: function setPopoverOpened() {
|
|
242
|
+
return setInterceptedClose(false);
|
|
243
|
+
}
|
|
244
|
+
}), content, (isBoardShare || isAnnotationOpened) && /*#__PURE__*/_jsx(WhiteboardToolbar, {
|
|
245
|
+
offsetTop: 28,
|
|
246
|
+
direction: "vertical",
|
|
247
|
+
container: videoWindowContainer.current || undefined,
|
|
248
|
+
show: canWriteBoard && joinSuccess && isShowToolbar && !showLoading,
|
|
249
|
+
currentStrokeWidth: toolbarState.currentStrokeWidth,
|
|
250
|
+
currentColor: toolbarState.currentColor,
|
|
251
|
+
currentTool: toolbarState.currentTool,
|
|
252
|
+
currentShape: toolbarState.currentShape,
|
|
253
|
+
redoSteps: toolbarState.redoSteps,
|
|
254
|
+
undoSteps: toolbarState.undoSteps,
|
|
255
|
+
commonColors: isBoardShare ? toolbarState.commonColors : undefined,
|
|
256
|
+
themeColors: toolbarState.themeColors,
|
|
257
|
+
setCommonColors: setCommonColors,
|
|
258
|
+
setStrokeWidth: function setStrokeWidth(width) {
|
|
259
|
+
setWhiteboardTool({
|
|
260
|
+
action: WhiteboardToolAction.WIDTH,
|
|
261
|
+
tool: width
|
|
262
|
+
});
|
|
263
|
+
},
|
|
264
|
+
setTool: function setTool(tool) {
|
|
265
|
+
setWhiteboardTool({
|
|
266
|
+
action: WhiteboardToolAction.TOOL,
|
|
267
|
+
tool: tool
|
|
268
|
+
});
|
|
269
|
+
},
|
|
270
|
+
setShape: function setShape(shape) {
|
|
271
|
+
setWhiteboardTool({
|
|
272
|
+
action: WhiteboardToolAction.SHAPE,
|
|
273
|
+
tool: shape
|
|
274
|
+
});
|
|
275
|
+
},
|
|
276
|
+
setStrokeColor: function setStrokeColor(color) {
|
|
277
|
+
setWhiteboardTool({
|
|
278
|
+
action: WhiteboardToolAction.COLOR,
|
|
279
|
+
tool: color.toString()
|
|
280
|
+
});
|
|
281
|
+
},
|
|
282
|
+
undo: function undo() {
|
|
283
|
+
return setWhiteboardTool({
|
|
284
|
+
action: WhiteboardToolAction.UNDO,
|
|
285
|
+
tool: FcrBoardToolType.NONE
|
|
286
|
+
});
|
|
287
|
+
},
|
|
288
|
+
redo: function redo() {
|
|
289
|
+
return setWhiteboardTool({
|
|
290
|
+
action: WhiteboardToolAction.REDO,
|
|
291
|
+
tool: FcrBoardToolType.NONE
|
|
292
|
+
});
|
|
293
|
+
},
|
|
294
|
+
clean: function clean() {
|
|
295
|
+
return setWhiteboardTool({
|
|
296
|
+
action: WhiteboardToolAction.CLEAR,
|
|
297
|
+
tool: FcrBoardToolType.NONE
|
|
298
|
+
});
|
|
299
|
+
},
|
|
300
|
+
onSave: isBoardShare ? saveWhiteboardDraft : undefined,
|
|
301
|
+
progress: toolbarState.progress,
|
|
302
|
+
setProgress: setProgress
|
|
303
|
+
})]
|
|
304
|
+
})
|
|
281
305
|
});
|
|
282
306
|
});
|
|
@@ -107,6 +107,7 @@ export var FcrUIToastKey = /*#__PURE__*/function (FcrUIToastKey) {
|
|
|
107
107
|
FcrUIToastKey["FMT_WHITEBOARD_TIPS_SHARE_FAILED"] = "fmt_whiteboard_tips_share_failed";
|
|
108
108
|
FcrUIToastKey["FMT_AUDIO_WINDOW_MIC_TURN_ON_ERROR"] = "fmt_audio_window_mic_turn_on_error";
|
|
109
109
|
FcrUIToastKey["FMT_AUDIO_WINDOW_CAMERA_TURN_ON_ERROR"] = "fmt_audio_window_camera_turn_on_error";
|
|
110
|
+
FcrUIToastKey["FMT_SIP_TIPS_ENTER_CORRECT_NUMBER"] = "fmt_SIP_tips_enter_correct_number";
|
|
110
111
|
return FcrUIToastKey;
|
|
111
112
|
}({});
|
|
112
113
|
export var DefaultToastParamsMap = (_DefaultToastParamsMa = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_DefaultToastParamsMa, FcrUIToastKey.ERR_MESSAGE, {
|
|
@@ -314,7 +315,7 @@ export var DefaultToastParamsMap = (_DefaultToastParamsMa = {}, _defineProperty(
|
|
|
314
315
|
type: 'normal'
|
|
315
316
|
}), FcrUIToastKey.FMT_MEETING_TOAST_DISABLED_WAITINGROOM, {
|
|
316
317
|
type: 'normal'
|
|
317
|
-
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_DefaultToastParamsMa, FcrUIToastKey.FMT_SCREENSHARE_TIPS_FAILD_RESELECT, {
|
|
318
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_DefaultToastParamsMa, FcrUIToastKey.FMT_SCREENSHARE_TIPS_FAILD_RESELECT, {
|
|
318
319
|
type: 'error'
|
|
319
320
|
}), FcrUIToastKey.FMT_SCREENSHARE_TIPS_FAILD_SCREENSELECT, {
|
|
320
321
|
type: 'error'
|
|
@@ -326,4 +327,6 @@ export var DefaultToastParamsMap = (_DefaultToastParamsMa = {}, _defineProperty(
|
|
|
326
327
|
type: 'error'
|
|
327
328
|
}), FcrUIToastKey.FMT_AUDIO_WINDOW_CAMERA_TURN_ON_ERROR, {
|
|
328
329
|
type: 'error'
|
|
330
|
+
}), FcrUIToastKey.FMT_SIP_TIPS_ENTER_CORRECT_NUMBER, {
|
|
331
|
+
type: 'error'
|
|
329
332
|
}));
|
|
@@ -16,7 +16,7 @@ var createRoom = /*#__PURE__*/function () {
|
|
|
16
16
|
return _regeneratorRuntime.wrap(function (_context) {
|
|
17
17
|
while (1) switch (_context.prev = _context.next) {
|
|
18
18
|
case 0:
|
|
19
|
-
url = "http://api-solutions-dev.
|
|
19
|
+
url = "http://api-solutions-dev-bj.shengwang.cn/conference/companys/v1/rooms";
|
|
20
20
|
_context.next = 1;
|
|
21
21
|
return fetch(url, {
|
|
22
22
|
headers: {
|
|
@@ -64,7 +64,7 @@ var getUserToken = /*#__PURE__*/function () {
|
|
|
64
64
|
return _regeneratorRuntime.wrap(function (_context2) {
|
|
65
65
|
while (1) switch (_context2.prev = _context2.next) {
|
|
66
66
|
case 0:
|
|
67
|
-
url = "https://api-solutions-
|
|
67
|
+
url = "https://api-solutions-test.shengwang.cn/conference/companys/v1/rooms";
|
|
68
68
|
_context2.next = 1;
|
|
69
69
|
return fetch(url, {
|
|
70
70
|
headers: {
|
|
@@ -144,10 +144,10 @@ var role = 'host';
|
|
|
144
144
|
// },
|
|
145
145
|
// parameters: {
|
|
146
146
|
// rte: {
|
|
147
|
-
// rteIpList: ['http://api-solutions-dev.
|
|
147
|
+
// rteIpList: ['http://api-solutions-dev-bj.shengwang.cn'],
|
|
148
148
|
// },
|
|
149
149
|
// core: {
|
|
150
|
-
// coreIpList: ['http://api-solutions-dev.
|
|
150
|
+
// coreIpList: ['http://api-solutions-dev-bj.shengwang.cn'],
|
|
151
151
|
// },
|
|
152
152
|
// },
|
|
153
153
|
// });
|
|
@@ -92,7 +92,19 @@ export var FcrUIAbilityProviderImpl = /*#__PURE__*/function () {
|
|
|
92
92
|
* 检查当前平台是否支持外呼
|
|
93
93
|
*/
|
|
94
94
|
_defineProperty(this, "isCallOutAbilitySupported", function () {
|
|
95
|
-
var result = _this._abilityControl.isAbilitySupported(FcrAbility.
|
|
95
|
+
var result = _this._abilityControl.isAbilitySupported(FcrAbility.CallOutPstn);
|
|
96
|
+
return result;
|
|
97
|
+
});
|
|
98
|
+
_defineProperty(this, "isCallOutVolteAbilitySupported", function () {
|
|
99
|
+
var result = _this._abilityControl.isAbilitySupported(FcrAbility.CallOutVolte);
|
|
100
|
+
return result;
|
|
101
|
+
});
|
|
102
|
+
_defineProperty(this, "isCallOutH323AbilitySupported", function () {
|
|
103
|
+
var result = _this._abilityControl.isAbilitySupported(FcrAbility.CallOutH323);
|
|
104
|
+
return result;
|
|
105
|
+
});
|
|
106
|
+
_defineProperty(this, "isCallOutSipAbilitySupported", function () {
|
|
107
|
+
var result = _this._abilityControl.isAbilitySupported(FcrAbility.CallOutSip);
|
|
96
108
|
return result;
|
|
97
109
|
});
|
|
98
110
|
this._abilityControl = _abilityControl;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
+
export var FcrUIMouseDetectProviderEmptyImpl = /*#__PURE__*/function () {
|
|
4
|
+
function FcrUIMouseDetectProviderEmptyImpl() {
|
|
5
|
+
_classCallCheck(this, FcrUIMouseDetectProviderEmptyImpl);
|
|
6
|
+
}
|
|
7
|
+
return _createClass(FcrUIMouseDetectProviderEmptyImpl, [{
|
|
8
|
+
key: "isMouseDetectEnabled",
|
|
9
|
+
value: function isMouseDetectEnabled() {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
}, {
|
|
13
|
+
key: "setDisplayId",
|
|
14
|
+
value: function setDisplayId(_displayId) {}
|
|
15
|
+
}, {
|
|
16
|
+
key: "setDetectionPositionOffset",
|
|
17
|
+
value: function setDetectionPositionOffset(_offset) {}
|
|
18
|
+
}, {
|
|
19
|
+
key: "setDetectArea",
|
|
20
|
+
value: function setDetectArea(_areaId, _areaList) {}
|
|
21
|
+
}, {
|
|
22
|
+
key: "getDetectAreas",
|
|
23
|
+
value: function getDetectAreas(_areaId) {
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
}, {
|
|
27
|
+
key: "deleteDetectArea",
|
|
28
|
+
value: function deleteDetectArea(_areaId) {}
|
|
29
|
+
}, {
|
|
30
|
+
key: "addObserver",
|
|
31
|
+
value: function addObserver(_observer) {}
|
|
32
|
+
}, {
|
|
33
|
+
key: "removeObserver",
|
|
34
|
+
value: function removeObserver(_observer) {}
|
|
35
|
+
}, {
|
|
36
|
+
key: "release",
|
|
37
|
+
value: function release() {}
|
|
38
|
+
}]);
|
|
39
|
+
}();
|
|
@@ -119,6 +119,7 @@ export var FcrUIMouseDetectProviderImpl = /*#__PURE__*/function () {
|
|
|
119
119
|
});
|
|
120
120
|
_defineProperty(this, "_isDebug", false);
|
|
121
121
|
_defineProperty(this, "_displayId", null);
|
|
122
|
+
_defineProperty(this, "_macMenuBarOffsetY", 30);
|
|
122
123
|
_defineProperty(this, "_debugWindowObserver", {
|
|
123
124
|
onReady: function onReady() {
|
|
124
125
|
var AreaDebugger = observer(function () {
|
|
@@ -156,9 +157,6 @@ export var FcrUIMouseDetectProviderImpl = /*#__PURE__*/function () {
|
|
|
156
157
|
this._task = AgoraScheduler.shared.addPollingTask(function () {
|
|
157
158
|
_this._detect();
|
|
158
159
|
}, 50);
|
|
159
|
-
if (isMac()) {
|
|
160
|
-
this._task.stop();
|
|
161
|
-
}
|
|
162
160
|
|
|
163
161
|
// 调试时使用,用于查看检测区域
|
|
164
162
|
// this._debug(true);
|
|
@@ -171,6 +169,11 @@ export var FcrUIMouseDetectProviderImpl = /*#__PURE__*/function () {
|
|
|
171
169
|
set: function set(v) {
|
|
172
170
|
_classPrivateFieldSet(_A, this, v);
|
|
173
171
|
}
|
|
172
|
+
}, {
|
|
173
|
+
key: "isMouseDetectEnabled",
|
|
174
|
+
value: function isMouseDetectEnabled() {
|
|
175
|
+
return true;
|
|
176
|
+
}
|
|
174
177
|
}, {
|
|
175
178
|
key: "setDisplayId",
|
|
176
179
|
value: function setDisplayId(displayId) {
|
|
@@ -213,7 +216,10 @@ export var FcrUIMouseDetectProviderImpl = /*#__PURE__*/function () {
|
|
|
213
216
|
}, {
|
|
214
217
|
key: "setDetectionPositionOffset",
|
|
215
218
|
value: function setDetectionPositionOffset(offset) {
|
|
216
|
-
this._detectionOffset =
|
|
219
|
+
this._detectionOffset = {
|
|
220
|
+
x: offset.x,
|
|
221
|
+
y: offset.y + (isMac() ? this._macMenuBarOffsetY : 0)
|
|
222
|
+
};
|
|
217
223
|
}
|
|
218
224
|
}, {
|
|
219
225
|
key: "addObserver",
|
|
@@ -282,6 +288,9 @@ export var FcrUIMouseDetectProviderImpl = /*#__PURE__*/function () {
|
|
|
282
288
|
window.show();
|
|
283
289
|
window.setIgnoreMouseEvents(true);
|
|
284
290
|
window.setAlwaysOnTop(true, 'screen-saver', WindowRelativeLevel.MOUSE_DETECT_DEBUGGER_LEVEL);
|
|
291
|
+
window.setVisibleOnAllWorkspaces(true, {
|
|
292
|
+
visibleOnFullScreen: true
|
|
293
|
+
});
|
|
285
294
|
window.addObserver(this._debugWindowObserver);
|
|
286
295
|
} else {
|
|
287
296
|
this._isDebug = false;
|