fcr-ui-scene 3.9.0 → 3.9.1-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/creator/provider-initializer.browser.js +2 -1
- package/lib/creator/provider-initializer.electron.js +11 -4
- package/lib/electron/injections.d.ts +1 -0
- package/lib/electron/injections.js +4 -1
- package/lib/electron/preload.js +1 -0
- package/lib/modules/action-bar/main-scene/store.base.d.ts +1 -0
- package/lib/modules/action-bar/main-scene/store.base.js +5 -0
- package/lib/modules/audio-stream/index.d.ts +2 -0
- package/lib/modules/audio-stream/index.js +33 -1
- package/lib/modules/chat/index.js +1 -1
- package/lib/modules/chat/store.d.ts +1 -1
- package/lib/modules/chat/store.js +4 -2
- package/lib/modules/components/device-control/store.base.d.ts +1 -0
- package/lib/modules/components/device-control/store.base.js +22 -3
- package/lib/modules/components/leave-meeting/index.js +3 -2
- package/lib/modules/components/leave-meeting/main-scene/store.d.ts +1 -0
- package/lib/modules/components/leave-meeting/main-scene/store.js +6 -1
- package/lib/modules/components/leave-meeting/store.base.d.ts +1 -0
- package/lib/modules/components/leave-meeting/store.base.js +1 -1
- package/lib/modules/components/leave-meeting/waiting-scene/store.d.ts +1 -0
- package/lib/modules/components/leave-meeting/waiting-scene/store.js +6 -1
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +7 -10
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +2 -2
- package/lib/modules/components/member-window/components/member-actions/index.js +0 -7
- package/lib/modules/components/member-window/components/member-actions/store.js +1 -1
- package/lib/modules/components/member-window/index.js +1 -1
- package/lib/modules/components/tab-frame/index.css +12 -1
- package/lib/modules/components/tab-frame/index.js +4 -1
- package/lib/modules/control-bar/components/share-state-nav/index.js +1 -3
- package/lib/modules/control-bar/mouse-event-bridge.d.ts +23 -0
- package/lib/modules/control-bar/mouse-event-bridge.js +87 -0
- package/lib/modules/control-bar/store.d.ts +1 -1
- package/lib/modules/control-bar/store.js +10 -27
- package/lib/modules/control-bar/type.d.ts +0 -1
- package/lib/modules/control-bar/view.js +9 -16
- package/lib/modules/dialog/dialogs/connection-gateway/tabs.js +3 -2
- package/lib/modules/dialog/dialogs/invite/index.js +6 -24
- package/lib/modules/invite/components/copy-info.css +72 -0
- package/lib/modules/invite/components/copy-info.d.ts +3 -0
- package/lib/modules/invite/components/copy-info.js +144 -0
- package/lib/modules/invite/components/pstn-invite.js +3 -15
- package/lib/modules/invite/components/voip-invite.js +10 -1
- package/lib/modules/invite/enums.d.ts +3 -1
- package/lib/modules/invite/enums.js +2 -0
- package/lib/modules/invite/store.d.ts +4 -1
- package/lib/modules/invite/store.js +37 -13
- package/lib/modules/invite/view.js +41 -20
- package/lib/modules/layout/store.base.d.ts +2 -1
- package/lib/modules/layout/store.base.js +20 -23
- package/lib/modules/participant/components/confirm-input/index.css +67 -1
- package/lib/modules/participant/components/confirm-input/index.js +16 -13
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +4 -0
- package/lib/modules/participant/store.base.d.ts +1 -0
- package/lib/modules/participant/store.base.js +34 -7
- package/lib/modules/pc-audio-connect/main-scene/store.d.ts +2 -0
- package/lib/modules/pc-audio-connect/main-scene/store.js +12 -2
- package/lib/modules/pc-audio-connect/view.js +4 -2
- package/lib/modules/phone-audio-connect/store.d.ts +6 -4
- package/lib/modules/phone-audio-connect/store.js +12 -1
- package/lib/modules/phone-audio-connect/view.js +6 -4
- package/lib/modules/secondary-window/index.js +2 -2
- package/lib/modules/secondary-window/store.d.ts +3 -0
- package/lib/modules/secondary-window/store.js +16 -1
- package/lib/modules/secondary-window/view.js +96 -72
- package/lib/modules/toast-manager/type.d.ts +2 -1
- package/lib/modules/toast-manager/type.js +4 -1
- package/lib/plugins/module-dev-plugin.js +4 -4
- package/lib/providers/ability-provider.d.ts +15 -0
- package/lib/providers/ability-provider.js +13 -1
- package/lib/providers/mouse-detect/provider.d.ts +2 -0
- package/lib/providers/mouse-detect/provider.empty.d.ts +14 -0
- package/lib/providers/mouse-detect/provider.empty.js +47 -0
- package/lib/providers/mouse-detect/provider.js +13 -4
- package/lib/providers/mouse-detect/type.d.ts +2 -0
- package/lib/providers/phone-audio-provider.d.ts +31 -5
- package/lib/providers/phone-audio-provider.js +83 -22
- package/lib/runtime.d.ts +1 -0
- package/lib/scenes/main-scene.js +2 -1
- package/lib/shared-data/chat-data.d.ts +19 -0
- package/lib/shared-data/chat-data.js +54 -7
- package/lib/shared-data/member-data.d.ts +9 -1
- package/lib/shared-data/member-data.js +46 -17
- package/lib/shared-data/video-window.js +8 -4
- package/lib/translations/enUS.d.ts +245 -1
- package/lib/translations/enUS.js +247 -3
- package/lib/translations/zhCN.d.ts +245 -1
- package/lib/translations/zhCN.js +246 -2
- package/lib/utilities/os.d.ts +1 -0
- package/lib/utilities/os.js +15 -0
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +7 -1
- package/lib-es/creator/provider-initializer.browser.js +2 -1
- package/lib-es/creator/provider-initializer.electron.js +9 -2
- package/lib-es/electron/injections.js +3 -0
- package/lib-es/electron/preload.js +2 -1
- package/lib-es/modules/action-bar/main-scene/store.base.js +5 -0
- package/lib-es/modules/audio-stream/index.js +33 -1
- package/lib-es/modules/chat/index.js +1 -1
- package/lib-es/modules/chat/store.js +4 -2
- package/lib-es/modules/components/device-control/store.base.js +22 -3
- package/lib-es/modules/components/leave-meeting/index.js +3 -2
- package/lib-es/modules/components/leave-meeting/main-scene/store.js +6 -1
- package/lib-es/modules/components/leave-meeting/store.base.js +1 -1
- package/lib-es/modules/components/leave-meeting/waiting-scene/store.js +6 -1
- package/lib-es/modules/components/member-window/components/member-actions/components/icon-status.js +7 -10
- package/lib-es/modules/components/member-window/components/member-actions/components/more-actions.js +2 -2
- package/lib-es/modules/components/member-window/components/member-actions/index.js +0 -7
- package/lib-es/modules/components/member-window/components/member-actions/store.js +1 -1
- package/lib-es/modules/components/member-window/index.js +1 -1
- package/lib-es/modules/components/tab-frame/index.css +12 -1
- package/lib-es/modules/components/tab-frame/index.js +4 -1
- package/lib-es/modules/control-bar/components/share-state-nav/index.js +1 -3
- package/lib-es/modules/control-bar/mouse-event-bridge.js +79 -0
- package/lib-es/modules/control-bar/store.js +11 -28
- package/lib-es/modules/control-bar/view.js +9 -16
- package/lib-es/modules/dialog/dialogs/connection-gateway/tabs.js +3 -2
- package/lib-es/modules/dialog/dialogs/invite/index.js +6 -24
- package/lib-es/modules/invite/components/copy-info.css +72 -0
- package/lib-es/modules/invite/components/copy-info.js +137 -0
- package/lib-es/modules/invite/components/pstn-invite.js +3 -15
- package/lib-es/modules/invite/components/voip-invite.js +10 -1
- package/lib-es/modules/invite/enums.js +2 -0
- package/lib-es/modules/invite/store.js +38 -14
- package/lib-es/modules/invite/view.js +43 -22
- package/lib-es/modules/layout/store.base.js +20 -23
- package/lib-es/modules/participant/components/confirm-input/index.css +67 -1
- package/lib-es/modules/participant/components/confirm-input/index.js +16 -13
- package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/index.css +4 -0
- package/lib-es/modules/participant/store.base.js +34 -7
- package/lib-es/modules/pc-audio-connect/main-scene/store.js +12 -2
- package/lib-es/modules/pc-audio-connect/view.js +4 -2
- package/lib-es/modules/phone-audio-connect/store.js +12 -1
- package/lib-es/modules/phone-audio-connect/view.js +6 -4
- package/lib-es/modules/secondary-window/index.js +2 -2
- package/lib-es/modules/secondary-window/store.js +16 -1
- package/lib-es/modules/secondary-window/view.js +97 -73
- package/lib-es/modules/toast-manager/type.js +4 -1
- package/lib-es/plugins/module-dev-plugin.js +4 -4
- package/lib-es/providers/ability-provider.js +13 -1
- package/lib-es/providers/mouse-detect/provider.empty.js +39 -0
- package/lib-es/providers/mouse-detect/provider.js +13 -4
- package/lib-es/providers/phone-audio-provider.js +109 -48
- package/lib-es/scenes/main-scene.js +3 -2
- package/lib-es/shared-data/chat-data.js +55 -8
- package/lib-es/shared-data/member-data.js +46 -17
- package/lib-es/shared-data/video-window.js +8 -4
- package/lib-es/translations/enUS.js +247 -3
- package/lib-es/translations/zhCN.js +246 -2
- package/lib-es/utilities/os.js +8 -0
- package/lib-es/utilities/renderer.js +7 -1
- package/lib-es/utilities/shared-storage.js +2 -2
- package/package.json +6 -6
- package/lib/modules/connection-gateway/components/computer/index.css +0 -12
- package/lib/modules/connection-gateway/components/computer/index.d.ts +0 -3
- package/lib/modules/connection-gateway/components/computer/index.js +0 -66
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +0 -36
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +0 -10
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +0 -78
- package/lib/modules/connection-gateway/components/phone/components/calling/index.css +0 -72
- package/lib/modules/connection-gateway/components/phone/components/calling/index.d.ts +0 -7
- package/lib/modules/connection-gateway/components/phone/components/calling/index.js +0 -58
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +0 -10
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.d.ts +0 -5
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.js +0 -24
- package/lib/modules/connection-gateway/components/phone/components/useing/index.css +0 -46
- package/lib/modules/connection-gateway/components/phone/components/useing/index.d.ts +0 -3
- package/lib/modules/connection-gateway/components/phone/components/useing/index.js +0 -36
- package/lib/modules/connection-gateway/components/phone/index.css +0 -49
- package/lib/modules/connection-gateway/components/phone/index.d.ts +0 -3
- package/lib/modules/connection-gateway/components/phone/index.js +0 -185
- package/lib/modules/connection-gateway/enums.d.ts +0 -4
- package/lib/modules/connection-gateway/enums.js +0 -12
- package/lib/modules/connection-gateway/index.css +0 -6
- package/lib/modules/connection-gateway/index.d.ts +0 -10
- package/lib/modules/connection-gateway/index.js +0 -78
- package/lib/modules/connection-gateway/store.d.ts +0 -68
- package/lib/modules/connection-gateway/store.js +0 -713
- package/lib/modules/connection-gateway/types.d.ts +0 -8
- package/lib/modules/connection-gateway/types.js +0 -6
- package/lib/modules/connection-gateway/view.d.ts +0 -1
- package/lib/modules/connection-gateway/view.js +0 -39
- package/lib-es/modules/connection-gateway/components/computer/index.css +0 -12
- package/lib-es/modules/connection-gateway/components/computer/index.js +0 -59
- package/lib-es/modules/connection-gateway/components/phone/components/callinfo/index.css +0 -36
- package/lib-es/modules/connection-gateway/components/phone/components/callinfo/index.js +0 -71
- package/lib-es/modules/connection-gateway/components/phone/components/calling/index.css +0 -72
- package/lib-es/modules/connection-gateway/components/phone/components/calling/index.js +0 -51
- package/lib-es/modules/connection-gateway/components/phone/components/remeber/index.css +0 -10
- package/lib-es/modules/connection-gateway/components/phone/components/remeber/index.js +0 -17
- package/lib-es/modules/connection-gateway/components/phone/components/useing/index.css +0 -46
- package/lib-es/modules/connection-gateway/components/phone/components/useing/index.js +0 -29
- package/lib-es/modules/connection-gateway/components/phone/index.css +0 -49
- package/lib-es/modules/connection-gateway/components/phone/index.js +0 -177
- package/lib-es/modules/connection-gateway/enums.js +0 -5
- package/lib-es/modules/connection-gateway/index.css +0 -6
- package/lib-es/modules/connection-gateway/index.js +0 -60
- package/lib-es/modules/connection-gateway/store.js +0 -707
- package/lib-es/modules/connection-gateway/types.js +0 -1
- package/lib-es/modules/connection-gateway/view.js +0 -31
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const View: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.View = void 0;
|
|
9
|
-
require("core-js/modules/es.array.concat.js");
|
|
10
|
-
var _react = require("react");
|
|
11
|
-
var _computer = _interopRequireDefault(require("./components/computer"));
|
|
12
|
-
var _phone = _interopRequireDefault(require("./components/phone"));
|
|
13
|
-
var _mobxReact = require("mobx-react");
|
|
14
|
-
var _store = require("./store");
|
|
15
|
-
var _tabFrame = _interopRequireDefault(require("../components/tab-frame"));
|
|
16
|
-
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
17
|
-
var _type = require("../../type");
|
|
18
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
20
|
-
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
21
|
-
activeTabKey = _useContext.activeTabKey,
|
|
22
|
-
connectType = _useContext.connectType,
|
|
23
|
-
hasOwnPstnStream = _useContext.hasOwnPstnStream,
|
|
24
|
-
onTabChange = _useContext.onTabChange;
|
|
25
|
-
var transI18n = (0, _i18n.useI18n)();
|
|
26
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tabFrame["default"], {
|
|
27
|
-
activeKey: activeTabKey,
|
|
28
|
-
onChange: onTabChange,
|
|
29
|
-
tabs: [{
|
|
30
|
-
label: "".concat(transI18n('fmt_PSTN_label_pcaudio')).concat(connectType === _type.FcrUIConnectType.COMPUTER ? "-".concat(transI18n('fmt_PSTN_status_connected')) : ''),
|
|
31
|
-
key: 'computer',
|
|
32
|
-
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_computer["default"], {})
|
|
33
|
-
}, {
|
|
34
|
-
label: "".concat(transI18n('fmt_pstn_options_phoneaudio')).concat(hasOwnPstnStream ? "-".concat(transI18n('fmt_PSTN_status_connected')) : ''),
|
|
35
|
-
key: 'phone',
|
|
36
|
-
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_phone["default"], {})
|
|
37
|
-
}]
|
|
38
|
-
});
|
|
39
|
-
});
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { FcrButton } from 'agora-ui-foundation/lib/components/button';
|
|
2
|
-
import { FcrToolTip } from 'agora-ui-foundation/lib/components/tooltip';
|
|
3
|
-
import { observer } from 'mobx-react';
|
|
4
|
-
import { useContext } from 'react';
|
|
5
|
-
import { StoreContext } from '../../store';
|
|
6
|
-
import './index.css';
|
|
7
|
-
import { useI18n } from 'agora-ui-foundation/lib/i18n';
|
|
8
|
-
import { FcrUIConnectType } from '../../../../type';
|
|
9
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
var ConnectFromComputer = observer(function () {
|
|
11
|
-
var _useContext = useContext(StoreContext),
|
|
12
|
-
openAudioSettings = _useContext.openAudioSettings,
|
|
13
|
-
hasPstnStream = _useContext.hasPstnStream,
|
|
14
|
-
connectInfo = _useContext.connectInfo,
|
|
15
|
-
outgoingCall = _useContext.outgoingCall,
|
|
16
|
-
hasOwnPstnStream = _useContext.hasOwnPstnStream,
|
|
17
|
-
hasNeedMergedStream = _useContext.hasNeedMergedStream,
|
|
18
|
-
joinAudioByComputer = _useContext.joinAudioByComputer,
|
|
19
|
-
stopAudioByComputer = _useContext.stopAudioByComputer,
|
|
20
|
-
connectType = _useContext.connectType;
|
|
21
|
-
var transI18n = useI18n();
|
|
22
|
-
return /*#__PURE__*/_jsxs("div", {
|
|
23
|
-
className: "connector-computer",
|
|
24
|
-
children: [connectType === FcrUIConnectType.NONE && /*#__PURE__*/_jsx(FcrButton, {
|
|
25
|
-
size: "XS",
|
|
26
|
-
block: true,
|
|
27
|
-
className: "var(--fcrcornerradiusround) fcr_ui_scene_ramp_brand6",
|
|
28
|
-
onClick: joinAudioByComputer,
|
|
29
|
-
children: transI18n('fmt_pstn_label_accessmethodPC')
|
|
30
|
-
}), hasPstnStream && !outgoingCall && !hasOwnPstnStream && hasNeedMergedStream && /*#__PURE__*/_jsx("div", {
|
|
31
|
-
className: "connector-phone-alert",
|
|
32
|
-
children: transI18n('fmt_pstn_label_alreadyin', {
|
|
33
|
-
reason1: connectInfo === null || connectInfo === void 0 ? void 0 : connectInfo.phoneUserId
|
|
34
|
-
})
|
|
35
|
-
}), connectType === FcrUIConnectType.COMPUTER && /*#__PURE__*/_jsx(FcrButton, {
|
|
36
|
-
size: "XS",
|
|
37
|
-
styleType: "danger",
|
|
38
|
-
block: true,
|
|
39
|
-
className: "var(--fcrcornerradiusround)",
|
|
40
|
-
onClick: stopAudioByComputer,
|
|
41
|
-
children: transI18n('fmt_pstn_button_PCaudiostop')
|
|
42
|
-
}), connectType === FcrUIConnectType.PHONE && hasOwnPstnStream && /*#__PURE__*/_jsx(FcrToolTip, {
|
|
43
|
-
content: transI18n('fmt_pstn_tips_alreadyphone'),
|
|
44
|
-
children: /*#__PURE__*/_jsx(FcrButton, {
|
|
45
|
-
size: "XS",
|
|
46
|
-
block: true,
|
|
47
|
-
type: "secondary-bordered",
|
|
48
|
-
children: transI18n('fmt_pstn_status_unconnectted')
|
|
49
|
-
})
|
|
50
|
-
}), /*#__PURE__*/_jsx(FcrButton, {
|
|
51
|
-
size: "XS",
|
|
52
|
-
block: true,
|
|
53
|
-
type: "link",
|
|
54
|
-
onClick: openAudioSettings,
|
|
55
|
-
children: transI18n('fmt_pstn_button_devicetest')
|
|
56
|
-
})]
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
export default ConnectFromComputer;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
.connector-phone-call_info {
|
|
2
|
-
color: var(--fcr_ui_scene_icontext1);
|
|
3
|
-
margin-top: 8px;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.connector-phone-call_info.disabled {
|
|
7
|
-
color: var(--fcr_ui_scene_icontext3);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.connector-phone-call_info .connector-phone-call_info-item:first-child {
|
|
11
|
-
margin-bottom: 11px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.connector-phone-call_info-item {
|
|
15
|
-
height: 32px;
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
font-size: 14px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.connector-phone-call_info .fcr-select {
|
|
22
|
-
width: 180px;
|
|
23
|
-
border-color: var(--fcr_web_ui_scene_line4);
|
|
24
|
-
background: var(--fcr_ui_scene_input2);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.connector-phone-call_info-label {
|
|
28
|
-
width: 97px;
|
|
29
|
-
display: block;
|
|
30
|
-
text-align: right;
|
|
31
|
-
margin-right: 12px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.connector-phone-call_info.disabled .fcr-select .fcr-select__selected {
|
|
35
|
-
color: var(--fcr_ui_scene_icontext3);
|
|
36
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import "core-js/modules/es.array.map.js";
|
|
2
|
-
import "core-js/modules/es.array.slice.js";
|
|
3
|
-
import "core-js/modules/es.object.to-string.js";
|
|
4
|
-
import "core-js/modules/esnext.iterator.constructor.js";
|
|
5
|
-
import "core-js/modules/esnext.iterator.map.js";
|
|
6
|
-
import { FcrSelect } from 'agora-ui-foundation/lib/components/select';
|
|
7
|
-
import './index.css';
|
|
8
|
-
import { useI18n } from 'agora-ui-foundation/lib/i18n';
|
|
9
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
function ConnectionInfo(props) {
|
|
11
|
-
var _info$phoneNumberList;
|
|
12
|
-
var disabled = props.disabled,
|
|
13
|
-
value = props.value,
|
|
14
|
-
onChange = props.onChange,
|
|
15
|
-
info = props.info;
|
|
16
|
-
var transI18n = useI18n();
|
|
17
|
-
return /*#__PURE__*/_jsx("div", {
|
|
18
|
-
className: "connector-phone_inner",
|
|
19
|
-
children: /*#__PURE__*/_jsxs("ul", {
|
|
20
|
-
className: "connector-phone-call_info ".concat(disabled && 'disabled'),
|
|
21
|
-
children: [/*#__PURE__*/_jsxs("li", {
|
|
22
|
-
className: "connector-phone-call_info-item",
|
|
23
|
-
children: [/*#__PURE__*/_jsx("label", {
|
|
24
|
-
className: "connector-phone-call_info-label",
|
|
25
|
-
children: transI18n('fmt_pstn_label_countryregion')
|
|
26
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
27
|
-
children: /*#__PURE__*/_jsx(FcrSelect, {
|
|
28
|
-
disabled: disabled,
|
|
29
|
-
size: "small",
|
|
30
|
-
value: String(value),
|
|
31
|
-
options: [{
|
|
32
|
-
text: transI18n('fmt_PSTN_status_china'),
|
|
33
|
-
value: '1'
|
|
34
|
-
}, {
|
|
35
|
-
text: transI18n('fmt_PSTN_status_usa'),
|
|
36
|
-
value: '2'
|
|
37
|
-
}],
|
|
38
|
-
onChange: onChange
|
|
39
|
-
})
|
|
40
|
-
})]
|
|
41
|
-
}), info === null || info === void 0 || (_info$phoneNumberList = info.phoneNumberList) === null || _info$phoneNumberList === void 0 ? void 0 : _info$phoneNumberList.map(function (phoneNumber, index) {
|
|
42
|
-
return /*#__PURE__*/_jsxs("li", {
|
|
43
|
-
className: "connector-phone-call_info-item",
|
|
44
|
-
children: [/*#__PURE__*/_jsx("label", {
|
|
45
|
-
className: "connector-phone-call_info-label",
|
|
46
|
-
children: index === 0 ? transI18n('fmt_pstn_label_dial') : ''
|
|
47
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
48
|
-
children: ["+86 (", phoneNumber[0], ") ", phoneNumber.slice(1)]
|
|
49
|
-
})]
|
|
50
|
-
}, phoneNumber);
|
|
51
|
-
}), /*#__PURE__*/_jsxs("li", {
|
|
52
|
-
className: "connector-phone-call_info-item",
|
|
53
|
-
children: [/*#__PURE__*/_jsx("label", {
|
|
54
|
-
className: "connector-phone-call_info-label",
|
|
55
|
-
children: transI18n('fmt_pstn_label_meetingid')
|
|
56
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
57
|
-
children: (info === null || info === void 0 ? void 0 : info.phoneRoomId) || '-'
|
|
58
|
-
})]
|
|
59
|
-
}), /*#__PURE__*/_jsxs("li", {
|
|
60
|
-
className: "connector-phone-call_info-item",
|
|
61
|
-
children: [/*#__PURE__*/_jsx("label", {
|
|
62
|
-
className: "connector-phone-call_info-label",
|
|
63
|
-
children: transI18n('fmt_pstn_label_participantid')
|
|
64
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
65
|
-
children: ["#", (info === null || info === void 0 ? void 0 : info.phoneUserId) || '-', "#"]
|
|
66
|
-
})]
|
|
67
|
-
})]
|
|
68
|
-
})
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
export default ConnectionInfo;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
.connector-phone-connecting {
|
|
2
|
-
width: 305px;
|
|
3
|
-
height: 100px;
|
|
4
|
-
border-radius: var(--fcr_cornerradius_xl);
|
|
5
|
-
background: var(--fcr_ui_scene_ramp_green1);
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
margin-bottom: 16px;
|
|
9
|
-
flex-shrink: 0;
|
|
10
|
-
}
|
|
11
|
-
.connector-phone-connecting_icon {
|
|
12
|
-
margin: 13px;
|
|
13
|
-
width: 84px;
|
|
14
|
-
height: 84px;
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
}
|
|
19
|
-
.connector-phone-connecting_icon-calling {
|
|
20
|
-
width: 50px;
|
|
21
|
-
height: 50px;
|
|
22
|
-
background: var(--fcr_ui_scene_ramp_lightgreen6);
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
align-items: center;
|
|
26
|
-
border-radius: 50%;
|
|
27
|
-
}
|
|
28
|
-
.connector-phone-connecting_content {
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
align-items: center;
|
|
32
|
-
flex: 1;
|
|
33
|
-
}
|
|
34
|
-
.connector-phone-connecting_region {
|
|
35
|
-
color: var(--fcr_ui_scene_icontext2);
|
|
36
|
-
font-size: 12px;
|
|
37
|
-
text-align: left;
|
|
38
|
-
display: block;
|
|
39
|
-
width: 129px;
|
|
40
|
-
}
|
|
41
|
-
.connector-phone-connecting_number {
|
|
42
|
-
font-size: 20px;
|
|
43
|
-
color: var(--fcr_ui_scene_icontext1);
|
|
44
|
-
font-weight: 900;
|
|
45
|
-
line-height: 1;
|
|
46
|
-
}
|
|
47
|
-
.connector-phone-connecting_action {
|
|
48
|
-
background: var(--fcr_ui_scene_ramp_green1);
|
|
49
|
-
color: var(--fcr_ui_scene_ramp_green6);
|
|
50
|
-
border-radius: var(--fcr_cornerradius_l);
|
|
51
|
-
font-size: 12px;
|
|
52
|
-
height: 22px;
|
|
53
|
-
line-height: 22px;
|
|
54
|
-
padding: 0 10px;
|
|
55
|
-
margin: 10px 0 10px;
|
|
56
|
-
}
|
|
57
|
-
.connector-phone-connecting.failure {
|
|
58
|
-
background: var(--fcr_ui_scene_ramp_red1);
|
|
59
|
-
}
|
|
60
|
-
.connector-phone-connecting.failure .connector-phone-connecting_action {
|
|
61
|
-
color: var(--fcr_ui_scene_ramp_red6);
|
|
62
|
-
background: var(--fcr_ui_scene_ramp_red1);
|
|
63
|
-
}
|
|
64
|
-
.connector-phone-connecting.failure .connector-phone-connecting_icon-failure {
|
|
65
|
-
background: var(--fcr_ui_scene_ramp_red6);
|
|
66
|
-
width: 50px;
|
|
67
|
-
height: 50px;
|
|
68
|
-
border-radius: 50%;
|
|
69
|
-
display: flex;
|
|
70
|
-
align-items: center;
|
|
71
|
-
justify-content: center;
|
|
72
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { FcrActionPhone } from 'agora-ui-foundation/lib/components/action-phone';
|
|
2
|
-
import './index.css';
|
|
3
|
-
import { FcrIcon } from 'agora-ui-foundation/lib/components/icon';
|
|
4
|
-
import { FcrIconType } from 'agora-ui-foundation/lib/components/icon/type';
|
|
5
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
-
export var CallingPhone = function CallingPhone(props) {
|
|
7
|
-
var failure = props.failure,
|
|
8
|
-
number = props.number,
|
|
9
|
-
region = props.region,
|
|
10
|
-
reason = props.reason;
|
|
11
|
-
return /*#__PURE__*/_jsxs("div", {
|
|
12
|
-
className: "connector-phone-connecting ".concat(failure ? 'failure' : ''),
|
|
13
|
-
children: [/*#__PURE__*/_jsx("div", {
|
|
14
|
-
className: "connector-phone-connecting_icon",
|
|
15
|
-
children: failure ? /*#__PURE__*/_jsx("div", {
|
|
16
|
-
className: "connector-phone-connecting_icon-failure",
|
|
17
|
-
children: /*#__PURE__*/_jsx(FcrIcon, {
|
|
18
|
-
type: FcrIconType.FCR_PHONECALL3,
|
|
19
|
-
size: 32,
|
|
20
|
-
colors: {
|
|
21
|
-
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
22
|
-
}
|
|
23
|
-
})
|
|
24
|
-
}) : /*#__PURE__*/_jsx(FcrActionPhone, {
|
|
25
|
-
icon: /*#__PURE__*/_jsx("div", {
|
|
26
|
-
className: "connector-phone-connecting_icon-calling",
|
|
27
|
-
children: /*#__PURE__*/_jsx(FcrIcon, {
|
|
28
|
-
type: FcrIconType.FCR_PHONECALL3,
|
|
29
|
-
colors: {
|
|
30
|
-
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
31
|
-
},
|
|
32
|
-
size: 32
|
|
33
|
-
})
|
|
34
|
-
}),
|
|
35
|
-
size: "medium"
|
|
36
|
-
})
|
|
37
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
38
|
-
className: "connector-phone-connecting_content",
|
|
39
|
-
children: [region && /*#__PURE__*/_jsx("span", {
|
|
40
|
-
className: "connector-phone-connecting_region",
|
|
41
|
-
children: region || '+86'
|
|
42
|
-
}), number && /*#__PURE__*/_jsx("span", {
|
|
43
|
-
className: "connector-phone-connecting_number",
|
|
44
|
-
children: number || '-'
|
|
45
|
-
}), /*#__PURE__*/_jsx("span", {
|
|
46
|
-
className: "connector-phone-connecting_action",
|
|
47
|
-
children: reason
|
|
48
|
-
})]
|
|
49
|
-
})]
|
|
50
|
-
});
|
|
51
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FcrCheckbox } from 'agora-ui-foundation/lib/components/checkbox';
|
|
2
|
-
import './index.css';
|
|
3
|
-
import { transI18n } from 'agora-ui-foundation/lib/i18n';
|
|
4
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
-
export var ConnectionRemember = function ConnectionRemember(props) {
|
|
6
|
-
var checked = props.checked,
|
|
7
|
-
onChange = props.onChange;
|
|
8
|
-
return /*#__PURE__*/_jsxs("label", {
|
|
9
|
-
className: "connector-phone_remember",
|
|
10
|
-
children: [/*#__PURE__*/_jsx(FcrCheckbox, {
|
|
11
|
-
checked: checked,
|
|
12
|
-
onChange: onChange
|
|
13
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
14
|
-
children: transI18n('fmt_pstn_options_rememberphone')
|
|
15
|
-
})]
|
|
16
|
-
});
|
|
17
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
.connector-phone-using {
|
|
2
|
-
width: 376px;
|
|
3
|
-
height: 128px;
|
|
4
|
-
display: flex;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
align-items: center;
|
|
7
|
-
background: var(--fcr_ui_scene_ramp_green1);
|
|
8
|
-
border-radius: var(--fcr_cornerradius_l);
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
margin-bottom: 20px;
|
|
11
|
-
margin-top: 11px;
|
|
12
|
-
flex-shrink: 0;
|
|
13
|
-
}
|
|
14
|
-
.connector-phone-using.outgoing-call {
|
|
15
|
-
width: 300px;
|
|
16
|
-
height: 100px;
|
|
17
|
-
}
|
|
18
|
-
.connector-phone-using_number {
|
|
19
|
-
color: var(--fcr_ui_scene_ramp_green6);
|
|
20
|
-
font-size: 20px;
|
|
21
|
-
font-weight: 900;
|
|
22
|
-
line-height: 1;
|
|
23
|
-
margin-bottom: 10px;
|
|
24
|
-
}
|
|
25
|
-
.connector-phone-using_icon-dot {
|
|
26
|
-
background: var(--fcr_ui_scene_white10);
|
|
27
|
-
display: inline-block;
|
|
28
|
-
width: 8px;
|
|
29
|
-
height: 8px;
|
|
30
|
-
margin-right: 5px;
|
|
31
|
-
border-radius: 50%;
|
|
32
|
-
}
|
|
33
|
-
.connector-phone-using_number sub.connector-phone-using_region {
|
|
34
|
-
font-size: 12px;
|
|
35
|
-
color: var(--fcr_ui_scene_icontext3);
|
|
36
|
-
font-weight: 500;
|
|
37
|
-
margin-right: 6px;
|
|
38
|
-
vertical-align: middle;
|
|
39
|
-
bottom: inherit;
|
|
40
|
-
}
|
|
41
|
-
.connector-phone-using_button {
|
|
42
|
-
background: var(--fcr_ui_scene_ramp_green6);
|
|
43
|
-
}
|
|
44
|
-
.connector-phone-using .connector-phone_remember {
|
|
45
|
-
margin: 0;
|
|
46
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { FcrButton } from 'agora-ui-foundation/lib/components/button';
|
|
2
|
-
import './index.css';
|
|
3
|
-
import { observer } from 'mobx-react';
|
|
4
|
-
import { useContext } from 'react';
|
|
5
|
-
import { StoreContext } from '../../../../store';
|
|
6
|
-
import { transI18n } from 'agora-ui-foundation/lib/i18n';
|
|
7
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
export var ConnectionUsing = observer(function (_ref) {
|
|
9
|
-
var children = _ref.children;
|
|
10
|
-
var _useContext = useContext(StoreContext),
|
|
11
|
-
connectSession = _useContext.connectSession,
|
|
12
|
-
outgoingCall = _useContext.outgoingCall;
|
|
13
|
-
return /*#__PURE__*/_jsxs("div", {
|
|
14
|
-
className: "connector-phone-using ".concat(outgoingCall ? 'outgoing-call' : ''),
|
|
15
|
-
children: [outgoingCall && /*#__PURE__*/_jsxs("div", {
|
|
16
|
-
className: "connector-phone-using_number",
|
|
17
|
-
children: [/*#__PURE__*/_jsx("sub", {
|
|
18
|
-
className: "connector-phone-using_region",
|
|
19
|
-
children: "+86"
|
|
20
|
-
}), connectSession === null || connectSession === void 0 ? void 0 : connectSession.phoneNumber]
|
|
21
|
-
}), /*#__PURE__*/_jsxs(FcrButton, {
|
|
22
|
-
size: "XXS",
|
|
23
|
-
className: "connector-phone-using_button",
|
|
24
|
-
children: [/*#__PURE__*/_jsx("span", {
|
|
25
|
-
className: "connector-phone-using_icon-dot"
|
|
26
|
-
}), transI18n('fmt_pstn_label_viaphone')]
|
|
27
|
-
}), children]
|
|
28
|
-
});
|
|
29
|
-
});
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
.connector-phone {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 450px;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
align-items: center;
|
|
7
|
-
}
|
|
8
|
-
.connector-phone_inner {
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
width: 260px;
|
|
12
|
-
align-items: center;
|
|
13
|
-
}
|
|
14
|
-
.connector-phone_selector {
|
|
15
|
-
margin-bottom: 20px;
|
|
16
|
-
height: 32px;
|
|
17
|
-
margin-top: 21px;
|
|
18
|
-
width: 100%;
|
|
19
|
-
}
|
|
20
|
-
.connector-phone_selector_errmsg {
|
|
21
|
-
color: var(--fcr_ui_scene_ramp_red6);
|
|
22
|
-
font-size: 12px;
|
|
23
|
-
text-align: right;
|
|
24
|
-
}
|
|
25
|
-
.connector-phone_selector .fcr-select {
|
|
26
|
-
margin-bottom: 20px;
|
|
27
|
-
border-color: var(--fcr_web_ui_scene_line4);
|
|
28
|
-
width: 260px;
|
|
29
|
-
background-color: var(--fcr_ui_scene_input2);
|
|
30
|
-
}
|
|
31
|
-
.connector-phone_callme-button {
|
|
32
|
-
background: var(--fcr_ui_scene_ramp_green6);
|
|
33
|
-
margin-bottom: 20px;
|
|
34
|
-
}
|
|
35
|
-
.connector-phone_hangup-button {
|
|
36
|
-
margin-bottom: 20px;
|
|
37
|
-
}
|
|
38
|
-
.connector-phone-alert {
|
|
39
|
-
background: var(--fcr_ui_scene_ramp_green1);
|
|
40
|
-
color: var(--fcr_ui_scene_ramp_green6);
|
|
41
|
-
border-radius: var(--fcr_cornerradius_l);
|
|
42
|
-
min-height: 40px;
|
|
43
|
-
line-height: 1.5;
|
|
44
|
-
width: 376px;
|
|
45
|
-
font-size: 13px;
|
|
46
|
-
text-align: center;
|
|
47
|
-
margin-bottom: 10px;
|
|
48
|
-
padding: 10px;
|
|
49
|
-
}
|