From 9af2c11d64b85abd74989777eee93f48c0684ec0 Mon Sep 17 00:00:00 2001 From: Tasso Evangelista Date: Thu, 26 Dec 2024 18:12:18 -0300 Subject: [PATCH] refactor: JSX automatic runtime (#34498) --- .vscode/client.code-snippets | 1 - apps/meteor/.babelrc | 8 ++++ apps/meteor/.storybook/decorators.tsx | 1 - .../modals/PlaceChatOnHoldModal.tsx | 1 - .../messageBox/AddLinkComposerActionModal.tsx | 2 +- apps/meteor/client/NavBarV2/NavBar.tsx | 2 +- .../NavBarItemOmniChannelCallDialPad.tsx | 1 - .../NavBarItemOmnichannelCallToggle.tsx | 1 - .../NavBarItemOmnichannelCallToggleError.tsx | 1 - ...NavBarItemOmnichannelCallToggleLoading.tsx | 1 - .../NavBarItemOmnichannelCallToggleReady.tsx | 2 +- .../NavBarItemOmnichannelContact.tsx | 1 - .../NavBarItemOmnichannelLivechatToggle.tsx | 1 - .../NavBarItemOmnichannelQueue.tsx | 1 - .../NavBarItemAuditMenu.tsx | 1 - .../NavBarItemDirectoryPage.tsx | 1 - .../NavBarPagesToolbar/NavBarItemHomePage.tsx | 1 - .../NavBarItemMarketPlaceMenu.tsx | 1 - .../hooks/useMarketPlaceMenu.tsx | 1 - .../NavBarItemAdministrationMenu.tsx | 1 - .../NavBarItemLoginPage.tsx | 1 - .../UserMenu/EditStatusModal.tsx | 2 +- .../UserMenu/UserMenu.tsx | 2 +- .../UserMenu/UserMenuButton.tsx | 2 +- .../UserMenu/UserMenuHeader.tsx | 1 - .../UserMenu/hooks/useAccountItems.tsx | 1 - .../hooks/useCustomStatusModalHandler.tsx | 1 - .../UserMenu/hooks/useStatusItems.tsx | 2 +- .../UserMenu/hooks/useUserMenu.tsx | 1 - .../UserMenu/hooks/useVoipItemsSection.tsx | 2 +- .../NavBarItemVoipDialer.tsx | 2 +- .../client/apps/gameCenter/GameCenter.tsx | 2 +- .../apps/gameCenter/GameCenterContainer.tsx | 1 - .../GameCenterInvitePlayersModal.tsx | 2 +- .../client/apps/gameCenter/GameCenterList.tsx | 4 +- .../components/ActionManagerBusyState.tsx | 2 +- .../client/components/AutoCompleteAgent.tsx | 2 +- .../AutoCompleteAgentWithoutExtension.tsx | 2 +- .../components/AutoCompleteDepartment.tsx | 2 +- .../AutoCompleteDepartmentMultiple.tsx | 2 +- apps/meteor/client/components/Backdrop.tsx | 1 - .../components/ConfirmOwnerChangeModal.tsx | 1 - .../Contextualbar/Contextualbar.tsx | 2 +- .../Contextualbar/ContextualbarAction.tsx | 2 +- .../Contextualbar/ContextualbarActions.tsx | 2 +- .../Contextualbar/ContextualbarBack.tsx | 2 +- .../Contextualbar/ContextualbarButton.tsx | 2 +- .../Contextualbar/ContextualbarClose.tsx | 2 +- .../Contextualbar/ContextualbarContent.tsx | 2 +- .../Contextualbar/ContextualbarDialog.tsx | 8 ++-- .../ContextualbarEmptyContent.tsx | 2 +- .../Contextualbar/ContextualbarFooter.tsx | 2 +- .../Contextualbar/ContextualbarHeader.tsx | 2 +- .../Contextualbar/ContextualbarIcon.tsx | 2 +- .../ContextualbarInnerContent.tsx | 2 +- .../Contextualbar/ContextualbarResizable.tsx | 1 - .../ContextualbarScrollableContent.tsx | 2 +- .../Contextualbar/ContextualbarSection.tsx | 2 +- .../Contextualbar/ContextualbarSkeleton.tsx | 2 +- .../Contextualbar/ContextualbarTitle.tsx | 1 - .../CreateDiscussion/CreateDiscussion.tsx | 1 - .../DefaultParentRoomField.tsx | 2 +- .../CustomScrollbars/CustomScrollbars.tsx | 4 +- .../CustomScrollbars/VirtuosoScrollbars.tsx | 2 +- apps/meteor/client/components/Emoji.tsx | 1 - .../FeaturePreviewSidePanelNavigation.tsx | 1 - .../meteor/client/components/FilterByText.tsx | 2 +- .../components/FingerprintChangeModal.tsx | 1 - .../FingerprintChangeModalConfirmation.tsx | 1 - .../client/components/GazzodownText.tsx | 2 +- .../components/GenericCard/GenericCard.tsx | 1 - .../GenericCard/GenericCardButton.tsx | 1 - .../components/GenericError/GenericError.tsx | 1 - .../GenericModal/GenericModal.spec.tsx | 2 +- .../GenericModal/GenericModal.stories.tsx | 1 - .../components/GenericModal/GenericModal.tsx | 2 +- .../GenericModal/GenericModalSkeleton.tsx | 1 - .../GenericModal/withDoNotAskAgain.tsx | 2 +- .../GenericNoResults/GenericNoResults.tsx | 1 - .../GenericResourceUsage.tsx | 1 - .../GenericResourceUsageSkeleton.tsx | 1 - .../GenericTable/GenericTable.stories.tsx | 1 - .../components/GenericTable/GenericTable.tsx | 2 +- .../GenericTable/GenericTableBody.tsx | 1 - .../GenericTable/GenericTableCell.tsx | 1 - .../GenericTable/GenericTableHeader.tsx | 1 - .../GenericTable/GenericTableHeaderCell.tsx | 2 +- .../GenericTable/GenericTableLoadingRow.tsx | 1 - .../GenericTable/GenericTableLoadingTable.tsx | 1 - .../GenericTable/GenericTableRow.tsx | 1 - .../components/GenericTable/SortIcon.tsx | 1 - .../GenericTable/hooks/useCurrent.ts | 3 +- .../GenericTable/hooks/useItemsPerPage.ts | 3 +- .../hooks/useShowingResultsLabel.ts | 9 +---- .../GenericUpsellModal/GenericUpsellModal.tsx | 1 - .../client/components/Header/Header.tsx | 2 +- .../client/components/Header/HeaderAvatar.tsx | 2 +- .../components/Header/HeaderContent.tsx | 2 +- .../components/Header/HeaderContentRow.tsx | 2 +- .../components/Header/HeaderDivider.tsx | 2 +- .../client/components/Header/HeaderIcon.tsx | 2 +- .../client/components/Header/HeaderState.tsx | 2 +- .../components/Header/HeaderSubtitle.tsx | 2 +- .../client/components/Header/HeaderTag.tsx | 2 +- .../components/Header/HeaderTagIcon.tsx | 2 +- .../components/Header/HeaderTagSkeleton.tsx | 2 +- .../client/components/Header/HeaderTitle.tsx | 2 +- .../components/Header/HeaderTitleButton.tsx | 2 +- .../components/Header/HeaderToolbar.tsx | 2 +- .../components/Header/HeaderToolbarAction.tsx | 2 +- .../Header/HeaderToolbarActionBadge.tsx | 2 +- .../Header/HeaderToolbarDivider.tsx | 2 +- .../components/ImageGallery/ImageGallery.tsx | 2 +- .../ImageGallery/ImageGalleryError.tsx | 1 - .../ImageGallery/ImageGalleryLoading.tsx | 1 - .../client/components/InfiniteListAnchor.tsx | 2 +- .../InfoPanel/InfoPanel.stories.tsx | 1 - .../client/components/InfoPanel/InfoPanel.tsx | 1 - .../components/InfoPanel/InfoPanelAction.tsx | 1 - .../InfoPanel/InfoPanelActionGroup.tsx | 1 - .../components/InfoPanel/InfoPanelAvatar.tsx | 1 - .../components/InfoPanel/InfoPanelField.tsx | 1 - .../components/InfoPanel/InfoPanelLabel.tsx | 1 - .../components/InfoPanel/InfoPanelSection.tsx | 1 - .../components/InfoPanel/InfoPanelText.tsx | 1 - .../components/InfoPanel/InfoPanelTitle.tsx | 1 - .../InfoPanel/RetentionPolicyCallout.spec.tsx | 1 - .../InfoPanel/RetentionPolicyCallout.tsx | 1 - .../client/components/ListItem.stories.tsx | 1 - .../client/components/LoadingIndicator.tsx | 2 - apps/meteor/client/components/LocalTime.tsx | 2 +- .../client/components/MarkdownText.spec.tsx | 1 - .../components/MarkdownText.stories.tsx | 1 - .../meteor/client/components/MarkdownText.tsx | 2 +- .../client/components/ModalBackdrop.tsx | 12 ++---- .../components/Navbar/Navbar.stories.tsx | 1 - .../client/components/Navbar/Navbar.tsx | 1 - .../client/components/Navbar/NavbarAction.tsx | 1 - .../client/components/Navbar/NavbarBadge.tsx | 1 - .../client/components/NotFoundState.tsx | 1 - .../OmnichannelSortingDisclaimer.tsx | 2 +- .../components/Omnichannel/Skeleton.tsx | 1 - .../client/components/Omnichannel/Tags.tsx | 2 +- .../Omnichannel/modals/CloseChatModal.tsx | 26 +++++++----- .../Omnichannel/modals/CloseChatModalData.tsx | 1 - .../modals/EnterpriseDepartmentsModal.tsx | 2 +- .../Omnichannel/modals/ForwardChatModal.tsx | 4 +- .../modals/ReturnChatQueueModal.tsx | 1 - .../modals/TranscriptModal.spec.tsx | 1 - .../Omnichannel/modals/TranscriptModal.tsx | 2 +- .../client/components/Page/Page.stories.tsx | 1 - apps/meteor/client/components/Page/Page.tsx | 2 +- .../client/components/Page/PageBlock.tsx | 2 +- .../components/Page/PageBlockWithBorder.tsx | 2 +- .../client/components/Page/PageContent.tsx | 2 +- .../client/components/Page/PageFooter.tsx | 1 - .../client/components/Page/PageHeader.tsx | 2 +- .../components/Page/PageHeaderNoShadow.tsx | 1 - .../components/Page/PageScrollableContent.tsx | 2 +- .../Page/PageScrollableContentWithShadow.tsx | 2 +- .../meteor/client/components/PageSkeleton.tsx | 1 - apps/meteor/client/components/PlanTag.tsx | 1 - apps/meteor/client/components/RawText.tsx | 1 - .../RoomAutoComplete/RoomAutoComplete.tsx | 6 +-- .../RoomAutoCompleteMultiple.tsx | 2 +- .../OmnichannelAppSourceRoomIcon.tsx | 1 - .../OmnichannelCoreSourceRoomIcon.tsx | 1 - .../OmnichannelRoomIcon.tsx | 1 - .../provider/OmnichannelRoomIconProvider.tsx | 2 +- .../client/components/RoomIcon/RoomIcon.tsx | 2 +- .../client/components/Sidebar/Content.tsx | 1 - .../client/components/Sidebar/Header.tsx | 1 - .../client/components/Sidebar/ListItem.tsx | 1 - .../client/components/Sidebar/Sidebar.tsx | 1 - .../components/Sidebar/SidebarGenericItem.tsx | 2 +- .../Sidebar/SidebarItemsAssembler.tsx | 2 +- .../Sidebar/SidebarNavigationItem.tsx | 2 +- .../SidebarToggler/SidebarToggler.tsx | 2 +- .../SidebarToggler/SidebarTogglerBadge.tsx | 1 - .../SidebarTogglerButton.stories.tsx | 1 - .../SidebarToggler/SidebarTogglerButton.tsx | 1 - apps/meteor/client/components/Skeleton.tsx | 1 - apps/meteor/client/components/TextCopy.tsx | 1 - .../TwoFactorModal/TwoFactorEmailModal.tsx | 2 +- .../TwoFactorModal/TwoFactorModal.tsx | 1 - .../TwoFactorModal/TwoFactorPasswordModal.tsx | 2 +- .../TwoFactorModal/TwoFactorTotpModal.tsx | 2 +- apps/meteor/client/components/UTCClock.tsx | 2 +- .../client/components/UpsellModal.stories.tsx | 1 - .../client/components/UrlChangeModal.tsx | 1 - .../UserAndRoomAutoCompleteMultiple.tsx | 2 +- .../UserAutoCompleteMultiple.tsx | 2 +- .../UserAutoCompleteMultipleFederated.tsx | 2 +- .../UserAutoCompleteMultipleOption.tsx | 1 - .../UserAutoCompleteMultipleOptions.tsx | 2 +- .../components/UserCard/UserCard.stories.tsx | 1 - .../client/components/UserCard/UserCard.tsx | 1 - .../components/UserCard/UserCardAction.tsx | 1 - .../components/UserCard/UserCardActions.tsx | 2 +- .../components/UserCard/UserCardDialog.tsx | 2 +- .../components/UserCard/UserCardInfo.tsx | 1 - .../components/UserCard/UserCardRole.tsx | 1 - .../components/UserCard/UserCardRoles.tsx | 1 - .../components/UserCard/UserCardSkeleton.tsx | 1 - .../components/UserCard/UserCardUsername.tsx | 1 - .../components/UserInfo/UserInfo.stories.tsx | 1 - .../client/components/UserInfo/UserInfo.tsx | 2 +- .../components/UserInfo/UserInfoAction.tsx | 1 - .../components/UserInfo/UserInfoAvatar.tsx | 1 - .../components/UserInfo/UserInfoUsername.tsx | 1 - .../UserStatus/ReactiveUserStatus.tsx | 2 +- .../client/components/UserStatusMenu.tsx | 7 ++-- .../client/components/WarningModal.spec.tsx | 1 - .../meteor/client/components/WarningModal.tsx | 1 - .../components/avatar/RoomAvatarEditor.tsx | 2 +- .../UserAvatarEditor/UserAvatarEditor.tsx | 2 +- .../UserAvatarSuggestions.tsx | 2 +- .../ConnectionStatusBar.stories.tsx | 1 - .../connectionStatus/ConnectionStatusBar.tsx | 1 - .../dashboards/DownloadDataButton.tsx | 1 - .../components/dashboards/PeriodSelector.tsx | 2 +- .../components/dataView/Counter.stories.tsx | 1 - .../client/components/dataView/Counter.tsx | 1 - .../dataView/CounterSet.stories.tsx | 1 - .../client/components/dataView/CounterSet.tsx | 1 - .../components/dataView/Growth.stories.tsx | 1 - .../client/components/dataView/Growth.tsx | 1 - .../dataView/NegativeGrowthSymbol.stories.tsx | 1 - .../dataView/NegativeGrowthSymbol.tsx | 1 - .../dataView/PositiveGrowthSymbol.stories.tsx | 1 - .../dataView/PositiveGrowthSymbol.tsx | 1 - .../deviceManagement/DeviceIcon.tsx | 1 - .../DeviceManagementTable.tsx | 1 - .../deviceManagement/LoggedOutBanner.tsx | 1 - .../components/message/IgnoredContent.tsx | 6 +-- .../components/message/MessageCollapsible.tsx | 1 - .../components/message/MessageContentBody.tsx | 2 +- .../components/message/MessageHeader.tsx | 2 +- .../message/MessageToolbarHolder.tsx | 2 +- .../message/ReadReceiptIndicator.tsx | 1 - .../components/message/StatusIndicators.tsx | 1 - .../components/message/content/Action.tsx | 1 - .../message/content/Attachments.tsx | 1 - .../message/content/BroadcastMetrics.tsx | 1 - .../message/content/DiscussionMetrics.tsx | 1 - .../components/message/content/Location.tsx | 1 - .../message/content/MessageActions.tsx | 1 - .../components/message/content/Reactions.tsx | 2 +- .../message/content/ThreadMetrics.spec.tsx | 1 - .../message/content/ThreadMetrics.tsx | 1 - .../message/content/ThreadMetricsFollow.tsx | 6 +-- .../content/ThreadMetricsParticipants.tsx | 1 - .../content/ThreadMetricsUnreadBadge.tsx | 1 - .../message/content/UrlPreviews.tsx | 1 - .../content/actions/MessageAction.stories.tsx | 1 - .../message/content/actions/MessageAction.tsx | 1 - .../content/attachments/AttachmentsItem.tsx | 2 +- .../content/attachments/DefaultAttachment.tsx | 1 - .../content/attachments/FileAttachment.tsx | 1 - .../content/attachments/QuoteAttachment.tsx | 1 - .../default/ActionAttachmentButton.tsx | 1 - .../attachments/default/ActionAttachtment.tsx | 1 - .../content/attachments/default/Field.tsx | 1 - .../attachments/default/FieldsAttachment.tsx | 1 - .../attachments/default/ShortField.tsx | 1 - .../attachments/file/AudioAttachment.tsx | 1 - .../file/GenericFileAttachment.tsx | 1 - .../attachments/file/ImageAttachment.tsx | 1 - .../attachments/file/VideoAttachment.tsx | 1 - .../attachments/structure/Attachment.tsx | 1 - .../structure/AttachmentAuthor.tsx | 1 - .../structure/AttachmentAuthorAvatar.tsx | 1 - .../structure/AttachmentAuthorName.tsx | 1 - .../attachments/structure/AttachmentBlock.tsx | 1 - .../structure/AttachmentContent.tsx | 1 - .../structure/AttachmentDetails.tsx | 1 - .../structure/AttachmentDownload.tsx | 1 - .../structure/AttachmentDownloadBase.tsx | 1 - .../structure/AttachmentEncryptedDownload.tsx | 1 - .../attachments/structure/AttachmentImage.tsx | 2 +- .../attachments/structure/AttachmentInner.tsx | 1 - .../attachments/structure/AttachmentRow.tsx | 1 - .../attachments/structure/AttachmentSize.tsx | 1 - .../attachments/structure/AttachmentText.tsx | 1 - .../attachments/structure/AttachmentThumb.tsx | 2 +- .../attachments/structure/AttachmentTitle.tsx | 1 - .../attachments/structure/image/ImageBox.tsx | 1 - .../attachments/structure/image/Load.tsx | 1 - .../attachments/structure/image/Retry.tsx | 1 - .../collapsible/CollapsibleContent.tsx | 1 - .../message/content/location/MapView.tsx | 2 +- .../content/location/MapViewFallback.tsx | 1 - .../message/content/location/MapViewImage.tsx | 1 - .../message/content/reactions/Reaction.tsx | 2 +- .../content/reactions/ReactionTooltip.tsx | 1 - .../content/urlPreviews/OEmbedCollapsible.tsx | 1 - .../content/urlPreviews/OEmbedHtmlPreview.tsx | 1 - .../urlPreviews/OEmbedImagePreview.tsx | 1 - .../content/urlPreviews/OEmbedLinkPreview.tsx | 1 - .../urlPreviews/OEmbedPreviewContent.tsx | 1 - .../content/urlPreviews/OEmbedResolver.tsx | 1 - .../content/urlPreviews/UrlAudioPreview.tsx | 1 - .../content/urlPreviews/UrlImagePreview.tsx | 1 - .../content/urlPreviews/UrlPreview.tsx | 1 - .../urlPreviews/UrlPreviewResolver.tsx | 1 - .../content/urlPreviews/UrlVideoPreview.tsx | 1 - .../message/header/MessageRoles.stories.tsx | 1 - .../message/header/MessageRoles.tsx | 1 - .../components/message/hooks/useCollapse.tsx | 1 - .../message/list/MessageListContext.tsx | 5 ++- .../message/list/MessageListSkeleton.tsx | 2 +- .../notification/AllMentionNotification.tsx | 1 - .../notification/MeMentionNotification.tsx | 2 - .../notification/MessageNotification.tsx | 1 - .../UnreadMessagesNotification.tsx | 1 - .../message/toolbar/MessageToolbar.tsx | 2 +- .../toolbar/MessageToolbarActionMenu.tsx | 1 - .../message/toolbar/MessageToolbarItem.tsx | 1 - .../toolbar/MessageToolbarStarsActionMenu.tsx | 1 - .../message/toolbar/items/DefaultItems.tsx | 1 - .../message/toolbar/items/DirectItems.tsx | 1 - .../message/toolbar/items/FederatedItems.tsx | 1 - .../message/toolbar/items/MentionsItems.tsx | 1 - .../message/toolbar/items/MobileItems.tsx | 1 - .../message/toolbar/items/PinnedItems.tsx | 1 - .../message/toolbar/items/SearchItems.tsx | 1 - .../message/toolbar/items/StarredItems.tsx | 1 - .../message/toolbar/items/ThreadsItems.tsx | 1 - .../message/toolbar/items/VideoconfItems.tsx | 1 - .../toolbar/items/VideoconfThreadsItems.tsx | 1 - .../items/actions/ForwardMessageAction.tsx | 1 - .../items/actions/JumpToMessageAction.tsx | 1 - .../items/actions/QuoteMessageAction.tsx | 1 - .../items/actions/ReactionMessageAction.tsx | 1 - .../actions/ReplyInThreadMessageAction.tsx | 1 - .../toolbar/useNewDiscussionMessageAction.tsx | 1 - .../message/toolbar/usePinMessageAction.tsx | 1 - .../toolbar/useReadReceiptsDetailsAction.tsx | 1 - .../toolbar/useReportMessageAction.tsx | 1 - .../toolbar/useShowMessageReactionsAction.tsx | 1 - .../toolbar/useWebDAVMessageAction.tsx | 1 - .../message/uikit/UiKitMessageBlock.tsx | 1 - .../message/variants/RoomMessage.spec.tsx | 1 - .../message/variants/RoomMessage.tsx | 2 +- .../message/variants/SystemMessage.tsx | 2 +- .../message/variants/ThreadMessage.tsx | 2 +- .../message/variants/ThreadMessagePreview.tsx | 2 +- .../variants/room/RoomMessageContent.tsx | 2 +- .../variants/thread/ThreadMessageContent.tsx | 2 +- .../ThreadMessagePreviewBody.tsx | 2 +- .../components/voip/room/VoipRoomForeword.tsx | 1 - .../client/components/withErrorBoundary.tsx | 1 - .../roomActions/useAppsRoomStarActions.tsx | 2 +- .../useStartCallRoomAction.tsx | 2 +- .../useVideoConfMenuOptions.tsx | 2 +- .../useVoipMenuOptions.tsx | 2 +- .../hooks/roomActions/useThreadRoomAction.tsx | 2 +- apps/meteor/client/hooks/useDeviceLogout.tsx | 2 +- .../client/hooks/useDevicesMenuOption.tsx | 1 - apps/meteor/client/hooks/useDialModal.tsx | 2 +- .../hooks/useDownloadFromServiceWorker.ts | 5 ++- apps/meteor/client/hooks/useFormatDate.ts | 4 +- .../client/hooks/useFormatDateAndTime.ts | 4 +- apps/meteor/client/hooks/useFormatDuration.ts | 4 +- apps/meteor/client/hooks/useFormatTime.ts | 5 ++- .../meteor/client/hooks/useHideRoomAction.tsx | 1 - apps/meteor/client/hooks/useRoomIcon.tsx | 1 - .../meteor/client/hooks/useSingleFileInput.ts | 2 +- apps/meteor/client/hooks/useTimeAgo.ts | 13 +++--- apps/meteor/client/hooks/useTimeFromNow.ts | 4 +- apps/meteor/client/lib/appLayout.tsx | 2 +- apps/meteor/client/lib/clickableItem.tsx | 1 - apps/meteor/client/lib/createRouteGroup.tsx | 2 +- apps/meteor/client/lib/imperativeModal.tsx | 2 +- .../client/lib/normalizeThreadMessage.tsx | 1 - .../client/lib/rooms/roomCoordinator.tsx | 1 - apps/meteor/client/navbar/Navbar.tsx | 2 - .../actions/NavbarAdministrationAction.tsx | 1 - .../navbar/actions/NavbarAuditAction.tsx | 1 - .../navbar/actions/NavbarHomeAction.tsx | 1 - .../actions/NavbarMarketplaceAction.tsx | 1 - .../navbar/actions/NavbarUserAction.tsx | 1 - .../BusinessHoursMultiple.stories.tsx | 1 - .../additionalForms/BusinessHoursMultiple.tsx | 1 - .../additionalForms/ContactManagerInput.tsx | 2 - .../additionalForms/CurrentChatTags.tsx | 2 - .../CustomFieldsAdditionalForm.tsx | 2 +- .../DepartmentBusinessHours.tsx | 1 - .../additionalForms/DepartmentForwarding.tsx | 2 +- .../additionalForms/EeNumberInput.tsx | 1 - .../additionalForms/EeTextAreaInput.tsx | 1 - .../additionalForms/EeTextInput.tsx | 1 - .../additionalForms/MaxChatsPerAgent.tsx | 1 - .../MaxChatsPerAgentDisplay.tsx | 1 - .../additionalForms/PrioritiesSelect.tsx | 2 +- .../additionalForms/SlaPoliciesSelect.tsx | 2 +- .../businessHours/BusinessHoursRow.tsx | 2 +- .../BusinessHoursTable.stories.tsx | 1 - .../businessHours/BusinessHoursTable.tsx | 2 +- .../businessHours/useRemoveBusinessHour.tsx | 1 - .../cannedResponses/CannedResponseEdit.tsx | 2 +- .../CannedResponseEditWithData.tsx | 1 - .../CannedResponseEditWithDepartmentData.tsx | 2 +- .../cannedResponses/CannedResponseFilter.tsx | 2 +- .../cannedResponses/CannedResponsesPage.tsx | 1 - .../cannedResponses/CannedResponsesRoute.tsx | 1 - .../cannedResponses/CannedResponsesTable.tsx | 2 +- .../CannedResponsesComposer.stories.tsx | 1 - .../CannedResponsesComposer.tsx | 2 +- .../CannedResponsesComposerPreview.tsx | 2 +- .../InsertPlaceholderDropdown.tsx | 2 +- .../components/cannedResponseForm.tsx | 2 +- .../CannedResponse/CannedResponse.stories.tsx | 1 - .../CannedResponse/CannedResponse.tsx | 2 +- .../CannedResponseList.stories.tsx | 1 - .../CannedResponse/CannedResponseList.tsx | 2 +- .../CannedResponse/Item.stories.tsx | 1 - .../contextualBar/CannedResponse/Item.tsx | 2 +- .../CannedResponse/WrapCannedResponse.tsx | 2 +- .../CannedResponse/WrapCannedResponseList.tsx | 6 +-- .../CreateCannedResponseModal.stories.tsx | 1 - .../CreateCannedResponseModal.tsx | 2 +- .../useRemoveCannedResponse.tsx | 1 - .../components/RoomActivityIcon/index.tsx | 1 - .../hooks/useOmnichannelPrioritiesMenu.tsx | 2 +- .../omnichannel/monitors/MonitorsPage.tsx | 1 - .../monitors/MonitorsPageContainer.tsx | 2 - .../omnichannel/monitors/MonitorsTable.tsx | 2 +- .../omnichannel/priorities/PrioritiesPage.tsx | 2 +- .../priorities/PrioritiesResetModal.tsx | 1 - .../priorities/PrioritiesRoute.tsx | 1 - .../priorities/PrioritiesTable.tsx | 1 - .../priorities/PriorityEditForm.tsx | 2 +- .../priorities/PriorityEditFormWithData.tsx | 1 - .../omnichannel/priorities/PriorityIcon.tsx | 2 +- .../omnichannel/priorities/PriorityList.tsx | 1 - .../omnichannel/reports/ReportsPage.tsx | 1 - .../reports/components/AgentsTable.tsx | 2 +- .../reports/components/BarChart.tsx | 6 +-- .../reports/components/PieChart.tsx | 1 - .../reports/components/ReportCard.tsx | 2 +- .../reports/components/ReportCardContent.tsx | 1 - .../components/ReportCardEmptyState.tsx | 1 - .../components/ReportCardErrorState.tsx | 1 - .../components/ReportCardLoadingState.tsx | 1 - .../reports/sections/AgentsSection.tsx | 1 - .../reports/sections/ChannelsSection.tsx | 2 +- .../reports/sections/DepartmentsSection.tsx | 2 - .../reports/sections/StatusSection.tsx | 2 - .../reports/sections/TagsSection.tsx | 1 - .../securityPrivacy/SecurityPrivacyPage.tsx | 1 - .../securityPrivacy/SecurityPrivacyRoute.tsx | 2 - .../slaPolicies/RemoveSlaButton.tsx | 1 - .../omnichannel/slaPolicies/SlaEdit.tsx | 1 - .../slaPolicies/SlaEditWithData.tsx | 1 - .../client/omnichannel/slaPolicies/SlaNew.tsx | 1 - .../omnichannel/slaPolicies/SlaPage.tsx | 2 +- .../omnichannel/slaPolicies/SlaRoute.tsx | 1 - .../omnichannel/slaPolicies/SlaTable.tsx | 2 +- .../tags/AutoCompleteTagsMultiple.tsx | 2 +- .../client/omnichannel/tags/TagEdit.tsx | 1 - .../omnichannel/tags/TagEditWithData.tsx | 1 - .../tags/TagEditWithDepartmentData.tsx | 1 - .../client/omnichannel/tags/TagsPage.tsx | 1 - .../client/omnichannel/tags/TagsRoute.tsx | 1 - .../client/omnichannel/tags/TagsTable.tsx | 2 +- .../client/omnichannel/tags/useRemoveTag.tsx | 1 - .../client/omnichannel/units/UnitEdit.tsx | 2 +- .../omnichannel/units/UnitEditWithData.tsx | 1 - .../client/omnichannel/units/UnitsPage.tsx | 1 - .../client/omnichannel/units/UnitsRoute.tsx | 1 - .../client/omnichannel/units/UnitsTable.tsx | 2 +- .../omnichannel/units/useRemoveUnit.tsx | 1 - apps/meteor/client/portals/TooltipPortal.tsx | 2 +- .../client/portals/VideoConfPopupPortal.tsx | 2 +- .../providers/ActionManagerProvider.tsx | 1 - .../providers/AppsProvider/AppsProvider.tsx | 2 +- .../client/providers/AttachmentProvider.tsx | 2 +- .../AuthenticationProvider.tsx | 2 +- .../providers/AuthorizationProvider.tsx | 2 +- .../client/providers/AvatarUrlProvider.tsx | 2 +- .../providers/CallProvider/CallProvider.tsx | 2 +- .../providers/ConnectionStatusProvider.tsx | 1 - .../client/providers/CustomSoundProvider.tsx | 2 +- .../DeviceProvider/DeviceProvider.tsx | 2 +- .../EmojiPickerProvider.tsx | 2 +- .../client/providers/ImageGalleryProvider.tsx | 2 +- .../client/providers/LayoutProvider.tsx | 2 +- .../client/providers/MeteorProvider.tsx | 1 - .../ModalProvider/ModalProvider.spec.tsx | 2 +- .../providers/ModalProvider/ModalProvider.tsx | 2 +- .../ModalProvider/ModalProviderWithRegion.tsx | 2 +- .../client/providers/OmnichannelProvider.tsx | 2 +- .../client/providers/RouterProvider.tsx | 1 - .../client/providers/ServerProvider.tsx | 1 - .../client/providers/SessionProvider.tsx | 1 - .../client/providers/SettingsProvider.tsx | 2 +- .../providers/ToastMessagesProvider.tsx | 2 +- .../client/providers/TooltipProvider.tsx | 2 +- .../client/providers/TranslationProvider.tsx | 2 +- .../client/providers/UserPresenceProvider.tsx | 2 +- .../providers/UserProvider/UserProvider.tsx | 2 +- .../client/providers/VideoConfProvider.tsx | 2 +- .../client/sidebar/Item/Condensed.stories.tsx | 1 - apps/meteor/client/sidebar/Item/Condensed.tsx | 2 +- .../client/sidebar/Item/Extended.stories.tsx | 1 - apps/meteor/client/sidebar/Item/Extended.tsx | 17 ++++---- .../client/sidebar/Item/Medium.stories.tsx | 1 - apps/meteor/client/sidebar/Item/Medium.tsx | 15 +++---- .../client/sidebar/RoomList/RoomList.tsx | 2 +- .../client/sidebar/RoomList/RoomListRow.tsx | 2 +- .../sidebar/RoomList/RoomListRowWrapper.tsx | 2 +- .../sidebar/RoomList/RoomListWrapper.tsx | 2 +- .../RoomList/SideBarItemTemplateWithData.tsx | 2 +- apps/meteor/client/sidebar/RoomMenu.spec.tsx | 1 - apps/meteor/client/sidebar/RoomMenu.tsx | 2 +- .../meteor/client/sidebar/Sidebar.stories.tsx | 1 - apps/meteor/client/sidebar/Sidebar.tsx | 2 +- apps/meteor/client/sidebar/SidebarPortal.tsx | 2 +- apps/meteor/client/sidebar/SidebarRegion.tsx | 2 +- .../sidebar/badges/OmnichannelBadges.tsx | 1 - .../client/sidebar/footer/SidebarFooter.tsx | 1 - .../sidebar/footer/SidebarFooterDefault.tsx | 1 - .../sidebar/footer/SidebarFooterWatermark.tsx | 1 - .../footer/voip/VoipFooter.stories.tsx | 2 +- .../client/sidebar/footer/voip/VoipFooter.tsx | 1 - .../client/sidebar/footer/voip/index.tsx | 2 +- .../CreateChannel/CreateChannelModal.tsx | 2 +- .../sidebar/header/CreateDirectMessage.tsx | 2 +- .../header/CreateTeam/CreateTeamModal.tsx | 2 +- .../client/sidebar/header/EditStatusModal.tsx | 2 +- apps/meteor/client/sidebar/header/Header.tsx | 2 +- .../client/sidebar/header/HeaderUnstable.tsx | 2 +- .../FederatedRoomList.tsx | 1 - .../FederatedRoomListEmptyPlaceholder.tsx | 1 - .../FederatedRoomListErrorBoundary.tsx | 1 - .../FederatedRoomListItem.tsx | 1 - .../MatrixFederationManageServerModal.tsx | 2 +- .../MatrixFederationRemoveServerList.tsx | 1 - .../MatrixFederationSearch.spec.tsx | 1 - .../MatrixFederationSearch.tsx | 1 - .../MatrixFederationSearchModalContent.tsx | 2 +- .../sidebar/header/SidebarHeaderToolbar.tsx | 2 +- .../sidebar/header/UserAvatarWithStatus.tsx | 1 - .../meteor/client/sidebar/header/UserMenu.tsx | 2 +- .../client/sidebar/header/UserMenuHeader.tsx | 1 - .../sidebar/header/actions/Administration.tsx | 1 - .../sidebar/header/actions/CreateRoom.tsx | 1 - .../sidebar/header/actions/Directory.tsx | 1 - .../client/sidebar/header/actions/Home.tsx | 1 - .../client/sidebar/header/actions/Login.tsx | 1 - .../client/sidebar/header/actions/Search.tsx | 2 +- .../client/sidebar/header/actions/Sort.tsx | 1 - .../header/actions/hooks/useAppsItems.tsx | 1 - .../actions/hooks/useGroupingListItems.tsx | 2 +- .../header/actions/hooks/useSortModeItems.tsx | 2 +- .../header/actions/hooks/useViewModeItems.tsx | 2 +- .../sidebar/header/hooks/useAccountItems.tsx | 1 - .../header/hooks/useCreateRoomModal.tsx | 1 - .../hooks/useCustomStatusModalHandler.tsx | 1 - .../sidebar/header/hooks/useStatusItems.tsx | 2 +- .../sidebar/header/hooks/useUserMenu.tsx | 1 - .../header/hooks/useVoipItemsSection.tsx | 2 +- apps/meteor/client/sidebar/header/index.tsx | 2 +- .../sidebar/hooks/useAvatarTemplate.tsx | 2 +- apps/meteor/client/sidebar/search/Row.tsx | 2 +- .../client/sidebar/search/SearchList.tsx | 2 +- .../meteor/client/sidebar/search/UserItem.tsx | 2 +- .../AirGappedRestrictionBanner.tsx | 1 - .../AirGappedRestrictionWarning.tsx | 1 - .../sidebar/sections/BannerSection.spec.tsx | 1 - .../client/sidebar/sections/BannerSection.tsx | 1 - .../sidebar/sections/OmnichannelSection.tsx | 2 +- .../sidebar/sections/OverMacLimitSection.tsx | 1 - .../sidebar/sections/StatusDisabledBanner.tsx | 1 - .../actions/OmnichannelCallDialPad.tsx | 1 - .../actions/OmnichannelCallToggle.tsx | 1 - .../actions/OmnichannelCallToggleError.tsx | 1 - .../actions/OmnichannelCallToggleLoading.tsx | 1 - .../actions/OmnichannelCallToggleReady.tsx | 2 +- .../actions/OmnichannelLivechatToggle.tsx | 1 - .../sidebarv2/Item/Condensed.stories.tsx | 1 - .../client/sidebarv2/Item/Condensed.tsx | 2 +- .../sidebarv2/Item/Extended.stories.tsx | 1 - .../meteor/client/sidebarv2/Item/Extended.tsx | 16 ++++---- .../client/sidebarv2/Item/Medium.stories.tsx | 1 - apps/meteor/client/sidebarv2/Item/Medium.tsx | 14 +++---- .../client/sidebarv2/RoomList/RoomList.tsx | 2 +- .../sidebarv2/RoomList/RoomListCollapser.tsx | 1 - .../client/sidebarv2/RoomList/RoomListRow.tsx | 2 +- .../sidebarv2/RoomList/RoomListRowWrapper.tsx | 2 +- .../sidebarv2/RoomList/RoomListWrapper.tsx | 2 +- .../RoomList/SidebarItemTemplateWithData.tsx | 2 +- apps/meteor/client/sidebarv2/RoomMenu.tsx | 2 +- .../client/sidebarv2/Sidebar.stories.tsx | 1 - apps/meteor/client/sidebarv2/Sidebar.tsx | 2 +- .../meteor/client/sidebarv2/SidebarPortal.tsx | 2 +- .../meteor/client/sidebarv2/SidebarRegion.tsx | 2 +- .../sidebarv2/badges/OmnichannelBadges.tsx | 1 - .../client/sidebarv2/footer/SidebarFooter.tsx | 1 - .../sidebarv2/footer/SidebarFooterDefault.tsx | 1 - .../footer/SidebarFooterWatermark.tsx | 1 - .../footer/voip/VoipFooter.stories.tsx | 2 +- .../sidebarv2/footer/voip/VoipFooter.tsx | 1 - .../client/sidebarv2/footer/voip/index.tsx | 2 +- .../sidebarv2/header/CreateChannelModal.tsx | 2 +- .../sidebarv2/header/CreateDirectMessage.tsx | 2 +- .../sidebarv2/header/CreateTeamModal.tsx | 2 +- .../FederatedRoomList.tsx | 1 - .../FederatedRoomListEmptyPlaceholder.tsx | 1 - .../FederatedRoomListErrorBoundary.tsx | 1 - .../FederatedRoomListItem.tsx | 1 - .../MatrixFederationManageServerModal.tsx | 2 +- .../MatrixFederationRemoveServerList.tsx | 1 - .../MatrixFederationSearch.tsx | 1 - .../MatrixFederationSearchModalContent.tsx | 2 +- .../client/sidebarv2/header/SearchList.tsx | 2 +- .../client/sidebarv2/header/SearchSection.tsx | 2 +- .../sidebarv2/header/actions/CreateRoom.tsx | 1 - .../client/sidebarv2/header/actions/Sort.tsx | 1 - .../actions/hooks/useGroupingListItems.tsx | 2 +- .../header/actions/hooks/useSortModeItems.tsx | 2 +- .../header/actions/hooks/useViewModeItems.tsx | 2 +- .../header/hooks/useCreateRoomModal.tsx | 1 - .../sidebarv2/hooks/useAvatarTemplate.tsx | 2 +- .../sidebarv2/hooks/useRoomList.spec.tsx | 1 - apps/meteor/client/sidebarv2/search/Row.tsx | 2 +- .../client/sidebarv2/search/UserItem.tsx | 2 +- .../AirGappedRestrictionBanner.tsx | 1 - .../AirGappedRestrictionWarning.tsx | 1 - .../sidebarv2/sections/BannerSection.spec.tsx | 1 - .../sidebarv2/sections/BannerSection.tsx | 1 - .../sections/StatusDisabledBanner.tsx | 1 - apps/meteor/client/startup/appRoot.tsx | 2 +- apps/meteor/client/startup/audit.tsx | 5 ++- apps/meteor/client/startup/routes.tsx | 2 +- .../stories/contexts/ModalContextMock.tsx | 2 +- .../contexts/QueryClientProviderMock.tsx | 1 - .../stories/contexts/RouterContextMock.tsx | 2 +- .../stories/contexts/ServerContextMock.tsx | 2 +- .../contexts/TranslationContextMock.tsx | 2 +- .../client/views/account/AccountRouter.tsx | 2 +- .../client/views/account/AccountSidebar.tsx | 2 +- .../accessibility/AccessibilityPage.tsx | 2 +- .../DeviceManagementAccountPage.tsx | 1 - .../DeviceManagementAccountRow.tsx | 1 - .../DeviceManagementAccountTable.tsx | 2 +- .../AccountFeaturePreviewPage.tsx | 2 +- .../integrations/AccountIntegrationsPage.tsx | 2 +- .../integrations/AccountIntegrationsRoute.tsx | 1 - .../OmnichannelPreferencesPage.tsx | 1 - .../PreferencesConversationTranscript.tsx | 1 - .../omnichannel/PreferencesGeneral.tsx | 1 - .../preferences/AccountPreferencesPage.tsx | 1 - .../views/account/preferences/MyDataModal.tsx | 1 - .../preferences/PreferencesGlobalSection.tsx | 1 - .../PreferencesHighlightsSection.tsx | 1 - .../PreferencesLocalizationSection.tsx | 2 +- .../PreferencesMessagesSection.tsx | 2 +- .../preferences/PreferencesMyDataSection.tsx | 2 +- .../PreferencesNotificationsSection.tsx | 2 +- .../preferences/PreferencesSoundSection.tsx | 1 - .../PreferencesUserPresenceSection.tsx | 1 - .../account/profile/AccountProfileForm.tsx | 2 +- .../account/profile/AccountProfilePage.tsx | 4 +- .../account/profile/AccountProfileRoute.tsx | 1 - .../account/profile/ActionConfirmModal.tsx | 7 ++-- .../account/security/AccountSecurityPage.tsx | 1 - .../account/security/AccountSecurityRoute.tsx | 1 - .../account/security/BackupCodesModal.tsx | 2 +- .../views/account/security/ChangePassword.tsx | 1 - .../views/account/security/EndToEnd.tsx | 2 +- .../views/account/security/TwoFactorEmail.tsx | 2 +- .../views/account/security/TwoFactorTOTP.tsx | 2 +- .../client/views/account/sidebarItems.tsx | 1 - .../account/tokens/AccountTokensPage.tsx | 1 - .../account/tokens/AccountTokensRoute.tsx | 1 - .../AccountTokensTable/AccountTokensRow.tsx | 2 +- .../AccountTokensTable/AccountTokensTable.tsx | 6 +-- .../tokens/AccountTokensTable/AddToken.tsx | 2 +- .../views/admin/AdministrationLayout.tsx | 1 - .../views/admin/AdministrationRouter.tsx | 2 +- .../admin/customEmoji/AddCustomEmoji.tsx | 2 +- .../admin/customEmoji/CustomEmoji.spec.tsx | 1 - .../views/admin/customEmoji/CustomEmoji.tsx | 2 +- .../admin/customEmoji/CustomEmojiRoute.tsx | 2 +- .../admin/customEmoji/EditCustomEmoji.tsx | 4 +- .../customEmoji/EditCustomEmojiWithData.tsx | 2 +- .../admin/customSounds/AddCustomSound.tsx | 4 +- .../admin/customSounds/CustomSoundsPage.tsx | 4 +- .../admin/customSounds/CustomSoundsRoute.tsx | 1 - .../CustomSoundsTable/CustomSoundRow.tsx | 7 ++-- .../CustomSoundsTable/CustomSoundsTable.tsx | 2 +- .../admin/customSounds/EditCustomSound.tsx | 1 - .../views/admin/customSounds/EditSound.tsx | 13 ++++-- .../CustomUserActiveConnections.tsx | 1 - .../CustomUserStatusDisabledModal.tsx | 1 - .../customUserStatus/CustomUserStatusForm.tsx | 2 +- .../CustomUserStatusFormWithData.tsx | 2 +- .../CustomUserStatusRoute.tsx | 2 +- .../CustomUserStatusService.tsx | 1 - .../CustomUserStatusRow.tsx | 1 - .../CustomUserStatusTable.tsx | 2 +- .../hooks/useStatusDisabledModal.tsx | 1 - .../DeviceManagementAdminPage.tsx | 2 +- .../DeviceManagementAdminRoute.tsx | 2 +- .../DeviceManagementAdminRow.tsx | 2 +- .../DeviceManagementAdminTable.tsx | 2 +- .../DeviceManagementInfo.tsx | 2 +- .../DeviceManagementInfoWithData.tsx | 2 +- .../views/admin/emailInbox/EmailInboxForm.tsx | 2 +- .../emailInbox/EmailInboxFormWithData.tsx | 1 - .../views/admin/emailInbox/EmailInboxPage.tsx | 1 - .../admin/emailInbox/EmailInboxRoute.tsx | 1 - .../admin/emailInbox/EmailInboxTable.tsx | 4 +- .../views/admin/emailInbox/SendTestButton.tsx | 5 +-- .../EngagementDashboardCard.tsx | 1 - .../EngagementDashboardCardErrorBoundary.tsx | 2 +- .../EngagementDashboardCardFilter.tsx | 1 - .../EngagementDashboardPage.stories.tsx | 1 - .../EngagementDashboardPage.tsx | 2 +- .../EngagementDashboardRoute.tsx | 2 +- .../channels/ChannelsOverview.tsx | 2 +- .../channels/ChannelsTab.stories.tsx | 1 - .../channels/ChannelsTab.tsx | 1 - .../dataView/LegendSymbol.stories.tsx | 1 - .../dataView/LegendSymbol.tsx | 1 - .../messages/MessagesPerChannelSection.tsx | 2 +- .../messages/MessagesSentSection.tsx | 2 +- .../messages/MessagesTab.stories.tsx | 1 - .../messages/MessagesTab.tsx | 1 - .../users/ActiveUsersSection.tsx | 2 +- .../users/BusiestChatTimesSection.tsx | 2 +- .../users/ContentForDays.tsx | 2 +- .../users/ContentForHours.tsx | 2 +- .../users/NewUsersSection.tsx | 2 +- .../users/UsersByTimeOfTheDaySection.tsx | 5 ++- .../users/UsersTab.stories.tsx | 1 - .../engagementDashboard/users/UsersTab.tsx | 1 - .../AdminFeaturePreviewPage.tsx | 2 +- .../AdminFeaturePreviewRoute.tsx | 2 +- .../FederationDashboardPage.stories.tsx | 1 - .../FederationDashboardPage.tsx | 1 - .../FederationDashboardRoute.tsx | 1 - .../OverviewSection.stories.tsx | 1 - .../federationDashboard/OverviewSection.tsx | 1 - .../ServersSection.stories.tsx | 1 - .../federationDashboard/ServersSection.tsx | 1 - .../import/ImportHistoryPage.stories.tsx | 1 - .../views/admin/import/ImportHistoryPage.tsx | 2 +- .../import/ImportOperationSummary.stories.tsx | 1 - .../admin/import/ImportOperationSummary.tsx | 2 +- .../import/ImportOperationSummarySkeleton.tsx | 1 - .../views/admin/import/ImportProgressPage.tsx | 2 +- .../client/views/admin/import/ImportRoute.tsx | 1 - .../admin/import/NewImportPage.stories.tsx | 1 - .../views/admin/import/NewImportPage.tsx | 2 +- .../views/admin/import/PrepareChannels.tsx | 4 +- .../views/admin/import/PrepareContacts.tsx | 1 - .../views/admin/import/PrepareImportPage.tsx | 2 +- .../views/admin/import/PrepareUsers.tsx | 4 +- .../integrations/EditIntegrationsPage.tsx | 1 - .../EditIntegrationsPageWithData.tsx | 2 +- .../admin/integrations/IntegrationRow.tsx | 1 - .../admin/integrations/IntegrationsPage.tsx | 1 - .../admin/integrations/IntegrationsRoute.tsx | 2 +- .../admin/integrations/IntegrationsTable.tsx | 4 +- .../views/admin/integrations/NewBot.tsx | 1 - .../views/admin/integrations/NewZapier.tsx | 2 +- .../incoming/EditIncomingWebhook.tsx | 2 +- .../incoming/IncomingWebhookForm.tsx | 2 +- .../outgoing/EditOutgoingWebhook.tsx | 2 +- .../outgoing/OutgoingWebhookForm.tsx | 2 +- .../outgoing/history/HistoryContent.tsx | 1 - .../outgoing/history/HistoryItem.tsx | 1 - .../history/OutgoingWebhookHistoryPage.tsx | 2 +- .../client/views/admin/invites/InviteRow.tsx | 1 - .../views/admin/invites/InvitesPage.tsx | 2 +- .../views/admin/invites/InvitesRoute.tsx | 1 - .../views/admin/mailer/Mailer.stories.tsx | 1 - .../client/views/admin/mailer/MailerPage.tsx | 1 - .../client/views/admin/mailer/MailerRoute.tsx | 1 - .../admin/moderation/MessageContextFooter.tsx | 1 - .../admin/moderation/MessageReportInfo.tsx | 1 - .../moderation/ModConsoleReportDetails.tsx | 2 +- .../moderation/ModerationConsoleActions.tsx | 1 - .../moderation/ModerationConsolePage.tsx | 2 +- .../moderation/ModerationConsoleRoute.tsx | 2 +- .../moderation/ModerationConsoleTable.tsx | 2 +- .../moderation/ModerationConsoleTableRow.tsx | 1 - .../views/admin/moderation/UserMessages.tsx | 2 +- .../UserReports/ModConsoleUserActions.tsx | 1 - .../UserReports/ModConsoleUserTableRow.tsx | 1 - .../UserReports/ModConsoleUsersTable.tsx | 2 +- .../UserReports/UserContextFooter.tsx | 1 - .../moderation/UserReports/UserReportInfo.tsx | 2 +- .../moderation/helpers/ContextMessage.tsx | 1 - .../moderation/helpers/DateRangePicker.tsx | 2 +- .../moderation/helpers/ModerationFilter.tsx | 2 - .../admin/moderation/helpers/ReportReason.tsx | 1 - .../helpers/ReportReasonCollapsible.tsx | 1 - .../admin/moderation/helpers/UserColumn.tsx | 1 - .../hooks/useDeactivateUserAction.tsx | 1 - .../moderation/hooks/useDeleteMessage.tsx | 1 - .../hooks/useDeleteMessagesAction.tsx | 1 - .../hooks/useDismissMessageAction.tsx | 1 - .../moderation/hooks/useDismissUserAction.tsx | 1 - .../moderation/hooks/useResetAvatarAction.tsx | 1 - .../views/admin/oauthApps/EditOauthApp.tsx | 2 +- .../admin/oauthApps/EditOauthAppWithData.tsx | 2 +- .../views/admin/oauthApps/OAuthAddApp.tsx | 2 +- .../views/admin/oauthApps/OAuthAppsPage.tsx | 1 - .../views/admin/oauthApps/OAuthAppsRoute.tsx | 1 - .../views/admin/oauthApps/OAuthAppsTable.tsx | 4 +- .../permissions/CustomRoleUpsellModal.tsx | 1 - .../views/admin/permissions/EditRolePage.tsx | 1 - .../permissions/EditRolePageWithData.tsx | 1 - .../permissions/PermissionsContextBar.tsx | 2 +- .../admin/permissions/PermissionsRouter.tsx | 1 - .../PermissionsTable/PermissionRow.tsx | 2 +- .../PermissionsTable/PermissionsTable.tsx | 2 +- .../PermissionsTableFilter.tsx | 2 +- .../permissions/PermissionsTable/RoleCell.tsx | 2 +- .../PermissionsTable/RoleHeader.tsx | 2 +- .../views/admin/permissions/RoleForm.tsx | 2 +- .../UsersInRole/UsersInRolePage.tsx | 1 - .../UsersInRole/UsersInRolePageWithData.tsx | 1 - .../UsersInRoleTable/UsersInRoleTable.tsx | 2 +- .../UsersInRoleTable/UsersInRoleTableRow.tsx | 2 +- .../client/views/admin/rooms/EditRoom.tsx | 1 - .../views/admin/rooms/EditRoomWithData.tsx | 1 - .../client/views/admin/rooms/RoomRow.tsx | 4 +- .../client/views/admin/rooms/RoomsPage.tsx | 2 +- .../client/views/admin/rooms/RoomsRoute.tsx | 1 - .../client/views/admin/rooms/RoomsTable.tsx | 2 +- .../views/admin/rooms/RoomsTableFilters.tsx | 8 ++-- .../settings/EditableSettingsProvider.tsx | 2 +- .../settings/Setting/MemoizedSetting.tsx | 4 +- .../ResetSettingButton.stories.tsx | 1 - .../ResetSettingButton/ResetSettingButton.tsx | 1 - .../settings/Setting/Setting.stories.tsx | 1 - .../views/admin/settings/Setting/Setting.tsx | 6 +-- .../settings/Setting/SettingSkeleton.tsx | 1 - .../inputs/ActionSettingInput.stories.tsx | 1 - .../Setting/inputs/ActionSettingInput.tsx | 1 - .../inputs/AssetSettingInput.stories.tsx | 1 - .../Setting/inputs/AssetSettingInput.tsx | 1 - .../inputs/BooleanSettingInput.stories.tsx | 1 - .../Setting/inputs/BooleanSettingInput.tsx | 1 - .../Setting/inputs/CodeMirror/CodeMirror.tsx | 2 +- .../inputs/CodeMirror/CodeMirrorBox.tsx | 1 - .../inputs/CodeSettingInput.stories.tsx | 1 - .../Setting/inputs/CodeSettingInput.tsx | 1 - .../inputs/ColorSettingInput.stories.tsx | 1 - .../Setting/inputs/ColorSettingInput.tsx | 11 ++--- .../inputs/FontSettingInput.stories.tsx | 1 - .../Setting/inputs/FontSettingInput.tsx | 1 - .../inputs/GenericSettingInput.stories.tsx | 1 - .../Setting/inputs/GenericSettingInput.tsx | 1 - .../inputs/IntSettingInput.stories.tsx | 1 - .../Setting/inputs/IntSettingInput.tsx | 1 - .../inputs/LanguageSettingInput.stories.tsx | 1 - .../Setting/inputs/LanguageSettingInput.tsx | 1 - .../Setting/inputs/LookupSettingInput.tsx | 1 - .../MultiSelectSettingInput.stories.tsx | 1 - .../inputs/MultiSelectSettingInput.tsx | 1 - .../inputs/PasswordSettingInput.stories.tsx | 1 - .../Setting/inputs/PasswordSettingInput.tsx | 1 - .../RelativeUrlSettingInput.stories.tsx | 1 - .../inputs/RelativeUrlSettingInput.tsx | 1 - .../Setting/inputs/RoomPickSettingInput.tsx | 1 - .../inputs/SelectSettingInput.stories.tsx | 1 - .../Setting/inputs/SelectSettingInput.tsx | 1 - .../inputs/SelectTimezoneSettingInput.tsx | 1 - .../inputs/StringSettingInput.stories.tsx | 1 - .../Setting/inputs/StringSettingInput.tsx | 1 - .../inputs/TimespanSettingInput.spec.tsx | 1 - .../Setting/inputs/TimespanSettingInput.tsx | 2 +- .../admin/settings/SettingsGroupCard.tsx | 1 - .../SettingsGroupPage.stories.tsx | 1 - .../SettingsGroupPage/SettingsGroupPage.tsx | 2 +- .../SettingsGroupPageSkeleton.tsx | 2 +- .../SettingsGroupSelector.stories.tsx | 1 - .../SettingsGroupSelector.tsx | 1 - .../views/admin/settings/SettingsPage.tsx | 6 +-- .../views/admin/settings/SettingsRoute.tsx | 1 - .../SettingsSection.stories.tsx | 1 - .../SettingsSection/SettingsSection.tsx | 2 +- .../SettingsSectionSkeleton.tsx | 1 - .../admin/settings/groups/BaseGroupPage.tsx | 1 - .../settings/groups/GenericGroupPage.tsx | 2 +- .../admin/settings/groups/LDAPGroupPage.tsx | 2 +- .../OAuthGroupPage/CreateOAuthModal.spec.tsx | 1 - .../OAuthGroupPage/CreateOAuthModal.tsx | 1 - .../groups/OAuthGroupPage/OAuthGroupPage.tsx | 2 +- .../admin/settings/groups/TabbedGroupPage.tsx | 2 +- .../VoipGroupPage/AssignAgentButton.tsx | 1 - .../groups/VoipGroupPage/AssignAgentModal.tsx | 2 +- .../VoipGroupPage/RemoveAgentButton.tsx | 1 - .../VoipGroupPage/VoipExtensionsPage.tsx | 2 +- .../groups/VoipGroupPage/VoipGroupPage.tsx | 2 +- .../views/admin/sidebar/AdminSidebar.tsx | 2 +- .../views/admin/sidebar/AdminSidebarPages.tsx | 2 +- .../SubscriptionCalloutLimits.tsx | 1 - .../admin/subscription/SubscriptionPage.tsx | 2 +- .../subscription/SubscriptionPageSkeleton.tsx | 2 +- .../admin/subscription/SubscriptionRoute.tsx | 2 +- .../CancelSubscriptionModal.spec.tsx | 1 - .../components/CancelSubscriptionModal.tsx | 1 - .../components/FeatureUsageCard.tsx | 2 +- .../components/FeatureUsageCardBody.tsx | 1 - .../components/InfoTextIconModal.tsx | 2 +- .../subscription/components/UpgradeButton.tsx | 2 +- .../components/UpgradeToGetMore.tsx | 5 ++- .../components/UsagePieGraph.stories.tsx | 1 - .../subscription/components/UsagePieGraph.tsx | 2 +- .../components/cards/ActiveSessionsCard.tsx | 1 - .../cards/ActiveSessionsPeakCard.tsx | 1 - .../AppsUsageCard/AppsUsageCard.spec.tsx | 1 - .../cards/AppsUsageCard/AppsUsageCard.tsx | 1 - .../AppsUsageCard/AppsUsageCardSection.tsx | 1 - .../components/cards/CountMACCard.tsx | 1 - .../components/cards/CountSeatsCard.tsx | 1 - .../components/cards/FeaturesCard.tsx | 1 - .../subscription/components/cards/MACCard.tsx | 1 - .../components/cards/PlanCard.tsx | 1 - .../cards/PlanCard/PlanCardCommunity.tsx | 1 - .../cards/PlanCard/PlanCardHeader.tsx | 1 - .../cards/PlanCard/PlanCardPremium.tsx | 1 - .../cards/PlanCard/PlanCardTrial.tsx | 1 - .../components/cards/SeatsCard.tsx | 1 - .../hooks/useCancelSubscriptionModal.tsx | 2 +- .../surface/UiKitSubscriptionLicense.tsx | 2 +- .../UiKitSubscriptionLicenseSurface.tsx | 1 - .../views/admin/users/AdminInviteUsers.tsx | 4 +- .../views/admin/users/AdminUserCreated.tsx | 1 - .../views/admin/users/AdminUserForm.tsx | 2 +- .../admin/users/AdminUserFormWithData.tsx | 1 - .../admin/users/AdminUserInfoActions.tsx | 2 +- .../admin/users/AdminUserInfoWithData.tsx | 2 +- .../AdminUserSetRandomPasswordContent.tsx | 1 - .../AdminUserSetRandomPasswordRadios.tsx | 1 - .../views/admin/users/AdminUserUpgrade.tsx | 1 - .../views/admin/users/AdminUsersPage.tsx | 2 +- .../views/admin/users/AdminUsersRoute.tsx | 1 - .../admin/users/PasswordFieldSkeleton.tsx | 1 - .../SeatsCapUsage/SeatsCapUsage.stories.tsx | 1 - .../users/SeatsCapUsage/SeatsCapUsage.tsx | 1 - .../users/UsersPageHeaderContent.spec.tsx | 2 +- .../admin/users/UsersPageHeaderContent.tsx | 1 - .../users/UsersTable/UsersTable.spec.tsx | 1 - .../admin/users/UsersTable/UsersTable.tsx | 40 +++++++++---------- .../users/UsersTable/UsersTableFilters.tsx | 6 +-- .../admin/users/UsersTable/UsersTableRow.tsx | 15 ++----- .../users/hooks/useConfirmOwnerChanges.tsx | 1 - .../admin/users/hooks/useDeleteUserAction.tsx | 2 +- .../users/hooks/useResetE2EEKeyAction.tsx | 2 +- .../admin/users/hooks/useResetTOTPAction.tsx | 2 +- .../users/hooks/useVoipExtensionAction.tsx | 1 - .../users/voip/AssignExtensionButton.tsx | 1 - .../users/voip/AssignExtensionModal.spec.tsx | 1 - .../admin/users/voip/AssignExtensionModal.tsx | 2 +- .../users/voip/RemoveExtensionModal.spec.tsx | 1 - .../admin/users/voip/RemoveExtensionModal.tsx | 1 - .../voip/hooks/useVoipExtensionAction.tsx | 1 - .../views/admin/viewLogs/AnalyticsReports.tsx | 1 - .../views/admin/viewLogs/ServerLogs.tsx | 4 +- .../admin/viewLogs/ViewLogsPage.stories.tsx | 1 - .../views/admin/viewLogs/ViewLogsPage.tsx | 2 +- .../views/admin/viewLogs/ViewLogsRoute.tsx | 1 - .../DeploymentCard/DeploymentCard.stories.tsx | 1 - .../DeploymentCard/DeploymentCard.tsx | 2 +- .../DescriptionList.stories.tsx | 1 - .../InstancesModal/DescriptionList.tsx | 2 +- .../InstancesModal/DescriptionListEntry.tsx | 2 +- .../InstancesModal/InstancesModal.stories.tsx | 1 - .../InstancesModal/InstancesModal.tsx | 1 - .../MessagesRoomsCard.stories.tsx | 1 - .../MessagesRoomsCard/MessagesRoomsCard.tsx | 2 +- .../UsersUploadsCard/UsersUploadsCard.tsx | 2 +- .../workspace/VersionCard/VersionCard.tsx | 2 +- .../components/VersionCardActionButton.tsx | 2 +- .../components/VersionCardActionItem.tsx | 1 - .../components/VersionCardSkeleton.tsx | 1 - .../VersionCard/components/VersionTag.tsx | 1 - .../modals/RegisterWorkspaceModal.tsx | 1 - .../RegisterWorkspaceSetupModal.tsx | 2 +- .../RegisterWorkspaceSetupStepOneModal.tsx | 1 - .../RegisterWorkspaceSetupStepTwoModal.tsx | 2 +- .../modals/RegisterWorkspaceTokenModal.tsx | 2 +- .../modals/RegisteredWorkspaceModal.tsx | 2 +- .../views/admin/workspace/WorkspacePage.tsx | 2 +- .../views/admin/workspace/WorkspaceRoute.tsx | 2 +- .../components/WorkspaceCardSection.tsx | 1 - .../components/WorkspaceCardSectionTitle.tsx | 1 - .../components/WorkspaceCardTextSeparator.tsx | 1 - .../client/views/audit/AuditLogPage.tsx | 1 - apps/meteor/client/views/audit/AuditPage.tsx | 2 +- .../audit/components/AuditFiltersDisplay.tsx | 1 - .../views/audit/components/AuditForm.tsx | 4 +- .../views/audit/components/AuditLogEntry.tsx | 2 +- .../views/audit/components/AuditLogTable.tsx | 2 +- .../audit/components/AuditMessageList.tsx | 2 +- .../views/audit/components/AuditResult.tsx | 2 +- .../components/forms/DateRangePicker.tsx | 2 +- .../components/forms/VisitorAutoComplete.tsx | 2 +- .../views/audit/components/tabs/DirectTab.tsx | 1 - .../audit/components/tabs/OmnichannelTab.tsx | 1 - .../views/audit/components/tabs/RoomsTab.tsx | 4 +- .../views/audit/components/tabs/UsersTab.tsx | 1 - .../client/views/banners/BannerRegion.tsx | 1 - .../client/views/banners/LegacyBanner.tsx | 2 +- .../client/views/banners/UiKitBanner.tsx | 2 +- .../views/cloud/CloudAnnouncementsRegion.tsx | 2 +- .../AudioMessageRecorder.tsx | 2 +- .../composer/EmojiPicker/CategoriesResult.tsx | 2 +- .../composer/EmojiPicker/EmojiCategoryRow.tsx | 1 - .../composer/EmojiPicker/EmojiElement.tsx | 2 +- .../composer/EmojiPicker/EmojiPicker.tsx | 2 +- .../EmojiPicker/EmojiPickerCategoryItem.tsx | 1 - .../EmojiPickerDesktopDropdown.tsx | 2 +- .../EmojiPicker/EmojiPickerDropDown.tsx | 8 ++-- .../composer/EmojiPicker/SearchingResult.tsx | 2 +- .../EmojiPicker/SearchingResultWrapper.tsx | 5 ++- .../EmojiPicker/ToneSelector/ToneItem.tsx | 1 - .../EmojiPicker/ToneSelector/ToneSelector.tsx | 7 ++-- .../ToneSelector/ToneSelectorWrapper.tsx | 1 - .../VideoMessageRecorder.tsx | 2 +- .../views/conference/ConferencePage.tsx | 2 +- .../views/conference/ConferencePageError.tsx | 1 - .../views/conference/ConferenceRoute.tsx | 1 - .../client/views/directory/DirectoryPage.tsx | 2 +- .../client/views/directory/RoomTags.tsx | 1 - .../directory/tabs/channels/ChannelsTab.tsx | 1 - .../channels/ChannelsTable/ChannelsTable.tsx | 7 ++-- .../ChannelsTable/ChannelsTableRow.tsx | 4 +- .../views/directory/tabs/teams/TeamsTab.tsx | 1 - .../tabs/teams/TeamsTable/TeamsTable.tsx | 7 ++-- .../tabs/teams/TeamsTable/TeamsTableRow.tsx | 4 +- .../views/directory/tabs/users/UsersTab.tsx | 1 - .../tabs/users/UsersTable/UsersTable.tsx | 12 ++++-- .../tabs/users/UsersTable/UsersTableRow.tsx | 4 +- .../views/e2e/EnterE2EPasswordModal.tsx | 6 +-- .../client/views/e2e/SaveE2EPasswordModal.tsx | 1 - .../client/views/home/CustomHomePage.tsx | 1 - .../views/home/CustomHomePageContent.tsx | 1 - .../client/views/home/DefaultHomePage.tsx | 1 - apps/meteor/client/views/home/HomePage.tsx | 2 +- .../client/views/home/HomePageHeader.tsx | 1 - .../client/views/home/HomepageGridItem.tsx | 1 - .../client/views/home/cards/AddUsersCard.tsx | 1 - .../views/home/cards/CreateChannelsCard.tsx | 1 - .../views/home/cards/CustomContentCard.tsx | 1 - .../views/home/cards/DesktopAppsCard.tsx | 1 - .../views/home/cards/DocumentationCard.tsx | 1 - .../client/views/home/cards/JoinRoomsCard.tsx | 1 - .../views/home/cards/MobileAppsCard.tsx | 1 - .../views/hooks/roomActions/useDeleteRoom.tsx | 1 - .../meteor/client/views/invite/InvitePage.tsx | 2 +- .../client/views/invite/SecretURLPage.tsx | 2 +- .../views/mailer/MailerUnsubscriptionPage.tsx | 2 +- .../AppDetailsPage/AppDetailsPage.tsx | 2 +- .../AppDetailsPage/AppDetailsPageHeader.tsx | 1 - .../AppDetailsPage/AppDetailsPageLoading.tsx | 1 - .../AppDetailsPage/AppDetailsPageTabs.tsx | 1 - .../tabs/AppDetails/AppDetails.tsx | 1 - .../tabs/AppDetails/AppDetailsAPIs.tsx | 2 +- .../AppDetailsPage/tabs/AppLogs/AppLogs.tsx | 1 - .../tabs/AppLogs/AppLogsItem.tsx | 1 - .../tabs/AppLogs/AppLogsItemEntry.tsx | 1 - .../tabs/AppReleases/AppReleases.tsx | 1 - .../tabs/AppReleases/AppReleasesItem.tsx | 1 - .../tabs/AppRequests/AppRequestItem.tsx | 1 - .../tabs/AppRequests/AppRequests.tsx | 2 +- .../tabs/AppRequests/AppRequestsLoading.tsx | 1 - .../tabs/AppSecurity/AppSecurity.tsx | 1 - .../tabs/AppSecurity/AppSecurityLabel.tsx | 1 - .../tabs/AppSettings/AppSetting.tsx | 2 +- .../tabs/AppSettings/AppSettings.tsx | 2 +- .../tabs/AppStatus/AppStatus.spec.tsx | 1 - .../tabs/AppStatus/AppStatus.tsx | 2 +- .../tabs/AppStatus/AppStatusPriceDisplay.tsx | 2 +- .../views/marketplace/AppExemptModal.tsx | 1 - .../views/marketplace/AppInstallPage.tsx | 2 +- .../client/views/marketplace/AppMenu.spec.tsx | 1 - .../client/views/marketplace/AppMenu.tsx | 2 +- .../marketplace/AppPermissionsReviewModal.tsx | 1 - .../views/marketplace/AppUpdateModal.tsx | 1 - .../views/marketplace/AppsList/AddonChip.tsx | 1 - .../AppsList/AddonRequiredModal.tsx | 1 - .../views/marketplace/AppsList/AppRow.tsx | 2 +- .../views/marketplace/AppsList/AppsList.tsx | 1 - .../marketplace/AppsPage/AppsFilters.tsx | 1 - .../views/marketplace/AppsPage/AppsPage.tsx | 1 - .../AppsPage/AppsPageConnectionError.tsx | 1 - .../marketplace/AppsPage/AppsPageContent.tsx | 2 +- .../AppsPage/AppsPageContentBody.tsx | 7 ++-- .../AppsPage/AppsPageContentSkeleton.tsx | 1 - .../AppsPage/FeaturedAppsSections.tsx | 1 - .../AppsPage/NoAppRequestsEmptyState.tsx | 1 - .../NoInstalledAppMatchesEmptyState.tsx | 1 - .../AppsPage/NoInstalledAppsEmptyState.tsx | 1 - ...etplaceOrInstalledAppMatchesEmptyState.tsx | 1 - .../AppsPage/PrivateEmptyState.spec.tsx | 1 - .../AppsPage/PrivateEmptyState.stories.tsx | 1 - .../AppsPage/PrivateEmptyState.tsx | 1 - .../AppsPage/PrivateEmptyStateDefault.tsx | 1 - .../AppsPage/PrivateEmptyStateUpgrade.tsx | 1 - .../AppsPage/UnsupportedEmptyState.spec.tsx | 1 - .../UnsupportedEmptyState.stories.tsx | 1 - .../AppsPage/UnsupportedEmptyState.tsx | 1 - .../client/views/marketplace/AppsRoute.tsx | 2 +- .../client/views/marketplace/BundleChips.tsx | 1 - .../client/views/marketplace/IframeModal.tsx | 2 +- .../views/marketplace/MarketplaceRouter.tsx | 2 +- .../views/marketplace/MarketplaceSidebar.tsx | 2 +- .../marketplace/UnlimitedAppsUpsellModal.tsx | 1 - .../components/AccordionLoading.tsx | 1 - .../AppInstallModal.stories.tsx | 1 - .../AppInstallModal/AppInstallModal.tsx | 1 - .../components/AppPermissionsList.tsx | 2 +- .../components/BannerEnterpriseTrialEnded.tsx | 1 - .../CategoryDropDown.stories.tsx | 2 +- .../CategoryFilter/CategoryDropDown.tsx | 6 +-- .../CategoryFilter/CategoryDropDownAnchor.tsx | 2 +- .../CategoryFilter/CategoryDropDownList.tsx | 2 +- .../components/CategoryFilter/TagList.tsx | 1 - .../components/DropDownListWrapper.tsx | 2 +- .../components/EnabledAppsCount.spec.tsx | 1 - .../components/EnabledAppsCount.tsx | 2 +- .../components/MarketplaceHeader.tsx | 1 - .../components/MarketplaceRequestBadge.tsx | 1 - .../PrivateAppInstallModal.tsx | 1 - .../components/RadioButtonList.tsx | 1 - .../RadioDropDown/RadioDownAnchor.tsx | 6 +-- .../RadioDropDown/RadioDropDown.stories.tsx | 2 +- .../RadioDropDown/RadioDropDown.tsx | 6 +-- .../components/ScreenshotCarousel.tsx | 1 - .../components/ScreenshotCarouselAnchor.tsx | 2 +- ...UninstallGrandfatheredAppModal.stories.tsx | 1 - .../UninstallGrandfatheredAppModal.tsx | 1 - .../components/UpdateRocketChatButton.tsx | 1 - .../definitions/RadioDropDownDefinitions.ts | 6 ++- .../marketplace/helpers/isValidReference.tsx | 4 +- .../hooks/useAppInstallationHandler.tsx | 2 +- .../views/marketplace/hooks/useAppMenu.tsx | 4 +- .../views/marketplace/hooks/useInstallApp.tsx | 2 +- .../useOpenAppPermissionsReviewModal.tsx | 2 +- .../hooks/useOpenIncompatibleModal.tsx | 2 +- .../client/views/marketplace/sidebarItems.tsx | 2 - apps/meteor/client/views/meet/CallPage.tsx | 2 +- apps/meteor/client/views/meet/MeetPage.tsx | 2 +- apps/meteor/client/views/meet/MeetRoute.tsx | 1 - .../client/views/meet/OngoingCallDuration.tsx | 2 +- .../meteor/client/views/modal/ModalRegion.tsx | 2 +- .../client/views/modal/uikit/ModalBlock.tsx | 16 ++++---- .../client/views/modal/uikit/UiKitModal.tsx | 1 - .../NotAuthorizedPage.stories.tsx | 1 - .../views/notAuthorized/NotAuthorizedPage.tsx | 1 - .../views/notFound/NotFoundPage.spec.tsx | 1 - .../views/notFound/NotFoundPage.stories.tsx | 2 - .../client/views/notFound/NotFoundPage.tsx | 1 - .../views/oauth/OAuthAuthorizationPage.tsx | 1 - .../client/views/oauth/OAuthErrorPage.tsx | 1 - .../components/AuthorizationFormPage.tsx | 2 +- .../oauth/components/CurrentUserDisplay.tsx | 2 +- .../views/oauth/components/ErrorPage.tsx | 1 - .../client/views/oauth/components/Layout.tsx | 1 - .../omnichannel/ExternalFrameContainer.tsx | 2 +- .../views/omnichannel/OmnichannelRouter.tsx | 2 +- .../views/omnichannel/agents/AgentEdit.tsx | 2 +- .../omnichannel/agents/AgentEditWithData.tsx | 1 - .../views/omnichannel/agents/AgentInfo.tsx | 1 - .../omnichannel/agents/AgentInfoAction.tsx | 1 - .../views/omnichannel/agents/AgentsPage.tsx | 1 - .../agents/AgentsTable/AddAgent.tsx | 2 +- .../agents/AgentsTable/AgentsTable.tsx | 2 +- .../agents/AgentsTable/AgentsTableRow.tsx | 1 - .../agents/hooks/useRemoveAgent.tsx | 1 - .../omnichannel/analytics/AgentOverview.tsx | 2 +- .../analytics/AnalyticsPage.stories.tsx | 1 - .../omnichannel/analytics/AnalyticsPage.tsx | 2 +- .../analytics/DateRangePicker.stories.tsx | 1 - .../omnichannel/analytics/DateRangePicker.tsx | 2 +- .../analytics/InterchangeableChart.tsx | 2 +- .../views/omnichannel/analytics/Overview.tsx | 2 +- .../appearance/AppearanceFieldLabel.tsx | 1 - .../appearance/AppearanceForm.stories.tsx | 1 - .../omnichannel/appearance/AppearanceForm.tsx | 1 - .../omnichannel/appearance/AppearancePage.tsx | 1 - .../appearance/AppearancePageContainer.tsx | 1 - .../BusinessHoursDisabledPage.tsx | 1 - .../BusinessHoursForm.stories.tsx | 1 - .../businessHours/BusinessHoursForm.tsx | 2 +- .../BusinessHoursMultiplePage.tsx | 2 +- .../businessHours/BusinessHoursRouter.tsx | 2 +- .../businessHours/EditBusinessHours.tsx | 1 - .../EditBusinessHoursWithData.tsx | 1 - .../components/AgentInfoDetails.tsx | 1 - .../omnichannel/components/CustomField.tsx | 1 - .../views/omnichannel/components/Field.tsx | 1 - .../views/omnichannel/components/Info.tsx | 1 - .../views/omnichannel/components/Label.tsx | 1 - .../components/OmnichannelVerificationTag.tsx | 1 - .../MessageList/ContactHistoryMessage.tsx | 2 +- .../ContactHistoryMessagesList.tsx | 2 +- .../contactInfo/AdvancedContactModal.tsx | 2 +- .../contactInfo/ContactInfo/ContactInfo.tsx | 1 - .../ContactInfo/ContactInfoWithData.tsx | 1 - .../ContactInfo/ReviewContactModal.tsx | 2 +- .../contactInfo/ContactInfoError.tsx | 1 - .../contactInfo/ContactInfoRouter.tsx | 1 - .../contactInfo/EditContactInfo.tsx | 2 +- .../contactInfo/EditContactInfoWithData.tsx | 1 - .../ContactInfoChannels/BlockChannelModal.tsx | 1 - .../ContactInfoChannels.tsx | 1 - .../ContactInfoChannelsItem.tsx | 2 +- .../ContactInfoChannels/useBlockChannel.tsx | 2 +- .../ContactInfoCallButton.tsx | 2 - .../ContactInfoDetails/ContactInfoDetails.tsx | 1 - .../ContactInfoDetailsEntry.tsx | 1 - .../ContactInfoDetailsGroup.tsx | 1 - .../ContactInfoDetails/ContactManagerInfo.tsx | 1 - .../ContactInfoHistory/ContactInfoHistory.tsx | 2 +- .../ContactInfoHistoryItem.tsx | 1 - .../ContactInfoHistoryMessages.tsx | 2 +- .../ContactInfoHistoryRouter.tsx | 2 +- .../currentChats/CurrentChatsPage.tsx | 7 ++-- .../currentChats/CurrentChatsRoute.tsx | 2 +- .../currentChats/CustomFieldsList.tsx | 2 +- .../omnichannel/currentChats/FilterByText.tsx | 2 +- .../views/omnichannel/currentChats/Label.tsx | 1 - .../currentChats/RemoveAllClosed.tsx | 1 - .../currentChats/RemoveChatButton.tsx | 1 - .../customFields/CustomFieldsForm.stories.tsx | 1 - .../customFields/CustomFieldsPage.tsx | 1 - .../customFields/CustomFieldsRoute.tsx | 1 - .../customFields/CustomFieldsTable.tsx | 2 +- .../customFields/EditCustomFields.tsx | 2 +- .../customFields/EditCustomFieldsWithData.tsx | 1 - .../customFields/useRemoveCustomField.tsx | 1 - .../DepartmentAgentsTable/AddAgent.tsx | 2 +- .../DepartmentAgentsTable/AgentAvatar.tsx | 2 +- .../DepartmentAgentsTable/AgentRow.tsx | 2 +- .../DepartmentAgentsTable.tsx | 2 +- .../RemoveAgentButton.tsx | 1 - .../departments/DepartmentTags.tsx | 2 +- .../departments/DepartmentsPage.tsx | 1 - .../departments/DepartmentsRoute.tsx | 1 - .../DepartmentsTable/DepartmentItemMenu.tsx | 2 +- .../DepartmentsTable/DepartmentsTable.tsx | 2 +- .../RemoveDepartmentModal.tsx | 2 +- .../departments/EditDepartment.tsx | 2 +- .../EditDepartmentWithAllowedForwardData.tsx | 1 - .../departments/EditDepartmentWithData.tsx | 1 - .../omnichannel/departments/NewDepartment.tsx | 1 - .../directory/CallsContextualBarDirectory.tsx | 2 +- .../directory/ChatsContextualBar.tsx | 1 - .../directory/ContactContextualBar.tsx | 1 - .../directory/ContextualBarRouter.tsx | 1 - .../directory/OmnichannelDirectoryPage.tsx | 4 +- .../directory/OmnichannelDirectoryRouter.tsx | 1 - .../omnichannel/directory/calls/Call.tsx | 1 - .../omnichannel/directory/calls/CallTab.tsx | 1 - .../omnichannel/directory/calls/CallTable.tsx | 2 +- .../directory/calls/CallTableRow.tsx | 2 +- .../contextualBar/CallsContextualBarRoom.tsx | 2 - .../calls/contextualBar/InfoField.tsx | 1 - .../calls/contextualBar/VoipInfo.tsx | 2 +- .../contextualBar/VoipInfoCallButton.tsx | 1 - .../omnichannel/directory/chats/Chat.tsx | 1 - .../directory/chats/ChatInfo/ChatInfo.tsx | 2 +- .../chats/ChatInfo/ChatInfoRouter.tsx | 2 +- .../chats/ChatInfo/DepartmentField.tsx | 1 - .../chats/ChatInfo/RoomEdit/RoomEdit.tsx | 2 +- .../ChatInfo/RoomEdit/RoomEditWithData.tsx | 1 - .../chats/ChatInfo/VisitorClientInfo.tsx | 2 +- .../chats/ChatsFiltersContextualBar.tsx | 1 - .../omnichannel/directory/chats/ChatsTab.tsx | 1 - .../directory/chats/ChatsTable/ChatsTable.tsx | 2 +- .../chats/ChatsTable/ChatsTableFilter.tsx | 1 - .../chats/ChatsTable/ChatsTableRow.tsx | 1 - .../chats/ChatsTable/useChatsQuery.ts | 19 ++++----- .../directory/components/AgentField.tsx | 1 - .../components/CallDialpadButton.tsx | 1 - .../directory/components/ContactField.tsx | 1 - .../directory/components/FormSkeleton.tsx | 1 - .../directory/components/PriorityField.tsx | 1 - .../directory/components/SlaField.tsx | 1 - .../directory/components/SourceField.tsx | 1 - .../directory/contacts/ContactTab.tsx | 1 - .../directory/contacts/ContactTable.tsx | 2 +- .../directory/contacts/ContactTableRow.tsx | 1 - .../directory/providers/ChatsProvider.tsx | 2 +- .../installation/Installation.stories.tsx | 1 - .../omnichannel/installation/Installation.tsx | 1 - .../omnichannel/installation/Wrapper.tsx | 1 - .../views/omnichannel/managers/AddManager.tsx | 2 +- .../omnichannel/managers/ManagersRoute.tsx | 1 - .../omnichannel/managers/ManagersTable.tsx | 2 +- .../managers/RemoveManagerButton.tsx | 1 - .../omnichannel/queueList/QueueListFilter.tsx | 2 +- .../omnichannel/queueList/QueueListPage.tsx | 1 - .../omnichannel/queueList/QueueListTable.tsx | 2 +- .../RealTimeMonitoringPage.tsx | 2 +- .../charts/AgentStatusChart.tsx | 2 +- .../realTimeMonitoring/charts/Chart.tsx | 1 - .../charts/ChatDurationChart.tsx | 2 +- .../realTimeMonitoring/charts/ChatsChart.tsx | 2 +- .../charts/ChatsPerAgentChart.tsx | 2 +- .../charts/ChatsPerDepartmentChart.tsx | 2 +- .../charts/ResponseTimesChart.tsx | 2 +- .../counter/CounterContainer.stories.tsx | 1 - .../counter/CounterContainer.tsx | 2 +- .../counter/CounterItem.tsx | 1 - .../realTimeMonitoring/counter/CounterRow.tsx | 2 +- .../overviews/AgentsOverview.tsx | 1 - .../overviews/ChatsOverview.tsx | 1 - .../overviews/ConversationOverview.tsx | 1 - .../overviews/ProductivityOverview.tsx | 1 - .../sidebar/OmnichannelSidebar.tsx | 2 +- .../omnichannel/triggers/ConditionForm.tsx | 2 +- .../omnichannel/triggers/EditTrigger.tsx | 2 +- .../triggers/EditTriggerWithData.tsx | 1 - .../triggers/TriggersForm.stories.tsx | 1 - .../omnichannel/triggers/TriggersPage.tsx | 1 - .../omnichannel/triggers/TriggersRoute.tsx | 1 - .../omnichannel/triggers/TriggersRow.tsx | 2 +- .../omnichannel/triggers/TriggersTable.tsx | 2 +- .../actions/ActionExternalServiceUrl.tsx | 2 +- .../triggers/actions/ActionForm.tsx | 2 +- .../triggers/actions/ActionSender.tsx | 2 +- .../actions/ExternalServiceActionForm.tsx | 1 - .../actions/SendMessageActionForm.tsx | 1 - .../omnichannel/webhooks/WebhooksPage.tsx | 2 +- .../webhooks/WebhooksPageContainer.tsx | 1 - .../OutlookCalendarEventModal.tsx | 1 - .../OutlookEventsList/OutlookEventItem.tsx | 1 - .../OutlookEventItemContent.tsx | 1 - .../OutlookEventsList/OutlookEventsList.tsx | 1 - .../outlookCalendar/OutlookEventsRoute.tsx | 2 +- .../OutlookSettingItem.tsx | 1 - .../OutlookSettingsList.tsx | 2 +- .../Announcement/Announcement.stories.tsx | 1 - .../views/room/Announcement/Announcement.tsx | 1 - .../Announcement/AnnouncementComponent.tsx | 1 - .../views/room/BubbleDate/BubbleDate.tsx | 2 +- .../room/E2EESetup/RoomE2EENotAllowed.tsx | 1 - .../views/room/E2EESetup/RoomE2EESetup.tsx | 2 +- .../views/room/Header/DirectRoomHeader.tsx | 1 - .../room/Header/FederatedRoomOriginServer.tsx | 2 +- .../client/views/room/Header/Header.tsx | 2 +- .../views/room/Header/HeaderIconWithRoom.tsx | 1 - .../views/room/Header/HeaderSkeleton.tsx | 1 - .../room/Header/Omnichannel/BackButton.tsx | 1 - .../Omnichannel/OmnichannelRoomHeader.tsx | 2 +- .../Omnichannel/OmnichannelRoomHeaderTag.tsx | 1 - .../QuickActions/QuickActionOptions.tsx | 2 +- .../Omnichannel/QuickActions/QuickActions.tsx | 2 +- .../QuickActions/hooks/useQuickActions.tsx | 2 +- .../Header/Omnichannel/VoipRoomHeader.tsx | 2 +- .../client/views/room/Header/ParentRoom.tsx | 1 - .../views/room/Header/ParentRoomWithData.tsx | 1 - .../Header/ParentRoomWithEndpointData.tsx | 1 - .../client/views/room/Header/ParentTeam.tsx | 1 - .../client/views/room/Header/RoomHeader.tsx | 2 +- .../views/room/Header/RoomHeaderE2EESetup.tsx | 2 +- .../client/views/room/Header/RoomTitle.tsx | 1 - .../room/Header/RoomToolbox/RoomToolbox.tsx | 2 +- .../RoomToolbox/RoomToolboxE2EESetup.tsx | 1 - .../views/room/Header/icons/Encrypted.tsx | 2 +- .../views/room/Header/icons/Favorite.tsx | 2 +- .../views/room/Header/icons/Translate.tsx | 2 +- .../HeaderV2/FederatedRoomOriginServer.tsx | 2 +- .../client/views/room/HeaderV2/Header.tsx | 2 +- .../room/HeaderV2/HeaderIconWithRoom.tsx | 1 - .../views/room/HeaderV2/HeaderSkeleton.tsx | 1 - .../room/HeaderV2/Omnichannel/BackButton.tsx | 1 - .../Omnichannel/OmnichannelRoomHeader.tsx | 2 +- .../Omnichannel/OmnichannelRoomHeaderTag.tsx | 1 - .../QuickActions/QuickActionOptions.tsx | 2 +- .../Omnichannel/QuickActions/QuickActions.tsx | 2 +- .../QuickActions/hooks/useQuickActions.tsx | 2 +- .../HeaderV2/Omnichannel/VoipRoomHeader.tsx | 2 +- .../client/views/room/HeaderV2/ParentRoom.tsx | 1 - .../room/HeaderV2/ParentRoomWithData.tsx | 1 - .../HeaderV2/ParentRoomWithEndpointData.tsx | 1 - .../client/views/room/HeaderV2/ParentTeam.tsx | 1 - .../client/views/room/HeaderV2/RoomHeader.tsx | 2 +- .../room/HeaderV2/RoomHeaderE2EESetup.tsx | 2 +- .../client/views/room/HeaderV2/RoomLeader.tsx | 2 +- .../client/views/room/HeaderV2/RoomTitle.tsx | 1 - .../room/HeaderV2/RoomToolbox/RoomToolbox.tsx | 2 +- .../RoomToolbox/RoomToolboxE2EESetup.tsx | 1 - .../views/room/HeaderV2/icons/Encrypted.tsx | 2 +- .../views/room/HeaderV2/icons/Favorite.tsx | 2 +- .../views/room/HeaderV2/icons/Translate.tsx | 2 +- .../room/ImageGallery/ImageGalleryData.tsx | 2 +- .../client/views/room/MemberListRouter.tsx | 1 - .../views/room/MessageList/MessageList.tsx | 2 +- .../MessageList/MessageListErrorBoundary.tsx | 1 - .../room/MessageList/MessageListItem.tsx | 1 - .../providers/MessageHighlightProvider.tsx | 2 +- .../providers/MessageListProvider.tsx | 6 +-- apps/meteor/client/views/room/Room.tsx | 2 +- .../AnnouncementComponent.tsx | 1 - .../RoomAnnouncement.stories.tsx | 1 - .../RoomAnnouncement/RoomAnnouncement.tsx | 1 - .../meteor/client/views/room/RoomNotFound.tsx | 1 - apps/meteor/client/views/room/RoomOpener.tsx | 2 +- .../client/views/room/RoomOpenerEmbedded.tsx | 2 +- apps/meteor/client/views/room/RoomRoute.tsx | 2 +- .../meteor/client/views/room/RoomSkeleton.tsx | 1 - .../room/ShareLocation/ShareLocationModal.tsx | 1 - .../views/room/Sidepanel/RoomSidepanel.tsx | 2 +- .../Sidepanel/RoomSidepanelListWrapper.tsx | 2 +- .../room/Sidepanel/RoomSidepanelLoading.tsx | 1 - .../SidepanelItem/RoomSidepanelItem.tsx | 2 +- .../room/Sidepanel/hooks/useItemData.tsx | 2 +- .../views/room/UserCard/UserCardWithData.tsx | 2 +- .../views/room/body/DropTargetOverlay.tsx | 2 +- .../body/ErroredUploadProgressIndicator.tsx | 2 +- .../room/body/JumpToRecentMessageButton.tsx | 2 +- .../client/views/room/body/LeaderBar.tsx | 2 +- .../room/body/LoadingMessagesIndicator.tsx | 1 - .../room/body/RetentionPolicyWarning.spec.tsx | 1 - .../room/body/RetentionPolicyWarning.tsx | 1 - .../client/views/room/body/RoomBody.tsx | 8 ++-- .../client/views/room/body/RoomBodyV2.tsx | 8 ++-- .../room/body/RoomForeword/RoomForeword.tsx | 1 - .../RoomForeword/RoomForewordUsernameList.tsx | 1 - .../RoomForewordUsernameListItem.tsx | 1 - .../client/views/room/body/RoomTopic.tsx | 1 - .../room/body/UnreadMessagesIndicator.tsx | 1 - .../room/body/UploadProgressIndicator.tsx | 2 +- .../views/room/body/hooks/useDropTarget.ts | 3 +- .../body/hooks/useFileUploadDropTarget.ts | 5 +-- .../room/body/hooks/useListIsAtBottom.ts | 5 ++- .../room/body/hooks/useUnreadMessages.ts | 4 +- .../composer/ComposerAirGappedRestricted.tsx | 1 - .../views/room/composer/ComposerAnonymous.tsx | 1 - .../views/room/composer/ComposerArchived.tsx | 1 - .../views/room/composer/ComposerBlocked.tsx | 1 - .../views/room/composer/ComposerBoxPopup.tsx | 2 +- .../ComposerBoxPopupCannedResponse.tsx | 1 - .../room/composer/ComposerBoxPopupEmoji.tsx | 1 - .../room/composer/ComposerBoxPopupPreview.tsx | 2 +- .../room/composer/ComposerBoxPopupRoom.tsx | 1 - .../composer/ComposerBoxPopupSlashCommand.tsx | 1 - .../room/composer/ComposerBoxPopupUser.tsx | 1 - .../views/room/composer/ComposerContainer.tsx | 2 +- .../ComposerFederation/ComposerFederation.tsx | 1 - .../ComposerFederationDisabled.tsx | 1 - .../ComposerFederationJoinRoomDisabled.tsx | 1 - .../composer/ComposerJoinWithPassword.tsx | 1 - .../views/room/composer/ComposerMessage.tsx | 2 +- .../ComposerOmnichannel.tsx | 1 - .../ComposerOmnichannelCallout.tsx | 1 - .../ComposerOmnichannelInquiry.tsx | 2 +- .../ComposerOmnichannelJoin.tsx | 1 - .../ComposerOmnichannelOnHold.tsx | 1 - .../views/room/composer/ComposerReadOnly.tsx | 1 - .../room/composer/ComposerSelectMessages.tsx | 1 - .../views/room/composer/ComposerSkeleton.tsx | 1 - .../ComposerUserActionIndicator.tsx | 2 +- .../views/room/composer/ComposerVoIP.tsx | 1 - .../composer/RoomComposer/RoomComposer.tsx | 1 - .../RoomComposer/RoomComposerSkeleton.tsx | 2 +- .../room/composer/messageBox/MessageBox.tsx | 2 +- .../MessageBoxActionsToolbar.tsx | 2 +- .../hooks/useCreateDiscussionAction.tsx | 1 - .../hooks/useShareLocationAction.tsx | 1 - .../hooks/useWebdavActions.tsx | 1 - .../FormattingToolbarDropdown.tsx | 1 - .../MessageBoxFormattingToolbar.tsx | 2 +- .../messageBox/MessageBoxHint.spec.tsx | 1 - .../composer/messageBox/MessageBoxHint.tsx | 2 +- .../composer/messageBox/MessageBoxReplies.tsx | 2 +- .../views/room/contexts/UserCardContext.ts | 2 +- .../AutoTranslate/AutoTranslate.stories.tsx | 1 - .../AutoTranslate/AutoTranslate.tsx | 1 - .../AutoTranslate/AutoTranslateWithData.tsx | 2 +- .../Discussions/DiscussionsList.tsx | 10 ++--- .../Discussions/DiscussionsListContextBar.tsx | 6 +-- .../Discussions/DiscussionsListRow.tsx | 4 +- .../DiscussionsListItem.stories.tsx | 2 - .../components/DiscussionsListItem.tsx | 2 +- .../ExportMessages/ExportMessages.stories.tsx | 1 - .../ExportMessages/ExportMessages.tsx | 2 +- .../ChannelToTeamConfirmation.tsx | 1 - .../ChannelToTeamModal/ChannelToTeamModal.tsx | 2 +- .../ChannelToTeamSelection.tsx | 1 - .../Info/EditRoomInfo/EditRoomInfo.tsx | 2 +- .../EditRoomInfo/EditRoomInfoWithData.tsx | 1 - .../Info/RoomInfo/RoomInfo.stories.tsx | 1 - .../contextualBar/Info/RoomInfo/RoomInfo.tsx | 1 - .../Info/RoomInfo/RoomInfoActions.tsx | 1 - .../contextualBar/Info/RoomInfoRouter.tsx | 2 +- .../hooks/actions/useRoomConvertToTeam.tsx | 1 - .../Info/hooks/actions/useRoomLeave.tsx | 1 - .../Info/hooks/actions/useRoomMoveToTeam.tsx | 1 - .../KeyboardShortcutSection.tsx | 1 - .../KeyboardShortcuts.stories.tsx | 1 - .../KeyboardShortcuts/KeyboardShortcuts.tsx | 2 +- .../KeyboardShortcutsWithData.tsx | 1 - .../views/room/contextualBar/MentionsTab.tsx | 1 - .../room/contextualBar/MessageListTab.tsx | 2 +- .../MessageSearchTab/MessageSearchTab.tsx | 2 +- .../components/MessageSearch.tsx | 2 +- .../components/MessageSearchForm.tsx | 2 +- .../NotificationPreferences.stories.tsx | 1 - .../NotificationPreferences.tsx | 1 - .../NotificationPreferencesForm.tsx | 1 - .../NotificationPreferencesWithData.tsx | 2 +- .../components/NotificationByDevice.tsx | 2 +- .../components/NotificationPreference.tsx | 1 - .../components/NotificationToggle.tsx | 2 +- .../room/contextualBar/OTR/OTR.stories.tsx | 1 - .../views/room/contextualBar/OTR/OTR.tsx | 1 - .../room/contextualBar/OTR/OTRWithData.tsx | 2 +- .../OTR/components/OTREstablished.tsx | 1 - .../OTR/components/OTRStates.tsx | 1 - .../room/contextualBar/PinnedMessagesTab.tsx | 1 - .../PruneMessages/PruneMessages.stories.tsx | 1 - .../PruneMessages/PruneMessages.tsx | 1 - .../PruneMessagesDateTimeRow.tsx | 1 - .../PruneMessages/PruneMessagesWithData.tsx | 2 +- .../RoomFiles/RoomFiles.stories.tsx | 1 - .../contextualBar/RoomFiles/RoomFiles.tsx | 6 +-- .../RoomFiles/RoomFilesWithData.tsx | 5 ++- .../RoomFiles/components/FileItem.stories.tsx | 1 - .../RoomFiles/components/FileItem.tsx | 1 - .../components/FileItemIcon.stories.tsx | 1 - .../RoomFiles/components/FileItemIcon.tsx | 2 +- .../RoomFiles/components/FileItemMenu.tsx | 2 +- .../RoomFiles/components/ImageItem.tsx | 1 - .../RoomFiles/hooks/useDeleteFile.tsx | 1 - .../AddMatrixUsers/AddMatrixUsersModal.tsx | 1 - .../AddMatrixUsers/useAddMatrixUsers.tsx | 1 - .../RoomMembers/AddUsers/AddUsers.stories.tsx | 1 - .../RoomMembers/AddUsers/AddUsers.tsx | 1 - .../InviteUsers/EditInviteLink.tsx | 2 +- .../RoomMembers/InviteUsers/InviteLink.tsx | 1 - .../InviteUsers/InviteUsers.stories.tsx | 1 - .../RoomMembers/InviteUsers/InviteUsers.tsx | 1 - .../InviteUsers/InviteUsersWithData.tsx | 2 +- .../RoomMembers/RoomMembers.stories.tsx | 1 - .../contextualBar/RoomMembers/RoomMembers.tsx | 2 +- .../RoomMembers/RoomMembersActions.tsx | 1 - .../RoomMembers/RoomMembersItem.tsx | 2 +- .../RoomMembers/RoomMembersRow.tsx | 2 +- .../RoomMembers/RoomMembersWithData.tsx | 6 +-- .../room/contextualBar/StarredMessagesTab.tsx | 1 - .../room/contextualBar/Threads/Thread.tsx | 1 - .../room/contextualBar/Threads/ThreadList.tsx | 2 +- .../room/contextualBar/Threads/Threads.tsx | 2 - .../Threads/components/ThreadChat.tsx | 2 +- .../Threads/components/ThreadListItem.tsx | 2 +- .../Threads/components/ThreadListMessage.tsx | 2 +- .../Threads/components/ThreadListMetrics.tsx | 1 - .../Threads/components/ThreadMessageItem.tsx | 1 - .../Threads/components/ThreadMessageList.tsx | 2 +- .../Threads/components/ThreadSkeleton.tsx | 1 - .../Threads/components/ThreadTitle.tsx | 2 +- .../UserInfo/ReportUserModal.tsx | 1 - .../UserInfo/UserInfoActions.tsx | 2 +- .../UserInfo/UserInfoWithData.tsx | 2 +- .../VideoConference/VideoConfBlockModal.tsx | 2 +- .../VideoConference/VideoConfConfigModal.tsx | 1 - .../VideoConfList/VideoConfList.tsx | 1 - .../VideoConfList/VideoConfListItem.tsx | 1 - .../VideoConfList/VideoConfListWithData.tsx | 2 +- .../VideoConfPopup/IncomingPopup.tsx | 2 +- .../VideoConfPopup/OutgoingPopup.tsx | 1 - .../VideoConfPopup/StartCallPopup.tsx | 8 ++-- .../VideoConfPopup/TimedVideoConfPopup.tsx | 2 +- .../VideoConfPopup/VideoConfPopupRoomInfo.tsx | 1 - .../VideoConfPopups/VideoConfPopups.tsx | 2 +- .../hooks/useVideoConfOpenCall.tsx | 2 +- .../hooks/useVideoConfWarning.tsx | 2 +- .../uikit/UiKitContextualBar.tsx | 2 +- .../client/views/room/hooks/useDateScroll.ts | 6 +-- .../hooks/useToggleFavoriteMutation.spec.tsx | 1 - .../actions/useChangeModeratorAction.tsx | 6 +-- .../actions/useChangeOwnerAction.tsx | 2 +- .../actions/useMuteUserAction.tsx | 2 +- .../actions/useRemoveUserAction.tsx | 2 +- .../actions/useReportUser.tsx | 2 +- .../client/views/room/layout/RoomLayout.tsx | 2 +- .../E2EEModals/BaseDisableE2EEModal.tsx | 2 +- .../modals/E2EEModals/DisableE2EEModal.tsx | 1 - .../modals/E2EEModals/EnableE2EEModal.tsx | 1 - .../modals/E2EEModals/ResetKeysE2EEModal.tsx | 1 - .../modals/FileUploadModal/FilePreview.tsx | 1 - .../FileUploadModal/FileUploadModal.spec.tsx | 1 - .../FileUploadModal.stories.tsx | 1 - .../FileUploadModal/FileUploadModal.tsx | 2 +- .../modals/FileUploadModal/GenericPreview.tsx | 1 - .../modals/FileUploadModal/ImagePreview.tsx | 2 +- .../modals/FileUploadModal/MediaPreview.tsx | 2 +- .../FileUploadModal/PreviewSkeleton.tsx | 1 - .../ForwardMessageModal.tsx | 2 +- .../PinMessageModal/PinMessageModal.tsx | 1 - .../ReactionListModal/ReactionListModal.tsx | 1 - .../ReactionListModal/ReactionUserTag.tsx | 1 - .../modals/ReactionListModal/Reactions.tsx | 1 - .../ReadReceiptsModal/ReadReceiptRow.tsx | 1 - .../ReadReceiptsModal/ReadReceiptsModal.tsx | 2 +- .../ReportMessageModal/ReportMessageModal.tsx | 1 - .../views/room/providers/ChatProvider.tsx | 1 - .../room/providers/ComposerPopupProvider.tsx | 2 +- .../views/room/providers/DateListProvider.tsx | 5 ++- .../views/room/providers/RoomProvider.tsx | 2 +- .../room/providers/RoomToolboxProvider.tsx | 2 +- .../providers/SelectedMessagesProvider.tsx | 2 +- .../views/room/providers/UserCardProvider.tsx | 10 ++--- .../room/webdav/AddWebdavAccountModal.tsx | 2 +- .../views/room/webdav/SaveToWebdavModal.tsx | 2 +- .../FilePickerBreadcrumbs.tsx | 1 - .../WebdavFilePickerGrid.tsx | 1 - .../WebdavFilePickerGridItem.tsx | 1 - .../WebdavFilePickerModal.tsx | 2 +- .../WebdavFilePickerTable.tsx | 1 - .../meteor/client/views/root/AppErrorPage.tsx | 1 - apps/meteor/client/views/root/AppLayout.tsx | 2 +- apps/meteor/client/views/root/AppRoot.tsx | 2 +- .../views/root/DocumentTitleWrapper.tsx | 2 +- apps/meteor/client/views/root/IndexRoute.tsx | 2 +- .../root/MainLayout/AccessibilityShortcut.tsx | 1 - .../root/MainLayout/AuthenticationCheck.tsx | 1 - .../views/root/MainLayout/EmbeddedPreload.tsx | 2 +- .../root/MainLayout/LayoutWithSidebar.tsx | 2 +- .../root/MainLayout/LayoutWithSidebarV2.tsx | 2 +- .../views/root/MainLayout/LoginPage.tsx | 1 - .../views/root/MainLayout/MainLayout.tsx | 2 +- .../MainLayout/MainLayoutStyleTags.spec.tsx | 1 - .../root/MainLayout/MainLayoutStyleTags.tsx | 1 - .../root/MainLayout/PasswordChangeCheck.tsx | 2 +- .../client/views/root/MainLayout/Preload.tsx | 2 +- .../root/MainLayout/RegisterUsername.tsx | 2 +- .../MainLayout/TwoFactorAuthSetupCheck.tsx | 2 +- .../views/root/MainLayout/UsernameCheck.tsx | 2 +- .../views/root/OutermostErrorBoundary.tsx | 2 +- apps/meteor/client/views/root/PageLoading.tsx | 2 - .../client/views/root/SAMLLoginRoute.spec.tsx | 1 - .../views/setupWizard/SetupWizardPage.tsx | 1 - .../views/setupWizard/SetupWizardRoute.tsx | 1 - .../providers/SetupWizardProvider.tsx | 4 +- .../views/setupWizard/steps/AdminInfoStep.tsx | 1 - .../steps/CloudAccountConfirmation.tsx | 2 +- .../steps/OrganizationInfoStep.tsx | 1 - .../setupWizard/steps/RegisterServerStep.tsx | 2 +- .../ChannelDesertionTable.tsx | 2 +- .../ChannelDesertionTableRow.tsx | 1 - .../TeamAutocomplete/TeamAutocomplete.tsx | 2 +- .../AddExistingModal/AddExistingModal.tsx | 2 +- .../RoomsAvailableForTeamsAutoComplete.tsx | 2 +- .../channels/TeamsChannelItem.tsx | 2 +- .../channels/TeamsChannelItemMenu.tsx | 1 - .../contextualBar/channels/TeamsChannels.tsx | 2 +- .../channels/TeamsChannelsWithData.tsx | 5 ++- .../channels/hooks/useRemoveRoomFromTeam.tsx | 1 - .../BaseConvertToChannelModal.tsx | 4 +- .../ConvertToChannelModal.tsx | 2 +- .../ModalSteps/FirstStep.tsx | 1 - .../ModalSteps/SecondStep.tsx | 1 - .../ChannelDeletionTable.tsx | 1 - .../ChannelDeletionTableRow.tsx | 1 - .../info/DeleteTeam/DeleteTeamChannels.tsx | 1 - .../DeleteTeam/DeleteTeamConfirmation.tsx | 1 - .../DeleteTeam/DeleteTeamModal.stories.tsx | 1 - .../info/DeleteTeam/DeleteTeamModal.tsx | 2 +- .../DeleteTeam/DeleteTeamModalWithRooms.tsx | 2 +- .../info/DeleteTeam/RoomLinkList.tsx | 2 +- .../LeaveTeamModal/LeaveTeamModal.stories.tsx | 1 - .../LeaveTeamModal/LeaveTeamModal.tsx | 4 +- .../LeaveTeamModal/LeaveTeamModalChannels.tsx | 1 - .../LeaveTeamModalConfirmation.tsx | 1 - .../info/LeaveTeam/LeaveTeamWithData.tsx | 1 - .../contextualBar/info/TeamsInfo.stories.tsx | 1 - .../teams/contextualBar/info/TeamsInfo.tsx | 1 - .../contextualBar/info/TeamsInfoWithData.tsx | 2 +- .../info/useConvertToChannel.tsx | 1 - .../teams/contextualBar/info/useLeaveTeam.tsx | 1 - .../RemoveUsersModal/BaseRemoveUsersModal.tsx | 4 +- .../RemoveUsersModal/RemoveUsersFirstStep.tsx | 1 - .../RemoveUsersModal/RemoveUsersModal.tsx | 2 +- .../RemoveUsersSecondStep.tsx | 1 - .../components/modals/WrapUpCallModal.tsx | 2 +- .../client/voip/modal/DialPad/DialInput.tsx | 2 +- .../modal/DialPad/DialPadModal.stories.tsx | 1 - .../voip/modal/DialPad/DialPadModal.tsx | 1 - apps/meteor/client/voip/modal/DialPad/Pad.tsx | 1 - .../client/voip/modal/DialPad/PadButton.tsx | 1 - .../voip/modal/DialPad/hooks/useDialPad.ts | 2 +- .../voip/modals/DeviceSettingsModal.tsx | 2 +- .../tests/mocks/client/FakeChatProvider.tsx | 1 - .../tests/mocks/client/FakeRoomProvider.tsx | 2 +- .../tests/mocks/client/ModalContextMock.tsx | 2 +- .../tests/mocks/client/RouterContextMock.tsx | 2 +- .../tests/mocks/client/ServerProviderMock.tsx | 2 +- .../meteor/tests/mocks/client/marketplace.tsx | 1 - apps/meteor/tsconfig.json | 2 +- .../Components/Draggable/DraggableList.tsx | 4 +- .../Components/ScreenThumbnail/Thumbnail.tsx | 8 ++-- apps/uikit-playground/src/main.tsx | 8 ++-- apps/uikit-playground/src/module.d.ts | 4 +- ee/packages/ui-theming/tsconfig.json | 1 - .../src/contexts/UiKitContext.ts | 5 ++- .../src/MockedAppRootBuilder.tsx | 2 +- .../src/MockedAuthorizationContext.tsx | 4 +- .../src/MockedDeviceContext.tsx | 4 +- .../mock-providers/src/MockedModalContext.tsx | 4 +- .../src/MockedRouterContext.tsx | 11 +---- .../src/MockedServerContext.tsx | 7 ++-- .../src/MockedSettingsContext.tsx | 11 +---- .../mock-providers/src/MockedUserContext.tsx | 11 +---- packages/mock-providers/tsconfig.json | 1 - .../ui-client/src/hooks/useDocumentTitle.ts | 4 +- .../src/MessageComposer/MessageComposer.tsx | 4 +- .../MessageFooterCallout.tsx | 4 +- .../src/hooks/useRolesDescription.ts | 6 +-- .../src/hooks/useSessionDispatch.ts | 4 +- 1723 files changed, 1067 insertions(+), 2026 deletions(-) diff --git a/.vscode/client.code-snippets b/.vscode/client.code-snippets index 28fb9709b8ce..8629bffa6a2a 100644 --- a/.vscode/client.code-snippets +++ b/.vscode/client.code-snippets @@ -4,7 +4,6 @@ "prefix": "sbmodule", "body": [ "import type { Meta, StoryFn } from '@storybook/react';", - "import React from 'react';", "", "import $1 from './$1';", "", diff --git a/apps/meteor/.babelrc b/apps/meteor/.babelrc index c991fa3bbf99..d57e624148cc 100644 --- a/apps/meteor/.babelrc +++ b/apps/meteor/.babelrc @@ -9,6 +9,14 @@ } ] ], + "plugins": [ + [ + "@babel/plugin-transform-react-jsx", + { + "runtime": "automatic" + } + ] + ], "env": { "coverage": { "plugins": [ diff --git a/apps/meteor/.storybook/decorators.tsx b/apps/meteor/.storybook/decorators.tsx index dfe8eda6b2e3..cb179dc3d0a2 100644 --- a/apps/meteor/.storybook/decorators.tsx +++ b/apps/meteor/.storybook/decorators.tsx @@ -1,6 +1,5 @@ import { mockAppRoot } from '@rocket.chat/mock-providers'; import type { Decorator } from '@storybook/react'; -import React from 'react'; import ModalContextMock from '../client/stories/contexts/ModalContextMock'; import RouterContextMock from '../client/stories/contexts/RouterContextMock'; diff --git a/apps/meteor/app/livechat-enterprise/client/components/modals/PlaceChatOnHoldModal.tsx b/apps/meteor/app/livechat-enterprise/client/components/modals/PlaceChatOnHoldModal.tsx index 58ede259fb45..d086da9035d2 100644 --- a/apps/meteor/app/livechat-enterprise/client/components/modals/PlaceChatOnHoldModal.tsx +++ b/apps/meteor/app/livechat-enterprise/client/components/modals/PlaceChatOnHoldModal.tsx @@ -1,5 +1,4 @@ import { Button, Modal } from '@rocket.chat/fuselage'; -import React from 'react'; import { useTranslation } from 'react-i18next'; type PlaceChatOnHoldModalProps = { diff --git a/apps/meteor/app/ui-message/client/messageBox/AddLinkComposerActionModal.tsx b/apps/meteor/app/ui-message/client/messageBox/AddLinkComposerActionModal.tsx index 21e502c90001..69611b5253fc 100644 --- a/apps/meteor/app/ui-message/client/messageBox/AddLinkComposerActionModal.tsx +++ b/apps/meteor/app/ui-message/client/messageBox/AddLinkComposerActionModal.tsx @@ -1,6 +1,6 @@ import { Field, FieldGroup, TextInput, FieldLabel, FieldRow, Box } from '@rocket.chat/fuselage'; import { useUniqueId } from '@rocket.chat/fuselage-hooks'; -import React, { useEffect } from 'react'; +import { useEffect } from 'react'; import { useForm, Controller } from 'react-hook-form'; import { useTranslation } from 'react-i18next'; diff --git a/apps/meteor/client/NavBarV2/NavBar.tsx b/apps/meteor/client/NavBarV2/NavBar.tsx index 116ff00b4075..26a281452c54 100644 --- a/apps/meteor/client/NavBarV2/NavBar.tsx +++ b/apps/meteor/client/NavBarV2/NavBar.tsx @@ -2,7 +2,7 @@ import { useToolbar } from '@react-aria/toolbar'; import { NavBar as NavBarComponent, NavBarSection, NavBarGroup, NavBarDivider } from '@rocket.chat/fuselage'; import { usePermission, useTranslation, useUser } from '@rocket.chat/ui-contexts'; import { useVoipState } from '@rocket.chat/ui-voip'; -import React, { useRef } from 'react'; +import { useRef } from 'react'; import { NavBarItemOmniChannelCallDialPad, diff --git a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmniChannelCallDialPad.tsx b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmniChannelCallDialPad.tsx index 2693060578ed..a1abf735a119 100644 --- a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmniChannelCallDialPad.tsx +++ b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmniChannelCallDialPad.tsx @@ -1,6 +1,5 @@ import { NavBarItem } from '@rocket.chat/fuselage'; import type { ComponentPropsWithoutRef } from 'react'; -import React from 'react'; import { useTranslation } from 'react-i18next'; import { useVoipOutboundStates } from '../../contexts/CallContext'; diff --git a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggle.tsx b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggle.tsx index 0df36e6e73c3..83c0da87964d 100644 --- a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggle.tsx +++ b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggle.tsx @@ -1,5 +1,4 @@ import type { ComponentPropsWithoutRef } from 'react'; -import React from 'react'; import NavBarItemOmnichannelCallToggleError from './NavBarItemOmnichannelCallToggleError'; import NavBarItemOmnichannelCallToggleLoading from './NavBarItemOmnichannelCallToggleLoading'; diff --git a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggleError.tsx b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggleError.tsx index 7f2b6adc8691..a713310d6d83 100644 --- a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggleError.tsx +++ b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggleError.tsx @@ -1,6 +1,5 @@ import { NavBarItem } from '@rocket.chat/fuselage'; import type { ComponentPropsWithoutRef } from 'react'; -import React from 'react'; import { useTranslation } from 'react-i18next'; type NavBarItemOmnichannelCallToggleErrorProps = ComponentPropsWithoutRef; diff --git a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggleLoading.tsx b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggleLoading.tsx index 149500050402..b39a2541513e 100644 --- a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggleLoading.tsx +++ b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggleLoading.tsx @@ -1,6 +1,5 @@ import { NavBarItem } from '@rocket.chat/fuselage'; import type { ComponentPropsWithoutRef } from 'react'; -import React from 'react'; import { useTranslation } from 'react-i18next'; type NavBarItemOmnichannelCallToggleLoadingProps = ComponentPropsWithoutRef; diff --git a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggleReady.tsx b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggleReady.tsx index 82f1c28350cd..104c6a2cc7b3 100644 --- a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggleReady.tsx +++ b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelCallToggleReady.tsx @@ -1,6 +1,6 @@ import { NavBarItem } from '@rocket.chat/fuselage'; import type { ComponentPropsWithoutRef } from 'react'; -import React, { useCallback } from 'react'; +import { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import { useCallerInfo, useCallRegisterClient, useCallUnregisterClient, useVoipNetworkStatus } from '../../contexts/CallContext'; diff --git a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelContact.tsx b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelContact.tsx index 99cdbd9b4a16..08eaeaabacb4 100644 --- a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelContact.tsx +++ b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelContact.tsx @@ -1,7 +1,6 @@ import { NavBarItem } from '@rocket.chat/fuselage'; import { useRouter, useCurrentRoutePath } from '@rocket.chat/ui-contexts'; import type { HTMLAttributes } from 'react'; -import React from 'react'; type NavBarItemOmnichannelContactProps = Omit, 'is'>; diff --git a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelLivechatToggle.tsx b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelLivechatToggle.tsx index abf8ca432c28..f67c21647a06 100644 --- a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelLivechatToggle.tsx +++ b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelLivechatToggle.tsx @@ -2,7 +2,6 @@ import { Sidebar } from '@rocket.chat/fuselage'; import { useEffectEvent } from '@rocket.chat/fuselage-hooks'; import { useEndpoint, useToastMessageDispatch } from '@rocket.chat/ui-contexts'; import type { ReactElement, ComponentProps } from 'react'; -import React from 'react'; import { useTranslation } from 'react-i18next'; import { useOmnichannelAgentAvailable } from '../../hooks/omnichannel/useOmnichannelAgentAvailable'; diff --git a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelQueue.tsx b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelQueue.tsx index 8b1c00a2a17c..471a1293ddbc 100644 --- a/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelQueue.tsx +++ b/apps/meteor/client/NavBarV2/NavBarOmnichannelToolbar/NavBarItemOmnichannelQueue.tsx @@ -1,7 +1,6 @@ import { NavBarItem } from '@rocket.chat/fuselage'; import { useRouter, useCurrentRoutePath } from '@rocket.chat/ui-contexts'; import type { HTMLAttributes } from 'react'; -import React from 'react'; type NavBarItemOmnichannelQueueProps = Omit, 'is'>; diff --git a/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemAuditMenu.tsx b/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemAuditMenu.tsx index 7f47611f9bdb..2da6f7529be0 100644 --- a/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemAuditMenu.tsx +++ b/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemAuditMenu.tsx @@ -2,7 +2,6 @@ import { NavBarItem } from '@rocket.chat/fuselage'; import { GenericMenu } from '@rocket.chat/ui-client'; import { useCurrentRoutePath } from '@rocket.chat/ui-contexts'; import type { HTMLAttributes } from 'react'; -import React from 'react'; import { useTranslation } from 'react-i18next'; import { useAuditMenu } from './hooks/useAuditMenu'; diff --git a/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemDirectoryPage.tsx b/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemDirectoryPage.tsx index 0cc26c6c1356..fa03a595a945 100644 --- a/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemDirectoryPage.tsx +++ b/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemDirectoryPage.tsx @@ -2,7 +2,6 @@ import { NavBarItem } from '@rocket.chat/fuselage'; import { useEffectEvent } from '@rocket.chat/fuselage-hooks'; import { useRouter, useCurrentRoutePath } from '@rocket.chat/ui-contexts'; import type { HTMLAttributes } from 'react'; -import React from 'react'; type NavBarItemDirectoryPageProps = Omit, 'is'>; diff --git a/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemHomePage.tsx b/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemHomePage.tsx index 128a41ea97ae..c6972ff42e70 100644 --- a/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemHomePage.tsx +++ b/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemHomePage.tsx @@ -2,7 +2,6 @@ import { NavBarItem } from '@rocket.chat/fuselage'; import { useEffectEvent } from '@rocket.chat/fuselage-hooks'; import { useRouter, useLayout, useSetting, useCurrentRoutePath } from '@rocket.chat/ui-contexts'; import type { HTMLAttributes } from 'react'; -import React from 'react'; type NavBarItemHomePageProps = Omit, 'is'>; diff --git a/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemMarketPlaceMenu.tsx b/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemMarketPlaceMenu.tsx index 1e7fbdefb083..0ebcf0478775 100644 --- a/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemMarketPlaceMenu.tsx +++ b/apps/meteor/client/NavBarV2/NavBarPagesToolbar/NavBarItemMarketPlaceMenu.tsx @@ -2,7 +2,6 @@ import { NavBarItem } from '@rocket.chat/fuselage'; import { GenericMenu } from '@rocket.chat/ui-client'; import { useCurrentRoutePath } from '@rocket.chat/ui-contexts'; import type { HTMLAttributes } from 'react'; -import React from 'react'; import { useTranslation } from 'react-i18next'; import { useMarketPlaceMenu } from './hooks/useMarketPlaceMenu'; diff --git a/apps/meteor/client/NavBarV2/NavBarPagesToolbar/hooks/useMarketPlaceMenu.tsx b/apps/meteor/client/NavBarV2/NavBarPagesToolbar/hooks/useMarketPlaceMenu.tsx index 80e61896bed3..f1de5bc46b72 100644 --- a/apps/meteor/client/NavBarV2/NavBarPagesToolbar/hooks/useMarketPlaceMenu.tsx +++ b/apps/meteor/client/NavBarV2/NavBarPagesToolbar/hooks/useMarketPlaceMenu.tsx @@ -1,7 +1,6 @@ import { Badge, Skeleton } from '@rocket.chat/fuselage'; import type { GenericMenuItemProps } from '@rocket.chat/ui-client'; import { useTranslation, usePermission, useRouter } from '@rocket.chat/ui-contexts'; -import React from 'react'; import { useUserDropdownAppsActionButtons } from '../../../hooks/useUserDropdownAppsActionButtons'; import { useAppRequestStats } from '../../../views/marketplace/hooks/useAppRequestStats'; diff --git a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/NavBarItemAdministrationMenu.tsx b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/NavBarItemAdministrationMenu.tsx index a17061050ce9..d4ff95ae9f63 100644 --- a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/NavBarItemAdministrationMenu.tsx +++ b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/NavBarItemAdministrationMenu.tsx @@ -2,7 +2,6 @@ import { NavBarItem } from '@rocket.chat/fuselage'; import { GenericMenu } from '@rocket.chat/ui-client'; import { useCurrentRoutePath } from '@rocket.chat/ui-contexts'; import type { HTMLAttributes } from 'react'; -import React from 'react'; import { useTranslation } from 'react-i18next'; import { useAdministrationMenu } from './hooks/useAdministrationMenu'; diff --git a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/NavBarItemLoginPage.tsx b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/NavBarItemLoginPage.tsx index 1ef6f298fccd..cc0f2bb4ab3a 100644 --- a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/NavBarItemLoginPage.tsx +++ b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/NavBarItemLoginPage.tsx @@ -1,7 +1,6 @@ import { Button } from '@rocket.chat/fuselage'; import { useSessionDispatch } from '@rocket.chat/ui-contexts'; import type { HTMLAttributes } from 'react'; -import React from 'react'; import { useTranslation } from 'react-i18next'; type NavBarItemLoginPageProps = Omit, 'is'>; diff --git a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/EditStatusModal.tsx b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/EditStatusModal.tsx index f4dce69af876..e787fb51999d 100644 --- a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/EditStatusModal.tsx +++ b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/EditStatusModal.tsx @@ -3,7 +3,7 @@ import { Field, TextInput, FieldGroup, Modal, Button, Box, FieldLabel, FieldRow, import { useEffectEvent, useLocalStorage } from '@rocket.chat/fuselage-hooks'; import { useToastMessageDispatch, useSetting, useTranslation, useEndpoint } from '@rocket.chat/ui-contexts'; import type { ReactElement, ChangeEvent, ComponentProps, FormEvent } from 'react'; -import React, { useState, useCallback } from 'react'; +import { useState, useCallback } from 'react'; import UserStatusMenu from '../../../components/UserStatusMenu'; import { USER_STATUS_TEXT_MAX_LENGTH } from '../../../lib/constants'; diff --git a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/UserMenu.tsx b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/UserMenu.tsx index 149ad0ea585e..171b8762c314 100644 --- a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/UserMenu.tsx +++ b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/UserMenu.tsx @@ -2,7 +2,7 @@ import type { IUser } from '@rocket.chat/core-typings'; import { GenericMenu, useHandleMenuAction } from '@rocket.chat/ui-client'; import type { GenericMenuItemProps } from '@rocket.chat/ui-client'; import type { ComponentProps } from 'react'; -import React, { memo, useState } from 'react'; +import { memo, useState } from 'react'; import { useTranslation } from 'react-i18next'; import UserMenuButton from './UserMenuButton'; diff --git a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/UserMenuButton.tsx b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/UserMenuButton.tsx index 4ff16cf37be8..2ae0808eb450 100644 --- a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/UserMenuButton.tsx +++ b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/UserMenuButton.tsx @@ -3,7 +3,7 @@ import { Box, IconButton } from '@rocket.chat/fuselage'; import { UserAvatar } from '@rocket.chat/ui-avatar'; import { useSetting, useUser } from '@rocket.chat/ui-contexts'; import type { ComponentPropsWithoutRef, ForwardedRef } from 'react'; -import React, { forwardRef } from 'react'; +import { forwardRef } from 'react'; import { UserStatus } from '../../../components/UserStatus'; diff --git a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/UserMenuHeader.tsx b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/UserMenuHeader.tsx index 6c6a2e9acf85..158b666b64c1 100644 --- a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/UserMenuHeader.tsx +++ b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/UserMenuHeader.tsx @@ -2,7 +2,6 @@ import type { IUser } from '@rocket.chat/core-typings'; import { Box, Margins } from '@rocket.chat/fuselage'; import { UserAvatar } from '@rocket.chat/ui-avatar'; import { useSetting } from '@rocket.chat/ui-contexts'; -import React from 'react'; import { useTranslation } from 'react-i18next'; import MarkdownText from '../../../components/MarkdownText'; diff --git a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useAccountItems.tsx b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useAccountItems.tsx index b29228c4d73f..99100fdad2b5 100644 --- a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useAccountItems.tsx +++ b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useAccountItems.tsx @@ -3,7 +3,6 @@ import { useEffectEvent } from '@rocket.chat/fuselage-hooks'; import type { GenericMenuItemProps } from '@rocket.chat/ui-client'; import { defaultFeaturesPreview, usePreferenceFeaturePreviewList } from '@rocket.chat/ui-client'; import { useRouter } from '@rocket.chat/ui-contexts'; -import React from 'react'; import { useTranslation } from 'react-i18next'; export const useAccountItems = (): GenericMenuItemProps[] => { diff --git a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useCustomStatusModalHandler.tsx b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useCustomStatusModalHandler.tsx index f0f863f8efab..9ea77e131c59 100644 --- a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useCustomStatusModalHandler.tsx +++ b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useCustomStatusModalHandler.tsx @@ -1,5 +1,4 @@ import { useSetModal, useUser } from '@rocket.chat/ui-contexts'; -import React from 'react'; import EditStatusModal from '../EditStatusModal'; diff --git a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useStatusItems.tsx b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useStatusItems.tsx index 910aa228902a..479d523d81bf 100644 --- a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useStatusItems.tsx +++ b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useStatusItems.tsx @@ -2,7 +2,7 @@ import { Box } from '@rocket.chat/fuselage'; import type { GenericMenuItemProps } from '@rocket.chat/ui-client'; import { useEndpoint, useSetting } from '@rocket.chat/ui-contexts'; import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; -import React, { useEffect } from 'react'; +import { useEffect } from 'react'; import { useTranslation } from 'react-i18next'; import { useCustomStatusModalHandler } from './useCustomStatusModalHandler'; diff --git a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useUserMenu.tsx b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useUserMenu.tsx index 273b3cd8687e..437a35c73833 100644 --- a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useUserMenu.tsx +++ b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useUserMenu.tsx @@ -2,7 +2,6 @@ import type { IUser } from '@rocket.chat/core-typings'; import { useEffectEvent } from '@rocket.chat/fuselage-hooks'; import type { GenericMenuItemProps } from '@rocket.chat/ui-client'; import { useLogout } from '@rocket.chat/ui-contexts'; -import React from 'react'; import { useTranslation } from 'react-i18next'; import UserMenuHeader from '../UserMenuHeader'; diff --git a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useVoipItemsSection.tsx b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useVoipItemsSection.tsx index b72af8ff2b10..1ee34d14c8d5 100644 --- a/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useVoipItemsSection.tsx +++ b/apps/meteor/client/NavBarV2/NavBarSettingsToolbar/UserMenu/hooks/useVoipItemsSection.tsx @@ -3,7 +3,7 @@ import type { GenericMenuItemProps } from '@rocket.chat/ui-client'; import { useToastMessageDispatch } from '@rocket.chat/ui-contexts'; import { useVoipAPI, useVoipState } from '@rocket.chat/ui-voip'; import { useMutation } from '@tanstack/react-query'; -import React, { useMemo } from 'react'; +import { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; export const useVoipItemsSection = (): { items: GenericMenuItemProps[] } | undefined => { diff --git a/apps/meteor/client/NavBarV2/NavBarVoipToolbar/NavBarItemVoipDialer.tsx b/apps/meteor/client/NavBarV2/NavBarVoipToolbar/NavBarItemVoipDialer.tsx index bdc62c41b1da..ce3f0b829458 100644 --- a/apps/meteor/client/NavBarV2/NavBarVoipToolbar/NavBarItemVoipDialer.tsx +++ b/apps/meteor/client/NavBarV2/NavBarVoipToolbar/NavBarItemVoipDialer.tsx @@ -3,7 +3,7 @@ import { useEffectEvent } from '@rocket.chat/fuselage-hooks'; import { useLayout } from '@rocket.chat/ui-contexts'; import { useVoipDialer, useVoipState } from '@rocket.chat/ui-voip'; import type { HTMLAttributes } from 'react'; -import React, { useMemo } from 'react'; +import { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; type NavBarItemVoipDialerProps = Omit, 'is'> & { diff --git a/apps/meteor/client/apps/gameCenter/GameCenter.tsx b/apps/meteor/client/apps/gameCenter/GameCenter.tsx index 6eb5c6fdeb3e..768a9d9ec81e 100644 --- a/apps/meteor/client/apps/gameCenter/GameCenter.tsx +++ b/apps/meteor/client/apps/gameCenter/GameCenter.tsx @@ -1,6 +1,6 @@ import type { IExternalComponent } from '@rocket.chat/apps-engine/definition/externalComponent'; import { useMutableCallback } from '@rocket.chat/fuselage-hooks'; -import React, { useState } from 'react'; +import { useState } from 'react'; import type { ReactElement } from 'react'; import GameCenterContainer from './GameCenterContainer'; diff --git a/apps/meteor/client/apps/gameCenter/GameCenterContainer.tsx b/apps/meteor/client/apps/gameCenter/GameCenterContainer.tsx index 69a73161ab1c..daa4cf1d6815 100644 --- a/apps/meteor/client/apps/gameCenter/GameCenterContainer.tsx +++ b/apps/meteor/client/apps/gameCenter/GameCenterContainer.tsx @@ -1,6 +1,5 @@ import { Avatar } from '@rocket.chat/fuselage'; import type { ReactElement } from 'react'; -import React from 'react'; import { useTranslation } from 'react-i18next'; import type { IGame } from './GameCenter'; diff --git a/apps/meteor/client/apps/gameCenter/GameCenterInvitePlayersModal.tsx b/apps/meteor/client/apps/gameCenter/GameCenterInvitePlayersModal.tsx index 5c20758cde3b..c5f834b1760f 100644 --- a/apps/meteor/client/apps/gameCenter/GameCenterInvitePlayersModal.tsx +++ b/apps/meteor/client/apps/gameCenter/GameCenterInvitePlayersModal.tsx @@ -1,7 +1,7 @@ import type { IUser } from '@rocket.chat/core-typings'; import { Box } from '@rocket.chat/fuselage'; import type { ReactElement } from 'react'; -import React, { useState } from 'react'; +import { useState } from 'react'; import { useTranslation } from 'react-i18next'; import type { IGame } from './GameCenter'; diff --git a/apps/meteor/client/apps/gameCenter/GameCenterList.tsx b/apps/meteor/client/apps/gameCenter/GameCenterList.tsx index 03f57f0f1b6a..32537f75a3cd 100644 --- a/apps/meteor/client/apps/gameCenter/GameCenterList.tsx +++ b/apps/meteor/client/apps/gameCenter/GameCenterList.tsx @@ -1,7 +1,7 @@ import { Avatar, Icon, Table, TableBody, TableCell, TableHead, TableRow } from '@rocket.chat/fuselage'; import { useSetModal } from '@rocket.chat/ui-contexts'; import type { ReactElement } from 'react'; -import React, { useCallback } from 'react'; +import { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import type { IGame } from './GameCenter'; @@ -20,7 +20,7 @@ const GameCenterList = ({ handleClose, handleOpenGame, games, isLoading }: IGame const { t } = useTranslation(); const setModal = useSetModal(); const handleInvitePlayer = useCallback( - (game) => { + (game: IGame) => { const handleClose = (): void => { setModal(null); }; diff --git a/apps/meteor/client/components/ActionManagerBusyState.tsx b/apps/meteor/client/components/ActionManagerBusyState.tsx index 932eb08ea502..2388401411ab 100644 --- a/apps/meteor/client/components/ActionManagerBusyState.tsx +++ b/apps/meteor/client/components/ActionManagerBusyState.tsx @@ -1,6 +1,6 @@ import { css } from '@rocket.chat/css-in-js'; import { Box } from '@rocket.chat/fuselage'; -import React, { useEffect, useState } from 'react'; +import { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useUiKitActionManager } from '../uikit/hooks/useUiKitActionManager'; diff --git a/apps/meteor/client/components/AutoCompleteAgent.tsx b/apps/meteor/client/components/AutoCompleteAgent.tsx index 059ac4251cc8..fad5b1a15d57 100644 --- a/apps/meteor/client/components/AutoCompleteAgent.tsx +++ b/apps/meteor/client/components/AutoCompleteAgent.tsx @@ -1,7 +1,7 @@ import { PaginatedSelectFiltered } from '@rocket.chat/fuselage'; import { useDebouncedValue } from '@rocket.chat/fuselage-hooks'; import type { ReactElement } from 'react'; -import React, { memo, useMemo, useState } from 'react'; +import { memo, useMemo, useState } from 'react'; import { useRecordList } from '../hooks/lists/useRecordList'; import { AsyncStatePhase } from '../lib/asyncState'; diff --git a/apps/meteor/client/components/AutoCompleteAgentWithoutExtension.tsx b/apps/meteor/client/components/AutoCompleteAgentWithoutExtension.tsx index c75c827067ec..5cb69abf9598 100644 --- a/apps/meteor/client/components/AutoCompleteAgentWithoutExtension.tsx +++ b/apps/meteor/client/components/AutoCompleteAgentWithoutExtension.tsx @@ -1,7 +1,7 @@ import type { ILivechatAgent } from '@rocket.chat/core-typings'; import { PaginatedSelectFiltered } from '@rocket.chat/fuselage'; import { useDebouncedValue } from '@rocket.chat/fuselage-hooks'; -import React, { memo, useMemo, useState } from 'react'; +import { memo, useMemo, useState } from 'react'; import { useRecordList } from '../hooks/lists/useRecordList'; import { AsyncStatePhase } from '../lib/asyncState'; diff --git a/apps/meteor/client/components/AutoCompleteDepartment.tsx b/apps/meteor/client/components/AutoCompleteDepartment.tsx index 67f96f4a414c..1e9b399f8986 100644 --- a/apps/meteor/client/components/AutoCompleteDepartment.tsx +++ b/apps/meteor/client/components/AutoCompleteDepartment.tsx @@ -1,7 +1,7 @@ import { PaginatedSelectFiltered } from '@rocket.chat/fuselage'; import { useDebouncedValue } from '@rocket.chat/fuselage-hooks'; import type { ComponentProps, ReactElement } from 'react'; -import React, { memo, useMemo, useState } from 'react'; +import { memo, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useRecordList } from '../hooks/lists/useRecordList'; diff --git a/apps/meteor/client/components/AutoCompleteDepartmentMultiple.tsx b/apps/meteor/client/components/AutoCompleteDepartmentMultiple.tsx index 80aa3f2a4745..ce5cf7765c93 100644 --- a/apps/meteor/client/components/AutoCompleteDepartmentMultiple.tsx +++ b/apps/meteor/client/components/AutoCompleteDepartmentMultiple.tsx @@ -2,7 +2,7 @@ import { CheckOption, PaginatedMultiSelectFiltered } from '@rocket.chat/fuselage import type { PaginatedMultiSelectOption } from '@rocket.chat/fuselage'; import { useDebouncedValue } from '@rocket.chat/fuselage-hooks'; import type { ComponentProps } from 'react'; -import React, { memo, useMemo, useState } from 'react'; +import { memo, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useRecordList } from '../hooks/lists/useRecordList'; diff --git a/apps/meteor/client/components/Backdrop.tsx b/apps/meteor/client/components/Backdrop.tsx index 666ba432f13e..69c39d1a022a 100644 --- a/apps/meteor/client/components/Backdrop.tsx +++ b/apps/meteor/client/components/Backdrop.tsx @@ -1,6 +1,5 @@ import { Modal } from '@rocket.chat/fuselage'; import type { ComponentProps, ReactElement } from 'react'; -import React from 'react'; type BackdropProps = ComponentProps; diff --git a/apps/meteor/client/components/ConfirmOwnerChangeModal.tsx b/apps/meteor/client/components/ConfirmOwnerChangeModal.tsx index 77135fad6230..8a69dd8b31e4 100644 --- a/apps/meteor/client/components/ConfirmOwnerChangeModal.tsx +++ b/apps/meteor/client/components/ConfirmOwnerChangeModal.tsx @@ -1,6 +1,5 @@ import { Box } from '@rocket.chat/fuselage'; import type { ComponentPropsWithoutRef } from 'react'; -import React from 'react'; import { useTranslation } from 'react-i18next'; import GenericModal from './GenericModal'; diff --git a/apps/meteor/client/components/Contextualbar/Contextualbar.tsx b/apps/meteor/client/components/Contextualbar/Contextualbar.tsx index 481537d23f3e..7325fe129b34 100644 --- a/apps/meteor/client/components/Contextualbar/Contextualbar.tsx +++ b/apps/meteor/client/components/Contextualbar/Contextualbar.tsx @@ -1,7 +1,7 @@ import { ContextualbarV2, Contextualbar as ContextualbarComponent } from '@rocket.chat/fuselage'; import { FeaturePreview, FeaturePreviewOff, FeaturePreviewOn } from '@rocket.chat/ui-client'; import type { ComponentProps } from 'react'; -import React, { forwardRef, memo } from 'react'; +import { forwardRef, memo } from 'react'; const Contextualbar = forwardRef>(function Contextualbar(props, ref) { return ( diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarAction.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarAction.tsx index 567bd4e276e1..a8d0fbd04e61 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarAction.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarAction.tsx @@ -1,7 +1,7 @@ import { ContextualbarAction as ContextualbarActionComponent, ContextualbarV2Action } from '@rocket.chat/fuselage'; import { FeaturePreview, FeaturePreviewOff, FeaturePreviewOn } from '@rocket.chat/ui-client'; import type { ComponentProps } from 'react'; -import React, { memo } from 'react'; +import { memo } from 'react'; const ContextualbarAction = (props: ComponentProps) => ( diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarActions.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarActions.tsx index 869030ddb479..a90626827cde 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarActions.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarActions.tsx @@ -1,7 +1,7 @@ import { ContextualbarV2Actions, ContextualbarActions as ContextualbarActionsComponent } from '@rocket.chat/fuselage'; import { FeaturePreview, FeaturePreviewOff, FeaturePreviewOn } from '@rocket.chat/ui-client'; import type { ComponentProps } from 'react'; -import React, { memo } from 'react'; +import { memo } from 'react'; const ContextualbarActions = (props: ComponentProps) => ( diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarBack.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarBack.tsx index dcac448b1e92..7c03e574b0e8 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarBack.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarBack.tsx @@ -1,5 +1,5 @@ import type { ReactElement, ComponentProps } from 'react'; -import React, { memo } from 'react'; +import { memo } from 'react'; import { useTranslation } from 'react-i18next'; import ContextualbarAction from './ContextualbarAction'; diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarButton.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarButton.tsx index ab2ab878503e..62562f265cb4 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarButton.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarButton.tsx @@ -1,7 +1,7 @@ import { ContextualbarV2Button, ContextualbarButton as ContextualbarButtonComponent } from '@rocket.chat/fuselage'; import { FeaturePreview, FeaturePreviewOff, FeaturePreviewOn } from '@rocket.chat/ui-client'; import type { ComponentProps } from 'react'; -import React, { memo } from 'react'; +import { memo } from 'react'; const ContextualbarButton = (props: ComponentProps) => ( diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarClose.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarClose.tsx index 38db516476e3..4104a1c28cd7 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarClose.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarClose.tsx @@ -1,5 +1,5 @@ import type { ComponentProps, ReactElement } from 'react'; -import React, { memo } from 'react'; +import { memo } from 'react'; import { useTranslation } from 'react-i18next'; import ContextualbarAction from './ContextualbarAction'; diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarContent.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarContent.tsx index 8986969d8a1d..ebaecc789725 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarContent.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarContent.tsx @@ -1,7 +1,7 @@ import { ContextualbarV2Content, ContextualbarContent as ContextualbarContentComponent } from '@rocket.chat/fuselage'; import { FeaturePreview, FeaturePreviewOff, FeaturePreviewOn } from '@rocket.chat/ui-client'; import type { ComponentProps } from 'react'; -import React, { forwardRef, memo } from 'react'; +import { forwardRef, memo } from 'react'; const ContextualbarContent = forwardRef>( function ContextualbarContent(props, ref) { diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarDialog.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarDialog.tsx index 528b01e8854a..675fffbd8aeb 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarDialog.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarDialog.tsx @@ -1,7 +1,7 @@ import { FeaturePreview, FeaturePreviewOff, FeaturePreviewOn } from '@rocket.chat/ui-client'; import { useLayoutSizes, useLayoutContextualBarPosition } from '@rocket.chat/ui-contexts'; -import type { ComponentProps, KeyboardEvent } from 'react'; -import React, { useCallback, useRef } from 'react'; +import type { ComponentProps } from 'react'; +import { useCallback, useRef } from 'react'; import type { AriaDialogProps } from 'react-aria'; import { FocusScope, useDialog } from 'react-aria'; @@ -16,14 +16,14 @@ type ContextualbarDialogProps = AriaDialogProps & ComponentProps { - const ref = useRef(null); + const ref = useRef(null); const { dialogProps } = useDialog({ 'aria-labelledby': 'contextualbarTitle', ...props }, ref); const { contextualBar } = useLayoutSizes(); const position = useLayoutContextualBarPosition(); const { closeTab } = useRoomToolbox(); const callbackRef = useCallback( - (node) => { + (node: HTMLElement | null) => { if (!node) { return; } diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarEmptyContent.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarEmptyContent.tsx index be3b3aca7c53..63be25a395e9 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarEmptyContent.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarEmptyContent.tsx @@ -1,7 +1,7 @@ import { ContextualbarV2EmptyContent, ContextualbarEmptyContent as ContextualbarEmptyContentComponent } from '@rocket.chat/fuselage'; import { FeaturePreview, FeaturePreviewOff, FeaturePreviewOn } from '@rocket.chat/ui-client'; import type { ComponentProps } from 'react'; -import React, { forwardRef, memo } from 'react'; +import { forwardRef, memo } from 'react'; const ContextualbarEmptyContent = forwardRef>( function ContextualbarEmptyContent(props, ref) { diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarFooter.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarFooter.tsx index c0e0d5304567..b8f6c6026581 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarFooter.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarFooter.tsx @@ -1,7 +1,7 @@ import { ContextualbarV2Footer, ContextualbarFooter as ContextualbarFooterComponent } from '@rocket.chat/fuselage'; import { FeaturePreview, FeaturePreviewOff, FeaturePreviewOn } from '@rocket.chat/ui-client'; import type { ComponentProps } from 'react'; -import React, { forwardRef, memo } from 'react'; +import { forwardRef, memo } from 'react'; const ContextualbarFooter = forwardRef>( function ContextualbarFooter(props, ref) { diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarHeader.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarHeader.tsx index ebd92f0095e3..5d289b18dbda 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarHeader.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarHeader.tsx @@ -1,7 +1,7 @@ import { ContextualbarV2Header, ContextualbarHeader as ContextualbarHeaderComponent } from '@rocket.chat/fuselage'; import { FeaturePreview, FeaturePreviewOff, FeaturePreviewOn } from '@rocket.chat/ui-client'; import type { ComponentPropsWithoutRef, ReactNode } from 'react'; -import React, { memo } from 'react'; +import { memo } from 'react'; type ContextualbarHeaderProps = { expanded?: boolean; diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarIcon.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarIcon.tsx index 5f6062fe351a..488e4e536b89 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarIcon.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarIcon.tsx @@ -1,7 +1,7 @@ import { ContextualbarV2Icon, ContextualbarIcon as ContextualbarIconComponent } from '@rocket.chat/fuselage'; import { FeaturePreview, FeaturePreviewOff, FeaturePreviewOn } from '@rocket.chat/ui-client'; import type { ComponentProps } from 'react'; -import React, { memo } from 'react'; +import { memo } from 'react'; const ContextualbarIcon = (props: ComponentProps) => ( diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarInnerContent.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarInnerContent.tsx index 69c59f3b5db4..8612f8197f74 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarInnerContent.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarInnerContent.tsx @@ -1,6 +1,6 @@ import { Box } from '@rocket.chat/fuselage'; import type { ReactElement, ComponentProps } from 'react'; -import React, { memo } from 'react'; +import { memo } from 'react'; const ContextualbarInnerContent = (props: ComponentProps): ReactElement => ( diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarResizable.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarResizable.tsx index 69adfd4bc7e1..36e2863df2f7 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarResizable.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarResizable.tsx @@ -3,7 +3,6 @@ import { Palette, Box } from '@rocket.chat/fuselage'; import { useLocalStorage } from '@rocket.chat/fuselage-hooks'; import { Resizable } from 're-resizable'; import type { ComponentProps } from 'react'; -import React from 'react'; type ContextualbarResizableProps = { defaultWidth: string } & ComponentProps; diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarScrollableContent.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarScrollableContent.tsx index 76069d748e92..68fac12bd758 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarScrollableContent.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarScrollableContent.tsx @@ -1,6 +1,6 @@ import { Margins } from '@rocket.chat/fuselage'; import type { ComponentProps } from 'react'; -import React, { forwardRef, memo } from 'react'; +import { forwardRef, memo } from 'react'; import { PageScrollableContent } from '../Page'; diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarSection.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarSection.tsx index d6ab9ac12e27..0226d214f825 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarSection.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarSection.tsx @@ -1,7 +1,7 @@ import { ContextualbarV2Section, ContextualbarSection as ContextualbarSectionComponent } from '@rocket.chat/fuselage'; import { FeaturePreview, FeaturePreviewOff, FeaturePreviewOn } from '@rocket.chat/ui-client'; import type { ComponentProps } from 'react'; -import React, { forwardRef, memo } from 'react'; +import { forwardRef, memo } from 'react'; const ContextualbarSection = forwardRef>( function ContextualbarSection(props, ref) { diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarSkeleton.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarSkeleton.tsx index 92b74451b450..550c6b57cc06 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarSkeleton.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarSkeleton.tsx @@ -1,7 +1,7 @@ import { ContextualbarV2Skeleton, ContextualbarSkeleton as ContextualbarSkeletonComponent } from '@rocket.chat/fuselage'; import { FeaturePreview, FeaturePreviewOff, FeaturePreviewOn } from '@rocket.chat/ui-client'; import type { ComponentProps } from 'react'; -import React, { memo } from 'react'; +import { memo } from 'react'; const ContextualbarSkeleton = (props: ComponentProps) => ( diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarTitle.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarTitle.tsx index bffcc5669ce4..d0570641de39 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarTitle.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarTitle.tsx @@ -1,7 +1,6 @@ import { ContextualbarV2Title, ContextualbarTitle as ContextualbarTitleComponent } from '@rocket.chat/fuselage'; import { FeaturePreview, FeaturePreviewOff, FeaturePreviewOn } from '@rocket.chat/ui-client'; import type { ComponentProps } from 'react'; -import React from 'react'; const ContextualbarTitle = (props: ComponentProps) => ( diff --git a/apps/meteor/client/components/CreateDiscussion/CreateDiscussion.tsx b/apps/meteor/client/components/CreateDiscussion/CreateDiscussion.tsx index 99bcd5db6bf7..cf633206cc1d 100644 --- a/apps/meteor/client/components/CreateDiscussion/CreateDiscussion.tsx +++ b/apps/meteor/client/components/CreateDiscussion/CreateDiscussion.tsx @@ -18,7 +18,6 @@ import { useUniqueId } from '@rocket.chat/fuselage-hooks'; import { useTranslation, useEndpoint } from '@rocket.chat/ui-contexts'; import { useMutation } from '@tanstack/react-query'; import type { ReactElement } from 'react'; -import React from 'react'; import { useForm, Controller } from 'react-hook-form'; import { goToRoomById } from '../../lib/utils/goToRoomById'; diff --git a/apps/meteor/client/components/CreateDiscussion/DefaultParentRoomField.tsx b/apps/meteor/client/components/CreateDiscussion/DefaultParentRoomField.tsx index 6036f14049a4..cb3816f17abe 100644 --- a/apps/meteor/client/components/CreateDiscussion/DefaultParentRoomField.tsx +++ b/apps/meteor/client/components/CreateDiscussion/DefaultParentRoomField.tsx @@ -2,7 +2,7 @@ import { Skeleton, TextInput, Callout } from '@rocket.chat/fuselage'; import { useTranslation, useEndpoint } from '@rocket.chat/ui-contexts'; import { useQuery } from '@tanstack/react-query'; import type { ReactElement } from 'react'; -import React, { useMemo } from 'react'; +import { useMemo } from 'react'; import { roomCoordinator } from '../../lib/rooms/roomCoordinator'; diff --git a/apps/meteor/client/components/CustomScrollbars/CustomScrollbars.tsx b/apps/meteor/client/components/CustomScrollbars/CustomScrollbars.tsx index d443639794f1..881d8be66997 100644 --- a/apps/meteor/client/components/CustomScrollbars/CustomScrollbars.tsx +++ b/apps/meteor/client/components/CustomScrollbars/CustomScrollbars.tsx @@ -2,7 +2,7 @@ import { Palette } from '@rocket.chat/fuselage'; import type { ScrollValues } from 'rc-scrollbars'; import { Scrollbars } from 'rc-scrollbars'; import type { MutableRefObject, CSSProperties, ReactNode } from 'react'; -import React, { memo, forwardRef, useCallback, useMemo } from 'react'; +import { memo, forwardRef, useCallback, useMemo } from 'react'; export type CustomScrollbarsProps = { overflowX?: boolean; @@ -26,7 +26,7 @@ const CustomScrollbars = forwardRef(function const scrollbarsStyle = useMemo(() => ({ ...style, ...styleDefault }), [style]); const refSetter = useCallback( - (scrollbarRef) => { + (scrollbarRef: Scrollbars) => { if (ref && scrollbarRef) { if (typeof ref === 'function') { ref(scrollbarRef.view ?? null); diff --git a/apps/meteor/client/components/CustomScrollbars/VirtuosoScrollbars.tsx b/apps/meteor/client/components/CustomScrollbars/VirtuosoScrollbars.tsx index 06080ede2510..0931e7cfd0f0 100644 --- a/apps/meteor/client/components/CustomScrollbars/VirtuosoScrollbars.tsx +++ b/apps/meteor/client/components/CustomScrollbars/VirtuosoScrollbars.tsx @@ -1,5 +1,5 @@ import type { ComponentProps, Ref } from 'react'; -import React, { forwardRef } from 'react'; +import { forwardRef } from 'react'; import CustomScrollbars from './CustomScrollbars'; diff --git a/apps/meteor/client/components/Emoji.tsx b/apps/meteor/client/components/Emoji.tsx index 69eeadc9d9fb..46e36459537c 100644 --- a/apps/meteor/client/components/Emoji.tsx +++ b/apps/meteor/client/components/Emoji.tsx @@ -1,6 +1,5 @@ import styled from '@rocket.chat/styled'; import type { ReactElement } from 'react'; -import React from 'react'; import { getEmojiClassNameAndDataTitle } from '../lib/utils/renderEmoji'; diff --git a/apps/meteor/client/components/FeaturePreviewSidePanelNavigation.tsx b/apps/meteor/client/components/FeaturePreviewSidePanelNavigation.tsx index f5d658ccb2f2..adffeea33cfd 100644 --- a/apps/meteor/client/components/FeaturePreviewSidePanelNavigation.tsx +++ b/apps/meteor/client/components/FeaturePreviewSidePanelNavigation.tsx @@ -1,6 +1,5 @@ import { FeaturePreview } from '@rocket.chat/ui-client'; import type { ReactElement } from 'react'; -import React from 'react'; import { useSidePanelNavigationScreenSize } from '../hooks/useSidePanelNavigation'; diff --git a/apps/meteor/client/components/FilterByText.tsx b/apps/meteor/client/components/FilterByText.tsx index 08c3cb78e21f..53d430100777 100644 --- a/apps/meteor/client/components/FilterByText.tsx +++ b/apps/meteor/client/components/FilterByText.tsx @@ -1,7 +1,7 @@ import { Box, Icon, TextInput, Margins } from '@rocket.chat/fuselage'; import { useAutoFocus, useMergedRefs } from '@rocket.chat/fuselage-hooks'; import type { ChangeEvent, ComponentPropsWithoutRef, FormEvent } from 'react'; -import React, { forwardRef, memo, useCallback } from 'react'; +import { forwardRef, memo, useCallback } from 'react'; import { useTranslation } from 'react-i18next'; // TODO: consider changing the type of TextInput's `onChange` to (event: ChangeEvent) => void diff --git a/apps/meteor/client/components/FingerprintChangeModal.tsx b/apps/meteor/client/components/FingerprintChangeModal.tsx index a45a17db8ccc..834f130bb9f1 100644 --- a/apps/meteor/client/components/FingerprintChangeModal.tsx +++ b/apps/meteor/client/components/FingerprintChangeModal.tsx @@ -1,6 +1,5 @@ import { Box } from '@rocket.chat/fuselage'; import type { ReactElement } from 'react'; -import React from 'react'; import { useTranslation } from 'react-i18next'; import GenericModal from './GenericModal'; diff --git a/apps/meteor/client/components/FingerprintChangeModalConfirmation.tsx b/apps/meteor/client/components/FingerprintChangeModalConfirmation.tsx index 6acc413c82be..7b0d93146a59 100644 --- a/apps/meteor/client/components/FingerprintChangeModalConfirmation.tsx +++ b/apps/meteor/client/components/FingerprintChangeModalConfirmation.tsx @@ -1,6 +1,5 @@ import { Box } from '@rocket.chat/fuselage'; import type { ReactElement } from 'react'; -import React from 'react'; import { useTranslation } from 'react-i18next'; import GenericModal from './GenericModal'; diff --git a/apps/meteor/client/components/GazzodownText.tsx b/apps/meteor/client/components/GazzodownText.tsx index 05c6788062a9..a5dbab70ff42 100644 --- a/apps/meteor/client/components/GazzodownText.tsx +++ b/apps/meteor/client/components/GazzodownText.tsx @@ -6,7 +6,7 @@ import { escapeRegExp } from '@rocket.chat/string-helpers'; import { useFeaturePreview } from '@rocket.chat/ui-client'; import { useLayout, useRouter, useSetting, useUserPreference, useUserId } from '@rocket.chat/ui-contexts'; import type { UIEvent } from 'react'; -import React, { useCallback, memo, useMemo } from 'react'; +import { useCallback, memo, useMemo } from 'react'; import { detectEmoji } from '../lib/utils/detectEmoji'; import { fireGlobalEvent } from '../lib/utils/fireGlobalEvent'; diff --git a/apps/meteor/client/components/GenericCard/GenericCard.tsx b/apps/meteor/client/components/GenericCard/GenericCard.tsx index 48e1d77d63fb..637c4c14e602 100644 --- a/apps/meteor/client/components/GenericCard/GenericCard.tsx +++ b/apps/meteor/client/components/GenericCard/GenericCard.tsx @@ -1,7 +1,6 @@ import { Card, CardTitle, CardBody, CardControls, CardHeader, FramedIcon } from '@rocket.chat/fuselage'; import { useUniqueId } from '@rocket.chat/fuselage-hooks'; import type { ComponentProps, ReactElement } from 'react'; -import React from 'react'; import type { GenericCardButton } from './GenericCardButton'; diff --git a/apps/meteor/client/components/GenericCard/GenericCardButton.tsx b/apps/meteor/client/components/GenericCard/GenericCardButton.tsx index b89ec26b6e9b..5cf6baf43e3f 100644 --- a/apps/meteor/client/components/GenericCard/GenericCardButton.tsx +++ b/apps/meteor/client/components/GenericCard/GenericCardButton.tsx @@ -1,5 +1,4 @@ import { Button } from '@rocket.chat/fuselage'; import type { ComponentProps } from 'react'; -import React from 'react'; export const GenericCardButton = (props: ComponentProps) =>