fcr-ui-scene 1.0.20 → 3.1.0-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/base.d.ts +13 -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/event-store.d.ts +118 -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/electron/app.d.ts +1 -0
- package/lib/electron/app.js +140 -0
- package/lib/electron/default-options.d.ts +2 -0
- package/lib/electron/default-options.js +26 -0
- package/lib/electron/env.d.ts +5 -0
- package/lib/electron/env.js +13 -0
- package/lib/electron/index.d.ts +2 -0
- package/lib/electron/index.js +20 -0
- package/lib/electron/injections.d.ts +45 -0
- package/lib/electron/injections.js +689 -0
- package/lib/electron/main.d.ts +2 -0
- package/lib/electron/main.js +63 -0
- package/lib/electron/plugins/screenshot.d.ts +2 -0
- package/lib/electron/plugins/screenshot.js +49 -0
- package/lib/electron/preload.js +35 -0
- package/lib/electron/tools.d.ts +5 -0
- package/lib/electron/tools.js +57 -0
- package/lib/electron/window.d.ts +12 -0
- package/lib/electron/window.js +107 -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/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 +36 -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/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.d.ts +1 -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/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 +8 -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 +7 -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 +9 -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 +13 -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 +2 -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/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 +2 -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 +13 -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 +12 -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/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 +2 -0
- package/lib/modules/invite/voip-invite.js +294 -0
- package/lib/modules/layout/components/Aside.d.ts +7 -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/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/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 +67 -0
- package/lib/modules/layout/member-window/index.js +730 -0
- package/lib/modules/layout/store.d.ts +177 -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/{fcr-ui-scene/src/containers/stream-window/index.d.ts → modules/setting/common/advance-link.d.ts} +1 -1
- 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/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/index.d.ts +115 -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 +67 -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/runtime.d.ts +86 -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 +61 -85
- 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 → electron/preload.d.ts} +0 -0
|
@@ -0,0 +1,138 @@
|
|
|
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.DraggleWrapper = void 0;
|
|
9
|
+
require("core-js/modules/es.array.concat.js");
|
|
10
|
+
require("core-js/modules/web.timers.js");
|
|
11
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
var _store = require("../store");
|
|
14
|
+
var _transferPositionIcon = require("../../control-bar/transfer-position-icon");
|
|
15
|
+
var _reactRnd = require("react-rnd");
|
|
16
|
+
var _mobxReact = require("mobx-react");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
var DraggleWrapper = exports.DraggleWrapper = (0, _mobxReact.observer)(function (props) {
|
|
19
|
+
var _useContext = (0, _react.useContext)(_store.ToolbarContext),
|
|
20
|
+
getCoordinate = _useContext.getCoordinate,
|
|
21
|
+
toolbarDockPosition = _useContext.observables.toolbarDockPosition;
|
|
22
|
+
var NAV_HEIGHT = 70;
|
|
23
|
+
var HIDDEN_TIMEOUT = 3000;
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
var TITLE_HEIGHT = window.screen.availTop;
|
|
26
|
+
var MAX_Y = window.screen.availHeight - NAV_HEIGHT;
|
|
27
|
+
var screenWidth = window.screen.width;
|
|
28
|
+
var _useState = (0, _react.useState)(_transferPositionIcon.TransferPosition.TOP),
|
|
29
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
30
|
+
toolbarCurrentPosition = _useState2[0],
|
|
31
|
+
setToolbarCurrentPosition = _useState2[1];
|
|
32
|
+
var _useState3 = (0, _react.useState)(0),
|
|
33
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
34
|
+
currentCoordinateX = _useState4[0],
|
|
35
|
+
setCurrentCoordinateX = _useState4[1];
|
|
36
|
+
var _useState5 = (0, _react.useState)(0),
|
|
37
|
+
_useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
|
|
38
|
+
currentCoordinateY = _useState6[0],
|
|
39
|
+
setCurrentCoordinateY = _useState6[1];
|
|
40
|
+
var _useState7 = (0, _react.useState)(false),
|
|
41
|
+
_useState8 = (0, _slicedToArray2["default"])(_useState7, 2),
|
|
42
|
+
hiddenShareActionNav = _useState8[0],
|
|
43
|
+
setHiddenShareActionNav = _useState8[1];
|
|
44
|
+
var _useState9 = (0, _react.useState)(false),
|
|
45
|
+
_useState10 = (0, _slicedToArray2["default"])(_useState9, 2),
|
|
46
|
+
showTransferAnimation = _useState10[0],
|
|
47
|
+
setShowTransferAnimation = _useState10[1];
|
|
48
|
+
var rndRef = (0, _react.useRef)(null);
|
|
49
|
+
var hideTimeout = (0, _react.useRef)(0);
|
|
50
|
+
var handleMouseEnter = function handleMouseEnter() {
|
|
51
|
+
window.runtime.browserWindow.focus();
|
|
52
|
+
window.runtime.browserWindow.setIgnoreMouseEvents(false, {
|
|
53
|
+
forward: true
|
|
54
|
+
});
|
|
55
|
+
clearTimeout(hideTimeout.current);
|
|
56
|
+
setHiddenShareActionNav(false);
|
|
57
|
+
};
|
|
58
|
+
var handleMouseLeave = function handleMouseLeave(e) {
|
|
59
|
+
window.runtime.browserWindow.setIgnoreMouseEvents(true, {
|
|
60
|
+
forward: true
|
|
61
|
+
});
|
|
62
|
+
hideTimeout.current = window.setTimeout(function () {
|
|
63
|
+
var hasPopover = document.querySelector('.fcr-popover');
|
|
64
|
+
if (!hasPopover) {
|
|
65
|
+
setHiddenShareActionNav(true);
|
|
66
|
+
}
|
|
67
|
+
}, HIDDEN_TIMEOUT);
|
|
68
|
+
};
|
|
69
|
+
var handleDragStop = function handleDragStop(_, data) {
|
|
70
|
+
setShowTransferAnimation(false);
|
|
71
|
+
var x = data.lastX,
|
|
72
|
+
y = data.lastY;
|
|
73
|
+
setCurrentCoordinateX(x);
|
|
74
|
+
setCurrentCoordinateY(y);
|
|
75
|
+
// setCoordinate(x, y);
|
|
76
|
+
if (y === MAX_Y || y > MAX_Y) {
|
|
77
|
+
toolbarDockPosition.placement = 'bottom';
|
|
78
|
+
} else if (y === 0 || y < 0) {
|
|
79
|
+
toolbarDockPosition.placement = 'top';
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
var handleMouseMove = function handleMouseMove() {
|
|
83
|
+
window.runtime.browserWindow.moveTop();
|
|
84
|
+
window.runtime.browserWindow.focus();
|
|
85
|
+
window.runtime.browserWindow.setIgnoreMouseEvents(false, {
|
|
86
|
+
forward: true
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
(0, _react.useEffect)(function () {
|
|
90
|
+
if (rndRef.current) {
|
|
91
|
+
var _getCoordinate = getCoordinate(),
|
|
92
|
+
x = _getCoordinate.x,
|
|
93
|
+
y = _getCoordinate.y;
|
|
94
|
+
setCurrentCoordinateX(x);
|
|
95
|
+
setCurrentCoordinateY(y);
|
|
96
|
+
}
|
|
97
|
+
}, []);
|
|
98
|
+
(0, _react.useEffect)(function () {
|
|
99
|
+
handleMouseLeave();
|
|
100
|
+
// document.body.classList.add(TOAST_ROOT_CLASS_NAME);
|
|
101
|
+
return function () {
|
|
102
|
+
window.runtime.browserWindow.setIgnoreMouseEvents(false);
|
|
103
|
+
clearTimeout(hideTimeout.current);
|
|
104
|
+
};
|
|
105
|
+
}, []);
|
|
106
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRnd.Rnd, {
|
|
107
|
+
style: {
|
|
108
|
+
transition: showTransferAnimation ? '0.2s' : '0s'
|
|
109
|
+
},
|
|
110
|
+
bounds: "window",
|
|
111
|
+
allowAnyClick: false,
|
|
112
|
+
cancel: ".share-action-nav__not-draggable",
|
|
113
|
+
dragHandleClassName: "fcr-board-toolbar-main",
|
|
114
|
+
enableUserSelectHack: true,
|
|
115
|
+
enableResizing: false,
|
|
116
|
+
"default": {
|
|
117
|
+
x: currentCoordinateX,
|
|
118
|
+
y: currentCoordinateY,
|
|
119
|
+
width: 'auto',
|
|
120
|
+
height: NAV_HEIGHT
|
|
121
|
+
},
|
|
122
|
+
onDragStop: handleDragStop,
|
|
123
|
+
position: {
|
|
124
|
+
x: currentCoordinateX,
|
|
125
|
+
y: currentCoordinateY
|
|
126
|
+
},
|
|
127
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
128
|
+
ref: rndRef,
|
|
129
|
+
onMouseEnter: handleMouseEnter,
|
|
130
|
+
onMouseLeave: handleMouseLeave,
|
|
131
|
+
onMouseOver: handleMouseEnter,
|
|
132
|
+
onMouseMove: handleMouseMove,
|
|
133
|
+
onClick: handleMouseMove,
|
|
134
|
+
className: "fcr-flex \n share-action-nav__container\n ".concat(toolbarCurrentPosition === _transferPositionIcon.TransferPosition.BOTTOM ? 'share-action-nav__move_to_bottom' : 'share-action-nav__move_to_top', "\n ").concat(hiddenShareActionNav ? 'share-action-nav__hidden' : '', "\n ").concat(hiddenShareActionNav && currentCoordinateY === MAX_Y ? 'completely-hidden-in-bottom' : '', "\n ").concat(hiddenShareActionNav && (currentCoordinateY < TITLE_HEIGHT || currentCoordinateY === TITLE_HEIGHT) ? 'completely-hidden-in-top' : '', "\n "),
|
|
135
|
+
children: props.children
|
|
136
|
+
})
|
|
137
|
+
});
|
|
138
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const useVisibleTools: (diraction?: 'horizontal') => {
|
|
2
|
+
mainTools: {
|
|
3
|
+
renderItem: () => {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
}[];
|
|
8
|
+
additionTools: {
|
|
9
|
+
renderItem: () => {
|
|
10
|
+
title: string;
|
|
11
|
+
component: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
}[];
|
|
14
|
+
showColorCount: number;
|
|
15
|
+
isShinked: boolean;
|
|
16
|
+
};
|
|
@@ -0,0 +1,251 @@
|
|
|
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.useVisibleTools = void 0;
|
|
9
|
+
require("core-js/modules/es.array.concat.js");
|
|
10
|
+
require("core-js/modules/es.array.filter.js");
|
|
11
|
+
require("core-js/modules/es.array.map.js");
|
|
12
|
+
require("core-js/modules/es.array.push.js");
|
|
13
|
+
require("core-js/modules/es.array.reverse.js");
|
|
14
|
+
require("core-js/modules/es.array.unshift.js");
|
|
15
|
+
require("core-js/modules/es.object.to-string.js");
|
|
16
|
+
var _react = require("react");
|
|
17
|
+
var _toolbarItem = require("./components/toolbar-item");
|
|
18
|
+
var _index = require("./components/color-picker/index");
|
|
19
|
+
var _eraserPicker = require("./components/eraser-picker");
|
|
20
|
+
var _history = require("./components/history");
|
|
21
|
+
var _penPicker = require("./components/pen-picker");
|
|
22
|
+
var _shapePicker = require("./components/shape-picker");
|
|
23
|
+
var _range = _interopRequireDefault(require("lodash/range"));
|
|
24
|
+
var _min = _interopRequireDefault(require("lodash/min"));
|
|
25
|
+
var _max = _interopRequireDefault(require("lodash/max"));
|
|
26
|
+
var _extraToolPicker = require("./components/extra-tool-picker");
|
|
27
|
+
var _store = require("./store");
|
|
28
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
29
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
30
|
+
var _screenCapturePicker = require("./components/screen-capture-picker");
|
|
31
|
+
var _enums = require("agora-edu-core/lib/room-control/whiteboard-control/enums");
|
|
32
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
|
+
var useVisibleTools = exports.useVisibleTools = function useVisibleTools(diraction) {
|
|
34
|
+
var _useContext = (0, _react.useContext)(_store.ToolbarContext),
|
|
35
|
+
_useContext$observabl = _useContext.observables,
|
|
36
|
+
currentTool = _useContext$observabl.currentTool,
|
|
37
|
+
maxCountVisibleTools = _useContext$observabl.maxCountVisibleTools,
|
|
38
|
+
toolbarDockPosition = _useContext$observabl.toolbarDockPosition,
|
|
39
|
+
setTool = _useContext.setTool,
|
|
40
|
+
saveDraft = _useContext.saveDraft,
|
|
41
|
+
captureScreen = _useContext.captureScreen;
|
|
42
|
+
var transI18n = (0, _i18n.useI18n)();
|
|
43
|
+
var handleToolChange = function handleToolChange(tool) {
|
|
44
|
+
return function () {
|
|
45
|
+
setTool(tool);
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
var placement = toolbarDockPosition.placement === 'top' ? 'top' : 'bottom';
|
|
49
|
+
var offset = toolbarDockPosition.placement === 'top' ? 10 : 30;
|
|
50
|
+
var baseMainTools = [{
|
|
51
|
+
renderItem: function renderItem() {
|
|
52
|
+
return {
|
|
53
|
+
title: transI18n('fmt_screenshare_whiteboard_button_laserpen'),
|
|
54
|
+
component: /*#__PURE__*/(0, _jsxRuntime.jsx)(_toolbarItem.ToolbarItem, {
|
|
55
|
+
tooltipPlacement: placement,
|
|
56
|
+
tooltip: transI18n('fmt_screenshare_whiteboard_button_laserpen'),
|
|
57
|
+
icon: _type.FcrIconType.FCR_WHITEBOARD_LASERPEN2,
|
|
58
|
+
onClick: handleToolChange(_enums.FcrBoardTool.LaserPointer),
|
|
59
|
+
isActive: currentTool === _enums.FcrBoardTool.LaserPointer,
|
|
60
|
+
diraction: diraction
|
|
61
|
+
})
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
// {
|
|
66
|
+
// renderItem: () => (
|
|
67
|
+
// <ToolbarItem
|
|
68
|
+
// tooltipPlacement={placement}
|
|
69
|
+
// tooltip={'fcr_board_tool_clicker'}
|
|
70
|
+
// icon={FcrIconType.FCR_WHITEBOARD_MOUSE}
|
|
71
|
+
// onClick={handleToolChange(FcrBoardTool.Clicker)}
|
|
72
|
+
// isActive={currentTool === FcrBoardTool.Clicker}
|
|
73
|
+
// />
|
|
74
|
+
// ),
|
|
75
|
+
// },
|
|
76
|
+
{
|
|
77
|
+
renderItem: function renderItem() {
|
|
78
|
+
return {
|
|
79
|
+
title: transI18n('fmt_screenshare_whiteboard_button_boxselection'),
|
|
80
|
+
component: /*#__PURE__*/(0, _jsxRuntime.jsx)(_toolbarItem.ToolbarItem, {
|
|
81
|
+
tooltipPlacement: placement,
|
|
82
|
+
tooltip: transI18n('fmt_screenshare_whiteboard_button_boxselection'),
|
|
83
|
+
icon: _type.FcrIconType.FCR_WHITECHOOSE,
|
|
84
|
+
onClick: handleToolChange(_enums.FcrBoardTool.Selector),
|
|
85
|
+
isActive: currentTool === _enums.FcrBoardTool.Selector,
|
|
86
|
+
diraction: diraction
|
|
87
|
+
})
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
renderItem: function renderItem() {
|
|
92
|
+
return {
|
|
93
|
+
title: transI18n('fmt_screenshare_whiteboard_button_paintbrush'),
|
|
94
|
+
component: /*#__PURE__*/(0, _jsxRuntime.jsx)(_penPicker.PenPickerItem, {
|
|
95
|
+
offset: offset
|
|
96
|
+
})
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}, {
|
|
100
|
+
renderItem: function renderItem() {
|
|
101
|
+
return {
|
|
102
|
+
title: transI18n('fmt_screenshare_whiteboard_button_shape'),
|
|
103
|
+
component: /*#__PURE__*/(0, _jsxRuntime.jsx)(_shapePicker.ShapePickerItem, {
|
|
104
|
+
offset: offset
|
|
105
|
+
})
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
}, {
|
|
109
|
+
renderItem: function renderItem() {
|
|
110
|
+
return {
|
|
111
|
+
title: transI18n('fmt_screenshare_whiteboard_button_text'),
|
|
112
|
+
component: /*#__PURE__*/(0, _jsxRuntime.jsx)(_toolbarItem.ToolbarItem, {
|
|
113
|
+
tooltipPlacement: placement,
|
|
114
|
+
tooltip: transI18n('fmt_screenshare_whiteboard_button_text'),
|
|
115
|
+
icon: _type.FcrIconType.FCR_WHITEBOARD_TEXT,
|
|
116
|
+
onClick: handleToolChange(_enums.FcrBoardTool.Text),
|
|
117
|
+
isActive: currentTool === _enums.FcrBoardTool.Text,
|
|
118
|
+
diraction: diraction
|
|
119
|
+
})
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
}, {
|
|
123
|
+
renderItem: function renderItem() {
|
|
124
|
+
return {
|
|
125
|
+
title: transI18n('fmt_screenshare_whiteboard_button_eraser'),
|
|
126
|
+
component: /*#__PURE__*/(0, _jsxRuntime.jsx)(_eraserPicker.EraserPickerItem, {
|
|
127
|
+
offset: offset
|
|
128
|
+
})
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
}, {
|
|
132
|
+
renderItem: function renderItem() {
|
|
133
|
+
return {
|
|
134
|
+
title: transI18n('fmt_screenshare_whiteboard_button_dragdrop'),
|
|
135
|
+
component: /*#__PURE__*/(0, _jsxRuntime.jsx)(_toolbarItem.ToolbarItem, {
|
|
136
|
+
tooltipPlacement: placement,
|
|
137
|
+
tooltip: transI18n('fmt_screenshare_whiteboard_button_dragdrop'),
|
|
138
|
+
icon: _type.FcrIconType.FCR_WHITEBOARD_MOVESUBJECTS2,
|
|
139
|
+
onClick: handleToolChange(_enums.FcrBoardTool.Hand),
|
|
140
|
+
isActive: currentTool === _enums.FcrBoardTool.Hand,
|
|
141
|
+
diraction: diraction
|
|
142
|
+
})
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
// {
|
|
147
|
+
// renderItem: () => (
|
|
148
|
+
// <ToolbarItem tooltip="Cloud" icon={FcrIconType.FCR_WHITEBOARD_CLOUD} isActive={false} />
|
|
149
|
+
// ),
|
|
150
|
+
// },
|
|
151
|
+
// {
|
|
152
|
+
// renderItem: ({ offset }: { offset?: number } = {}) => (
|
|
153
|
+
// <ScreenCapturePickerItem offset={offset} />
|
|
154
|
+
// ),
|
|
155
|
+
// },
|
|
156
|
+
{
|
|
157
|
+
renderItem: function renderItem() {
|
|
158
|
+
return {
|
|
159
|
+
title: transI18n('fmt_screenshare_whiteboard_button_screenshot'),
|
|
160
|
+
component: /*#__PURE__*/(0, _jsxRuntime.jsx)(_screenCapturePicker.ScreenCapturePickerItem, {
|
|
161
|
+
offset: offset
|
|
162
|
+
})
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
}, {
|
|
166
|
+
renderItem: function renderItem() {
|
|
167
|
+
return {
|
|
168
|
+
title: transI18n('fmt_screenshare_whiteboard_button_savescript'),
|
|
169
|
+
component: /*#__PURE__*/(0, _jsxRuntime.jsx)(_toolbarItem.ToolbarItem, {
|
|
170
|
+
tooltipPlacement: placement,
|
|
171
|
+
tooltip: transI18n('fmt_screenshare_whiteboard_button_savescript'),
|
|
172
|
+
icon: _type.FcrIconType.FCR_DOWNLOAD,
|
|
173
|
+
onClick: saveDraft,
|
|
174
|
+
isActive: false,
|
|
175
|
+
diraction: diraction
|
|
176
|
+
})
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
}];
|
|
180
|
+
var divider = {
|
|
181
|
+
renderItem: function renderItem() {
|
|
182
|
+
return {
|
|
183
|
+
title: '',
|
|
184
|
+
component: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
185
|
+
className: "fcr-divider-horizontal fcr-divider-marign-bottom"
|
|
186
|
+
})
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
var fixedTools = [divider, {
|
|
191
|
+
renderItem: function renderItem() {
|
|
192
|
+
return {
|
|
193
|
+
title: transI18n('fmt_screenshare_whiteboard_button_withdrwa'),
|
|
194
|
+
component: /*#__PURE__*/(0, _jsxRuntime.jsx)(_history.UndoItem, {})
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
}, {
|
|
198
|
+
renderItem: function renderItem() {
|
|
199
|
+
return {
|
|
200
|
+
title: transI18n('fmt_screenshare_whiteboard_button_forward'),
|
|
201
|
+
component: /*#__PURE__*/(0, _jsxRuntime.jsx)(_history.RedoItem, {})
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
}];
|
|
205
|
+
var additionTool = {
|
|
206
|
+
renderItem: function renderItem() {
|
|
207
|
+
return {
|
|
208
|
+
title: '',
|
|
209
|
+
component: /*#__PURE__*/(0, _jsxRuntime.jsx)(_extraToolPicker.AdditionToolPickerItem, {})
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
var colorTool = {
|
|
214
|
+
renderItem: function renderItem() {
|
|
215
|
+
return {
|
|
216
|
+
title: transI18n('fmt_whiteboard_labels_colour'),
|
|
217
|
+
component: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ColorPickerItem, {})
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
// whether toolbar needs to shrink in vertical direction
|
|
223
|
+
var isShinked = false;
|
|
224
|
+
var showColorCount = isShinked ? 0 : 3; /* addition tool */
|
|
225
|
+
|
|
226
|
+
if (showColorCount) {
|
|
227
|
+
baseMainTools.push(divider);
|
|
228
|
+
baseMainTools.push(colorTool);
|
|
229
|
+
}
|
|
230
|
+
var maxCountAvailableToDisplay = maxCountVisibleTools;
|
|
231
|
+
var mainTools = isShinked && diraction !== 'horizontal' ? (0, _range["default"])(0, (0, _max["default"])([0, (0, _min["default"])([maxCountAvailableToDisplay, baseMainTools.length])])).map(function (index) {
|
|
232
|
+
return baseMainTools[index];
|
|
233
|
+
}).concat([additionTool]).concat(fixedTools) : baseMainTools.concat(fixedTools);
|
|
234
|
+
var additionToolsCount = baseMainTools.length - maxCountAvailableToDisplay;
|
|
235
|
+
var additionTools = [].concat(baseMainTools).reverse().filter(function (tool, index) {
|
|
236
|
+
if (index < additionToolsCount) {
|
|
237
|
+
return true;
|
|
238
|
+
}
|
|
239
|
+
return false;
|
|
240
|
+
});
|
|
241
|
+
if (isShinked) {
|
|
242
|
+
additionTools.unshift(colorTool);
|
|
243
|
+
}
|
|
244
|
+
additionTools = additionTools.reverse();
|
|
245
|
+
return {
|
|
246
|
+
mainTools: mainTools,
|
|
247
|
+
additionTools: additionTools,
|
|
248
|
+
showColorCount: showColorCount,
|
|
249
|
+
isShinked: isShinked
|
|
250
|
+
};
|
|
251
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseFragment } from '../base';
|
|
2
|
+
import './style.css';
|
|
3
|
+
export declare class Toolbar extends BaseFragment {
|
|
4
|
+
private _store;
|
|
5
|
+
get name(): "toolbar";
|
|
6
|
+
get component(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
constructor(runtime: Runtime);
|
|
8
|
+
onEvent(event: RendererCustomEvent): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const windowOptions: Electron.BrowserWindowConstructorOptions;
|
|
11
|
+
export declare const webPreferences: Electron.WebPreferences;
|
|
12
|
+
export declare const title = "Toolbar";
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
require("core-js/modules/es.reflect.construct.js");
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.windowOptions = exports.webPreferences = exports.title = exports.Toolbar = void 0;
|
|
10
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
+
var _base = require("../base");
|
|
16
|
+
var _store = require("./store");
|
|
17
|
+
var _view = require("./view");
|
|
18
|
+
require("./style.css");
|
|
19
|
+
var _wrapper = require("./components/wrapper");
|
|
20
|
+
var _constant = require("../../utilities/constant");
|
|
21
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
23
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
|
+
var Toolbar = exports.Toolbar = /*#__PURE__*/function (_BaseFragment) {
|
|
25
|
+
function Toolbar(runtime) {
|
|
26
|
+
var _this;
|
|
27
|
+
(0, _classCallCheck2["default"])(this, Toolbar);
|
|
28
|
+
_this = _callSuper(this, Toolbar, [runtime]);
|
|
29
|
+
_this._store = new _store.ToolbarStore();
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
(0, _inherits2["default"])(Toolbar, _BaseFragment);
|
|
33
|
+
return (0, _createClass2["default"])(Toolbar, [{
|
|
34
|
+
key: "name",
|
|
35
|
+
get: function get() {
|
|
36
|
+
return 'toolbar';
|
|
37
|
+
}
|
|
38
|
+
}, {
|
|
39
|
+
key: "component",
|
|
40
|
+
get: function get() {
|
|
41
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_store.ToolbarContext.Provider, {
|
|
42
|
+
value: this._store,
|
|
43
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_wrapper.DraggleWrapper, {
|
|
44
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_view.ToolbarHorizontal, {})
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
key: "onEvent",
|
|
50
|
+
value: function onEvent(event) {
|
|
51
|
+
var _ref = event,
|
|
52
|
+
action = _ref.action,
|
|
53
|
+
payload = _ref.payload;
|
|
54
|
+
console.log('Whiteboard onEvent', action, payload);
|
|
55
|
+
switch (action) {
|
|
56
|
+
case _constant.RendererEventAction.UPDATE_TOOLBAR:
|
|
57
|
+
this._store.observables = payload;
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}]);
|
|
62
|
+
}(_base.BaseFragment);
|
|
63
|
+
var windowOptions = exports.windowOptions = {
|
|
64
|
+
width: 300,
|
|
65
|
+
height: 100,
|
|
66
|
+
y: 0,
|
|
67
|
+
x: 0,
|
|
68
|
+
frame: false,
|
|
69
|
+
transparent: true,
|
|
70
|
+
maximizable: false,
|
|
71
|
+
fullscreenable: false,
|
|
72
|
+
backgroundColor: '#00000000',
|
|
73
|
+
fullscreen: false,
|
|
74
|
+
hasShadow: false,
|
|
75
|
+
useContentSize: true
|
|
76
|
+
};
|
|
77
|
+
var webPreferences = exports.webPreferences = {
|
|
78
|
+
nodeIntegration: true
|
|
79
|
+
};
|
|
80
|
+
var title = exports.title = 'Toolbar';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FcrBoardShape, FcrBoardTool, WhiteboardThemeType } from '../../modules/whiteboard/type';
|
|
3
|
+
export declare class ToolbarStore {
|
|
4
|
+
accessor observables: {
|
|
5
|
+
currentTool: FcrBoardTool | undefined;
|
|
6
|
+
currentShape: FcrBoardShape | undefined;
|
|
7
|
+
currentColor: string;
|
|
8
|
+
currentStrokeWidth: number;
|
|
9
|
+
toolbarPosition: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
toolbarReleased: boolean;
|
|
14
|
+
toolbarDockPosition: {
|
|
15
|
+
x: number | undefined;
|
|
16
|
+
y: number | undefined;
|
|
17
|
+
placement: "top" | "bottom";
|
|
18
|
+
};
|
|
19
|
+
redoSteps: number;
|
|
20
|
+
undoSteps: number;
|
|
21
|
+
lastPen: FcrBoardShape | undefined;
|
|
22
|
+
lastShape: FcrBoardShape | undefined;
|
|
23
|
+
maxCountVisibleTools: number;
|
|
24
|
+
layoutReady: boolean;
|
|
25
|
+
colors: string[];
|
|
26
|
+
commonColorIndex: number;
|
|
27
|
+
background: string;
|
|
28
|
+
commonColors: string[];
|
|
29
|
+
};
|
|
30
|
+
constructor();
|
|
31
|
+
initToolbar(): void;
|
|
32
|
+
getCurrentWorkArea(): {
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
};
|
|
38
|
+
getCoordinate(): {
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
};
|
|
42
|
+
redo(): void;
|
|
43
|
+
undo(): void;
|
|
44
|
+
clean(): void;
|
|
45
|
+
setTool(tool: FcrBoardTool): void;
|
|
46
|
+
setPen(shape: FcrBoardShape): void;
|
|
47
|
+
setShape(shape: FcrBoardShape): void;
|
|
48
|
+
setStrokeColor(color: string): void;
|
|
49
|
+
setStrokeWidth(strokeWidth: number): void;
|
|
50
|
+
clickExpansionTool(): void;
|
|
51
|
+
setToolbarPosition(pos: {
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
}): void;
|
|
55
|
+
dragToolbar(): void;
|
|
56
|
+
releaseToolbar(): void;
|
|
57
|
+
captureScreen(hideWindow?: boolean): void;
|
|
58
|
+
saveDraft(): void;
|
|
59
|
+
setTheme(theme: WhiteboardThemeType): void;
|
|
60
|
+
setCommonColor(color: string): void;
|
|
61
|
+
}
|
|
62
|
+
export declare const ToolbarContext: import("react").Context<ToolbarStore>;
|