fcr-ui-scene 3.4.0 → 3.4.1
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/ scenes/base.d.ts +10 -0
- package/lib/ scenes/base.js +75 -0
- package/lib/ scenes/main-scene.d.ts +43 -0
- package/lib/ scenes/main-scene.js +368 -0
- package/lib/ scenes/waiting-scene.d.ts +31 -0
- package/lib/ scenes/waiting-scene.js +119 -0
- package/lib/common/device-store.d.ts +1 -2
- package/lib/common/device-store.js +169 -153
- package/lib/common/device-stream-store.d.ts +5 -29
- package/lib/common/device-stream-store.js +47 -93
- package/lib/common/room-store.js +4 -4
- package/lib/common/security-store.d.ts +6 -16
- package/lib/common/security-store.js +16 -17
- package/lib/common/type.d.ts +8 -0
- package/lib/common/type.js +6 -0
- package/lib/creator.js +3 -3
- package/lib/electron/app.js +21 -5
- package/lib/electron/bootstrap-sdk.js +1 -2
- package/lib/electron/injections.d.ts +1 -1
- package/lib/error-fallback.css +62 -0
- package/lib/error-fallback.d.ts +2 -0
- package/lib/error-fallback.js +19 -0
- package/lib/modules/Interpreter/action/delete-btn/index.d.ts +1 -1
- package/lib/modules/Interpreter/action/edit-btn/index.d.ts +0 -1
- package/lib/modules/Interpreter/action/edit-btn/index.js +0 -2
- package/lib/modules/Interpreter/action/switch-btn/index.css +3 -0
- package/lib/modules/Interpreter/action/switch-btn/index.d.ts +2 -4
- package/lib/modules/Interpreter/action/switch-btn/index.js +3 -3
- package/lib/modules/Interpreter/footer/index.css +4 -3
- package/lib/modules/Interpreter/index.d.ts +2 -17
- package/lib/modules/Interpreter/index.js +2 -18
- package/lib/modules/Interpreter/interpreter-list/index.css +5 -1
- package/lib/modules/Interpreter/interpreter-list/index.d.ts +1 -0
- package/lib/modules/Interpreter/interpreter-list/index.js +3 -1
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +0 -6
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +1 -1
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +1 -3
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +1 -6
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +55 -81
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +6 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +58 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +1 -1
- package/lib/modules/Interpreter/store.d.ts +36 -29
- package/lib/modules/Interpreter/store.js +575 -606
- package/lib/modules/Interpreter/type.d.ts +41 -0
- package/lib/modules/Interpreter/type.js +20 -0
- package/lib/modules/Interpreter/utils.d.ts +12 -0
- package/lib/modules/Interpreter/utils.js +139 -0
- package/lib/modules/Interpreter/view.d.ts +0 -1
- package/lib/modules/Interpreter/view.js +3 -5
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -1
- package/lib/modules/action-bar/action-bar-collapes-items.js +11 -11
- package/lib/modules/action-bar/apps/useInterpreter.js +4 -2
- package/lib/modules/action-bar/components/apps/app-item/index.css +35 -0
- package/lib/modules/action-bar/components/apps/app-item/index.d.ts +12 -0
- package/lib/modules/action-bar/components/apps/app-item/index.js +61 -0
- package/lib/modules/action-bar/components/apps/appitems.d.ts +5 -0
- package/lib/modules/action-bar/components/apps/appitems.js +45 -0
- package/lib/modules/action-bar/components/apps/index.css +8 -0
- package/lib/modules/action-bar/components/apps/index.d.ts +4 -0
- package/lib/modules/action-bar/components/apps/index.js +57 -0
- package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +9 -0
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +29 -0
- package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +10 -0
- package/lib/modules/action-bar/components/apps/useBeautyBackground.js +36 -0
- package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +14 -0
- package/lib/modules/action-bar/components/apps/useInterpreter.js +37 -0
- package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +16 -0
- package/lib/modules/action-bar/components/apps/useLiveStreaming.js +41 -0
- package/lib/modules/action-bar/components/board/index.d.ts +4 -0
- package/lib/modules/action-bar/components/board/index.js +34 -0
- package/lib/modules/action-bar/components/breakout-room/index.d.ts +4 -0
- package/lib/modules/action-bar/components/breakout-room/index.js +32 -0
- package/lib/modules/action-bar/components/chat/index.css +80 -0
- package/lib/modules/action-bar/components/chat/index.d.ts +5 -0
- package/lib/modules/action-bar/components/chat/index.js +154 -0
- package/lib/modules/action-bar/components/device/index.css +162 -0
- package/lib/modules/action-bar/components/device/index.d.ts +8 -0
- package/lib/modules/action-bar/components/device/index.js +611 -0
- package/lib/modules/action-bar/components/interpreter/index.d.ts +6 -0
- package/lib/modules/action-bar/components/interpreter/index.js +41 -0
- package/lib/modules/action-bar/components/item.d.ts +27 -0
- package/lib/modules/action-bar/components/item.js +164 -0
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +10 -0
- package/lib/modules/action-bar/components/leave/assign-host.js +64 -0
- package/lib/modules/action-bar/components/leave/index.css +126 -0
- package/lib/modules/action-bar/components/leave/index.d.ts +3 -0
- package/lib/modules/action-bar/components/leave/index.js +159 -0
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +18 -0
- package/lib/modules/action-bar/components/leave/leave-meeting.js +153 -0
- package/lib/modules/action-bar/components/live-streaming/index.d.ts +4 -0
- package/lib/modules/action-bar/components/live-streaming/index.js +39 -0
- package/lib/modules/action-bar/components/more/index.css +114 -0
- package/lib/modules/action-bar/components/more/index.d.ts +5 -0
- package/lib/modules/action-bar/components/more/index.js +83 -0
- package/lib/modules/action-bar/components/more/poppover-content.d.ts +8 -0
- package/lib/modules/action-bar/components/more/poppover-content.js +400 -0
- package/lib/modules/action-bar/components/participants/index.css +21 -0
- package/lib/modules/action-bar/components/participants/index.d.ts +5 -0
- package/lib/modules/action-bar/components/participants/index.js +83 -0
- package/lib/modules/action-bar/components/record/index.css +39 -0
- package/lib/modules/action-bar/components/record/index.d.ts +5 -0
- package/lib/modules/action-bar/components/record/index.js +166 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +5 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.js +48 -0
- package/lib/modules/action-bar/components/respond/index.d.ts +4 -0
- package/lib/modules/action-bar/components/respond/index.js +32 -0
- package/lib/modules/action-bar/components/screen-share/index.d.ts +4 -0
- package/lib/modules/action-bar/components/screen-share/index.js +106 -0
- package/lib/modules/action-bar/components/screen-share/submenu.d.ts +1 -0
- package/lib/modules/action-bar/components/screen-share/submenu.js +154 -0
- package/lib/modules/action-bar/components/security/index.d.ts +4 -0
- package/lib/modules/action-bar/components/security/index.js +58 -0
- package/lib/modules/action-bar/components/settings/index.d.ts +4 -0
- package/lib/modules/action-bar/components/settings/index.js +42 -0
- package/lib/modules/action-bar/index.css +23 -1
- package/lib/modules/action-bar/index.d.ts +2 -22
- package/lib/modules/action-bar/index.dev.js +37 -16
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.css +58 -0
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +8 -0
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +100 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +56 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +5 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +33 -0
- package/lib/modules/action-bar/notification-bar/dome.png +0 -0
- package/lib/modules/action-bar/notification-bar/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/notification-bar/index.css +74 -0
- package/lib/modules/action-bar/notification-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/notification-bar/index.js +99 -0
- package/lib/modules/action-bar/screen-share/index.js +5 -0
- package/lib/modules/action-bar/security/index.js +1 -0
- package/lib/modules/action-bar/smaller.js +2 -2
- package/lib/modules/action-bar/store.d.ts +6 -7
- package/lib/modules/action-bar/store.js +114 -128
- package/lib/modules/action-bar/trigger-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.css +86 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +15 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.js +220 -0
- package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +10 -0
- package/lib/modules/action-bar/trigger-output-language-room/constant.js +8 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.css +22 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +14 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.js +75 -0
- package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +4 -0
- package/lib/modules/action-bar/trigger-output-language-room/index.js +98 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +5 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +66 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +5 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +36 -0
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
- package/lib/modules/action-bar/view.js +6 -6
- package/lib/modules/audio-stream/index.d.ts +2 -15
- package/lib/modules/audio-stream/index.js +1 -3
- package/lib/modules/chat/chat-bar/index.css +5 -0
- package/lib/modules/chat/chat-bar/index.js +16 -14
- package/lib/modules/chat/chat-select/index.css +6 -3
- package/lib/modules/chat/chat.js +7 -6
- package/lib/modules/chat/index.css +10 -0
- package/lib/modules/chat/index.d.ts +2 -12
- package/lib/modules/chat/index.dev.js +14 -3
- package/lib/modules/chat/index.js +7 -20
- package/lib/modules/chat/message-list.js +1 -0
- package/lib/modules/chat/store.js +1 -1
- package/lib/modules/components/device-control/components/audio-menu/index.js +4 -4
- package/lib/modules/components/device-control/index.css +3 -0
- package/lib/modules/components/dialog-container/component/body.d.ts +7 -0
- package/lib/modules/components/dialog-container/component/body.js +46 -0
- package/lib/modules/components/dialog-container/index.css +78 -0
- package/lib/modules/components/dialog-container/index.d.ts +11 -0
- package/lib/modules/components/dialog-container/index.js +110 -0
- package/lib/modules/components/member-window/index.css +419 -0
- package/lib/modules/components/member-window/index.d.ts +76 -0
- package/lib/modules/components/member-window/index.js +888 -0
- package/lib/modules/components/security-menu/index.css +9 -0
- package/lib/modules/components/security-menu/index.js +74 -23
- package/lib/modules/components/tab-frame/index.css +40 -0
- package/lib/modules/components/tab-frame/index.d.ts +12 -0
- package/lib/modules/components/tab-frame/index.js +57 -0
- package/lib/modules/connection-gateway/components/computer/index.css +1 -0
- package/lib/modules/connection-gateway/components/phone/index.css +1 -1
- package/lib/modules/connection-gateway/index.d.ts +2 -9
- package/lib/modules/connection-gateway/store.d.ts +3 -11
- package/lib/modules/connection-gateway/store.js +1 -17
- package/lib/modules/connection-gateway/view.js +21 -4
- package/lib/modules/control-bar/components/cloud-recording-buttons.js +1 -1
- package/lib/modules/control-bar/index.d.ts +2 -16
- package/lib/modules/control-bar/index.js +10 -19
- package/lib/modules/control-bar/store.d.ts +3 -16
- package/lib/modules/control-bar/store.js +23 -5
- package/lib/modules/control-bar/view.js +17 -10
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
- package/lib/modules/dialog/components/Interpreter/electron.js +3 -25
- package/lib/modules/dialog/components/Interpreter/index.js +14 -43
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
- package/lib/modules/dialog/components/chat/electron.js +6 -13
- package/lib/modules/dialog/components/chat/index.d.ts +1 -4
- package/lib/modules/dialog/components/chat/index.js +35 -41
- package/lib/modules/dialog/components/confirm/index.js +6 -7
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.js +9 -28
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +0 -1
- package/lib/modules/dialog/components/connection-gateway/index.js +11 -56
- package/lib/modules/dialog/components/control-bar/index.js +6 -7
- package/lib/modules/dialog/components/device-setting/electron.js +4 -26
- package/lib/modules/dialog/components/device-setting/index.js +13 -41
- package/lib/modules/dialog/components/invite/index.js +16 -35
- package/lib/modules/dialog/components/live-streaming/index.js +18 -53
- package/lib/modules/dialog/components/participant/electron.js +4 -17
- package/lib/modules/dialog/components/participant/index.js +35 -26
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +3 -6
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +1 -1
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +4 -14
- package/lib/modules/dialog/components/share-screen-selection/index.js +20 -5
- package/lib/modules/dialog/components/system-preference/electron.js +5 -8
- package/lib/modules/dialog/components/system-preference/index.js +4 -15
- package/lib/modules/dialog/components/toast/index.js +8 -12
- package/lib/modules/dialog/dialogs.js +2 -1
- package/lib/modules/dialog/hooks/useElectron.d.ts +6 -0
- package/lib/modules/dialog/hooks/useElectron.js +51 -9
- package/lib/modules/dialog/index.css +0 -2
- package/lib/modules/dialog/index.d.ts +2 -17
- package/lib/modules/dialog/store.d.ts +7 -39
- package/lib/modules/dialog/store.js +53 -152
- package/lib/modules/dialog/types/index.d.ts +59 -0
- package/lib/modules/event-confirm/view.js +4 -1
- package/lib/modules/invite/view.d.ts +4 -0
- package/lib/modules/invite/view.js +18 -22
- package/lib/modules/invite/voip-invite.js +3 -3
- package/lib/modules/layout/components/Aside.js +11 -1
- package/lib/modules/layout/components/Carousel.js +1 -1
- package/lib/modules/layout/components/Layout.js +7 -4
- package/lib/modules/layout/components/index.css +6 -1
- package/lib/modules/layout/index.js +8 -7
- package/lib/modules/layout/member-window/index.css +22 -9
- package/lib/modules/layout/member-window/index.js +16 -3
- package/lib/modules/layout/store.d.ts +1 -1
- package/lib/modules/layout/store.js +1 -7
- package/lib/modules/layout/video-window-datasource.js +11 -3
- package/lib/modules/notification/index.css +1 -0
- package/lib/modules/participant/attendee/index.css +1 -0
- package/lib/modules/participant/attendee/index.js +2 -1
- package/lib/modules/participant/components/drop-menu/index.css +1 -0
- package/lib/modules/participant/components/drop-menu/index.js +9 -9
- package/lib/modules/participant/index.css +5 -0
- package/lib/modules/participant/index.d.ts +2 -17
- package/lib/modules/participant/index.dev.js +38 -27
- package/lib/modules/participant/store.d.ts +4 -17
- package/lib/modules/participant/store.js +13 -13
- package/lib/modules/setting/audio-settings/audio-settings.js +13 -10
- package/lib/modules/setting/audio-settings/index.css +26 -1
- package/lib/modules/setting/general-settings/index.css +1 -1
- package/lib/modules/setting/index.css +2 -1
- package/lib/modules/setting/index.d.ts +2 -15
- package/lib/modules/setting/index.dev.js +19 -10
- package/lib/modules/setting/store.d.ts +5 -18
- package/lib/modules/setting/store.js +48 -20
- package/lib/modules/setting/translate-settings/index.css +3 -1
- package/lib/modules/setting/video-settings/index.css +5 -2
- package/lib/modules/share-screen/index.dev.js +20 -19
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/selection/index.js +83 -97
- package/lib/modules/share-screen/store.js +16 -36
- package/lib/modules/sound-effect/index.d.ts +2 -13
- package/lib/modules/sound-effect/index.js +1 -2
- package/lib/modules/state-bar/index.css +13 -2
- package/lib/modules/state-bar/index.d.ts +1 -5
- package/lib/modules/state-bar/index.dev.js +1 -1
- package/lib/modules/state-bar/index.js +0 -27
- package/lib/modules/state-bar/layout-config.js +1 -1
- package/lib/modules/state-bar/meeting-network-state.css +1 -1
- package/lib/modules/state-bar/recording.js +7 -4
- package/lib/modules/state-bar/view.js +1 -1
- package/lib/modules/video-window/index.d.ts +2 -2
- package/lib/modules/video-window/store.d.ts +2 -1
- package/lib/modules/video-window/store.js +2 -2
- package/lib/modules/waiting-room-layout/index.css +1 -3
- package/lib/modules/waiting-room-layout/index.d.ts +3 -1
- package/lib/modules/waiting-room-layout/index.js +10 -3
- package/lib/modules/whiteboard/index.d.ts +2 -13
- package/lib/modules/whiteboard/index.js +4 -5
- package/lib/providers/device-privilege-provider.d.ts +30 -0
- package/lib/providers/device-privilege-provider.js +386 -0
- package/lib/providers/device-provider.d.ts +246 -0
- package/lib/providers/device-provider.js +1741 -0
- package/lib/providers/device-stream-provider.d.ts +36 -0
- package/lib/providers/device-stream-provider.js +460 -0
- package/lib/providers/event-provider.d.ts +108 -0
- package/lib/providers/event-provider.js +288 -0
- package/lib/providers/interpreter-provider.d.ts +25 -0
- package/lib/providers/interpreter-provider.js +151 -0
- package/lib/providers/local-storage-provider.d.ts +8 -0
- package/lib/providers/local-storage-provider.js +31 -0
- package/lib/providers/monitor-provider.d.ts +15 -0
- package/lib/providers/monitor-provider.js +29 -0
- package/lib/providers/privilege-provider.d.ts +216 -0
- package/lib/providers/privilege-provider.js +966 -0
- package/lib/providers/renderer-provider.d.ts +43 -0
- package/lib/providers/renderer-provider.js +245 -0
- package/lib/providers/room-provider.d.ts +79 -0
- package/lib/providers/room-provider.js +439 -0
- package/lib/providers/session-provider.d.ts +26 -0
- package/lib/providers/session-provider.js +49 -0
- package/lib/runtime.d.ts +1 -1
- package/lib/scenes/base.d.ts +10 -0
- package/lib/scenes/base.js +75 -0
- package/lib/scenes/main-scene.d.ts +48 -0
- package/lib/scenes/main-scene.js +390 -0
- package/lib/scenes/waiting-scene.d.ts +31 -0
- package/lib/scenes/waiting-scene.js +129 -0
- package/lib/shared-data-source/config.d.ts +16 -0
- package/lib/shared-data-source/config.js +21 -0
- package/lib/type.d.ts +26 -1
- package/lib/ui-manager.d.ts +3 -0
- package/lib/ui-manager.js +154 -233
- package/lib/ui-node.d.ts +25 -0
- package/lib/ui-node.js +156 -0
- package/lib/utilities/constant.d.ts +15 -15
- package/lib/utilities/constant.js +15 -15
- package/lib/utilities/tools.d.ts +2 -0
- package/lib/utilities/tools.js +42 -10
- package/package.json +12 -11
- package/public/assets/fcr_leave2.svg +58 -0
- package/public/index.html +150 -13
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
.fcr-dialog-container {
|
|
2
|
+
background: var(--fcr_mobile_ui_scene_color_popup_fill2);
|
|
3
|
+
border: 1px solid var(--fcr_ui_scene_line1);
|
|
4
|
+
box-shadow: var(--fcr_web_light_dropup);
|
|
5
|
+
border-radius: var(--fcr_cornerradius_xl);
|
|
6
|
+
position: relative;
|
|
7
|
+
flex: 1;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.fcr-dialog-container-header {
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 46px;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
-webkit-app-region: drag;
|
|
17
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
18
|
+
justify-content: center;
|
|
19
|
+
cursor: move;
|
|
20
|
+
border-radius: var(--fcr_cornerradius_xl);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.fcr-dialog-container-header h2 {
|
|
24
|
+
font-size: 16px;
|
|
25
|
+
font-weight: 700;
|
|
26
|
+
display: flex;
|
|
27
|
+
flex: 1;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.fcr-dialog-container-actions {
|
|
33
|
+
flex: 1;
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: flex-end;
|
|
36
|
+
align-items: center;
|
|
37
|
+
padding-right: 10px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.fcr-dialog-container-content {
|
|
41
|
+
position: relative;
|
|
42
|
+
border-bottom-left-radius: var(--fcr_cornerradius_xl);
|
|
43
|
+
border-bottom-right-radius: var(--fcr_cornerradius_xl);
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.fcr-dialog-container .fcr-dialog-container-content:first-child {
|
|
48
|
+
border-top-left-radius: var(--fcr_cornerradius_xl);
|
|
49
|
+
border-top-right-radius: var(--fcr_cornerradius_xl);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.fcr-dialog-container-close {
|
|
53
|
+
width: 14px;
|
|
54
|
+
height: 14px;
|
|
55
|
+
border-radius: 50%;
|
|
56
|
+
background: var(--fcr_ui_scene_ramp_red6);
|
|
57
|
+
position: absolute;
|
|
58
|
+
left: 15px;
|
|
59
|
+
top: 15px;
|
|
60
|
+
display: block;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
-webkit-app-region: no-drag;
|
|
63
|
+
text-align: center;
|
|
64
|
+
line-height: 13px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.fcr-dialog-container-close span {
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.fcr-dialog-container-close:hover span {
|
|
72
|
+
display: block;
|
|
73
|
+
color: #fff;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.fcr-dialog-container-close:hover {
|
|
77
|
+
color: var(--fcr_ui_scene_ramp_red7);
|
|
78
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { DialogKey } from '../../../utilities/constant';
|
|
3
|
+
declare const DialogContainer: (props: PropsWithChildren<{
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
dialogKey: DialogKey;
|
|
7
|
+
title?: string;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
actions?: React.ReactNode;
|
|
10
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default DialogContainer;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.array.filter.js");
|
|
5
|
+
require("core-js/modules/es.array.for-each.js");
|
|
6
|
+
require("core-js/modules/es.array.push.js");
|
|
7
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
8
|
+
require("core-js/modules/es.object.define-property.js");
|
|
9
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
10
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
|
+
require("core-js/modules/es.object.keys.js");
|
|
12
|
+
require("core-js/modules/es.object.to-string.js");
|
|
13
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
14
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
15
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
16
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
17
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
18
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
19
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
20
|
+
Object.defineProperty(exports, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
});
|
|
23
|
+
exports["default"] = void 0;
|
|
24
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
26
|
+
var _react = require("react");
|
|
27
|
+
var _mobxReact = require("mobx-react");
|
|
28
|
+
var _react2 = require("@use-gesture/react");
|
|
29
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
30
|
+
var _store = require("../../dialog/store");
|
|
31
|
+
var _body = require("./component/body");
|
|
32
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35
|
+
var DialogContainer = (0, _mobxReact.observer)(function (props) {
|
|
36
|
+
var width = props.width,
|
|
37
|
+
title = props.title,
|
|
38
|
+
onClose = props.onClose,
|
|
39
|
+
children = props.children,
|
|
40
|
+
dialogKey = props.dialogKey,
|
|
41
|
+
actions = props.actions;
|
|
42
|
+
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
43
|
+
closeDialogByKey = _useContext.closeDialogByKey;
|
|
44
|
+
var handleClose = function handleClose() {
|
|
45
|
+
closeDialogByKey(dialogKey);
|
|
46
|
+
onClose === null || onClose === void 0 || onClose();
|
|
47
|
+
};
|
|
48
|
+
var container = /*#__PURE__*/(0, _jsxRuntime.jsx)(_body.DialogContainerBody, {
|
|
49
|
+
title: title,
|
|
50
|
+
onClick: handleClose,
|
|
51
|
+
actions: actions,
|
|
52
|
+
children: children
|
|
53
|
+
});
|
|
54
|
+
if ((0, _env.isElectron)()) return container;
|
|
55
|
+
var rndRef = (0, _react.useRef)(null);
|
|
56
|
+
var size = (0, _react.useMemo)(function () {
|
|
57
|
+
var _rndRef$current;
|
|
58
|
+
return {
|
|
59
|
+
width: width || 400,
|
|
60
|
+
height: props.height ? props.height : ((_rndRef$current = rndRef.current) === null || _rndRef$current === void 0 ? void 0 : _rndRef$current.getBoundingClientRect().height) || 160
|
|
61
|
+
};
|
|
62
|
+
}, [props.height]);
|
|
63
|
+
var windowBounds = {
|
|
64
|
+
x: 0,
|
|
65
|
+
y: 0,
|
|
66
|
+
width: window.innerWidth,
|
|
67
|
+
height: window.innerHeight
|
|
68
|
+
};
|
|
69
|
+
var _useState = (0, _react.useState)({
|
|
70
|
+
x: 0,
|
|
71
|
+
y: 0
|
|
72
|
+
}),
|
|
73
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
74
|
+
bounds = _useState2[0],
|
|
75
|
+
setBounds = _useState2[1];
|
|
76
|
+
var bind = (0, _react2.useDrag)(function (_ref) {
|
|
77
|
+
var _ref$delta = (0, _slicedToArray2["default"])(_ref.delta, 2),
|
|
78
|
+
dx = _ref$delta[0],
|
|
79
|
+
dy = _ref$delta[1];
|
|
80
|
+
var x = bounds.x + dx;
|
|
81
|
+
var y = bounds.y + dy;
|
|
82
|
+
var maxX = windowBounds.width - size.width;
|
|
83
|
+
var maxY = windowBounds.height - size.height;
|
|
84
|
+
var coord = {
|
|
85
|
+
x: Math.max(0, Math.min(maxX, x)),
|
|
86
|
+
y: Math.max(0, Math.min(maxY, y))
|
|
87
|
+
};
|
|
88
|
+
setBounds(coord);
|
|
89
|
+
});
|
|
90
|
+
(0, _react.useEffect)(function () {
|
|
91
|
+
setBounds({
|
|
92
|
+
x: windowBounds.width / 2 - size.width / 2,
|
|
93
|
+
y: windowBounds.height / 2 - size.height / 2
|
|
94
|
+
});
|
|
95
|
+
}, [rndRef.current]);
|
|
96
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, bind()), {}, {
|
|
97
|
+
style: {
|
|
98
|
+
width: size.width,
|
|
99
|
+
height: size.height,
|
|
100
|
+
left: "".concat(bounds.x, "px"),
|
|
101
|
+
top: "".concat(bounds.y, "px"),
|
|
102
|
+
position: 'absolute',
|
|
103
|
+
touchAction: 'none',
|
|
104
|
+
display: 'flex',
|
|
105
|
+
flexDirection: 'column'
|
|
106
|
+
},
|
|
107
|
+
children: container
|
|
108
|
+
}));
|
|
109
|
+
});
|
|
110
|
+
var _default = exports["default"] = DialogContainer;
|
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
/* fcr member-window */
|
|
2
|
+
.fcr-member-window {
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
6
|
+
background-color: var(--fcr_ui_scene_video);
|
|
7
|
+
font-size: 12px;
|
|
8
|
+
line-height: 1;
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
user-select: none;
|
|
13
|
+
position: relative;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
.fcr-member-window button,
|
|
17
|
+
.fcr-member-board button {
|
|
18
|
+
border: none;
|
|
19
|
+
outline: none;
|
|
20
|
+
}
|
|
21
|
+
.fcr-member-window button:focus,
|
|
22
|
+
.fcr-member-board button:focus {
|
|
23
|
+
border: none;
|
|
24
|
+
outline: none;
|
|
25
|
+
}
|
|
26
|
+
.fcr-member-board {
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
position: relative;
|
|
30
|
+
}
|
|
31
|
+
.fcr-member-board-mask {
|
|
32
|
+
display: none;
|
|
33
|
+
position: absolute;
|
|
34
|
+
inset: 0;
|
|
35
|
+
z-index: 2;
|
|
36
|
+
}
|
|
37
|
+
.fcr-member-board-mask-show {
|
|
38
|
+
display: block;
|
|
39
|
+
}
|
|
40
|
+
/* .fcr-member-window.fcr-member-window-suspend {
|
|
41
|
+
background-color: var(--fcr_ui_scene_video_s);
|
|
42
|
+
border-radius: 0;
|
|
43
|
+
} */
|
|
44
|
+
.fcr-member-window-background {
|
|
45
|
+
position: absolute;
|
|
46
|
+
inset: 0;
|
|
47
|
+
color: var(--fcr_ui_scene_icontext3);
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
visibility: hidden;
|
|
53
|
+
}
|
|
54
|
+
.fcr-member-window-is-broken {
|
|
55
|
+
visibility: visible;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.fcr-member-window-background svg {
|
|
59
|
+
opacity: 0.3;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.fcr-member-window-avatar {
|
|
63
|
+
padding: 0 20px;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
text-overflow: ellipsis;
|
|
66
|
+
white-space: nowrap;
|
|
67
|
+
position: relative;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.fcr-member-window-body {
|
|
71
|
+
position: absolute;
|
|
72
|
+
inset: 0;
|
|
73
|
+
font-size: 0;
|
|
74
|
+
}
|
|
75
|
+
.fcr-member-window-body-render-video-loading {
|
|
76
|
+
border-radius: 10px;
|
|
77
|
+
position: absolute;
|
|
78
|
+
z-index: 999;
|
|
79
|
+
display: flex;
|
|
80
|
+
top: 10px;
|
|
81
|
+
right: 13px;
|
|
82
|
+
max-width: 447px;
|
|
83
|
+
height: fit-content;
|
|
84
|
+
transition: all 0.2s;
|
|
85
|
+
padding: 6px 8px;
|
|
86
|
+
gap: 14px;
|
|
87
|
+
background: #748bff;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
}
|
|
91
|
+
.fcr-member-window-body-render-video-loading span {
|
|
92
|
+
color: #fff;
|
|
93
|
+
font-size: 14px;
|
|
94
|
+
line-height: 18px;
|
|
95
|
+
font-weight: 600;
|
|
96
|
+
text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.4);
|
|
97
|
+
white-space: pre-wrap;
|
|
98
|
+
}
|
|
99
|
+
.fcr-member-window-body-render-video-loading .render-video-loading-icon {
|
|
100
|
+
animation: loading-rotate 1s linear infinite;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@keyframes loading-rotate {
|
|
104
|
+
from {
|
|
105
|
+
transform: rotate(0deg);
|
|
106
|
+
}
|
|
107
|
+
to {
|
|
108
|
+
transform: rotate(360deg);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
.fcr-member-window-body.fcr-member-window-body-video-remote {
|
|
112
|
+
visibility: hidden;
|
|
113
|
+
}
|
|
114
|
+
.fcr-member-window-body.fcr-member-window-body-video-remote-render {
|
|
115
|
+
visibility: visible;
|
|
116
|
+
}
|
|
117
|
+
.fcr-member-window-excitation {
|
|
118
|
+
position: absolute;
|
|
119
|
+
inset: 0;
|
|
120
|
+
font-size: 0;
|
|
121
|
+
border: 2px solid var(--fcr_ui_scene_ramp_green6);
|
|
122
|
+
opacity: 0;
|
|
123
|
+
}
|
|
124
|
+
.fcr-member-window-excitation-show {
|
|
125
|
+
opacity: 1;
|
|
126
|
+
}
|
|
127
|
+
.fcr-member-window-pin {
|
|
128
|
+
display: none;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
align-items: center;
|
|
131
|
+
position: absolute;
|
|
132
|
+
left: 4px;
|
|
133
|
+
top: 4px;
|
|
134
|
+
width: 26px;
|
|
135
|
+
height: 26px;
|
|
136
|
+
border-radius: var(--fcr_cornerradius_xs);
|
|
137
|
+
background-color: var(--fcr_ui_scene_view_toast);
|
|
138
|
+
/* opacity: 0; */
|
|
139
|
+
/* transition: opacity 0.2s; */
|
|
140
|
+
z-index: 3;
|
|
141
|
+
}
|
|
142
|
+
.fcr-member-window-pin-show {
|
|
143
|
+
/* opacity: 1; */
|
|
144
|
+
display: flex;
|
|
145
|
+
}
|
|
146
|
+
.fcr-member-board:hover .fcr-user-window-actions-top,
|
|
147
|
+
.fcr-member-window:hover .fcr-user-window-actions-top {
|
|
148
|
+
opacity: 1;
|
|
149
|
+
}
|
|
150
|
+
.fcr-member-window-members-sharebtn {
|
|
151
|
+
display: none;
|
|
152
|
+
align-items: center;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
background-color: var(--fcr_ui_scene_ramp_green6);
|
|
155
|
+
border-radius: var(--fcr_cornerradius_xxs);
|
|
156
|
+
/* padding: 0 1px; */
|
|
157
|
+
height: 18px;
|
|
158
|
+
margin-right: 2px;
|
|
159
|
+
}
|
|
160
|
+
.fcr-member-window-members-sharebtn-show {
|
|
161
|
+
margin-left: 0px;
|
|
162
|
+
display: flex;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.fcr-member-window-members-sharebtn-large {
|
|
166
|
+
height: 24px;
|
|
167
|
+
margin-right: 6px;
|
|
168
|
+
}
|
|
169
|
+
/* fcr-member-window-action start */
|
|
170
|
+
|
|
171
|
+
.fcr-user-window-actions {
|
|
172
|
+
position: absolute;
|
|
173
|
+
inset: 0;
|
|
174
|
+
pointer-events: auto !important;
|
|
175
|
+
transition: opacity 0.2s;
|
|
176
|
+
overflow: hidden;
|
|
177
|
+
z-index: 2;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.fcr-user-window-actions-hide {
|
|
181
|
+
opacity: 0;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.fcr-user-window-actions button {
|
|
185
|
+
pointer-events: auto;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.fcr-user-window-actions-bottom {
|
|
189
|
+
position: absolute;
|
|
190
|
+
inset: auto auto 4px 4px;
|
|
191
|
+
z-index: 1;
|
|
192
|
+
max-width: calc(100% - 8px);
|
|
193
|
+
height: 18px;
|
|
194
|
+
transition: opacity 0.2s;
|
|
195
|
+
opacity: 1;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.fcr-user-window-actions-bottom-layout {
|
|
199
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
200
|
+
font-weight: var(--fcr_font_weight_m);
|
|
201
|
+
font-size: 12px;
|
|
202
|
+
backdrop-filter: blur(25px);
|
|
203
|
+
display: inline-flex;
|
|
204
|
+
align-items: center;
|
|
205
|
+
overflow: hidden;
|
|
206
|
+
}
|
|
207
|
+
.fcr-user-window-actions-bottom-layout-info {
|
|
208
|
+
border-radius: var(--fcr_cornerradius_xs);
|
|
209
|
+
background-color: var(--fcr_ui_scene_view_toast);
|
|
210
|
+
display: inline-flex;
|
|
211
|
+
align-items: center;
|
|
212
|
+
overflow: hidden;
|
|
213
|
+
}
|
|
214
|
+
.fcr-user-window-actions-bottom-interpreter-tag {
|
|
215
|
+
margin-left: 8px;
|
|
216
|
+
}
|
|
217
|
+
.fcr-member-board .fcr-user-window-actions-bottom-show,
|
|
218
|
+
.fcr-member-window .fcr-user-window-actions-bottom-show {
|
|
219
|
+
opacity: 1;
|
|
220
|
+
}
|
|
221
|
+
.fcr-member-board:hover .fcr-user-window-actions-bottom,
|
|
222
|
+
.fcr-member-window:hover .fcr-user-window-actions-bottom {
|
|
223
|
+
opacity: 1;
|
|
224
|
+
}
|
|
225
|
+
.fcr-member-window-gallery .fcr-user-window-actions-bottom {
|
|
226
|
+
height: 24px;
|
|
227
|
+
font-size: 12px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.fcr-user-window-actions-tag {
|
|
231
|
+
height: 18px;
|
|
232
|
+
border-radius: var(--fcr_cornerradius_xs);
|
|
233
|
+
display: inline-flex;
|
|
234
|
+
align-items: center;
|
|
235
|
+
white-space: nowrap;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.fcr-member-window-gallery .fcr-user-window-actions-tag {
|
|
239
|
+
height: 24px;
|
|
240
|
+
border-radius: var(--fcr_cornerradius_xs);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.fcr-user-window-actions-tag-host {
|
|
244
|
+
color: var(--fcr_ui_scene_white10);
|
|
245
|
+
background: linear-gradient(90deg, #4262ff, #7c79ff);
|
|
246
|
+
padding: 0 8px;
|
|
247
|
+
/* margin-right: 10px; */
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.fcr-user-window-actions-tag-host:has(svg) {
|
|
251
|
+
padding-left: 4px;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.fcr-user-window-actions-volume {
|
|
255
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
256
|
+
--fcr-volume-icon-color: var(--fcr_ui_scene_icontext1);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.fcr-user-window-actions-tag-host .fcr-user-window-actions-volume {
|
|
260
|
+
color: var(--fcr_ui_scene_white10);
|
|
261
|
+
--fcr-volume-icon-color: var(--fcr_ui_scene_white10);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.fcr-member-window-gallery .fcr-user-window-actions-tag-host {
|
|
265
|
+
padding: 0 13px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.fcr-member-window-gallery .fcr-user-window-actions-tag-host:has(svg) {
|
|
269
|
+
padding-left: 6px;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.fcr-user-window-actions-microphone {
|
|
273
|
+
padding: 1px;
|
|
274
|
+
align-self: stretch;
|
|
275
|
+
display: inline-flex;
|
|
276
|
+
align-items: center;
|
|
277
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
278
|
+
border-radius: var(--fcr_cornerradius_xxs);
|
|
279
|
+
background-color: var(--fcr_ui_scene_view_toast);
|
|
280
|
+
cursor: default;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.fcr-user-window-actions-tag-host .fcr-user-window-actions-microphone {
|
|
284
|
+
color: var(--fcr_ui_scene_white10);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.fcr-user-window-has-audio .fcr-user-window-actions-microphone {
|
|
288
|
+
display: none;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.fcr-member-window-gallery .fcr-user-window-actions-microphone {
|
|
292
|
+
padding: 0;
|
|
293
|
+
background-color: transparent;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.fcr-user-window-actions-tag ~ .fcr-user-window-actions-microphone {
|
|
297
|
+
border-top-left-radius: 0;
|
|
298
|
+
border-bottom-left-radius: 0;
|
|
299
|
+
}
|
|
300
|
+
.fcr-user-window-actions-tag:has(~ .fcr-user-window-actions-microphone) {
|
|
301
|
+
border-top-right-radius: 0;
|
|
302
|
+
border-bottom-right-radius: 0;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.fcr-user-window-actions-bottom .fcr-user-window-actions-name {
|
|
306
|
+
padding: 0 2px;
|
|
307
|
+
font-weight: var(--fcr_font_weight_s);
|
|
308
|
+
line-height: 1;
|
|
309
|
+
white-space: nowrap;
|
|
310
|
+
overflow: hidden;
|
|
311
|
+
text-overflow: ellipsis;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.fcr-user-window-actions-bottom .fcr-user-window-actions-name.ml-5 {
|
|
315
|
+
margin-left: 5px;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.fcr-user-window-actions-name-isme {
|
|
319
|
+
font-weight: normal;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.fcr-user-window-actions-bottom .fcr-user-window-actions-name-rename {
|
|
323
|
+
width: 20px;
|
|
324
|
+
height: 20px;
|
|
325
|
+
cursor: pointer;
|
|
326
|
+
display: none;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.fcr-user-window-actions-bottom:hover .fcr-user-window-actions-name-rename {
|
|
330
|
+
display: block;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.member-window-actions__more-actions {
|
|
334
|
+
padding: 0;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/* .fcr-member-window-gallery .fcr-user-window-actions-name {
|
|
338
|
+
padding: 0 4px;
|
|
339
|
+
} */
|
|
340
|
+
|
|
341
|
+
.fcr-user-window-actions-name-doing {
|
|
342
|
+
line-height: 1;
|
|
343
|
+
font-weight: var(--fcr_font_weight_s);
|
|
344
|
+
white-space: nowrap;
|
|
345
|
+
padding-right: 6px;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.fcr-user-window-actions-top {
|
|
349
|
+
height: 26px;
|
|
350
|
+
position: absolute;
|
|
351
|
+
inset: 3px 3px auto;
|
|
352
|
+
display: flex;
|
|
353
|
+
flex-flow: row-reverse nowrap;
|
|
354
|
+
gap: 5px;
|
|
355
|
+
font-size: 12px;
|
|
356
|
+
opacity: 0;
|
|
357
|
+
transition: opacity 0.2s;
|
|
358
|
+
z-index: 1;
|
|
359
|
+
}
|
|
360
|
+
.fcr-member-window .fcr-user-window-actions-top-active {
|
|
361
|
+
opacity: 1;
|
|
362
|
+
}
|
|
363
|
+
.fcr-user-window-actions-more {
|
|
364
|
+
padding: 3px;
|
|
365
|
+
border-radius: var(--fcr_cornerradius_xxs);
|
|
366
|
+
background-color: var(--fcr_web_ui_scene_hover3);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.fcr-user-window-actions-mute {
|
|
370
|
+
padding: 0 6px;
|
|
371
|
+
border-radius: var(--fcr_cornerradius_xxs);
|
|
372
|
+
background-color: var(--fcr_web_ui_scene_hover3);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.fcr-user-window-actions-mute:disabled {
|
|
376
|
+
display: none;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.fcr-layout-content-bar {
|
|
380
|
+
position: absolute;
|
|
381
|
+
height: 0px;
|
|
382
|
+
width: 100%;
|
|
383
|
+
transition: height 0s;
|
|
384
|
+
z-index: 1;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.fcr-layout-speaker .fcr-layout-content-bar {
|
|
388
|
+
position: relative;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.fcr-layout-content-top {
|
|
392
|
+
top: 0;
|
|
393
|
+
display: flex;
|
|
394
|
+
flex-flow: column-reverse nowrap;
|
|
395
|
+
justify-content: flex-end;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.fcr-layout-content-top .fcr-layout-content-bar-body {
|
|
399
|
+
display: flex;
|
|
400
|
+
flex-flow: column-reverse nowrap;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.fcr-user-window-actions-tag_large {
|
|
404
|
+
margin-bottom: 10px;
|
|
405
|
+
}
|
|
406
|
+
.fcr-user-window-actions-bottom .fcr-device-settings-video__video-flip-container {
|
|
407
|
+
position: static;
|
|
408
|
+
margin-left: 2px;
|
|
409
|
+
}
|
|
410
|
+
.fcr-user-window-actions-bottom .fcr-device-settings-video__video-flip-container:hover {
|
|
411
|
+
background: var(--fcr_ui_scene_white10);
|
|
412
|
+
}
|
|
413
|
+
.fcr-user-window-actions-bottom
|
|
414
|
+
.fcr-device-settings-video__video-flip-container
|
|
415
|
+
.fcr-clickable-icon-small {
|
|
416
|
+
width: 24px;
|
|
417
|
+
height: 24px;
|
|
418
|
+
border-radius: var(--fcr_cornerradius_xs);
|
|
419
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { FcrUserRole } from 'fcr-core/lib/type';
|
|
2
|
+
import { FcrUIVideoWindowData } from '../../layout/type';
|
|
3
|
+
import './index.css';
|
|
4
|
+
import { AgoraRtcRenderMode, AgoraRtcVideoStreamType } from 'agora-rte-sdk/lib/core/rtc/type';
|
|
5
|
+
import { FcrVideoWindowPreviewType } from '../../video-window/type';
|
|
6
|
+
import { FcrInterpreterUserInfo } from 'fcr-core/lib/room-control/interpreter-control/types';
|
|
7
|
+
export interface MemberWindowCustomProps {
|
|
8
|
+
showAvatar: boolean;
|
|
9
|
+
onDoubleClick: () => void;
|
|
10
|
+
onRemovePin: (streamId: string) => void;
|
|
11
|
+
slot?: React.ReactNode;
|
|
12
|
+
width?: number;
|
|
13
|
+
height?: number;
|
|
14
|
+
canShowSpeakerSpotlight: boolean;
|
|
15
|
+
memberWindowPreviewType?: 'gallery' | 'carousel' | 'suspend';
|
|
16
|
+
videoRenderMode: AgoraRtcRenderMode;
|
|
17
|
+
videoStreamType: AgoraRtcVideoStreamType;
|
|
18
|
+
}
|
|
19
|
+
export interface MemberWindowProps extends MemberWindowCustomProps {
|
|
20
|
+
windowData: FcrUIVideoWindowData;
|
|
21
|
+
}
|
|
22
|
+
export declare const MemberWindow: ({ showAvatar, windowData, onDoubleClick, slot, width, height, canShowSpeakerSpotlight, onRemovePin, memberWindowPreviewType, videoRenderMode, videoStreamType, }: MemberWindowProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const MemberWindowActions: ({ windowData, iconSize, windowSize, openPrivateChat, localUserRole, sendParticipantEvent, muteAudio, hasPinnedStream, allowedOperations, setVideoOrientation, showActionBottomLabel, isShowActionAudio, actionAudioTag, onVisibleChanged, videoWindowCurrentWidth, videoWindowCurrentHeight, videoWindowPreviewType, showRotation, interpreterUsers, interpreterState, handleRename, renderListLength, }: {
|
|
24
|
+
windowData: FcrUIVideoWindowData;
|
|
25
|
+
iconSize: number;
|
|
26
|
+
windowSize: "large" | "normal";
|
|
27
|
+
openPrivateChat: (userId: string) => void;
|
|
28
|
+
localUserRole: FcrUserRole;
|
|
29
|
+
sendParticipantEvent: (event: any) => void;
|
|
30
|
+
muteAudio: (mute: boolean, userId: string) => void;
|
|
31
|
+
hasPinnedStream: boolean;
|
|
32
|
+
allowedOperations: string[];
|
|
33
|
+
setVideoOrientation: () => void;
|
|
34
|
+
showActionBottomLabel: boolean;
|
|
35
|
+
isShowActionAudio: boolean;
|
|
36
|
+
actionAudioTag: string;
|
|
37
|
+
onVisibleChanged?: (visible: boolean) => void;
|
|
38
|
+
videoWindowCurrentWidth?: number;
|
|
39
|
+
videoWindowCurrentHeight?: number;
|
|
40
|
+
videoWindowPreviewType?: FcrVideoWindowPreviewType;
|
|
41
|
+
showRotation: boolean;
|
|
42
|
+
interpreterUsers: FcrInterpreterUserInfo[];
|
|
43
|
+
interpreterState: boolean;
|
|
44
|
+
handleRename: (userId: string) => void;
|
|
45
|
+
renderListLength?: number;
|
|
46
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
interface MemberBoardProps {
|
|
48
|
+
slot: React.ReactNode;
|
|
49
|
+
isMask: boolean;
|
|
50
|
+
onMaskDoubleClick: () => void;
|
|
51
|
+
windowData: FcrUIVideoWindowData;
|
|
52
|
+
allowedOperations: string[];
|
|
53
|
+
showActionBottomLabel: boolean;
|
|
54
|
+
isShowActionAudio: boolean;
|
|
55
|
+
actionAudioTag: string;
|
|
56
|
+
}
|
|
57
|
+
export declare const MemberBoard: ({ slot, isMask, onMaskDoubleClick, windowData, allowedOperations, showActionBottomLabel, isShowActionAudio, actionAudioTag, }: MemberBoardProps) => import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
export declare const FcrUIVideoPlayer: (props: {
|
|
59
|
+
isLocal: boolean;
|
|
60
|
+
streamId: string;
|
|
61
|
+
hasVideoStream: boolean;
|
|
62
|
+
videoStreamType: AgoraRtcVideoStreamType;
|
|
63
|
+
renderMode: AgoraRtcRenderMode;
|
|
64
|
+
hasScreenSharing: boolean;
|
|
65
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
export declare const FcrUILocalVideoPlayer: (props: {
|
|
67
|
+
renderMode: AgoraRtcRenderMode;
|
|
68
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export declare const FcrUIRemoteVideoPlayer: ({ streamId, hasVideoStream, videoStreamType, renderMode, hasScreenSharing, }: {
|
|
70
|
+
streamId: string;
|
|
71
|
+
hasVideoStream: boolean;
|
|
72
|
+
videoStreamType: AgoraRtcVideoStreamType;
|
|
73
|
+
renderMode: AgoraRtcRenderMode;
|
|
74
|
+
hasScreenSharing: boolean;
|
|
75
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
export {};
|