fcr-ui-scene 3.4.3 → 3.4.5
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.js +3 -0
- package/lib/electron/app.js +2 -0
- package/lib/electron/bootstrap-dev.js +2 -0
- package/lib/electron/bootstrap-sdk.js +2 -0
- package/lib/electron/injections.js +5 -0
- package/lib/electron/tools.js +4 -0
- package/lib/electron/window.js +2 -0
- package/lib/modules/action-bar/components/apps/app-item/index.js +2 -0
- package/lib/modules/action-bar/components/apps/appitems.js +5 -2
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +1 -0
- package/lib/modules/action-bar/components/collapse/index.js +4 -0
- package/lib/modules/action-bar/components/item/index.js +2 -0
- package/lib/modules/action-bar/components/leave/index.js +2 -0
- package/lib/modules/action-bar/components/more/poppover-content.js +4 -0
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +1 -2
- package/lib/modules/action-bar/components/notification-bar/index.js +2 -0
- package/lib/modules/action-bar/components/trigger-output-language/index.js +1 -2
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +3 -0
- package/lib/modules/action-bar/store.js +6 -0
- package/lib/modules/audio-stream/index.js +3 -0
- package/lib/modules/chat/chat-room-store.js +4 -0
- package/lib/modules/chat/components/chat-bar/index.js +2 -0
- package/lib/modules/chat/components/chat-select/index.js +3 -0
- package/lib/modules/chat/components/message-list/index.js +2 -0
- package/lib/modules/chat/store.js +1 -0
- package/lib/modules/chat/view.js +4 -0
- package/lib/modules/components/device-control/components/audio-menu/index.js +1 -2
- package/lib/modules/components/device-control/components/video-menu/index.js +1 -2
- package/lib/modules/components/device-control/store.js +1 -0
- package/lib/modules/components/leave-meeting/store.js +2 -0
- package/lib/modules/components/member-window/index.js +4 -0
- package/lib/modules/components/security-menu/index.js +4 -1
- package/lib/modules/components/tab-frame/index.js +4 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +1 -2
- package/lib/modules/connection-gateway/components/phone/index.js +1 -2
- package/lib/modules/connection-gateway/store.js +4 -0
- package/lib/modules/control-bar/components/more-actions/index.js +2 -0
- package/lib/modules/control-bar/index.js +2 -0
- package/lib/modules/control-bar/store.js +4 -0
- package/lib/modules/control-bar/view.js +2 -0
- package/lib/modules/device-pretest/settings/beauty.js +1 -2
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -2
- package/lib/modules/device-pretest/store.js +2 -0
- package/lib/modules/dialog/components/dialog-container/component/body.js +2 -0
- package/lib/modules/dialog/components/system-preference/index.js +2 -0
- package/lib/modules/dialog/hooks/useElectron.js +2 -0
- package/lib/modules/dialog/index.js +2 -0
- package/lib/modules/dialog/store.js +3 -0
- package/lib/modules/dialog/view.js +1 -2
- package/lib/modules/event-confirm/store.js +3 -0
- package/lib/modules/event-confirm/view.js +5 -2
- package/lib/modules/event-toast/store.js +2 -0
- package/lib/modules/event-toast/view.js +1 -2
- package/lib/modules/interpreter/interpreter-list/index.js +2 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +5 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +2 -0
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +4 -0
- package/lib/modules/interpreter/store.js +5 -0
- package/lib/modules/interpreter/utils.js +1 -0
- package/lib/modules/invite/enums.js +0 -1
- package/lib/modules/invite/store.js +1 -1
- package/lib/modules/layout/components/Carousel.js +1 -2
- package/lib/modules/layout/components/Gallery.js +2 -2
- package/lib/modules/layout/components/index.js +1 -0
- package/lib/modules/layout/store.js +3 -0
- package/lib/modules/layout/type.js +0 -2
- package/lib/modules/live-streaming/store.js +1 -0
- package/lib/modules/notification/interpreter-status/index.js +1 -2
- package/lib/modules/offscreen-pulling/index.js +1 -0
- package/lib/modules/participant/components/attendee/index.js +3 -0
- package/lib/modules/participant/components/drop-menu/index.js +3 -0
- package/lib/modules/participant/components/participants/index.js +1 -0
- package/lib/modules/participant/components/user-action/index.js +2 -0
- package/lib/modules/participant/index.js +2 -0
- package/lib/modules/participant/member-list-data-source.js +3 -0
- package/lib/modules/participant/store.js +5 -0
- package/lib/modules/pc-audio-connect/store.js +1 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.js +1 -2
- package/lib/modules/phone-audio-connect/store.js +3 -0
- package/lib/modules/phone-audio-connect/view.js +1 -2
- package/lib/modules/setting/audio-settings/audio-settings.js +1 -1
- package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -2
- package/lib/modules/setting/state/index.js +4 -0
- package/lib/modules/setting/store.js +8 -4
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib/modules/share-screen/components/selection/index.js +1 -1
- package/lib/modules/share-screen/store.js +4 -0
- package/lib/modules/sound-effect/index.js +1 -0
- package/lib/modules/state-bar/layout-config.js +1 -2
- package/lib/modules/state-bar/live-streaming-state.js +1 -0
- package/lib/modules/state-bar/store.js +1 -0
- package/lib/modules/video-window/members/index.js +1 -2
- package/lib/modules/video-window/store.js +4 -0
- package/lib/modules/video-window/topControl/index.js +2 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +2 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/index.js +4 -1
- package/lib/modules/whiteboard/index.js +4 -0
- package/lib/providers/device-privilege-provider.js +2 -0
- package/lib/providers/device-provider.js +5 -0
- package/lib/providers/device-stream-provider.js +1 -0
- package/lib/providers/dialog-provider.js +2 -0
- package/lib/providers/event-provider.js +2 -0
- package/lib/providers/interpreter-provider.js +4 -0
- package/lib/providers/message-provider.js +2 -0
- package/lib/providers/phone-audio-provider.js +3 -0
- package/lib/providers/privilege-provider.js +4 -0
- package/lib/providers/renderer-provider.js +1 -0
- package/lib/providers/room-provider.js +3 -0
- package/lib/providers/screen-share-provider.js +1 -0
- package/lib/scenes/main-scene.js +2 -0
- package/lib/shared-data-source/chat-data.js +2 -0
- package/lib/shared-data-source/interpreter.js +2 -0
- package/lib/shared-data-source/layout-data.js +4 -1
- package/lib/shared-data-source/setting.js +2 -0
- package/lib/shared-data-source/video-window.js +4 -0
- package/lib/shared-data-source/waiting-room.js +1 -0
- package/lib/type.js +0 -14
- package/lib/ui-scene.js +2 -0
- package/lib/utilities/constant.js +0 -7
- package/lib/utilities/meeting-detail.js +26 -9
- package/lib/utilities/privilege.js +2 -0
- package/lib/utilities/renderer-event.js +2 -0
- package/lib/utilities/renderer.js +1 -0
- package/lib/utilities/setting-config-storage.js +2 -0
- package/lib/utilities/tools.js +3 -0
- package/package.json +5 -10
- package/lib/common/device-store.d.ts +0 -149
- package/lib/common/device-store.js +0 -1551
- package/lib/common/device-stream-store.d.ts +0 -51
- package/lib/common/device-stream-store.js +0 -546
- package/lib/common/event-store.d.ts +0 -135
- package/lib/common/event-store.js +0 -280
- package/lib/common/room-store.d.ts +0 -58
- package/lib/common/room-store.js +0 -402
- package/lib/common/security-store.d.ts +0 -131
- package/lib/common/security-store.js +0 -957
- package/lib/fragments/base.d.ts +0 -10
- package/lib/fragments/base.js +0 -44
- package/lib/fragments/control-bar/cloud-recording-buttons.d.ts +0 -1
- package/lib/fragments/control-bar/cloud-recording-buttons.js +0 -67
- package/lib/fragments/control-bar/context.d.ts +0 -2
- package/lib/fragments/control-bar/context.js +0 -9
- package/lib/fragments/control-bar/control-bar-store.d.ts +0 -196
- package/lib/fragments/control-bar/control-bar-store.js +0 -1678
- package/lib/fragments/control-bar/device/index.d.ts +0 -31
- package/lib/fragments/control-bar/device/index.js +0 -212
- package/lib/fragments/control-bar/index.css +0 -281
- package/lib/fragments/control-bar/index.d.ts +0 -26
- package/lib/fragments/control-bar/index.js +0 -257
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +0 -128
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +0 -3
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +0 -60
- package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +0 -2
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +0 -280
- package/lib/fragments/control-bar/more-actions/index.css +0 -72
- package/lib/fragments/control-bar/more-actions/index.d.ts +0 -7
- package/lib/fragments/control-bar/more-actions/index.js +0 -299
- package/lib/fragments/control-bar/security-content/index.css +0 -99
- package/lib/fragments/control-bar/security-content/index.d.ts +0 -2
- package/lib/fragments/control-bar/security-content/index.js +0 -234
- package/lib/fragments/control-bar/share-state-nav/index.css +0 -70
- package/lib/fragments/control-bar/share-state-nav/index.d.ts +0 -10
- package/lib/fragments/control-bar/share-state-nav/index.js +0 -134
- package/lib/fragments/control-bar/stop-live-streaming/index.d.ts +0 -1
- package/lib/fragments/control-bar/stop-live-streaming/index.js +0 -82
- package/lib/fragments/control-bar/transfer-position-icon/index.d.ts +0 -11
- package/lib/fragments/control-bar/transfer-position-icon/index.js +0 -46
- package/lib/fragments/control-bar/view.d.ts +0 -1
- package/lib/fragments/control-bar/view.js +0 -336
- package/lib/fragments/live-streaming/context.d.ts +0 -2
- package/lib/fragments/live-streaming/context.js +0 -9
- package/lib/fragments/live-streaming/index.css +0 -11
- package/lib/fragments/live-streaming/index.d.ts +0 -11
- package/lib/fragments/live-streaming/index.js +0 -79
- package/lib/fragments/live-streaming/store.d.ts +0 -21
- package/lib/fragments/live-streaming/store.js +0 -238
- package/lib/fragments/live-streaming/view.d.ts +0 -2
- package/lib/fragments/live-streaming/view.js +0 -46
- package/lib/fragments/share-screen-selection/context.d.ts +0 -2
- package/lib/fragments/share-screen-selection/context.js +0 -9
- package/lib/fragments/share-screen-selection/index.css +0 -66
- package/lib/fragments/share-screen-selection/index.d.ts +0 -9
- package/lib/fragments/share-screen-selection/index.js +0 -94
- package/lib/fragments/share-screen-selection/open-mic-tips.d.ts +0 -9
- package/lib/fragments/share-screen-selection/open-mic-tips.js +0 -55
- package/lib/fragments/share-screen-selection/selection-store.d.ts +0 -35
- package/lib/fragments/share-screen-selection/selection-store.js +0 -352
- package/lib/fragments/share-screen-selection/tips.css +0 -33
- package/lib/fragments/share-screen-selection/view.d.ts +0 -9
- package/lib/fragments/share-screen-selection/view.js +0 -262
- package/lib/fragments/toolbar/components/color-picker/components/color.d.ts +0 -5
- package/lib/fragments/toolbar/components/color-picker/components/color.js +0 -56
- package/lib/fragments/toolbar/components/color-picker/components/panel.d.ts +0 -1
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +0 -118
- package/lib/fragments/toolbar/components/color-picker/components/picker.d.ts +0 -1
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +0 -77
- package/lib/fragments/toolbar/components/color-picker/index.d.ts +0 -2
- package/lib/fragments/toolbar/components/color-picker/index.js +0 -57
- package/lib/fragments/toolbar/components/color-picker.d.ts +0 -2
- package/lib/fragments/toolbar/components/color-picker.js +0 -129
- package/lib/fragments/toolbar/components/eraser-picker.d.ts +0 -4
- package/lib/fragments/toolbar/components/eraser-picker.js +0 -75
- package/lib/fragments/toolbar/components/extension-toolbar-item.d.ts +0 -1
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +0 -83
- package/lib/fragments/toolbar/components/extra-tool-picker.d.ts +0 -1
- package/lib/fragments/toolbar/components/extra-tool-picker.js +0 -64
- package/lib/fragments/toolbar/components/fold-icon.d.ts +0 -2
- package/lib/fragments/toolbar/components/fold-icon.js +0 -41
- package/lib/fragments/toolbar/components/history.d.ts +0 -2
- package/lib/fragments/toolbar/components/history.js +0 -46
- package/lib/fragments/toolbar/components/pen-picker.d.ts +0 -4
- package/lib/fragments/toolbar/components/pen-picker.js +0 -134
- package/lib/fragments/toolbar/components/screen-capture-picker.d.ts +0 -4
- package/lib/fragments/toolbar/components/screen-capture-picker.js +0 -86
- package/lib/fragments/toolbar/components/shape-picker.d.ts +0 -4
- package/lib/fragments/toolbar/components/shape-picker.js +0 -148
- package/lib/fragments/toolbar/components/toolbar-item.d.ts +0 -1
- package/lib/fragments/toolbar/components/toolbar-item.js +0 -42
- package/lib/fragments/toolbar/components/transfer-position-icon/index.d.ts +0 -11
- package/lib/fragments/toolbar/components/transfer-position-icon/index.js +0 -46
- package/lib/fragments/toolbar/components/wrapper.d.ts +0 -1
- package/lib/fragments/toolbar/components/wrapper.js +0 -138
- package/lib/fragments/toolbar/hooks.d.ts +0 -16
- package/lib/fragments/toolbar/hooks.js +0 -256
- package/lib/fragments/toolbar/index.d.ts +0 -12
- package/lib/fragments/toolbar/index.js +0 -80
- package/lib/fragments/toolbar/store.d.ts +0 -62
- package/lib/fragments/toolbar/store.js +0 -297
- package/lib/fragments/toolbar/style.css +0 -347
- package/lib/fragments/toolbar/view.d.ts +0 -1
- package/lib/fragments/toolbar/view.js +0 -36
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +0 -20
- package/lib/modules/action-bar/action-bar-collapes-items.js +0 -225
- package/lib/modules/action-bar/apps/app-item/index.css +0 -35
- package/lib/modules/action-bar/apps/app-item/index.d.ts +0 -12
- package/lib/modules/action-bar/apps/app-item/index.js +0 -61
- package/lib/modules/action-bar/apps/appitems.d.ts +0 -5
- package/lib/modules/action-bar/apps/appitems.js +0 -45
- package/lib/modules/action-bar/apps/index.css +0 -8
- package/lib/modules/action-bar/apps/index.d.ts +0 -4
- package/lib/modules/action-bar/apps/index.js +0 -57
- package/lib/modules/action-bar/apps/useAppItemOptions.d.ts +0 -9
- package/lib/modules/action-bar/apps/useAppItemOptions.js +0 -29
- package/lib/modules/action-bar/apps/useBeautyBackground.d.ts +0 -10
- package/lib/modules/action-bar/apps/useBeautyBackground.js +0 -34
- package/lib/modules/action-bar/apps/useInterpreter.d.ts +0 -14
- package/lib/modules/action-bar/apps/useInterpreter.js +0 -35
- package/lib/modules/action-bar/apps/useLiveStreaming.d.ts +0 -16
- package/lib/modules/action-bar/apps/useLiveStreaming.js +0 -41
- package/lib/modules/action-bar/board/index.d.ts +0 -4
- package/lib/modules/action-bar/board/index.js +0 -34
- package/lib/modules/action-bar/breakout-room/index.d.ts +0 -4
- package/lib/modules/action-bar/breakout-room/index.js +0 -32
- package/lib/modules/action-bar/chat/index.css +0 -80
- package/lib/modules/action-bar/chat/index.d.ts +0 -5
- package/lib/modules/action-bar/chat/index.js +0 -152
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +0 -3
- package/lib/modules/action-bar/components/leave/assign-host.js +0 -64
- package/lib/modules/action-bar/components/leave/index.css +0 -126
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +0 -3
- package/lib/modules/action-bar/components/leave/leave-meeting.js +0 -153
- package/lib/modules/action-bar/context.d.ts +0 -2
- package/lib/modules/action-bar/context.js +0 -9
- package/lib/modules/action-bar/device/index.css +0 -162
- package/lib/modules/action-bar/device/index.d.ts +0 -8
- package/lib/modules/action-bar/device/index.js +0 -613
- package/lib/modules/action-bar/interpreter/index.d.ts +0 -6
- package/lib/modules/action-bar/interpreter/index.js +0 -41
- package/lib/modules/action-bar/item-placement.d.ts +0 -7
- package/lib/modules/action-bar/item-placement.js +0 -18
- package/lib/modules/action-bar/item.d.ts +0 -27
- package/lib/modules/action-bar/item.js +0 -159
- package/lib/modules/action-bar/leave/assign-host.d.ts +0 -10
- package/lib/modules/action-bar/leave/assign-host.js +0 -64
- package/lib/modules/action-bar/leave/index.css +0 -126
- package/lib/modules/action-bar/leave/index.d.ts +0 -3
- package/lib/modules/action-bar/leave/index.js +0 -165
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +0 -18
- package/lib/modules/action-bar/leave/leave-meeting.js +0 -153
- package/lib/modules/action-bar/live-streaming/index.d.ts +0 -4
- package/lib/modules/action-bar/live-streaming/index.js +0 -39
- package/lib/modules/action-bar/more/index.css +0 -114
- package/lib/modules/action-bar/more/index.d.ts +0 -5
- package/lib/modules/action-bar/more/index.js +0 -80
- package/lib/modules/action-bar/more/poppover-content.d.ts +0 -8
- package/lib/modules/action-bar/more/poppover-content.js +0 -400
- package/lib/modules/action-bar/participants/index.css +0 -21
- package/lib/modules/action-bar/participants/index.d.ts +0 -5
- package/lib/modules/action-bar/participants/index.js +0 -82
- package/lib/modules/action-bar/record/index.css +0 -39
- package/lib/modules/action-bar/record/index.d.ts +0 -5
- package/lib/modules/action-bar/record/index.js +0 -161
- package/lib/modules/action-bar/record/stop-record-dialog.d.ts +0 -5
- package/lib/modules/action-bar/record/stop-record-dialog.js +0 -48
- package/lib/modules/action-bar/respond/index.d.ts +0 -4
- package/lib/modules/action-bar/respond/index.js +0 -32
- package/lib/modules/action-bar/screen-share/index.d.ts +0 -4
- package/lib/modules/action-bar/screen-share/index.js +0 -101
- package/lib/modules/action-bar/screen-share/submenu.d.ts +0 -1
- package/lib/modules/action-bar/screen-share/submenu.js +0 -154
- package/lib/modules/action-bar/security/drop-menu.d.ts +0 -1
- package/lib/modules/action-bar/security/drop-menu.js +0 -312
- package/lib/modules/action-bar/security/index.d.ts +0 -4
- package/lib/modules/action-bar/security/index.js +0 -56
- package/lib/modules/action-bar/settings/index.d.ts +0 -4
- package/lib/modules/action-bar/settings/index.js +0 -41
- package/lib/modules/action-bar/smaller.d.ts +0 -1
- package/lib/modules/action-bar/smaller.js +0 -52
- package/lib/modules/action-bar/switch-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/switch-input-language-room/index.css +0 -86
- package/lib/modules/action-bar/switch-input-language-room/index.d.ts +0 -16
- package/lib/modules/action-bar/switch-input-language-room/index.js +0 -236
- package/lib/modules/action-bar/switch-output-language-room/drop-menu.d.ts +0 -1
- package/lib/modules/action-bar/switch-output-language-room/drop-menu.js +0 -197
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.css +0 -18
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.d.ts +0 -14
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +0 -72
- package/lib/modules/action-bar/switch-output-language-room/index.d.ts +0 -12
- package/lib/modules/action-bar/switch-output-language-room/index.js +0 -309
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +0 -58
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.d.ts +0 -8
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.js +0 -100
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +0 -56
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +0 -5
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +0 -33
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/dome.png +0 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.css +0 -74
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.d.ts +0 -2
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.js +0 -99
- package/lib/modules/action-bar/type.d.ts +0 -6
- package/lib/modules/action-bar/type.js +0 -13
- package/lib/modules/chat/chat-bar/index.css +0 -80
- package/lib/modules/chat/chat-bar/index.d.ts +0 -11
- package/lib/modules/chat/chat-bar/index.js +0 -142
- package/lib/modules/chat/chat-select/index.css +0 -178
- package/lib/modules/chat/chat-select/index.d.ts +0 -12
- package/lib/modules/chat/chat-select/index.js +0 -212
- package/lib/modules/chat/chat.d.ts +0 -11
- package/lib/modules/chat/chat.js +0 -386
- package/lib/modules/chat/contex.d.ts +0 -2
- package/lib/modules/chat/contex.js +0 -9
- package/lib/modules/chat/demo-wrapper.d.ts +0 -1
- package/lib/modules/chat/demo-wrapper.js +0 -42
- package/lib/modules/chat/message-list.d.ts +0 -22
- package/lib/modules/chat/message-list.js +0 -630
- package/lib/modules/components/device-control/type.d.ts +0 -6
- package/lib/modules/components/device-control/type.js +0 -13
- package/lib/modules/components/toast/index.css +0 -12
- package/lib/modules/components/toast/index.d.ts +0 -10
- package/lib/modules/components/toast/index.js +0 -66
- package/lib/modules/components/toast/store.d.ts +0 -17
- package/lib/modules/components/toast/store.js +0 -149
- package/lib/modules/components/toast/view.d.ts +0 -2
- package/lib/modules/components/toast/view.js +0 -35
- package/lib/modules/connection-gateway/components/tabs/index.css +0 -31
- package/lib/modules/connection-gateway/components/tabs/index.d.ts +0 -4
- package/lib/modules/connection-gateway/components/tabs/index.js +0 -44
- package/lib/modules/control-bar/type.d.ts +0 -10
- package/lib/modules/control-bar/type.js +0 -18
- package/lib/modules/device-pretest/context.d.ts +0 -2
- package/lib/modules/device-pretest/context.js +0 -9
- package/lib/modules/dialog/components/confirm/electron.d.ts +0 -10
- package/lib/modules/dialog/components/confirm/electron.js +0 -54
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -25
- package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +0 -5
- package/lib/modules/dialog/components/operation-waiting-room/electron.js +0 -42
- package/lib/modules/dialog/components/operation-waiting-room/index.css +0 -44
- package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +0 -5
- package/lib/modules/dialog/components/operation-waiting-room/index.js +0 -156
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +0 -12
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +0 -36
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +0 -50
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +0 -5
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +0 -90
- package/lib/modules/dialog/components/switch-language-channels/electron.d.ts +0 -2
- package/lib/modules/dialog/components/switch-language-channels/electron.js +0 -72
- package/lib/modules/dialog/components/switch-language-channels/index.css +0 -30
- package/lib/modules/dialog/components/switch-language-channels/index.d.ts +0 -4
- package/lib/modules/dialog/components/switch-language-channels/index.js +0 -63
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.css +0 -36
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.d.ts +0 -3
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.js +0 -47
- package/lib/modules/dialog/context.d.ts +0 -2
- package/lib/modules/dialog/context.js +0 -9
- package/lib/modules/event-notification/context.d.ts +0 -2
- package/lib/modules/event-notification/context.js +0 -9
- package/lib/modules/event-notification/index.css +0 -58
- package/lib/modules/event-notification/index.d.ts +0 -13
- package/lib/modules/event-notification/index.js +0 -48
- package/lib/modules/event-notification/store.d.ts +0 -17
- package/lib/modules/event-notification/store.js +0 -133
- package/lib/modules/event-notification/view.d.ts +0 -5
- package/lib/modules/event-notification/view.js +0 -114
- package/lib/modules/event-toast/context.d.ts +0 -2
- package/lib/modules/event-toast/context.js +0 -9
- package/lib/modules/interpreter/action/edit-btn/index.css +0 -3
- package/lib/modules/interpreter/add-button/index.css +0 -4
- package/lib/modules/interpreter/add-button/index.d.ts +0 -11
- package/lib/modules/interpreter/add-button/index.js +0 -43
- package/lib/modules/interpreter/config.d.ts +0 -16
- package/lib/modules/interpreter/config.js +0 -17
- package/lib/modules/interpreter/constant.d.ts +0 -51
- package/lib/modules/interpreter/constant.js +0 -58
- package/lib/modules/interpreter/footer/components/interpreter-btn/index.d.ts +0 -5
- package/lib/modules/interpreter/footer/components/interpreter-btn/index.js +0 -53
- package/lib/modules/interpreter/footer/components/set-btn/index.d.ts +0 -5
- package/lib/modules/interpreter/footer/components/set-btn/index.js +0 -49
- package/lib/modules/interpreter/footer/components/tooltip-wrapper/index.d.ts +0 -6
- package/lib/modules/interpreter/footer/components/tooltip-wrapper/index.js +0 -30
- package/lib/modules/interpreter/index.css +0 -15
- package/lib/modules/invite/context.d.ts +0 -2
- package/lib/modules/invite/context.js +0 -9
- package/lib/modules/invite/pstn-invite.d.ts +0 -2
- package/lib/modules/invite/pstn-invite.js +0 -271
- package/lib/modules/invite/voip-invite.d.ts +0 -1
- package/lib/modules/invite/voip-invite.js +0 -293
- package/lib/modules/layout/components/Layout.d.ts +0 -2
- package/lib/modules/layout/components/Layout.js +0 -190
- package/lib/modules/layout/context.d.ts +0 -2
- package/lib/modules/layout/context.js +0 -9
- package/lib/modules/layout/member-window/index.css +0 -406
- package/lib/modules/layout/member-window/index.d.ts +0 -74
- package/lib/modules/layout/member-window/index.js +0 -881
- package/lib/modules/layout/video-window-datasource.d.ts +0 -127
- package/lib/modules/layout/video-window-datasource.js +0 -1121
- package/lib/modules/live-streaming/context.d.ts +0 -2
- package/lib/modules/live-streaming/context.js +0 -9
- package/lib/modules/participant/attendee/index.css +0 -69
- package/lib/modules/participant/attendee/index.d.ts +0 -36
- package/lib/modules/participant/attendee/index.js +0 -398
- package/lib/modules/participant/attendee/user-more-actions.d.ts +0 -22
- package/lib/modules/participant/attendee/user-more-actions.js +0 -76
- package/lib/modules/participant/can-moveable/index.d.ts +0 -1
- package/lib/modules/participant/can-moveable/index.js +0 -68
- package/lib/modules/participant/context.d.ts +0 -2
- package/lib/modules/participant/context.js +0 -9
- package/lib/modules/participant/room-control-drop-menu/index.css +0 -56
- package/lib/modules/participant/room-control-drop-menu/index.d.ts +0 -2
- package/lib/modules/participant/room-control-drop-menu/index.js +0 -188
- package/lib/modules/setting/context.d.ts +0 -2
- package/lib/modules/setting/context.js +0 -9
- package/lib/modules/share-screen/selection/index.css +0 -68
- package/lib/modules/share-screen/selection/index.d.ts +0 -9
- package/lib/modules/share-screen/selection/index.js +0 -273
- package/lib/modules/share-screen/share-state-bar/index.css +0 -76
- package/lib/modules/share-screen/share-state-bar/index.d.ts +0 -4
- package/lib/modules/share-screen/share-state-bar/index.js +0 -98
- package/lib/modules/state-bar/context.d.ts +0 -2
- package/lib/modules/state-bar/context.js +0 -9
- package/lib/modules/video-window/context.d.ts +0 -2
- package/lib/modules/video-window/context.js +0 -9
- package/lib/modules/waiting-room-layout/context.d.ts +0 -2
- package/lib/modules/waiting-room-layout/context.js +0 -9
- package/lib/modules/waiting-room-layout/type.d.ts +0 -0
- package/lib/modules/waiting-room-layout/type.js +0 -1
- package/lib/modules/whiteboard/app.d.ts +0 -2
- package/lib/modules/whiteboard/app.js +0 -49
- package/lib/utilities/extract.d.ts +0 -5
- package/lib/utilities/extract.js +0 -120
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.ChatSelect = void 0;
|
|
9
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
-
require("core-js/modules/es.array.filter.js");
|
|
11
|
-
require("core-js/modules/es.array.includes.js");
|
|
12
|
-
require("core-js/modules/es.array.index-of.js");
|
|
13
|
-
require("core-js/modules/es.array.map.js");
|
|
14
|
-
require("core-js/modules/es.array.push.js");
|
|
15
|
-
require("core-js/modules/es.array.slice.js");
|
|
16
|
-
require("core-js/modules/es.object.to-string.js");
|
|
17
|
-
require("core-js/modules/es.string.includes.js");
|
|
18
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
19
|
-
require("core-js/modules/esnext.async-iterator.map.js");
|
|
20
|
-
require("core-js/modules/esnext.iterator.constructor.js");
|
|
21
|
-
require("core-js/modules/esnext.iterator.filter.js");
|
|
22
|
-
require("core-js/modules/esnext.iterator.map.js");
|
|
23
|
-
var _avatar = require("agora-ui-foundation/lib/components/avatar");
|
|
24
|
-
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
25
|
-
var _input = require("agora-ui-foundation/lib/components/input");
|
|
26
|
-
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
27
|
-
var _mobxReact = require("mobx-react");
|
|
28
|
-
var _react = require("react");
|
|
29
|
-
require("./index.css");
|
|
30
|
-
var _reactVirtualized = require("react-virtualized");
|
|
31
|
-
var _type2 = require("fcr-core/lib/type");
|
|
32
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
33
|
-
var _store = require("../store");
|
|
34
|
-
var _textBubble = require("agora-ui-foundation/lib/components/text-bubble");
|
|
35
|
-
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
36
|
-
var _fcr_defaultpage = _interopRequireDefault(require("../../../../public/assets/fcr_defaultpage.png"));
|
|
37
|
-
var _helper = require("agora-ui-foundation/lib/components/avatar/helper");
|
|
38
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
39
|
-
function highlightMatches(str, matchStr) {
|
|
40
|
-
var result = [];
|
|
41
|
-
var matchLen = matchStr.length;
|
|
42
|
-
var start = 0;
|
|
43
|
-
if (matchStr.length === 0) {
|
|
44
|
-
return [{
|
|
45
|
-
data: str,
|
|
46
|
-
isHighlight: false
|
|
47
|
-
}];
|
|
48
|
-
}
|
|
49
|
-
while (start < str.length) {
|
|
50
|
-
var matchStart = str.indexOf(matchStr, start);
|
|
51
|
-
if (matchStart === -1) {
|
|
52
|
-
result.push({
|
|
53
|
-
data: str.slice(start),
|
|
54
|
-
isHighlight: false
|
|
55
|
-
});
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
if (start !== matchStart) {
|
|
59
|
-
result.push({
|
|
60
|
-
data: str.slice(start, matchStart),
|
|
61
|
-
isHighlight: false
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
result.push({
|
|
65
|
-
data: matchStr,
|
|
66
|
-
isHighlight: true
|
|
67
|
-
});
|
|
68
|
-
start = matchStart + matchLen;
|
|
69
|
-
}
|
|
70
|
-
return result;
|
|
71
|
-
}
|
|
72
|
-
var ChatSelect = exports.ChatSelect = (0, _mobxReact.observer)(function (_ref) {
|
|
73
|
-
var type = _ref.type,
|
|
74
|
-
title = _ref.title,
|
|
75
|
-
bottomBar = _ref.bottomBar,
|
|
76
|
-
users = _ref.candidateUsers,
|
|
77
|
-
selectedUid = _ref.selectedUid,
|
|
78
|
-
onSelect = _ref.onSelect;
|
|
79
|
-
var _useState = (0, _react.useState)(''),
|
|
80
|
-
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
81
|
-
filterKey = _useState2[0],
|
|
82
|
-
setFilterKey = _useState2[1];
|
|
83
|
-
var filterUsers = users.filter(function (user) {
|
|
84
|
-
return user.userName.includes(filterKey);
|
|
85
|
-
});
|
|
86
|
-
var listHeight = 0;
|
|
87
|
-
if (filterUsers.length < 5) {
|
|
88
|
-
listHeight = filterUsers.length * 40;
|
|
89
|
-
} else {
|
|
90
|
-
listHeight = 5 * 40;
|
|
91
|
-
}
|
|
92
|
-
var rowCount = filterUsers.length;
|
|
93
|
-
var handleFilterChange = function handleFilterChange(search) {
|
|
94
|
-
setFilterKey(search);
|
|
95
|
-
};
|
|
96
|
-
var t = (0, _i18n.useI18n)();
|
|
97
|
-
var rowRenderer = function rowRenderer(_ref2) {
|
|
98
|
-
var index = _ref2.index,
|
|
99
|
-
key = _ref2.key,
|
|
100
|
-
style = _ref2.style;
|
|
101
|
-
var datum = filterUsers[index];
|
|
102
|
-
if (!datum) {
|
|
103
|
-
return null;
|
|
104
|
-
}
|
|
105
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
106
|
-
className: selectedUid === users[index].userId ? 'candidate-container-selected' : 'candidate-container',
|
|
107
|
-
style: style,
|
|
108
|
-
onClick: function onClick(_) {
|
|
109
|
-
var user = filterUsers[index];
|
|
110
|
-
onSelect(user);
|
|
111
|
-
},
|
|
112
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
113
|
-
style: {
|
|
114
|
-
background: (0, _helper.getNameColor)(datum.userName)
|
|
115
|
-
},
|
|
116
|
-
className: (0, _classnames["default"])('candidate-avatar', {
|
|
117
|
-
'candidate-avatar-all': datum.userId === _store.USER_ALL
|
|
118
|
-
}),
|
|
119
|
-
children: type === 'private-chat' && datum.userName === _store.USER_ALL ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
120
|
-
size: 16,
|
|
121
|
-
type: _type.FcrIconType.FCR_USERS,
|
|
122
|
-
colors: {
|
|
123
|
-
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
124
|
-
}
|
|
125
|
-
}) :
|
|
126
|
-
/*#__PURE__*/
|
|
127
|
-
// datum.userName.charAt(0).toLocaleUpperCase()
|
|
128
|
-
(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
129
|
-
isShowFirstLetter: true,
|
|
130
|
-
size: 32,
|
|
131
|
-
nickName: datum.userName,
|
|
132
|
-
textSize: 14
|
|
133
|
-
})
|
|
134
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
135
|
-
className: "candidate",
|
|
136
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
137
|
-
className: "candidate-info",
|
|
138
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
139
|
-
className: (0, _classnames["default"])('candidate-name', {
|
|
140
|
-
'candidate-name-active': selectedUid === users[index].userId
|
|
141
|
-
}),
|
|
142
|
-
style: {
|
|
143
|
-
color: (0, _helper.getNameColor)(datum.userName)
|
|
144
|
-
},
|
|
145
|
-
children: highlightMatches(datum.userName, filterKey).map(function (value, i) {
|
|
146
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
147
|
-
className: value !== null && value !== void 0 && value.isHighlight ? 'candidate-highlight' : '',
|
|
148
|
-
children: value.data
|
|
149
|
-
}, "".concat(i));
|
|
150
|
-
})
|
|
151
|
-
}), datum.userId !== _store.USER_ALL && (datum.userRole === _type2.FcrUserRole.COHOST || datum.userRole === _type2.FcrUserRole.HOST) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_textBubble.TextBubble, {
|
|
152
|
-
txt: t(datum.userRole === _type2.FcrUserRole.HOST ? 'fmt_role_host' : 'fmt_role_cohost'),
|
|
153
|
-
styles: {
|
|
154
|
-
width: 'fit-content'
|
|
155
|
-
},
|
|
156
|
-
type: "gray",
|
|
157
|
-
lineHeight: "small",
|
|
158
|
-
classnames: datum.userRole === _type2.FcrUserRole.HOST ? 'host' : 'cohost'
|
|
159
|
-
})]
|
|
160
|
-
}), selectedUid === users[index].userId ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
161
|
-
className: "candidate-select",
|
|
162
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
163
|
-
type: _type.FcrIconType.FCR_CHOOSEIT,
|
|
164
|
-
size: 24,
|
|
165
|
-
colors: {
|
|
166
|
-
iconPrimary: 'var(--fcr_web_ui_scene_mainicon2)'
|
|
167
|
-
}
|
|
168
|
-
})
|
|
169
|
-
}) : null]
|
|
170
|
-
})]
|
|
171
|
-
}, key);
|
|
172
|
-
};
|
|
173
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
174
|
-
className: "leave-container",
|
|
175
|
-
children: [title, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
176
|
-
className: "assign-host-search",
|
|
177
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_input.FcrInput, {
|
|
178
|
-
iconPrefix: {
|
|
179
|
-
colors: {
|
|
180
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
181
|
-
},
|
|
182
|
-
type: _type.FcrIconType.FCR_V2_SEARCH
|
|
183
|
-
},
|
|
184
|
-
onChange: function onChange(value) {
|
|
185
|
-
handleFilterChange(value);
|
|
186
|
-
},
|
|
187
|
-
placeholder: t('fmt_attendies_button_serach'),
|
|
188
|
-
shape: "rounded",
|
|
189
|
-
value: filterKey
|
|
190
|
-
})
|
|
191
|
-
}), filterUsers.length > 5 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
192
|
-
className: "assign-host-border"
|
|
193
|
-
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
194
|
-
className: "assign-host-body",
|
|
195
|
-
children: filterUsers.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
196
|
-
className: "fcr-no-data",
|
|
197
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
198
|
-
src: _fcr_defaultpage["default"]
|
|
199
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
200
|
-
children: t('fmt_chat_tips_nodata')
|
|
201
|
-
})]
|
|
202
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactVirtualized.List, {
|
|
203
|
-
className: 'candidate-list',
|
|
204
|
-
width: 230,
|
|
205
|
-
height: listHeight,
|
|
206
|
-
rowCount: rowCount,
|
|
207
|
-
rowHeight: 40,
|
|
208
|
-
rowRenderer: rowRenderer
|
|
209
|
-
})
|
|
210
|
-
}), bottomBar]
|
|
211
|
-
});
|
|
212
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const Chat: ({ updateReadIndex, sendMsg, userId: localUserId, singling, handleClickUploadImage, }: {
|
|
2
|
-
updateReadIndex: (data?: {
|
|
3
|
-
index: number;
|
|
4
|
-
msgId: string;
|
|
5
|
-
}) => void;
|
|
6
|
-
sendMsg: (msg: string) => void;
|
|
7
|
-
userId: string;
|
|
8
|
-
singling?: boolean;
|
|
9
|
-
handleClickUploadImage: () => void;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const ChatAction: () => import("react/jsx-runtime").JSX.Element;
|
package/lib/modules/chat/chat.js
DELETED
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.ChatAction = exports.Chat = void 0;
|
|
9
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
|
-
require("core-js/modules/es.array.concat.js");
|
|
11
|
-
require("core-js/modules/es.array.filter.js");
|
|
12
|
-
require("core-js/modules/es.array.find.js");
|
|
13
|
-
require("core-js/modules/es.array.for-each.js");
|
|
14
|
-
require("core-js/modules/es.array.from.js");
|
|
15
|
-
require("core-js/modules/es.array.iterator.js");
|
|
16
|
-
require("core-js/modules/es.array.map.js");
|
|
17
|
-
require("core-js/modules/es.array.sort.js");
|
|
18
|
-
require("core-js/modules/es.array.unshift.js");
|
|
19
|
-
require("core-js/modules/es.map.js");
|
|
20
|
-
require("core-js/modules/es.object.to-string.js");
|
|
21
|
-
require("core-js/modules/es.string.iterator.js");
|
|
22
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
23
|
-
require("core-js/modules/esnext.async-iterator.find.js");
|
|
24
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
25
|
-
require("core-js/modules/esnext.async-iterator.map.js");
|
|
26
|
-
require("core-js/modules/esnext.iterator.constructor.js");
|
|
27
|
-
require("core-js/modules/esnext.iterator.filter.js");
|
|
28
|
-
require("core-js/modules/esnext.iterator.find.js");
|
|
29
|
-
require("core-js/modules/esnext.iterator.for-each.js");
|
|
30
|
-
require("core-js/modules/esnext.iterator.map.js");
|
|
31
|
-
require("core-js/modules/esnext.map.delete-all.js");
|
|
32
|
-
require("core-js/modules/esnext.map.emplace.js");
|
|
33
|
-
require("core-js/modules/esnext.map.every.js");
|
|
34
|
-
require("core-js/modules/esnext.map.filter.js");
|
|
35
|
-
require("core-js/modules/esnext.map.find.js");
|
|
36
|
-
require("core-js/modules/esnext.map.find-key.js");
|
|
37
|
-
require("core-js/modules/esnext.map.includes.js");
|
|
38
|
-
require("core-js/modules/esnext.map.key-of.js");
|
|
39
|
-
require("core-js/modules/esnext.map.map-keys.js");
|
|
40
|
-
require("core-js/modules/esnext.map.map-values.js");
|
|
41
|
-
require("core-js/modules/esnext.map.merge.js");
|
|
42
|
-
require("core-js/modules/esnext.map.reduce.js");
|
|
43
|
-
require("core-js/modules/esnext.map.some.js");
|
|
44
|
-
require("core-js/modules/esnext.map.update.js");
|
|
45
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
46
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
47
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
48
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
49
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
50
|
-
var _mobxReact = require("mobx-react");
|
|
51
|
-
var _store = require("./store");
|
|
52
|
-
var _messageList = require("./message-list");
|
|
53
|
-
var _chatWrapper = require("agora-ui-foundation/lib/components/chat-wrapper");
|
|
54
|
-
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
55
|
-
var _react = require("react");
|
|
56
|
-
var _chatBar = require("./chat-bar");
|
|
57
|
-
var _type = require("../../type");
|
|
58
|
-
var _util = require("./util");
|
|
59
|
-
var _copyText = require("../../utilities/copyText");
|
|
60
|
-
var _chatManager = require("agora-ui-foundation/lib/components/chat-manager");
|
|
61
|
-
var _type2 = require("fcr-core/lib/room-control/chatroom-control/type");
|
|
62
|
-
var _fcrCore = require("fcr-core");
|
|
63
|
-
var _tabs = require("agora-ui-foundation/lib/components/tabs");
|
|
64
|
-
var _constant = require("../../utilities/constant");
|
|
65
|
-
var _fcr_chat_reddot = _interopRequireDefault(require("../../../public/assets/fcr_chat_reddot.svg"));
|
|
66
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
67
|
-
var Chat = exports.Chat = (0, _mobxReact.observer)(function (_ref) {
|
|
68
|
-
var _chatRoomStores$RoomT, _chatRoomStores$RoomT2, _chatRoomStores$RoomT3, _chatRoomStores$RoomT4, _chatRoomStores$RoomT5, _chatRoomStores$RoomT6;
|
|
69
|
-
var updateReadIndex = _ref.updateReadIndex,
|
|
70
|
-
sendMsg = _ref.sendMsg,
|
|
71
|
-
localUserId = _ref.userId,
|
|
72
|
-
singling = _ref.singling,
|
|
73
|
-
handleClickUploadImage = _ref.handleClickUploadImage;
|
|
74
|
-
var t = (0, _i18n.useI18n)();
|
|
75
|
-
var defaultProps = {
|
|
76
|
-
errorMsg: t('fmt_chat_tips_exceedlimit'),
|
|
77
|
-
forbiddenTxt: t('fmt_chat_button_muteall'),
|
|
78
|
-
styles: {
|
|
79
|
-
display: 'flex'
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
var styles = defaultProps.styles,
|
|
83
|
-
forbiddenTxt = defaultProps.forbiddenTxt,
|
|
84
|
-
errorMsg = defaultProps.errorMsg;
|
|
85
|
-
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
86
|
-
chatRoomStores = _useContext.chatRoomStores,
|
|
87
|
-
hasWaitingRoomPermission = _useContext.hasWaitingRoomPermission,
|
|
88
|
-
activeTabIndex = _useContext.activeTabIndex,
|
|
89
|
-
handlerActiveTab = _useContext.handlerActiveTab;
|
|
90
|
-
var _ref2 = chatRoomStores[activeTabIndex],
|
|
91
|
-
setTargetUser = _ref2.setTargetUser,
|
|
92
|
-
privateTargetUser = _ref2.privateTargetUser,
|
|
93
|
-
remoteUsers = _ref2.remoteUsers,
|
|
94
|
-
targetUserIsOnline = _ref2.targetUserIsOnline,
|
|
95
|
-
localIsManager = _ref2.localIsManager,
|
|
96
|
-
chatLevel = _ref2.chatLevel,
|
|
97
|
-
messageList = _ref2.messageList,
|
|
98
|
-
textMsg = _ref2.textMsg,
|
|
99
|
-
updateChatTextMsg = _ref2.updateChatTextMsg,
|
|
100
|
-
privateTargetList = _ref2.privateTargetList,
|
|
101
|
-
resetTargetUser = _ref2.resetTargetUser,
|
|
102
|
-
handleToast = _ref2.handleToast,
|
|
103
|
-
chatRoomState = _ref2.chatRoomState,
|
|
104
|
-
isHost = _ref2.isHost,
|
|
105
|
-
hasChatPermission = _ref2.hasChatPermission,
|
|
106
|
-
hasChatSendPrivatePermission = _ref2.hasChatSendPrivatePermission,
|
|
107
|
-
filterChatMember = _ref2.filterChatMember,
|
|
108
|
-
hasSendMessagePermission = _ref2.hasSendMessagePermission,
|
|
109
|
-
hasSendAllPermission = _ref2.hasSendAllPermission;
|
|
110
|
-
var handleTargetChange = function handleTargetChange(user) {
|
|
111
|
-
setTargetUser(user);
|
|
112
|
-
};
|
|
113
|
-
var _useState = (0, _react.useState)(false),
|
|
114
|
-
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
115
|
-
multiSelectActive = _useState2[0],
|
|
116
|
-
setMultiSelectActive = _useState2[1];
|
|
117
|
-
var _useState3 = (0, _react.useState)(new Map()),
|
|
118
|
-
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
119
|
-
copyMap = _useState4[0],
|
|
120
|
-
setCopyMap = _useState4[1];
|
|
121
|
-
var _useState5 = (0, _react.useState)(0),
|
|
122
|
-
_useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
|
|
123
|
-
selectCnt = _useState6[0],
|
|
124
|
-
setSelectCnt = _useState6[1];
|
|
125
|
-
var targetList = (0, _react.useMemo)(function () {
|
|
126
|
-
var _users$;
|
|
127
|
-
var users = (0, _toConsumableArray2["default"])(remoteUsers);
|
|
128
|
-
if (((_users$ = users[0]) === null || _users$ === void 0 ? void 0 : _users$.userId) === _store.USER_ALL) {
|
|
129
|
-
if (!hasSendAllPermission) {
|
|
130
|
-
users.shift();
|
|
131
|
-
}
|
|
132
|
-
} else if (hasSendAllPermission) {
|
|
133
|
-
users.unshift({
|
|
134
|
-
userId: _store.USER_ALL,
|
|
135
|
-
userName: t('fmt_chat_option_all'),
|
|
136
|
-
userRole: _type.FcrUserRole.ROBOT,
|
|
137
|
-
connectorType: _fcrCore.FcrRoomConnectorType.NONE
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
users = users.filter(function (user) {
|
|
141
|
-
return remoteUsers.find(function (u) {
|
|
142
|
-
return u.userId === user.userId;
|
|
143
|
-
}) || user.userId === privateTargetUser.userId || user.userId === _store.USER_ALL;
|
|
144
|
-
});
|
|
145
|
-
users = users.map(function (user) {
|
|
146
|
-
var _remoteUsers$find;
|
|
147
|
-
return (_remoteUsers$find = remoteUsers.find(function (u) {
|
|
148
|
-
return u.userId === user.userId;
|
|
149
|
-
})) !== null && _remoteUsers$find !== void 0 ? _remoteUsers$find : user;
|
|
150
|
-
});
|
|
151
|
-
users = filterChatMember(users);
|
|
152
|
-
return users;
|
|
153
|
-
}, [chatLevel, remoteUsers, activeTabIndex, hasChatPermission, hasChatSendPrivatePermission]);
|
|
154
|
-
var handleMultiCopyMsg = /*#__PURE__*/function () {
|
|
155
|
-
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
156
|
-
var msgHandled, msgIndex;
|
|
157
|
-
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
158
|
-
while (1) switch (_context.prev = _context.next) {
|
|
159
|
-
case 0:
|
|
160
|
-
msgHandled = '';
|
|
161
|
-
msgIndex = Array.from(copyMap.keys()).sort();
|
|
162
|
-
msgIndex.forEach(function (msgIdx, arrIdx) {
|
|
163
|
-
var _messageList$msgIndex, _messageList$msgIndex2, _messageList$msgIndex3;
|
|
164
|
-
var _messageList$msgIdx = messageList[msgIdx],
|
|
165
|
-
msg = _messageList$msgIdx.msg,
|
|
166
|
-
time = _messageList$msgIdx.time,
|
|
167
|
-
publisherUid = _messageList$msgIdx.uid,
|
|
168
|
-
publisherNickName = _messageList$msgIdx.nickName,
|
|
169
|
-
targetNickname = _messageList$msgIdx.target,
|
|
170
|
-
isPrivate = _messageList$msgIdx.isPrivate,
|
|
171
|
-
publisherRole = _messageList$msgIdx.role;
|
|
172
|
-
var senderNickname = publisherUid === localUserId && isPrivate ? t('fmt_settings_labels_you') : publisherNickName;
|
|
173
|
-
var needLabel = ((_messageList$msgIndex = messageList[msgIndex[arrIdx - 1]]) === null || _messageList$msgIndex === void 0 ? void 0 : _messageList$msgIndex.uid) !== publisherUid || ((_messageList$msgIndex2 = messageList[msgIndex[arrIdx - 1]]) === null || _messageList$msgIndex2 === void 0 ? void 0 : _messageList$msgIndex2.isPrivate) !== isPrivate || ((_messageList$msgIndex3 = messageList[msgIndex[arrIdx - 1]]) === null || _messageList$msgIndex3 === void 0 ? void 0 : _messageList$msgIndex3.role) !== publisherRole;
|
|
174
|
-
// 2. 复制多条消息, 一个人发的多条消息, 时间前缀只会有一个, 消息累加
|
|
175
|
-
if (needLabel) {
|
|
176
|
-
msgHandled += (0, _i18n.getLanguage)() === 'zh' ? "".concat(senderNickname, "\u5BF9").concat(targetNickname, "\u8BF4(").concat((0, _util.handleMessageTime)(time), ")\n").concat(msg, "\n") : "".concat(senderNickname, " said to ").concat(targetNickname, "(").concat((0, _util.handleMessageTime)(time), ")\n").concat(msg, "\n");
|
|
177
|
-
} else {
|
|
178
|
-
msgHandled += "".concat(msg, "\n");
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
_context.next = 5;
|
|
182
|
-
return (0, _copyText.copyText)(msgHandled);
|
|
183
|
-
case 5:
|
|
184
|
-
case "end":
|
|
185
|
-
return _context.stop();
|
|
186
|
-
}
|
|
187
|
-
}, _callee);
|
|
188
|
-
}));
|
|
189
|
-
return function handleMultiCopyMsg() {
|
|
190
|
-
return _ref3.apply(this, arguments);
|
|
191
|
-
};
|
|
192
|
-
}();
|
|
193
|
-
(0, _react.useEffect)(function () {
|
|
194
|
-
setSelectCnt(copyMap.size);
|
|
195
|
-
}, [copyMap.size]);
|
|
196
|
-
var resetMultiSelectStates = function resetMultiSelectStates() {
|
|
197
|
-
setMultiSelectActive(false);
|
|
198
|
-
copyMap.clear();
|
|
199
|
-
setCopyMap(copyMap);
|
|
200
|
-
setSelectCnt(0);
|
|
201
|
-
};
|
|
202
|
-
var chatSelectNoTitle = localIsManager || chatLevel === 'everyone' || chatLevel === 'no_one';
|
|
203
|
-
var copyTips = function copyTips() {
|
|
204
|
-
handleToast({
|
|
205
|
-
id: 'copy-multi-msg',
|
|
206
|
-
toastProps: {
|
|
207
|
-
type: 'normal',
|
|
208
|
-
content: t('fmt_statusbar_status_coppied'),
|
|
209
|
-
size: 'small'
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
};
|
|
213
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
214
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
215
|
-
className: "chat-tabs-container",
|
|
216
|
-
children: chatRoomStores[_constant.RoomType.WAITING_ROOM] && chatRoomStores[_constant.RoomType.MAIN_ROOM] && chatRoomStores[_constant.RoomType.WAITING_ROOM].userCount > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_tabs.FcrTabs, {
|
|
217
|
-
items: [{
|
|
218
|
-
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
219
|
-
className: "chat-container-icon",
|
|
220
|
-
children: [((_chatRoomStores$RoomT = chatRoomStores[_constant.RoomType.MAIN_ROOM]) === null || _chatRoomStores$RoomT === void 0 ? void 0 : _chatRoomStores$RoomT.unReadMsgCount) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
221
|
-
className: "fcr-action-bar-chat-unread-count",
|
|
222
|
-
children: ((_chatRoomStores$RoomT2 = chatRoomStores[_constant.RoomType.MAIN_ROOM]) === null || _chatRoomStores$RoomT2 === void 0 ? void 0 : _chatRoomStores$RoomT2.unReadMsgCount) > 99 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
223
|
-
src: _fcr_chat_reddot["default"]
|
|
224
|
-
}) : (_chatRoomStores$RoomT3 = chatRoomStores[_constant.RoomType.MAIN_ROOM]) === null || _chatRoomStores$RoomT3 === void 0 ? void 0 : _chatRoomStores$RoomT3.unReadMsgCount
|
|
225
|
-
}), t('fmt_waitingroom_sidebar_chat_label_meeting', {
|
|
226
|
-
reason1: chatRoomStores[_constant.RoomType.MAIN_ROOM].userCount
|
|
227
|
-
})]
|
|
228
|
-
}),
|
|
229
|
-
key: _constant.RoomType.MAIN_ROOM
|
|
230
|
-
}, {
|
|
231
|
-
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
232
|
-
className: "chat-container-icon",
|
|
233
|
-
children: [((_chatRoomStores$RoomT4 = chatRoomStores[_constant.RoomType.WAITING_ROOM]) === null || _chatRoomStores$RoomT4 === void 0 ? void 0 : _chatRoomStores$RoomT4.unReadMsgCount) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
234
|
-
className: "fcr-action-bar-chat-unread-count",
|
|
235
|
-
children: ((_chatRoomStores$RoomT5 = chatRoomStores[_constant.RoomType.WAITING_ROOM]) === null || _chatRoomStores$RoomT5 === void 0 ? void 0 : _chatRoomStores$RoomT5.unReadMsgCount) > 99 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
236
|
-
src: _fcr_chat_reddot["default"]
|
|
237
|
-
}) : (_chatRoomStores$RoomT6 = chatRoomStores[_constant.RoomType.WAITING_ROOM]) === null || _chatRoomStores$RoomT6 === void 0 ? void 0 : _chatRoomStores$RoomT6.unReadMsgCount
|
|
238
|
-
}), t('fmt_waitingroom_sidebar_label_waiting', {
|
|
239
|
-
reason1: chatRoomStores[_constant.RoomType.WAITING_ROOM].userCount
|
|
240
|
-
})]
|
|
241
|
-
}),
|
|
242
|
-
key: _constant.RoomType.WAITING_ROOM
|
|
243
|
-
}],
|
|
244
|
-
activeKey: activeTabIndex,
|
|
245
|
-
onChange: function onChange(key) {
|
|
246
|
-
handlerActiveTab(key);
|
|
247
|
-
}
|
|
248
|
-
}) : null
|
|
249
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_chatWrapper.ChatWrapper, {
|
|
250
|
-
styles: styles,
|
|
251
|
-
errorMsg: errorMsg,
|
|
252
|
-
forbiddenTxt: forbiddenTxt,
|
|
253
|
-
singling: singling,
|
|
254
|
-
forbidden: !localIsManager && !hasChatPermission && !hasChatSendPrivatePermission,
|
|
255
|
-
isHost: isHost,
|
|
256
|
-
handMsg: function handMsg(msg) {
|
|
257
|
-
if (chatRoomState !== _type2.FcrChatRoomConnectionState.Connected) {
|
|
258
|
-
handleToast({
|
|
259
|
-
id: 'send-msg-offline',
|
|
260
|
-
toastProps: {
|
|
261
|
-
type: 'error',
|
|
262
|
-
content: t('fmt_chat_tips_Networkconnect'),
|
|
263
|
-
size: 'small'
|
|
264
|
-
}
|
|
265
|
-
});
|
|
266
|
-
return;
|
|
267
|
-
}
|
|
268
|
-
if (!localIsManager) {
|
|
269
|
-
if (privateTargetUser.userId === _store.USER_NONE) {
|
|
270
|
-
handleToast({
|
|
271
|
-
id: 'send-msg-to-none',
|
|
272
|
-
toastProps: {
|
|
273
|
-
type: 'normal',
|
|
274
|
-
content: t('fmt_chat_tips_selectchat'),
|
|
275
|
-
size: 'small'
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
|
-
return;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
// if (
|
|
282
|
-
// chatLevel === 'no_one' ||
|
|
283
|
-
// (chatLevel !== 'everyone' &&
|
|
284
|
-
// privateTargetUser.userId !== USER_ALL &&
|
|
285
|
-
// !isManager(privateTargetUser.userRole))
|
|
286
|
-
// ) {
|
|
287
|
-
// handleToast({
|
|
288
|
-
// id: 'send-msg-to-none',
|
|
289
|
-
// toastProps: {
|
|
290
|
-
// type: 'normal',
|
|
291
|
-
// content: t('fmt_chat_tips_permissionchange'),
|
|
292
|
-
// size: 'small',
|
|
293
|
-
// },
|
|
294
|
-
// });
|
|
295
|
-
// resetTargetUser();
|
|
296
|
-
// return;
|
|
297
|
-
// }
|
|
298
|
-
|
|
299
|
-
if (privateTargetUser.userId === _store.USER_ALL && !hasSendMessagePermission()) {
|
|
300
|
-
handleToast({
|
|
301
|
-
id: 'send-msg-to-none',
|
|
302
|
-
toastProps: {
|
|
303
|
-
type: 'normal',
|
|
304
|
-
content: t('fmt_chat_tips_permissionchange'),
|
|
305
|
-
size: 'small'
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
return;
|
|
309
|
-
} else if (privateTargetUser.userId !== _store.USER_ALL && !hasChatSendPrivatePermission) {
|
|
310
|
-
handleToast({
|
|
311
|
-
id: 'send-msg-to-none',
|
|
312
|
-
toastProps: {
|
|
313
|
-
type: 'normal',
|
|
314
|
-
content: t('fmt_chat_tips_permissionchange'),
|
|
315
|
-
size: 'small'
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
resetTargetUser();
|
|
319
|
-
return;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
sendMsg(msg);
|
|
323
|
-
},
|
|
324
|
-
handleClickUploadImage: handleClickUploadImage,
|
|
325
|
-
msgBarElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_chatBar.MessageBar, {
|
|
326
|
-
selectedUser: privateTargetUser,
|
|
327
|
-
users: targetList,
|
|
328
|
-
onTargetChange: handleTargetChange,
|
|
329
|
-
title: chatSelectNoTitle ? undefined : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
330
|
-
className: "assign-host-title",
|
|
331
|
-
children: chatLevel === 'public' ? t('fmt_chat_option_onlypublic') : t('fmt_chat_option_onlyprivate')
|
|
332
|
-
})
|
|
333
|
-
}),
|
|
334
|
-
targetUserIsOnline: targetUserIsOnline,
|
|
335
|
-
privateTarget: privateTargetUser.userId,
|
|
336
|
-
selectTargetNickname: privateTargetUser.userName,
|
|
337
|
-
multiSelectActive: multiSelectActive,
|
|
338
|
-
selectCnt: selectCnt,
|
|
339
|
-
onSelectCancel: function onSelectCancel() {
|
|
340
|
-
resetMultiSelectStates();
|
|
341
|
-
},
|
|
342
|
-
onSelectConfirm: /*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
343
|
-
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
344
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
345
|
-
case 0:
|
|
346
|
-
_context2.next = 2;
|
|
347
|
-
return handleMultiCopyMsg();
|
|
348
|
-
case 2:
|
|
349
|
-
resetMultiSelectStates();
|
|
350
|
-
copyTips();
|
|
351
|
-
case 4:
|
|
352
|
-
case "end":
|
|
353
|
-
return _context2.stop();
|
|
354
|
-
}
|
|
355
|
-
}, _callee2);
|
|
356
|
-
})),
|
|
357
|
-
defaultMsg: textMsg,
|
|
358
|
-
updateChatTextMsg: updateChatTextMsg,
|
|
359
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_messageList.MessageList, {
|
|
360
|
-
updateReadMsgIndex: updateReadIndex,
|
|
361
|
-
userId: localUserId,
|
|
362
|
-
setMultiSelectActive: setMultiSelectActive,
|
|
363
|
-
multiSelectActive: multiSelectActive,
|
|
364
|
-
copyMap: copyMap,
|
|
365
|
-
setCopyMap: setCopyMap,
|
|
366
|
-
selectCnt: selectCnt,
|
|
367
|
-
copyTips: copyTips
|
|
368
|
-
})
|
|
369
|
-
})]
|
|
370
|
-
});
|
|
371
|
-
});
|
|
372
|
-
var ChatAction = exports.ChatAction = (0, _mobxReact.observer)(function () {
|
|
373
|
-
var _useContext2 = (0, _react.useContext)(_store.StoreContext),
|
|
374
|
-
chatRoomStores = _useContext2.chatRoomStores;
|
|
375
|
-
var _ref5 = chatRoomStores[_constant.RoomType.MAIN_ROOM],
|
|
376
|
-
isHostOrCoHost = _ref5.isHostOrCoHost,
|
|
377
|
-
setAllowChat = _ref5.setAllowChat,
|
|
378
|
-
setAllowChatWithPayload = _ref5.setAllowChatWithPayload,
|
|
379
|
-
chatLevel = _ref5.chatLevel;
|
|
380
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_chatManager.ChatManager, {
|
|
381
|
-
isManager: isHostOrCoHost,
|
|
382
|
-
setAllowChat: setAllowChat,
|
|
383
|
-
setAllowChatWithPayload: setAllowChatWithPayload,
|
|
384
|
-
allowChatLevel: chatLevel
|
|
385
|
-
});
|
|
386
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.StoreContext = void 0;
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DemoWrapper: React.FC;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.DemoWrapper = void 0;
|
|
8
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
-
var DemoWrapper = exports.DemoWrapper = function DemoWrapper(_ref) {
|
|
10
|
-
var children = _ref.children;
|
|
11
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
12
|
-
style: {
|
|
13
|
-
display: 'flex',
|
|
14
|
-
width: '100%',
|
|
15
|
-
height: '100%',
|
|
16
|
-
justifyContent: 'center',
|
|
17
|
-
alignItems: 'center',
|
|
18
|
-
padding: 20
|
|
19
|
-
},
|
|
20
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
21
|
-
style: {
|
|
22
|
-
background: 'aliceblue',
|
|
23
|
-
marginTop: 160,
|
|
24
|
-
height: '100%',
|
|
25
|
-
width: '100%',
|
|
26
|
-
display: 'flex',
|
|
27
|
-
alignItems: 'center',
|
|
28
|
-
justifyContent: 'center'
|
|
29
|
-
},
|
|
30
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
31
|
-
style: {
|
|
32
|
-
marginTop: 20,
|
|
33
|
-
marginBottom: 50,
|
|
34
|
-
display: 'flex',
|
|
35
|
-
height: 500,
|
|
36
|
-
width: 340
|
|
37
|
-
},
|
|
38
|
-
children: children
|
|
39
|
-
})
|
|
40
|
-
})
|
|
41
|
-
});
|
|
42
|
-
};
|