fcr-ui-scene 1.0.20 → 3.1.0
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/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/mac/entitlements.mac.plist +16 -0
- package/lib/base.d.ts +12 -0
- package/lib/base.js +78 -0
- package/lib/common/device-store.d.ts +140 -0
- package/lib/common/device-store.js +1378 -0
- package/lib/common/device-stream-store.d.ts +36 -0
- package/lib/common/device-stream-store.js +372 -0
- package/lib/common/device-streams-store.d.ts +34 -0
- package/lib/common/device-streams-store.js +403 -0
- package/lib/common/event-store.d.ts +117 -0
- package/lib/common/event-store.js +235 -0
- package/lib/common/security-store.d.ts +123 -0
- package/lib/common/security-store.js +978 -0
- package/lib/creator.d.ts +8 -0
- package/lib/creator.js +37 -0
- package/lib/fragments/base.d.ts +10 -0
- package/lib/fragments/base.js +44 -0
- package/lib/fragments/control-bar/cloud-recording-buttons.d.ts +1 -0
- package/lib/fragments/control-bar/cloud-recording-buttons.js +67 -0
- package/lib/fragments/control-bar/context.d.ts +3 -0
- package/lib/fragments/control-bar/context.js +9 -0
- package/lib/fragments/control-bar/control-bar-store.d.ts +152 -0
- package/lib/fragments/control-bar/control-bar-store.js +1275 -0
- package/lib/fragments/control-bar/device/index.d.ts +31 -0
- package/lib/fragments/control-bar/device/index.js +203 -0
- package/lib/fragments/control-bar/index.css +276 -0
- package/lib/fragments/control-bar/index.d.ts +26 -0
- package/lib/fragments/control-bar/index.js +223 -0
- package/lib/fragments/control-bar/more-actions/index.css +19 -0
- package/lib/fragments/control-bar/more-actions/index.d.ts +7 -0
- package/lib/fragments/control-bar/more-actions/index.js +259 -0
- package/lib/fragments/control-bar/security-content/index.css +24 -0
- package/lib/fragments/control-bar/security-content/index.d.ts +2 -0
- package/lib/fragments/control-bar/security-content/index.js +145 -0
- package/lib/fragments/control-bar/share-state-nav/index.css +70 -0
- package/lib/fragments/control-bar/share-state-nav/index.d.ts +10 -0
- package/lib/fragments/control-bar/share-state-nav/index.js +134 -0
- package/lib/fragments/control-bar/stop-live-streaming/index.d.ts +1 -0
- package/lib/fragments/control-bar/stop-live-streaming/index.js +82 -0
- package/lib/fragments/control-bar/transfer-position-icon/index.d.ts +11 -0
- package/lib/fragments/control-bar/transfer-position-icon/index.js +46 -0
- package/lib/fragments/control-bar/view.d.ts +1 -0
- package/lib/fragments/control-bar/view.js +321 -0
- package/lib/fragments/live-streaming/context.d.ts +3 -0
- package/lib/fragments/live-streaming/context.js +9 -0
- package/lib/fragments/live-streaming/index.css +11 -0
- package/lib/fragments/live-streaming/index.d.ts +11 -0
- package/lib/fragments/live-streaming/index.js +79 -0
- package/lib/fragments/live-streaming/store.d.ts +21 -0
- package/lib/fragments/live-streaming/store.js +228 -0
- package/lib/fragments/live-streaming/view.d.ts +2 -0
- package/lib/fragments/live-streaming/view.js +44 -0
- package/lib/fragments/participant/context.d.ts +3 -0
- package/lib/fragments/participant/context.js +9 -0
- package/lib/fragments/participant/index.css +20 -0
- package/lib/fragments/participant/index.d.ts +9 -0
- package/lib/fragments/participant/index.js +90 -0
- package/lib/fragments/participant/room-control-drop-menu/index.css +19 -0
- package/lib/fragments/participant/room-control-drop-menu/index.d.ts +2 -0
- package/lib/fragments/participant/room-control-drop-menu/index.js +134 -0
- package/lib/fragments/participant/store.d.ts +34 -0
- package/lib/fragments/participant/store.js +326 -0
- package/lib/fragments/participant/view.d.ts +2 -0
- package/lib/fragments/participant/view.js +86 -0
- package/lib/fragments/share-screen-selection/context.d.ts +3 -0
- package/lib/fragments/share-screen-selection/context.js +9 -0
- package/lib/fragments/share-screen-selection/index.css +66 -0
- package/lib/fragments/share-screen-selection/index.d.ts +9 -0
- package/lib/fragments/share-screen-selection/index.js +94 -0
- package/lib/fragments/share-screen-selection/open-mic-tips.d.ts +9 -0
- package/lib/fragments/share-screen-selection/open-mic-tips.js +55 -0
- package/lib/fragments/share-screen-selection/selection-store.d.ts +35 -0
- package/lib/fragments/share-screen-selection/selection-store.js +351 -0
- package/lib/fragments/share-screen-selection/tips.css +33 -0
- package/lib/fragments/share-screen-selection/view.d.ts +9 -0
- package/lib/fragments/share-screen-selection/view.js +255 -0
- package/lib/fragments/state-bar/index.d.ts +9 -0
- package/lib/fragments/state-bar/index.js +68 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.js +54 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +114 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +75 -0
- package/lib/fragments/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/fragments/toolbar/components/color-picker/index.js +53 -0
- package/lib/fragments/toolbar/components/color-picker.d.ts +2 -0
- package/lib/fragments/toolbar/components/color-picker.js +127 -0
- package/lib/fragments/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/eraser-picker.js +84 -0
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +78 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.js +60 -0
- package/lib/fragments/toolbar/components/fold-icon.d.ts +2 -0
- package/lib/fragments/toolbar/components/fold-icon.js +41 -0
- package/lib/fragments/toolbar/components/history.d.ts +2 -0
- package/lib/fragments/toolbar/components/history.js +46 -0
- package/lib/fragments/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/pen-picker.js +132 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.js +84 -0
- package/lib/fragments/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/shape-picker.js +146 -0
- package/lib/fragments/toolbar/components/toolbar-item.d.ts +1 -0
- package/lib/fragments/toolbar/components/toolbar-item.js +42 -0
- package/lib/fragments/toolbar/components/wrapper.d.ts +1 -0
- package/lib/fragments/toolbar/components/wrapper.js +138 -0
- package/lib/fragments/toolbar/hooks.d.ts +16 -0
- package/lib/fragments/toolbar/hooks.js +251 -0
- package/lib/fragments/toolbar/index.d.ts +12 -0
- package/lib/fragments/toolbar/index.js +80 -0
- package/lib/fragments/toolbar/store.d.ts +62 -0
- package/lib/fragments/toolbar/store.js +279 -0
- package/lib/fragments/toolbar/style.css +347 -0
- package/lib/fragments/toolbar/view.d.ts +1 -0
- package/lib/fragments/toolbar/view.js +34 -0
- package/lib/fragments/type.d.ts +2 -0
- package/lib/fragments/type.js +6 -0
- package/lib/global.d.ts +8 -0
- package/lib/hooks/i18n.d.ts +4 -0
- package/lib/hooks/i18n.js +18 -0
- package/lib/hooks/meeting-time.d.ts +15 -0
- package/lib/hooks/meeting-time.js +92 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +52 -0
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +17 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +199 -0
- package/lib/modules/action-bar/board/index.d.ts +4 -0
- package/lib/modules/action-bar/board/index.js +34 -0
- package/lib/modules/action-bar/breakout-room/index.d.ts +4 -0
- package/lib/modules/action-bar/breakout-room/index.js +32 -0
- package/lib/modules/action-bar/chat/index.css +80 -0
- package/lib/modules/action-bar/chat/index.d.ts +5 -0
- package/lib/modules/action-bar/chat/index.js +152 -0
- package/lib/modules/action-bar/context.d.ts +3 -0
- package/lib/modules/action-bar/context.js +9 -0
- package/lib/modules/action-bar/device/index.css +157 -0
- package/lib/modules/action-bar/device/index.d.ts +8 -0
- package/lib/modules/action-bar/device/index.js +611 -0
- package/lib/modules/action-bar/index.css +212 -0
- package/lib/modules/action-bar/index.d.ts +25 -0
- package/lib/modules/action-bar/index.dev.d.ts +1 -0
- package/lib/modules/action-bar/index.dev.js +96 -0
- package/lib/modules/action-bar/index.js +89 -0
- package/lib/modules/action-bar/item-placement.d.ts +8 -0
- package/lib/modules/action-bar/item-placement.js +18 -0
- package/lib/modules/action-bar/item.d.ts +27 -0
- package/lib/modules/action-bar/item.js +154 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +7 -0
- package/lib/modules/action-bar/leave/assign-host.js +64 -0
- package/lib/modules/action-bar/leave/index.css +116 -0
- package/lib/modules/action-bar/leave/index.d.ts +3 -0
- package/lib/modules/action-bar/leave/index.js +110 -0
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +6 -0
- package/lib/modules/action-bar/leave/leave-meeting.js +135 -0
- package/lib/modules/action-bar/live-streaming/index.d.ts +4 -0
- package/lib/modules/action-bar/live-streaming/index.js +39 -0
- package/lib/modules/action-bar/more/index.css +114 -0
- package/lib/modules/action-bar/more/index.d.ts +5 -0
- package/lib/modules/action-bar/more/index.js +80 -0
- package/lib/modules/action-bar/more/poppover-content.d.ts +8 -0
- package/lib/modules/action-bar/more/poppover-content.js +369 -0
- package/lib/modules/action-bar/participants/index.css +9 -0
- package/lib/modules/action-bar/participants/index.d.ts +5 -0
- package/lib/modules/action-bar/participants/index.js +75 -0
- package/lib/modules/action-bar/record/index.css +39 -0
- package/lib/modules/action-bar/record/index.d.ts +5 -0
- package/lib/modules/action-bar/record/index.js +161 -0
- package/lib/modules/action-bar/record/stop-record-dialog.d.ts +5 -0
- package/lib/modules/action-bar/record/stop-record-dialog.js +48 -0
- package/lib/modules/action-bar/respond/index.d.ts +4 -0
- package/lib/modules/action-bar/respond/index.js +32 -0
- package/lib/modules/action-bar/screen-share/index.d.ts +4 -0
- package/lib/modules/action-bar/screen-share/index.js +97 -0
- package/lib/modules/action-bar/screen-share/submenu.d.ts +1 -0
- package/lib/modules/action-bar/screen-share/submenu.js +159 -0
- package/lib/modules/action-bar/security/drop-menu.d.ts +1 -0
- package/lib/modules/action-bar/security/drop-menu.js +164 -0
- package/lib/modules/action-bar/security/index.d.ts +4 -0
- package/lib/modules/action-bar/security/index.js +50 -0
- package/lib/modules/action-bar/settings/index.d.ts +4 -0
- package/lib/modules/action-bar/settings/index.js +41 -0
- package/lib/modules/action-bar/smaller.d.ts +1 -0
- package/lib/modules/action-bar/smaller.js +52 -0
- package/lib/modules/action-bar/store.d.ts +177 -0
- package/lib/modules/action-bar/store.js +1179 -0
- package/lib/modules/action-bar/type.d.ts +6 -0
- package/lib/modules/action-bar/type.js +13 -0
- package/lib/modules/action-bar/view.d.ts +5 -0
- package/lib/modules/action-bar/view.js +80 -0
- package/lib/modules/audio-stream/index.d.ts +21 -0
- package/lib/modules/audio-stream/index.js +119 -0
- package/lib/modules/chat/chat-bar/index.css +79 -0
- package/lib/modules/chat/chat-bar/index.d.ts +11 -0
- package/lib/modules/chat/chat-bar/index.js +125 -0
- package/lib/modules/chat/chat-select/index.css +156 -0
- package/lib/modules/chat/chat-select/index.d.ts +12 -0
- package/lib/modules/chat/chat-select/index.js +186 -0
- package/lib/modules/chat/chat.d.ts +12 -0
- package/lib/modules/chat/chat.js +295 -0
- package/lib/modules/chat/contex.d.ts +3 -0
- package/lib/modules/chat/contex.js +9 -0
- package/lib/modules/chat/demo-wrapper.d.ts +1 -0
- package/lib/modules/chat/demo-wrapper.js +42 -0
- package/lib/modules/chat/index.css +17 -0
- package/lib/modules/chat/index.d.ts +29 -0
- package/lib/modules/chat/index.dev.d.ts +1 -0
- package/lib/modules/chat/index.dev.js +58 -0
- package/lib/modules/chat/index.js +189 -0
- package/lib/modules/chat/message-list.d.ts +22 -0
- package/lib/modules/chat/message-list.js +595 -0
- package/lib/modules/chat/mock.d.ts +2 -0
- package/lib/modules/chat/mock.js +283 -0
- package/lib/modules/chat/store.d.ts +132 -0
- package/lib/modules/chat/store.js +923 -0
- package/lib/modules/chat/util.d.ts +6 -0
- package/lib/modules/chat/util.js +69 -0
- package/lib/modules/connection-gateway/components/computer/index.css +11 -0
- package/lib/modules/connection-gateway/components/computer/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/computer/index.js +66 -0
- package/lib/modules/connection-gateway/components/computer/menu.d.ts +0 -0
- package/lib/modules/connection-gateway/components/computer/menu.js +1 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +36 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +10 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +75 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.css +72 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.d.ts +7 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.js +58 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +10 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.d.ts +5 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.js +24 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.css +46 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.js +36 -0
- package/lib/modules/connection-gateway/components/phone/index.css +49 -0
- package/lib/modules/connection-gateway/components/phone/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/phone/index.js +181 -0
- package/lib/modules/connection-gateway/components/tabs/index.css +31 -0
- package/lib/modules/connection-gateway/components/tabs/index.d.ts +4 -0
- package/lib/modules/connection-gateway/components/tabs/index.js +43 -0
- package/lib/modules/connection-gateway/index.css +6 -0
- package/lib/modules/connection-gateway/index.d.ts +16 -0
- package/lib/modules/connection-gateway/index.js +67 -0
- package/lib/modules/connection-gateway/store.d.ts +80 -0
- package/lib/modules/connection-gateway/store.js +698 -0
- package/lib/modules/connection-gateway/view.d.ts +1 -0
- package/lib/modules/connection-gateway/view.js +22 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.d.ts +13 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.js +15 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +12 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +71 -0
- package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +1 -0
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +63 -0
- package/lib/modules/device-pretest/audio-preview/speaker-detection.d.ts +12 -0
- package/lib/modules/device-pretest/audio-preview/speaker-detection.js +71 -0
- package/lib/modules/device-pretest/context.d.ts +3 -0
- package/lib/modules/device-pretest/context.js +9 -0
- package/lib/modules/device-pretest/index.css +127 -0
- package/lib/modules/device-pretest/index.d.ts +12 -0
- package/lib/modules/device-pretest/index.js +242 -0
- package/lib/modules/device-pretest/settings/beauty.d.ts +10 -0
- package/lib/modules/device-pretest/settings/beauty.js +103 -0
- package/lib/modules/device-pretest/settings/camera-select.d.ts +12 -0
- package/lib/modules/device-pretest/settings/camera-select.js +53 -0
- package/lib/modules/device-pretest/settings/index.css +15 -0
- package/lib/modules/device-pretest/settings/video-effect.d.ts +11 -0
- package/lib/modules/device-pretest/settings/video-effect.js +50 -0
- package/lib/modules/device-pretest/settings/video-settings-basic.d.ts +2 -0
- package/lib/modules/device-pretest/settings/video-settings-basic.js +143 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.d.ts +7 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +99 -0
- package/lib/modules/device-pretest/store.d.ts +69 -0
- package/lib/modules/device-pretest/store.js +413 -0
- package/lib/modules/device-settings/audio-settings/audio-settings.d.ts +4 -0
- package/lib/modules/device-settings/audio-settings/audio-settings.js +297 -0
- package/lib/modules/device-settings/audio-settings/index.css +139 -0
- package/lib/modules/device-settings/audio-settings/microphone-detection.d.ts +2 -0
- package/lib/modules/device-settings/audio-settings/microphone-detection.js +68 -0
- package/lib/modules/device-settings/audio-settings/speaker-detection.d.ts +2 -0
- package/lib/modules/device-settings/audio-settings/speaker-detection.js +72 -0
- package/lib/{fcr-ui-scene/src/containers/stream-window/index.d.ts → modules/device-settings/common/advance-link.d.ts} +1 -1
- package/lib/modules/device-settings/common/advance-link.js +27 -0
- package/lib/modules/device-settings/common/index.css +26 -0
- package/lib/modules/device-settings/common/useNamespace.d.ts +15 -0
- package/lib/modules/device-settings/common/useNamespace.js +66 -0
- package/lib/modules/device-settings/context.d.ts +3 -0
- package/lib/modules/device-settings/context.js +9 -0
- package/lib/modules/device-settings/dialog-wrapper.d.ts +2 -0
- package/lib/modules/device-settings/dialog-wrapper.js +110 -0
- package/lib/modules/device-settings/general-settings/general-settings.d.ts +4 -0
- package/lib/modules/device-settings/general-settings/general-settings.js +66 -0
- package/lib/modules/device-settings/general-settings/index.css +26 -0
- package/lib/modules/device-settings/index.css +109 -0
- package/lib/modules/device-settings/index.d.ts +21 -0
- package/lib/modules/device-settings/index.dev.d.ts +1 -0
- package/lib/modules/device-settings/index.dev.js +112 -0
- package/lib/modules/device-settings/index.js +84 -0
- package/lib/modules/device-settings/state/index.css +211 -0
- package/lib/modules/device-settings/state/index.d.ts +4 -0
- package/lib/modules/device-settings/state/index.js +330 -0
- package/lib/modules/device-settings/storage-settings/index.css +91 -0
- package/lib/modules/device-settings/storage-settings/storage-settings.d.ts +3 -0
- package/lib/modules/device-settings/storage-settings/storage-settings.js +84 -0
- package/lib/modules/device-settings/store.d.ts +205 -0
- package/lib/modules/device-settings/store.js +1035 -0
- package/lib/modules/device-settings/video-settings/camera-select.d.ts +2 -0
- package/lib/modules/device-settings/video-settings/camera-select.js +51 -0
- package/lib/modules/device-settings/video-settings/index.css +327 -0
- package/lib/modules/device-settings/video-settings/local-video-player.d.ts +3 -0
- package/lib/modules/device-settings/video-settings/local-video-player.js +37 -0
- package/lib/modules/device-settings/video-settings/mirror-toggle.d.ts +2 -0
- package/lib/modules/device-settings/video-settings/mirror-toggle.js +62 -0
- package/lib/modules/device-settings/video-settings/video-settings-basic.d.ts +9 -0
- package/lib/modules/device-settings/video-settings/video-settings-basic.js +177 -0
- package/lib/modules/device-settings/video-settings/video-settings.d.ts +6 -0
- package/lib/modules/device-settings/video-settings/video-settings.js +185 -0
- package/lib/modules/device-settings/view.d.ts +10 -0
- package/lib/modules/device-settings/view.js +193 -0
- package/lib/modules/dialog/components/chat/electron.d.ts +4 -0
- package/lib/modules/dialog/components/chat/electron.js +59 -0
- package/lib/modules/dialog/components/chat/index.d.ts +7 -0
- package/lib/modules/dialog/components/chat/index.js +66 -0
- package/lib/modules/dialog/components/confirm/electron.d.ts +10 -0
- package/lib/modules/dialog/components/confirm/electron.js +84 -0
- package/lib/modules/dialog/components/confirm/index.d.ts +10 -0
- package/lib/modules/dialog/components/confirm/index.js +75 -0
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +2 -0
- package/lib/modules/dialog/components/connection-gateway/electron.js +62 -0
- package/lib/modules/dialog/components/connection-gateway/index.css +27 -0
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -0
- package/lib/modules/dialog/components/connection-gateway/index.js +74 -0
- package/lib/modules/dialog/components/participant/electron.d.ts +2 -0
- package/lib/modules/dialog/components/participant/electron.js +85 -0
- package/lib/modules/dialog/components/participant/index.d.ts +3 -0
- package/lib/modules/dialog/components/participant/index.js +61 -0
- package/lib/modules/dialog/components/share-screen-selection/index.d.ts +4 -0
- package/lib/modules/dialog/components/share-screen-selection/index.js +42 -0
- package/lib/modules/dialog/components/whiteboard/index.d.ts +4 -0
- package/lib/modules/dialog/components/whiteboard/index.js +74 -0
- package/lib/modules/dialog/context.d.ts +3 -0
- package/lib/modules/dialog/context.js +9 -0
- package/lib/modules/dialog/dialogs.d.ts +11 -0
- package/lib/modules/dialog/dialogs.js +376 -0
- package/lib/modules/dialog/index.css +55 -0
- package/lib/modules/dialog/index.d.ts +29 -0
- package/lib/modules/dialog/index.js +80 -0
- package/lib/modules/dialog/store.d.ts +82 -0
- package/lib/modules/dialog/store.js +525 -0
- package/lib/modules/dialog/view.d.ts +5 -0
- package/lib/modules/dialog/view.js +30 -0
- package/lib/modules/event-toast/context.d.ts +3 -0
- package/lib/modules/event-toast/context.js +9 -0
- package/lib/modules/event-toast/index.d.ts +10 -0
- package/lib/modules/event-toast/index.js +41 -0
- package/lib/modules/event-toast/store.d.ts +9 -0
- package/lib/modules/event-toast/store.js +76 -0
- package/lib/modules/event-toast/view.d.ts +1 -0
- package/lib/modules/event-toast/view.js +14 -0
- package/lib/modules/invite/context.d.ts +3 -0
- package/lib/modules/invite/context.js +9 -0
- package/lib/modules/invite/index.css +318 -0
- package/lib/modules/invite/index.d.ts +13 -0
- package/lib/modules/invite/index.js +51 -0
- package/lib/modules/invite/pstn-invite.d.ts +2 -0
- package/lib/modules/invite/pstn-invite.js +271 -0
- package/lib/modules/invite/store.d.ts +71 -0
- package/lib/modules/invite/store.js +472 -0
- package/lib/modules/invite/view.d.ts +1 -0
- package/lib/modules/invite/view.js +47 -0
- package/lib/modules/invite/voip-invite.d.ts +1 -0
- package/lib/modules/invite/voip-invite.js +294 -0
- package/lib/modules/layout/components/Aside.d.ts +6 -0
- package/lib/modules/layout/components/Aside.js +144 -0
- package/lib/modules/layout/components/Carousel.d.ts +1 -0
- package/lib/modules/layout/components/Carousel.js +271 -0
- package/lib/modules/layout/components/Gallery.d.ts +1 -0
- package/lib/modules/layout/components/Gallery.js +360 -0
- package/lib/modules/layout/components/Layout.d.ts +2 -0
- package/lib/modules/layout/components/Layout.js +160 -0
- package/lib/modules/layout/components/UserWindow.d.ts +8 -0
- package/lib/modules/layout/components/UserWindow.js +513 -0
- package/lib/modules/layout/components/index.css +608 -0
- package/lib/modules/layout/components/index.d.ts +5 -0
- package/lib/modules/layout/components/index.js +55 -0
- package/lib/modules/layout/components/utils.d.ts +1 -0
- package/lib/modules/layout/components/utils.js +10 -0
- package/lib/modules/layout/context.d.ts +3 -0
- package/lib/modules/layout/context.js +9 -0
- package/lib/modules/layout/hooks.d.ts +14 -0
- package/lib/modules/layout/hooks.js +48 -0
- package/lib/modules/layout/index.css +27 -0
- package/lib/modules/layout/index.d.ts +10 -0
- package/lib/modules/layout/index.dev.d.ts +1 -0
- package/lib/modules/layout/index.dev.js +378 -0
- package/lib/modules/layout/index.js +72 -0
- package/lib/modules/layout/member-window/index.css +321 -0
- package/lib/modules/layout/member-window/index.d.ts +66 -0
- package/lib/modules/layout/member-window/index.js +730 -0
- package/lib/modules/layout/store.d.ts +176 -0
- package/lib/modules/layout/store.js +1278 -0
- package/lib/modules/layout/type.d.ts +64 -0
- package/lib/modules/layout/type.js +52 -0
- package/lib/modules/layout/video-window-datasource.d.ts +119 -0
- package/lib/modules/layout/video-window-datasource.js +1031 -0
- package/lib/modules/layout/view.d.ts +2 -0
- package/lib/modules/layout/view.js +10 -0
- package/lib/modules/live-streaming/context.d.ts +3 -0
- package/lib/modules/live-streaming/context.js +9 -0
- package/lib/modules/live-streaming/index.css +0 -0
- package/lib/modules/live-streaming/index.d.ts +13 -0
- package/lib/modules/live-streaming/index.dev.d.ts +1 -0
- package/lib/modules/live-streaming/index.dev.js +59 -0
- package/lib/modules/live-streaming/index.js +76 -0
- package/lib/modules/live-streaming/store.d.ts +38 -0
- package/lib/modules/live-streaming/store.js +360 -0
- package/lib/modules/live-streaming/view.d.ts +1 -0
- package/lib/modules/live-streaming/view.js +33 -0
- package/lib/modules/participant/attendee/index.css +14 -0
- package/lib/modules/participant/attendee/index.d.ts +19 -0
- package/lib/modules/participant/attendee/index.js +280 -0
- package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
- package/lib/modules/participant/attendee/participants-more-action.js +275 -0
- package/lib/modules/participant/attendee/user-more-actions.d.ts +22 -0
- package/lib/modules/participant/attendee/user-more-actions.js +76 -0
- package/lib/modules/participant/can-moveable/index.d.ts +1 -0
- package/lib/modules/participant/can-moveable/index.js +68 -0
- package/lib/modules/participant/context.d.ts +3 -0
- package/lib/modules/participant/context.js +9 -0
- package/lib/modules/participant/index.css +58 -0
- package/lib/modules/participant/index.d.ts +25 -0
- package/lib/modules/participant/index.dev.d.ts +1 -0
- package/lib/modules/participant/index.dev.js +98 -0
- package/lib/modules/participant/index.js +93 -0
- package/lib/modules/participant/member-list-data-source.d.ts +28 -0
- package/lib/modules/participant/member-list-data-source.js +261 -0
- package/lib/modules/participant/room-control-drop-menu/index.css +19 -0
- package/lib/modules/participant/room-control-drop-menu/index.d.ts +2 -0
- package/lib/modules/participant/room-control-drop-menu/index.js +154 -0
- package/lib/modules/participant/store.d.ts +145 -0
- package/lib/modules/participant/store.js +1334 -0
- package/lib/modules/participant/type.d.ts +34 -0
- package/lib/modules/participant/type.js +22 -0
- package/lib/modules/participant/view.d.ts +11 -0
- package/lib/modules/participant/view.js +260 -0
- package/lib/modules/setting/audio-settings/audio-settings.d.ts +4 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +303 -0
- package/lib/modules/setting/audio-settings/index.css +144 -0
- package/lib/modules/setting/common/advance-link.d.ts +3 -0
- package/lib/modules/setting/common/advance-link.js +27 -0
- package/lib/modules/setting/common/index.css +26 -0
- package/lib/modules/setting/common/useNamespace.d.ts +15 -0
- package/lib/modules/setting/common/useNamespace.js +66 -0
- package/lib/modules/setting/config.d.ts +16 -0
- package/lib/modules/setting/config.js +17 -0
- package/lib/modules/setting/context.d.ts +3 -0
- package/lib/modules/setting/context.js +9 -0
- package/lib/modules/setting/dialog-wrapper.d.ts +2 -0
- package/lib/modules/setting/dialog-wrapper.js +110 -0
- package/lib/modules/setting/general-settings/general-settings.d.ts +4 -0
- package/lib/modules/setting/general-settings/general-settings.js +66 -0
- package/lib/modules/setting/general-settings/index.css +26 -0
- package/lib/modules/setting/index.css +115 -0
- package/lib/modules/setting/index.d.ts +21 -0
- package/lib/modules/setting/index.dev.d.ts +1 -0
- package/lib/modules/setting/index.dev.js +71 -0
- package/lib/modules/setting/index.js +81 -0
- package/lib/modules/setting/state/index.css +211 -0
- package/lib/modules/setting/state/index.d.ts +4 -0
- package/lib/modules/setting/state/index.js +331 -0
- package/lib/modules/setting/storage-settings/index.css +91 -0
- package/lib/modules/setting/storage-settings/storage-settings.d.ts +3 -0
- package/lib/modules/setting/storage-settings/storage-settings.js +84 -0
- package/lib/modules/setting/store.d.ts +213 -0
- package/lib/modules/setting/store.js +1125 -0
- package/lib/modules/setting/video-settings/index.css +339 -0
- package/lib/modules/setting/video-settings/video-settings-basic.d.ts +9 -0
- package/lib/modules/setting/video-settings/video-settings-basic.js +160 -0
- package/lib/modules/setting/video-settings/video-settings.d.ts +10 -0
- package/lib/modules/setting/video-settings/video-settings.js +191 -0
- package/lib/modules/setting/view.d.ts +10 -0
- package/lib/modules/setting/view.js +139 -0
- package/lib/modules/share-screen/context.d.ts +3 -0
- package/lib/modules/share-screen/context.js +9 -0
- package/lib/modules/share-screen/index.css +0 -0
- package/lib/modules/share-screen/index.d.ts +26 -0
- package/lib/modules/share-screen/index.dev.d.ts +1 -0
- package/lib/modules/share-screen/index.dev.js +96 -0
- package/lib/modules/share-screen/index.js +171 -0
- package/lib/modules/share-screen/selection/index.css +66 -0
- package/lib/modules/share-screen/selection/index.d.ts +9 -0
- package/lib/modules/share-screen/selection/index.js +224 -0
- package/lib/modules/share-screen/share-state-bar/index.css +38 -0
- package/lib/modules/share-screen/share-state-bar/index.d.ts +5 -0
- package/lib/modules/share-screen/share-state-bar/index.js +67 -0
- package/lib/modules/share-screen/store.d.ts +132 -0
- package/lib/modules/share-screen/store.js +1714 -0
- package/lib/modules/share-screen/view.d.ts +2 -0
- package/lib/modules/share-screen/view.js +45 -0
- package/lib/modules/state-bar/assets/fcr_grid_big.svg +3 -0
- package/lib/modules/state-bar/assets/fcr_listontop_big.svg +3 -0
- package/lib/modules/state-bar/assets/live-streaming.gif +0 -0
- package/lib/modules/state-bar/context.d.ts +3 -0
- package/lib/modules/state-bar/context.js +9 -0
- package/lib/modules/state-bar/index.css +630 -0
- package/lib/modules/state-bar/index.d.ts +18 -0
- package/lib/modules/state-bar/index.dev.d.ts +1 -0
- package/lib/modules/state-bar/index.dev.js +82 -0
- package/lib/modules/state-bar/index.js +69 -0
- package/lib/modules/state-bar/layout-config.d.ts +5 -0
- package/lib/modules/state-bar/layout-config.js +151 -0
- package/lib/modules/state-bar/live-streaming-state.d.ts +1 -0
- package/lib/modules/state-bar/live-streaming-state.js +199 -0
- package/lib/modules/state-bar/meeting-detail.css +107 -0
- package/lib/modules/state-bar/meeting-details.d.ts +2 -0
- package/lib/modules/state-bar/meeting-details.js +151 -0
- package/lib/modules/state-bar/meeting-network-state.css +131 -0
- package/lib/modules/state-bar/meeting-network-state.d.ts +2 -0
- package/lib/modules/state-bar/meeting-network-state.js +108 -0
- package/lib/modules/state-bar/meeting-time.d.ts +2 -0
- package/lib/modules/state-bar/meeting-time.js +49 -0
- package/lib/modules/state-bar/network-quality.d.ts +2 -0
- package/lib/modules/state-bar/network-quality.js +33 -0
- package/lib/modules/state-bar/recording.d.ts +1 -0
- package/lib/modules/state-bar/recording.js +110 -0
- package/lib/modules/state-bar/store.d.ts +70 -0
- package/lib/modules/state-bar/store.js +515 -0
- package/lib/modules/state-bar/view.d.ts +5 -0
- package/lib/modules/state-bar/view.js +182 -0
- package/lib/modules/video-window/context.d.ts +3 -0
- package/lib/modules/video-window/context.js +9 -0
- package/lib/modules/video-window/deviceState/index.d.ts +15 -0
- package/lib/modules/video-window/deviceState/index.js +77 -0
- package/lib/modules/video-window/index.css +17 -0
- package/lib/modules/video-window/index.d.ts +9 -0
- package/lib/modules/video-window/index.js +65 -0
- package/lib/modules/video-window/members/index.css +50 -0
- package/lib/modules/video-window/members/index.d.ts +2 -0
- package/lib/modules/video-window/members/index.js +134 -0
- package/lib/modules/video-window/speaking/index.css +69 -0
- package/lib/modules/video-window/speaking/index.d.ts +3 -0
- package/lib/modules/video-window/speaking/index.js +57 -0
- package/lib/modules/video-window/store.d.ts +88 -0
- package/lib/modules/video-window/store.js +598 -0
- package/lib/modules/video-window/topControl/index.css +35 -0
- package/lib/modules/video-window/topControl/index.d.ts +3 -0
- package/lib/modules/video-window/topControl/index.js +85 -0
- package/lib/modules/video-window/type.d.ts +23 -0
- package/lib/modules/video-window/type.js +32 -0
- package/lib/modules/video-window/view.d.ts +2 -0
- package/lib/modules/video-window/view.js +63 -0
- package/lib/modules/whiteboard/app.d.ts +2 -0
- package/lib/modules/whiteboard/app.js +55 -0
- package/lib/modules/whiteboard/components/control-bar/index.css +49 -0
- package/lib/modules/whiteboard/components/control-bar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/control-bar/index.js +163 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +36 -0
- package/lib/modules/whiteboard/components/control-bar/store.js +288 -0
- package/lib/modules/whiteboard/components/loading/index.css +76 -0
- package/lib/modules/whiteboard/components/loading/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/loading/index.js +68 -0
- package/lib/modules/whiteboard/components/loading/loading.png +0 -0
- package/lib/modules/whiteboard/components/multi-window/index.css +63 -0
- package/lib/modules/whiteboard/components/multi-window/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/multi-window/index.js +34 -0
- package/lib/modules/whiteboard/components/pagination/index.css +228 -0
- package/lib/modules/whiteboard/components/pagination/index.d.ts +15 -0
- package/lib/modules/whiteboard/components/pagination/index.js +163 -0
- package/lib/modules/whiteboard/components/pagination/store.d.ts +19 -0
- package/lib/modules/whiteboard/components/pagination/store.js +17 -0
- package/lib/modules/whiteboard/components/progress/electron.d.ts +1 -0
- package/lib/modules/whiteboard/components/progress/electron.js +32 -0
- package/lib/modules/whiteboard/components/progress/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/progress/index.js +43 -0
- package/lib/modules/whiteboard/components/progress/style.css +50 -0
- package/lib/modules/whiteboard/components/scene-pagination.d.ts +1 -0
- package/lib/modules/whiteboard/components/scene-pagination.js +32 -0
- package/lib/modules/whiteboard/components/switch-theme/index.css +94 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +77 -0
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +8 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +44 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +3 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.js +28 -0
- package/lib/modules/whiteboard/components/toolbar/ style.css +588 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +39 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +105 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +63 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +44 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +98 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +59 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +41 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.js +66 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +131 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +112 -0
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +74 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +163 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +211 -0
- package/lib/modules/whiteboard/components/toolbar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/index.js +175 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +50 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +224 -0
- package/lib/modules/whiteboard/context.d.ts +66 -0
- package/lib/modules/whiteboard/context.js +34 -0
- package/lib/modules/whiteboard/i18n/config.d.ts +1 -0
- package/lib/modules/whiteboard/i18n/config.js +15 -0
- package/lib/modules/whiteboard/i18n/en/index.d.ts +32 -0
- package/lib/modules/whiteboard/i18n/en/index.js +38 -0
- package/lib/modules/whiteboard/i18n/zh/index.d.ts +32 -0
- package/lib/modules/whiteboard/i18n/zh/index.js +38 -0
- package/lib/modules/whiteboard/index.d.ts +114 -0
- package/lib/modules/whiteboard/index.js +1082 -0
- package/lib/modules/whiteboard/style.css +142 -0
- package/lib/modules/whiteboard/type.d.ts +96 -0
- package/lib/modules/whiteboard/type.js +94 -0
- package/lib/modules/whiteboard/utils.d.ts +11 -0
- package/lib/modules/whiteboard/utils.js +25 -0
- package/lib/plugins/browser-runtime-plugin.d.ts +0 -0
- package/lib/plugins/browser-runtime-plugin.js +70 -0
- package/lib/plugins/css-preset-plugin.d.ts +1 -0
- package/lib/plugins/css-preset-plugin.js +22 -0
- package/lib/plugins/electron-rtc-plugin.d.ts +1 -0
- package/lib/plugins/electron-rtc-plugin.js +5 -0
- package/lib/plugins/module-dev-plugin.d.ts +12 -0
- package/lib/plugins/module-dev-plugin.js +181 -0
- package/lib/plugins/multi-lang-plugin.d.ts +5 -0
- package/lib/plugins/multi-lang-plugin.js +17 -0
- package/lib/plugins/rtm-plugin.d.ts +1 -0
- package/lib/plugins/rtm-plugin.js +5 -0
- package/lib/plugins/web-rtc-plugin.d.ts +1 -0
- package/lib/plugins/web-rtc-plugin.js +5 -0
- package/lib/translations/enUS.d.ts +993 -0
- package/lib/translations/enUS.js +1016 -0
- package/lib/translations/zhCN.d.ts +993 -0
- package/lib/translations/zhCN.js +1016 -0
- package/lib/type.d.ts +107 -0
- package/lib/type.js +42 -0
- package/lib/ui-manager.d.ts +17 -0
- package/lib/ui-manager.js +555 -0
- package/lib/ui-scene.d.ts +13 -0
- package/lib/ui-scene.js +142 -0
- package/lib/utilities/board-context.d.ts +5 -0
- package/lib/utilities/board-context.js +12 -0
- package/lib/utilities/constant.d.ts +248 -0
- package/lib/utilities/constant.js +232 -0
- package/lib/utilities/copyText.d.ts +2 -0
- package/lib/utilities/copyText.js +43 -0
- package/lib/utilities/default-config.d.ts +32 -0
- package/lib/utilities/default-config.js +39 -0
- package/lib/utilities/extract.d.ts +5 -0
- package/lib/utilities/extract.js +97 -0
- package/lib/utilities/hooks.d.ts +14 -0
- package/lib/utilities/hooks.js +99 -0
- package/lib/utilities/mute-action.d.ts +4 -0
- package/lib/utilities/mute-action.js +48 -0
- package/lib/utilities/parameters.d.ts +7 -0
- package/lib/utilities/parameters.js +20 -0
- package/lib/utilities/platform.d.ts +1 -0
- package/lib/utilities/platform.js +11 -0
- package/lib/utilities/regex.d.ts +1 -0
- package/lib/utilities/regex.js +14 -0
- package/lib/utilities/renderer-event.d.ts +9 -0
- package/lib/utilities/renderer-event.js +76 -0
- package/lib/utilities/renderer.d.ts +23 -0
- package/lib/utilities/renderer.js +109 -0
- package/lib/utilities/screen.d.ts +3 -0
- package/lib/utilities/screen.js +41 -0
- package/lib/utilities/tools.d.ts +25 -0
- package/lib/utilities/tools.js +164 -0
- package/lib/utilities/ui-resources.d.ts +2 -0
- package/lib/utilities/ui-resources.js +9 -0
- package/lib/utilities/useNamespace.d.ts +15 -0
- package/lib/utilities/useNamespace.js +66 -0
- package/lib/utilities/video-track-render-context.d.ts +8 -0
- package/lib/utilities/video-track-render-context.js +9 -0
- package/package.json +59 -84
- package/public/assets/fcr_chat_reddot.svg +5 -0
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/fcr_grid_big.svg +3 -0
- package/public/assets/fcr_listontop_big.svg +3 -0
- package/public/assets/pretest.mp3 +0 -0
- package/public/assets/state-bar-logo.png +0 -0
- package/public/assets/step-gradient.svg +10 -0
- package/public/extensions/agora-extension-virtual-background/agora-wasm.wasm +0 -0
- package/public/extensions/ai-denoiser/denoiser-wasm-simd.wasm +0 -0
- package/public/extensions/ai-denoiser/denoiser-wasm.js +1 -0
- package/public/extensions/ai-denoiser/denoiser-wasm.wasm +0 -0
- package/public/index.html +26 -0
- package/lib/fcr-ui-kit/src/components/avatar/helper.d.ts +0 -2
- package/lib/fcr-ui-kit/src/components/avatar/index.d.ts +0 -8
- package/lib/fcr-ui-kit/src/components/button/index.d.ts +0 -82
- package/lib/fcr-ui-kit/src/components/checkbox/index.d.ts +0 -12
- package/lib/fcr-ui-kit/src/components/dialog/class-dialog.d.ts +0 -51
- package/lib/fcr-ui-kit/src/components/dialog/confirm-dialog.d.ts +0 -70
- package/lib/fcr-ui-kit/src/components/dialog/global-dialog.d.ts +0 -11
- package/lib/fcr-ui-kit/src/components/dialog/index.d.ts +0 -68
- package/lib/fcr-ui-kit/src/components/dropdown/index.d.ts +0 -58
- package/lib/fcr-ui-kit/src/components/input/index.d.ts +0 -69
- package/lib/fcr-ui-kit/src/components/input-number/index.d.ts +0 -69
- package/lib/fcr-ui-kit/src/components/pagination/index.d.ts +0 -27
- package/lib/fcr-ui-kit/src/components/popover/index.d.ts +0 -47
- package/lib/fcr-ui-kit/src/components/progress/index.d.ts +0 -11
- package/lib/fcr-ui-kit/src/components/radio/index.d.ts +0 -21
- package/lib/fcr-ui-kit/src/components/slider/index.d.ts +0 -22
- package/lib/fcr-ui-kit/src/components/sound-player/index.d.ts +0 -6
- package/lib/fcr-ui-kit/src/components/svg-img/clickable-icon.d.ts +0 -25
- package/lib/fcr-ui-kit/src/components/svg-img/index.d.ts +0 -15
- package/lib/fcr-ui-kit/src/components/svg-img/mic.d.ts +0 -5
- package/lib/fcr-ui-kit/src/components/svg-img/svg-dict.d.ts +0 -12
- package/lib/fcr-ui-kit/src/components/svg-img/type.d.ts +0 -196
- package/lib/fcr-ui-kit/src/components/svga-player/index.d.ts +0 -15
- package/lib/fcr-ui-kit/src/components/svga-player/svga-types.d.ts +0 -1
- package/lib/fcr-ui-kit/src/components/table/index.d.ts +0 -9
- package/lib/fcr-ui-kit/src/components/tabs/index.d.ts +0 -14
- package/lib/fcr-ui-kit/src/components/textarea/helper.d.ts +0 -2
- package/lib/fcr-ui-kit/src/components/textarea/index.d.ts +0 -100
- package/lib/fcr-ui-kit/src/components/toast/index.d.ts +0 -122
- package/lib/fcr-ui-kit/src/components/tooltip/dialog.d.ts +0 -19
- package/lib/fcr-ui-kit/src/components/tooltip/index.d.ts +0 -89
- package/lib/fcr-ui-kit/src/components/tooltip/info.d.ts +0 -6
- package/lib/fcr-ui-kit/src/components/volume/index.d.ts +0 -8
- package/lib/fcr-ui-kit/src/utils/click-anywhere.d.ts +0 -1
- package/lib/fcr-ui-kit/src/utils/hooks/animations.d.ts +0 -14
- package/lib/fcr-ui-kit/src/utils/hooks/use-click-anywhere.d.ts +0 -2
- package/lib/fcr-ui-kit/src/utils/tailwindcss.d.ts +0 -3
- package/lib/fcr-ui-scene/src/app.d.ts +0 -5
- package/lib/fcr-ui-scene/src/configs/base-theme.d.ts +0 -391
- package/lib/fcr-ui-scene/src/configs/base-ui.d.ts +0 -12
- package/lib/fcr-ui-scene/src/configs/room-template.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/chat/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/cloud/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/device/index.d.ts +0 -9
- package/lib/fcr-ui-scene/src/containers/action-bar/index.d.ts +0 -24
- package/lib/fcr-ui-scene/src/containers/action-bar/leave/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/action-bar/participants/index.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/action-bar/raise-hands/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/record/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/screen-share/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/setting/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/toolbox/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/whiteboard/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/breakout-room/ask-help-list.d.ts +0 -10
- package/lib/fcr-ui-scene/src/containers/breakout-room/broadcast-panel.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/breakout-room/create-panel.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-info-panel.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-panel.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-status-panel.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/breakout-room/grouping.d.ts +0 -15
- package/lib/fcr-ui-scene/src/containers/breakout-room/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/breakout-room/search-panel.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/breakout-room/wizard.d.ts +0 -6
- package/lib/fcr-ui-scene/src/containers/cloud/dialog-header.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/cloud/index.d.ts +0 -6
- package/lib/fcr-ui-scene/src/containers/cloud/personal.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/cloud/public.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/common/interact-labels.d.ts +0 -6
- package/lib/fcr-ui-scene/src/containers/device-pretest/basic-settings.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-filter.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-slider.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-pretest/device-select.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/mirror-toggle.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/video-portal.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-pretest/virtual-background.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-settings/audio-settings.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-settings/dialog-wrapper.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-settings/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/device-settings/video-settings.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/dialog/class-info.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/dialog/confirm.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/dialog/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/layout/cover-view.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/layout/gallery-view.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/layout/presentation-view.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/loading/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/participants/dialog.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/participants/index.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/status-bar/class-duration/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/fullscreen/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/status-bar/layout-switch/index.d.ts +0 -22
- package/lib/fcr-ui-scene/src/containers/status-bar/network/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/status-bar/record-status/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/room-info/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/status-bar/share/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/widgets/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/stream-window/context.d.ts +0 -52
- package/lib/fcr-ui-scene/src/containers/video-player/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/video-player/players.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/widget/break-out-room/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/widget/draggable-wrapper/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/containers/widget/helpers.d.ts +0 -40
- package/lib/fcr-ui-scene/src/containers/widget/hooks.d.ts +0 -21
- package/lib/fcr-ui-scene/src/containers/widget/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/containers/widget/participants/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/extension/board.d.ts +0 -73
- package/lib/fcr-ui-scene/src/extension/edu-tool.d.ts +0 -57
- package/lib/fcr-ui-scene/src/extension/events.d.ts +0 -91
- package/lib/fcr-ui-scene/src/extension/type.d.ts +0 -94
- package/lib/fcr-ui-scene/src/index.d.ts +0 -39
- package/lib/fcr-ui-scene/src/lock.d.ts +0 -8
- package/lib/fcr-ui-scene/src/preset.d.ts +0 -1
- package/lib/fcr-ui-scene/src/resources/translations/enUs.d.ts +0 -400
- package/lib/fcr-ui-scene/src/resources/translations/zhCn.d.ts +0 -405
- package/lib/fcr-ui-scene/src/scenarios/classroom.d.ts +0 -2
- package/lib/fcr-ui-scene/src/scenarios/layout/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/type.d.ts +0 -361
- package/lib/fcr-ui-scene/src/uistores/action-bar.d.ts +0 -58
- package/lib/fcr-ui-scene/src/uistores/base.d.ts +0 -58
- package/lib/fcr-ui-scene/src/uistores/breakout.d.ts +0 -225
- package/lib/fcr-ui-scene/src/uistores/cloud/helper.d.ts +0 -26
- package/lib/fcr-ui-scene/src/uistores/cloud/index.d.ts +0 -51
- package/lib/fcr-ui-scene/src/uistores/cloud/struct.d.ts +0 -131
- package/lib/fcr-ui-scene/src/uistores/context.d.ts +0 -7
- package/lib/fcr-ui-scene/src/uistores/device-setting.d.ts +0 -214
- package/lib/fcr-ui-scene/src/uistores/gallery-view.d.ts +0 -16
- package/lib/fcr-ui-scene/src/uistores/getters.d.ts +0 -40
- package/lib/fcr-ui-scene/src/uistores/index.d.ts +0 -47
- package/lib/fcr-ui-scene/src/uistores/layout.d.ts +0 -64
- package/lib/fcr-ui-scene/src/uistores/notification.d.ts +0 -9
- package/lib/fcr-ui-scene/src/uistores/participants.d.ts +0 -48
- package/lib/fcr-ui-scene/src/uistores/presentation-view.d.ts +0 -24
- package/lib/fcr-ui-scene/src/uistores/status-bar.d.ts +0 -47
- package/lib/fcr-ui-scene/src/uistores/stream.d.ts +0 -48
- package/lib/fcr-ui-scene/src/uistores/subscription/abstract.d.ts +0 -45
- package/lib/fcr-ui-scene/src/uistores/subscription/index.d.ts +0 -13
- package/lib/fcr-ui-scene/src/uistores/subscription/main-room.d.ts +0 -14
- package/lib/fcr-ui-scene/src/uistores/subscription/type.d.ts +0 -10
- package/lib/fcr-ui-scene/src/uistores/type.d.ts +0 -86
- package/lib/fcr-ui-scene/src/uistores/widget.d.ts +0 -49
- package/lib/fcr-ui-scene/src/utils/asset.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/check.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/clamp-bounds.d.ts +0 -14
- package/lib/fcr-ui-scene/src/utils/config-loader.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/grid/index.d.ts +0 -9
- package/lib/fcr-ui-scene/src/utils/hooks/use-authorization.d.ts +0 -5
- package/lib/fcr-ui-scene/src/utils/hooks/use-device-switch.d.ts +0 -29
- package/lib/fcr-ui-scene/src/utils/hooks/use-drag-position.d.ts +0 -21
- package/lib/fcr-ui-scene/src/utils/hooks/use-network.d.ts +0 -17
- package/lib/fcr-ui-scene/src/utils/hooks/use-pin-stream.d.ts +0 -4
- package/lib/fcr-ui-scene/src/utils/hooks/use-rnd-position.d.ts +0 -24
- package/lib/fcr-ui-scene/src/utils/hooks/use-store.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/hooks/use-video-renderable.d.ts +0 -3
- package/lib/fcr-ui-scene/src/utils/hooks/use-z-index.d.ts +0 -8
- package/lib/fcr-ui-scene/src/utils/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/launch-options-holder.d.ts +0 -10
- package/lib/fcr-ui-scene/src/utils/rtc-extensions.d.ts +0 -29
- package/lib/fcr-ui-scene/src/utils/short-name.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/stream/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/utils/stream/state-keeper.d.ts +0 -18
- package/lib/fcr-ui-scene/src/utils/stream/struct.d.ts +0 -67
- package/lib/fcr-ui-scene/src/utils/vsd-pattern.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/z-index-controller.d.ts +0 -9
- package/lib/fcr-ui-scene/tailwind.config.d.ts +0 -1
- package/lib/scene.bundle.js +0 -2
- /package/lib/{fcr-ui-scene/src/containers/video-player/tools-overlay.d.ts → fragments/toolbar/components/extension-toolbar-item.d.ts} +0 -0
|
@@ -0,0 +1,271 @@
|
|
|
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.Carousel = void 0;
|
|
9
|
+
require("core-js/modules/es.array.map.js");
|
|
10
|
+
require("core-js/modules/es.array.slice.js");
|
|
11
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
var _mobxReact = require("mobx-react");
|
|
14
|
+
var _react = require("react");
|
|
15
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
16
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
17
|
+
var _hooks = require("../../../utilities/hooks");
|
|
18
|
+
var _context = require("../context");
|
|
19
|
+
var _type2 = require("../type");
|
|
20
|
+
var _memberWindow = require("../member-window");
|
|
21
|
+
var _utils = require("./utils");
|
|
22
|
+
var _type3 = require("agora-rte-sdk/lib/core/rtc/type");
|
|
23
|
+
var _agoraEduCore = require("agora-edu-core");
|
|
24
|
+
var _boardContext = _interopRequireDefault(require("../../../utilities/board-context"));
|
|
25
|
+
var _muteAction = require("../../../utilities/mute-action");
|
|
26
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
|
+
// import { UserWindow, UserWindowActions } from './UserWindow';
|
|
28
|
+
|
|
29
|
+
var Gap = 8;
|
|
30
|
+
var CollapseHeight = 8;
|
|
31
|
+
var HandlerHeight = 2;
|
|
32
|
+
var ArrowWidth = 30;
|
|
33
|
+
var MinVideoHeight = 114;
|
|
34
|
+
var MaxVideoHeight = 172;
|
|
35
|
+
var HandlerOverflowUp = -9999;
|
|
36
|
+
var HandlerOverflowDown = 9999;
|
|
37
|
+
var calcPages = function calcPages(n, pageSize) {
|
|
38
|
+
return Math.max(1, pageSize > 0 ? Math.ceil(n / pageSize) : 1);
|
|
39
|
+
};
|
|
40
|
+
var calcItems = function calcItems(bounds, videoWidth) {
|
|
41
|
+
return Math.max(0, Math.floor((bounds.width - (ArrowWidth + Gap) * 2 + Gap) / (videoWidth + Gap)));
|
|
42
|
+
};
|
|
43
|
+
var Carousel = exports.Carousel = (0, _mobxReact.observer)(function () {
|
|
44
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
45
|
+
toggleLayout = _useContext.toggleLayout,
|
|
46
|
+
collapsed = _useContext.collapsed,
|
|
47
|
+
toggleCollapsed = _useContext.toggleCollapsed,
|
|
48
|
+
carouselList = _useContext.carouselList,
|
|
49
|
+
addPin = _useContext.addPin,
|
|
50
|
+
removePin = _useContext.removePin,
|
|
51
|
+
hasMutePermission = _useContext.hasMutePermission,
|
|
52
|
+
openPrivateChat = _useContext.openPrivateChat,
|
|
53
|
+
localUserRole = _useContext.localUserRole,
|
|
54
|
+
sendParticipantEvent = _useContext.sendParticipantEvent,
|
|
55
|
+
muteAudio = _useContext.muteAudio,
|
|
56
|
+
whiteboard = _useContext.whiteboard,
|
|
57
|
+
toggleMainStream = _useContext.toggleMainStream,
|
|
58
|
+
hasPinnedStream = _useContext.hasPinnedStream,
|
|
59
|
+
streamControl = _useContext.streamControl,
|
|
60
|
+
deviceStore = _useContext.deviceStore,
|
|
61
|
+
documentVisible = _useContext.documentVisible,
|
|
62
|
+
getAllowedOperations = _useContext.getAllowedOperations,
|
|
63
|
+
setVideoOrientation = _useContext.setVideoOrientation,
|
|
64
|
+
hasUnmutePermission = _useContext.hasUnmutePermission,
|
|
65
|
+
hasRequestStartAudioPermission = _useContext.hasRequestStartAudioPermission;
|
|
66
|
+
var _useState = (0, _react.useState)(MinVideoHeight),
|
|
67
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
68
|
+
videoHeight = _useState2[0],
|
|
69
|
+
setVideoHeight = _useState2[1];
|
|
70
|
+
var _useDelayedMeasure = (0, _hooks.useDelayedMeasure)(),
|
|
71
|
+
_useDelayedMeasure2 = (0, _slicedToArray2["default"])(_useDelayedMeasure, 2),
|
|
72
|
+
ref = _useDelayedMeasure2[0],
|
|
73
|
+
bounds = _useDelayedMeasure2[1];
|
|
74
|
+
var _useState3 = (0, _react.useState)(0),
|
|
75
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
76
|
+
page_ = _useState4[0],
|
|
77
|
+
setPage = _useState4[1];
|
|
78
|
+
var _useState5 = (0, _react.useState)(false),
|
|
79
|
+
_useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
|
|
80
|
+
dragging = _useState6[0],
|
|
81
|
+
setDragging = _useState6[1];
|
|
82
|
+
var videoWidth = videoHeight / _type2.VideoRatio;
|
|
83
|
+
var itemsPerPage = calcItems(bounds, videoWidth);
|
|
84
|
+
var fullWidth = (videoWidth + Gap) * itemsPerPage - Gap;
|
|
85
|
+
var maxPages = calcPages(carouselList.length, itemsPerPage);
|
|
86
|
+
var page = (0, _utils.clamp)(page_, 0, maxPages - 1);
|
|
87
|
+
var navigate = (0, _react.useCallback)(function (direction) {
|
|
88
|
+
return setPage((0, _utils.clamp)(page + direction, 0, maxPages - 1));
|
|
89
|
+
}, [page, maxPages]);
|
|
90
|
+
var hasPrevPage = page > 0;
|
|
91
|
+
var hasNextPage = page < maxPages - 1;
|
|
92
|
+
var onDragHandler = (0, _react.useCallback)(function (event) {
|
|
93
|
+
event.preventDefault();
|
|
94
|
+
setDragging(true);
|
|
95
|
+
var handler = event.currentTarget;
|
|
96
|
+
handler.setPointerCapture(event.pointerId);
|
|
97
|
+
var startY = event.clientY;
|
|
98
|
+
var startHeight = collapsed ? 0 : videoHeight;
|
|
99
|
+
var onPointerMove = function onPointerMove(event) {
|
|
100
|
+
var delta = event.clientY - startY;
|
|
101
|
+
var target = startHeight + delta;
|
|
102
|
+
var clamped = (0, _utils.clamp)(target, MinVideoHeight, MaxVideoHeight);
|
|
103
|
+
var overflow = target - clamped;
|
|
104
|
+
if (overflow < HandlerOverflowUp) {
|
|
105
|
+
toggleCollapsed(true);
|
|
106
|
+
} else if (overflow > HandlerOverflowDown) {
|
|
107
|
+
toggleLayout(_type2.FcrUIVideoWindowLayoutType.Gallery);
|
|
108
|
+
} else {
|
|
109
|
+
toggleLayout(_type2.FcrUIVideoWindowLayoutType.Speaker);
|
|
110
|
+
toggleCollapsed(false);
|
|
111
|
+
setVideoHeight(clamped);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
var onPointerUp = function onPointerUp() {
|
|
115
|
+
setDragging(false);
|
|
116
|
+
handler.onpointermove = handler.onpointerup = handler.onpointercancel = null;
|
|
117
|
+
};
|
|
118
|
+
handler.onpointermove = onPointerMove;
|
|
119
|
+
handler.onpointerup = handler.onpointercancel = onPointerUp;
|
|
120
|
+
}, [collapsed, videoHeight]);
|
|
121
|
+
var style = (0, _react.useMemo)(function () {
|
|
122
|
+
return {
|
|
123
|
+
width: videoWidth,
|
|
124
|
+
height: videoHeight
|
|
125
|
+
};
|
|
126
|
+
}, [videoWidth, videoHeight]);
|
|
127
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
128
|
+
className: (0, _classnames["default"])('fcr-layout-content-carousel', {
|
|
129
|
+
'fcr-layout-content-carousel-collapsed': collapsed,
|
|
130
|
+
'fcr-layout-content-carousel-dragging': dragging
|
|
131
|
+
}),
|
|
132
|
+
style: {
|
|
133
|
+
height: videoHeight + CollapseHeight + HandlerHeight
|
|
134
|
+
},
|
|
135
|
+
ref: ref,
|
|
136
|
+
children: !collapsed && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
137
|
+
className: "fcr-layout-content-carousel-wrapper",
|
|
138
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
139
|
+
className: "fcr-layout-content-carousel-list",
|
|
140
|
+
style: {
|
|
141
|
+
height: videoHeight,
|
|
142
|
+
gap: Gap
|
|
143
|
+
},
|
|
144
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
145
|
+
className: "fcr-layout-content-carousel-arrow",
|
|
146
|
+
disabled: !hasPrevPage,
|
|
147
|
+
style: {
|
|
148
|
+
width: ArrowWidth
|
|
149
|
+
},
|
|
150
|
+
onClick: function onClick() {
|
|
151
|
+
return navigate(-1);
|
|
152
|
+
},
|
|
153
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
154
|
+
type: _type.FcrIconType.FCR_LEFT1,
|
|
155
|
+
colors: {
|
|
156
|
+
iconPrimary: 'currentColor'
|
|
157
|
+
}
|
|
158
|
+
})
|
|
159
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
160
|
+
className: "fcr-layout-content-carousel-items",
|
|
161
|
+
style: {
|
|
162
|
+
width: fullWidth,
|
|
163
|
+
gap: Gap
|
|
164
|
+
},
|
|
165
|
+
children: documentVisible && carouselList.slice(page * itemsPerPage, (page + 1) * itemsPerPage).map(function (windowData) {
|
|
166
|
+
var isScreenSharing = windowData.videoSourceType === _agoraEduCore.FcrVideoSourceType.SCREEN;
|
|
167
|
+
var isBoard = windowData.type === _type2.FcrUIWindowType.BOARD;
|
|
168
|
+
var showActionBottomLabel = carouselList.length > 1 && windowData.isSpeakerSpotlight;
|
|
169
|
+
var muteAudioPermission = hasMutePermission(windowData.isMySelf ? _agoraEduCore.FcrPrivilegeUserRole.SELF : windowData.ownerRoleType);
|
|
170
|
+
var startAudioPermission = hasUnmutePermission(windowData.isMySelf ? _agoraEduCore.FcrPrivilegeUserRole.SELF : windowData.ownerRoleType);
|
|
171
|
+
var requestStartAudioPermission = hasRequestStartAudioPermission(windowData.ownerRoleType);
|
|
172
|
+
var _actionMute = (0, _muteAction.actionMute)(windowData.isMySelf, windowData.hasMicrophoneAudioStream, muteAudioPermission, startAudioPermission, requestStartAudioPermission),
|
|
173
|
+
isShowActionAudio = _actionMute.isShowActionAudio,
|
|
174
|
+
actionAudioTag = _actionMute.actionAudioTag;
|
|
175
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
176
|
+
style: style,
|
|
177
|
+
className: "fcr-layout-content-carousel-item",
|
|
178
|
+
children: isBoard ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_boardContext["default"].Provider, {
|
|
179
|
+
value: {
|
|
180
|
+
showToolbar: false
|
|
181
|
+
},
|
|
182
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_memberWindow.MemberBoard, {
|
|
183
|
+
isShowActionAudio: isShowActionAudio,
|
|
184
|
+
actionAudioTag: actionAudioTag,
|
|
185
|
+
showActionBottomLabel: showActionBottomLabel,
|
|
186
|
+
allowedOperations: getAllowedOperations(windowData.ownerRoleType, windowData.isMySelf),
|
|
187
|
+
windowData: windowData,
|
|
188
|
+
onMaskDoubleClick: function onMaskDoubleClick() {
|
|
189
|
+
toggleMainStream(windowData.windowId);
|
|
190
|
+
},
|
|
191
|
+
isMask: true,
|
|
192
|
+
slot: whiteboard
|
|
193
|
+
})
|
|
194
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_memberWindow.MemberWindow, {
|
|
195
|
+
onRemovePin: removePin,
|
|
196
|
+
canShowSpeakerSpotlight: true,
|
|
197
|
+
width: videoWidth,
|
|
198
|
+
height: videoHeight,
|
|
199
|
+
memberWindowPreviewType: 'carousel',
|
|
200
|
+
slot: !isScreenSharing && /*#__PURE__*/(0, _jsxRuntime.jsx)(_memberWindow.MemberWindowActions, {
|
|
201
|
+
isShowActionAudio: isShowActionAudio,
|
|
202
|
+
actionAudioTag: actionAudioTag,
|
|
203
|
+
showActionBottomLabel: showActionBottomLabel,
|
|
204
|
+
allowedOperations: getAllowedOperations(windowData.ownerRoleType, windowData.isMySelf),
|
|
205
|
+
setVideoOrientation: setVideoOrientation,
|
|
206
|
+
hasPinnedStream: hasPinnedStream,
|
|
207
|
+
localUserRole: localUserRole,
|
|
208
|
+
sendParticipantEvent: sendParticipantEvent,
|
|
209
|
+
muteAudio: muteAudio,
|
|
210
|
+
openPrivateChat: openPrivateChat,
|
|
211
|
+
windowSize: "normal",
|
|
212
|
+
windowData: windowData,
|
|
213
|
+
iconSize: 16
|
|
214
|
+
}),
|
|
215
|
+
videoRenderMode: _type3.AgoraRtcRenderMode.FIT,
|
|
216
|
+
videoStreamType: _type3.AgoraRtcVideoStreamType.LOW_STREAM,
|
|
217
|
+
showAvatar: false,
|
|
218
|
+
windowData: windowData,
|
|
219
|
+
onDoubleClick: function onDoubleClick() {
|
|
220
|
+
if (windowData.videoSourceType === _agoraEduCore.FcrVideoSourceType.SCREEN || windowData.isPin) {
|
|
221
|
+
toggleMainStream(windowData.windowId);
|
|
222
|
+
} else {
|
|
223
|
+
addPin(windowData.windowId);
|
|
224
|
+
setPage(0);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}, windowData.windowId)
|
|
228
|
+
}, windowData.windowId);
|
|
229
|
+
})
|
|
230
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
231
|
+
className: "fcr-layout-content-carousel-arrow",
|
|
232
|
+
disabled: !hasNextPage,
|
|
233
|
+
style: {
|
|
234
|
+
width: ArrowWidth
|
|
235
|
+
},
|
|
236
|
+
onClick: function onClick() {
|
|
237
|
+
return navigate(1);
|
|
238
|
+
},
|
|
239
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
240
|
+
type: _type.FcrIconType.FCR_RIGHT2,
|
|
241
|
+
colors: {
|
|
242
|
+
iconPrimary: 'currentColor'
|
|
243
|
+
}
|
|
244
|
+
})
|
|
245
|
+
})]
|
|
246
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
247
|
+
className: "fcr-layout-content-carousel-collapse",
|
|
248
|
+
style: {
|
|
249
|
+
height: CollapseHeight
|
|
250
|
+
},
|
|
251
|
+
onClick: function onClick() {
|
|
252
|
+
return toggleCollapsed();
|
|
253
|
+
},
|
|
254
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
255
|
+
type: _type.FcrIconType.FCR_UP2,
|
|
256
|
+
colors: {
|
|
257
|
+
iconPrimary: 'currentColor'
|
|
258
|
+
}
|
|
259
|
+
})
|
|
260
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
261
|
+
className: (0, _classnames["default"])('fcr-layout-content-carousel-handler', {
|
|
262
|
+
'fcr-layout-content-carousel-handler-dragging': dragging
|
|
263
|
+
}),
|
|
264
|
+
style: {
|
|
265
|
+
height: HandlerHeight
|
|
266
|
+
},
|
|
267
|
+
onPointerDown: onDragHandler
|
|
268
|
+
})]
|
|
269
|
+
})
|
|
270
|
+
});
|
|
271
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Gallery: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.symbol.description.js");
|
|
5
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
6
|
+
require("core-js/modules/es.error.cause.js");
|
|
7
|
+
require("core-js/modules/es.error.to-string.js");
|
|
8
|
+
require("core-js/modules/es.array.from.js");
|
|
9
|
+
require("core-js/modules/es.array.is-array.js");
|
|
10
|
+
require("core-js/modules/es.array.iterator.js");
|
|
11
|
+
require("core-js/modules/es.date.to-string.js");
|
|
12
|
+
require("core-js/modules/es.function.name.js");
|
|
13
|
+
require("core-js/modules/es.object.define-property.js");
|
|
14
|
+
require("core-js/modules/es.object.to-string.js");
|
|
15
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
16
|
+
require("core-js/modules/es.regexp.test.js");
|
|
17
|
+
require("core-js/modules/es.regexp.to-string.js");
|
|
18
|
+
require("core-js/modules/es.string.iterator.js");
|
|
19
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
20
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
21
|
+
Object.defineProperty(exports, "__esModule", {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
exports.Gallery = void 0;
|
|
25
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
26
|
+
require("core-js/modules/es.array.join.js");
|
|
27
|
+
require("core-js/modules/es.array.map.js");
|
|
28
|
+
require("core-js/modules/es.array.push.js");
|
|
29
|
+
require("core-js/modules/es.array.slice.js");
|
|
30
|
+
require("core-js/modules/es.array.unshift.js");
|
|
31
|
+
var _mobxReact = require("mobx-react");
|
|
32
|
+
var _react = require("react");
|
|
33
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
34
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
35
|
+
var _hooks = require("../../../utilities/hooks");
|
|
36
|
+
var _context = require("../context");
|
|
37
|
+
var _type2 = require("../type");
|
|
38
|
+
var _memberWindow = require("../member-window");
|
|
39
|
+
var _utils = require("./utils");
|
|
40
|
+
var _type3 = require("agora-rte-sdk/lib/core/rtc/type");
|
|
41
|
+
var _agoraEduCore = require("agora-edu-core");
|
|
42
|
+
var _boardContext = _interopRequireDefault(require("../../../utilities/board-context"));
|
|
43
|
+
var _screen = require("../../../utilities/screen");
|
|
44
|
+
var _button = require("agora-ui-foundation/lib/components/button");
|
|
45
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
46
|
+
var _muteAction = require("../../../utilities/mute-action");
|
|
47
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
48
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
49
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
50
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
51
|
+
var MinVideoWidth = 192;
|
|
52
|
+
var MinVideoHeight = 114;
|
|
53
|
+
var PaddingX = 25;
|
|
54
|
+
var PaddingY = 10;
|
|
55
|
+
var PaddingY1 = 10 + 34;
|
|
56
|
+
var PaddingY2 = 10 + 58;
|
|
57
|
+
var PaddingYGallery = PaddingY1 + PaddingY2;
|
|
58
|
+
var Gap = 5;
|
|
59
|
+
var ArrowWidth = 40;
|
|
60
|
+
var PaddingArrow = 15;
|
|
61
|
+
var getMaxRows = function getMaxRows(size) {
|
|
62
|
+
return size === _type2.GalleryMaxSize.Large ? 5 : size === _type2.GalleryMaxSize.Normal ? 4 : 0;
|
|
63
|
+
};
|
|
64
|
+
var getMaxCols = getMaxRows;
|
|
65
|
+
var eachSlice = function eachSlice(a, n) {
|
|
66
|
+
var result = [];
|
|
67
|
+
for (var i = 0; i < a.length; i += n) {
|
|
68
|
+
result.push(a.slice(i, i + n));
|
|
69
|
+
}
|
|
70
|
+
return result;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// prettier-ignore
|
|
74
|
+
var GridSequence = [[1, 1], [1, 2], [2, 1], [2, 2], [1, 3], [3, 1], [2, 3], [3, 2], [3, 3], [1, 4], [4, 1], [2, 4], [4, 2], [3, 4], [4, 3], [4, 4], [1, 5], [5, 1], [2, 5], [5, 2], [3, 5], [5, 3], [4, 5], [5, 4], [5, 5]];
|
|
75
|
+
var iterate = function iterate(maxRows, maxCols) {
|
|
76
|
+
var result = [];
|
|
77
|
+
for (var _i = 0, _GridSequence = GridSequence; _i < _GridSequence.length; _i++) {
|
|
78
|
+
var _GridSequence$_i = (0, _slicedToArray2["default"])(_GridSequence[_i], 2),
|
|
79
|
+
rows = _GridSequence$_i[0],
|
|
80
|
+
cols = _GridSequence$_i[1];
|
|
81
|
+
if (rows <= maxRows && cols <= maxCols) {
|
|
82
|
+
result.push({
|
|
83
|
+
rows: rows,
|
|
84
|
+
cols: cols
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return result;
|
|
89
|
+
};
|
|
90
|
+
var Gallery = exports.Gallery = (0, _mobxReact.observer)(function () {
|
|
91
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
92
|
+
layout = _useContext.layout,
|
|
93
|
+
galleryMaxSize = _useContext.galleryMaxSize,
|
|
94
|
+
galleryList = _useContext.galleryList,
|
|
95
|
+
addPin = _useContext.addPin,
|
|
96
|
+
hasMutePermission = _useContext.hasMutePermission,
|
|
97
|
+
openPrivateChat = _useContext.openPrivateChat,
|
|
98
|
+
whiteboard = _useContext.whiteboard,
|
|
99
|
+
localUserRole = _useContext.localUserRole,
|
|
100
|
+
sendParticipantEvent = _useContext.sendParticipantEvent,
|
|
101
|
+
muteAudio = _useContext.muteAudio,
|
|
102
|
+
removePin = _useContext.removePin,
|
|
103
|
+
toggleMainStream = _useContext.toggleMainStream,
|
|
104
|
+
hasPinnedStream = _useContext.hasPinnedStream,
|
|
105
|
+
currentShareData = _useContext.currentShareData,
|
|
106
|
+
streamControl = _useContext.streamControl,
|
|
107
|
+
deviceStore = _useContext.deviceStore,
|
|
108
|
+
documentVisible = _useContext.documentVisible,
|
|
109
|
+
getAllowedOperations = _useContext.getAllowedOperations,
|
|
110
|
+
setVideoOrientation = _useContext.setVideoOrientation,
|
|
111
|
+
hasUnmutePermission = _useContext.hasUnmutePermission,
|
|
112
|
+
hasRequestStartAudioPermission = _useContext.hasRequestStartAudioPermission;
|
|
113
|
+
var _useDelayedMeasure = (0, _hooks.useDelayedMeasure)(),
|
|
114
|
+
_useDelayedMeasure2 = (0, _slicedToArray2["default"])(_useDelayedMeasure, 2),
|
|
115
|
+
ref = _useDelayedMeasure2[0],
|
|
116
|
+
bounds = _useDelayedMeasure2[1];
|
|
117
|
+
var _useState = (0, _react.useState)(0),
|
|
118
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
119
|
+
page_ = _useState2[0],
|
|
120
|
+
setPage = _useState2[1];
|
|
121
|
+
var videoStreamType = galleryList.length > 4 ? _type3.AgoraRtcVideoStreamType.LOW_STREAM : _type3.AgoraRtcVideoStreamType.HIGH_STREAM;
|
|
122
|
+
var isGallery = layout === _type2.FcrUIVideoWindowLayoutType.Gallery;
|
|
123
|
+
var paddingY = isGallery ? PaddingYGallery : PaddingY * 2;
|
|
124
|
+
var grid = (0, _react.useMemo)(function () {
|
|
125
|
+
if (bounds.width > 0 && bounds.height > 0) {
|
|
126
|
+
var maxRows = Math.min(getMaxRows(galleryMaxSize), Math.floor((bounds.height + Gap - PaddingX * 2) / (MinVideoHeight + Gap)));
|
|
127
|
+
var maxCols = Math.min(getMaxCols(galleryMaxSize), Math.floor((bounds.width + Gap - paddingY) / (MinVideoWidth + Gap)));
|
|
128
|
+
var _iterator = _createForOfIteratorHelper(iterate(maxRows, maxCols)),
|
|
129
|
+
_step;
|
|
130
|
+
try {
|
|
131
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
132
|
+
var candidate = _step.value;
|
|
133
|
+
if (candidate.rows * candidate.cols >= galleryList.length) {
|
|
134
|
+
return candidate;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
} catch (err) {
|
|
138
|
+
_iterator.e(err);
|
|
139
|
+
} finally {
|
|
140
|
+
_iterator.f();
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
rows: maxRows,
|
|
144
|
+
cols: maxCols
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
return null;
|
|
148
|
+
}, [layout, bounds.width, bounds.height, galleryMaxSize, galleryList.slice()]);
|
|
149
|
+
var videoSize = (0, _react.useMemo)(function () {
|
|
150
|
+
if (grid) {
|
|
151
|
+
var width = (bounds.width - PaddingX * 2 - Gap * (grid.cols - 1)) / grid.cols;
|
|
152
|
+
var height = (bounds.height - paddingY - Gap * (grid.rows - 1)) / grid.rows;
|
|
153
|
+
height = Math.min(height, width * _type2.VideoRatio);
|
|
154
|
+
width = Math.min(width, height / _type2.VideoRatio);
|
|
155
|
+
return {
|
|
156
|
+
width: width,
|
|
157
|
+
height: height
|
|
158
|
+
};
|
|
159
|
+
} else {
|
|
160
|
+
return {
|
|
161
|
+
width: 0,
|
|
162
|
+
height: 0
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
}, [layout, bounds.width, bounds.height, grid]);
|
|
166
|
+
var itemsPerPage = grid ? grid.rows * grid.cols : 0;
|
|
167
|
+
var maxPages = itemsPerPage > 0 ? Math.ceil(galleryList.length / itemsPerPage) : 1;
|
|
168
|
+
var page = (0, _utils.clamp)(page_, 0, maxPages - 1);
|
|
169
|
+
var hasPrevPage = page > 0;
|
|
170
|
+
var hasNextPage = page < maxPages - 1;
|
|
171
|
+
var navigate = (0, _react.useCallback)(function (direction) {
|
|
172
|
+
return setPage((0, _utils.clamp)(page + direction, 0, maxPages - 1));
|
|
173
|
+
}, [page, maxPages]);
|
|
174
|
+
var keyOfGalleryUsers = galleryList.join('-');
|
|
175
|
+
var cells = (0, _react.useMemo)(function () {
|
|
176
|
+
if (grid) {
|
|
177
|
+
var items = galleryList.slice(page * itemsPerPage, (page + 1) * itemsPerPage);
|
|
178
|
+
// Fill last page if not full.
|
|
179
|
+
if (page > 0 && items.length < itemsPerPage) {
|
|
180
|
+
var prevPage = galleryList.slice((page - 1) * itemsPerPage, page * itemsPerPage);
|
|
181
|
+
while (items.length < itemsPerPage) {
|
|
182
|
+
var item = prevPage.pop();
|
|
183
|
+
item && items.unshift(item);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return eachSlice(items, grid.cols);
|
|
187
|
+
}
|
|
188
|
+
return [];
|
|
189
|
+
}, [keyOfGalleryUsers, page, itemsPerPage, grid && grid.cols, galleryList.slice()]);
|
|
190
|
+
var returnShareingContent = function returnShareingContent() {
|
|
191
|
+
if (currentShareData) toggleMainStream(currentShareData === null || currentShareData === void 0 ? void 0 : currentShareData.windowId);
|
|
192
|
+
};
|
|
193
|
+
var transI18n = (0, _i18n.useI18n)();
|
|
194
|
+
var returnBar = currentShareData && layout === _type2.FcrUIVideoWindowLayoutType.Gallery && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
195
|
+
className: "fcr-layout-content-gallery-return-bar",
|
|
196
|
+
children: [currentShareData.isMySelf ? transI18n('fmt_settings_labels_you') : currentShareData.userName, transI18n('fmt_uimanager_labels_sharing'), currentShareData.videoSourceType === _agoraEduCore.FcrVideoSourceType.SCREEN ? transI18n('fmt_uimanager_labels_screen') : transI18n('fmt_uimanager_labels_whiteboard'), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
197
|
+
onClick: returnShareingContent,
|
|
198
|
+
size: "XXS",
|
|
199
|
+
styleType: "normal",
|
|
200
|
+
shape: "rounded",
|
|
201
|
+
children: transI18n('fmt_uimanager_button_returntocontent')
|
|
202
|
+
})]
|
|
203
|
+
});
|
|
204
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
205
|
+
children: [returnBar, /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
206
|
+
className: "fcr-layout-content-gallery",
|
|
207
|
+
ref: ref,
|
|
208
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
209
|
+
className: "fcr-layout-content-gallery-wrapper",
|
|
210
|
+
style: {
|
|
211
|
+
gap: Gap,
|
|
212
|
+
marginTop: isGallery ? PaddingY1 - PaddingY2 : 0
|
|
213
|
+
},
|
|
214
|
+
children: cells.map(function (row, i) {
|
|
215
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
216
|
+
className: "fcr-layout-content-gallery-row",
|
|
217
|
+
style: {
|
|
218
|
+
gap: Gap
|
|
219
|
+
},
|
|
220
|
+
children: documentVisible && row.map(function (windowData) {
|
|
221
|
+
var size = galleryList.length === 1 ? {
|
|
222
|
+
width: bounds.width,
|
|
223
|
+
height: bounds.height - paddingY + 20
|
|
224
|
+
} : videoSize;
|
|
225
|
+
var isScreenSharing = windowData.videoSourceType === _agoraEduCore.FcrVideoSourceType.SCREEN;
|
|
226
|
+
var isSpeakerMode = layout === _type2.FcrUIVideoWindowLayoutType.Speaker;
|
|
227
|
+
var isMainWindow = galleryList.length === 1;
|
|
228
|
+
var showActionBottomLabel = galleryList.length > 1 && windowData.isSpeakerSpotlight;
|
|
229
|
+
var muteAudioPermission = hasMutePermission(windowData.isMySelf ? _agoraEduCore.FcrPrivilegeUserRole.SELF : windowData.ownerRoleType);
|
|
230
|
+
var startAudioPermission = hasUnmutePermission(windowData.isMySelf ? _agoraEduCore.FcrPrivilegeUserRole.SELF : windowData.ownerRoleType);
|
|
231
|
+
var requestStartAudioPermission = hasRequestStartAudioPermission(windowData.ownerRoleType);
|
|
232
|
+
var _actionMute = (0, _muteAction.actionMute)(windowData.isMySelf, windowData.hasMicrophoneAudioStream, muteAudioPermission, startAudioPermission, requestStartAudioPermission),
|
|
233
|
+
isShowActionAudio = _actionMute.isShowActionAudio,
|
|
234
|
+
actionAudioTag = _actionMute.actionAudioTag;
|
|
235
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
236
|
+
className: "fcr-layout-content-gallery-row-item",
|
|
237
|
+
style: {
|
|
238
|
+
width: size.width,
|
|
239
|
+
height: size.height
|
|
240
|
+
},
|
|
241
|
+
children: windowData.type === _type2.FcrUIWindowType.BOARD ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_boardContext["default"].Provider, {
|
|
242
|
+
value: {
|
|
243
|
+
showToolbar: galleryList.length === 1
|
|
244
|
+
},
|
|
245
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_memberWindow.MemberBoard, {
|
|
246
|
+
isShowActionAudio: isShowActionAudio,
|
|
247
|
+
actionAudioTag: actionAudioTag,
|
|
248
|
+
showActionBottomLabel: showActionBottomLabel,
|
|
249
|
+
windowData: windowData,
|
|
250
|
+
allowedOperations: getAllowedOperations(windowData.ownerRoleType, windowData.isMySelf),
|
|
251
|
+
onMaskDoubleClick: function onMaskDoubleClick() {
|
|
252
|
+
if (isSpeakerMode && isMainWindow) {
|
|
253
|
+
(0, _screen.isFullScreen)() ? (0, _screen.exitFullScreen)() : (0, _screen.enterFullScreen)();
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
toggleMainStream(windowData.windowId);
|
|
257
|
+
},
|
|
258
|
+
isMask: galleryList.length !== 1,
|
|
259
|
+
slot: whiteboard
|
|
260
|
+
})
|
|
261
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_memberWindow.MemberWindow, {
|
|
262
|
+
canShowSpeakerSpotlight: galleryList.length > 1,
|
|
263
|
+
memberWindowPreviewType: 'gallery',
|
|
264
|
+
slot: !isScreenSharing && /*#__PURE__*/(0, _jsxRuntime.jsx)(_memberWindow.MemberWindowActions, {
|
|
265
|
+
isShowActionAudio: isShowActionAudio,
|
|
266
|
+
actionAudioTag: actionAudioTag,
|
|
267
|
+
showActionBottomLabel: showActionBottomLabel,
|
|
268
|
+
allowedOperations: getAllowedOperations(windowData.ownerRoleType, windowData.isMySelf),
|
|
269
|
+
setVideoOrientation: setVideoOrientation,
|
|
270
|
+
hasPinnedStream: hasPinnedStream,
|
|
271
|
+
localUserRole: localUserRole,
|
|
272
|
+
sendParticipantEvent: sendParticipantEvent,
|
|
273
|
+
muteAudio: muteAudio,
|
|
274
|
+
openPrivateChat: openPrivateChat,
|
|
275
|
+
windowSize: "large",
|
|
276
|
+
windowData: windowData,
|
|
277
|
+
iconSize: 24
|
|
278
|
+
}),
|
|
279
|
+
videoRenderMode: _type3.AgoraRtcRenderMode.FIT,
|
|
280
|
+
videoStreamType: videoStreamType,
|
|
281
|
+
windowData: windowData,
|
|
282
|
+
showAvatar: true,
|
|
283
|
+
width: size.width,
|
|
284
|
+
height: size.height,
|
|
285
|
+
onRemovePin: removePin,
|
|
286
|
+
onDoubleClick: function onDoubleClick() {
|
|
287
|
+
if (isSpeakerMode && isMainWindow) {
|
|
288
|
+
(0, _screen.isFullScreen)() ? (0, _screen.exitFullScreen)() : (0, _screen.enterFullScreen)();
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
if (windowData.videoSourceType === _agoraEduCore.FcrVideoSourceType.SCREEN || windowData.isPin) {
|
|
292
|
+
toggleMainStream(windowData.windowId);
|
|
293
|
+
} else {
|
|
294
|
+
if (!windowData.isPin) {
|
|
295
|
+
addPin(windowData.windowId);
|
|
296
|
+
} else {
|
|
297
|
+
toggleMainStream(windowData.windowId);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}, windowData.windowId)
|
|
302
|
+
}, windowData.windowId);
|
|
303
|
+
})
|
|
304
|
+
}, i);
|
|
305
|
+
})
|
|
306
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
307
|
+
className: "fcr-layout-content-gallery-arrows",
|
|
308
|
+
children: [hasPrevPage && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
309
|
+
className: "fcr-layout-content-gallery-arrow fcr-layout-content-gallery-arrow-left",
|
|
310
|
+
style: {
|
|
311
|
+
left: PaddingArrow
|
|
312
|
+
},
|
|
313
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
314
|
+
style: {
|
|
315
|
+
width: ArrowWidth,
|
|
316
|
+
height: ArrowWidth
|
|
317
|
+
},
|
|
318
|
+
disabled: !hasPrevPage,
|
|
319
|
+
onClick: function onClick() {
|
|
320
|
+
return navigate(-1);
|
|
321
|
+
},
|
|
322
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
323
|
+
type: _type.FcrIconType.FCR_LEFT3,
|
|
324
|
+
colors: {
|
|
325
|
+
iconPrimary: 'currentColor'
|
|
326
|
+
}
|
|
327
|
+
})
|
|
328
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
329
|
+
className: "fcr-layout-content-gallery-arrow-content",
|
|
330
|
+
children: [page + 1, "/", maxPages]
|
|
331
|
+
})]
|
|
332
|
+
}), hasNextPage && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
333
|
+
className: "fcr-layout-content-gallery-arrow fcr-layout-content-gallery-arrow-left",
|
|
334
|
+
style: {
|
|
335
|
+
right: PaddingArrow
|
|
336
|
+
},
|
|
337
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
338
|
+
style: {
|
|
339
|
+
width: ArrowWidth,
|
|
340
|
+
height: ArrowWidth
|
|
341
|
+
},
|
|
342
|
+
disabled: !hasNextPage,
|
|
343
|
+
onClick: function onClick() {
|
|
344
|
+
return navigate(1);
|
|
345
|
+
},
|
|
346
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
347
|
+
type: _type.FcrIconType.FCR_RIGHT3,
|
|
348
|
+
colors: {
|
|
349
|
+
iconPrimary: 'currentColor'
|
|
350
|
+
}
|
|
351
|
+
})
|
|
352
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
353
|
+
className: "fcr-layout-content-gallery-arrow-content",
|
|
354
|
+
children: [page + 1, "/", maxPages]
|
|
355
|
+
})]
|
|
356
|
+
})]
|
|
357
|
+
})]
|
|
358
|
+
})]
|
|
359
|
+
});
|
|
360
|
+
});
|