From 819399c7b841a0d5e756462ad8b20c0c2d8f3a6c Mon Sep 17 00:00:00 2001 From: Tasso Evangelista Date: Thu, 5 Mar 2026 11:50:40 -0300 Subject: [PATCH] chore(eslint): Consistent type imports/exports (#39341) --- apps/meteor/app/emoji/client/index.ts | 2 +- .../meteor/app/lib/server/methods/joinRoom.ts | 2 +- .../livechat/server/hooks/afterUserActions.ts | 2 +- .../OmnichannelAppSourceRoomIcon.tsx | 2 +- .../message/variants/RoomMessage.tsx | 2 +- .../message/variants/ThreadMessagePreview.tsx | 2 +- .../client/hooks/useAppActionButtons.ts | 2 +- apps/meteor/client/lib/createRouteGroup.tsx | 2 +- .../uikit/hooks/useBannerContextValue.ts | 2 +- .../client/views/audit/SecurityLogsPage.tsx | 2 +- .../SidepanelItem/SidePanelParent.tsx | 2 +- .../TemplatePlaceholderInput.spec.tsx | 3 +- .../charts/useUpdateChartData.ts | 2 +- .../omnichannel/triggers/EditTrigger.tsx | 2 +- .../triggers/actions/ActionForm.tsx | 2 +- .../MainLayout/LayoutWithSidebar.spec.tsx | 10 +- .../views/root/MainLayout/LoggedInArea.tsx | 2 +- apps/meteor/definition/externals/global.d.ts | 3 +- .../license/server/license.internalService.ts | 2 +- apps/meteor/ee/app/license/server/methods.ts | 2 +- apps/meteor/ee/server/sdk/types/index.ts | 4 +- apps/meteor/server/lib/ldap/UserConverter.ts | 2 +- .../messages/hooks/BeforeSaveBadWords.ts | 2 +- .../hooks/BeforeSavePreventMention.ts | 2 +- .../e2e-encryption/e2ee-legacy-format.spec.ts | 2 +- .../tests/e2e/fixtures/collections/users.ts | 2 +- .../end-to-end/api/livechat/09-visitors.ts | 2 +- .../src/Components/CodeEditor/BlockEditor.tsx | 2 +- .../src/Components/CodeEditor/index.tsx | 2 +- .../CreateNewScreen/ScreenThumbnail.tsx | 2 +- .../Components/Draggable/DraggableList.tsx | 2 +- .../UIKitWrapper/UIKitWrapper.tsx | 2 +- .../ProjectsList/ProjectsThumbnail.tsx | 2 +- .../Display/Surface/ContextualBarSurface.tsx | 2 +- .../PrototypeRender/PrototypeRender.tsx | 6 +- .../RenderPayload/RenderPayload.tsx | 2 +- .../ScreenThumbnail/CreateNewScreenButton.tsx | 2 +- .../Templates/Container/Payload.tsx | 4 +- .../Context/action/updateFlowEdgesAction.ts | 2 +- .../action/updateNodesAndViewPortAction.ts | 2 +- .../src/Context/action/updatePayloadAction.ts | 4 +- .../src/Context/initialState.ts | 2 +- .../src/Payload/tabNavigation/disabled.ts | 2 +- .../src/Payload/tabNavigation/plain.ts | 2 +- .../src/Payload/tabNavigation/selected.ts | 2 +- apps/uikit-playground/src/hooks/useAuth.tsx | 2 +- .../src/hooks/useFormatCodeMirrorValue.ts | 4 +- .../uikit-playground/src/utils/filterEdges.ts | 2 +- .../src/utils/persistStore.ts | 2 +- ee/packages/license/src/tags.ts | 2 +- ee/packages/media-calls/src/index.ts | 2 +- ee/packages/pdf-worker/src/index.ts | 2 +- packages/api-client/src/index.ts | 2 +- .../tests/test-data/storage/storage.ts | 1 - packages/apps/src/converters/index.ts | 24 +-- packages/apps/src/index.ts | 6 +- packages/core-services/src/index.ts | 25 +-- .../IMessage/MessageAttachment/Files/index.ts | 2 +- .../src/IMessage/MessageAttachment/index.ts | 4 +- packages/core-typings/src/cloud/index.ts | 2 +- .../core-typings/src/federation/v1/index.ts | 6 +- packages/core-typings/src/import/index.ts | 26 +-- packages/core-typings/src/index.ts | 176 +++++++++--------- packages/core-typings/src/ldap/index.ts | 12 +- packages/core-typings/src/license/index.ts | 20 +- packages/core-typings/src/mediaCalls/index.ts | 6 +- .../core-typings/src/omnichannel/index.ts | 10 +- packages/core-typings/src/search/index.ts | 4 +- packages/ddp-client/src/index.ts | 8 +- packages/eslint-config/index.js | 9 +- .../src/elements/ToggleSwitchElement.tsx | 2 +- .../src/surfaces/FuselageSurfaceRenderer.tsx | 2 +- packages/gazzodown/src/index.ts | 3 +- packages/http-router/src/index.ts | 2 +- packages/livechat/src/Theme.ts | 2 +- .../livechat/src/components/Header/index.tsx | 2 +- .../src/definition/call/index.ts | 2 +- .../media-signaling/src/definition/index.ts | 6 +- .../src/definition/media/index.ts | 6 +- .../src/definition/services/index.ts | 8 +- .../src/definition/signals/index.ts | 4 +- .../src/definition/signals/server/index.ts | 12 +- packages/message-parser/src/index.ts | 10 +- packages/model-typings/src/index.ts | 166 ++++++++--------- packages/models/src/updater.ts | 3 +- packages/mongo-adapter/src/index.ts | 2 +- packages/patch-injection/src/index.ts | 2 +- packages/rest-typings/src/index.ts | 18 +- packages/rest-typings/src/v1/dm/index.ts | 4 +- .../rest-typings/src/v1/federation/index.ts | 2 +- packages/rest-typings/src/v1/groups/index.ts | 2 +- packages/rest-typings/src/v1/import/index.ts | 2 +- .../rest-typings/src/v1/integrations/index.ts | 2 +- .../rest-typings/src/v1/moderation/index.ts | 2 +- .../src/v1/server-events/index.ts | 2 +- .../server-cloud-communication/src/index.ts | 6 +- packages/server-fetch/src/index.ts | 2 +- .../src/components/GenericMenu/index.ts | 2 +- .../MultiSelectCustomList.tsx | 2 +- packages/ui-client/src/components/index.ts | 2 +- .../ui-client/src/hooks/useFeaturePreview.ts | 2 +- packages/ui-contexts/src/index.ts | 48 ++--- .../ui-kit/src/blocks/BlockElementType.ts | 2 +- packages/ui-kit/src/blocks/LayoutBlockType.ts | 2 +- packages/ui-kit/src/blocks/TextObjectType.ts | 2 +- packages/ui-kit/src/index.ts | 96 +++++----- .../ui-kit/src/surfaces/attachment/index.ts | 3 +- packages/ui-kit/src/surfaces/banner/index.ts | 4 +- .../src/surfaces/contextualBar/index.ts | 4 +- packages/ui-kit/src/surfaces/message/index.ts | 2 +- packages/ui-kit/src/surfaces/modal/index.ts | 4 +- packages/ui-voip/src/definitions/index.ts | 2 +- 112 files changed, 454 insertions(+), 468 deletions(-) diff --git a/apps/meteor/app/emoji/client/index.ts b/apps/meteor/app/emoji/client/index.ts index 65e3b79cd5a6f..a78b3f8ff4c17 100644 --- a/apps/meteor/app/emoji/client/index.ts +++ b/apps/meteor/app/emoji/client/index.ts @@ -1,3 +1,3 @@ export * from './helpers'; -export * from './types'; +export type * from './types'; export { emoji, emojiEmitter } from './lib'; diff --git a/apps/meteor/app/lib/server/methods/joinRoom.ts b/apps/meteor/app/lib/server/methods/joinRoom.ts index d11050bbb2201..787f729bd578b 100644 --- a/apps/meteor/app/lib/server/methods/joinRoom.ts +++ b/apps/meteor/app/lib/server/methods/joinRoom.ts @@ -1,5 +1,5 @@ import { Room } from '@rocket.chat/core-services'; -import { type IRoom } from '@rocket.chat/core-typings'; +import type { IRoom } from '@rocket.chat/core-typings'; import type { ServerMethods } from '@rocket.chat/ddp-client'; import { Rooms } from '@rocket.chat/models'; import { check } from 'meteor/check'; diff --git a/apps/meteor/app/livechat/server/hooks/afterUserActions.ts b/apps/meteor/app/livechat/server/hooks/afterUserActions.ts index 95355d708412d..3b70b836d7ea6 100644 --- a/apps/meteor/app/livechat/server/hooks/afterUserActions.ts +++ b/apps/meteor/app/livechat/server/hooks/afterUserActions.ts @@ -1,4 +1,4 @@ -import { type IUser } from '@rocket.chat/core-typings'; +import type { IUser } from '@rocket.chat/core-typings'; import { Users } from '@rocket.chat/models'; import { callbacks } from '../../../../server/lib/callbacks'; diff --git a/apps/meteor/client/components/RoomIcon/OmnichannelRoomIcon/OmnichannelAppSourceRoomIcon.tsx b/apps/meteor/client/components/RoomIcon/OmnichannelRoomIcon/OmnichannelAppSourceRoomIcon.tsx index f57508cb070a1..268143a7dcd1d 100644 --- a/apps/meteor/client/components/RoomIcon/OmnichannelRoomIcon/OmnichannelAppSourceRoomIcon.tsx +++ b/apps/meteor/client/components/RoomIcon/OmnichannelRoomIcon/OmnichannelAppSourceRoomIcon.tsx @@ -1,4 +1,4 @@ -import { type IOmnichannelSourceFromApp } from '@rocket.chat/core-typings'; +import type { IOmnichannelSourceFromApp } from '@rocket.chat/core-typings'; import { Icon, Box } from '@rocket.chat/fuselage'; import type { ComponentProps } from 'react'; diff --git a/apps/meteor/client/components/message/variants/RoomMessage.tsx b/apps/meteor/client/components/message/variants/RoomMessage.tsx index ec96ff8fc1fc1..3c81787792e99 100644 --- a/apps/meteor/client/components/message/variants/RoomMessage.tsx +++ b/apps/meteor/client/components/message/variants/RoomMessage.tsx @@ -1,4 +1,4 @@ -import { type IMessage } from '@rocket.chat/core-typings'; +import type { IMessage } from '@rocket.chat/core-typings'; import { Message, MessageLeftContainer, MessageContainer, CheckBox } from '@rocket.chat/fuselage'; import { useToggle } from '@rocket.chat/fuselage-hooks'; import { MessageAvatar } from '@rocket.chat/ui-avatar'; diff --git a/apps/meteor/client/components/message/variants/ThreadMessagePreview.tsx b/apps/meteor/client/components/message/variants/ThreadMessagePreview.tsx index 8822dcbfab712..7aec9412fd07d 100644 --- a/apps/meteor/client/components/message/variants/ThreadMessagePreview.tsx +++ b/apps/meteor/client/components/message/variants/ThreadMessagePreview.tsx @@ -1,4 +1,4 @@ -import { type IThreadMessage } from '@rocket.chat/core-typings'; +import type { IThreadMessage } from '@rocket.chat/core-typings'; import { Skeleton, ThreadMessage, diff --git a/apps/meteor/client/hooks/useAppActionButtons.ts b/apps/meteor/client/hooks/useAppActionButtons.ts index 58173987308a4..acd8413b2176a 100644 --- a/apps/meteor/client/hooks/useAppActionButtons.ts +++ b/apps/meteor/client/hooks/useAppActionButtons.ts @@ -1,4 +1,4 @@ -import { type IUIActionButton, type UIActionButtonContext } from '@rocket.chat/apps-engine/definition/ui'; +import type { IUIActionButton, UIActionButtonContext } from '@rocket.chat/apps-engine/definition/ui'; import { useDebouncedCallback } from '@rocket.chat/fuselage-hooks'; import { useConnectionStatus, useEndpoint, useStream, useUserId } from '@rocket.chat/ui-contexts'; import { useQuery, useQueryClient } from '@tanstack/react-query'; diff --git a/apps/meteor/client/lib/createRouteGroup.tsx b/apps/meteor/client/lib/createRouteGroup.tsx index 514ae079cbfc2..be9d5c2595e1f 100644 --- a/apps/meteor/client/lib/createRouteGroup.tsx +++ b/apps/meteor/client/lib/createRouteGroup.tsx @@ -1,5 +1,5 @@ import type { IRouterPaths, RouteName, RouterPathPattern } from '@rocket.chat/ui-contexts'; -import { type ElementType, type ReactNode } from 'react'; +import type { ElementType, ReactNode } from 'react'; import { appLayout } from './appLayout'; import { router } from '../providers/RouterProvider'; diff --git a/apps/meteor/client/uikit/hooks/useBannerContextValue.ts b/apps/meteor/client/uikit/hooks/useBannerContextValue.ts index 81cb70af6636a..2e1e9fd5796ab 100644 --- a/apps/meteor/client/uikit/hooks/useBannerContextValue.ts +++ b/apps/meteor/client/uikit/hooks/useBannerContextValue.ts @@ -1,6 +1,6 @@ import type { UiKitContext } from '@rocket.chat/fuselage-ui-kit'; import type * as UiKit from '@rocket.chat/ui-kit'; -import { type ContextType } from 'react'; +import type { ContextType } from 'react'; import { useUiKitActionManager } from './useUiKitActionManager'; diff --git a/apps/meteor/client/views/audit/SecurityLogsPage.tsx b/apps/meteor/client/views/audit/SecurityLogsPage.tsx index 82cc3dec0def9..c75f27e60d7e0 100644 --- a/apps/meteor/client/views/audit/SecurityLogsPage.tsx +++ b/apps/meteor/client/views/audit/SecurityLogsPage.tsx @@ -1,5 +1,5 @@ import { Page, PageHeader, PageContent } from '@rocket.chat/ui-client'; -import { type ReactElement } from 'react'; +import type { ReactElement } from 'react'; import { useTranslation } from 'react-i18next'; import SecurityLogsTable from './components/SecurityLogsTable'; diff --git a/apps/meteor/client/views/navigation/sidepanel/SidepanelItem/SidePanelParent.tsx b/apps/meteor/client/views/navigation/sidepanel/SidepanelItem/SidePanelParent.tsx index 7463cb392d895..5a656c296221d 100644 --- a/apps/meteor/client/views/navigation/sidepanel/SidepanelItem/SidePanelParent.tsx +++ b/apps/meteor/client/views/navigation/sidepanel/SidepanelItem/SidePanelParent.tsx @@ -1,4 +1,4 @@ -import { type SubscriptionWithRoom } from '@rocket.chat/ui-contexts'; +import type { SubscriptionWithRoom } from '@rocket.chat/ui-contexts'; import { memo } from 'react'; import SidePanelParentRoom from './SidePanelParentRoom'; diff --git a/apps/meteor/client/views/omnichannel/components/outboundMessage/components/TemplatePlaceholderSelector/TemplatePlaceholderInput.spec.tsx b/apps/meteor/client/views/omnichannel/components/outboundMessage/components/TemplatePlaceholderSelector/TemplatePlaceholderInput.spec.tsx index b959c6673ca7c..30ee2d8d73da0 100644 --- a/apps/meteor/client/views/omnichannel/components/outboundMessage/components/TemplatePlaceholderSelector/TemplatePlaceholderInput.spec.tsx +++ b/apps/meteor/client/views/omnichannel/components/outboundMessage/components/TemplatePlaceholderSelector/TemplatePlaceholderInput.spec.tsx @@ -4,8 +4,7 @@ import userEvent from '@testing-library/user-event'; import type { ComponentProps } from 'react'; import TemplatePlaceholderInput from './TemplatePlaceholderInput'; -// eslint-disable-next-line @typescript-eslint/consistent-type-imports -import TemplatePlaceholderSelector from './TemplatePlaceholderSelector'; +import type TemplatePlaceholderSelector from './TemplatePlaceholderSelector'; const appRoot = mockAppRoot().build(); diff --git a/apps/meteor/client/views/omnichannel/realTimeMonitoring/charts/useUpdateChartData.ts b/apps/meteor/client/views/omnichannel/realTimeMonitoring/charts/useUpdateChartData.ts index 3439d117dbc91..73402836654e1 100644 --- a/apps/meteor/client/views/omnichannel/realTimeMonitoring/charts/useUpdateChartData.ts +++ b/apps/meteor/client/views/omnichannel/realTimeMonitoring/charts/useUpdateChartData.ts @@ -1,7 +1,7 @@ import { useEffectEvent } from '@rocket.chat/fuselage-hooks'; import type * as chartjs from 'chart.js'; import type { TFunction } from 'i18next'; -import { type MutableRefObject } from 'react'; +import type { MutableRefObject } from 'react'; import { updateChart } from '../../../../../app/livechat/client/lib/chartHandler'; diff --git a/apps/meteor/client/views/omnichannel/triggers/EditTrigger.tsx b/apps/meteor/client/views/omnichannel/triggers/EditTrigger.tsx index 131fe4358374e..4137d0d01ccf4 100644 --- a/apps/meteor/client/views/omnichannel/triggers/EditTrigger.tsx +++ b/apps/meteor/client/views/omnichannel/triggers/EditTrigger.tsx @@ -1,4 +1,4 @@ -import { type ILivechatTrigger, type ILivechatTriggerAction, type Serialized } from '@rocket.chat/core-typings'; +import type { ILivechatTrigger, ILivechatTriggerAction, Serialized } from '@rocket.chat/core-typings'; import { FieldGroup, Button, ButtonGroup, Field, FieldLabel, FieldRow, FieldError, TextInput, ToggleSwitch } from '@rocket.chat/fuselage'; import { ContextualbarScrollableContent, diff --git a/apps/meteor/client/views/omnichannel/triggers/actions/ActionForm.tsx b/apps/meteor/client/views/omnichannel/triggers/actions/ActionForm.tsx index 4894aa6625ec1..87441c5a461b8 100644 --- a/apps/meteor/client/views/omnichannel/triggers/actions/ActionForm.tsx +++ b/apps/meteor/client/views/omnichannel/triggers/actions/ActionForm.tsx @@ -18,7 +18,7 @@ import { Controller, useWatch } from 'react-hook-form'; import { useTranslation } from 'react-i18next'; import { useHasLicenseModule } from '../../../../hooks/useHasLicenseModule'; -import { type TriggersPayload } from '../EditTrigger'; +import type { TriggersPayload } from '../EditTrigger'; import { getActionFormFields } from '../utils'; type SendMessageFormType = ComponentProps & { diff --git a/apps/meteor/client/views/root/MainLayout/LayoutWithSidebar.spec.tsx b/apps/meteor/client/views/root/MainLayout/LayoutWithSidebar.spec.tsx index 1730a9151f2fc..90e7d2c1f8ba7 100644 --- a/apps/meteor/client/views/root/MainLayout/LayoutWithSidebar.spec.tsx +++ b/apps/meteor/client/views/root/MainLayout/LayoutWithSidebar.spec.tsx @@ -1,7 +1,7 @@ import { mockAppRoot } from '@rocket.chat/mock-providers'; import { useCurrentRoutePath, useRouter } from '@rocket.chat/ui-contexts'; import { render } from '@testing-library/react'; -import React from 'react'; +import type { ReactNode } from 'react'; import LayoutWithSidebar from './LayoutWithSidebar'; @@ -17,13 +17,13 @@ jest.mock('../../navigation', () => () =>
NavigationRegion
); jest.mock('./AccessibilityShortcut', () => () =>
AccessibilityShortcut
); jest.mock('../../navigation/providers/RoomsNavigationProvider', () => ({ __esModule: true, - default: ({ children }: { children: React.ReactNode }) => <>{children}, + default: ({ children }: { children: ReactNode }) => <>{children}, })); jest.mock('@rocket.chat/ui-client', () => ({ - FeaturePreview: ({ children }: { children: React.ReactNode }) => <>{children}, - FeaturePreviewOn: ({ children }: { children: React.ReactNode }) => <>{children}, - FeaturePreviewOff: ({ children }: { children: React.ReactNode }) => <>{children}, + FeaturePreview: ({ children }: { children: ReactNode }) => <>{children}, + FeaturePreviewOn: ({ children }: { children: ReactNode }) => <>{children}, + FeaturePreviewOff: ({ children }: { children: ReactNode }) => <>{children}, })); const mockedUseCurrentRoutePath = useCurrentRoutePath as jest.MockedFunction; diff --git a/apps/meteor/client/views/root/MainLayout/LoggedInArea.tsx b/apps/meteor/client/views/root/MainLayout/LoggedInArea.tsx index 25fbe7598ee06..fe19d4041f9b6 100644 --- a/apps/meteor/client/views/root/MainLayout/LoggedInArea.tsx +++ b/apps/meteor/client/views/root/MainLayout/LoggedInArea.tsx @@ -1,5 +1,5 @@ import { useUser } from '@rocket.chat/ui-contexts'; -import { type ReactNode } from 'react'; +import type { ReactNode } from 'react'; import { useCustomEmoji } from '../hooks/loggedIn/useCustomEmoji'; import { useE2EEncryption } from '../hooks/loggedIn/useE2EEncryption'; diff --git a/apps/meteor/definition/externals/global.d.ts b/apps/meteor/definition/externals/global.d.ts index d9c45be89d90f..0a2dc3d1bc923 100644 --- a/apps/meteor/definition/externals/global.d.ts +++ b/apps/meteor/definition/externals/global.d.ts @@ -1,5 +1,4 @@ -// eslint-disable-next-line @typescript-eslint/consistent-type-imports -import { Server } from 'net'; +import type { Server } from 'net'; declare global { interface Navigator { diff --git a/apps/meteor/ee/app/license/server/license.internalService.ts b/apps/meteor/ee/app/license/server/license.internalService.ts index c85f7d21c5b50..a02c8166a882e 100644 --- a/apps/meteor/ee/app/license/server/license.internalService.ts +++ b/apps/meteor/ee/app/license/server/license.internalService.ts @@ -1,6 +1,6 @@ import type { ILicense } from '@rocket.chat/core-services'; import { api, ServiceClassInternal } from '@rocket.chat/core-services'; -import { type LicenseModule } from '@rocket.chat/core-typings'; +import type { LicenseModule } from '@rocket.chat/core-typings'; import { License } from '@rocket.chat/license'; import { guestPermissions } from '../../authorization/lib/guestPermissions'; diff --git a/apps/meteor/ee/app/license/server/methods.ts b/apps/meteor/ee/app/license/server/methods.ts index 3e0bcca67eb49..9546e834c2e16 100644 --- a/apps/meteor/ee/app/license/server/methods.ts +++ b/apps/meteor/ee/app/license/server/methods.ts @@ -1,4 +1,4 @@ -import { type ILicenseTag, type LicenseModule } from '@rocket.chat/core-typings'; +import type { ILicenseTag, LicenseModule } from '@rocket.chat/core-typings'; import type { ServerMethods } from '@rocket.chat/ddp-client'; import { License } from '@rocket.chat/license'; import { check } from 'meteor/check'; diff --git a/apps/meteor/ee/server/sdk/types/index.ts b/apps/meteor/ee/server/sdk/types/index.ts index ad33c3085a597..d36d2dcfe8dbc 100644 --- a/apps/meteor/ee/server/sdk/types/index.ts +++ b/apps/meteor/ee/server/sdk/types/index.ts @@ -1,2 +1,2 @@ -export * from './ILDAPEEService'; -export * from './IMessageReadsService'; +export type * from './ILDAPEEService'; +export type * from './IMessageReadsService'; diff --git a/apps/meteor/server/lib/ldap/UserConverter.ts b/apps/meteor/server/lib/ldap/UserConverter.ts index 977e27ef8ad78..96225dd78ad75 100644 --- a/apps/meteor/server/lib/ldap/UserConverter.ts +++ b/apps/meteor/server/lib/ldap/UserConverter.ts @@ -5,7 +5,7 @@ import { Users } from '@rocket.chat/models'; import { logger } from './Logger'; import type { ConverterCache } from '../../../app/importer/server/classes/converters/ConverterCache'; -import { type RecordConverterOptions } from '../../../app/importer/server/classes/converters/RecordConverter'; +import type { RecordConverterOptions } from '../../../app/importer/server/classes/converters/RecordConverter'; import { UserConverter, type UserConverterOptions } from '../../../app/importer/server/classes/converters/UserConverter'; import { settings } from '../../../app/settings/server'; diff --git a/apps/meteor/server/services/messages/hooks/BeforeSaveBadWords.ts b/apps/meteor/server/services/messages/hooks/BeforeSaveBadWords.ts index 0486640daa046..4a75cf48449bd 100644 --- a/apps/meteor/server/services/messages/hooks/BeforeSaveBadWords.ts +++ b/apps/meteor/server/services/messages/hooks/BeforeSaveBadWords.ts @@ -1,4 +1,4 @@ -import { type IMessage } from '@rocket.chat/core-typings'; +import type { IMessage } from '@rocket.chat/core-typings'; import { Logger } from '@rocket.chat/logger'; import type BadWordsFilter from 'bad-words'; diff --git a/apps/meteor/server/services/messages/hooks/BeforeSavePreventMention.ts b/apps/meteor/server/services/messages/hooks/BeforeSavePreventMention.ts index d4a278e857006..e0e01230fc2fb 100644 --- a/apps/meteor/server/services/messages/hooks/BeforeSavePreventMention.ts +++ b/apps/meteor/server/services/messages/hooks/BeforeSavePreventMention.ts @@ -1,5 +1,5 @@ import { Authorization, MeteorError } from '@rocket.chat/core-services'; -import { type IMessage, type IUser } from '@rocket.chat/core-typings'; +import type { IMessage, IUser } from '@rocket.chat/core-typings'; import { i18n } from '../../../lib/i18n'; diff --git a/apps/meteor/tests/e2e/e2e-encryption/e2ee-legacy-format.spec.ts b/apps/meteor/tests/e2e/e2e-encryption/e2ee-legacy-format.spec.ts index 342761526ccf4..0f77679a0fc17 100644 --- a/apps/meteor/tests/e2e/e2e-encryption/e2ee-legacy-format.spec.ts +++ b/apps/meteor/tests/e2e/e2e-encryption/e2ee-legacy-format.spec.ts @@ -72,7 +72,7 @@ test.describe('E2EE Legacy Format', () => { await page.evaluate( async ({ rid, kid, encryptedKey }) => { - // eslint-disable-next-line import/no-unresolved, @typescript-eslint/no-var-requires, import/no-absolute-path, @typescript-eslint/consistent-type-imports + // eslint-disable-next-line import/no-unresolved, import/no-absolute-path const { e2e } = require('/client/lib/e2ee/rocketchat.e2e.ts') as typeof import('../../../client/lib/e2ee/rocketchat.e2e'); const room = await e2e.getInstanceByRoomId(rid); await room?.importGroupKey(kid + encryptedKey); diff --git a/apps/meteor/tests/e2e/fixtures/collections/users.ts b/apps/meteor/tests/e2e/fixtures/collections/users.ts index 650d894e1fca0..460b9dafb0918 100644 --- a/apps/meteor/tests/e2e/fixtures/collections/users.ts +++ b/apps/meteor/tests/e2e/fixtures/collections/users.ts @@ -2,7 +2,7 @@ import { faker } from '@faker-js/faker'; import type { IUser } from '@rocket.chat/core-typings'; import { DEFAULT_USER_CREDENTIALS } from '../../config/constants'; -import { type IUserState } from '../userStates'; +import type { IUserState } from '../userStates'; type UserFixture = IUser & { username: string; diff --git a/apps/meteor/tests/end-to-end/api/livechat/09-visitors.ts b/apps/meteor/tests/end-to-end/api/livechat/09-visitors.ts index f884caf21c405..c4b300a8a366a 100644 --- a/apps/meteor/tests/end-to-end/api/livechat/09-visitors.ts +++ b/apps/meteor/tests/end-to-end/api/livechat/09-visitors.ts @@ -2,7 +2,7 @@ import { faker } from '@faker-js/faker'; import type { ILivechatVisitor, IOmnichannelRoom } from '@rocket.chat/core-typings'; import { expect } from 'chai'; import { before, describe, it, after } from 'mocha'; -import { type Response } from 'supertest'; +import type { Response } from 'supertest'; import { getCredentials, api, request, credentials } from '../../../data/api-data'; import { createCustomField, deleteCustomField } from '../../../data/livechat/custom-fields'; diff --git a/apps/uikit-playground/src/Components/CodeEditor/BlockEditor.tsx b/apps/uikit-playground/src/Components/CodeEditor/BlockEditor.tsx index 566fe8fc3bafd..c0e62de668c07 100644 --- a/apps/uikit-playground/src/Components/CodeEditor/BlockEditor.tsx +++ b/apps/uikit-playground/src/Components/CodeEditor/BlockEditor.tsx @@ -5,7 +5,7 @@ import { useDebouncedValue } from '@rocket.chat/fuselage-hooks'; import { useEffect, useContext } from 'react'; import { updatePayloadAction, context } from '../../Context'; -import { type IPayload } from '../../Context/initialState'; +import type { IPayload } from '../../Context/initialState'; import useCodeMirror from '../../hooks/useCodeMirror'; import useFormatCodeMirrorValue from '../../hooks/useFormatCodeMirrorValue'; import intendCode from '../../utils/intendCode'; diff --git a/apps/uikit-playground/src/Components/CodeEditor/index.tsx b/apps/uikit-playground/src/Components/CodeEditor/index.tsx index 4510b4aac74ab..28d888cd48b41 100644 --- a/apps/uikit-playground/src/Components/CodeEditor/index.tsx +++ b/apps/uikit-playground/src/Components/CodeEditor/index.tsx @@ -5,7 +5,7 @@ import json5 from 'json5'; import { useEffect, useContext } from 'react'; import { updatePayloadAction, context } from '../../Context'; -import { type ILayoutBlock } from '../../Context/initialState'; +import type { ILayoutBlock } from '../../Context/initialState'; import useCodeMirror from '../../hooks/useCodeMirror'; import codePrettier from '../../utils/codePrettier'; diff --git a/apps/uikit-playground/src/Components/CreateNewScreen/ScreenThumbnail.tsx b/apps/uikit-playground/src/Components/CreateNewScreen/ScreenThumbnail.tsx index a8527efc3d8aa..8a09ed81945fb 100644 --- a/apps/uikit-playground/src/Components/CreateNewScreen/ScreenThumbnail.tsx +++ b/apps/uikit-playground/src/Components/CreateNewScreen/ScreenThumbnail.tsx @@ -7,7 +7,7 @@ import { context, renameScreenAction } from '../../Context'; import { activeScreenAction } from '../../Context/action/activeScreenAction'; import { deleteScreenAction } from '../../Context/action/deleteScreenAction'; import { duplicateScreenAction } from '../../Context/action/duplicateScreenAction'; -import { type ScreenType } from '../../Context/initialState'; +import type { ScreenType } from '../../Context/initialState'; import renderPayload from '../RenderPayload/RenderPayload'; import EditMenu from '../ScreenThumbnail/EditMenu/EditMenu'; import ScreenThumbnailWrapper from '../ScreenThumbnail/ScreenThumbnailWrapper'; diff --git a/apps/uikit-playground/src/Components/Draggable/DraggableList.tsx b/apps/uikit-playground/src/Components/Draggable/DraggableList.tsx index 7158b02ed6e3c..b132288439755 100644 --- a/apps/uikit-playground/src/Components/Draggable/DraggableList.tsx +++ b/apps/uikit-playground/src/Components/Draggable/DraggableList.tsx @@ -3,7 +3,7 @@ import { DragDropContext, Droppable } from '@hello-pangea/dnd'; import { memo } from 'react'; import DraggableListItem from './DraggableListItem'; -import { type ILayoutBlock } from '../../Context/initialState'; +import type { ILayoutBlock } from '../../Context/initialState'; import { SurfaceOptions } from '../Preview/Display/Surface/constant'; export type Block = { diff --git a/apps/uikit-playground/src/Components/FlowContainer/UIKitWrapper/UIKitWrapper.tsx b/apps/uikit-playground/src/Components/FlowContainer/UIKitWrapper/UIKitWrapper.tsx index 8c48b01528c50..fbbf2bbaa29e4 100644 --- a/apps/uikit-playground/src/Components/FlowContainer/UIKitWrapper/UIKitWrapper.tsx +++ b/apps/uikit-playground/src/Components/FlowContainer/UIKitWrapper/UIKitWrapper.tsx @@ -4,7 +4,7 @@ import { Handle, Position } from 'reactflow'; import './UIKitWrapper.scss'; import { context } from '../../../Context'; -import { type idType } from '../../../Context/initialState'; +import type { idType } from '../../../Context/initialState'; import SurfaceRender from '../../Preview/Display/Surface/SurfaceRender'; import RenderPayload from '../../RenderPayload/RenderPayload'; diff --git a/apps/uikit-playground/src/Components/HomeContainer/ProjectsList/ProjectsThumbnail.tsx b/apps/uikit-playground/src/Components/HomeContainer/ProjectsList/ProjectsThumbnail.tsx index f96bf299c55c8..01d0a1df53573 100644 --- a/apps/uikit-playground/src/Components/HomeContainer/ProjectsList/ProjectsThumbnail.tsx +++ b/apps/uikit-playground/src/Components/HomeContainer/ProjectsList/ProjectsThumbnail.tsx @@ -6,7 +6,7 @@ import { useNavigate } from 'react-router-dom'; import { activeProjectAction, context, renameProjectAction } from '../../../Context'; import { deleteProjectAction } from '../../../Context/action/deleteProjectAction'; -import { type ILayoutBlock } from '../../../Context/initialState'; +import type { ILayoutBlock } from '../../../Context/initialState'; import routes from '../../../Routes/Routes'; import { formatDate } from '../../../utils/formatDate'; import RenderPayload from '../../RenderPayload/RenderPayload'; diff --git a/apps/uikit-playground/src/Components/Preview/Display/Surface/ContextualBarSurface.tsx b/apps/uikit-playground/src/Components/Preview/Display/Surface/ContextualBarSurface.tsx index 89e08b49ee934..bd32804f3d781 100644 --- a/apps/uikit-playground/src/Components/Preview/Display/Surface/ContextualBarSurface.tsx +++ b/apps/uikit-playground/src/Components/Preview/Display/Surface/ContextualBarSurface.tsx @@ -10,7 +10,7 @@ import { ContextualbarTitle, } from '@rocket.chat/fuselage'; import { Scrollbars } from 'rc-scrollbars'; -import { type ReactNode } from 'react'; +import type { ReactNode } from 'react'; const ContextualBarSurface = ({ children }: { children: ReactNode }) => ( diff --git a/apps/uikit-playground/src/Components/PrototypeRender/PrototypeRender.tsx b/apps/uikit-playground/src/Components/PrototypeRender/PrototypeRender.tsx index 030e6074ab08f..cf42f3c7699b6 100644 --- a/apps/uikit-playground/src/Components/PrototypeRender/PrototypeRender.tsx +++ b/apps/uikit-playground/src/Components/PrototypeRender/PrototypeRender.tsx @@ -2,11 +2,11 @@ import './PrototypeRender.scss'; import { css } from '@rocket.chat/css-in-js'; import { Box } from '@rocket.chat/fuselage'; import { useRef, useState } from 'react'; -import { type Edge } from 'reactflow'; +import type { Edge } from 'reactflow'; -import { type ILayoutBlock, type idType } from '../../Context/initialState'; +import type { ILayoutBlock, idType } from '../../Context/initialState'; import SurfaceRender from '../Preview/Display/Surface/SurfaceRender'; -import { type SurfaceOptions } from '../Preview/Display/Surface/constant'; +import type { SurfaceOptions } from '../Preview/Display/Surface/constant'; import RenderPayload from '../RenderPayload/RenderPayload'; const PrototypeRender = ({ diff --git a/apps/uikit-playground/src/Components/RenderPayload/RenderPayload.tsx b/apps/uikit-playground/src/Components/RenderPayload/RenderPayload.tsx index fa2045aab2832..e19a2adcff04f 100644 --- a/apps/uikit-playground/src/Components/RenderPayload/RenderPayload.tsx +++ b/apps/uikit-playground/src/Components/RenderPayload/RenderPayload.tsx @@ -5,7 +5,7 @@ import { UiKitContextualBar as uiKitContextualBar, } from '@rocket.chat/fuselage-ui-kit'; -import { type ILayoutBlock } from '../../Context/initialState'; +import type { ILayoutBlock } from '../../Context/initialState'; import { SurfaceOptions } from '../Preview/Display/Surface/constant'; const RenderPayload = ({ diff --git a/apps/uikit-playground/src/Components/ScreenThumbnail/CreateNewScreenButton.tsx b/apps/uikit-playground/src/Components/ScreenThumbnail/CreateNewScreenButton.tsx index 97cd977535c51..61763ec58dafc 100644 --- a/apps/uikit-playground/src/Components/ScreenThumbnail/CreateNewScreenButton.tsx +++ b/apps/uikit-playground/src/Components/ScreenThumbnail/CreateNewScreenButton.tsx @@ -1,6 +1,6 @@ import { css } from '@rocket.chat/css-in-js'; import { Icon, Box } from '@rocket.chat/fuselage'; -import { type ComponentProps } from 'react'; +import type { ComponentProps } from 'react'; const CreateNewScreenButton = ({ size = '60px', diff --git a/apps/uikit-playground/src/Components/Templates/Container/Payload.tsx b/apps/uikit-playground/src/Components/Templates/Container/Payload.tsx index 647bd6f64b264..b5cd536da54ef 100644 --- a/apps/uikit-playground/src/Components/Templates/Container/Payload.tsx +++ b/apps/uikit-playground/src/Components/Templates/Container/Payload.tsx @@ -4,10 +4,10 @@ import type { LayoutBlock } from '@rocket.chat/ui-kit'; import { useContext, useMemo } from 'react'; import { context, templatesToggleAction, updatePayloadAction } from '../../../Context'; -import { type ILayoutBlock } from '../../../Context/initialState'; +import type { ILayoutBlock } from '../../../Context/initialState'; import getUniqueId from '../../../utils/getUniqueId'; import SurfaceRender from '../../Preview/Display/Surface/SurfaceRender'; -import { type SurfaceOptions } from '../../Preview/Display/Surface/constant'; +import type { SurfaceOptions } from '../../Preview/Display/Surface/constant'; import RenderPayload from '../../RenderPayload/RenderPayload'; const Payload = ({ blocks, surface }: { surface: SurfaceOptions; blocks: LayoutBlock[] }) => { diff --git a/apps/uikit-playground/src/Context/action/updateFlowEdgesAction.ts b/apps/uikit-playground/src/Context/action/updateFlowEdgesAction.ts index 891b984e0cc39..4a0c45a12e0b4 100644 --- a/apps/uikit-playground/src/Context/action/updateFlowEdgesAction.ts +++ b/apps/uikit-playground/src/Context/action/updateFlowEdgesAction.ts @@ -1,4 +1,4 @@ -import { type Edge } from 'reactflow'; +import type { Edge } from 'reactflow'; import { ActionTypes } from '../reducer'; diff --git a/apps/uikit-playground/src/Context/action/updateNodesAndViewPortAction.ts b/apps/uikit-playground/src/Context/action/updateNodesAndViewPortAction.ts index 501e333debd91..f1cdfa64003ed 100644 --- a/apps/uikit-playground/src/Context/action/updateNodesAndViewPortAction.ts +++ b/apps/uikit-playground/src/Context/action/updateNodesAndViewPortAction.ts @@ -1,4 +1,4 @@ -import { type Node, type Viewport } from 'reactflow'; +import type { Node, Viewport } from 'reactflow'; import { ActionTypes } from '../reducer'; diff --git a/apps/uikit-playground/src/Context/action/updatePayloadAction.ts b/apps/uikit-playground/src/Context/action/updatePayloadAction.ts index 75c91d5f161d8..fd0bb28a258c3 100644 --- a/apps/uikit-playground/src/Context/action/updatePayloadAction.ts +++ b/apps/uikit-playground/src/Context/action/updatePayloadAction.ts @@ -1,5 +1,5 @@ -import { type SurfaceOptions } from '../../Components/Preview/Display/Surface/constant'; -import { type ILayoutBlock } from '../initialState'; +import type { SurfaceOptions } from '../../Components/Preview/Display/Surface/constant'; +import type { ILayoutBlock } from '../initialState'; import { ActionTypes } from '../reducer'; type PayloadType = { diff --git a/apps/uikit-playground/src/Context/initialState.ts b/apps/uikit-playground/src/Context/initialState.ts index 0d8087ea2e208..d2f7d6f9d6038 100644 --- a/apps/uikit-playground/src/Context/initialState.ts +++ b/apps/uikit-playground/src/Context/initialState.ts @@ -1,5 +1,5 @@ import type { LayoutBlock } from '@rocket.chat/ui-kit'; -import { type Edge, type Node, type Viewport } from 'reactflow'; +import type { Edge, Node, Viewport } from 'reactflow'; import { SurfaceOptions } from '../Components/Preview/Display/Surface/constant'; import getDate from '../utils/getDate'; diff --git a/apps/uikit-playground/src/Payload/tabNavigation/disabled.ts b/apps/uikit-playground/src/Payload/tabNavigation/disabled.ts index ce94bed1d64c0..0ac193dcee576 100644 --- a/apps/uikit-playground/src/Payload/tabNavigation/disabled.ts +++ b/apps/uikit-playground/src/Payload/tabNavigation/disabled.ts @@ -1,4 +1,4 @@ -import { type LayoutBlock } from '@rocket.chat/ui-kit'; +import type { LayoutBlock } from '@rocket.chat/ui-kit'; export const disabled: readonly LayoutBlock[] = [ { diff --git a/apps/uikit-playground/src/Payload/tabNavigation/plain.ts b/apps/uikit-playground/src/Payload/tabNavigation/plain.ts index 1bc4576b6edde..16c1311b8d47b 100644 --- a/apps/uikit-playground/src/Payload/tabNavigation/plain.ts +++ b/apps/uikit-playground/src/Payload/tabNavigation/plain.ts @@ -1,4 +1,4 @@ -import { type LayoutBlock } from '@rocket.chat/ui-kit'; +import type { LayoutBlock } from '@rocket.chat/ui-kit'; export const plain: readonly LayoutBlock[] = [ { diff --git a/apps/uikit-playground/src/Payload/tabNavigation/selected.ts b/apps/uikit-playground/src/Payload/tabNavigation/selected.ts index eca550f5acd7b..2c00abbd30c9e 100644 --- a/apps/uikit-playground/src/Payload/tabNavigation/selected.ts +++ b/apps/uikit-playground/src/Payload/tabNavigation/selected.ts @@ -1,4 +1,4 @@ -import { type LayoutBlock } from '@rocket.chat/ui-kit'; +import type { LayoutBlock } from '@rocket.chat/ui-kit'; export const selected: readonly LayoutBlock[] = [ { diff --git a/apps/uikit-playground/src/hooks/useAuth.tsx b/apps/uikit-playground/src/hooks/useAuth.tsx index cfda0c342eefe..1c092af49394d 100644 --- a/apps/uikit-playground/src/hooks/useAuth.tsx +++ b/apps/uikit-playground/src/hooks/useAuth.tsx @@ -3,7 +3,7 @@ import type { ReactNode } from 'react'; import { createContext, useContext, useMemo } from 'react'; import { useNavigate } from 'react-router-dom'; -import { type userType } from '../Context/initialState'; +import type { userType } from '../Context/initialState'; const AuthContext = createContext<{ user?: userType; diff --git a/apps/uikit-playground/src/hooks/useFormatCodeMirrorValue.ts b/apps/uikit-playground/src/hooks/useFormatCodeMirrorValue.ts index 52fa30049d059..5b4d14a368e42 100644 --- a/apps/uikit-playground/src/hooks/useFormatCodeMirrorValue.ts +++ b/apps/uikit-playground/src/hooks/useFormatCodeMirrorValue.ts @@ -1,8 +1,8 @@ import json5 from 'json5'; import { useEffect } from 'react'; -import { type ICodeMirrorChanges } from './useCodeMirror'; -import { type IPayload } from '../Context/initialState'; +import type { ICodeMirrorChanges } from './useCodeMirror'; +import type { IPayload } from '../Context/initialState'; import codePrettier from '../utils/codePrettier'; // Todo: needs to make it more strict diff --git a/apps/uikit-playground/src/utils/filterEdges.ts b/apps/uikit-playground/src/utils/filterEdges.ts index dc315496a2c3b..3a20823ed9e91 100644 --- a/apps/uikit-playground/src/utils/filterEdges.ts +++ b/apps/uikit-playground/src/utils/filterEdges.ts @@ -1,4 +1,4 @@ -import { type Edge } from 'reactflow'; +import type { Edge } from 'reactflow'; export const filterEdges = (edges: Edge[], activeActionIds: string[], sourceId: string) => { return edges.filter((edge) => sourceId !== edge.source || activeActionIds.includes(edge.sourceHandle || '')); diff --git a/apps/uikit-playground/src/utils/persistStore.ts b/apps/uikit-playground/src/utils/persistStore.ts index 54cff2ff78a84..53af9b2eb1564 100644 --- a/apps/uikit-playground/src/utils/persistStore.ts +++ b/apps/uikit-playground/src/utils/persistStore.ts @@ -1,4 +1,4 @@ -import { type initialStateType } from '../Context/initialState'; +import type { initialStateType } from '../Context/initialState'; const persistStore = (state: initialStateType) => { localStorage.setItem('pesrist', JSON.stringify(state)); diff --git a/ee/packages/license/src/tags.ts b/ee/packages/license/src/tags.ts index d918c4cd0cfc1..d30c69dacae71 100644 --- a/ee/packages/license/src/tags.ts +++ b/ee/packages/license/src/tags.ts @@ -1,6 +1,6 @@ import type { ILicenseTag } from '@rocket.chat/core-typings'; -import { type LicenseManager } from './license'; +import type { LicenseManager } from './license'; export function addTag(this: LicenseManager, tag: ILicenseTag) { // make sure to not add duplicated tag names diff --git a/ee/packages/media-calls/src/index.ts b/ee/packages/media-calls/src/index.ts index eacac00750002..cc9e882c075f2 100644 --- a/ee/packages/media-calls/src/index.ts +++ b/ee/packages/media-calls/src/index.ts @@ -1,3 +1,3 @@ -export * from './definition/IMediaCallServer'; +export type * from './definition/IMediaCallServer'; export { callServer } from './server/configuration'; diff --git a/ee/packages/pdf-worker/src/index.ts b/ee/packages/pdf-worker/src/index.ts index 55ae8f7e37330..af49ab81156d4 100644 --- a/ee/packages/pdf-worker/src/index.ts +++ b/ee/packages/pdf-worker/src/index.ts @@ -6,7 +6,7 @@ import type { WorkerData } from './types/WorkerData'; export type Templates = 'chat-transcript'; -export { Quote, MessageData, WorkerData } from './types/WorkerData'; +export type { Quote, MessageData, WorkerData } from './types/WorkerData'; export class PdfWorker { protected validMimeTypes = ['image/jpeg', 'image/png', 'image/jpg']; diff --git a/packages/api-client/src/index.ts b/packages/api-client/src/index.ts index 8771176ecff19..28d1c38549411 100644 --- a/packages/api-client/src/index.ts +++ b/packages/api-client/src/index.ts @@ -13,7 +13,7 @@ import type { Credentials } from './Credentials'; import type { Middleware, RestClientInterface } from './RestClientInterface'; import { hasRequiredTwoFactorMethod, isTotpInvalidError, isTotpRequiredError } from './errors'; -export { RestClientInterface, Credentials }; +export type { RestClientInterface, Credentials }; const pipe = any>(fn: T) => diff --git a/packages/apps-engine/tests/test-data/storage/storage.ts b/packages/apps-engine/tests/test-data/storage/storage.ts index dbab953c6487e..2ad8940ae6445 100644 --- a/packages/apps-engine/tests/test-data/storage/storage.ts +++ b/packages/apps-engine/tests/test-data/storage/storage.ts @@ -5,7 +5,6 @@ import type { IMarketplaceInfo } from '../../../src/server/marketplace'; import type { IAppStorageItem } from '../../../src/server/storage'; import { AppMetadataStorage } from '../../../src/server/storage'; -// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/consistent-type-imports const Datastore = require('@seald-io/nedb') as typeof import('@seald-io/nedb').default; export class TestsAppStorage extends AppMetadataStorage { diff --git a/packages/apps/src/converters/index.ts b/packages/apps/src/converters/index.ts index 049e93864b03a..20cf44905fdae 100644 --- a/packages/apps/src/converters/index.ts +++ b/packages/apps/src/converters/index.ts @@ -1,12 +1,12 @@ -export * from './IAppContactsConverter'; -export * from './IAppConvertersMap'; -export * from './IAppDepartmentsConverter'; -export * from './IAppMessagesConverter'; -export * from './IAppRolesConverter'; -export * from './IAppRoomsConverter'; -export * from './IAppSettingsConverter'; -export * from './IAppThreadsConverter'; -export * from './IAppUploadsConverter'; -export * from './IAppUsersConverter'; -export * from './IAppVideoConferencesConverter'; -export * from './IAppVisitorsConverter'; +export type * from './IAppContactsConverter'; +export type * from './IAppConvertersMap'; +export type * from './IAppDepartmentsConverter'; +export type * from './IAppMessagesConverter'; +export type * from './IAppRolesConverter'; +export type * from './IAppRoomsConverter'; +export type * from './IAppSettingsConverter'; +export type * from './IAppThreadsConverter'; +export type * from './IAppUploadsConverter'; +export type * from './IAppUsersConverter'; +export type * from './IAppVideoConferencesConverter'; +export type * from './IAppVisitorsConverter'; diff --git a/packages/apps/src/index.ts b/packages/apps/src/index.ts index 837749af62c0f..31a44b6ce0578 100644 --- a/packages/apps/src/index.ts +++ b/packages/apps/src/index.ts @@ -1,7 +1,7 @@ import './bridges/IListenerBridge'; -export * from './converters'; +export type * from './converters'; export * from './AppsEngine'; -export * from './IAppServerNotifier'; -export * from './IAppServerOrchestrator'; +export type * from './IAppServerNotifier'; +export type * from './IAppServerOrchestrator'; export * from './orchestrator'; diff --git a/packages/core-services/src/index.ts b/packages/core-services/src/index.ts index d427b375a0836..540d20be1cc03 100644 --- a/packages/core-services/src/index.ts +++ b/packages/core-services/src/index.ts @@ -2,7 +2,7 @@ import { proxify } from './lib/proxify'; import type { IAbacService } from './types/IAbacService'; import type { IAccount, ILoginResult } from './types/IAccount'; import type { IAnalyticsService } from './types/IAnalyticsService'; -import { IApiService } from './types/IApiService'; +import type { IApiService } from './types/IApiService'; import type { IAppsEngineService } from './types/IAppsEngineService'; import type { IAuthorization, RoomAccessValidator } from './types/IAuthorization'; import type { IAuthorizationLivechat } from './types/IAuthorizationLivechat'; @@ -54,28 +54,29 @@ import type { ISendFileLivechatMessageParams, ISendFileMessageParams, IUploadFil import type { IUserService } from './types/IUserService'; import type { IVideoConfService, VideoConferenceJoinOptions } from './types/IVideoConfService'; -export { AppStatusReport } from './types/IAppsEngineService'; -export { IAbacService, AbacActor } from './types/IAbacService'; +export type { AppStatusReport } from './types/IAppsEngineService'; +export type { IAbacService, AbacActor } from './types/IAbacService'; export { asyncLocalStorage } from './lib/asyncLocalStorage'; export { MeteorError, isMeteorError } from './MeteorError'; export { api } from './api'; -export { EventSignatures } from './events/Events'; +export type { EventSignatures } from './events/Events'; export { LocalBroker } from './LocalBroker'; -export { IBroker, IBrokerNode, BaseMetricOptions, CallingOptions, IServiceMetrics } from './types/IBroker'; +export type { IBroker, IBrokerNode, BaseMetricOptions, CallingOptions, IServiceMetrics } from './types/IBroker'; -export { IServiceContext, ServiceClass, IServiceClass, ServiceClassInternal } from './types/ServiceClass'; +export type { IServiceContext, IServiceClass } from './types/ServiceClass'; +export { ServiceClass, ServiceClassInternal } from './types/ServiceClass'; -export { +export type { IFederationService, IFederationServiceEE, IFederationJoinExternalPublicRoomInput, FederationConfigurationStatus, } from './types/IFederationService'; -export { IFederationMatrixService } from './types/IFederationMatrixService'; +export type { IFederationMatrixService } from './types/IFederationMatrixService'; -export { +export type { ConversationData, AgentOverviewDataOptions, ChartDataOptions, @@ -87,9 +88,9 @@ export { export { getConnection, getTrashCollection } from './lib/mongo'; export { ServiceStarter } from './lib/ServiceStarter'; -export { ICreateRoomOptions } from './types/IRoomService'; +export type { ICreateRoomOptions } from './types/IRoomService'; -export { +export type { AutoUpdateRecord, IAccount, IAnalyticsService, @@ -132,7 +133,6 @@ export { IVideoConfService, NPSCreatePayload, NPSVotePayload, - proxify, ResizeResult, RoomAccessValidator, TelemetryEvents, @@ -154,6 +154,7 @@ export { IOmnichannelAnalyticsService, IUserService, }; +export { proxify }; // TODO think in a way to not have to pass the service name to proxify here as well export const Authorization = proxify('authorization'); diff --git a/packages/core-typings/src/IMessage/MessageAttachment/Files/index.ts b/packages/core-typings/src/IMessage/MessageAttachment/Files/index.ts index 119cb1e7518e7..e29b001a290ec 100644 --- a/packages/core-typings/src/IMessage/MessageAttachment/Files/index.ts +++ b/packages/core-typings/src/IMessage/MessageAttachment/Files/index.ts @@ -1,6 +1,6 @@ export * from './AudioAttachmentProps'; export * from './FileAttachmentProps'; -export * from './FileProp'; +export type * from './FileProp'; export * from './ImageAttachmentProps'; export * from './RemovedFileAttachmentProps'; export * from './VideoAttachmentProps'; diff --git a/packages/core-typings/src/IMessage/MessageAttachment/index.ts b/packages/core-typings/src/IMessage/MessageAttachment/index.ts index 5f852834efa70..4d9bb03faa1d8 100644 --- a/packages/core-typings/src/IMessage/MessageAttachment/index.ts +++ b/packages/core-typings/src/IMessage/MessageAttachment/index.ts @@ -1,7 +1,7 @@ export * from './Files'; -export * from './MessageAttachment'; +export type * from './MessageAttachment'; export * from './MessageAttachmentAction'; export * from './MessageAttachmentBase'; -export * from './MessageAttachmentDefault'; +export type * from './MessageAttachmentDefault'; export * from './MessageQuoteAttachment'; export * from './TranslatedMessageAttachment'; diff --git a/packages/core-typings/src/cloud/index.ts b/packages/core-typings/src/cloud/index.ts index 4bbc61135b3c4..b39320129b1dd 100644 --- a/packages/core-typings/src/cloud/index.ts +++ b/packages/core-typings/src/cloud/index.ts @@ -9,6 +9,6 @@ export { WorkspaceCommsResponsePayloadSchema, type WorkspaceInteractionResponsePayload, } from './WorkspaceSyncPayload'; -export { ICloudSyncAnnouncement } from './CloudSyncAnnouncement'; +export type { ICloudSyncAnnouncement } from './CloudSyncAnnouncement'; export { NpsSurveyAnnouncementSchema, type NpsSurveyAnnouncement } from './NpsSurveyAnnouncement'; export { AnnouncementSchema, type Announcement } from './Announcement'; diff --git a/packages/core-typings/src/federation/v1/index.ts b/packages/core-typings/src/federation/v1/index.ts index 0864fb91a0a0f..db2b99c0c29b0 100644 --- a/packages/core-typings/src/federation/v1/index.ts +++ b/packages/core-typings/src/federation/v1/index.ts @@ -1,4 +1,4 @@ -export { FederationKey } from './FederationKey'; -export { IFederationServer } from './IFederationServer'; +export type { FederationKey } from './FederationKey'; +export type { IFederationServer } from './IFederationServer'; export { eventTypes } from './events'; -export { IFederationEvent } from './IFederationEvent'; +export type { IFederationEvent } from './IFederationEvent'; diff --git a/packages/core-typings/src/import/index.ts b/packages/core-typings/src/import/index.ts index f5acc77d7ae8e..9641d919aaffd 100644 --- a/packages/core-typings/src/import/index.ts +++ b/packages/core-typings/src/import/index.ts @@ -1,13 +1,13 @@ -export * from './IImport'; -export * from './IImportUser'; -export * from './IImportRecord'; -export * from './IImportMessage'; -export * from './IImportChannel'; -export * from './IImportContact'; -export * from './IImportProgress'; -export * from './IImporterSelection'; -export * from './IImporterSelectionUser'; -export * from './IImporterSelectionChannel'; -export * from './IImporterSelectionContact'; -export * from './IImporterShortSelection'; -export * from './ImportState'; +export type * from './IImport'; +export type * from './IImportUser'; +export type * from './IImportRecord'; +export type * from './IImportMessage'; +export type * from './IImportChannel'; +export type * from './IImportContact'; +export type * from './IImportProgress'; +export type * from './IImporterSelection'; +export type * from './IImporterSelectionUser'; +export type * from './IImporterSelectionChannel'; +export type * from './IImporterSelectionContact'; +export type * from './IImporterShortSelection'; +export type * from './ImportState'; diff --git a/packages/core-typings/src/index.ts b/packages/core-typings/src/index.ts index 9d62860b19821..011df49c0f28c 100644 --- a/packages/core-typings/src/index.ts +++ b/packages/core-typings/src/index.ts @@ -7,129 +7,129 @@ export * from './federation'; export * from './ISetting'; export * from './ISubscription'; export * from './ITeam'; -export * from './RoomType'; -export * from './IInvite'; -export * from './IRocketChatRecord'; +export type * from './RoomType'; +export type * from './IInvite'; +export type * from './IRocketChatRecord'; export * from './UserStatus'; -export * from './userAction'; +export type * from './userAction'; export * from './IBanner'; -export * from './IStats'; -export * from './IMatrixFederationStatistics'; -export * from './IServerInfo'; -export * from './IWorkspaceInfo'; -export * from './IInstanceStatus'; -export * from './IWebdavAccount'; -export * from './IPermission'; -export * from './IRole'; -export * from './IIntegration'; -export * from './IIntegrationHistory'; -export * from './ICustomSound'; -export * from './ICloud'; +export type * from './IStats'; +export type * from './IMatrixFederationStatistics'; +export type * from './IServerInfo'; +export type * from './IWorkspaceInfo'; +export type * from './IInstanceStatus'; +export type * from './IWebdavAccount'; +export type * from './IPermission'; +export type * from './IRole'; +export type * from './IIntegration'; +export type * from './IIntegrationHistory'; +export type * from './ICustomSound'; +export type * from './ICloud'; export * from './IServerEvent'; -export * from './IRocketChatAssets'; -export * from './IPushToken'; -export * from './IPushNotificationConfig'; -export * from './SlashCommands'; +export type * from './IRocketChatAssets'; +export type * from './IPushToken'; +export type * from './IPushNotificationConfig'; +export type * from './SlashCommands'; export * from './license'; -export * from './IUserDataFile'; -export * from './IUserSession'; -export * from './IUserStatus'; +export type * from './IUserDataFile'; +export type * from './IUserSession'; +export type * from './IUserStatus'; export * from './IUser'; -export * from './ee/IAuditLog'; -export * from './ee/IWorkspaceCredentials'; +export type * from './ee/IAuditLog'; +export type * from './ee/IWorkspaceCredentials'; -export * from './import'; -export * from './IIncomingMessage'; -export * from './IExportOperation'; -export * from './INotification'; +export type * from './import'; +export type * from './IIncomingMessage'; +export type * from './IExportOperation'; +export type * from './INotification'; export * from './INps'; -export * from './ISession'; -export * from './IEmoji'; -export * from './IEmojiCustom'; -export * from './ICustomEmojiDescriptor'; -export * from './IAnalytics'; -export * from './ICredentialToken'; -export * from './IAvatar'; -export * from './ICustomUserStatus'; -export * from './IEmailMessageHistory'; - -export * from './IReadReceipt'; -export * from './MessageReads'; +export type * from './ISession'; +export type * from './IEmoji'; +export type * from './IEmojiCustom'; +export type * from './ICustomEmojiDescriptor'; +export type * from './IAnalytics'; +export type * from './ICredentialToken'; +export type * from './IAvatar'; +export type * from './ICustomUserStatus'; +export type * from './IEmailMessageHistory'; + +export type * from './IReadReceipt'; +export type * from './MessageReads'; export * from './IUpload'; -export * from './IOEmbedCache'; +export type * from './IOEmbedCache'; export * from './IOembed'; // TODO: not sure if this is the right place to put this -export * from './IEmailInbox'; -export * from './ILoginServiceConfiguration'; -export * from './ISocketConnection'; -export * from './IMethodConnection'; -export * from './IPassword'; -export * from './IOAuthApps'; -export * from './IOAuthAuthCode'; -export * from './IOAuthAccessToken'; -export * from './IOAuthRefreshToken'; -export * from './ISmarshHistory'; -export * from './IReport'; - -export * from './ldap'; +export type * from './IEmailInbox'; +export type * from './ILoginServiceConfiguration'; +export type * from './ISocketConnection'; +export type * from './IMethodConnection'; +export type * from './IPassword'; +export type * from './IOAuthApps'; +export type * from './IOAuthAuthCode'; +export type * from './IOAuthAccessToken'; +export type * from './IOAuthRefreshToken'; +export type * from './ISmarshHistory'; +export type * from './IReport'; + +export type * from './ldap'; // TODO: move to separated package -export * from './IOmnichannelBusinessUnit'; -export * from './IOmnichannelCustomAgent'; +export type * from './IOmnichannelBusinessUnit'; +export type * from './IOmnichannelCustomAgent'; -export * from './ILivechatTag'; -export * from './ILivechatMonitor'; -export * from './ILivechatTagRecord'; +export type * from './ILivechatTag'; +export type * from './ILivechatMonitor'; +export type * from './ILivechatTagRecord'; export * from './ILivechatTrigger'; -export * from './ILivechatCustomField'; +export type * from './ILivechatCustomField'; export * from './OmnichannelSortingMechanismSettingType'; -export * from './ILivechatAgentActivity'; +export type * from './ILivechatAgentActivity'; export * from './ILivechatBusinessHour'; -export * from './ILivechatContact'; +export type * from './ILivechatContact'; export * from './ILivechatVisitor'; -export * from './ILivechatDepartmentAgents'; +export type * from './ILivechatDepartmentAgents'; export * from './ILivechatAgent'; -export * from './ILivechatDepartmentRecord'; -export * from './IOmnichannelCannedResponse'; -export * from './ILivechatDepartment'; -export * from './IOmnichannelAgent'; -export * from './OmichannelRoutingConfig'; +export type * from './ILivechatDepartmentRecord'; +export type * from './IOmnichannelCannedResponse'; +export type * from './ILivechatDepartment'; +export type * from './IOmnichannelAgent'; +export type * from './OmichannelRoutingConfig'; export * from './IInquiry'; export * from './ILivechatPriority'; -export * from './ILogItem'; +export type * from './ILogItem'; export * from './IOmnichannelServiceLevelAgreements'; -export * from './autoTranslate'; +export type * from './autoTranslate'; export * from './IVideoConference'; -export * from './VideoConferenceCapabilities'; +export type * from './VideoConferenceCapabilities'; -export * from './SpotlightUser'; -export * from './ICalendarEvent'; +export type * from './SpotlightUser'; +export type * from './ICalendarEvent'; -export * from './search'; +export type * from './search'; export * from './omnichannel'; -export * from './ILivechatUnitMonitor'; -export * from './ICronHistoryItem'; +export type * from './ILivechatUnitMonitor'; +export type * from './ICronHistoryItem'; -export * from './migrations/IControl'; -export * from './OauthConfig'; +export type * from './migrations/IControl'; +export type * from './OauthConfig'; -export * from './IModerationReport'; -export * from './CustomFieldMetadata'; +export type * from './IModerationReport'; +export type * from './CustomFieldMetadata'; -export * from './RoomRouteData'; +export type * from './RoomRouteData'; export * as Cloud from './cloud'; -export * from './themes'; -export * from './mediaCalls'; -export * from './ICallHistoryItem'; -export * from './IAbacAttribute'; +export type * from './themes'; +export type * from './mediaCalls'; +export type * from './ICallHistoryItem'; +export type * from './IAbacAttribute'; export * from './Abac'; -export * from './ServerAudit/IAuditServerAbacAction'; -export * from './ServerAudit/IAuditUserChangedEvent'; +export type * from './ServerAudit/IAuditServerAbacAction'; +export type * from './ServerAudit/IAuditUserChangedEvent'; export { schemas } from './Ajv'; diff --git a/packages/core-typings/src/ldap/index.ts b/packages/core-typings/src/ldap/index.ts index 84c45f0510e4d..20b7cdbf39b8c 100644 --- a/packages/core-typings/src/ldap/index.ts +++ b/packages/core-typings/src/ldap/index.ts @@ -1,6 +1,6 @@ -export * from './ILDAPCallback'; -export * from './ILDAPEntry'; -export * from './ILDAPLoginRequest'; -export * from './ILDAPLoginResult'; -export * from './ILDAPOptions'; -export * from './ILDAPUniqueIdentifierField'; +export type * from './ILDAPCallback'; +export type * from './ILDAPEntry'; +export type * from './ILDAPLoginRequest'; +export type * from './ILDAPLoginResult'; +export type * from './ILDAPOptions'; +export type * from './ILDAPUniqueIdentifierField'; diff --git a/packages/core-typings/src/license/index.ts b/packages/core-typings/src/license/index.ts index 55c252c1fb96d..fb1007faee2a3 100644 --- a/packages/core-typings/src/license/index.ts +++ b/packages/core-typings/src/license/index.ts @@ -1,11 +1,11 @@ -export * from './events'; -export * from './ILicenseTag'; -export * from './ILicenseV2'; -export * from './ILicenseV3'; -export * from './LicenseBehavior'; -export * from './LicenseInfo'; -export * from './LicenseLimit'; +export type * from './events'; +export type * from './ILicenseTag'; +export type * from './ILicenseV2'; +export type * from './ILicenseV3'; +export type * from './LicenseBehavior'; +export type * from './LicenseInfo'; +export type * from './LicenseLimit'; export * from './LicenseModule'; -export * from './LicensePeriod'; -export * from './LicenseValidationOptions'; -export * from './LimitContext'; +export type * from './LicensePeriod'; +export type * from './LicenseValidationOptions'; +export type * from './LimitContext'; diff --git a/packages/core-typings/src/mediaCalls/index.ts b/packages/core-typings/src/mediaCalls/index.ts index 8deaea84c2d23..7591ce5909aff 100644 --- a/packages/core-typings/src/mediaCalls/index.ts +++ b/packages/core-typings/src/mediaCalls/index.ts @@ -1,3 +1,3 @@ -export * from './IMediaCall'; -export * from './IMediaCallChannel'; -export * from './IMediaCallNegotiation'; +export type * from './IMediaCall'; +export type * from './IMediaCallChannel'; +export type * from './IMediaCallNegotiation'; diff --git a/packages/core-typings/src/omnichannel/index.ts b/packages/core-typings/src/omnichannel/index.ts index c132abeb095fc..2523345bfcb17 100644 --- a/packages/core-typings/src/omnichannel/index.ts +++ b/packages/core-typings/src/omnichannel/index.ts @@ -1,6 +1,6 @@ -export * from './sms'; -export * from './routing'; -export * from './queue'; -export * from './reports'; -export * from './mac'; +export type * from './sms'; +export type * from './routing'; +export type * from './queue'; +export type * from './reports'; +export type * from './mac'; export * from './outbound'; diff --git a/packages/core-typings/src/search/index.ts b/packages/core-typings/src/search/index.ts index 39f26ffb72ee6..04587b031e67b 100644 --- a/packages/core-typings/src/search/index.ts +++ b/packages/core-typings/src/search/index.ts @@ -1,2 +1,2 @@ -export * from './IMessageSearchSuggestion'; -export * from './IMessageSearchProvider'; +export type * from './IMessageSearchSuggestion'; +export type * from './IMessageSearchProvider'; diff --git a/packages/ddp-client/src/index.ts b/packages/ddp-client/src/index.ts index 15f13add5a3a5..9bc5d0f4261d7 100644 --- a/packages/ddp-client/src/index.ts +++ b/packages/ddp-client/src/index.ts @@ -1,8 +1,8 @@ export * from './DDPSDK'; export * from './legacy/RocketchatSDKLegacy'; export * from './livechat/LivechatClientImpl'; -export * from './livechat/types/LivechatSDK'; -export * from './types/ClientStream'; -export * from './types/methods'; -export * from './types/streams'; +export type * from './livechat/types/LivechatSDK'; +export type * from './types/ClientStream'; +export type * from './types/methods'; +export type * from './types/streams'; export type { SDK } from './types/SDK'; diff --git a/packages/eslint-config/index.js b/packages/eslint-config/index.js index 719e22b6a5754..f7ce026622482 100644 --- a/packages/eslint-config/index.js +++ b/packages/eslint-config/index.js @@ -396,13 +396,8 @@ export default defineConfig( }, ], '@typescript-eslint/ban-ts-comment': 'warn', - '@typescript-eslint/consistent-type-imports': [ - 'warn', - { - disallowTypeAnnotations: false, - fixStyle: 'inline-type-imports', - }, - ], + '@typescript-eslint/consistent-type-exports': 'error', + '@typescript-eslint/consistent-type-imports': ['error', { disallowTypeAnnotations: false }], '@typescript-eslint/naming-convention': [ 'error', { selector: 'variableLike', format: ['camelCase'], leadingUnderscore: 'allow' }, diff --git a/packages/fuselage-ui-kit/src/elements/ToggleSwitchElement.tsx b/packages/fuselage-ui-kit/src/elements/ToggleSwitchElement.tsx index 35de6a56cbb03..7fd8abd5e6039 100644 --- a/packages/fuselage-ui-kit/src/elements/ToggleSwitchElement.tsx +++ b/packages/fuselage-ui-kit/src/elements/ToggleSwitchElement.tsx @@ -1,6 +1,6 @@ import { Box, ToggleSwitch } from '@rocket.chat/fuselage'; import * as UiKit from '@rocket.chat/ui-kit'; -import { type ReactElement } from 'react'; +import type { ReactElement } from 'react'; import { useUiKitState } from '../hooks/useUiKitState'; import type { BlockProps } from '../utils/BlockProps'; diff --git a/packages/fuselage-ui-kit/src/surfaces/FuselageSurfaceRenderer.tsx b/packages/fuselage-ui-kit/src/surfaces/FuselageSurfaceRenderer.tsx index 5a2c4ff95938d..90cd686f16932 100644 --- a/packages/fuselage-ui-kit/src/surfaces/FuselageSurfaceRenderer.tsx +++ b/packages/fuselage-ui-kit/src/surfaces/FuselageSurfaceRenderer.tsx @@ -1,5 +1,5 @@ import * as UiKit from '@rocket.chat/ui-kit'; -import { type ReactElement } from 'react'; +import type { ReactElement } from 'react'; import ActionsBlock from '../blocks/ActionsBlock'; import CalloutBlock from '../blocks/CalloutBlock'; diff --git a/packages/gazzodown/src/index.ts b/packages/gazzodown/src/index.ts index ad33ba5787867..6b801a156d2f9 100644 --- a/packages/gazzodown/src/index.ts +++ b/packages/gazzodown/src/index.ts @@ -1,3 +1,4 @@ -export { MarkupInteractionContext, UserMention, ChannelMention } from './MarkupInteractionContext'; +export type { UserMention, ChannelMention } from './MarkupInteractionContext'; +export { MarkupInteractionContext } from './MarkupInteractionContext'; export { default as Markup } from './Markup'; export { default as PreviewMarkup } from './PreviewMarkup'; diff --git a/packages/http-router/src/index.ts b/packages/http-router/src/index.ts index 32cc25aee27be..d08ebac606068 100644 --- a/packages/http-router/src/index.ts +++ b/packages/http-router/src/index.ts @@ -1,3 +1,3 @@ export * from './Router'; -export * from './definition'; +export type * from './definition'; export * from './middlewares/honoAdapterForExpress'; diff --git a/packages/livechat/src/Theme.ts b/packages/livechat/src/Theme.ts index c5e62a90f43fb..702aedfb4341a 100644 --- a/packages/livechat/src/Theme.ts +++ b/packages/livechat/src/Theme.ts @@ -1,4 +1,4 @@ -import { type CSSProperties } from 'preact/compat'; +import type { CSSProperties } from 'preact/compat'; export type Theme = { color: CSSProperties['backgroundColor']; diff --git a/packages/livechat/src/components/Header/index.tsx b/packages/livechat/src/components/Header/index.tsx index beaabcf705280..2a21879e424d5 100644 --- a/packages/livechat/src/components/Header/index.tsx +++ b/packages/livechat/src/components/Header/index.tsx @@ -3,7 +3,7 @@ import { toChildArray } from 'preact'; import type { JSXInternal } from 'preact/src/jsx'; import styles from './styles.scss'; -import { type Theme } from '../../Theme'; +import type { Theme } from '../../Theme'; import { createClassName } from '../../helpers/createClassName'; type HeaderProps = { diff --git a/packages/media-signaling/src/definition/call/index.ts b/packages/media-signaling/src/definition/call/index.ts index 1d67057e2d208..770d495d82472 100644 --- a/packages/media-signaling/src/definition/call/index.ts +++ b/packages/media-signaling/src/definition/call/index.ts @@ -1,2 +1,2 @@ -export * from './CallEvents'; +export type * from './CallEvents'; export * from './IClientMediaCall'; diff --git a/packages/media-signaling/src/definition/index.ts b/packages/media-signaling/src/definition/index.ts index 2b01a9c85d3cb..86009d827ed01 100644 --- a/packages/media-signaling/src/definition/index.ts +++ b/packages/media-signaling/src/definition/index.ts @@ -1,5 +1,5 @@ export * from './call'; -export * from './services'; +export type * from './services'; export * from './signals'; -export * from './client'; -export * from './logger'; +export type * from './client'; +export type * from './logger'; diff --git a/packages/media-signaling/src/definition/media/index.ts b/packages/media-signaling/src/definition/media/index.ts index d42be209f7c33..bff182f1ea9fb 100644 --- a/packages/media-signaling/src/definition/media/index.ts +++ b/packages/media-signaling/src/definition/media/index.ts @@ -1,3 +1,3 @@ -export * from './IMediaStreamManager'; -export * from './IMediaStreamWrapper'; -export * from './MediaStreamIdentification'; +export type * from './IMediaStreamManager'; +export type * from './IMediaStreamWrapper'; +export type * from './MediaStreamIdentification'; diff --git a/packages/media-signaling/src/definition/services/index.ts b/packages/media-signaling/src/definition/services/index.ts index 9ac4f49771820..b262810ffac1b 100644 --- a/packages/media-signaling/src/definition/services/index.ts +++ b/packages/media-signaling/src/definition/services/index.ts @@ -1,4 +1,4 @@ -export * from './webrtc/IWebRTCProcessor'; -export * from './IServiceProcessorFactoryList'; -export * from './MediaStreamFactory'; -export * from './negotiation'; +export type * from './webrtc/IWebRTCProcessor'; +export type * from './IServiceProcessorFactoryList'; +export type * from './MediaStreamFactory'; +export type * from './negotiation'; diff --git a/packages/media-signaling/src/definition/signals/index.ts b/packages/media-signaling/src/definition/signals/index.ts index 36a8a58d17248..6e012372f0046 100644 --- a/packages/media-signaling/src/definition/signals/index.ts +++ b/packages/media-signaling/src/definition/signals/index.ts @@ -1,3 +1,3 @@ export * from './client'; -export * from './server'; -export * from './Transport'; +export type * from './server'; +export type * from './Transport'; diff --git a/packages/media-signaling/src/definition/signals/server/index.ts b/packages/media-signaling/src/definition/signals/server/index.ts index 7516765b8982b..e077408e20142 100644 --- a/packages/media-signaling/src/definition/signals/server/index.ts +++ b/packages/media-signaling/src/definition/signals/server/index.ts @@ -1,7 +1,7 @@ -export * from './new'; -export * from './notification'; -export * from './rejected-call-request'; -export * from './remote-sdp'; -export * from './request-offer'; +export type * from './new'; +export type * from './notification'; +export type * from './rejected-call-request'; +export type * from './remote-sdp'; +export type * from './request-offer'; -export * from './MediaSignal'; +export type * from './MediaSignal'; diff --git a/packages/message-parser/src/index.ts b/packages/message-parser/src/index.ts index 805db0e8a5d74..a58600f922a38 100644 --- a/packages/message-parser/src/index.ts +++ b/packages/message-parser/src/index.ts @@ -1,7 +1,7 @@ import type { Root } from './definitions'; import * as grammar from './grammar.pegjs'; -export * from './definitions'; +export type * from './definitions'; export { isNodeOfType } from './guards'; @@ -17,9 +17,5 @@ export type Options = { export const parse = (input: string, options?: Options): Root => grammar.parse(input, options); -export { - /** @deprecated */ - parse as parser, - /** @deprecated */ - Root as MarkdownAST, -}; +export type { Root as MarkdownAST }; +export { parse as parser }; diff --git a/packages/model-typings/src/index.ts b/packages/model-typings/src/index.ts index 4b93cc6100621..439447c49ea02 100644 --- a/packages/model-typings/src/index.ts +++ b/packages/model-typings/src/index.ts @@ -1,83 +1,83 @@ -export * from './models/IAnalyticsModel'; -export * from './models/IAvatarsModel'; -export * from './models/IBannersDismissModel'; -export * from './models/IBannersModel'; -export * from './models/IBaseModel'; -export * from './models/IBaseUploadsModel'; -export * from './models/ICannedResponseModel'; -export * from './models/ICredentialTokensModel'; -export * from './models/ICustomSoundsModel'; -export * from './models/ICustomUserStatusModel'; -export * from './models/IEmailInboxModel'; -export * from './models/IEmailMessageHistoryModel'; -export * from './models/IEmojiCustomModel'; -export * from './models/IExportOperationsModel'; -export * from './models/IFederationKeysModel'; -export * from './models/IInstanceStatusModel'; -export * from './models/IIntegrationHistoryModel'; -export * from './models/IIntegrationsModel'; -export * from './models/IInvitesModel'; -export * from './models/IImportDataModel'; -export * from './models/ILivechatAgentActivityModel'; -export * from './models/ILivechatBusinessHoursModel'; -export * from './models/ILivechatContactsModel'; -export * from './models/ILivechatCustomFieldModel'; -export * from './models/ILivechatDepartmentAgentsModel'; -export * from './models/ILivechatDepartmentModel'; -export * from './models/ILivechatInquiryModel'; -export * from './models/ILivechatPriorityModel'; -export * from './models/ILivechatRoomsModel'; -export * from './models/ILivechatTagModel'; -export * from './models/ILivechatTriggerModel'; -export * from './models/ILivechatUnitModel'; -export * from './models/ILivechatUnitMonitorsModel'; -export * from './models/ILivechatVisitorsModel'; -export * from './models/ILoginServiceConfigurationModel'; -export * from './models/IMessagesModel'; -export * from './models/INotificationQueueModel'; -export * from './models/INpsModel'; -export * from './models/INpsVoteModel'; -export * from './models/IOAuthAppsModel'; -export * from './models/IOAuthAuthCodesModel'; -export * from './models/IOAuthAccessTokensModel'; -export * from './models/IOAuthRefreshTokensModel'; -export * from './models/IOEmbedCacheModel'; -export * from './models/IPushTokenModel'; -export * from './models/IPermissionsModel'; -export * from './models/IReadReceiptsModel'; -export * from './models/IMessageReadsModel'; -export * from './models/IReportsModel'; -export * from './models/IRolesModel'; -export * from './models/IRoomsModel'; -export * from './models/IServerEventsModel'; -export * from './models/ISessionsModel'; -export * from './models/ISettingsModel'; -export * from './models/ISmarshHistoryModel'; -export * from './models/IStatisticsModel'; -export * from './models/ISubscriptionsModel'; -export * from './models/ITeamMemberModel'; -export * from './models/ITeamModel'; -export * from './models/IUploadsModel'; -export * from './models/IUserDataFilesModel'; -export * from './models/IUsersModel'; -export * from './models/IUsersSessionsModel'; -export * from './models/IVideoConferenceModel'; -export * from './models/IWebdavAccountsModel'; -export * from './models/ICalendarEventModel'; -export * from './models/IOmnichannelServiceLevelAgreementsModel'; -export * from './models/IAppLogsModel'; -export * from './models/IAppsModel'; -export * from './models/IAppsPersistenceModel'; -export * from './models/IImportsModel'; -export * from './models/IFederationRoomEventsModel'; -export * from './models/IAuditLogModel'; -export * from './models/ICronHistoryModel'; -export * from './models/IMigrationsModel'; -export * from './models/IModerationReportsModel'; -export * from './models/IMediaCallsModel'; -export * from './models/IMediaCallChannelsModel'; -export * from './models/IMediaCallNegotiationsModel'; -export * from './updater'; -export * from './models/IWorkspaceCredentialsModel'; -export * from './models/ICallHistoryModel'; -export * from './models/IAbacAttributesModel'; +export type * from './models/IAnalyticsModel'; +export type * from './models/IAvatarsModel'; +export type * from './models/IBannersDismissModel'; +export type * from './models/IBannersModel'; +export type * from './models/IBaseModel'; +export type * from './models/IBaseUploadsModel'; +export type * from './models/ICannedResponseModel'; +export type * from './models/ICredentialTokensModel'; +export type * from './models/ICustomSoundsModel'; +export type * from './models/ICustomUserStatusModel'; +export type * from './models/IEmailInboxModel'; +export type * from './models/IEmailMessageHistoryModel'; +export type * from './models/IEmojiCustomModel'; +export type * from './models/IExportOperationsModel'; +export type * from './models/IFederationKeysModel'; +export type * from './models/IInstanceStatusModel'; +export type * from './models/IIntegrationHistoryModel'; +export type * from './models/IIntegrationsModel'; +export type * from './models/IInvitesModel'; +export type * from './models/IImportDataModel'; +export type * from './models/ILivechatAgentActivityModel'; +export type * from './models/ILivechatBusinessHoursModel'; +export type * from './models/ILivechatContactsModel'; +export type * from './models/ILivechatCustomFieldModel'; +export type * from './models/ILivechatDepartmentAgentsModel'; +export type * from './models/ILivechatDepartmentModel'; +export type * from './models/ILivechatInquiryModel'; +export type * from './models/ILivechatPriorityModel'; +export type * from './models/ILivechatRoomsModel'; +export type * from './models/ILivechatTagModel'; +export type * from './models/ILivechatTriggerModel'; +export type * from './models/ILivechatUnitModel'; +export type * from './models/ILivechatUnitMonitorsModel'; +export type * from './models/ILivechatVisitorsModel'; +export type * from './models/ILoginServiceConfigurationModel'; +export type * from './models/IMessagesModel'; +export type * from './models/INotificationQueueModel'; +export type * from './models/INpsModel'; +export type * from './models/INpsVoteModel'; +export type * from './models/IOAuthAppsModel'; +export type * from './models/IOAuthAuthCodesModel'; +export type * from './models/IOAuthAccessTokensModel'; +export type * from './models/IOAuthRefreshTokensModel'; +export type * from './models/IOEmbedCacheModel'; +export type * from './models/IPushTokenModel'; +export type * from './models/IPermissionsModel'; +export type * from './models/IReadReceiptsModel'; +export type * from './models/IMessageReadsModel'; +export type * from './models/IReportsModel'; +export type * from './models/IRolesModel'; +export type * from './models/IRoomsModel'; +export type * from './models/IServerEventsModel'; +export type * from './models/ISessionsModel'; +export type * from './models/ISettingsModel'; +export type * from './models/ISmarshHistoryModel'; +export type * from './models/IStatisticsModel'; +export type * from './models/ISubscriptionsModel'; +export type * from './models/ITeamMemberModel'; +export type * from './models/ITeamModel'; +export type * from './models/IUploadsModel'; +export type * from './models/IUserDataFilesModel'; +export type * from './models/IUsersModel'; +export type * from './models/IUsersSessionsModel'; +export type * from './models/IVideoConferenceModel'; +export type * from './models/IWebdavAccountsModel'; +export type * from './models/ICalendarEventModel'; +export type * from './models/IOmnichannelServiceLevelAgreementsModel'; +export type * from './models/IAppLogsModel'; +export type * from './models/IAppsModel'; +export type * from './models/IAppsPersistenceModel'; +export type * from './models/IImportsModel'; +export type * from './models/IFederationRoomEventsModel'; +export type * from './models/IAuditLogModel'; +export type * from './models/ICronHistoryModel'; +export type * from './models/IMigrationsModel'; +export type * from './models/IModerationReportsModel'; +export type * from './models/IMediaCallsModel'; +export type * from './models/IMediaCallChannelsModel'; +export type * from './models/IMediaCallNegotiationsModel'; +export type * from './updater'; +export type * from './models/IWorkspaceCredentialsModel'; +export type * from './models/ICallHistoryModel'; +export type * from './models/IAbacAttributesModel'; diff --git a/packages/models/src/updater.ts b/packages/models/src/updater.ts index 9babf5b5be20f..e7fa7f3ce90ea 100644 --- a/packages/models/src/updater.ts +++ b/packages/models/src/updater.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/naming-convention */ import type { Updater, SetProps, UnsetProps, IncProps, AddToSetProps } from '@rocket.chat/model-typings'; import type { UpdateFilter } from 'mongodb'; @@ -76,4 +75,4 @@ export class UpdaterImpl implements Updater { } } -export { Updater }; +export type { Updater }; diff --git a/packages/mongo-adapter/src/index.ts b/packages/mongo-adapter/src/index.ts index f458e62f2dd08..0b460dffb4052 100644 --- a/packages/mongo-adapter/src/index.ts +++ b/packages/mongo-adapter/src/index.ts @@ -1,4 +1,4 @@ -export { ArrayIndices } from './types'; +export type { ArrayIndices } from './types'; export { getBSONType } from './bson'; export { createPredicateFromFilter, createDocumentMatcherFromFilter } from './filter'; export { createComparatorFromSort } from './sort'; diff --git a/packages/patch-injection/src/index.ts b/packages/patch-injection/src/index.ts index 405790427177d..5fafd4bb53c2c 100644 --- a/packages/patch-injection/src/index.ts +++ b/packages/patch-injection/src/index.ts @@ -1,2 +1,2 @@ -export * from './definition'; +export type * from './definition'; export * from './makeFunction'; diff --git a/packages/rest-typings/src/index.ts b/packages/rest-typings/src/index.ts index b0e2dacff7a85..deb8359b1f896 100644 --- a/packages/rest-typings/src/index.ts +++ b/packages/rest-typings/src/index.ts @@ -203,7 +203,7 @@ export type UrlParams = string extends T export type MethodOf = TPathPattern extends any ? keyof Endpoints[TPathPattern] : never; export * from './apps'; -export * from './v1/presence'; +export type * from './v1/presence'; export * from './v1/roles'; export * from './v1/settings'; export * from './v1/teams'; @@ -211,9 +211,9 @@ export * from './v1/videoConference'; export * from './v1/assets'; export * from './v1/channels'; export * from './v1/customSounds'; -export * from './v1/customUserStatus'; +export type * from './v1/customUserStatus'; export * from './v1/subscriptionsEndpoints'; -export * from './v1/mailer'; +export type * from './v1/mailer'; export * from './v1/mailer/MailerParamsPOST'; export * from './v1/mailer/MailerUnsubscribeParamsPOST'; export * from './v1/misc'; @@ -223,13 +223,13 @@ export * from './v1/dm/DmHistoryProps'; export * from './v1/integrations'; export * from './v1/licenses'; export * from './v1/omnichannel'; -export * from './helpers/IGetRoomRoles'; -export * from './helpers/PaginatedRequest'; -export * from './helpers/PaginatedResult'; -export * from './helpers/ReplacePlaceholders'; -export * from './helpers/WithItemCount'; +export type * from './helpers/IGetRoomRoles'; +export type * from './helpers/PaginatedRequest'; +export type * from './helpers/PaginatedResult'; +export type * from './helpers/ReplacePlaceholders'; +export type * from './helpers/WithItemCount'; export * from './v1/emojiCustom'; -export * from './v1/instances'; +export type * from './v1/instances'; export * from './v1/ldap'; export * from './v1/users'; export * from './v1/users/UsersSetAvatarParamsPOST'; diff --git a/packages/rest-typings/src/v1/dm/index.ts b/packages/rest-typings/src/v1/dm/index.ts index 09ec09e706814..f68824c6e4212 100644 --- a/packages/rest-typings/src/v1/dm/index.ts +++ b/packages/rest-typings/src/v1/dm/index.ts @@ -1,5 +1,5 @@ -export * from './dm'; -export * from './im'; +export type * from './dm'; +export type * from './im'; export * from './DmCreateProps'; export * from './DmFileProps'; export * from './DmMembersProps'; diff --git a/packages/rest-typings/src/v1/federation/index.ts b/packages/rest-typings/src/v1/federation/index.ts index 36a883c9d847c..5e476a726f2c3 100644 --- a/packages/rest-typings/src/v1/federation/index.ts +++ b/packages/rest-typings/src/v1/federation/index.ts @@ -10,7 +10,7 @@ export type FederationPaginatedResult { diff --git a/packages/ui-client/src/components/index.ts b/packages/ui-client/src/components/index.ts index 943eabd144dda..cbc820d0d42f1 100644 --- a/packages/ui-client/src/components/index.ts +++ b/packages/ui-client/src/components/index.ts @@ -1,4 +1,4 @@ -export { default as AnchorPortal, AnchorPortalProps } from './AnchorPortal'; +export { default as AnchorPortal, type AnchorPortalProps } from './AnchorPortal'; export * from './EmojiPicker'; export * from './ExternalLink'; export * from './DotLeader'; diff --git a/packages/ui-client/src/hooks/useFeaturePreview.ts b/packages/ui-client/src/hooks/useFeaturePreview.ts index bd46adfdefff5..1604fda571965 100644 --- a/packages/ui-client/src/hooks/useFeaturePreview.ts +++ b/packages/ui-client/src/hooks/useFeaturePreview.ts @@ -1,4 +1,4 @@ -import { type FeaturesAvailable } from './useFeaturePreviewList'; +import type { FeaturesAvailable } from './useFeaturePreviewList'; import { usePreferenceFeaturePreviewList } from './usePreferenceFeaturePreviewList'; export const useFeaturePreview = (featureName: FeaturesAvailable) => { diff --git a/packages/ui-contexts/src/index.ts b/packages/ui-contexts/src/index.ts index bd209b70abb81..c3460dc7abdc6 100644 --- a/packages/ui-contexts/src/index.ts +++ b/packages/ui-contexts/src/index.ts @@ -1,23 +1,28 @@ -export { AttachmentContext, AttachmentContextValue } from './AttachmentContext'; -export { AuthenticationContextValue, AuthenticationContext, LoginService } from './AuthenticationContext'; -export { AuthorizationContext, AuthorizationContextValue } from './AuthorizationContext'; -export { AvatarUrlContext, AvatarUrlContextValue } from './AvatarUrlContext'; -export { CustomSoundContext, CustomSoundContextValue } from './CustomSoundContext'; -export { LayoutContext, LayoutContextValue } from './LayoutContext'; -export { ModalContext, ModalContextValue } from './ModalContext'; +export { AttachmentContext, type AttachmentContextValue } from './AttachmentContext'; +export { type AuthenticationContextValue, AuthenticationContext, type LoginService } from './AuthenticationContext'; +export { AuthorizationContext, type AuthorizationContextValue } from './AuthorizationContext'; +export { AvatarUrlContext, type AvatarUrlContextValue } from './AvatarUrlContext'; +export { CustomSoundContext, type CustomSoundContextValue } from './CustomSoundContext'; +export { LayoutContext, type LayoutContextValue } from './LayoutContext'; +export { ModalContext, type ModalContextValue } from './ModalContext'; export * from './RouterContext'; -export { RoomToolboxContext, RoomToolboxContextValue, RoomToolboxActionConfig, RenderToolboxItemParams } from './RoomToolboxContext'; -export { ServerContext, ServerContextValue } from './ServerContext'; -export { SessionContext, SessionContextValue } from './SessionContext'; -export { SettingsContext, SettingsContextValue, SettingsContextQuery } from './SettingsContext'; -export { ToastMessagesContext, ToastMessagesContextValue } from './ToastMessagesContext'; -export { TooltipContext, TooltipContextValue } from './TooltipContext'; -export { TranslationContext, TranslationContextValue } from './TranslationContext'; -export { UserContext, UserContextValue } from './UserContext'; +export { + RoomToolboxContext, + type RoomToolboxContextValue, + type RoomToolboxActionConfig, + type RenderToolboxItemParams, +} from './RoomToolboxContext'; +export { ServerContext, type ServerContextValue, type UploadResult } from './ServerContext'; +export { SessionContext, type SessionContextValue } from './SessionContext'; +export { SettingsContext, type SettingsContextValue, type SettingsContextQuery } from './SettingsContext'; +export { ToastMessagesContext, type ToastMessagesContextValue } from './ToastMessagesContext'; +export { TooltipContext, type TooltipContextValue } from './TooltipContext'; +export { TranslationContext, type TranslationContextValue, type TranslationKey, type TranslationLanguage } from './TranslationContext'; +export { UserContext, type UserContextValue, type Fields, type FindOptions } from './UserContext'; export { UserCardContext, type UserCardContextValue } from './UserCardContext'; -export { UserPresenceContext, UserPresenceContextValue } from './UserPresenceContext'; -export { DeviceContext, Device, DeviceContextValue } from './DeviceContext'; -export { ActionManagerContext, IActionManager } from './ActionManagerContext'; +export { UserPresenceContext, type UserPresenceContextValue } from './UserPresenceContext'; +export { DeviceContext, type Device, type DeviceContextValue } from './DeviceContext'; +export { ActionManagerContext, type IActionManager } from './ActionManagerContext'; export { useAbsoluteUrl } from './hooks/useAbsoluteUrl'; export { useAllPermissions } from './hooks/useAllPermissions'; @@ -104,9 +109,4 @@ export { useOnLogout } from './hooks/useOnLogout'; export { useMediaDeviceMicrophonePermission, type requestDevice } from './hooks/useMediaDevicePermission'; export { useWriteStream } from './hooks/useWriteStream'; export { useUserCard } from './hooks/useUserCard'; - -export { UploadResult } from './ServerContext'; -export { TranslationKey, TranslationLanguage } from './TranslationContext'; -export { Fields, FindOptions } from './UserContext'; - -export { SubscriptionWithRoom } from './types/SubscriptionWithRoom'; +export type { SubscriptionWithRoom } from './types/SubscriptionWithRoom'; diff --git a/packages/ui-kit/src/blocks/BlockElementType.ts b/packages/ui-kit/src/blocks/BlockElementType.ts index a1d3a77f469f5..8eba61c69a80e 100644 --- a/packages/ui-kit/src/blocks/BlockElementType.ts +++ b/packages/ui-kit/src/blocks/BlockElementType.ts @@ -1,4 +1,4 @@ -import { type BlockElement } from './BlockElement'; +import type { BlockElement } from './BlockElement'; export const BlockElementType = { BUTTON: 'button', diff --git a/packages/ui-kit/src/blocks/LayoutBlockType.ts b/packages/ui-kit/src/blocks/LayoutBlockType.ts index 6fc641a072ce3..7baca1216d725 100644 --- a/packages/ui-kit/src/blocks/LayoutBlockType.ts +++ b/packages/ui-kit/src/blocks/LayoutBlockType.ts @@ -1,4 +1,4 @@ -import { type LayoutBlock } from './LayoutBlock'; +import type { LayoutBlock } from './LayoutBlock'; export const LayoutBlockType = { SECTION: 'section', diff --git a/packages/ui-kit/src/blocks/TextObjectType.ts b/packages/ui-kit/src/blocks/TextObjectType.ts index 51512789c341b..495922fce4375 100644 --- a/packages/ui-kit/src/blocks/TextObjectType.ts +++ b/packages/ui-kit/src/blocks/TextObjectType.ts @@ -1,4 +1,4 @@ -import { type TextObject } from './TextObject'; +import type { TextObject } from './TextObject'; export const TextObjectType = { PLAIN_TEXT: 'plain_text', diff --git a/packages/ui-kit/src/index.ts b/packages/ui-kit/src/index.ts index 71585aa8bd04a..25325d1d2f179 100644 --- a/packages/ui-kit/src/index.ts +++ b/packages/ui-kit/src/index.ts @@ -1,66 +1,66 @@ -export { ConfirmationDialog } from './blocks/ConfirmationDialog'; -export { Option } from './blocks/Option'; -export { OptionGroup } from './blocks/OptionGroup'; +export type { ConfirmationDialog } from './blocks/ConfirmationDialog'; +export type { Option } from './blocks/Option'; +export type { OptionGroup } from './blocks/OptionGroup'; -export { PlainText } from './blocks/text/PlainText'; -export { Markdown } from './blocks/text/Markdown'; -export { TextObject } from './blocks/TextObject'; +export type { PlainText } from './blocks/text/PlainText'; +export type { Markdown } from './blocks/text/Markdown'; +export type { TextObject } from './blocks/TextObject'; -export { Conditions } from './rendering/Conditions'; +export type { Conditions } from './rendering/Conditions'; -export { ButtonElement } from './blocks/elements/ButtonElement'; -export { ChannelsSelectElement } from './blocks/elements/ChannelsSelectElement'; -export { ConversationsSelectElement } from './blocks/elements/ConversationsSelectElement'; -export { DatePickerElement } from './blocks/elements/DatePickerElement'; -export { ImageElement } from './blocks/elements/ImageElement'; -export { LinearScaleElement } from './blocks/elements/LinearScaleElement'; -export { MultiStaticSelectElement } from './blocks/elements/MultiStaticSelectElement'; -export { MultiChannelsSelectElement } from './blocks/elements/MultiChannelsSelectElement'; -export { MultiConversationsSelectElement } from './blocks/elements/MultiConversationsSelectElement'; -export { MultiUsersSelectElement } from './blocks/elements/MultiUsersSelectElement'; -export { OverflowElement } from './blocks/elements/OverflowElement'; -export { PlainTextInputElement } from './blocks/elements/PlainTextInputElement'; -export { StaticSelectElement } from './blocks/elements/StaticSelectElement'; -export { UsersSelectElement } from './blocks/elements/UsersSelectElement'; -export { ToggleSwitchElement } from './blocks/elements/ToggleSwitchElement'; -export { CheckboxElement } from './blocks/elements/CheckboxElement'; -export { RadioButtonElement } from './blocks/elements/RadioButtonElement'; -export { TimePickerElement } from './blocks/elements/TimePickerElement'; -export { BlockElement } from './blocks/BlockElement'; -export { ExperimentalTabElement } from './blocks/elements/ExperimentalTabElement'; -export { IconElement, FrameableIconElement } from './blocks/elements/IconElement'; -export { IconButtonElement } from './blocks/elements/IconButtonElement'; +export type { ButtonElement } from './blocks/elements/ButtonElement'; +export type { ChannelsSelectElement } from './blocks/elements/ChannelsSelectElement'; +export type { ConversationsSelectElement } from './blocks/elements/ConversationsSelectElement'; +export type { DatePickerElement } from './blocks/elements/DatePickerElement'; +export type { ImageElement } from './blocks/elements/ImageElement'; +export type { LinearScaleElement } from './blocks/elements/LinearScaleElement'; +export type { MultiStaticSelectElement } from './blocks/elements/MultiStaticSelectElement'; +export type { MultiChannelsSelectElement } from './blocks/elements/MultiChannelsSelectElement'; +export type { MultiConversationsSelectElement } from './blocks/elements/MultiConversationsSelectElement'; +export type { MultiUsersSelectElement } from './blocks/elements/MultiUsersSelectElement'; +export type { OverflowElement } from './blocks/elements/OverflowElement'; +export type { PlainTextInputElement } from './blocks/elements/PlainTextInputElement'; +export type { StaticSelectElement } from './blocks/elements/StaticSelectElement'; +export type { UsersSelectElement } from './blocks/elements/UsersSelectElement'; +export type { ToggleSwitchElement } from './blocks/elements/ToggleSwitchElement'; +export type { CheckboxElement } from './blocks/elements/CheckboxElement'; +export type { RadioButtonElement } from './blocks/elements/RadioButtonElement'; +export type { TimePickerElement } from './blocks/elements/TimePickerElement'; +export type { BlockElement } from './blocks/BlockElement'; +export type { ExperimentalTabElement } from './blocks/elements/ExperimentalTabElement'; +export type { IconElement, FrameableIconElement } from './blocks/elements/IconElement'; +export type { IconButtonElement } from './blocks/elements/IconButtonElement'; -export { ActionsBlock } from './blocks/layout/ActionsBlock'; -export { ConditionalBlock } from './blocks/layout/ConditionalBlock'; -export { ContextBlock } from './blocks/layout/ContextBlock'; +export type { ActionsBlock } from './blocks/layout/ActionsBlock'; +export type { ConditionalBlock } from './blocks/layout/ConditionalBlock'; +export type { ContextBlock } from './blocks/layout/ContextBlock'; export * from './blocks/layout/PreviewBlock'; -export { DividerBlock } from './blocks/layout/DividerBlock'; -export { ImageBlock } from './blocks/layout/ImageBlock'; -export { InputBlock } from './blocks/layout/InputBlock'; -export { SectionBlock } from './blocks/layout/SectionBlock'; -export { VideoConferenceBlock } from './blocks/layout/VideoConferenceBlock'; -export { LayoutBlock } from './blocks/LayoutBlock'; -export { CalloutBlock } from './blocks/layout/CalloutBlock'; -export { ExperimentalTabNavigationBlock } from './blocks/layout/ExperimentalTabNavigationBlock'; -export { InfoCardBlock } from './blocks/layout/InfoCardBlock'; +export type { DividerBlock } from './blocks/layout/DividerBlock'; +export type { ImageBlock } from './blocks/layout/ImageBlock'; +export type { InputBlock } from './blocks/layout/InputBlock'; +export type { SectionBlock } from './blocks/layout/SectionBlock'; +export type { VideoConferenceBlock } from './blocks/layout/VideoConferenceBlock'; +export type { LayoutBlock } from './blocks/LayoutBlock'; +export type { CalloutBlock } from './blocks/layout/CalloutBlock'; +export type { ExperimentalTabNavigationBlock } from './blocks/layout/ExperimentalTabNavigationBlock'; +export type { InfoCardBlock } from './blocks/layout/InfoCardBlock'; -export { InputElementDispatchAction } from './blocks/InputElementDispatchAction'; +export type { InputElementDispatchAction } from './blocks/InputElementDispatchAction'; -export { Block } from './blocks/Block'; -export { RenderableBlock } from './blocks/RenderableBlock'; +export type { Block } from './blocks/Block'; +export type { RenderableBlock } from './blocks/RenderableBlock'; export { LayoutBlockType } from './blocks/LayoutBlockType'; export { BlockElementType } from './blocks/BlockElementType'; export { TextObjectType } from './blocks/TextObjectType'; export { BlockContext } from './rendering/BlockContext'; -export { type BlockRenderers } from './rendering/BlockRenderers'; -export { type RenderableLayoutBlock } from './blocks/RenderableLayoutBlock'; +export type { BlockRenderers } from './rendering/BlockRenderers'; +export type { RenderableLayoutBlock } from './blocks/RenderableLayoutBlock'; export { SurfaceRenderer } from './rendering/SurfaceRenderer'; -export { ActionableElement } from './blocks/ActionableElement'; -export { ActionOf } from './rendering/ActionOf'; +export type { ActionableElement } from './blocks/ActionableElement'; +export type { ActionOf } from './rendering/ActionOf'; export * from './surfaces/View'; diff --git a/packages/ui-kit/src/surfaces/attachment/index.ts b/packages/ui-kit/src/surfaces/attachment/index.ts index 84dcb1e1c8712..bb1a3415d69a3 100644 --- a/packages/ui-kit/src/surfaces/attachment/index.ts +++ b/packages/ui-kit/src/surfaces/attachment/index.ts @@ -1,2 +1,3 @@ -export { UiKitParserAttachment, AttachmentSurfaceLayout } from './UiKitParserAttachment'; +export type { AttachmentSurfaceLayout } from './UiKitParserAttachment'; +export { UiKitParserAttachment } from './UiKitParserAttachment'; export { uiKitAttachment } from './uiKitAttachment'; diff --git a/packages/ui-kit/src/surfaces/banner/index.ts b/packages/ui-kit/src/surfaces/banner/index.ts index 8da2b2508f9db..47e097b9312eb 100644 --- a/packages/ui-kit/src/surfaces/banner/index.ts +++ b/packages/ui-kit/src/surfaces/banner/index.ts @@ -1,3 +1,3 @@ -export { BannerView, isBannerView } from './BannerView'; -export { BannerSurfaceLayout, UiKitParserBanner } from './UiKitParserBanner'; +export { type BannerView, isBannerView } from './BannerView'; +export { type BannerSurfaceLayout, UiKitParserBanner } from './UiKitParserBanner'; export { uiKitBanner } from './uiKitBanner'; diff --git a/packages/ui-kit/src/surfaces/contextualBar/index.ts b/packages/ui-kit/src/surfaces/contextualBar/index.ts index 958bb92dfbcaf..890b70fcfbc27 100644 --- a/packages/ui-kit/src/surfaces/contextualBar/index.ts +++ b/packages/ui-kit/src/surfaces/contextualBar/index.ts @@ -1,3 +1,3 @@ -export { ContextualBarView, isContextualBarView } from './ContextualBarView'; -export { UiKitParserContextualBar, ContextualBarSurfaceLayout } from './UiKitParserContextualBar'; +export { type ContextualBarView, isContextualBarView } from './ContextualBarView'; +export { UiKitParserContextualBar, type ContextualBarSurfaceLayout } from './UiKitParserContextualBar'; export { uiKitContextualBar } from './uiKitContextualBar'; diff --git a/packages/ui-kit/src/surfaces/message/index.ts b/packages/ui-kit/src/surfaces/message/index.ts index 39363c98cf49d..01e7e3d4f541f 100644 --- a/packages/ui-kit/src/surfaces/message/index.ts +++ b/packages/ui-kit/src/surfaces/message/index.ts @@ -1,2 +1,2 @@ -export { UiKitParserMessage, MessageSurfaceLayout } from './UiKitParserMessage'; +export { UiKitParserMessage, type MessageSurfaceLayout } from './UiKitParserMessage'; export { uiKitMessage } from './uiKitMessage'; diff --git a/packages/ui-kit/src/surfaces/modal/index.ts b/packages/ui-kit/src/surfaces/modal/index.ts index 30deee80f876e..a002c82b2d0d1 100644 --- a/packages/ui-kit/src/surfaces/modal/index.ts +++ b/packages/ui-kit/src/surfaces/modal/index.ts @@ -1,3 +1,3 @@ -export { ModalView, isModalView } from './ModalView'; -export { ModalSurfaceLayout, UiKitParserModal } from './UiKitParserModal'; +export { type ModalView, isModalView } from './ModalView'; +export { type ModalSurfaceLayout, UiKitParserModal } from './UiKitParserModal'; export { uiKitModal } from './uiKitModal'; diff --git a/packages/ui-voip/src/definitions/index.ts b/packages/ui-voip/src/definitions/index.ts index de31860fccc37..7f6fd601f510d 100644 --- a/packages/ui-voip/src/definitions/index.ts +++ b/packages/ui-voip/src/definitions/index.ts @@ -1 +1 @@ -export * from './IceServer'; +export type * from './IceServer';