fcr-ui-scene-mobile 3.8.1 → 3.9.0-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/common/security-store.d.ts +3 -3
- package/lib/common/setting-store.js +1 -1
- package/lib/creator.js +2 -2
- package/lib/modules/action-bar/store.d.ts +2 -2
- package/lib/modules/action-bar/store.js +1 -2
- package/lib/modules/chat/message-list.js +1 -1
- package/lib/modules/chat/view.js +1 -1
- package/lib/modules/state-bar/meeting-detail/meeting-info/copy.js +1 -1
- package/lib/modules/state-bar/meeting-detail/meeting-info/index.js +9 -2
- package/lib/modules/state-bar/view.js +2 -4
- package/lib/plugins/module-dev-plugin.js +62 -81
- package/lib/translations/enUS.d.ts +10 -152
- package/lib/translations/enUS.js +44 -225
- package/lib/translations/zhCN.d.ts +10 -152
- package/lib/translations/zhCN.js +37 -218
- package/lib/utilities/logger.d.ts +1 -2
- package/lib/utilities/logger.js +8 -32
- package/lib/utilities/meeting-detail.d.ts +11 -0
- package/lib/utilities/{meeting-detail-message.js → meeting-detail.js} +34 -9
- package/lib/utilities/package-info.d.ts +1 -2
- package/lib/utilities/package-info.js +5 -6
- package/lib/utilities/tools.d.ts +1 -25
- package/lib/utilities/tools.js +20 -159
- package/package.json +6 -7
- package/lib/utilities/copyText.d.ts +0 -2
- package/lib/utilities/copyText.js +0 -43
- package/lib/utilities/hooks.d.ts +0 -14
- package/lib/utilities/hooks.js +0 -100
- package/lib/utilities/meeting-detail-message.d.ts +0 -2
- package/lib/utilities/mute-action.d.ts +0 -4
- package/lib/utilities/mute-action.js +0 -48
- package/lib/utilities/parameters.d.ts +0 -7
- package/lib/utilities/parameters.js +0 -20
- package/lib/utilities/regex.d.ts +0 -1
- package/lib/utilities/regex.js +0 -14
- package/lib/utilities/useNamespace.d.ts +0 -15
- package/lib/utilities/useNamespace.js +0 -66
|
@@ -95,8 +95,8 @@ export declare class FcrSecurityStore {
|
|
|
95
95
|
/** 当前是否是多行水印 */
|
|
96
96
|
isWatermarkMultiRow: () => boolean;
|
|
97
97
|
getAllowedOperations(targetUserRole: FcrUserRole, _isSelf: boolean): string[];
|
|
98
|
-
allowShare(state: FcrSharePermissionState): Promise<
|
|
99
|
-
setAllowWriteBoard(state: FcrSharePermissionState): Promise<
|
|
98
|
+
allowShare(state: FcrSharePermissionState): Promise<number>;
|
|
99
|
+
setAllowWriteBoard(state: FcrSharePermissionState): Promise<number>;
|
|
100
100
|
muteAll: () => void;
|
|
101
101
|
unmuteAll: () => void;
|
|
102
102
|
setLockRoomEnabled: (enable: boolean) => void;
|
|
@@ -116,5 +116,5 @@ export declare class FcrSecurityStore {
|
|
|
116
116
|
private _handleSecurityUpdated;
|
|
117
117
|
permitPrivateChat(userId: string): boolean;
|
|
118
118
|
private _removeReactions;
|
|
119
|
-
setAllowWaterMark(state: boolean, lineType?: FcrLineType): Promise<
|
|
119
|
+
setAllowWaterMark(state: boolean, lineType?: FcrLineType): Promise<number>;
|
|
120
120
|
}
|
|
@@ -204,7 +204,7 @@ var SettingStore = exports.SettingStore = /*#__PURE__*/function () {
|
|
|
204
204
|
displayedMaxAttendees: 16,
|
|
205
205
|
autoAdjustmentSpeakerVolume: true,
|
|
206
206
|
autoAdjustmentMicrophoneVolume: true,
|
|
207
|
-
noiseReduce: _fcrCore.FcrAiDenoiseLevel.
|
|
207
|
+
noiseReduce: _fcrCore.FcrAiDenoiseLevel.HIGH,
|
|
208
208
|
recordingPath: '',
|
|
209
209
|
videoHD: true,
|
|
210
210
|
videoLowLight: false,
|
package/lib/creator.js
CHANGED
|
@@ -50,7 +50,7 @@ var FcrUISceneCreator = exports.FcrUISceneCreator = /*#__PURE__*/function () {
|
|
|
50
50
|
cameraExpectedOff: false
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
var config = _objectSpread(_objectSpread({}, this._config), {}, {
|
|
53
|
+
var config = new _fcrCore.FcrCoreEngineConfig(_objectSpread(_objectSpread({}, this._config), {}, {
|
|
54
54
|
region: _type.FcrRegion.CN,
|
|
55
55
|
dualCameraVideoStreamConfig: {
|
|
56
56
|
highVideoEncoderConfig: _defaultConfig.cameraVideoHighStreamEncoderLowConfig,
|
|
@@ -62,7 +62,7 @@ var FcrUISceneCreator = exports.FcrUISceneCreator = /*#__PURE__*/function () {
|
|
|
62
62
|
lowVideoEncoderConfig: _defaultConfig.screenCaptureHighStreamEncoderConfig,
|
|
63
63
|
enableDualStreamMode: false
|
|
64
64
|
}
|
|
65
|
-
});
|
|
65
|
+
}));
|
|
66
66
|
var engine = new _fcrCore.FcrCoreEngine(config);
|
|
67
67
|
|
|
68
68
|
// @ts-ignore
|
|
@@ -134,8 +134,8 @@ export default class ActionBarStore {
|
|
|
134
134
|
enableCamera(enable: boolean): void;
|
|
135
135
|
enableMicrophone(enable: boolean): void;
|
|
136
136
|
closeSpeaker(): void;
|
|
137
|
-
setAllowBoardWrite(): Promise<
|
|
138
|
-
setAllowScreenShare(): Promise<
|
|
137
|
+
setAllowBoardWrite(): Promise<number>;
|
|
138
|
+
setAllowScreenShare(): Promise<number>;
|
|
139
139
|
closeBoard(): void;
|
|
140
140
|
assignHost(user: FcrUserInfo): void;
|
|
141
141
|
leave(): void;
|
|
@@ -64,7 +64,7 @@ var _mobxReact = require("mobx-react");
|
|
|
64
64
|
var _throttle = _interopRequireDefault(require("lodash/throttle"));
|
|
65
65
|
var _multiSelect = require("agora-ui-foundation/lib/components/multi-select");
|
|
66
66
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
67
|
-
var _copyText = require("
|
|
67
|
+
var _copyText = require("agora-ui-foundation/lib/utilities/copy-text");
|
|
68
68
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
69
69
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
70
70
|
var _jsxRuntime = require("react/jsx-runtime");
|
package/lib/modules/chat/view.js
CHANGED
|
@@ -55,7 +55,7 @@ var _chatBar = require("./chat-bar");
|
|
|
55
55
|
var _type = require("../../type");
|
|
56
56
|
var _type2 = require("fcr-core/lib/type");
|
|
57
57
|
var _util = require("./util");
|
|
58
|
-
var _copyText = require("
|
|
58
|
+
var _copyText = require("agora-ui-foundation/lib/utilities/copy-text");
|
|
59
59
|
var _chatManager = require("agora-ui-foundation/lib/components/chat-manager");
|
|
60
60
|
var _type3 = require("fcr-core/lib/room-control/chatroom-control/type");
|
|
61
61
|
var _fcrCore = require("fcr-core");
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.handleCopyMeetingPassword = exports.handleCopyMeetingInviteLink = exports.handleCopyMeetingId = exports.handleCopyMeetingDetail = void 0;
|
|
8
8
|
var _toast = require("agora-ui-foundation/lib/components/toast");
|
|
9
|
-
var _copyText = require("
|
|
9
|
+
var _copyText = require("agora-ui-foundation/lib/utilities/copy-text");
|
|
10
10
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
11
11
|
var handleCopyMeetingId = exports.handleCopyMeetingId = function handleCopyMeetingId(meetingId) {
|
|
12
12
|
if (!meetingId) {
|
|
@@ -19,7 +19,7 @@ var _globalContext = require("../../../../common/global-context");
|
|
|
19
19
|
var _mobxReact = require("mobx-react");
|
|
20
20
|
var _copy = require("./copy");
|
|
21
21
|
var _tools = require("../../../../utilities/tools");
|
|
22
|
-
var
|
|
22
|
+
var _meetingDetail = require("../../../../utilities/meeting-detail");
|
|
23
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
24
|
var FcrMobileCopyIcon = function FcrMobileCopyIcon(_ref) {
|
|
25
25
|
var onClick = _ref.onClick;
|
|
@@ -51,7 +51,14 @@ var FcrMobileMeetingInfo = exports.FcrMobileMeetingInfo = (0, _mobxReact.observe
|
|
|
51
51
|
var isLockRoomEnabled = securityStore.isLockRoomEnabled;
|
|
52
52
|
var shareLink = getShareLink();
|
|
53
53
|
var displayMeetingId = (0, _tools.renderMeetingId)(meetingId, (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId) || '');
|
|
54
|
-
var detailText = (0,
|
|
54
|
+
var detailText = (0, _meetingDetail.generateMeetingDetail)({
|
|
55
|
+
userName: (localUser === null || localUser === void 0 ? void 0 : localUser.userName) || '',
|
|
56
|
+
roomName: (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomName) || '',
|
|
57
|
+
invitationTime: (0, _meetingDetail.generateMeetingDuration)((scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.startTime) || 0, (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.duration) || 0),
|
|
58
|
+
inviteLink: shareLink,
|
|
59
|
+
displayMeetingId: meetingId || (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId) || '',
|
|
60
|
+
password: (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.password) || ''
|
|
61
|
+
});
|
|
55
62
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
56
63
|
className: "fcr-mobile-meeting-detail-theme",
|
|
57
64
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -64,12 +64,10 @@ var MeetingTimeText = exports.MeetingTimeText = (0, _mobxReact.observer)(functio
|
|
|
64
64
|
duration: (scheduleInfoDuration || 0) * 1000,
|
|
65
65
|
enterTime: localStorage.getItem("enter-room-".concat(roomId))
|
|
66
66
|
}),
|
|
67
|
-
totalHourText = _useMeetingTime.totalHourText,
|
|
68
|
-
totalMinuteText = _useMeetingTime.totalMinuteText,
|
|
69
67
|
meetingTime = _useMeetingTime.meetingTime;
|
|
70
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
68
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
71
69
|
className: "fcr-top-action-center-lasttime",
|
|
72
|
-
children:
|
|
70
|
+
children: meetingTime
|
|
73
71
|
});
|
|
74
72
|
});
|
|
75
73
|
var FullScreenLockConfirmDialogContent = function FullScreenLockConfirmDialogContent(_ref3) {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
4
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
5
9
|
require("core-js/modules/es.date.now.js");
|
|
6
10
|
require("core-js/modules/es.date.to-json.js");
|
|
@@ -8,7 +12,6 @@ require("core-js/modules/es.json.stringify.js");
|
|
|
8
12
|
require("core-js/modules/es.object.to-string.js");
|
|
9
13
|
require("core-js/modules/es.promise.js");
|
|
10
14
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
-
var _fcrCore = require("fcr-core");
|
|
12
15
|
/**
|
|
13
16
|
* 创建房间
|
|
14
17
|
* @param roomName
|
|
@@ -105,83 +108,61 @@ var getUserToken = /*#__PURE__*/function () {
|
|
|
105
108
|
var roomId = 'test-room';
|
|
106
109
|
var userId = "test-user-".concat(Date.now());
|
|
107
110
|
var role = 'host';
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
},
|
|
167
|
-
core: {
|
|
168
|
-
coreIpList: ['http://api-solutions-dev.bj2.agoralab.co']
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
window.__DEV_ROOM_ID__ = roomId;
|
|
173
|
-
window.__DEV_USER_ID__ = userId;
|
|
174
|
-
window.__DEV_USER_ROLE__ = role;
|
|
175
|
-
window.__DEV_USER_TOKEN__ = token;
|
|
176
|
-
window.__DEV_APP_ID__ = appId;
|
|
177
|
-
}));
|
|
178
|
-
case 1:
|
|
179
|
-
case "end":
|
|
180
|
-
return _context3.stop();
|
|
181
|
-
}
|
|
182
|
-
}, _callee3);
|
|
183
|
-
}));
|
|
184
|
-
return function (_x6) {
|
|
185
|
-
return _ref3.apply(this, arguments);
|
|
186
|
-
};
|
|
187
|
-
}());
|
|
111
|
+
|
|
112
|
+
// window.__DEV_ENGINE_IS_READY__ = createRoom(roomId).then(async (roomId) => {
|
|
113
|
+
// return getUserToken(roomId, userId, userId, role).then(({ token, appId }) => {
|
|
114
|
+
// window.__DEV_ENGINE__ = new FcrCoreEngine({
|
|
115
|
+
// appId: appId,
|
|
116
|
+
// token: token,
|
|
117
|
+
// region: FcrRegion.CN,
|
|
118
|
+
// userId: userId,
|
|
119
|
+
// dualCameraVideoStreamConfig: {
|
|
120
|
+
// highVideoEncoderConfig: {
|
|
121
|
+
// dimensions: { width: 640, height: 480 },
|
|
122
|
+
// frameRate: 15,
|
|
123
|
+
// bitrate: 800,
|
|
124
|
+
// // isMirror: false,
|
|
125
|
+
// },
|
|
126
|
+
// lowVideoEncoderConfig: {
|
|
127
|
+
// dimensions: { width: 320, height: 240 },
|
|
128
|
+
// frameRate: 15,
|
|
129
|
+
// bitrate: 400,
|
|
130
|
+
// // isMirror: false,
|
|
131
|
+
// },
|
|
132
|
+
// enableDualStreamMode: false,
|
|
133
|
+
// },
|
|
134
|
+
// dualScreenVideoStreamConfig: {
|
|
135
|
+
// highVideoEncoderConfig: {
|
|
136
|
+
// dimensions: { width: 640, height: 480 },
|
|
137
|
+
// frameRate: 15,
|
|
138
|
+
// bitrate: 800,
|
|
139
|
+
// // isMirror: false,
|
|
140
|
+
// },
|
|
141
|
+
// lowVideoEncoderConfig: {
|
|
142
|
+
// dimensions: {
|
|
143
|
+
// width: 320,
|
|
144
|
+
// height: 240,
|
|
145
|
+
// },
|
|
146
|
+
// frameRate: 15,
|
|
147
|
+
// bitrate: 400,
|
|
148
|
+
// // isMirror: false,
|
|
149
|
+
// },
|
|
150
|
+
// enableDualStreamMode: false,
|
|
151
|
+
// },
|
|
152
|
+
// parameters: {
|
|
153
|
+
// rte: {
|
|
154
|
+
// rteIpList: ['http://api-solutions-dev.bj2.agoralab.co'],
|
|
155
|
+
// },
|
|
156
|
+
// core: {
|
|
157
|
+
// coreIpList: ['http://api-solutions-dev.bj2.agoralab.co'],
|
|
158
|
+
// },
|
|
159
|
+
// },
|
|
160
|
+
// });
|
|
161
|
+
|
|
162
|
+
// window.__DEV_ROOM_ID__ = roomId;
|
|
163
|
+
// window.__DEV_USER_ID__ = userId;
|
|
164
|
+
// window.__DEV_USER_ROLE__ = role;
|
|
165
|
+
// window.__DEV_USER_TOKEN__ = token;
|
|
166
|
+
// window.__DEV_APP_ID__ = appId;
|
|
167
|
+
// });
|
|
168
|
+
// });
|