Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
chore: remove some cycles
Saúl Ibarra Corretgéa67d0fbf6cec
diff --git a/modules/UI/UI.js b/modules/UI/UI.jsindex 61bf12afaf..7880bc74d3 100644--- a/modules/UI/UI.js+++ b/modules/UI/UI.js@@ -15,7 +15,7 @@ import {dockToolbox,setToolboxEnabled,showToolbox-} from '../../react/features/toolbox';+} from '../../react/features/toolbox/actions.web';import UIEvents from '../../service/UI/UIEvents';import EtherpadManager from './etherpad/Etherpad';diff --git a/modules/UI/etherpad/Etherpad.js b/modules/UI/etherpad/Etherpad.jsindex e81c68f368..eb9182e144 100644--- a/modules/UI/etherpad/Etherpad.js+++ b/modules/UI/etherpad/Etherpad.js@@ -1,7 +1,7 @@/* global $, APP, interfaceConfig */import { getSharedDocumentUrl, setDocumentEditingState } from '../../../react/features/etherpad';-import { getToolboxHeight } from '../../../react/features/toolbox';+import { getToolboxHeight } from '../../../react/features/toolbox/functions.web';import Filmstrip from '../videolayout/Filmstrip';import LargeContainer from '../videolayout/LargeContainer';import VideoLayout from '../videolayout/VideoLayout';diff --git a/modules/UI/shared_video/SharedVideo.js b/modules/UI/shared_video/SharedVideo.jsindex fa64a2fd25..4984fff1e9 100644--- a/modules/UI/shared_video/SharedVideo.js+++ b/modules/UI/shared_video/SharedVideo.js@@ -12,12 +12,9 @@ import {participantLeft,pinParticipant} from '../../../react/features/base/participants';-import {- dockToolbox,- getToolboxHeight,- showToolbox-} from '../../../react/features/toolbox';-import { YOUTUBE_PARTICIPANT_NAME } from '../../../react/features/youtube-player';+import { dockToolbox, showToolbox } from '../../../react/features/toolbox/actions.web';+import { getToolboxHeight } from '../../../react/features/toolbox/functions.web';+import { YOUTUBE_PARTICIPANT_NAME } from '../../../react/features/youtube-player/constants';import UIEvents from '../../../service/UI/UIEvents';import UIUtil from '../util/UIUtil';import Filmstrip from '../videolayout/Filmstrip';diff --git a/react/features/base/participants/components/ParticipantView.native.js b/react/features/base/participants/components/ParticipantView.native.jsindex 0c17a3dc03..0a4c0ce4d1 100644--- a/react/features/base/participants/components/ParticipantView.native.js+++ b/react/features/base/participants/components/ParticipantView.native.js@@ -3,7 +3,7 @@import React, { Component } from 'react';import { Text, View } from 'react-native';-import { YoutubeLargeVideo } from '../../../youtube-player';+import { YoutubeLargeVideo } from '../../../youtube-player/components';import { Avatar } from '../../avatar';import { translate } from '../../i18n';import { JitsiParticipantConnectionStatus } from '../../lib-jitsi-meet';diff --git a/react/features/base/premeeting/components/web/PreMeetingScreen.js b/react/features/base/premeeting/components/web/PreMeetingScreen.jsindex da067d95ea..dd361f1b89 100644--- a/react/features/base/premeeting/components/web/PreMeetingScreen.js+++ b/react/features/base/premeeting/components/web/PreMeetingScreen.js@@ -2,7 +2,7 @@import React, { PureComponent } from 'react';-import { AudioSettingsButton, VideoSettingsButton } from '../../../../toolbox';+import { AudioSettingsButton, VideoSettingsButton } from '../../../../toolbox/components/web';import CopyMeetingUrl from './CopyMeetingUrl';import Preview from './Preview';diff --git a/react/features/base/toolbox/index.js b/react/features/base/toolbox/index.jsdeleted file mode 100644index 68ddef9ba1..0000000000--- a/react/features/base/toolbox/index.js+++ /dev/null@@ -1,3 +0,0 @@-// @flow--export * from './components';diff --git a/react/features/blur/components/VideoBlurButton.js b/react/features/blur/components/VideoBlurButton.jsindex fed02bfb95..52d62d202d 100644--- a/react/features/blur/components/VideoBlurButton.js+++ b/react/features/blur/components/VideoBlurButton.js@@ -6,8 +6,8 @@ import { createVideoBlurEvent, sendAnalytics } from '../../analytics';import { translate } from '../../base/i18n';import { IconBlurBackground } from '../../base/icons';import { connect } from '../../base/redux';-import { AbstractButton, BetaTag } from '../../base/toolbox';-import type { AbstractButtonProps } from '../../base/toolbox';+import { AbstractButton, BetaTag } from '../../base/toolbox/components';+import type { AbstractButtonProps } from '../../base/toolbox/components';import { toggleBlurEffect } from '../actions';/**diff --git a/react/features/chat/components/PrivateMessageButton.js b/react/features/chat/components/PrivateMessageButton.jsindex 8ee02cc492..aed6038017 100644--- a/react/features/chat/components/PrivateMessageButton.js+++ b/react/features/chat/components/PrivateMessageButton.js@@ -4,7 +4,7 @@ import { translate } from '../../base/i18n';import { IconMessage, IconReply } from '../../base/icons';import { getParticipantById } from '../../base/participants';import { connect } from '../../base/redux';-import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';import { setPrivateMessageRecipient } from '../actions';export type Props = AbstractButtonProps & {diff --git a/react/features/chat/components/native/ChatButton.js b/react/features/chat/components/native/ChatButton.jsindex bef5ddf31c..a87316e1c5 100644--- a/react/features/chat/components/native/ChatButton.js+++ b/react/features/chat/components/native/ChatButton.js@@ -8,7 +8,7 @@ import { connect } from '../../../base/redux';import {AbstractButton,type AbstractButtonProps-} from '../../../base/toolbox';+} from '../../../base/toolbox/components';import { openDisplayNamePrompt } from '../../../display-name';import { CHAT_VIEW_MODAL_ID } from '../../constants';import { getUnreadCount } from '../../functions';diff --git a/react/features/chat/middleware.js b/react/features/chat/middleware.jsindex c172876244..538fadb378 100644--- a/react/features/chat/middleware.js+++ b/react/features/chat/middleware.js@@ -18,7 +18,8 @@ import {} from '../base/participants';import { MiddlewareRegistry, StateListenerRegistry } from '../base/redux';import { playSound, registerSound, unregisterSound } from '../base/sounds';-import { isButtonEnabled, showToolbox } from '../toolbox';+import { showToolbox } from '../toolbox/actions';+import { isButtonEnabled } from '../toolbox/functions';import { SEND_MESSAGE, SET_PRIVATE_MESSAGE_RECIPIENT } from './actionTypes';import { addMessage, clearMessages, toggleChat } from './actions';diff --git a/react/features/conference/components/native/Conference.js b/react/features/conference/components/native/Conference.jsindex d7960b5986..c97143833d 100644--- a/react/features/conference/components/native/Conference.js+++ b/react/features/conference/components/native/Conference.js@@ -25,7 +25,9 @@ import { LargeVideo } from '../../../large-video';import { KnockingParticipantList } from '../../../lobby';import { BackButtonRegistry } from '../../../mobile/back-button';import { Captions } from '../../../subtitles';-import { isToolboxVisible, setToolboxVisible, Toolbox } from '../../../toolbox';+import { setToolboxVisible } from '../../../toolbox/actions';+import { Toolbox } from '../../../toolbox/components/native';+import { isToolboxVisible } from '../../../toolbox/functions';import {AbstractConference,abstractMapStateToPropsdiff --git a/react/features/conference/components/native/NavigationBar.js b/react/features/conference/components/native/NavigationBar.jsindex 7088875ac0..3a73af4d9b 100644--- a/react/features/conference/components/native/NavigationBar.js+++ b/react/features/conference/components/native/NavigationBar.js@@ -8,7 +8,7 @@ import { getConferenceName } from '../../../base/conference';import { getFeatureFlag, CONFERENCE_TIMER_ENABLED, MEETING_NAME_ENABLED } from '../../../base/flags';import { connect } from '../../../base/redux';import { PictureInPictureButton } from '../../../mobile/picture-in-picture';-import { isToolboxVisible } from '../../../toolbox';+import { isToolboxVisible } from '../../../toolbox/functions.native';import ConferenceTimer from '../ConferenceTimer';import styles, { NAVBAR_GRADIENT_COLORS } from './styles';diff --git a/react/features/conference/components/web/Conference.js b/react/features/conference/components/web/Conference.jsindex c4a47e8edd..bd39e24ed8 100644--- a/react/features/conference/components/web/Conference.js+++ b/react/features/conference/components/web/Conference.js@@ -14,12 +14,8 @@ import { CalleeInfoContainer } from '../../../invite';import { LargeVideo } from '../../../large-video';import { KnockingParticipantList, LobbyScreen } from '../../../lobby';import { Prejoin, isPrejoinPageVisible } from '../../../prejoin';-import {- Toolbox,- fullScreenChanged,- setToolboxAlwaysVisible,- showToolbox-} from '../../../toolbox';+import { fullScreenChanged, setToolboxAlwaysVisible, showToolbox } from '../../../toolbox/actions.web';+import { Toolbox } from '../../../toolbox/components/web';import { LAYOUTS, getCurrentLayout } from '../../../video-layout';import { maybeShowSuboptimalExperienceNotification } from '../../functions';import {diff --git a/react/features/conference/components/web/InviteMore.js b/react/features/conference/components/web/InviteMore.jsindex 388ac67aa3..0633ed9a5b 100644--- a/react/features/conference/components/web/InviteMore.js+++ b/react/features/conference/components/web/InviteMore.js@@ -7,10 +7,7 @@ import { Icon, IconInviteMore } from '../../../base/icons';import { getParticipantCount } from '../../../base/participants';import { connect } from '../../../base/redux';import { beginAddPeople } from '../../../invite';-import {- isButtonEnabled,- isToolboxVisible-} from '../../../toolbox';+import { isButtonEnabled, isToolboxVisible } from '../../../toolbox/functions.web';import { shouldDisplayTileView } from '../../../video-layout/functions';declare var interfaceConfig: Object;diff --git a/react/features/conference/components/web/Subject.js b/react/features/conference/components/web/Subject.jsindex a0692c0aaa..4405a89639 100644--- a/react/features/conference/components/web/Subject.js+++ b/react/features/conference/components/web/Subject.js@@ -5,7 +5,7 @@ import React, { Component } from 'react';import { getConferenceName } from '../../../base/conference/functions';import { getParticipantCount } from '../../../base/participants/functions';import { connect } from '../../../base/redux';-import { isToolboxVisible } from '../../../toolbox';+import { isToolboxVisible } from '../../../toolbox/functions.web';import ConferenceTimer from '../ConferenceTimer';import ParticipantsCount from './ParticipantsCount';diff --git a/react/features/conference/middleware.js b/react/features/conference/middleware.jsindex b7d131105b..4b3f854282 100644--- a/react/features/conference/middleware.js+++ b/react/features/conference/middleware.js@@ -13,7 +13,7 @@ import { MiddlewareRegistry, StateListenerRegistry } from '../base/redux';import { SET_REDUCED_UI } from '../base/responsive-ui';import { FeedbackDialog } from '../feedback';import { setFilmstripEnabled } from '../filmstrip';-import { setToolboxEnabled } from '../toolbox';+import { setToolboxEnabled } from '../toolbox/actions';import { notifyKickedOut } from './actions';diff --git a/react/features/etherpad/components/SharedDocumentButton.js b/react/features/etherpad/components/SharedDocumentButton.jsindex 5e88513ddd..202902859c 100644--- a/react/features/etherpad/components/SharedDocumentButton.js+++ b/react/features/etherpad/components/SharedDocumentButton.js@@ -6,7 +6,7 @@ import { createToolbarEvent, sendAnalytics } from '../../analytics';import { translate } from '../../base/i18n';import { IconShareDoc } from '../../base/icons';import { connect } from '../../base/redux';-import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';import { toggleDocument } from '../actions';diff --git a/react/features/filmstrip/components/native/Thumbnail.js b/react/features/filmstrip/components/native/Thumbnail.jsindex 26f9429a45..4765bf58af 100644--- a/react/features/filmstrip/components/native/Thumbnail.js+++ b/react/features/filmstrip/components/native/Thumbnail.js@@ -21,7 +21,7 @@ import { getTrackByMediaTypeAndParticipant } from '../../../base/tracks';import { ConnectionIndicator } from '../../../connection-indicator';import { DisplayNameLabel } from '../../../display-name';import { RemoteVideoMenu } from '../../../remote-video-menu';-import { toggleToolboxVisible } from '../../../toolbox';+import { toggleToolboxVisible } from '../../../toolbox/actions.native';import AudioMutedIndicator from './AudioMutedIndicator';import DominantSpeakerIndicator from './DominantSpeakerIndicator';diff --git a/react/features/filmstrip/components/web/Filmstrip.js b/react/features/filmstrip/components/web/Filmstrip.jsindex 7e5a599f3b..e8d01abe6b 100644--- a/react/features/filmstrip/components/web/Filmstrip.js+++ b/react/features/filmstrip/components/web/Filmstrip.js@@ -12,7 +12,7 @@ import {import { translate } from '../../../base/i18n';import { Icon, IconMenuDown, IconMenuUp } from '../../../base/icons';import { connect } from '../../../base/redux';-import { dockToolbox } from '../../../toolbox';+import { dockToolbox } from '../../../toolbox/actions.web';import { getCurrentLayout, LAYOUTS } from '../../../video-layout';import { setFilmstripHovered, setFilmstripVisible } from '../../actions';import { shouldRemoteVideosBeVisible } from '../../functions';diff --git a/react/features/filmstrip/components/web/Toolbar.js b/react/features/filmstrip/components/web/Toolbar.jsindex 4853bb1382..9d59ffcf65 100644--- a/react/features/filmstrip/components/web/Toolbar.js+++ b/react/features/filmstrip/components/web/Toolbar.js@@ -8,7 +8,7 @@ import {AudioMuteButton,HangupButton,VideoMuteButton-} from '../../../toolbox';+} from '../../../toolbox/components';declare var interfaceConfig: Object;diff --git a/react/features/invite/components/add-people-dialog/native/InviteButton.js b/react/features/invite/components/add-people-dialog/native/InviteButton.jsindex 1abf9bccc0..23f75c3a9b 100644--- a/react/features/invite/components/add-people-dialog/native/InviteButton.js+++ b/react/features/invite/components/add-people-dialog/native/InviteButton.js@@ -6,8 +6,7 @@ import { getFeatureFlag, INVITE_ENABLED } from '../../../../base/flags';import { translate } from '../../../../base/i18n';import { IconAddPeople } from '../../../../base/icons';import { connect } from '../../../../base/redux';-import { AbstractButton } from '../../../../base/toolbox';-import type { AbstractButtonProps } from '../../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../../base/toolbox/components';import { doInvitePeople } from '../../../actions.native';type Props = AbstractButtonProps & {diff --git a/react/features/lobby/components/web/KnockingParticipantList.js b/react/features/lobby/components/web/KnockingParticipantList.jsindex 952d7d193f..565628b6a8 100644--- a/react/features/lobby/components/web/KnockingParticipantList.js+++ b/react/features/lobby/components/web/KnockingParticipantList.js@@ -5,7 +5,7 @@ import React from 'react';import { Avatar } from '../../../base/avatar';import { translate } from '../../../base/i18n';import { connect } from '../../../base/redux';-import { isToolboxVisible } from '../../../toolbox';+import { isToolboxVisible } from '../../../toolbox/functions.web';import AbstractKnockingParticipantList, {mapStateToProps as abstractMapStateToProps,type Props as AbstractPropsdiff --git a/react/features/local-recording/components/LocalRecordingButton.native.js b/react/features/local-recording/components/LocalRecordingButton.native.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/react/features/local-recording/components/LocalRecordingButton.js b/react/features/local-recording/components/LocalRecordingButton.web.jssimilarity index 96%rename from react/features/local-recording/components/LocalRecordingButton.jsrename to react/features/local-recording/components/LocalRecordingButton.web.jsindex aeb61fc0e4..2b174f4455 100644--- a/react/features/local-recording/components/LocalRecordingButton.js+++ b/react/features/local-recording/components/LocalRecordingButton.web.js@@ -4,7 +4,7 @@ import React, { Component } from 'react';import { translate } from '../../base/i18n';import { IconRec } from '../../base/icons';-import { ToolbarButton } from '../../toolbox';+import { ToolbarButton } from '../../toolbox/components/web';/*** The type of the React {@code Component} state ofdiff --git a/react/features/mobile/audio-mode/components/AudioRouteButton.js b/react/features/mobile/audio-mode/components/AudioRouteButton.jsindex a5207b079d..bdb782cdcd 100644--- a/react/features/mobile/audio-mode/components/AudioRouteButton.js+++ b/react/features/mobile/audio-mode/components/AudioRouteButton.js@@ -4,8 +4,7 @@ import { openDialog } from '../../../base/dialog';import { translate } from '../../../base/i18n';import { IconAudioRoute } from '../../../base/icons';import { connect } from '../../../base/redux';-import { AbstractButton } from '../../../base/toolbox';-import type { AbstractButtonProps } from '../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';import AudioRoutePickerDialog from './AudioRoutePickerDialog';diff --git a/react/features/mobile/incoming-call/components/AnswerButton.js b/react/features/mobile/incoming-call/components/AnswerButton.jsindex 783af7f5d7..9d72be7e57 100644--- a/react/features/mobile/incoming-call/components/AnswerButton.js+++ b/react/features/mobile/incoming-call/components/AnswerButton.js@@ -3,8 +3,7 @@import { translate } from '../../../base/i18n';import { IconHangup } from '../../../base/icons';import { connect } from '../../../base/redux';-import { AbstractButton } from '../../../base/toolbox';-import type { AbstractButtonProps } from '../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';import { incomingCallAnswered } from '../actions';/**diff --git a/react/features/mobile/incoming-call/components/DeclineButton.js b/react/features/mobile/incoming-call/components/DeclineButton.jsindex 3e48e3c63f..71763f9f03 100644--- a/react/features/mobile/incoming-call/components/DeclineButton.js+++ b/react/features/mobile/incoming-call/components/DeclineButton.js@@ -3,8 +3,7 @@import { translate } from '../../../base/i18n';import { IconHangup } from '../../../base/icons';import { connect } from '../../../base/redux';-import { AbstractButton } from '../../../base/toolbox';-import type { AbstractButtonProps } from '../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';import { incomingCallDeclined } from '../actions';/**diff --git a/react/features/mobile/picture-in-picture/components/PictureInPictureButton.js b/react/features/mobile/picture-in-picture/components/PictureInPictureButton.jsindex 63220a56eb..280fd121f0 100644--- a/react/features/mobile/picture-in-picture/components/PictureInPictureButton.js+++ b/react/features/mobile/picture-in-picture/components/PictureInPictureButton.js@@ -6,8 +6,7 @@ import { PIP_ENABLED, getFeatureFlag } from '../../../base/flags';import { translate } from '../../../base/i18n';import { IconMenuDown } from '../../../base/icons';import { connect } from '../../../base/redux';-import { AbstractButton } from '../../../base/toolbox';-import type { AbstractButtonProps } from '../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';import { enterPictureInPicture } from '../actions';type Props = AbstractButtonProps & {diff --git a/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js b/react/features/recording/components/LiveStream/AbstractLiveStreamButton.jsindex a3b49fe0c6..3faffbfe4a 100644--- a/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js+++ b/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js@@ -4,10 +4,7 @@ import { openDialog } from '../../../base/dialog';import { IconLiveStreaming } from '../../../base/icons';import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';import { getLocalParticipant } from '../../../base/participants';-import {- AbstractButton,- type AbstractButtonProps-} from '../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';import { getActiveSession } from '../../functions';import {diff --git a/react/features/recording/components/Recording/AbstractRecordButton.js b/react/features/recording/components/Recording/AbstractRecordButton.jsindex 8f669ad620..7c23f26e87 100644--- a/react/features/recording/components/Recording/AbstractRecordButton.js+++ b/react/features/recording/components/Recording/AbstractRecordButton.js@@ -11,10 +11,7 @@ import {getLocalParticipant,isLocalParticipantModerator} from '../../../base/participants';-import {- AbstractButton,- type AbstractButtonProps-} from '../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';import { getActiveSession } from '../../functions';import { StartRecordingDialog, StopRecordingDialog } from './_';diff --git a/react/features/remote-video-menu/components/AbstractGrantModeratorButton.js b/react/features/remote-video-menu/components/AbstractGrantModeratorButton.jsindex af49c0773e..d3e2f663da 100644--- a/react/features/remote-video-menu/components/AbstractGrantModeratorButton.js+++ b/react/features/remote-video-menu/components/AbstractGrantModeratorButton.js@@ -8,8 +8,7 @@ import {isParticipantModerator,PARTICIPANT_ROLE} from '../../base/participants';-import { AbstractButton } from '../../base/toolbox';-import type { AbstractButtonProps } from '../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';import { GrantModeratorDialog } from '.';diff --git a/react/features/remote-video-menu/components/AbstractKickButton.js b/react/features/remote-video-menu/components/AbstractKickButton.jsindex c71c20bf40..51701e00e6 100644--- a/react/features/remote-video-menu/components/AbstractKickButton.js+++ b/react/features/remote-video-menu/components/AbstractKickButton.js@@ -2,8 +2,7 @@import { openDialog } from '../../base/dialog';import { IconKick } from '../../base/icons';-import { AbstractButton } from '../../base/toolbox';-import type { AbstractButtonProps } from '../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';import { KickRemoteParticipantDialog } from '.';diff --git a/react/features/remote-video-menu/components/AbstractMuteButton.js b/react/features/remote-video-menu/components/AbstractMuteButton.jsindex edee3b4e9d..5b9e73c90a 100644--- a/react/features/remote-video-menu/components/AbstractMuteButton.js+++ b/react/features/remote-video-menu/components/AbstractMuteButton.js@@ -7,10 +7,7 @@ import {import { openDialog } from '../../base/dialog';import { IconMicDisabled } from '../../base/icons';import { MEDIA_TYPE } from '../../base/media';-import {- AbstractButton,- type AbstractButtonProps-} from '../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';import { isRemoteTrackMuted } from '../../base/tracks';import { MuteRemoteParticipantDialog } from '.';diff --git a/react/features/remote-video-menu/components/native/PinButton.js b/react/features/remote-video-menu/components/native/PinButton.jsindex 4949917561..17b6d1ab6d 100644--- a/react/features/remote-video-menu/components/native/PinButton.js+++ b/react/features/remote-video-menu/components/native/PinButton.js@@ -4,7 +4,7 @@ import { translate } from '../../../base/i18n';import { IconPin } from '../../../base/icons';import { pinParticipant } from '../../../base/participants';import { connect } from '../../../base/redux';-import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';import { shouldDisplayTileView } from '../../../video-layout/functions';export type Props = AbstractButtonProps & {diff --git a/react/features/remote-video-menu/components/web/PrivateMessageMenuButton.js b/react/features/remote-video-menu/components/web/PrivateMessageMenuButton.jsindex c9f036b4e0..1c3725dc5f 100644--- a/react/features/remote-video-menu/components/web/PrivateMessageMenuButton.js+++ b/react/features/remote-video-menu/components/web/PrivateMessageMenuButton.js@@ -10,7 +10,7 @@ import {_mapStateToProps as _abstractMapStateToProps,type Props as AbstractProps} from '../../../chat/components/PrivateMessageButton';-import { isButtonEnabled } from '../../../toolbox';+import { isButtonEnabled } from '../../../toolbox/functions.web';import RemoteVideoMenuButton from './RemoteVideoMenuButton';diff --git a/react/features/room-lock/components/RoomLockButton.js b/react/features/room-lock/components/RoomLockButton.jsindex ce092de184..fdae565c94 100644--- a/react/features/room-lock/components/RoomLockButton.js+++ b/react/features/room-lock/components/RoomLockButton.js@@ -5,8 +5,7 @@ import { translate } from '../../base/i18n';import { IconRoomLock, IconRoomUnlock } from '../../base/icons';import { isLocalParticipantModerator } from '../../base/participants';import { connect } from '../../base/redux';-import { AbstractButton } from '../../base/toolbox';-import type { AbstractButtonProps } from '../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';import { beginRoomLockRequest, unlockRoom } from '../actions';type Props = AbstractButtonProps & {diff --git a/react/features/security/components/security-dialog/SecurityDialogButton.js b/react/features/security/components/security-dialog/SecurityDialogButton.jsindex 154b0fa813..247cff1d09 100644--- a/react/features/security/components/security-dialog/SecurityDialogButton.js+++ b/react/features/security/components/security-dialog/SecurityDialogButton.js@@ -4,7 +4,7 @@ import { createToolbarEvent, sendAnalytics } from '../../../analytics';import { translate } from '../../../base/i18n';import { IconSecurityOff, IconSecurityOn } from '../../../base/icons';import { connect } from '../../../base/redux';-import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';import { toggleSecurityDialog } from '../../actions';diff --git a/react/features/settings/components/web/SettingsButton.js b/react/features/settings/components/web/SettingsButton.jsindex f7791799ef..37491027ea 100644--- a/react/features/settings/components/web/SettingsButton.js+++ b/react/features/settings/components/web/SettingsButton.js@@ -4,8 +4,7 @@ import { createToolbarEvent, sendAnalytics } from '../../../analytics';import { translate } from '../../../base/i18n';import { IconSettings } from '../../../base/icons';import { connect } from '../../../base/redux';-import { AbstractButton } from '../../../base/toolbox';-import type { AbstractButtonProps } from '../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';import { openDeviceSelectionPopup } from '../../../device-selection';import { openSettingsDialog } from '../../actions';import { SETTINGS_TABS } from '../../constants';diff --git a/react/features/subtitles/components/AbstractClosedCaptionButton.js b/react/features/subtitles/components/AbstractClosedCaptionButton.jsindex 355c8a0fd3..6fc83bab2d 100644--- a/react/features/subtitles/components/AbstractClosedCaptionButton.js+++ b/react/features/subtitles/components/AbstractClosedCaptionButton.js@@ -2,7 +2,7 @@import { createToolbarEvent, sendAnalytics } from '../../analytics';import { isLocalParticipantModerator } from '../../base/participants';-import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';import { toggleRequestingSubtitles } from '../actions';export type AbstractProps = AbstractButtonProps & {diff --git a/react/features/toolbox/components/AudioMuteButton.js b/react/features/toolbox/components/AudioMuteButton.jsindex 58ec049e57..4c3765fe17 100644--- a/react/features/toolbox/components/AudioMuteButton.js+++ b/react/features/toolbox/components/AudioMuteButton.js@@ -9,8 +9,8 @@ import {import { translate } from '../../base/i18n';import { MEDIA_TYPE } from '../../base/media';import { connect } from '../../base/redux';-import { AbstractAudioMuteButton } from '../../base/toolbox';-import type { AbstractButtonProps } from '../../base/toolbox';+import { AbstractAudioMuteButton } from '../../base/toolbox/components';+import type { AbstractButtonProps } from '../../base/toolbox/components';import { isLocalTrackMuted } from '../../base/tracks';import { muteLocal } from '../../remote-video-menu/actions';diff --git a/react/features/toolbox/components/DownloadButton.js b/react/features/toolbox/components/DownloadButton.jsindex 71c66c7619..36b85a3179 100644--- a/react/features/toolbox/components/DownloadButton.js+++ b/react/features/toolbox/components/DownloadButton.js@@ -4,7 +4,7 @@ import { createToolbarEvent, sendAnalytics } from '../../analytics';import { translate } from '../../base/i18n';import { IconDownload } from '../../base/icons';import { connect } from '../../base/redux';-import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';import { openURLInBrowser } from '../../base/util';diff --git a/react/features/toolbox/components/HangupButton.js b/react/features/toolbox/components/HangupButton.jsindex 2b2d8911f5..aecca7ff69 100644--- a/react/features/toolbox/components/HangupButton.js+++ b/react/features/toolbox/components/HangupButton.js@@ -7,8 +7,8 @@ import { appNavigate } from '../../app/actions';import { disconnect } from '../../base/connection';import { translate } from '../../base/i18n';import { connect } from '../../base/redux';-import { AbstractHangupButton } from '../../base/toolbox';-import type { AbstractButtonProps } from '../../base/toolbox';+import { AbstractHangupButton } from '../../base/toolbox/components';+import type { AbstractButtonProps } from '../../base/toolbox/components';/*** The type of the React {@code Component} props of {@link HangupButton}.diff --git a/react/features/toolbox/components/HelpButton.js b/react/features/toolbox/components/HelpButton.jsindex a23afcc59d..b9057ef929 100644--- a/react/features/toolbox/components/HelpButton.js+++ b/react/features/toolbox/components/HelpButton.js@@ -4,7 +4,7 @@ import { createToolbarEvent, sendAnalytics } from '../../analytics';import { translate } from '../../base/i18n';import { IconHelp } from '../../base/icons';import { connect } from '../../base/redux';-import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';import { openURLInBrowser } from '../../base/util';diff --git a/react/features/toolbox/components/VideoMuteButton.js b/react/features/toolbox/components/VideoMuteButton.jsindex 1f119531a2..ae710bc3c2 100644--- a/react/features/toolbox/components/VideoMuteButton.js+++ b/react/features/toolbox/components/VideoMuteButton.js@@ -16,8 +16,8 @@ import {setVideoMuted} from '../../base/media';import { connect } from '../../base/redux';-import { AbstractVideoMuteButton } from '../../base/toolbox';-import type { AbstractButtonProps } from '../../base/toolbox';+import { AbstractVideoMuteButton } from '../../base/toolbox/components';+import type { AbstractButtonProps } from '../../base/toolbox/components';import { getLocalVideoType, isLocalVideoTrackMuted } from '../../base/tracks';declare var APP: Object;diff --git a/react/features/toolbox/components/native/AudioOnlyButton.js b/react/features/toolbox/components/native/AudioOnlyButton.jsindex 49def738bb..29fe05ea55 100644--- a/react/features/toolbox/components/native/AudioOnlyButton.js+++ b/react/features/toolbox/components/native/AudioOnlyButton.js@@ -4,8 +4,7 @@ import { toggleAudioOnly } from '../../../base/audio-only';import { translate } from '../../../base/i18n';import { IconAudioOnly, IconAudioOnlyOff } from '../../../base/icons';import { connect } from '../../../base/redux';-import { AbstractButton } from '../../../base/toolbox';-import type { AbstractButtonProps } from '../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';/*** The type of the React {@code Component} props of {@link AudioOnlyButton}.diff --git a/react/features/toolbox/components/native/MoreOptionsButton.js b/react/features/toolbox/components/native/MoreOptionsButton.jsindex 3e969288d1..7357402661 100644--- a/react/features/toolbox/components/native/MoreOptionsButton.js+++ b/react/features/toolbox/components/native/MoreOptionsButton.js@@ -2,8 +2,7 @@import { translate } from '../../../base/i18n';import { IconMenu } from '../../../base/icons';-import { AbstractButton } from '../../../base/toolbox';-import type { AbstractButtonProps } from '../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';type Props = AbstractButtonProps;diff --git a/react/features/toolbox/components/native/OverflowMenu.js b/react/features/toolbox/components/native/OverflowMenu.jsindex 1167a586d5..092cd1b686 100644--- a/react/features/toolbox/components/native/OverflowMenu.js+++ b/react/features/toolbox/components/native/OverflowMenu.js@@ -17,7 +17,7 @@ import { LiveStreamButton, RecordButton } from '../../../recording';import { RoomLockButton } from '../../../room-lock';import { ClosedCaptionButton } from '../../../subtitles';import { TileViewButton } from '../../../video-layout';-import { VideoShareButton } from '../../../youtube-player';+import { VideoShareButton } from '../../../youtube-player/components';import HelpButton from '../HelpButton';import AudioOnlyButton from './AudioOnlyButton';diff --git a/react/features/toolbox/components/native/OverflowMenuButton.js b/react/features/toolbox/components/native/OverflowMenuButton.jsindex 9f7487771f..09c6df1544 100644--- a/react/features/toolbox/components/native/OverflowMenuButton.js+++ b/react/features/toolbox/components/native/OverflowMenuButton.js@@ -4,8 +4,7 @@ import { openDialog } from '../../../base/dialog';import { translate } from '../../../base/i18n';import { IconMenuThumb } from '../../../base/icons';import { connect } from '../../../base/redux';-import { AbstractButton } from '../../../base/toolbox';-import type { AbstractButtonProps } from '../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';import OverflowMenu from './OverflowMenu';diff --git a/react/features/toolbox/components/native/RaiseHandButton.js b/react/features/toolbox/components/native/RaiseHandButton.jsindex b6bc11030b..72df7ab190 100644--- a/react/features/toolbox/components/native/RaiseHandButton.js+++ b/react/features/toolbox/components/native/RaiseHandButton.js@@ -14,8 +14,7 @@ import {participantUpdated} from '../../../base/participants';import { connect } from '../../../base/redux';-import { AbstractButton } from '../../../base/toolbox';-import type { AbstractButtonProps } from '../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';/*** The type of the React {@code Component} props of {@link RaiseHandButton}.diff --git a/react/features/toolbox/components/native/ToggleCameraButton.js b/react/features/toolbox/components/native/ToggleCameraButton.jsindex f5ec0a2c7c..0eec5d67b1 100644--- a/react/features/toolbox/components/native/ToggleCameraButton.js+++ b/react/features/toolbox/components/native/ToggleCameraButton.js@@ -4,8 +4,7 @@ import { translate } from '../../../base/i18n';import { IconSwitchCamera } from '../../../base/icons';import { MEDIA_TYPE, toggleCameraFacingMode } from '../../../base/media';import { connect } from '../../../base/redux';-import { AbstractButton } from '../../../base/toolbox';-import type { AbstractButtonProps } from '../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';import { isLocalTrackMuted } from '../../../base/tracks';/**diff --git a/react/features/toolbox/components/web/AudioSettingsButton.js b/react/features/toolbox/components/web/AudioSettingsButton.jsindex 63acf8cbd7..4b950b01c6 100644--- a/react/features/toolbox/components/web/AudioSettingsButton.js+++ b/react/features/toolbox/components/web/AudioSettingsButton.js@@ -6,7 +6,7 @@ import { isMobileBrowser } from '../../../base/environment/utils';import { IconArrowDown } from '../../../base/icons';import JitsiMeetJS from '../../../base/lib-jitsi-meet/_';import { connect } from '../../../base/redux';-import { ToolboxButtonWithIcon } from '../../../base/toolbox';+import { ToolboxButtonWithIcon } from '../../../base/toolbox/components';import { getMediaPermissionPromptVisibility } from '../../../overlay';import { AudioSettingsPopup, toggleAudioSettings } from '../../../settings';import { isAudioSettingsButtonDisabled } from '../../functions';diff --git a/react/features/toolbox/components/web/MuteEveryoneButton.js b/react/features/toolbox/components/web/MuteEveryoneButton.jsindex 32b486ed87..2524c477da 100644--- a/react/features/toolbox/components/web/MuteEveryoneButton.js+++ b/react/features/toolbox/components/web/MuteEveryoneButton.js@@ -6,7 +6,7 @@ import { translate } from '../../../base/i18n';import { IconMuteEveryone } from '../../../base/icons';import { getLocalParticipant, PARTICIPANT_ROLE } from '../../../base/participants';import { connect } from '../../../base/redux';-import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';import { MuteEveryoneDialog } from '../../../remote-video-menu';type Props = AbstractButtonProps & {diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.jsindex 741725f7c4..5e9dc539dd 100644--- a/react/features/toolbox/components/web/Toolbox.js+++ b/react/features/toolbox/components/web/Toolbox.js@@ -30,7 +30,7 @@ import {participantUpdated} from '../../../base/participants';import { connect, equals } from '../../../base/redux';-import { OverflowMenuItem } from '../../../base/toolbox';+import { OverflowMenuItem } from '../../../base/toolbox/components';import { getLocalVideoTrack, toggleScreensharing } from '../../../base/tracks';import { VideoBlurButton } from '../../../blur';import { CHAT_SIZE, ChatCounter, toggleChat } from '../../../chat';diff --git a/react/features/toolbox/components/web/VideoSettingsButton.js b/react/features/toolbox/components/web/VideoSettingsButton.jsindex 31693e731e..d3ebbe1f31 100644--- a/react/features/toolbox/components/web/VideoSettingsButton.js+++ b/react/features/toolbox/components/web/VideoSettingsButton.js@@ -6,7 +6,7 @@ import { isMobileBrowser } from '../../../base/environment/utils';import { IconArrowDown } from '../../../base/icons';import JitsiMeetJS from '../../../base/lib-jitsi-meet/_';import { connect } from '../../../base/redux';-import { ToolboxButtonWithIcon } from '../../../base/toolbox';+import { ToolboxButtonWithIcon } from '../../../base/toolbox/components';import { getLocalJitsiVideoTrack } from '../../../base/tracks';import { getMediaPermissionPromptVisibility } from '../../../overlay';import { toggleVideoSettings, VideoSettingsPopup } from '../../../settings';diff --git a/react/features/toolbox/index.js b/react/features/toolbox/index.jsdeleted file mode 100644index b845e8859c..0000000000--- a/react/features/toolbox/index.js+++ /dev/null@@ -1,4 +0,0 @@-export * from './actions';-export * from './actionTypes';-export * from './components';-export * from './functions';diff --git a/react/features/video-layout/components/TileViewButton.js b/react/features/video-layout/components/TileViewButton.jsindex 502715e984..f7cbcb4c56 100644--- a/react/features/video-layout/components/TileViewButton.js+++ b/react/features/video-layout/components/TileViewButton.js@@ -11,10 +11,7 @@ import { translate } from '../../base/i18n';import { IconTileView } from '../../base/icons';import { getParticipantCount } from '../../base/participants';import { connect } from '../../base/redux';-import {- AbstractButton,- type AbstractButtonProps-} from '../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';import { setTileView } from '../actions';import { shouldDisplayTileView } from '../functions';import logger from '../logger';diff --git a/react/features/video-layout/functions.js b/react/features/video-layout/functions.jsindex e382d313e9..642c8b167f 100644--- a/react/features/video-layout/functions.js+++ b/react/features/video-layout/functions.js@@ -1,7 +1,7 @@// @flowimport { getPinnedParticipant, getParticipantCount } from '../base/participants';-import { isYoutubeVideoPlaying } from '../youtube-player';+import { isYoutubeVideoPlaying } from '../youtube-player/functions';import { LAYOUTS } from './constants';diff --git a/react/features/youtube-player/components/VideoShareButton.js b/react/features/youtube-player/components/VideoShareButton.jsindex 83907d1e3d..562df54bef 100644--- a/react/features/youtube-player/components/VideoShareButton.js+++ b/react/features/youtube-player/components/VideoShareButton.js@@ -7,8 +7,7 @@ import { translate } from '../../base/i18n';import { IconShareVideo } from '../../base/icons';import { getLocalParticipant } from '../../base/participants';import { connect } from '../../base/redux';-import { AbstractButton } from '../../base/toolbox';-import type { AbstractButtonProps } from '../../base/toolbox';+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';import { toggleSharedVideo } from '../actions';/**diff --git a/react/features/youtube-player/index.js b/react/features/youtube-player/index.jsdeleted file mode 100644index 8a597c6ea5..0000000000--- a/react/features/youtube-player/index.js+++ /dev/null@@ -1,7 +0,0 @@-// @flow--export * from './actions';-export * from './actionTypes';-export * from './components';-export * from './constants';-export * from './functions';