diff --git a/apps/admin/.eslintrc.cjs b/apps/admin/.eslintrc.cjs index d6a1fc833..5a75536f7 100644 --- a/apps/admin/.eslintrc.cjs +++ b/apps/admin/.eslintrc.cjs @@ -3,7 +3,6 @@ module.exports = { extends: ["@plane/eslint-config/next.js"], ignorePatterns: ["build/**", "dist/**", ".vite/**"], rules: { - "no-duplicate-imports": "off", "import/no-duplicates": ["error", { "prefer-inline": false }], "import/consistent-type-specifier-style": ["error", "prefer-top-level"], "@typescript-eslint/no-import-type-side-effects": "error", diff --git a/apps/live/src/controllers/document.controller.ts b/apps/live/src/controllers/document.controller.ts index 3b45c4e92..832045766 100644 --- a/apps/live/src/controllers/document.controller.ts +++ b/apps/live/src/controllers/document.controller.ts @@ -5,7 +5,7 @@ import { Controller, Post } from "@plane/decorators"; import { convertHTMLDocumentToAllFormats } from "@plane/editor"; // logger import { logger } from "@plane/logger"; -import { type TConvertDocumentRequestBody } from "@/types"; +import type { TConvertDocumentRequestBody } from "@/types"; // Define the schema with more robust validation const convertDocumentSchema = z.object({ diff --git a/apps/live/src/extensions/force-close-handler.ts b/apps/live/src/extensions/force-close-handler.ts index 522d0909a..5a474cdf6 100644 --- a/apps/live/src/extensions/force-close-handler.ts +++ b/apps/live/src/extensions/force-close-handler.ts @@ -1,15 +1,8 @@ import type { Connection, Extension, Hocuspocus, onConfigurePayload } from "@hocuspocus/server"; import { logger } from "@plane/logger"; import { Redis } from "@/extensions/redis"; -import { - AdminCommand, - CloseCode, - ForceCloseReason, - getForceCloseMessage, - isForceCloseCommand, - type ClientForceCloseMessage, - type ForceCloseCommandData, -} from "@/types/admin-commands"; +import { AdminCommand, CloseCode, getForceCloseMessage, isForceCloseCommand } from "@/types/admin-commands"; +import type { ForceCloseReason, ClientForceCloseMessage, ForceCloseCommandData } from "@/types/admin-commands"; /** * Extension to handle force close commands from other servers via Redis admin channel diff --git a/apps/live/src/extensions/redis.ts b/apps/live/src/extensions/redis.ts index 66c728f2b..ece29671b 100644 --- a/apps/live/src/extensions/redis.ts +++ b/apps/live/src/extensions/redis.ts @@ -1,5 +1,6 @@ import { Redis as HocuspocusRedis } from "@hocuspocus/extension-redis"; -import { OutgoingMessage, type onConfigurePayload } from "@hocuspocus/server"; +import { OutgoingMessage } from "@hocuspocus/server"; +import type { onConfigurePayload } from "@hocuspocus/server"; import { logger } from "@plane/logger"; import { AppError } from "@/lib/errors"; import { redisManager } from "@/redis"; diff --git a/apps/live/src/lib/errors.ts b/apps/live/src/lib/errors.ts index 480d4317b..a8b8270dc 100644 --- a/apps/live/src/lib/errors.ts +++ b/apps/live/src/lib/errors.ts @@ -1,4 +1,4 @@ -import { AxiosError } from "axios"; +import type { AxiosError } from "axios"; /** * Application error class that sanitizes and standardizes errors across the app. diff --git a/apps/live/src/lib/stateless.ts b/apps/live/src/lib/stateless.ts index 2f74f0e94..1692164d2 100644 --- a/apps/live/src/lib/stateless.ts +++ b/apps/live/src/lib/stateless.ts @@ -1,5 +1,6 @@ import type { onStatelessPayload } from "@hocuspocus/server"; -import { DocumentCollaborativeEvents, type TDocumentEventsServer } from "@plane/editor/lib"; +import { DocumentCollaborativeEvents } from "@plane/editor/lib"; +import type { TDocumentEventsServer } from "@plane/editor/lib"; /** * Broadcast the client event to all the clients so that they can update their state diff --git a/apps/live/src/server.ts b/apps/live/src/server.ts index 1535844fe..59e5ec01b 100644 --- a/apps/live/src/server.ts +++ b/apps/live/src/server.ts @@ -1,8 +1,9 @@ -import { Server as HttpServer } from "http"; -import { type Hocuspocus } from "@hocuspocus/server"; +import type { Server as HttpServer } from "http"; +import type { Hocuspocus } from "@hocuspocus/server"; import compression from "compression"; import cors from "cors"; -import express, { Express, Request, Response, Router } from "express"; +import type { Express, Request, Response, Router } from "express"; +import express from "express"; import expressWs from "express-ws"; import helmet from "helmet"; // plane imports diff --git a/apps/live/src/services/api.service.ts b/apps/live/src/services/api.service.ts index 8c2cb2e31..68eb52b38 100644 --- a/apps/live/src/services/api.service.ts +++ b/apps/live/src/services/api.service.ts @@ -1,4 +1,5 @@ -import axios, { AxiosInstance } from "axios"; +import type { AxiosInstance } from "axios"; +import axios from "axios"; import { env } from "@/env"; import { AppError } from "@/lib/errors"; diff --git a/apps/live/src/services/page/core.service.ts b/apps/live/src/services/page/core.service.ts index ca4d5d28b..04a064091 100644 --- a/apps/live/src/services/page/core.service.ts +++ b/apps/live/src/services/page/core.service.ts @@ -1,5 +1,5 @@ import { logger } from "@plane/logger"; -import { TPage } from "@plane/types"; +import type { TPage } from "@plane/types"; // services import { AppError } from "@/lib/errors"; import { APIService } from "../api.service"; diff --git a/apps/live/src/utils/broadcast-error.ts b/apps/live/src/utils/broadcast-error.ts index 3dfa9da41..ff1c07fc7 100644 --- a/apps/live/src/utils/broadcast-error.ts +++ b/apps/live/src/utils/broadcast-error.ts @@ -1,4 +1,4 @@ -import { type Hocuspocus } from "@hocuspocus/server"; +import type { Hocuspocus } from "@hocuspocus/server"; import { createRealtimeEvent } from "@plane/editor"; import { logger } from "@plane/logger"; import type { FetchPayloadWithContext, StorePayloadWithContext } from "@/types"; diff --git a/apps/live/src/utils/broadcast-message.ts b/apps/live/src/utils/broadcast-message.ts index 7c9a3ced6..c60ce9ac7 100644 --- a/apps/live/src/utils/broadcast-message.ts +++ b/apps/live/src/utils/broadcast-message.ts @@ -1,5 +1,5 @@ -import { Hocuspocus } from "@hocuspocus/server"; -import { BroadcastedEvent } from "@plane/editor"; +import type { Hocuspocus } from "@hocuspocus/server"; +import type { BroadcastedEvent } from "@plane/editor"; import { logger } from "@plane/logger"; import { Redis } from "@/extensions/redis"; import { AppError } from "@/lib/errors"; diff --git a/apps/space/.eslintrc.cjs b/apps/space/.eslintrc.cjs index af3135e6a..5a75536f7 100644 --- a/apps/space/.eslintrc.cjs +++ b/apps/space/.eslintrc.cjs @@ -1,14 +1,9 @@ module.exports = { root: true, extends: ["@plane/eslint-config/next.js"], - ignorePatterns: [ - "build/**", - "dist/**", - ".vite/**", - ], + ignorePatterns: ["build/**", "dist/**", ".vite/**"], rules: { - "no-duplicate-imports": "off", - "import/no-duplicates": ["error", {"prefer-inline": false}], + "import/no-duplicates": ["error", { "prefer-inline": false }], "import/consistent-type-specifier-style": ["error", "prefer-top-level"], "@typescript-eslint/no-import-type-side-effects": "error", "@typescript-eslint/consistent-type-imports": [ @@ -21,5 +16,3 @@ module.exports = { ], }, }; - - diff --git a/apps/web/.eslintrc.cjs b/apps/web/.eslintrc.cjs index d6a1fc833..5a75536f7 100644 --- a/apps/web/.eslintrc.cjs +++ b/apps/web/.eslintrc.cjs @@ -3,7 +3,6 @@ module.exports = { extends: ["@plane/eslint-config/next.js"], ignorePatterns: ["build/**", "dist/**", ".vite/**"], rules: { - "no-duplicate-imports": "off", "import/no-duplicates": ["error", { "prefer-inline": false }], "import/consistent-type-specifier-style": ["error", "prefer-top-level"], "@typescript-eslint/no-import-type-side-effects": "error", diff --git a/apps/web/core/local-db/worker/wa-sqlite/src/types/index.d.ts b/apps/web/core/local-db/worker/wa-sqlite/src/types/index.d.ts index d34552b93..54da72fdd 100644 --- a/apps/web/core/local-db/worker/wa-sqlite/src/types/index.d.ts +++ b/apps/web/core/local-db/worker/wa-sqlite/src/types/index.d.ts @@ -1254,7 +1254,6 @@ declare module "wa-sqlite/src/examples/IndexedDbVFS.js" { /** @ignore */ declare module "wa-sqlite/src/examples/MemoryVFS.js" { - // eslint-disable-next-line no-duplicate-imports import * as VFS from "wa-sqlite/src/VFS.js"; /** @ignore */ export class MemoryVFS extends VFS.Base { diff --git a/packages/constants/src/analytics/common.ts b/packages/constants/src/analytics/common.ts index 2590036c2..a51ceac4d 100644 --- a/packages/constants/src/analytics/common.ts +++ b/packages/constants/src/analytics/common.ts @@ -1,4 +1,5 @@ -import { ChartXAxisProperty, ChartYAxisMetric, TAnalyticsTabsBase } from "@plane/types"; +import type { TAnalyticsTabsBase } from "@plane/types"; +import { ChartXAxisProperty, ChartYAxisMetric } from "@plane/types"; export interface IInsightField { key: string; diff --git a/packages/constants/src/chart.ts b/packages/constants/src/chart.ts index 8bffef4d6..67141cd57 100644 --- a/packages/constants/src/chart.ts +++ b/packages/constants/src/chart.ts @@ -1,4 +1,5 @@ -import { ChartXAxisProperty, TChartColorScheme } from "@plane/types"; +import type { TChartColorScheme } from "@plane/types"; +import { ChartXAxisProperty } from "@plane/types"; export const LABEL_CLASSNAME = "uppercase text-custom-text-300/60 text-sm tracking-wide"; export const AXIS_LABEL_CLASSNAME = "uppercase text-custom-text-300/60 text-sm tracking-wide"; diff --git a/packages/constants/src/dashboard.ts b/packages/constants/src/dashboard.ts index d7a3ae611..f79bb7c41 100644 --- a/packages/constants/src/dashboard.ts +++ b/packages/constants/src/dashboard.ts @@ -1,5 +1,5 @@ // types -import { TIssuesListTypes } from "@plane/types"; +import type { TIssuesListTypes } from "@plane/types"; export enum EDurationFilters { NONE = "none", diff --git a/packages/constants/src/estimates.ts b/packages/constants/src/estimates.ts index 34e04e562..092b6b0fb 100644 --- a/packages/constants/src/estimates.ts +++ b/packages/constants/src/estimates.ts @@ -1,5 +1,5 @@ // plane imports -import { TEstimateSystems } from "@plane/types"; +import type { TEstimateSystems } from "@plane/types"; export const MAX_ESTIMATE_POINT_INPUT_LENGTH = 20; diff --git a/packages/constants/src/event-tracker/core.ts b/packages/constants/src/event-tracker/core.ts index 362cafd59..e2d305052 100644 --- a/packages/constants/src/event-tracker/core.ts +++ b/packages/constants/src/event-tracker/core.ts @@ -1,4 +1,4 @@ -import { EProductSubscriptionEnum } from "@plane/types"; +import type { EProductSubscriptionEnum } from "@plane/types"; /** * =========================================================================== diff --git a/packages/constants/src/intake.ts b/packages/constants/src/intake.ts index 6bf211b50..2dd5fe6ae 100644 --- a/packages/constants/src/intake.ts +++ b/packages/constants/src/intake.ts @@ -1,4 +1,5 @@ -import { EInboxIssueStatus, TInboxIssueStatus } from "@plane/types"; +import type { TInboxIssueStatus } from "@plane/types"; +import { EInboxIssueStatus } from "@plane/types"; export const INBOX_STATUS: { key: string; diff --git a/packages/constants/src/issue/common.ts b/packages/constants/src/issue/common.ts index e19a752b2..43460b051 100644 --- a/packages/constants/src/issue/common.ts +++ b/packages/constants/src/issue/common.ts @@ -1,4 +1,4 @@ -import { +import type { TIssueGroupByOptions, TIssueOrderByOptions, IIssueDisplayProperties, diff --git a/packages/constants/src/issue/filter.ts b/packages/constants/src/issue/filter.ts index 61fcccc3b..54775ac55 100644 --- a/packages/constants/src/issue/filter.ts +++ b/packages/constants/src/issue/filter.ts @@ -1,17 +1,14 @@ -import { - EIssuesStoreType, +import type { IIssueFilterOptions, ILayoutDisplayFiltersOptions, TIssueActivityComment, TWorkItemFilterProperty, } from "@plane/types"; -import { - TIssueFilterPriorityObject, - ISSUE_DISPLAY_PROPERTIES_KEYS, - SUB_ISSUES_DISPLAY_PROPERTIES_KEYS, -} from "./common"; +import { EIssuesStoreType } from "@plane/types"; +import type { TIssueFilterPriorityObject } from "./common"; +import { ISSUE_DISPLAY_PROPERTIES_KEYS, SUB_ISSUES_DISPLAY_PROPERTIES_KEYS } from "./common"; -import { TIssueLayout } from "./layout"; +import type { TIssueLayout } from "./layout"; export type TIssueFilterKeys = "priority" | "state" | "labels"; diff --git a/packages/constants/src/issue/modal.ts b/packages/constants/src/issue/modal.ts index c2697ca9d..0a356ddf1 100644 --- a/packages/constants/src/issue/modal.ts +++ b/packages/constants/src/issue/modal.ts @@ -1,5 +1,5 @@ // plane imports -import { TIssue } from "@plane/types"; +import type { TIssue } from "@plane/types"; export const DEFAULT_WORK_ITEM_FORM_VALUES: Partial = { project_id: "", diff --git a/packages/constants/src/module.ts b/packages/constants/src/module.ts index 16a332303..1d9a7ab96 100644 --- a/packages/constants/src/module.ts +++ b/packages/constants/src/module.ts @@ -1,5 +1,5 @@ // types -import { TModuleLayoutOptions, TModuleOrderByOptions, TModuleStatus } from "@plane/types"; +import type { TModuleLayoutOptions, TModuleOrderByOptions, TModuleStatus } from "@plane/types"; export const MODULE_STATUS_COLORS: { [key in TModuleStatus]: string; diff --git a/packages/constants/src/notification.ts b/packages/constants/src/notification.ts index 793a1fa92..6d2aec2bd 100644 --- a/packages/constants/src/notification.ts +++ b/packages/constants/src/notification.ts @@ -1,4 +1,4 @@ -import { TUnreadNotificationsCount } from "@plane/types"; +import type { TUnreadNotificationsCount } from "@plane/types"; export enum ENotificationTab { ALL = "all", diff --git a/packages/constants/src/payment.ts b/packages/constants/src/payment.ts index c65043fc0..1c08f45a9 100644 --- a/packages/constants/src/payment.ts +++ b/packages/constants/src/payment.ts @@ -1,4 +1,5 @@ -import { EProductSubscriptionEnum, IPaymentProduct, TBillingFrequency, TProductBillingFrequency } from "@plane/types"; +import type { IPaymentProduct, TBillingFrequency, TProductBillingFrequency } from "@plane/types"; +import { EProductSubscriptionEnum } from "@plane/types"; /** * Default billing frequency for each product subscription type diff --git a/packages/constants/src/project.ts b/packages/constants/src/project.ts index 590dbb89e..b7dd9d664 100644 --- a/packages/constants/src/project.ts +++ b/packages/constants/src/project.ts @@ -1,5 +1,5 @@ // plane imports -import { IProject, TProjectAppliedDisplayFilterKeys, TProjectOrderByOptions } from "@plane/types"; +import type { IProject, TProjectAppliedDisplayFilterKeys, TProjectOrderByOptions } from "@plane/types"; // local imports import { RANDOM_EMOJI_CODES } from "./emoji"; diff --git a/packages/constants/src/rich-filters/operator-labels/core.ts b/packages/constants/src/rich-filters/operator-labels/core.ts index 39f902ae3..ae7ccb23d 100644 --- a/packages/constants/src/rich-filters/operator-labels/core.ts +++ b/packages/constants/src/rich-filters/operator-labels/core.ts @@ -1,10 +1,5 @@ -import { - CORE_EQUALITY_OPERATOR, - CORE_COLLECTION_OPERATOR, - CORE_COMPARISON_OPERATOR, - TCoreSupportedOperators, - TCoreSupportedDateFilterOperators, -} from "@plane/types"; +import type { TCoreSupportedOperators, TCoreSupportedDateFilterOperators } from "@plane/types"; +import { CORE_EQUALITY_OPERATOR, CORE_COLLECTION_OPERATOR, CORE_COMPARISON_OPERATOR } from "@plane/types"; /** * Core operator labels diff --git a/packages/constants/src/rich-filters/operator-labels/extended.ts b/packages/constants/src/rich-filters/operator-labels/extended.ts index 349baeb81..5f4e7514d 100644 --- a/packages/constants/src/rich-filters/operator-labels/extended.ts +++ b/packages/constants/src/rich-filters/operator-labels/extended.ts @@ -1,4 +1,4 @@ -import { TExtendedSupportedOperators } from "@plane/types"; +import type { TExtendedSupportedOperators } from "@plane/types"; /** * Extended operator labels diff --git a/packages/constants/src/rich-filters/operator-labels/index.ts b/packages/constants/src/rich-filters/operator-labels/index.ts index 8098b17e0..24d428e54 100644 --- a/packages/constants/src/rich-filters/operator-labels/index.ts +++ b/packages/constants/src/rich-filters/operator-labels/index.ts @@ -1,4 +1,4 @@ -import { TAllAvailableOperatorsForDisplay, TAllAvailableDateFilterOperatorsForDisplay } from "@plane/types"; +import type { TAllAvailableOperatorsForDisplay, TAllAvailableDateFilterOperatorsForDisplay } from "@plane/types"; import { CORE_OPERATOR_LABELS_MAP, CORE_DATE_OPERATOR_LABELS_MAP } from "./core"; import { EXTENDED_OPERATOR_LABELS_MAP, diff --git a/packages/constants/src/rich-filters/option.ts b/packages/constants/src/rich-filters/option.ts index 8230d2f19..69e66a32d 100644 --- a/packages/constants/src/rich-filters/option.ts +++ b/packages/constants/src/rich-filters/option.ts @@ -1,4 +1,4 @@ -import { TExternalFilter } from "@plane/types"; +import type { TExternalFilter } from "@plane/types"; /** * Filter config options. diff --git a/packages/constants/src/state.ts b/packages/constants/src/state.ts index ba7ddd12d..326834aca 100644 --- a/packages/constants/src/state.ts +++ b/packages/constants/src/state.ts @@ -1,4 +1,4 @@ -import { TStateGroups } from "@plane/types"; +import type { TStateGroups } from "@plane/types"; export type TDraggableData = { groupKey: TStateGroups; diff --git a/packages/constants/src/workspace.ts b/packages/constants/src/workspace.ts index e2e398968..15aee9d82 100644 --- a/packages/constants/src/workspace.ts +++ b/packages/constants/src/workspace.ts @@ -1,4 +1,5 @@ -import { TStaticViewTypes, IWorkspaceSearchResults, EUserWorkspaceRoles } from "@plane/types"; +import type { TStaticViewTypes, IWorkspaceSearchResults } from "@plane/types"; +import { EUserWorkspaceRoles } from "@plane/types"; export const ORGANIZATION_SIZE = ["Just myself", "2-10", "11-50", "51-200", "201-500", "500+"]; diff --git a/packages/decorators/src/rest.ts b/packages/decorators/src/rest.ts index bfad3540b..7de1d92e4 100644 --- a/packages/decorators/src/rest.ts +++ b/packages/decorators/src/rest.ts @@ -1,5 +1,5 @@ import "reflect-metadata"; -import { RequestHandler } from "express"; +import type { RequestHandler } from "express"; // Define valid HTTP methods type RestMethod = "get" | "post" | "put" | "patch" | "delete"; diff --git a/packages/editor/src/ce/components/document-editor-side-effects.ts b/packages/editor/src/ce/components/document-editor-side-effects.ts index 36a180a12..663fd927b 100644 --- a/packages/editor/src/ce/components/document-editor-side-effects.ts +++ b/packages/editor/src/ce/components/document-editor-side-effects.ts @@ -1,4 +1,4 @@ -import { type Editor } from "@tiptap/core"; +import type { Editor } from "@tiptap/core"; import type { ReactElement } from "react"; import type { IEditorPropsExtended } from "@/types"; diff --git a/packages/editor/src/ce/components/link-container.tsx b/packages/editor/src/ce/components/link-container.tsx index dcbedc088..a31a8c110 100644 --- a/packages/editor/src/ce/components/link-container.tsx +++ b/packages/editor/src/ce/components/link-container.tsx @@ -1,4 +1,4 @@ -import { Editor } from "@tiptap/core"; +import type { Editor } from "@tiptap/core"; import { LinkViewContainer } from "@/components/editors/link-view-container"; export const LinkContainer = ({ diff --git a/packages/editor/src/ce/constants/assets.ts b/packages/editor/src/ce/constants/assets.ts index 12b89b3ab..364b60cba 100644 --- a/packages/editor/src/ce/constants/assets.ts +++ b/packages/editor/src/ce/constants/assets.ts @@ -1,6 +1,6 @@ // helpers -import { TAssetMetaDataRecord } from "@/helpers/assets"; +import type { TAssetMetaDataRecord } from "@/helpers/assets"; // local imports -import { ADDITIONAL_EXTENSIONS } from "./extensions"; +import type { ADDITIONAL_EXTENSIONS } from "./extensions"; export const ADDITIONAL_ASSETS_META_DATA_RECORD: Partial> = {}; diff --git a/packages/editor/src/ce/constants/utility.ts b/packages/editor/src/ce/constants/utility.ts index eedffda97..767e3ea2e 100644 --- a/packages/editor/src/ce/constants/utility.ts +++ b/packages/editor/src/ce/constants/utility.ts @@ -1,5 +1,6 @@ // plane imports -import { ADDITIONAL_EXTENSIONS, CORE_EXTENSIONS } from "@plane/utils"; +import type { ADDITIONAL_EXTENSIONS } from "@plane/utils"; +import { CORE_EXTENSIONS } from "@plane/utils"; // plane editor imports import type { ExtensionFileSetStorageKey } from "@/plane-editor/types/storage"; diff --git a/packages/editor/src/ce/extensions/core/without-props.ts b/packages/editor/src/ce/extensions/core/without-props.ts index 0debff0ea..7689c54c2 100644 --- a/packages/editor/src/ce/extensions/core/without-props.ts +++ b/packages/editor/src/ce/extensions/core/without-props.ts @@ -1,3 +1,3 @@ -import { Extensions } from "@tiptap/core"; +import type { Extensions } from "@tiptap/core"; export const CoreEditorAdditionalExtensionsWithoutProps: Extensions = []; diff --git a/packages/editor/src/ce/extensions/rich-text-extensions.tsx b/packages/editor/src/ce/extensions/rich-text-extensions.tsx index 7ade9e618..204c0435b 100644 --- a/packages/editor/src/ce/extensions/rich-text-extensions.tsx +++ b/packages/editor/src/ce/extensions/rich-text-extensions.tsx @@ -1,8 +1,8 @@ -import { AnyExtension, Extensions } from "@tiptap/core"; +import type { AnyExtension, Extensions } from "@tiptap/core"; // extensions import { SlashCommands } from "@/extensions/slash-commands/root"; // types -import { IEditorProps, TExtensions } from "@/types"; +import type { IEditorProps, TExtensions } from "@/types"; export type TRichTextEditorAdditionalExtensionsProps = Pick< IEditorProps, diff --git a/packages/editor/src/core/components/editors/document/editor.tsx b/packages/editor/src/core/components/editors/document/editor.tsx index 6e51cb2b2..a4adf49f3 100644 --- a/packages/editor/src/core/components/editors/document/editor.tsx +++ b/packages/editor/src/core/components/editors/document/editor.tsx @@ -1,5 +1,6 @@ -import { Extensions } from "@tiptap/core"; -import { forwardRef, MutableRefObject, useMemo } from "react"; +import type { Extensions } from "@tiptap/core"; +import type { MutableRefObject } from "react"; +import { forwardRef, useMemo } from "react"; // plane imports import { cn } from "@plane/utils"; // components @@ -15,7 +16,7 @@ import { useEditor } from "@/hooks/use-editor"; // plane editor extensions import { DocumentEditorAdditionalExtensions } from "@/plane-editor/extensions"; // types -import { EditorRefApi, IDocumentEditorProps } from "@/types"; +import type { EditorRefApi, IDocumentEditorProps } from "@/types"; const DocumentEditor = (props: IDocumentEditorProps) => { const { diff --git a/packages/editor/src/core/components/editors/document/page-renderer.tsx b/packages/editor/src/core/components/editors/document/page-renderer.tsx index dfed17858..c32646825 100644 --- a/packages/editor/src/core/components/editors/document/page-renderer.tsx +++ b/packages/editor/src/core/components/editors/document/page-renderer.tsx @@ -1,4 +1,4 @@ -import { Editor } from "@tiptap/react"; +import type { Editor } from "@tiptap/react"; // plane imports import { cn } from "@plane/utils"; // components diff --git a/packages/editor/src/core/components/editors/editor-container.tsx b/packages/editor/src/core/components/editors/editor-container.tsx index dad2b7f79..b2b7309c7 100644 --- a/packages/editor/src/core/components/editors/editor-container.tsx +++ b/packages/editor/src/core/components/editors/editor-container.tsx @@ -1,5 +1,6 @@ import type { Editor } from "@tiptap/react"; -import { FC, ReactNode, useRef } from "react"; +import type { FC, ReactNode } from "react"; +import { useRef } from "react"; // plane utils import { cn } from "@plane/utils"; // constants @@ -8,7 +9,7 @@ import { CORE_EXTENSIONS } from "@/constants/extension"; // components import { LinkContainer } from "@/plane-editor/components/link-container"; // types -import { TDisplayConfig } from "@/types"; +import type { TDisplayConfig } from "@/types"; type Props = { children: ReactNode; diff --git a/packages/editor/src/core/components/editors/editor-content.tsx b/packages/editor/src/core/components/editors/editor-content.tsx index 0de342ad3..623dc5546 100644 --- a/packages/editor/src/core/components/editors/editor-content.tsx +++ b/packages/editor/src/core/components/editors/editor-content.tsx @@ -1,5 +1,6 @@ -import { type Editor, EditorContent } from "@tiptap/react"; -import { FC, ReactNode } from "react"; +import { EditorContent } from "@tiptap/react"; +import type { Editor } from "@tiptap/react"; +import type { FC, ReactNode } from "react"; type Props = { children?: ReactNode; diff --git a/packages/editor/src/core/components/editors/editor-wrapper.tsx b/packages/editor/src/core/components/editors/editor-wrapper.tsx index 2ef07631d..617cb3b15 100644 --- a/packages/editor/src/core/components/editors/editor-wrapper.tsx +++ b/packages/editor/src/core/components/editors/editor-wrapper.tsx @@ -1,4 +1,4 @@ -import { Editor, Extensions } from "@tiptap/core"; +import type { Editor, Extensions } from "@tiptap/core"; // components import { EditorContainer } from "@/components/editors"; // constants @@ -7,7 +7,7 @@ import { DEFAULT_DISPLAY_CONFIG } from "@/constants/config"; import { getEditorClassNames } from "@/helpers/common"; import { useEditor } from "@/hooks/use-editor"; // types -import { IEditorProps } from "@/types"; +import type { IEditorProps } from "@/types"; import { EditorContentWrapper } from "./editor-content"; type Props = IEditorProps & { diff --git a/packages/editor/src/core/components/editors/link-view-container.tsx b/packages/editor/src/core/components/editors/link-view-container.tsx index 3f7cc7f2a..580093079 100644 --- a/packages/editor/src/core/components/editors/link-view-container.tsx +++ b/packages/editor/src/core/components/editors/link-view-container.tsx @@ -1,9 +1,12 @@ import { autoUpdate, flip, hide, shift, useDismiss, useFloating, useInteractions } from "@floating-ui/react"; -import { Editor, useEditorState } from "@tiptap/react"; -import { FC, useCallback, useEffect, useRef, useState } from "react"; +import type { Editor } from "@tiptap/react"; +import { useEditorState } from "@tiptap/react"; +import type { FC } from "react"; +import { useCallback, useEffect, useRef, useState } from "react"; // components -import { LinkView, LinkViewProps } from "@/components/links"; +import type { LinkViewProps } from "@/components/links"; +import { LinkView } from "@/components/links"; type Props = { editor: Editor; diff --git a/packages/editor/src/core/components/editors/lite-text/editor.tsx b/packages/editor/src/core/components/editors/lite-text/editor.tsx index df89521ae..d4dccd996 100644 --- a/packages/editor/src/core/components/editors/lite-text/editor.tsx +++ b/packages/editor/src/core/components/editors/lite-text/editor.tsx @@ -4,7 +4,7 @@ import { EditorWrapper } from "@/components/editors/editor-wrapper"; // extensions import { EnterKeyExtension } from "@/extensions"; // types -import { EditorRefApi, ILiteTextEditorProps } from "@/types"; +import type { EditorRefApi, ILiteTextEditorProps } from "@/types"; const LiteTextEditor: React.FC = (props) => { const { onEnterKeyPress, disabledExtensions, extensions: externalExtensions = [] } = props; diff --git a/packages/editor/src/core/components/editors/rich-text/editor.tsx b/packages/editor/src/core/components/editors/rich-text/editor.tsx index 40a2b0c0b..2f1ad1ca7 100644 --- a/packages/editor/src/core/components/editors/rich-text/editor.tsx +++ b/packages/editor/src/core/components/editors/rich-text/editor.tsx @@ -7,7 +7,7 @@ import { SideMenuExtension } from "@/extensions"; // plane editor imports import { RichTextEditorAdditionalExtensions } from "@/plane-editor/extensions/rich-text-extensions"; // types -import { EditorRefApi, IRichTextEditorProps } from "@/types"; +import type { EditorRefApi, IRichTextEditorProps } from "@/types"; const RichTextEditor: React.FC = (props) => { const { diff --git a/packages/editor/src/core/components/links/link-edit-view.tsx b/packages/editor/src/core/components/links/link-edit-view.tsx index 4446b7d33..34e4eb2cf 100644 --- a/packages/editor/src/core/components/links/link-edit-view.tsx +++ b/packages/editor/src/core/components/links/link-edit-view.tsx @@ -1,8 +1,8 @@ -import { Node } from "@tiptap/pm/model"; +import type { Node } from "@tiptap/pm/model"; import { Link2Off } from "lucide-react"; import { useCallback, useEffect, useRef, useState } from "react"; // components -import { LinkViewProps, LinkViews } from "@/components/links"; +import type { LinkViewProps, LinkViews } from "@/components/links"; // helpers import { isValidHttpUrl } from "@/helpers/common"; diff --git a/packages/editor/src/core/components/links/link-preview.tsx b/packages/editor/src/core/components/links/link-preview.tsx index dd41f2306..65803e37b 100644 --- a/packages/editor/src/core/components/links/link-preview.tsx +++ b/packages/editor/src/core/components/links/link-preview.tsx @@ -1,6 +1,6 @@ import { Copy, GlobeIcon, Link2Off, PencilIcon } from "lucide-react"; // components -import { LinkViewProps, LinkViews } from "@/components/links"; +import type { LinkViewProps, LinkViews } from "@/components/links"; export const LinkPreview = ({ viewProps, diff --git a/packages/editor/src/core/components/links/link-view.tsx b/packages/editor/src/core/components/links/link-view.tsx index bd29071fa..ab04ab8d8 100644 --- a/packages/editor/src/core/components/links/link-view.tsx +++ b/packages/editor/src/core/components/links/link-view.tsx @@ -1,5 +1,6 @@ -import { Editor } from "@tiptap/react"; -import { CSSProperties, useEffect, useState } from "react"; +import type { Editor } from "@tiptap/react"; +import type { CSSProperties } from "react"; +import { useEffect, useState } from "react"; // components import { LinkEditView, LinkPreview } from "@/components/links"; diff --git a/packages/editor/src/core/components/menus/ai-menu.tsx b/packages/editor/src/core/components/menus/ai-menu.tsx index e268aed05..14d6474a2 100644 --- a/packages/editor/src/core/components/menus/ai-menu.tsx +++ b/packages/editor/src/core/components/menus/ai-menu.tsx @@ -1,5 +1,6 @@ import { useCallback, useEffect, useRef, useState } from "react"; -import tippy, { type Instance } from "tippy.js"; +import tippy from "tippy.js"; +import type { Instance } from "tippy.js"; // plane utils import { cn } from "@plane/utils"; // types diff --git a/packages/editor/src/core/components/menus/block-menu.tsx b/packages/editor/src/core/components/menus/block-menu.tsx index 77ee3350b..014bc372c 100644 --- a/packages/editor/src/core/components/menus/block-menu.tsx +++ b/packages/editor/src/core/components/menus/block-menu.tsx @@ -9,7 +9,8 @@ import { FloatingPortal, } from "@floating-ui/react"; import type { Editor } from "@tiptap/react"; -import { Copy, LucideIcon, Trash2 } from "lucide-react"; +import type { LucideIcon } from "lucide-react"; +import { Copy, Trash2 } from "lucide-react"; import { useCallback, useEffect, useRef, useState } from "react"; import { cn } from "@plane/utils"; // constants diff --git a/packages/editor/src/core/components/menus/bubble-menu/alignment-selector.tsx b/packages/editor/src/core/components/menus/bubble-menu/alignment-selector.tsx index e4aa52a4f..8bd490f8b 100644 --- a/packages/editor/src/core/components/menus/bubble-menu/alignment-selector.tsx +++ b/packages/editor/src/core/components/menus/bubble-menu/alignment-selector.tsx @@ -1,12 +1,13 @@ -import { Editor } from "@tiptap/core"; -import { AlignCenter, AlignLeft, AlignRight, LucideIcon } from "lucide-react"; +import type { Editor } from "@tiptap/core"; +import type { LucideIcon } from "lucide-react"; +import { AlignCenter, AlignLeft, AlignRight } from "lucide-react"; // plane utils import { cn } from "@plane/utils"; // components import { TextAlignItem } from "@/components/menus"; // types -import { TEditorCommands } from "@/types"; -import { EditorStateType } from "./root"; +import type { TEditorCommands } from "@/types"; +import type { EditorStateType } from "./root"; type Props = { editor: Editor; diff --git a/packages/editor/src/core/components/menus/bubble-menu/color-selector.tsx b/packages/editor/src/core/components/menus/bubble-menu/color-selector.tsx index 067b6ce28..41fee1ca4 100644 --- a/packages/editor/src/core/components/menus/bubble-menu/color-selector.tsx +++ b/packages/editor/src/core/components/menus/bubble-menu/color-selector.tsx @@ -1,6 +1,7 @@ import type { Editor } from "@tiptap/react"; import { ALargeSmall, Ban } from "lucide-react"; -import { useMemo, type FC } from "react"; +import { useMemo } from "react"; +import type { FC } from "react"; // plane utils import { cn } from "@plane/utils"; // constants @@ -9,7 +10,7 @@ import { COLORS_LIST } from "@/constants/common"; import { FloatingMenuRoot } from "../floating-menu/root"; import { useFloatingMenu } from "../floating-menu/use-floating-menu"; import { BackgroundColorItem, TextColorItem } from "../menu-items"; -import { EditorStateType } from "./root"; +import type { EditorStateType } from "./root"; type Props = { editor: Editor; diff --git a/packages/editor/src/core/components/menus/bubble-menu/link-selector.tsx b/packages/editor/src/core/components/menus/bubble-menu/link-selector.tsx index a2e9c6bf2..14e93c1ee 100644 --- a/packages/editor/src/core/components/menus/bubble-menu/link-selector.tsx +++ b/packages/editor/src/core/components/menus/bubble-menu/link-selector.tsx @@ -1,6 +1,7 @@ import type { Editor } from "@tiptap/core"; import { Check, Link, Trash2 } from "lucide-react"; -import { FC, useCallback, useRef, useState } from "react"; +import type { FC } from "react"; +import { useCallback, useRef, useState } from "react"; // plane imports import { cn } from "@plane/utils"; // constants diff --git a/packages/editor/src/core/components/menus/bubble-menu/node-selector.tsx b/packages/editor/src/core/components/menus/bubble-menu/node-selector.tsx index a45ce4273..a4e382207 100644 --- a/packages/editor/src/core/components/menus/bubble-menu/node-selector.tsx +++ b/packages/editor/src/core/components/menus/bubble-menu/node-selector.tsx @@ -1,10 +1,11 @@ -import { Editor } from "@tiptap/react"; +import type { Editor } from "@tiptap/react"; import { Check } from "lucide-react"; -import { FC } from "react"; +import type { FC } from "react"; import { ChevronDownIcon } from "@plane/propel/icons"; // plane utils import { cn } from "@plane/utils"; // components +import type { EditorMenuItem } from "@/components/menus"; import { BulletListItem, HeadingOneItem, @@ -18,7 +19,6 @@ import { HeadingFourItem, HeadingFiveItem, HeadingSixItem, - EditorMenuItem, } from "@/components/menus"; // types import type { TEditorCommands } from "@/types"; diff --git a/packages/editor/src/core/components/menus/bubble-menu/root.tsx b/packages/editor/src/core/components/menus/bubble-menu/root.tsx index 002cf0ab6..8700a2c27 100644 --- a/packages/editor/src/core/components/menus/bubble-menu/root.tsx +++ b/packages/editor/src/core/components/menus/bubble-menu/root.tsx @@ -1,16 +1,19 @@ -import { type Editor, isNodeSelection } from "@tiptap/core"; -import { BubbleMenu, type BubbleMenuProps, useEditorState } from "@tiptap/react"; -import { FC, useEffect, useState, useRef } from "react"; +import { isNodeSelection } from "@tiptap/core"; +import type { Editor } from "@tiptap/core"; +import { BubbleMenu, useEditorState } from "@tiptap/react"; +import type { BubbleMenuProps } from "@tiptap/react"; +import type { FC } from "react"; +import { useEffect, useState, useRef } from "react"; // plane utils import { cn } from "@plane/utils"; // components +import type { EditorMenuItem } from "@/components/menus"; import { BackgroundColorItem, BoldItem, BubbleMenuColorSelector, BubbleMenuNodeSelector, CodeItem, - EditorMenuItem, ItalicItem, StrikeThroughItem, TextAlignItem, diff --git a/packages/editor/src/core/components/menus/floating-menu/root.tsx b/packages/editor/src/core/components/menus/floating-menu/root.tsx index a98ea3fea..2e1f59f98 100644 --- a/packages/editor/src/core/components/menus/floating-menu/root.tsx +++ b/packages/editor/src/core/components/menus/floating-menu/root.tsx @@ -1,9 +1,5 @@ -import { - FloatingOverlay, - FloatingPortal, - type UseInteractionsReturn, - type UseFloatingReturn, -} from "@floating-ui/react"; +import { FloatingOverlay, FloatingPortal } from "@floating-ui/react"; +import type { UseInteractionsReturn, UseFloatingReturn } from "@floating-ui/react"; type Props = { children: React.ReactNode; diff --git a/packages/editor/src/core/components/menus/floating-menu/use-floating-menu.ts b/packages/editor/src/core/components/menus/floating-menu/use-floating-menu.ts index dbcf3dfe1..e07d03386 100644 --- a/packages/editor/src/core/components/menus/floating-menu/use-floating-menu.ts +++ b/packages/editor/src/core/components/menus/floating-menu/use-floating-menu.ts @@ -7,9 +7,8 @@ import { autoUpdate, useClick, useRole, - type UseInteractionsReturn, - type UseFloatingReturn, } from "@floating-ui/react"; +import type { UseInteractionsReturn, UseFloatingReturn } from "@floating-ui/react"; import { useState } from "react"; type TArgs = { diff --git a/packages/editor/src/core/components/menus/menu-items.ts b/packages/editor/src/core/components/menus/menu-items.ts index bba9f523f..075b87147 100644 --- a/packages/editor/src/core/components/menus/menu-items.ts +++ b/packages/editor/src/core/components/menus/menu-items.ts @@ -18,12 +18,12 @@ import { Heading5, Heading6, CaseSensitive, - type LucideIcon, MinusSquare, Palette, AlignCenter, LinkIcon, } from "lucide-react"; +import type { LucideIcon } from "lucide-react"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; // helpers @@ -49,7 +49,7 @@ import { unsetLinkEditor, } from "@/helpers/editor-commands"; // types -import { TCommandWithProps, TEditorCommands } from "@/types"; +import type { TCommandWithProps, TEditorCommands } from "@/types"; type isActiveFunction = (params?: TCommandWithProps) => boolean; type commandFunction = (params?: TCommandWithProps) => void; diff --git a/packages/editor/src/core/constants/common.ts b/packages/editor/src/core/constants/common.ts index 8961bcd91..cae55c91b 100644 --- a/packages/editor/src/core/constants/common.ts +++ b/packages/editor/src/core/constants/common.ts @@ -1,3 +1,4 @@ +import type { LucideIcon } from "lucide-react"; import { AlignCenter, AlignLeft, @@ -16,13 +17,12 @@ import { List, ListOrdered, ListTodo, - LucideIcon, Strikethrough, Table, TextQuote, Underline, } from "lucide-react"; -import { TCommandExtraProps, TEditorCommands } from "@/types/editor"; +import type { TCommandExtraProps, TEditorCommands } from "@/types/editor"; export type TEditorTypes = "lite" | "document"; diff --git a/packages/editor/src/core/constants/config.ts b/packages/editor/src/core/constants/config.ts index 922be9ef9..cdca81459 100644 --- a/packages/editor/src/core/constants/config.ts +++ b/packages/editor/src/core/constants/config.ts @@ -1,5 +1,5 @@ // types -import { TDisplayConfig } from "@/types"; +import type { TDisplayConfig } from "@/types"; export const DEFAULT_DISPLAY_CONFIG: TDisplayConfig = { fontSize: "large-font", diff --git a/packages/editor/src/core/constants/document-collaborative-events.ts b/packages/editor/src/core/constants/document-collaborative-events.ts index d602015c2..6859c588a 100644 --- a/packages/editor/src/core/constants/document-collaborative-events.ts +++ b/packages/editor/src/core/constants/document-collaborative-events.ts @@ -1,6 +1,6 @@ -import { EPageAccess } from "@plane/constants"; -import { TPage } from "@plane/types"; -import { CreatePayload, BaseActionPayload } from "@/types"; +import type { EPageAccess } from "@plane/constants"; +import type { TPage } from "@plane/types"; +import type { CreatePayload, BaseActionPayload } from "@/types"; // Define all payload types for each event. export type ArchivedPayload = CreatePayload<{ archived_at: string | null }>; diff --git a/packages/editor/src/core/extensions/callout/block.tsx b/packages/editor/src/core/extensions/callout/block.tsx index b4f0b7085..2471469b0 100644 --- a/packages/editor/src/core/extensions/callout/block.tsx +++ b/packages/editor/src/core/extensions/callout/block.tsx @@ -1,4 +1,5 @@ -import { NodeViewContent, NodeViewProps, NodeViewWrapper } from "@tiptap/react"; +import type { NodeViewProps } from "@tiptap/react"; +import { NodeViewContent, NodeViewWrapper } from "@tiptap/react"; import React, { useState } from "react"; // constants import { COLORS_LIST } from "@/constants/common"; @@ -6,7 +7,8 @@ import { COLORS_LIST } from "@/constants/common"; import { CalloutBlockColorSelector } from "./color-selector"; import { CalloutBlockLogoSelector } from "./logo-selector"; // types -import { ECalloutAttributeNames, TCalloutBlockAttributes } from "./types"; +import type { TCalloutBlockAttributes } from "./types"; +import { ECalloutAttributeNames } from "./types"; // utils import { updateStoredBackgroundColor } from "./utils"; diff --git a/packages/editor/src/core/extensions/callout/extension-config.ts b/packages/editor/src/core/extensions/callout/extension-config.ts index 2fac14316..f7fe0ce97 100644 --- a/packages/editor/src/core/extensions/callout/extension-config.ts +++ b/packages/editor/src/core/extensions/callout/extension-config.ts @@ -1,10 +1,11 @@ import { Node, mergeAttributes } from "@tiptap/core"; -import { MarkdownSerializerState } from "@tiptap/pm/markdown"; +import type { MarkdownSerializerState } from "@tiptap/pm/markdown"; import type { Node as ProseMirrorNode } from "@tiptap/pm/model"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; // types -import { type CustomCalloutExtensionType, ECalloutAttributeNames, type TCalloutBlockAttributes } from "./types"; +import { ECalloutAttributeNames } from "./types"; +import type { CustomCalloutExtensionType, TCalloutBlockAttributes } from "./types"; // utils import { DEFAULT_CALLOUT_BLOCK_ATTRIBUTES } from "./utils"; diff --git a/packages/editor/src/core/extensions/callout/extension.tsx b/packages/editor/src/core/extensions/callout/extension.tsx index d6aaf2490..bb256ca77 100644 --- a/packages/editor/src/core/extensions/callout/extension.tsx +++ b/packages/editor/src/core/extensions/callout/extension.tsx @@ -1,10 +1,12 @@ -import { findParentNodeClosestToPos, type Predicate, ReactNodeViewRenderer } from "@tiptap/react"; +import { findParentNodeClosestToPos, ReactNodeViewRenderer } from "@tiptap/react"; +import type { Predicate } from "@tiptap/react"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; // helpers import { insertEmptyParagraphAtNodeBoundaries } from "@/helpers/insert-empty-paragraph-at-node-boundary"; // local imports -import { CustomCalloutBlock, type CustomCalloutNodeViewProps } from "./block"; +import { CustomCalloutBlock } from "./block"; +import type { CustomCalloutNodeViewProps } from "./block"; import { CustomCalloutExtensionConfig } from "./extension-config"; import type { CustomCalloutExtensionOptions, CustomCalloutExtensionStorage } from "./types"; import { getStoredBackgroundColor, getStoredLogo } from "./utils"; diff --git a/packages/editor/src/core/extensions/callout/logo-selector.tsx b/packages/editor/src/core/extensions/callout/logo-selector.tsx index 717345e68..f4133ae69 100644 --- a/packages/editor/src/core/extensions/callout/logo-selector.tsx +++ b/packages/editor/src/core/extensions/callout/logo-selector.tsx @@ -3,7 +3,7 @@ import { EmojiPicker, EmojiIconPickerTypes, Logo } from "@plane/propel/emoji-ico import type { TLogoProps } from "@plane/types"; import { cn } from "@plane/utils"; // types -import { TCalloutBlockAttributes } from "./types"; +import type { TCalloutBlockAttributes } from "./types"; // utils import { DEFAULT_CALLOUT_BLOCK_ATTRIBUTES, updateStoredLogo } from "./utils"; diff --git a/packages/editor/src/core/extensions/callout/utils.ts b/packages/editor/src/core/extensions/callout/utils.ts index 6d64e0f8a..d6e545dbd 100644 --- a/packages/editor/src/core/extensions/callout/utils.ts +++ b/packages/editor/src/core/extensions/callout/utils.ts @@ -2,12 +2,8 @@ import type { TLogoProps } from "@plane/types"; import { sanitizeHTML } from "@plane/utils"; // types -import { - ECalloutAttributeNames, - TCalloutBlockAttributes, - TCalloutBlockEmojiAttributes, - TCalloutBlockIconAttributes, -} from "./types"; +import type { TCalloutBlockAttributes, TCalloutBlockEmojiAttributes, TCalloutBlockIconAttributes } from "./types"; +import { ECalloutAttributeNames } from "./types"; export const DEFAULT_CALLOUT_BLOCK_ATTRIBUTES: TCalloutBlockAttributes = { [ECalloutAttributeNames.LOGO_IN_USE]: "emoji", diff --git a/packages/editor/src/core/extensions/code/code-block-lowlight.ts b/packages/editor/src/core/extensions/code/code-block-lowlight.ts index 9c2dc14c3..b108614ff 100644 --- a/packages/editor/src/core/extensions/code/code-block-lowlight.ts +++ b/packages/editor/src/core/extensions/code/code-block-lowlight.ts @@ -1,6 +1,7 @@ // import CodeBlock, { CodeBlockOptions } from "@tiptap/extension-code-block"; -import { CodeBlockOptions, CodeBlock } from "./code-block"; +import type { CodeBlockOptions } from "./code-block"; +import { CodeBlock } from "./code-block"; import { LowlightPlugin } from "./lowlight-plugin"; type CodeBlockLowlightOptions = CodeBlockOptions & { diff --git a/packages/editor/src/core/extensions/code/lowlight-plugin.ts b/packages/editor/src/core/extensions/code/lowlight-plugin.ts index 115ea9b06..2705b4068 100644 --- a/packages/editor/src/core/extensions/code/lowlight-plugin.ts +++ b/packages/editor/src/core/extensions/code/lowlight-plugin.ts @@ -1,7 +1,7 @@ // TODO: check all the type errors and fix them import { findChildren } from "@tiptap/core"; -import { Node as ProsemirrorNode } from "@tiptap/pm/model"; +import type { Node as ProsemirrorNode } from "@tiptap/pm/model"; import { Plugin, PluginKey } from "@tiptap/pm/state"; import { Decoration, DecorationSet } from "@tiptap/pm/view"; import highlight from "highlight.js/lib/core"; diff --git a/packages/editor/src/core/extensions/code/utils/replace-code-block-with-text.ts b/packages/editor/src/core/extensions/code/utils/replace-code-block-with-text.ts index daf2c5f05..dbff2f898 100644 --- a/packages/editor/src/core/extensions/code/utils/replace-code-block-with-text.ts +++ b/packages/editor/src/core/extensions/code/utils/replace-code-block-with-text.ts @@ -1,4 +1,5 @@ -import { Editor, findParentNode } from "@tiptap/core"; +import type { Editor } from "@tiptap/core"; +import { findParentNode } from "@tiptap/core"; type ReplaceCodeBlockParams = { editor: Editor; diff --git a/packages/editor/src/core/extensions/custom-image/components/block.tsx b/packages/editor/src/core/extensions/custom-image/components/block.tsx index 8e069d577..a7c68552a 100644 --- a/packages/editor/src/core/extensions/custom-image/components/block.tsx +++ b/packages/editor/src/core/extensions/custom-image/components/block.tsx @@ -3,7 +3,7 @@ import React, { useRef, useState, useCallback, useLayoutEffect, useEffect } from // plane imports import { cn } from "@plane/utils"; // local imports -import { Pixel, TCustomImageAttributes, TCustomImageSize } from "../types"; +import type { Pixel, TCustomImageAttributes, TCustomImageSize } from "../types"; import { ensurePixelString, getImageBlockId } from "../utils"; import type { CustomImageNodeViewProps } from "./node-view"; import { ImageToolbarRoot } from "./toolbar"; diff --git a/packages/editor/src/core/extensions/custom-image/components/node-view.tsx b/packages/editor/src/core/extensions/custom-image/components/node-view.tsx index 07c2592c5..7ccfb9a28 100644 --- a/packages/editor/src/core/extensions/custom-image/components/node-view.tsx +++ b/packages/editor/src/core/extensions/custom-image/components/node-view.tsx @@ -1,4 +1,5 @@ -import { type NodeViewProps, NodeViewWrapper } from "@tiptap/react"; +import { NodeViewWrapper } from "@tiptap/react"; +import type { NodeViewProps } from "@tiptap/react"; import { useEffect, useRef, useState } from "react"; // local imports import type { CustomImageExtensionType, TCustomImageAttributes } from "../types"; diff --git a/packages/editor/src/core/extensions/custom-image/components/upload-status.tsx b/packages/editor/src/core/extensions/custom-image/components/upload-status.tsx index 83242732a..7b6e0a081 100644 --- a/packages/editor/src/core/extensions/custom-image/components/upload-status.tsx +++ b/packages/editor/src/core/extensions/custom-image/components/upload-status.tsx @@ -1,4 +1,4 @@ -import { Editor } from "@tiptap/core"; +import type { Editor } from "@tiptap/core"; import { useEditorState } from "@tiptap/react"; import { useEffect, useRef, useState } from "react"; diff --git a/packages/editor/src/core/extensions/custom-image/components/uploader.tsx b/packages/editor/src/core/extensions/custom-image/components/uploader.tsx index f784621ab..447d3120d 100644 --- a/packages/editor/src/core/extensions/custom-image/components/uploader.tsx +++ b/packages/editor/src/core/extensions/custom-image/components/uploader.tsx @@ -1,12 +1,13 @@ import { ImageIcon } from "lucide-react"; -import { ChangeEvent, useCallback, useEffect, useMemo, useRef } from "react"; +import type { ChangeEvent } from "react"; +import { useCallback, useEffect, useMemo, useRef } from "react"; // plane imports import { cn } from "@plane/utils"; // constants import { ACCEPTED_IMAGE_MIME_TYPES } from "@/constants/config"; import { CORE_EXTENSIONS } from "@/constants/extension"; // helpers -import { EFileError } from "@/helpers/file"; +import type { EFileError } from "@/helpers/file"; // hooks import { useUploader, useDropZone, uploadFirstFileAndInsertRemaining } from "@/hooks/use-file-upload"; // local imports diff --git a/packages/editor/src/core/extensions/custom-image/extension-config.ts b/packages/editor/src/core/extensions/custom-image/extension-config.ts index 1a75a3da9..5ad3b2511 100644 --- a/packages/editor/src/core/extensions/custom-image/extension-config.ts +++ b/packages/editor/src/core/extensions/custom-image/extension-config.ts @@ -3,13 +3,13 @@ import { Image as BaseImageExtension } from "@tiptap/extension-image"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; // local imports -import { - type CustomImageExtensionType, - type CustomImageExtensionStorage, - ECustomImageAttributeNames, - type InsertImageComponentProps, +import { ECustomImageAttributeNames } from "./types"; +import type { CustomImageExtensionOptions, TCustomImageAttributes, + CustomImageExtensionType, + CustomImageExtensionStorage, + InsertImageComponentProps, } from "./types"; import { DEFAULT_CUSTOM_IMAGE_ATTRIBUTES } from "./utils"; diff --git a/packages/editor/src/core/extensions/custom-image/extension.tsx b/packages/editor/src/core/extensions/custom-image/extension.tsx index a97f50512..e43997bfa 100644 --- a/packages/editor/src/core/extensions/custom-image/extension.tsx +++ b/packages/editor/src/core/extensions/custom-image/extension.tsx @@ -8,7 +8,8 @@ import { insertEmptyParagraphAtNodeBoundaries } from "@/helpers/insert-empty-par // types import type { TFileHandler } from "@/types"; // local imports -import { CustomImageNodeView, CustomImageNodeViewProps } from "./components/node-view"; +import type { CustomImageNodeViewProps } from "./components/node-view"; +import { CustomImageNodeView } from "./components/node-view"; import { CustomImageExtensionConfig } from "./extension-config"; import type { CustomImageExtensionOptions, CustomImageExtensionStorage } from "./types"; import { getImageComponentImageFileMap } from "./utils"; diff --git a/packages/editor/src/core/extensions/custom-image/utils.ts b/packages/editor/src/core/extensions/custom-image/utils.ts index 0ce1d4439..0b0d17ffd 100644 --- a/packages/editor/src/core/extensions/custom-image/utils.ts +++ b/packages/editor/src/core/extensions/custom-image/utils.ts @@ -1,7 +1,9 @@ import type { Editor } from "@tiptap/core"; -import { AlignCenter, AlignLeft, AlignRight, type LucideIcon } from "lucide-react"; +import { AlignCenter, AlignLeft, AlignRight } from "lucide-react"; +import type { LucideIcon } from "lucide-react"; // local imports -import { ECustomImageAttributeNames, TCustomImageAlignment, type Pixel, type TCustomImageAttributes } from "./types"; +import { ECustomImageAttributeNames } from "./types"; +import type { TCustomImageAlignment, Pixel, TCustomImageAttributes } from "./types"; export const DEFAULT_CUSTOM_IMAGE_ATTRIBUTES: TCustomImageAttributes = { [ECustomImageAttributeNames.SOURCE]: null, diff --git a/packages/editor/src/core/extensions/custom-link/extension.tsx b/packages/editor/src/core/extensions/custom-link/extension.tsx index d7b746d42..dbc81a2bd 100644 --- a/packages/editor/src/core/extensions/custom-link/extension.tsx +++ b/packages/editor/src/core/extensions/custom-link/extension.tsx @@ -1,5 +1,6 @@ -import { Mark, markPasteRule, mergeAttributes, PasteRuleMatch } from "@tiptap/core"; -import { Plugin } from "@tiptap/pm/state"; +import type { PasteRuleMatch } from "@tiptap/core"; +import { Mark, markPasteRule, mergeAttributes } from "@tiptap/core"; +import type { Plugin } from "@tiptap/pm/state"; import { find, registerCustomProtocol, reset } from "linkifyjs"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; diff --git a/packages/editor/src/core/extensions/custom-link/helpers/autolink.ts b/packages/editor/src/core/extensions/custom-link/helpers/autolink.ts index 3fa14ab49..709969dee 100644 --- a/packages/editor/src/core/extensions/custom-link/helpers/autolink.ts +++ b/packages/editor/src/core/extensions/custom-link/helpers/autolink.ts @@ -1,11 +1,6 @@ -import { - combineTransactionSteps, - findChildrenInRange, - getChangedRanges, - getMarksBetween, - NodeWithPos, -} from "@tiptap/core"; -import { MarkType } from "@tiptap/pm/model"; +import type { NodeWithPos } from "@tiptap/core"; +import { combineTransactionSteps, findChildrenInRange, getChangedRanges, getMarksBetween } from "@tiptap/core"; +import type { MarkType } from "@tiptap/pm/model"; import { Plugin, PluginKey } from "@tiptap/pm/state"; import { find } from "linkifyjs"; diff --git a/packages/editor/src/core/extensions/custom-link/helpers/clickHandler.ts b/packages/editor/src/core/extensions/custom-link/helpers/clickHandler.ts index 72906bc94..c3e1e7994 100644 --- a/packages/editor/src/core/extensions/custom-link/helpers/clickHandler.ts +++ b/packages/editor/src/core/extensions/custom-link/helpers/clickHandler.ts @@ -1,5 +1,5 @@ import { getAttributes } from "@tiptap/core"; -import { MarkType } from "@tiptap/pm/model"; +import type { MarkType } from "@tiptap/pm/model"; import { Plugin, PluginKey } from "@tiptap/pm/state"; type ClickHandlerOptions = { diff --git a/packages/editor/src/core/extensions/custom-link/helpers/pasteHandler.ts b/packages/editor/src/core/extensions/custom-link/helpers/pasteHandler.ts index 475bf28d9..0b73748be 100644 --- a/packages/editor/src/core/extensions/custom-link/helpers/pasteHandler.ts +++ b/packages/editor/src/core/extensions/custom-link/helpers/pasteHandler.ts @@ -1,5 +1,5 @@ -import { Editor } from "@tiptap/core"; -import { MarkType } from "@tiptap/pm/model"; +import type { Editor } from "@tiptap/core"; +import type { MarkType } from "@tiptap/pm/model"; import { Plugin, PluginKey } from "@tiptap/pm/state"; import { find } from "linkifyjs"; diff --git a/packages/editor/src/core/extensions/custom-list-keymap/list-helpers.ts b/packages/editor/src/core/extensions/custom-list-keymap/list-helpers.ts index 547f9f17e..688d070c0 100644 --- a/packages/editor/src/core/extensions/custom-list-keymap/list-helpers.ts +++ b/packages/editor/src/core/extensions/custom-list-keymap/list-helpers.ts @@ -1,6 +1,7 @@ -import { Editor, getNodeType, getNodeAtPosition, isAtEndOfNode, isAtStartOfNode, isNodeActive } from "@tiptap/core"; -import { Node, NodeType } from "@tiptap/pm/model"; -import { EditorState } from "@tiptap/pm/state"; +import type { Editor } from "@tiptap/core"; +import { getNodeType, getNodeAtPosition, isAtEndOfNode, isAtStartOfNode, isNodeActive } from "@tiptap/core"; +import type { Node, NodeType } from "@tiptap/pm/model"; +import type { EditorState } from "@tiptap/pm/state"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; diff --git a/packages/editor/src/core/extensions/emoji/components/emojis-list.tsx b/packages/editor/src/core/extensions/emoji/components/emojis-list.tsx index 6edea4010..0a7c94fe9 100644 --- a/packages/editor/src/core/extensions/emoji/components/emojis-list.tsx +++ b/packages/editor/src/core/extensions/emoji/components/emojis-list.tsx @@ -1,5 +1,5 @@ import { FloatingOverlay } from "@floating-ui/react"; -import { SuggestionKeyDownProps, type SuggestionProps } from "@tiptap/suggestion"; +import type { SuggestionKeyDownProps, SuggestionProps } from "@tiptap/suggestion"; import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from "react"; // plane imports import { useOutsideClickDetector } from "@plane/hooks"; diff --git a/packages/editor/src/core/extensions/emoji/emoji.ts b/packages/editor/src/core/extensions/emoji/emoji.ts index 338573b1c..d2d659328 100644 --- a/packages/editor/src/core/extensions/emoji/emoji.ts +++ b/packages/editor/src/core/extensions/emoji/emoji.ts @@ -10,10 +10,13 @@ import { PasteRule, removeDuplicates, } from "@tiptap/core"; -import { EmojiStorage, emojis, emojiToShortcode, shortcodeToEmoji } from "@tiptap/extension-emoji"; +import type { EmojiStorage } from "@tiptap/extension-emoji"; +import { emojis, emojiToShortcode, shortcodeToEmoji } from "@tiptap/extension-emoji"; import { Fragment } from "@tiptap/pm/model"; -import { Plugin, PluginKey, TextSelection, Transaction } from "@tiptap/pm/state"; -import Suggestion, { SuggestionOptions } from "@tiptap/suggestion"; +import type { Transaction } from "@tiptap/pm/state"; +import { Plugin, PluginKey, TextSelection } from "@tiptap/pm/state"; +import type { SuggestionOptions } from "@tiptap/suggestion"; +import Suggestion from "@tiptap/suggestion"; import emojiRegex from "emoji-regex"; import { isEmojiSupported } from "is-emoji-supported"; // helpers diff --git a/packages/editor/src/core/extensions/emoji/extension.ts b/packages/editor/src/core/extensions/emoji/extension.ts index 18ccfe992..414cef8ce 100644 --- a/packages/editor/src/core/extensions/emoji/extension.ts +++ b/packages/editor/src/core/extensions/emoji/extension.ts @@ -1,7 +1,7 @@ // local imports import { gitHubEmojis, shortcodeToEmoji } from "@tiptap/extension-emoji"; -import { MarkdownSerializerState } from "@tiptap/pm/markdown"; -import { Node as ProseMirrorNode } from "@tiptap/pm/model"; +import type { MarkdownSerializerState } from "@tiptap/pm/markdown"; +import type { Node as ProseMirrorNode } from "@tiptap/pm/model"; import { Emoji } from "./emoji"; import { emojiSuggestion } from "./suggestion"; diff --git a/packages/editor/src/core/extensions/emoji/suggestion.ts b/packages/editor/src/core/extensions/emoji/suggestion.ts index 06ddeb1e6..81d1285f3 100644 --- a/packages/editor/src/core/extensions/emoji/suggestion.ts +++ b/packages/editor/src/core/extensions/emoji/suggestion.ts @@ -1,12 +1,15 @@ import type { EmojiOptions, EmojiStorage } from "@tiptap/extension-emoji"; -import { ReactRenderer, type Editor } from "@tiptap/react"; +import { ReactRenderer } from "@tiptap/react"; +import type { Editor } from "@tiptap/react"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; // helpers import { updateFloatingUIFloaterPosition } from "@/helpers/floating-ui"; -import { CommandListInstance, DROPDOWN_NAVIGATION_KEYS } from "@/helpers/tippy"; +import type { CommandListInstance } from "@/helpers/tippy"; +import { DROPDOWN_NAVIGATION_KEYS } from "@/helpers/tippy"; // local imports -import { type EmojiItem, EmojisListDropdown, EmojisListDropdownProps } from "./components/emojis-list"; +import { EmojisListDropdown } from "./components/emojis-list"; +import type { EmojisListDropdownProps, EmojiItem } from "./components/emojis-list"; import type { ExtendedEmojiStorage } from "./emoji"; const DEFAULT_EMOJIS = ["+1", "-1", "smile", "orange_heart", "eyes"]; diff --git a/packages/editor/src/core/extensions/extensions.ts b/packages/editor/src/core/extensions/extensions.ts index f17d11587..8df1c7ddf 100644 --- a/packages/editor/src/core/extensions/extensions.ts +++ b/packages/editor/src/core/extensions/extensions.ts @@ -1,4 +1,4 @@ -import { Extensions } from "@tiptap/core"; +import type { Extensions } from "@tiptap/core"; import { CharacterCount } from "@tiptap/extension-character-count"; import TaskItem from "@tiptap/extension-task-item"; import TaskList from "@tiptap/extension-task-list"; diff --git a/packages/editor/src/core/extensions/image/extension-config.tsx b/packages/editor/src/core/extensions/image/extension-config.tsx index 7456e3dfb..02091d569 100644 --- a/packages/editor/src/core/extensions/image/extension-config.tsx +++ b/packages/editor/src/core/extensions/image/extension-config.tsx @@ -1,7 +1,7 @@ import { Image as BaseImageExtension } from "@tiptap/extension-image"; // local imports -import { CustomImageExtensionOptions } from "../custom-image/types"; -import { ImageExtensionStorage } from "./extension"; +import type { CustomImageExtensionOptions } from "../custom-image/types"; +import type { ImageExtensionStorage } from "./extension"; export const ImageExtensionConfig = BaseImageExtension.extend< Pick, diff --git a/packages/editor/src/core/extensions/image/extension.tsx b/packages/editor/src/core/extensions/image/extension.tsx index 48649727a..2e4036172 100644 --- a/packages/editor/src/core/extensions/image/extension.tsx +++ b/packages/editor/src/core/extensions/image/extension.tsx @@ -1,12 +1,13 @@ import { ReactNodeViewRenderer } from "@tiptap/react"; // constants -import { CORE_EXTENSIONS } from "@/constants/extension"; +import type { CORE_EXTENSIONS } from "@/constants/extension"; // helpers import { insertEmptyParagraphAtNodeBoundaries } from "@/helpers/insert-empty-paragraph-at-node-boundary"; // types import type { TFileHandler } from "@/types"; // local imports -import { CustomImageNodeView, CustomImageNodeViewProps } from "../custom-image/components/node-view"; +import type { CustomImageNodeViewProps } from "../custom-image/components/node-view"; +import { CustomImageNodeView } from "../custom-image/components/node-view"; import { ImageExtensionConfig } from "./extension-config"; declare module "@tiptap/core" { diff --git a/packages/editor/src/core/extensions/keymap.ts b/packages/editor/src/core/extensions/keymap.ts index a95344691..1a7e9a4ac 100644 --- a/packages/editor/src/core/extensions/keymap.ts +++ b/packages/editor/src/core/extensions/keymap.ts @@ -1,6 +1,7 @@ import { Extension } from "@tiptap/core"; -import { NodeType } from "@tiptap/pm/model"; -import { Plugin, PluginKey, Transaction } from "@tiptap/pm/state"; +import type { NodeType } from "@tiptap/pm/model"; +import type { Transaction } from "@tiptap/pm/state"; +import { Plugin, PluginKey } from "@tiptap/pm/state"; import { canJoin } from "@tiptap/pm/transform"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; diff --git a/packages/editor/src/core/extensions/mentions/extension-config.ts b/packages/editor/src/core/extensions/mentions/extension-config.ts index 6c8f1f904..0887e25bd 100644 --- a/packages/editor/src/core/extensions/mentions/extension-config.ts +++ b/packages/editor/src/core/extensions/mentions/extension-config.ts @@ -1,11 +1,13 @@ import { mergeAttributes } from "@tiptap/core"; -import Mention, { MentionOptions } from "@tiptap/extension-mention"; -import { MarkdownSerializerState } from "@tiptap/pm/markdown"; -import { Node as NodeType } from "@tiptap/pm/model"; +import type { MentionOptions } from "@tiptap/extension-mention"; +import Mention from "@tiptap/extension-mention"; +import type { MarkdownSerializerState } from "@tiptap/pm/markdown"; +import type { Node as NodeType } from "@tiptap/pm/model"; // types -import { TMentionHandler } from "@/types"; +import type { TMentionHandler } from "@/types"; // local types -import { EMentionComponentAttributeNames, TMentionComponentAttributes } from "./types"; +import type { TMentionComponentAttributes } from "./types"; +import { EMentionComponentAttributeNames } from "./types"; export type TMentionExtensionOptions = MentionOptions & { renderComponent: TMentionHandler["renderComponent"]; diff --git a/packages/editor/src/core/extensions/mentions/extension.tsx b/packages/editor/src/core/extensions/mentions/extension.tsx index ad02e4dc1..921667566 100644 --- a/packages/editor/src/core/extensions/mentions/extension.tsx +++ b/packages/editor/src/core/extensions/mentions/extension.tsx @@ -1,10 +1,11 @@ import { ReactNodeViewRenderer } from "@tiptap/react"; // types -import { TMentionHandler } from "@/types"; +import type { TMentionHandler } from "@/types"; // extension config import { CustomMentionExtensionConfig } from "./extension-config"; // node view -import { MentionNodeView, MentionNodeViewProps } from "./mention-node-view"; +import type { MentionNodeViewProps } from "./mention-node-view"; +import { MentionNodeView } from "./mention-node-view"; // utils import { renderMentionsDropdown } from "./utils"; diff --git a/packages/editor/src/core/extensions/mentions/mention-node-view.tsx b/packages/editor/src/core/extensions/mentions/mention-node-view.tsx index 939093fa3..6be87fb57 100644 --- a/packages/editor/src/core/extensions/mentions/mention-node-view.tsx +++ b/packages/editor/src/core/extensions/mentions/mention-node-view.tsx @@ -1,8 +1,10 @@ -import { NodeViewProps, NodeViewWrapper } from "@tiptap/react"; +import type { NodeViewProps } from "@tiptap/react"; +import { NodeViewWrapper } from "@tiptap/react"; // extension config -import { TMentionExtensionOptions } from "./extension-config"; +import type { TMentionExtensionOptions } from "./extension-config"; // extension types -import { EMentionComponentAttributeNames, TMentionComponentAttributes } from "./types"; +import type { TMentionComponentAttributes } from "./types"; +import { EMentionComponentAttributeNames } from "./types"; export type MentionNodeViewProps = NodeViewProps & { node: NodeViewProps["node"] & { diff --git a/packages/editor/src/core/extensions/mentions/mentions-list-dropdown.tsx b/packages/editor/src/core/extensions/mentions/mentions-list-dropdown.tsx index 51881098c..8e7a64b4b 100644 --- a/packages/editor/src/core/extensions/mentions/mentions-list-dropdown.tsx +++ b/packages/editor/src/core/extensions/mentions/mentions-list-dropdown.tsx @@ -10,7 +10,7 @@ import { cn } from "@plane/utils"; // helpers import { DROPDOWN_NAVIGATION_KEYS, getNextValidIndex } from "@/helpers/tippy"; // types -import { TMentionHandler, TMentionSection, TMentionSuggestion } from "@/types"; +import type { TMentionHandler, TMentionSection, TMentionSuggestion } from "@/types"; export type MentionsListDropdownProps = SuggestionProps & Pick & { diff --git a/packages/editor/src/core/extensions/mentions/types.ts b/packages/editor/src/core/extensions/mentions/types.ts index 5252aa8b8..cf0d7b23d 100644 --- a/packages/editor/src/core/extensions/mentions/types.ts +++ b/packages/editor/src/core/extensions/mentions/types.ts @@ -1,5 +1,5 @@ // plane types -import { TSearchEntities } from "@plane/types"; +import type { TSearchEntities } from "@plane/types"; export enum EMentionComponentAttributeNames { ID = "id", diff --git a/packages/editor/src/core/extensions/mentions/utils.ts b/packages/editor/src/core/extensions/mentions/utils.ts index 202999a09..0ff10675d 100644 --- a/packages/editor/src/core/extensions/mentions/utils.ts +++ b/packages/editor/src/core/extensions/mentions/utils.ts @@ -1,14 +1,17 @@ -import { type Editor, ReactRenderer } from "@tiptap/react"; +import { ReactRenderer } from "@tiptap/react"; +import type { Editor } from "@tiptap/react"; import type { SuggestionOptions } from "@tiptap/suggestion"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; // helpers import { updateFloatingUIFloaterPosition } from "@/helpers/floating-ui"; -import { CommandListInstance, DROPDOWN_NAVIGATION_KEYS } from "@/helpers/tippy"; +import type { CommandListInstance } from "@/helpers/tippy"; +import { DROPDOWN_NAVIGATION_KEYS } from "@/helpers/tippy"; // types -import { TMentionHandler } from "@/types"; +import type { TMentionHandler } from "@/types"; // local components -import { MentionsListDropdown, MentionsListDropdownProps } from "./mentions-list-dropdown"; +import type { MentionsListDropdownProps } from "./mentions-list-dropdown"; +import { MentionsListDropdown } from "./mentions-list-dropdown"; export const renderMentionsDropdown = (args: Pick): SuggestionOptions["render"] => diff --git a/packages/editor/src/core/extensions/side-menu.ts b/packages/editor/src/core/extensions/side-menu.ts index ca139f723..01c95956a 100644 --- a/packages/editor/src/core/extensions/side-menu.ts +++ b/packages/editor/src/core/extensions/side-menu.ts @@ -1,6 +1,6 @@ import { Extension } from "@tiptap/core"; import { Plugin, PluginKey } from "@tiptap/pm/state"; -import { EditorView } from "@tiptap/pm/view"; +import type { EditorView } from "@tiptap/pm/view"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; // plugins diff --git a/packages/editor/src/core/extensions/slash-commands/command-items-list.tsx b/packages/editor/src/core/extensions/slash-commands/command-items-list.tsx index 81e6038d2..2285e582a 100644 --- a/packages/editor/src/core/extensions/slash-commands/command-items-list.tsx +++ b/packages/editor/src/core/extensions/slash-commands/command-items-list.tsx @@ -38,9 +38,9 @@ import { // plane editor extensions import { coreEditorAdditionalSlashCommandOptions } from "@/plane-editor/extensions"; // types -import { CommandProps, ISlashCommandItem, TSlashCommandSectionKeys } from "@/types"; +import type { CommandProps, ISlashCommandItem, TSlashCommandSectionKeys } from "@/types"; // local types -import { TExtensionProps, TSlashCommandAdditionalOption } from "./root"; +import type { TExtensionProps, TSlashCommandAdditionalOption } from "./root"; export type TSlashCommandSection = { key: TSlashCommandSectionKeys; diff --git a/packages/editor/src/core/extensions/slash-commands/command-menu-item.tsx b/packages/editor/src/core/extensions/slash-commands/command-menu-item.tsx index 437756c79..52c8d7aec 100644 --- a/packages/editor/src/core/extensions/slash-commands/command-menu-item.tsx +++ b/packages/editor/src/core/extensions/slash-commands/command-menu-item.tsx @@ -1,7 +1,7 @@ // plane utils import { cn } from "@plane/utils"; // types -import { ISlashCommandItem } from "@/types"; +import type { ISlashCommandItem } from "@/types"; type Props = { isSelected: boolean; diff --git a/packages/editor/src/core/extensions/slash-commands/command-menu.tsx b/packages/editor/src/core/extensions/slash-commands/command-menu.tsx index 9b680cd56..7d8bbab38 100644 --- a/packages/editor/src/core/extensions/slash-commands/command-menu.tsx +++ b/packages/editor/src/core/extensions/slash-commands/command-menu.tsx @@ -8,7 +8,7 @@ import { DROPDOWN_NAVIGATION_KEYS, getNextValidIndex } from "@/helpers/tippy"; // types import type { ISlashCommandItem } from "@/types"; // components -import { TSlashCommandSection } from "./command-items-list"; +import type { TSlashCommandSection } from "./command-items-list"; import { CommandMenuItem } from "./command-menu-item"; export type SlashCommandsMenuProps = SuggestionProps & { diff --git a/packages/editor/src/core/extensions/slash-commands/root.tsx b/packages/editor/src/core/extensions/slash-commands/root.tsx index 61ebaea39..2bd66471b 100644 --- a/packages/editor/src/core/extensions/slash-commands/root.tsx +++ b/packages/editor/src/core/extensions/slash-commands/root.tsx @@ -1,16 +1,20 @@ -import { type Editor, Extension } from "@tiptap/core"; +import { Extension } from "@tiptap/core"; +import type { Editor } from "@tiptap/core"; import { ReactRenderer } from "@tiptap/react"; -import Suggestion, { type SuggestionOptions } from "@tiptap/suggestion"; +import Suggestion from "@tiptap/suggestion"; +import type { SuggestionOptions } from "@tiptap/suggestion"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; // helpers import { updateFloatingUIFloaterPosition } from "@/helpers/floating-ui"; -import { CommandListInstance, DROPDOWN_NAVIGATION_KEYS } from "@/helpers/tippy"; +import type { CommandListInstance } from "@/helpers/tippy"; +import { DROPDOWN_NAVIGATION_KEYS } from "@/helpers/tippy"; // types -import { IEditorProps, ISlashCommandItem, TEditorCommands, TSlashCommandSectionKeys } from "@/types"; +import type { IEditorProps, ISlashCommandItem, TEditorCommands, TSlashCommandSectionKeys } from "@/types"; // components import { getSlashCommandFilteredSections } from "./command-items-list"; -import { SlashCommandsMenu, SlashCommandsMenuProps } from "./command-menu"; +import type { SlashCommandsMenuProps } from "./command-menu"; +import { SlashCommandsMenu } from "./command-menu"; export type SlashCommandOptions = { suggestion: Omit; diff --git a/packages/editor/src/core/extensions/table/plugins/drag-handles/actions.ts b/packages/editor/src/core/extensions/table/plugins/drag-handles/actions.ts index a2ebc26bb..788a17ae7 100644 --- a/packages/editor/src/core/extensions/table/plugins/drag-handles/actions.ts +++ b/packages/editor/src/core/extensions/table/plugins/drag-handles/actions.ts @@ -1,9 +1,11 @@ import type { Editor } from "@tiptap/core"; -import { Fragment, type Node, type Node as ProseMirrorNode } from "@tiptap/pm/model"; +import { Fragment } from "@tiptap/pm/model"; +import type { Node, Node as ProseMirrorNode } from "@tiptap/pm/model"; import type { Transaction } from "@tiptap/pm/state"; -import { type CellSelection, TableMap } from "@tiptap/pm/tables"; +import { TableMap } from "@tiptap/pm/tables"; +import type { CellSelection } from "@tiptap/pm/tables"; // extensions -import { TableNodeLocation } from "@/extensions/table/table/utilities/helpers"; +import type { TableNodeLocation } from "@/extensions/table/table/utilities/helpers"; type TableRow = (ProseMirrorNode | null)[]; type TableRows = TableRow[]; diff --git a/packages/editor/src/core/extensions/table/plugins/drag-handles/column/dropdown.tsx b/packages/editor/src/core/extensions/table/plugins/drag-handles/column/dropdown.tsx index 5290b3a46..937347076 100644 --- a/packages/editor/src/core/extensions/table/plugins/drag-handles/column/dropdown.tsx +++ b/packages/editor/src/core/extensions/table/plugins/drag-handles/column/dropdown.tsx @@ -1,8 +1,10 @@ import type { Editor } from "@tiptap/core"; import { TableMap } from "@tiptap/pm/tables"; -import { ArrowLeft, ArrowRight, Copy, ToggleRight, Trash2, type LucideIcon } from "lucide-react"; +import { ArrowLeft, ArrowRight, Copy, ToggleRight, Trash2 } from "lucide-react"; +import type { LucideIcon } from "lucide-react"; // extensions -import { CloseIcon, ISvgIcons } from "@plane/propel/icons"; +import type { ISvgIcons } from "@plane/propel/icons"; +import { CloseIcon } from "@plane/propel/icons"; import { findTable, getSelectedColumns } from "@/extensions/table/table/utilities/helpers"; // local imports import { duplicateColumns } from "../actions"; diff --git a/packages/editor/src/core/extensions/table/plugins/drag-handles/column/plugin.ts b/packages/editor/src/core/extensions/table/plugins/drag-handles/column/plugin.ts index d25591e47..e0039ecd2 100644 --- a/packages/editor/src/core/extensions/table/plugins/drag-handles/column/plugin.ts +++ b/packages/editor/src/core/extensions/table/plugins/drag-handles/column/plugin.ts @@ -10,7 +10,8 @@ import { haveTableRelatedChanges, } from "@/extensions/table/table/utilities/helpers"; // local imports -import { ColumnDragHandle, ColumnDragHandleProps } from "./drag-handle"; +import type { ColumnDragHandleProps } from "./drag-handle"; +import { ColumnDragHandle } from "./drag-handle"; type TableColumnDragHandlePluginState = { decorations?: DecorationSet; diff --git a/packages/editor/src/core/extensions/table/plugins/drag-handles/column/utils.ts b/packages/editor/src/core/extensions/table/plugins/drag-handles/column/utils.ts index f88f90fdc..9baefe216 100644 --- a/packages/editor/src/core/extensions/table/plugins/drag-handles/column/utils.ts +++ b/packages/editor/src/core/extensions/table/plugins/drag-handles/column/utils.ts @@ -2,7 +2,8 @@ import type { Editor } from "@tiptap/core"; import type { Selection } from "@tiptap/pm/state"; import { TableMap } from "@tiptap/pm/tables"; // extensions -import { getSelectedRect, isCellSelection, type TableNodeLocation } from "@/extensions/table/table/utilities/helpers"; +import { getSelectedRect, isCellSelection } from "@/extensions/table/table/utilities/helpers"; +import type { TableNodeLocation } from "@/extensions/table/table/utilities/helpers"; // local imports import { cloneTableCell, constructDragPreviewTable, updateCellContentVisibility } from "../utils"; diff --git a/packages/editor/src/core/extensions/table/plugins/drag-handles/row/dropdown.tsx b/packages/editor/src/core/extensions/table/plugins/drag-handles/row/dropdown.tsx index 7b542662f..377e9f417 100644 --- a/packages/editor/src/core/extensions/table/plugins/drag-handles/row/dropdown.tsx +++ b/packages/editor/src/core/extensions/table/plugins/drag-handles/row/dropdown.tsx @@ -1,8 +1,10 @@ import type { Editor } from "@tiptap/core"; import { TableMap } from "@tiptap/pm/tables"; -import { ArrowDown, ArrowUp, Copy, ToggleRight, Trash2, type LucideIcon } from "lucide-react"; +import { ArrowDown, ArrowUp, Copy, ToggleRight, Trash2 } from "lucide-react"; +import type { LucideIcon } from "lucide-react"; // extensions -import { CloseIcon, ISvgIcons } from "@plane/propel/icons"; +import type { ISvgIcons } from "@plane/propel/icons"; +import { CloseIcon } from "@plane/propel/icons"; import { findTable, getSelectedRows } from "@/extensions/table/table/utilities/helpers"; // local imports import { duplicateRows } from "../actions"; diff --git a/packages/editor/src/core/extensions/table/plugins/drag-handles/row/plugin.ts b/packages/editor/src/core/extensions/table/plugins/drag-handles/row/plugin.ts index 92cf0eea9..18ac677c4 100644 --- a/packages/editor/src/core/extensions/table/plugins/drag-handles/row/plugin.ts +++ b/packages/editor/src/core/extensions/table/plugins/drag-handles/row/plugin.ts @@ -1,4 +1,4 @@ -import { type Editor } from "@tiptap/core"; +import type { Editor } from "@tiptap/core"; import { Plugin, PluginKey } from "@tiptap/pm/state"; import { TableMap } from "@tiptap/pm/tables"; import { Decoration, DecorationSet } from "@tiptap/pm/view"; @@ -10,7 +10,8 @@ import { haveTableRelatedChanges, } from "@/extensions/table/table/utilities/helpers"; // local imports -import { RowDragHandle, RowDragHandleProps } from "./drag-handle"; +import type { RowDragHandleProps } from "./drag-handle"; +import { RowDragHandle } from "./drag-handle"; type TableRowDragHandlePluginState = { decorations?: DecorationSet; diff --git a/packages/editor/src/core/extensions/table/plugins/drag-handles/row/utils.ts b/packages/editor/src/core/extensions/table/plugins/drag-handles/row/utils.ts index d43d9ae73..c3b62fc0a 100644 --- a/packages/editor/src/core/extensions/table/plugins/drag-handles/row/utils.ts +++ b/packages/editor/src/core/extensions/table/plugins/drag-handles/row/utils.ts @@ -2,7 +2,8 @@ import type { Editor } from "@tiptap/core"; import type { Selection } from "@tiptap/pm/state"; import { TableMap } from "@tiptap/pm/tables"; // extensions -import { getSelectedRect, isCellSelection, type TableNodeLocation } from "@/extensions/table/table/utilities/helpers"; +import { getSelectedRect, isCellSelection } from "@/extensions/table/table/utilities/helpers"; +import type { TableNodeLocation } from "@/extensions/table/table/utilities/helpers"; // local imports import { cloneTableCell, constructDragPreviewTable, updateCellContentVisibility } from "../utils"; diff --git a/packages/editor/src/core/extensions/table/plugins/insert-handlers/plugin.ts b/packages/editor/src/core/extensions/table/plugins/insert-handlers/plugin.ts index 75f396416..7188e88d0 100644 --- a/packages/editor/src/core/extensions/table/plugins/insert-handlers/plugin.ts +++ b/packages/editor/src/core/extensions/table/plugins/insert-handlers/plugin.ts @@ -2,7 +2,8 @@ import type { Editor } from "@tiptap/core"; import { Plugin, PluginKey } from "@tiptap/pm/state"; // local imports import { COL_DRAG_MARKER_CLASS, DROP_MARKER_CLASS, ROW_DRAG_MARKER_CLASS } from "../drag-handles/marker-utils"; -import { createColumnInsertButton, createRowInsertButton, findAllTables, TableInfo } from "./utils"; +import type { TableInfo } from "./utils"; +import { createColumnInsertButton, createRowInsertButton, findAllTables } from "./utils"; const TABLE_INSERT_PLUGIN_KEY = new PluginKey("table-insert"); diff --git a/packages/editor/src/core/extensions/table/plugins/insert-handlers/utils.ts b/packages/editor/src/core/extensions/table/plugins/insert-handlers/utils.ts index 8e6526c4e..f760538ab 100644 --- a/packages/editor/src/core/extensions/table/plugins/insert-handlers/utils.ts +++ b/packages/editor/src/core/extensions/table/plugins/insert-handlers/utils.ts @@ -1,6 +1,7 @@ import type { Editor } from "@tiptap/core"; import type { Node as ProseMirrorNode } from "@tiptap/pm/model"; -import { addColumn, removeColumn, addRow, removeRow, TableMap, type TableRect } from "@tiptap/pm/tables"; +import { addColumn, removeColumn, addRow, removeRow, TableMap } from "@tiptap/pm/tables"; +import type { TableRect } from "@tiptap/pm/tables"; // local imports import { isCellEmpty } from "../../table/utilities/helpers"; diff --git a/packages/editor/src/core/extensions/table/plugins/selection-outline/plugin.ts b/packages/editor/src/core/extensions/table/plugins/selection-outline/plugin.ts index 834ea3e44..a13fd1310 100644 --- a/packages/editor/src/core/extensions/table/plugins/selection-outline/plugin.ts +++ b/packages/editor/src/core/extensions/table/plugins/selection-outline/plugin.ts @@ -1,4 +1,5 @@ -import { findParentNode, type Editor } from "@tiptap/core"; +import { findParentNode } from "@tiptap/core"; +import type { Editor } from "@tiptap/core"; import { Plugin, PluginKey } from "@tiptap/pm/state"; import { TableMap } from "@tiptap/pm/tables"; import { Decoration, DecorationSet } from "@tiptap/pm/view"; diff --git a/packages/editor/src/core/extensions/table/table/table.ts b/packages/editor/src/core/extensions/table/table/table.ts index 6e12a6185..a0706db3b 100644 --- a/packages/editor/src/core/extensions/table/table/table.ts +++ b/packages/editor/src/core/extensions/table/table/table.ts @@ -1,4 +1,5 @@ -import { callOrReturn, getExtensionField, mergeAttributes, Node, ParentConfig } from "@tiptap/core"; +import type { ParentConfig } from "@tiptap/core"; +import { callOrReturn, getExtensionField, mergeAttributes, Node } from "@tiptap/core"; import { TextSelection } from "@tiptap/pm/state"; import { addColumnAfter, diff --git a/packages/editor/src/core/extensions/table/table/utilities/create-cell.ts b/packages/editor/src/core/extensions/table/table/utilities/create-cell.ts index 275b7aa78..f28e32785 100644 --- a/packages/editor/src/core/extensions/table/table/utilities/create-cell.ts +++ b/packages/editor/src/core/extensions/table/table/utilities/create-cell.ts @@ -1,4 +1,4 @@ -import { Fragment, Node as ProsemirrorNode, NodeType } from "@tiptap/pm/model"; +import type { Fragment, Node as ProsemirrorNode, NodeType } from "@tiptap/pm/model"; export function createCell( cellType: NodeType, diff --git a/packages/editor/src/core/extensions/table/table/utilities/create-table.ts b/packages/editor/src/core/extensions/table/table/utilities/create-table.ts index 0ba2757db..56c6b31ac 100644 --- a/packages/editor/src/core/extensions/table/table/utilities/create-table.ts +++ b/packages/editor/src/core/extensions/table/table/utilities/create-table.ts @@ -1,4 +1,4 @@ -import { Fragment, Node as ProsemirrorNode, Schema } from "@tiptap/pm/model"; +import type { Fragment, Node as ProsemirrorNode, Schema } from "@tiptap/pm/model"; // extensions import { createCell } from "@/extensions/table/table/utilities/create-cell"; import { getTableNodeTypes } from "@/extensions/table/table/utilities/get-table-node-types"; diff --git a/packages/editor/src/core/extensions/table/table/utilities/delete-key-shortcut.ts b/packages/editor/src/core/extensions/table/table/utilities/delete-key-shortcut.ts index d562bae2e..4025e9f9c 100644 --- a/packages/editor/src/core/extensions/table/table/utilities/delete-key-shortcut.ts +++ b/packages/editor/src/core/extensions/table/table/utilities/delete-key-shortcut.ts @@ -1,6 +1,8 @@ -import { type Editor, findParentNodeClosestToPos, type KeyboardShortcutCommand } from "@tiptap/core"; +import { findParentNodeClosestToPos } from "@tiptap/core"; +import type { Editor, KeyboardShortcutCommand } from "@tiptap/core"; import type { Node as ProseMirrorNode } from "@tiptap/pm/model"; -import { CellSelection, TableMap } from "@tiptap/pm/tables"; +import type { CellSelection } from "@tiptap/pm/tables"; +import { TableMap } from "@tiptap/pm/tables"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; // extensions diff --git a/packages/editor/src/core/extensions/table/table/utilities/get-table-node-types.ts b/packages/editor/src/core/extensions/table/table/utilities/get-table-node-types.ts index 5722c4cae..772f805f7 100644 --- a/packages/editor/src/core/extensions/table/table/utilities/get-table-node-types.ts +++ b/packages/editor/src/core/extensions/table/table/utilities/get-table-node-types.ts @@ -1,4 +1,4 @@ -import { NodeType, Schema } from "@tiptap/pm/model"; +import type { NodeType, Schema } from "@tiptap/pm/model"; export function getTableNodeTypes(schema: Schema): { [key: string]: NodeType } { if (schema.cached.tableNodeTypes) { diff --git a/packages/editor/src/core/extensions/table/table/utilities/helpers.ts b/packages/editor/src/core/extensions/table/table/utilities/helpers.ts index 211dc2c42..45c9af4f6 100644 --- a/packages/editor/src/core/extensions/table/table/utilities/helpers.ts +++ b/packages/editor/src/core/extensions/table/table/utilities/helpers.ts @@ -1,7 +1,9 @@ -import { type Editor, findParentNode } from "@tiptap/core"; +import { findParentNode } from "@tiptap/core"; +import type { Editor } from "@tiptap/core"; import type { Node as ProseMirrorNode } from "@tiptap/pm/model"; import type { EditorState, Selection, Transaction } from "@tiptap/pm/state"; -import { CellSelection, type Rect, TableMap } from "@tiptap/pm/tables"; +import { CellSelection, TableMap } from "@tiptap/pm/tables"; +import type { Rect } from "@tiptap/pm/tables"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; diff --git a/packages/editor/src/core/extensions/table/table/utilities/insert-line-above-table-action.ts b/packages/editor/src/core/extensions/table/table/utilities/insert-line-above-table-action.ts index 9a50a839c..ded1ac392 100644 --- a/packages/editor/src/core/extensions/table/table/utilities/insert-line-above-table-action.ts +++ b/packages/editor/src/core/extensions/table/table/utilities/insert-line-above-table-action.ts @@ -1,4 +1,4 @@ -import { KeyboardShortcutCommand } from "@tiptap/core"; +import type { KeyboardShortcutCommand } from "@tiptap/core"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; // helpers diff --git a/packages/editor/src/core/extensions/table/table/utilities/insert-line-below-table-action.ts b/packages/editor/src/core/extensions/table/table/utilities/insert-line-below-table-action.ts index b30b8ae4d..13d412ffe 100644 --- a/packages/editor/src/core/extensions/table/table/utilities/insert-line-below-table-action.ts +++ b/packages/editor/src/core/extensions/table/table/utilities/insert-line-below-table-action.ts @@ -1,4 +1,4 @@ -import { KeyboardShortcutCommand } from "@tiptap/core"; +import type { KeyboardShortcutCommand } from "@tiptap/core"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; // helpers diff --git a/packages/editor/src/core/extensions/trailing-node.ts b/packages/editor/src/core/extensions/trailing-node.ts index 27e3e85eb..7fe084bee 100644 --- a/packages/editor/src/core/extensions/trailing-node.ts +++ b/packages/editor/src/core/extensions/trailing-node.ts @@ -1,5 +1,5 @@ import { Extension } from "@tiptap/core"; -import { NodeType, Node as ProseMirrorNode } from "@tiptap/pm/model"; +import type { NodeType, Node as ProseMirrorNode } from "@tiptap/pm/model"; import { Plugin, PluginKey } from "@tiptap/pm/state"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; diff --git a/packages/editor/src/core/extensions/typography/index.ts b/packages/editor/src/core/extensions/typography/index.ts index 32ffea6a2..51d21b60d 100644 --- a/packages/editor/src/core/extensions/typography/index.ts +++ b/packages/editor/src/core/extensions/typography/index.ts @@ -1,8 +1,9 @@ -import { Extension, InputRule } from "@tiptap/core"; +import type { InputRule } from "@tiptap/core"; +import { Extension } from "@tiptap/core"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; +import type { TypographyOptions } from "./inputRules"; import { - TypographyOptions, emDash, ellipsis, leftArrow, diff --git a/packages/editor/src/core/extensions/utility.ts b/packages/editor/src/core/extensions/utility.ts index 9c2d64206..347f1800a 100644 --- a/packages/editor/src/core/extensions/utility.ts +++ b/packages/editor/src/core/extensions/utility.ts @@ -1,10 +1,10 @@ import { Extension } from "@tiptap/core"; import codemark from "prosemirror-codemark"; // helpers -import { CORE_EXTENSIONS } from "@/constants/extension"; +import type { CORE_EXTENSIONS } from "@/constants/extension"; import { restorePublicImages } from "@/helpers/image-helpers"; // plugins -import { TAdditionalActiveDropbarExtensions } from "@/plane-editor/types/utils"; +import type { TAdditionalActiveDropbarExtensions } from "@/plane-editor/types/utils"; import { DropHandlerPlugin } from "@/plugins/drop"; import { FilePlugins } from "@/plugins/file/root"; import { MarkdownClipboardPlugin } from "@/plugins/markdown-clipboard"; diff --git a/packages/editor/src/core/extensions/work-item-embed/extension.tsx b/packages/editor/src/core/extensions/work-item-embed/extension.tsx index 25418bdae..5b2f51d3c 100644 --- a/packages/editor/src/core/extensions/work-item-embed/extension.tsx +++ b/packages/editor/src/core/extensions/work-item-embed/extension.tsx @@ -1,4 +1,5 @@ -import { ReactNodeViewRenderer, NodeViewWrapper, type NodeViewProps } from "@tiptap/react"; +import { ReactNodeViewRenderer, NodeViewWrapper } from "@tiptap/react"; +import type { NodeViewProps } from "@tiptap/react"; // local imports import { WorkItemEmbedExtensionConfig } from "./extension-config"; diff --git a/packages/editor/src/core/helpers/assets.ts b/packages/editor/src/core/helpers/assets.ts index a7f19b6c2..00623cc24 100644 --- a/packages/editor/src/core/helpers/assets.ts +++ b/packages/editor/src/core/helpers/assets.ts @@ -1,6 +1,7 @@ import type { Node as ProseMirrorNode } from "@tiptap/pm/model"; // plane imports -import { ADDITIONAL_EXTENSIONS, CORE_EXTENSIONS } from "@plane/utils"; +import type { ADDITIONAL_EXTENSIONS } from "@plane/utils"; +import { CORE_EXTENSIONS } from "@plane/utils"; // extensions import { getImageBlockId } from "@/extensions/custom-image/utils"; // plane editor imports diff --git a/packages/editor/src/core/helpers/common.ts b/packages/editor/src/core/helpers/common.ts index 2dce3f1b7..e4a61b3ac 100644 --- a/packages/editor/src/core/helpers/common.ts +++ b/packages/editor/src/core/helpers/common.ts @@ -1,5 +1,5 @@ import type { Node as ProseMirrorNode } from "@tiptap/pm/model"; -import { EditorState, Selection } from "@tiptap/pm/state"; +import type { EditorState, Selection } from "@tiptap/pm/state"; // plane imports import { cn } from "@plane/utils"; // constants diff --git a/packages/editor/src/core/helpers/editor-commands.ts b/packages/editor/src/core/helpers/editor-commands.ts index 8d776e609..333bab4f3 100644 --- a/packages/editor/src/core/helpers/editor-commands.ts +++ b/packages/editor/src/core/helpers/editor-commands.ts @@ -5,7 +5,7 @@ import { CORE_EXTENSIONS } from "@/constants/extension"; import { replaceCodeWithText } from "@/extensions/code/utils/replace-code-block-with-text"; import type { InsertImageComponentProps } from "@/extensions/custom-image/types"; // helpers -import { ExtendedEmojiStorage } from "@/extensions/emoji/emoji"; +import type { ExtendedEmojiStorage } from "@/extensions/emoji/emoji"; import { findTableAncestor } from "@/helpers/common"; export const setText = (editor: Editor, range?: Range) => { diff --git a/packages/editor/src/core/helpers/find-suggestion-match.ts b/packages/editor/src/core/helpers/find-suggestion-match.ts index 5db2f9474..1ac439658 100644 --- a/packages/editor/src/core/helpers/find-suggestion-match.ts +++ b/packages/editor/src/core/helpers/find-suggestion-match.ts @@ -1,5 +1,5 @@ import { escapeForRegEx } from "@tiptap/core"; -import { Trigger, SuggestionMatch } from "@tiptap/suggestion"; +import type { Trigger, SuggestionMatch } from "@tiptap/suggestion"; export function customFindSuggestionMatch(config: Trigger): SuggestionMatch | null { const { char, allowSpaces: allowSpacesOption, allowToIncludeChar, allowedPrefixes, startOfLine, $position } = config; diff --git a/packages/editor/src/core/helpers/floating-ui.ts b/packages/editor/src/core/helpers/floating-ui.ts index 5fde3b919..3330d24fa 100644 --- a/packages/editor/src/core/helpers/floating-ui.ts +++ b/packages/editor/src/core/helpers/floating-ui.ts @@ -1,13 +1,7 @@ -import { - computePosition, - flip, - type Strategy, - type Placement, - shift, - ReferenceElement, - autoUpdate, -} from "@floating-ui/dom"; -import { type Editor, posToDOMRect } from "@tiptap/core"; +import { computePosition, flip, shift, autoUpdate } from "@floating-ui/dom"; +import type { Placement, ReferenceElement, Strategy } from "@floating-ui/dom"; +import { posToDOMRect } from "@tiptap/core"; +import type { Editor } from "@tiptap/core"; export type UpdateFloatingUIFloaterPosition = ( editor: Editor, diff --git a/packages/editor/src/core/helpers/get-document-server-event.ts b/packages/editor/src/core/helpers/get-document-server-event.ts index 1ba7646b2..d364355b7 100644 --- a/packages/editor/src/core/helpers/get-document-server-event.ts +++ b/packages/editor/src/core/helpers/get-document-server-event.ts @@ -1,5 +1,9 @@ import { DocumentCollaborativeEvents } from "@/constants/document-collaborative-events"; -import { TDocumentEventKey, TDocumentEventsClient, TDocumentEventsServer } from "@/types/document-collaborative-events"; +import type { + TDocumentEventKey, + TDocumentEventsClient, + TDocumentEventsServer, +} from "@/types/document-collaborative-events"; export const getServerEventName = (clientEvent: TDocumentEventsClient): TDocumentEventsServer | undefined => { for (const key in DocumentCollaborativeEvents) { diff --git a/packages/editor/src/core/helpers/image-helpers.ts b/packages/editor/src/core/helpers/image-helpers.ts index 9fcb877f9..d09ac5f84 100644 --- a/packages/editor/src/core/helpers/image-helpers.ts +++ b/packages/editor/src/core/helpers/image-helpers.ts @@ -1,8 +1,8 @@ -import { Editor } from "@tiptap/core"; +import type { Editor } from "@tiptap/core"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; // types -import { TFileHandler } from "@/types"; +import type { TFileHandler } from "@/types"; /** * Finds all public image nodes in the document and restores them using the provided restore function diff --git a/packages/editor/src/core/helpers/insert-content-at-cursor-position.ts b/packages/editor/src/core/helpers/insert-content-at-cursor-position.ts index fb226b23f..7c535acfc 100644 --- a/packages/editor/src/core/helpers/insert-content-at-cursor-position.ts +++ b/packages/editor/src/core/helpers/insert-content-at-cursor-position.ts @@ -1,4 +1,4 @@ -import { Editor } from "@tiptap/react"; +import type { Editor } from "@tiptap/react"; export const insertContentAtSavedSelection = (editor: Editor, content: string) => { if (!editor || editor.isDestroyed) { diff --git a/packages/editor/src/core/helpers/insert-empty-paragraph-at-node-boundary.ts b/packages/editor/src/core/helpers/insert-empty-paragraph-at-node-boundary.ts index b9449b494..847555dc8 100644 --- a/packages/editor/src/core/helpers/insert-empty-paragraph-at-node-boundary.ts +++ b/packages/editor/src/core/helpers/insert-empty-paragraph-at-node-boundary.ts @@ -1,5 +1,5 @@ -import { KeyboardShortcutCommand } from "@tiptap/core"; -import { Node as ProseMirrorNode } from "@tiptap/pm/model"; +import type { KeyboardShortcutCommand } from "@tiptap/core"; +import type { Node as ProseMirrorNode } from "@tiptap/pm/model"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; diff --git a/packages/editor/src/core/helpers/parser.ts b/packages/editor/src/core/helpers/parser.ts index bf84b2fdb..d662a3f4b 100644 --- a/packages/editor/src/core/helpers/parser.ts +++ b/packages/editor/src/core/helpers/parser.ts @@ -1,5 +1,5 @@ // plane imports -import { TDocumentPayload, TDuplicateAssetData, TDuplicateAssetResponse, TEditorAssetType } from "@plane/types"; +import type { TDocumentPayload, TDuplicateAssetData, TDuplicateAssetResponse, TEditorAssetType } from "@plane/types"; // plane web imports import { extractAdditionalAssetsFromHTMLContent, diff --git a/packages/editor/src/core/helpers/yjs-utils.ts b/packages/editor/src/core/helpers/yjs-utils.ts index 0d00e752b..ab2ca92d8 100644 --- a/packages/editor/src/core/helpers/yjs-utils.ts +++ b/packages/editor/src/core/helpers/yjs-utils.ts @@ -4,7 +4,7 @@ import { generateHTML, generateJSON } from "@tiptap/html"; import { prosemirrorJSONToYDoc, yXmlFragmentToProseMirrorRootNode } from "y-prosemirror"; import * as Y from "yjs"; // extensions -import { TDocumentPayload } from "@plane/types"; +import type { TDocumentPayload } from "@plane/types"; import { CoreEditorExtensionsWithoutProps, DocumentEditorExtensionsWithoutProps, diff --git a/packages/editor/src/core/hooks/use-collaborative-editor.ts b/packages/editor/src/core/hooks/use-collaborative-editor.ts index 54135f785..abbb3a82a 100644 --- a/packages/editor/src/core/hooks/use-collaborative-editor.ts +++ b/packages/editor/src/core/hooks/use-collaborative-editor.ts @@ -9,7 +9,7 @@ import { useEditor } from "@/hooks/use-editor"; // plane editor extensions import { DocumentEditorAdditionalExtensions } from "@/plane-editor/extensions"; // types -import { TCollaborativeEditorHookProps } from "@/types"; +import type { TCollaborativeEditorHookProps } from "@/types"; export const useCollaborativeEditor = (props: TCollaborativeEditorHookProps) => { const { diff --git a/packages/editor/src/core/hooks/use-file-upload.ts b/packages/editor/src/core/hooks/use-file-upload.ts index 4691601a5..86f94633a 100644 --- a/packages/editor/src/core/hooks/use-file-upload.ts +++ b/packages/editor/src/core/hooks/use-file-upload.ts @@ -1,11 +1,13 @@ import type { Editor, NodeViewProps } from "@tiptap/core"; -import { DragEvent, useCallback, useEffect, useState } from "react"; +import type { DragEvent } from "react"; +import { useCallback, useEffect, useState } from "react"; // helpers -import { EFileError, isFileValid } from "@/helpers/file"; +import type { EFileError } from "@/helpers/file"; +import { isFileValid } from "@/helpers/file"; // plugins import { insertFilesSafely } from "@/plugins/drop"; // types -import { TEditorCommands } from "@/types"; +import type { TEditorCommands } from "@/types"; type TUploaderArgs = { acceptedMimeTypes: string[]; diff --git a/packages/editor/src/core/plugins/ai-handle.ts b/packages/editor/src/core/plugins/ai-handle.ts index 5f87df3ff..6185cc24f 100644 --- a/packages/editor/src/core/plugins/ai-handle.ts +++ b/packages/editor/src/core/plugins/ai-handle.ts @@ -1,7 +1,7 @@ import { NodeSelection } from "@tiptap/pm/state"; -import { EditorView } from "@tiptap/pm/view"; +import type { EditorView } from "@tiptap/pm/view"; // extensions -import { SideMenuHandleOptions, SideMenuPluginProps } from "@/extensions"; +import type { SideMenuHandleOptions, SideMenuPluginProps } from "@/extensions"; // plugins import { nodeDOMAtCoords } from "@/plugins/drag-handle"; diff --git a/packages/editor/src/core/plugins/drag-handle.ts b/packages/editor/src/core/plugins/drag-handle.ts index f64b3515f..a065e46cb 100644 --- a/packages/editor/src/core/plugins/drag-handle.ts +++ b/packages/editor/src/core/plugins/drag-handle.ts @@ -1,10 +1,11 @@ -import { Fragment, Slice, Node, Schema } from "@tiptap/pm/model"; +import type { Node, Schema } from "@tiptap/pm/model"; +import { Fragment, Slice } from "@tiptap/pm/model"; import { NodeSelection } from "@tiptap/pm/state"; -import { EditorView } from "@tiptap/pm/view"; +import type { EditorView } from "@tiptap/pm/view"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; // extensions -import { SideMenuHandleOptions, SideMenuPluginProps } from "@/extensions"; +import type { SideMenuHandleOptions, SideMenuPluginProps } from "@/extensions"; const verticalEllipsisIcon = ''; diff --git a/packages/editor/src/core/plugins/drop.ts b/packages/editor/src/core/plugins/drop.ts index ad8070924..f9f571575 100644 --- a/packages/editor/src/core/plugins/drop.ts +++ b/packages/editor/src/core/plugins/drop.ts @@ -1,9 +1,9 @@ -import { Editor } from "@tiptap/core"; +import type { Editor } from "@tiptap/core"; import { Plugin, PluginKey } from "@tiptap/pm/state"; // constants import { ACCEPTED_ATTACHMENT_MIME_TYPES, ACCEPTED_IMAGE_MIME_TYPES } from "@/constants/config"; // types -import { TEditorCommands, TExtensions } from "@/types"; +import type { TEditorCommands, TExtensions } from "@/types"; type Props = { disabledExtensions?: TExtensions[]; diff --git a/packages/editor/src/core/plugins/file/delete.ts b/packages/editor/src/core/plugins/file/delete.ts index 5d0aa8ca4..47790c4f9 100644 --- a/packages/editor/src/core/plugins/file/delete.ts +++ b/packages/editor/src/core/plugins/file/delete.ts @@ -1,14 +1,15 @@ import type { Editor } from "@tiptap/core"; -import { type EditorState, Plugin, PluginKey, Transaction } from "@tiptap/pm/state"; +import { Plugin, PluginKey } from "@tiptap/pm/state"; +import type { EditorState, Transaction } from "@tiptap/pm/state"; // constants import { CORE_EDITOR_META } from "@/constants/meta"; // plane editor imports import { NODE_FILE_MAP } from "@/plane-editor/constants/utility"; // types -import { TFileHandler } from "@/types"; +import type { TFileHandler } from "@/types"; // local imports import type { NodeFileMapType } from "../../../ce/constants/utility"; -import { TFileNode } from "./types"; +import type { TFileNode } from "./types"; const DELETE_PLUGIN_KEY = new PluginKey("delete-utility"); diff --git a/packages/editor/src/core/plugins/file/restore.ts b/packages/editor/src/core/plugins/file/restore.ts index cf25a818b..178e41d2b 100644 --- a/packages/editor/src/core/plugins/file/restore.ts +++ b/packages/editor/src/core/plugins/file/restore.ts @@ -1,5 +1,6 @@ import type { Editor } from "@tiptap/core"; -import { type EditorState, Plugin, PluginKey, type Transaction } from "@tiptap/pm/state"; +import { Plugin, PluginKey } from "@tiptap/pm/state"; +import type { EditorState, Transaction } from "@tiptap/pm/state"; // plane imports import { CORE_EXTENSIONS } from "@plane/utils"; // helpers @@ -7,10 +8,10 @@ import { CORE_ASSETS_META_DATA_RECORD } from "@/helpers/assets"; // plane editor imports import { NODE_FILE_MAP } from "@/plane-editor/constants/utility"; // types -import { TFileHandler } from "@/types"; +import type { TFileHandler } from "@/types"; // local imports import type { NodeFileMapType } from "../../../ce/constants/utility"; -import { TFileNode } from "./types"; +import type { TFileNode } from "./types"; const RESTORE_PLUGIN_KEY = new PluginKey("restore-utility"); diff --git a/packages/editor/src/core/plugins/file/root.ts b/packages/editor/src/core/plugins/file/root.ts index bf9ca0260..7717f7388 100644 --- a/packages/editor/src/core/plugins/file/root.ts +++ b/packages/editor/src/core/plugins/file/root.ts @@ -1,7 +1,7 @@ -import { Editor } from "@tiptap/core"; -import { Plugin } from "@tiptap/pm/state"; +import type { Editor } from "@tiptap/core"; +import type { Plugin } from "@tiptap/pm/state"; // types -import { TFileHandler } from "@/types"; +import type { TFileHandler } from "@/types"; // local imports import { TrackFileDeletionPlugin } from "./delete"; import { TrackFileRestorationPlugin } from "./restore"; diff --git a/packages/editor/src/core/plugins/file/types.ts b/packages/editor/src/core/plugins/file/types.ts index 164d12ae7..636737169 100644 --- a/packages/editor/src/core/plugins/file/types.ts +++ b/packages/editor/src/core/plugins/file/types.ts @@ -1,4 +1,4 @@ -import { Node as ProseMirrorNode } from "@tiptap/pm/model"; +import type { Node as ProseMirrorNode } from "@tiptap/pm/model"; export type TFileNode = ProseMirrorNode & { attrs: { diff --git a/packages/editor/src/core/plugins/markdown-clipboard.ts b/packages/editor/src/core/plugins/markdown-clipboard.ts index 78f649b23..b87c7270a 100644 --- a/packages/editor/src/core/plugins/markdown-clipboard.ts +++ b/packages/editor/src/core/plugins/markdown-clipboard.ts @@ -1,5 +1,6 @@ -import { Editor } from "@tiptap/core"; -import { Fragment, Node } from "@tiptap/pm/model"; +import type { Editor } from "@tiptap/core"; +import type { Fragment } from "@tiptap/pm/model"; +import { Node } from "@tiptap/pm/model"; import { Plugin, PluginKey } from "@tiptap/pm/state"; // constants import { CORE_EXTENSIONS } from "@/constants/extension"; diff --git a/packages/editor/src/core/props.ts b/packages/editor/src/core/props.ts index 939ca7717..30e9a436d 100644 --- a/packages/editor/src/core/props.ts +++ b/packages/editor/src/core/props.ts @@ -1,4 +1,4 @@ -import { EditorProps } from "@tiptap/pm/view"; +import type { EditorProps } from "@tiptap/pm/view"; // plane utils import { cn } from "@plane/utils"; diff --git a/packages/editor/src/core/types/asset.ts b/packages/editor/src/core/types/asset.ts index 5760da157..dc1e528d6 100644 --- a/packages/editor/src/core/types/asset.ts +++ b/packages/editor/src/core/types/asset.ts @@ -1,7 +1,7 @@ // constants -import { CORE_EXTENSIONS } from "@/constants/extension"; +import type { CORE_EXTENSIONS } from "@/constants/extension"; // plane editor imports -import { TAdditionalEditorAsset } from "@/plane-editor/types/asset"; +import type { TAdditionalEditorAsset } from "@/plane-editor/types/asset"; export type TEditorImageAsset = { href: string; diff --git a/packages/editor/src/core/types/config.ts b/packages/editor/src/core/types/config.ts index 67b4b310f..8d6dfc20d 100644 --- a/packages/editor/src/core/types/config.ts +++ b/packages/editor/src/core/types/config.ts @@ -1,6 +1,6 @@ // plane imports import { TWebhookConnectionQueryParams } from "@plane/types"; -import { TExtendedFileHandler } from "@/plane-editor/types/config"; +import type { TExtendedFileHandler } from "@/plane-editor/types/config"; export type TFileHandler = { assetsUploadStatus: Record; // blockId => progress percentage diff --git a/packages/editor/src/core/types/document-collaborative-events.ts b/packages/editor/src/core/types/document-collaborative-events.ts index 5f8a40304..53ca50bba 100644 --- a/packages/editor/src/core/types/document-collaborative-events.ts +++ b/packages/editor/src/core/types/document-collaborative-events.ts @@ -1,4 +1,4 @@ -import { DocumentCollaborativeEvents } from "@/constants/document-collaborative-events"; +import type { DocumentCollaborativeEvents } from "@/constants/document-collaborative-events"; // Base type for all action payloads export type BaseActionPayload = { diff --git a/packages/editor/src/core/types/mention.ts b/packages/editor/src/core/types/mention.ts index f85191941..ab7020c48 100644 --- a/packages/editor/src/core/types/mention.ts +++ b/packages/editor/src/core/types/mention.ts @@ -1,5 +1,5 @@ // plane types -import { TSearchEntities } from "@plane/types"; +import type { TSearchEntities } from "@plane/types"; export type TMentionSuggestion = { entity_identifier: string; diff --git a/packages/eslint-config/library.js b/packages/eslint-config/library.js index e93786acd..af4d1090c 100644 --- a/packages/eslint-config/library.js +++ b/packages/eslint-config/library.js @@ -27,7 +27,7 @@ module.exports = { "prefer-const": "error", "no-irregular-whitespace": "error", "no-trailing-spaces": "error", - "no-duplicate-imports": "error", + "import/no-duplicates": ["error", { considerQueryString: true }], "no-useless-catch": "warn", "no-case-declarations": "error", "no-undef": "error", @@ -40,6 +40,16 @@ module.exports = { "react/jsx-boolean-value": "error", "react/jsx-no-duplicate-props": "error", "react-hooks/exhaustive-deps": "warn", + "import/consistent-type-specifier-style": ["error", "prefer-top-level"], + "@typescript-eslint/no-import-type-side-effects": "error", + "@typescript-eslint/consistent-type-imports": [ + "error", + { + prefer: "type-imports", + fixStyle: "separate-type-imports", + disallowTypeAnnotations: false, + }, + ], "@typescript-eslint/no-unused-expressions": "warn", "@typescript-eslint/no-unused-vars": [ "warn", @@ -52,6 +62,7 @@ module.exports = { "@typescript-eslint/no-explicit-any": "warn", "@typescript-eslint/no-useless-empty-export": "error", "@typescript-eslint/prefer-ts-expect-error": "warn", + "import/order": [ "warn", { diff --git a/packages/eslint-config/next.js b/packages/eslint-config/next.js index 115178ec3..5d24776a6 100644 --- a/packages/eslint-config/next.js +++ b/packages/eslint-config/next.js @@ -26,7 +26,7 @@ module.exports = { "prefer-const": "error", "no-irregular-whitespace": "error", "no-trailing-spaces": "error", - "no-duplicate-imports": "error", + "import/no-duplicates": ["error", { considerQueryString: true }], "no-useless-catch": "warn", "no-case-declarations": "error", "no-undef": "error", @@ -39,6 +39,16 @@ module.exports = { "react/jsx-boolean-value": "error", "react/jsx-no-duplicate-props": "error", "react-hooks/exhaustive-deps": "warn", + "import/consistent-type-specifier-style": ["error", "prefer-top-level"], + "@typescript-eslint/no-import-type-side-effects": "error", + "@typescript-eslint/consistent-type-imports": [ + "error", + { + prefer: "type-imports", + fixStyle: "separate-type-imports", + disallowTypeAnnotations: false, + }, + ], "@typescript-eslint/no-unused-expressions": "warn", "@typescript-eslint/no-unused-vars": [ "warn", @@ -51,6 +61,7 @@ module.exports = { "@typescript-eslint/no-explicit-any": "warn", "@typescript-eslint/no-useless-empty-export": "error", "@typescript-eslint/prefer-ts-expect-error": "warn", + "@typescript-eslint/naming-convention": [ "warn", { diff --git a/packages/eslint-config/server.js b/packages/eslint-config/server.js index ca3ef9156..2e9713e87 100644 --- a/packages/eslint-config/server.js +++ b/packages/eslint-config/server.js @@ -31,6 +31,7 @@ module.exports = { caughtErrorsIgnorePattern: "^_", }, ], + "import/no-duplicates": ["error", { considerQueryString: true }], "import/order": [ "warn", { @@ -54,5 +55,15 @@ module.exports = { }, }, ], + "import/consistent-type-specifier-style": ["error", "prefer-top-level"], + "@typescript-eslint/no-import-type-side-effects": "error", + "@typescript-eslint/consistent-type-imports": [ + "error", + { + prefer: "type-imports", + fixStyle: "separate-type-imports", + disallowTypeAnnotations: false, + }, + ], }, }; diff --git a/packages/hooks/src/use-outside-click-detector.tsx b/packages/hooks/src/use-outside-click-detector.tsx index 54979f96a..a7c1b8d71 100644 --- a/packages/hooks/src/use-outside-click-detector.tsx +++ b/packages/hooks/src/use-outside-click-detector.tsx @@ -1,4 +1,5 @@ -import React, { useEffect } from "react"; +import type React from "react"; +import { useEffect } from "react"; export const useOutsideClickDetector = ( ref: React.RefObject | any, diff --git a/packages/i18n/src/constants/language.ts b/packages/i18n/src/constants/language.ts index 8e54c189d..906190256 100644 --- a/packages/i18n/src/constants/language.ts +++ b/packages/i18n/src/constants/language.ts @@ -1,4 +1,4 @@ -import { TLanguage, ILanguageOption } from "../types"; +import type { TLanguage, ILanguageOption } from "../types"; export const FALLBACK_LANGUAGE: TLanguage = "en"; diff --git a/packages/i18n/src/hooks/use-translation.ts b/packages/i18n/src/hooks/use-translation.ts index fb9886422..329d91e2a 100644 --- a/packages/i18n/src/hooks/use-translation.ts +++ b/packages/i18n/src/hooks/use-translation.ts @@ -2,7 +2,7 @@ import { useContext } from "react"; // context import { TranslationContext } from "../context"; // types -import { ILanguageOption, TLanguage } from "../types"; +import type { ILanguageOption, TLanguage } from "../types"; export type TTranslationStore = { t: (key: string, params?: Record) => string; diff --git a/packages/i18n/src/store/index.ts b/packages/i18n/src/store/index.ts index 7b89347b7..1593e40c0 100644 --- a/packages/i18n/src/store/index.ts +++ b/packages/i18n/src/store/index.ts @@ -6,7 +6,7 @@ import { FALLBACK_LANGUAGE, SUPPORTED_LANGUAGES, LANGUAGE_STORAGE_KEY, ETranslat // core translations imports import { enCore, locales } from "../locales"; // types -import { TLanguage, ILanguageOption, ITranslations } from "../types"; +import type { TLanguage, ILanguageOption, ITranslations } from "../types"; /** * Mobx store class for handling translations and language changes in the application diff --git a/packages/logger/src/config.ts b/packages/logger/src/config.ts index f571c8711..be951eb3e 100644 --- a/packages/logger/src/config.ts +++ b/packages/logger/src/config.ts @@ -1,4 +1,5 @@ -import { createLogger, format, LoggerOptions, transports } from "winston"; +import type { LoggerOptions } from "winston"; +import { createLogger, format, transports } from "winston"; export const loggerConfig: LoggerOptions = { level: process.env.LOG_LEVEL || "info", diff --git a/packages/propel/src/banner/banner.tsx b/packages/propel/src/banner/banner.tsx index f3c22ee22..051cd5c5c 100644 --- a/packages/propel/src/banner/banner.tsx +++ b/packages/propel/src/banner/banner.tsx @@ -1,7 +1,7 @@ import React from "react"; import { cn } from "../utils"; +import type { TBannerVariant } from "./helper"; import { - TBannerVariant, getBannerStyling, getBannerTitleStyling, getBannerActionStyling, diff --git a/packages/propel/src/button/button.tsx b/packages/propel/src/button/button.tsx index 4ade94817..e6c8875d6 100644 --- a/packages/propel/src/button/button.tsx +++ b/packages/propel/src/button/button.tsx @@ -1,6 +1,7 @@ import * as React from "react"; import { cn } from "../utils"; -import { getIconStyling, getButtonStyling, TButtonVariant, TButtonSizes } from "./helper"; +import type { TButtonVariant, TButtonSizes } from "./helper"; +import { getIconStyling, getButtonStyling } from "./helper"; export interface ButtonProps extends React.ButtonHTMLAttributes { variant?: TButtonVariant; diff --git a/packages/propel/src/card/card.tsx b/packages/propel/src/card/card.tsx index a58ec95d2..e17b252eb 100644 --- a/packages/propel/src/card/card.tsx +++ b/packages/propel/src/card/card.tsx @@ -1,14 +1,7 @@ import * as React from "react"; import { cn } from "../utils/classname"; -import { - ECardDirection, - ECardSpacing, - ECardVariant, - getCardStyle, - TCardDirection, - TCardSpacing, - TCardVariant, -} from "./helper"; +import type { TCardDirection, TCardSpacing, TCardVariant } from "./helper"; +import { ECardDirection, ECardSpacing, ECardVariant, getCardStyle } from "./helper"; export interface CardProps extends React.HTMLAttributes { variant?: TCardVariant; diff --git a/packages/propel/src/charts/area-chart/root.tsx b/packages/propel/src/charts/area-chart/root.tsx index db602fedb..ab12abe57 100644 --- a/packages/propel/src/charts/area-chart/root.tsx +++ b/packages/propel/src/charts/area-chart/root.tsx @@ -4,7 +4,7 @@ import React, { useMemo, useState } from "react"; import { Area, Legend, ResponsiveContainer, Tooltip, XAxis, YAxis, Line, ComposedChart, CartesianGrid } from "recharts"; // plane imports import { AXIS_LABEL_CLASSNAME } from "@plane/constants"; -import { TAreaChartProps } from "@plane/types"; +import type { TAreaChartProps } from "@plane/types"; // local components import { getLegendProps } from "../components/legend"; import { CustomXAxisTick, CustomYAxisTick } from "../components/tick"; diff --git a/packages/propel/src/charts/bar-chart/bar.tsx b/packages/propel/src/charts/bar-chart/bar.tsx index 55ddd7934..1b25acda3 100644 --- a/packages/propel/src/charts/bar-chart/bar.tsx +++ b/packages/propel/src/charts/bar-chart/bar.tsx @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import React from "react"; // plane imports -import { TBarChartShapeVariant, TBarItem, TChartData } from "@plane/types"; +import type { TBarChartShapeVariant, TBarItem, TChartData } from "@plane/types"; import { cn } from "../../utils/classname"; // Constants diff --git a/packages/propel/src/charts/bar-chart/root.tsx b/packages/propel/src/charts/bar-chart/root.tsx index a0ea10d3c..891ad7b38 100644 --- a/packages/propel/src/charts/bar-chart/root.tsx +++ b/packages/propel/src/charts/bar-chart/root.tsx @@ -14,7 +14,7 @@ import { } from "recharts"; // plane imports import { AXIS_LABEL_CLASSNAME } from "@plane/constants"; -import { TBarChartProps } from "@plane/types"; +import type { TBarChartProps } from "@plane/types"; // local components import { getLegendProps } from "../components/legend"; import { CustomXAxisTick, CustomYAxisTick } from "../components/tick"; diff --git a/packages/propel/src/charts/components/legend.tsx b/packages/propel/src/charts/components/legend.tsx index 8ca12f045..c631ae89c 100644 --- a/packages/propel/src/charts/components/legend.tsx +++ b/packages/propel/src/charts/components/legend.tsx @@ -1,7 +1,7 @@ import React from "react"; -import { LegendProps } from "recharts"; +import type { LegendProps } from "recharts"; // plane imports -import { TChartLegend } from "@plane/types"; +import type { TChartLegend } from "@plane/types"; import { cn } from "../../utils/classname"; export const getLegendProps = (args: TChartLegend): LegendProps => { diff --git a/packages/propel/src/charts/components/tooltip.tsx b/packages/propel/src/charts/components/tooltip.tsx index a2fa06b3b..6fbc54cfb 100644 --- a/packages/propel/src/charts/components/tooltip.tsx +++ b/packages/propel/src/charts/components/tooltip.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { NameType, Payload, ValueType } from "recharts/types/component/DefaultTooltipContent"; +import type { NameType, Payload, ValueType } from "recharts/types/component/DefaultTooltipContent"; import { Card, ECardSpacing } from "../../card"; import { cn } from "../../utils/classname"; diff --git a/packages/propel/src/charts/line-chart/root.tsx b/packages/propel/src/charts/line-chart/root.tsx index e59978692..8e9c1874c 100644 --- a/packages/propel/src/charts/line-chart/root.tsx +++ b/packages/propel/src/charts/line-chart/root.tsx @@ -14,7 +14,7 @@ import { } from "recharts"; // plane imports import { AXIS_LABEL_CLASSNAME } from "@plane/constants"; -import { TLineChartProps } from "@plane/types"; +import type { TLineChartProps } from "@plane/types"; // local components import { getLegendProps } from "../components/legend"; import { CustomXAxisTick, CustomYAxisTick } from "../components/tick"; diff --git a/packages/propel/src/charts/pie-chart/active-shape.tsx b/packages/propel/src/charts/pie-chart/active-shape.tsx index 59cf7d3fc..347f63923 100644 --- a/packages/propel/src/charts/pie-chart/active-shape.tsx +++ b/packages/propel/src/charts/pie-chart/active-shape.tsx @@ -1,6 +1,6 @@ import React from "react"; import { Sector } from "recharts"; -import { PieSectorDataItem } from "recharts/types/polar/Pie"; +import type { PieSectorDataItem } from "recharts/types/polar/Pie"; export const CustomActiveShape = React.memo((props: PieSectorDataItem) => { const { cx, cy, cornerRadius, innerRadius, outerRadius, startAngle, endAngle, fill } = props; diff --git a/packages/propel/src/charts/pie-chart/root.tsx b/packages/propel/src/charts/pie-chart/root.tsx index f49acfd7e..528bfca3e 100644 --- a/packages/propel/src/charts/pie-chart/root.tsx +++ b/packages/propel/src/charts/pie-chart/root.tsx @@ -3,7 +3,7 @@ import React, { useMemo, useState } from "react"; import { Cell, PieChart as CorePieChart, Label, Legend, Pie, ResponsiveContainer, Tooltip } from "recharts"; // plane imports -import { TPieChartProps } from "@plane/types"; +import type { TPieChartProps } from "@plane/types"; // local components import { getLegendProps } from "../components/legend"; import { CustomActiveShape } from "./active-shape"; diff --git a/packages/propel/src/charts/pie-chart/tooltip.tsx b/packages/propel/src/charts/pie-chart/tooltip.tsx index 537c0594a..b79792ee3 100644 --- a/packages/propel/src/charts/pie-chart/tooltip.tsx +++ b/packages/propel/src/charts/pie-chart/tooltip.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { NameType, Payload, ValueType } from "recharts/types/component/DefaultTooltipContent"; +import type { NameType, Payload, ValueType } from "recharts/types/component/DefaultTooltipContent"; // plane imports import { Card, ECardSpacing } from "../../card"; diff --git a/packages/propel/src/charts/radar-chart/root.tsx b/packages/propel/src/charts/radar-chart/root.tsx index b8a1b95d7..b87320dd1 100644 --- a/packages/propel/src/charts/radar-chart/root.tsx +++ b/packages/propel/src/charts/radar-chart/root.tsx @@ -8,7 +8,7 @@ import { Tooltip, Legend, } from "recharts"; -import { TRadarChartProps } from "@plane/types"; +import type { TRadarChartProps } from "@plane/types"; import { getLegendProps } from "../components/legend"; import { CustomRadarAxisTick } from "../components/tick"; import { CustomTooltip } from "../components/tooltip"; diff --git a/packages/propel/src/charts/scatter-chart/root.tsx b/packages/propel/src/charts/scatter-chart/root.tsx index 4ed4eecc1..33119662a 100644 --- a/packages/propel/src/charts/scatter-chart/root.tsx +++ b/packages/propel/src/charts/scatter-chart/root.tsx @@ -14,7 +14,7 @@ import { } from "recharts"; // plane imports import { AXIS_LABEL_CLASSNAME } from "@plane/constants"; -import { TScatterChartProps } from "@plane/types"; +import type { TScatterChartProps } from "@plane/types"; // local components import { getLegendProps } from "../components/legend"; import { CustomXAxisTick, CustomYAxisTick } from "../components/tick"; diff --git a/packages/propel/src/charts/tree-map/map-content.tsx b/packages/propel/src/charts/tree-map/map-content.tsx index 1a79a8df2..1970a45fa 100644 --- a/packages/propel/src/charts/tree-map/map-content.tsx +++ b/packages/propel/src/charts/tree-map/map-content.tsx @@ -1,6 +1,6 @@ import React, { useMemo } from "react"; // plane imports -import { TBottomSectionConfig, TContentVisibility, TTopSectionConfig } from "@plane/types"; +import type { TBottomSectionConfig, TContentVisibility, TTopSectionConfig } from "@plane/types"; import { cn } from "../../utils/classname"; const LAYOUT = { diff --git a/packages/propel/src/charts/tree-map/root.tsx b/packages/propel/src/charts/tree-map/root.tsx index 1dc874f07..2e4a734aa 100644 --- a/packages/propel/src/charts/tree-map/root.tsx +++ b/packages/propel/src/charts/tree-map/root.tsx @@ -1,7 +1,7 @@ import React from "react"; import { Treemap, ResponsiveContainer, Tooltip } from "recharts"; // plane imports -import { TreeMapChartProps } from "@plane/types"; +import type { TreeMapChartProps } from "@plane/types"; // local imports import { cn } from "../../utils/classname"; import { CustomTreeMapContent } from "./map-content"; diff --git a/packages/propel/src/emoji-icon-picker/emoji-picker.stories.tsx b/packages/propel/src/emoji-icon-picker/emoji-picker.stories.tsx index 3e00e6af3..dff807675 100644 --- a/packages/propel/src/emoji-icon-picker/emoji-picker.stories.tsx +++ b/packages/propel/src/emoji-icon-picker/emoji-picker.stories.tsx @@ -1,7 +1,8 @@ import { useState } from "react"; import type { Meta, StoryObj } from "@storybook/react-vite"; import { EmojiPicker } from "./emoji-picker"; -import { EmojiIconPickerTypes, TChangeHandlerProps } from "./helper"; +import type { TChangeHandlerProps } from "./helper"; +import { EmojiIconPickerTypes } from "./helper"; const meta = { title: "Components/Emoji/EmojiPicker", diff --git a/packages/propel/src/emoji-icon-picker/emoji-picker.tsx b/packages/propel/src/emoji-icon-picker/emoji-picker.tsx index 759fda144..9a80d45f5 100644 --- a/packages/propel/src/emoji-icon-picker/emoji-picker.tsx +++ b/packages/propel/src/emoji-icon-picker/emoji-picker.tsx @@ -4,7 +4,8 @@ import { Popover } from "../popover"; import { cn } from "../utils/classname"; import { convertPlacementToSideAndAlign } from "../utils/placement"; import { EmojiRoot } from "./emoji/emoji"; -import { emojiToString, TCustomEmojiPicker, EmojiIconPickerTypes } from "./helper"; +import type { TCustomEmojiPicker } from "./helper"; +import { emojiToString, EmojiIconPickerTypes } from "./helper"; import { IconRoot } from "./icon/icon-root"; export const EmojiPicker: React.FC = (props) => { diff --git a/packages/propel/src/emoji-icon-picker/helper.tsx b/packages/propel/src/emoji-icon-picker/helper.tsx index dfe2da2ff..072b07d47 100644 --- a/packages/propel/src/emoji-icon-picker/helper.tsx +++ b/packages/propel/src/emoji-icon-picker/helper.tsx @@ -1,4 +1,4 @@ -import { TPlacement, TSide, TAlign } from "../utils/placement"; +import type { TPlacement, TSide, TAlign } from "../utils/placement"; export const EmojiIconPickerTypes = { EMOJI: "emoji", diff --git a/packages/propel/src/emoji-reaction/emoji-reaction-picker.stories.tsx b/packages/propel/src/emoji-reaction/emoji-reaction-picker.stories.tsx index c2456b194..790e4cc97 100644 --- a/packages/propel/src/emoji-reaction/emoji-reaction-picker.stories.tsx +++ b/packages/propel/src/emoji-reaction/emoji-reaction-picker.stories.tsx @@ -2,7 +2,8 @@ import { useState } from "react"; import type { Meta, StoryObj } from "@storybook/react-vite"; import { SmilePlus } from "lucide-react"; import { stringToEmoji } from "../emoji-icon-picker"; -import { EmojiReactionGroup, EmojiReactionType } from "./emoji-reaction"; +import type { EmojiReactionType } from "./emoji-reaction"; +import { EmojiReactionGroup } from "./emoji-reaction"; import { EmojiReactionPicker } from "./emoji-reaction-picker"; const meta = { diff --git a/packages/propel/src/emoji-reaction/emoji-reaction-picker.tsx b/packages/propel/src/emoji-reaction/emoji-reaction-picker.tsx index a2f691f30..a217151e8 100644 --- a/packages/propel/src/emoji-reaction/emoji-reaction-picker.tsx +++ b/packages/propel/src/emoji-reaction/emoji-reaction-picker.tsx @@ -3,7 +3,8 @@ import { EmojiRoot } from "../emoji-icon-picker/emoji/emoji"; import { emojiToString } from "../emoji-icon-picker/helper"; import { Popover } from "../popover"; import { cn } from "../utils/classname"; -import { convertPlacementToSideAndAlign, type TPlacement, type TSide, type TAlign } from "../utils/placement"; +import { convertPlacementToSideAndAlign } from "../utils/placement"; +import type { TPlacement, TSide, TAlign } from "../utils/placement"; export interface EmojiReactionPickerProps { isOpen: boolean; diff --git a/packages/propel/src/emoji-reaction/emoji-reaction.stories.tsx b/packages/propel/src/emoji-reaction/emoji-reaction.stories.tsx index f0b6a2a94..7fb063e07 100644 --- a/packages/propel/src/emoji-reaction/emoji-reaction.stories.tsx +++ b/packages/propel/src/emoji-reaction/emoji-reaction.stories.tsx @@ -1,6 +1,7 @@ import { useState } from "react"; import type { Meta, StoryObj } from "@storybook/react-vite"; -import { EmojiReaction, EmojiReactionGroup, EmojiReactionButton, EmojiReactionType } from "./emoji-reaction"; +import type { EmojiReactionType } from "./emoji-reaction"; +import { EmojiReaction, EmojiReactionGroup, EmojiReactionButton } from "./emoji-reaction"; const meta = { title: "Components/Emoji/EmojiReaction", diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/customer.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/customer.tsx index a2d06a970..ff11731e8 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/customer.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/customer.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const CustomerHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/epic.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/epic.tsx index bd4a3dc3d..e35f9ec83 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/epic.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/epic.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const EpicHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/estimate.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/estimate.tsx index 997685360..997f60a48 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/estimate.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/estimate.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const EstimateHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/export.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/export.tsx index e5e0181c8..7da47eb7f 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/export.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/export.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const ExportHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/intake.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/intake.tsx index dc556b713..839d88131 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/intake.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/intake.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const IntakeHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/label.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/label.tsx index 8041aca6f..d42515018 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/label.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/label.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const LabelHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/link.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/link.tsx index bf1033c52..eca3bda06 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/link.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/link.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const LinkHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/members.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/members.tsx index 88463176a..8ecaa62b2 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/members.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/members.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const MembersHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/note.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/note.tsx index a312439bd..962ca4e12 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/note.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/note.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const NoteHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/priority.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/priority.tsx index 9d5507668..707a9b6b3 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/priority.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/priority.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const PriorityHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/project.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/project.tsx index 2417d6830..f8b5b529a 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/project.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/project.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const ProjectHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/state.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/state.tsx index ec4894db2..b3daeae3a 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/state.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/state.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const StateHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/template.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/template.tsx index 735a6037b..2147891dd 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/template.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/template.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const TemplateHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/token.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/token.tsx index 8ec4c149c..7f7204b58 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/token.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/token.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const TokenHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/unknown.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/unknown.tsx index 107dd1ed1..eaa5ac912 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/unknown.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/unknown.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const UnknownHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/webhook.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/webhook.tsx index 1e938ed43..b4f631dfa 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/webhook.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/webhook.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const WebhookHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/work-item.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/work-item.tsx index b1c80aab1..3efe73572 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/work-item.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/work-item.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const WorkItemHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/horizontal-stack/worklog.tsx b/packages/propel/src/empty-state/assets/horizontal-stack/worklog.tsx index 1e7920e5e..d090f1fa4 100644 --- a/packages/propel/src/empty-state/assets/horizontal-stack/worklog.tsx +++ b/packages/propel/src/empty-state/assets/horizontal-stack/worklog.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const WorklogHorizontalStackIllustration = ({ className }: TIllustrationAssetProps) => ( diff --git a/packages/propel/src/empty-state/assets/illustration/inbox.tsx b/packages/propel/src/empty-state/assets/illustration/inbox.tsx index 93aa614f9..e174545b8 100644 --- a/packages/propel/src/empty-state/assets/illustration/inbox.tsx +++ b/packages/propel/src/empty-state/assets/illustration/inbox.tsx @@ -1,4 +1,5 @@ -import { type TIllustrationAssetProps, ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import { ILLUSTRATION_COLOR_TOKEN_MAP } from "../helper"; +import type { TIllustrationAssetProps } from "../helper"; export const InboxIllustration = ({ className, ...rest }: TIllustrationAssetProps) => ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( = ({ color = "currentColor", ...rest }) => { const clipPathId = React.useId(); diff --git a/packages/propel/src/icons/actions/add-reaction-icon.tsx b/packages/propel/src/icons/actions/add-reaction-icon.tsx index aeee0e4fb..1ce0ce405 100644 --- a/packages/propel/src/icons/actions/add-reaction-icon.tsx +++ b/packages/propel/src/icons/actions/add-reaction-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const AddReactionIcon: React.FC = ({ color = "currentColor", ...rest }) => { const clipPathId = React.useId(); diff --git a/packages/propel/src/icons/actions/close-icon.tsx b/packages/propel/src/icons/actions/close-icon.tsx index 0e8f8ae60..f8003fdb0 100644 --- a/packages/propel/src/icons/actions/close-icon.tsx +++ b/packages/propel/src/icons/actions/close-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const CloseIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/activity-icon.tsx b/packages/propel/src/icons/activity-icon.tsx index 14f3b1d42..469f4ac21 100644 --- a/packages/propel/src/icons/activity-icon.tsx +++ b/packages/propel/src/icons/activity-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const ActivityIcon: React.FC = ({ className = "text-current", ...rest }) => ( = ({ width = "16", height = "16", className, color = "currentColor" }) => ( = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/arrows/chevron-left.tsx b/packages/propel/src/icons/arrows/chevron-left.tsx index 85a4a887a..e899a4855 100644 --- a/packages/propel/src/icons/arrows/chevron-left.tsx +++ b/packages/propel/src/icons/arrows/chevron-left.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const ChevronLeftIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/arrows/chevron-right.tsx b/packages/propel/src/icons/arrows/chevron-right.tsx index 8478254fd..e7378b5a9 100644 --- a/packages/propel/src/icons/arrows/chevron-right.tsx +++ b/packages/propel/src/icons/arrows/chevron-right.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const ChevronRightIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/arrows/chevron-up.tsx b/packages/propel/src/icons/arrows/chevron-up.tsx index d4dc2cb50..6c01b8968 100644 --- a/packages/propel/src/icons/arrows/chevron-up.tsx +++ b/packages/propel/src/icons/arrows/chevron-up.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const ChevronUpIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/at-risk-icon.tsx b/packages/propel/src/icons/at-risk-icon.tsx index 748307b3c..39c5b8c6a 100644 --- a/packages/propel/src/icons/at-risk-icon.tsx +++ b/packages/propel/src/icons/at-risk-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const AtRiskIcon: React.FC = ({ width = "16", height = "16" }) => ( diff --git a/packages/propel/src/icons/attachments/audio-file-icon.tsx b/packages/propel/src/icons/attachments/audio-file-icon.tsx index ce9477e3d..62b4e6c59 100644 --- a/packages/propel/src/icons/attachments/audio-file-icon.tsx +++ b/packages/propel/src/icons/attachments/audio-file-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const AudioFileIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/attachments/code-file-icon.tsx b/packages/propel/src/icons/attachments/code-file-icon.tsx index 10a52834a..8681328bf 100644 --- a/packages/propel/src/icons/attachments/code-file-icon.tsx +++ b/packages/propel/src/icons/attachments/code-file-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const CodeFileIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/attachments/document-file-icon.tsx b/packages/propel/src/icons/attachments/document-file-icon.tsx index 57dbdfbbf..ec9ae2194 100644 --- a/packages/propel/src/icons/attachments/document-file-icon.tsx +++ b/packages/propel/src/icons/attachments/document-file-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const DocumentFileIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/attachments/image-file-icon.tsx b/packages/propel/src/icons/attachments/image-file-icon.tsx index 0c3dd8969..cab163eb8 100644 --- a/packages/propel/src/icons/attachments/image-file-icon.tsx +++ b/packages/propel/src/icons/attachments/image-file-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const ImageFileIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/attachments/video-file-icon.tsx b/packages/propel/src/icons/attachments/video-file-icon.tsx index dea3397ca..ab5b0e75f 100644 --- a/packages/propel/src/icons/attachments/video-file-icon.tsx +++ b/packages/propel/src/icons/attachments/video-file-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const VideoFileIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/bar-icon.tsx b/packages/propel/src/icons/bar-icon.tsx index b20d5ebea..13b01105a 100644 --- a/packages/propel/src/icons/bar-icon.tsx +++ b/packages/propel/src/icons/bar-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const BarIcon: React.FC = ({ className = "", ...rest }) => ( diff --git a/packages/propel/src/icons/blocked-icon.tsx b/packages/propel/src/icons/blocked-icon.tsx index 18ea85f8b..6ce00ccfc 100644 --- a/packages/propel/src/icons/blocked-icon.tsx +++ b/packages/propel/src/icons/blocked-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const BlockedIcon: React.FC = ({ height = "24", width = "24", className = "", ...rest }) => ( = ({ height = "24", width = "24", className = "", ...rest }) => ( = ({ width = "51", diff --git a/packages/propel/src/icons/brand/dolby-logo.tsx b/packages/propel/src/icons/brand/dolby-logo.tsx index bae0fe0c7..b656c2d31 100644 --- a/packages/propel/src/icons/brand/dolby-logo.tsx +++ b/packages/propel/src/icons/brand/dolby-logo.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const DolbyLogo: React.FC = ({ width = "40", height = "16", className, color = "currentColor" }) => ( = ({ width = "253", diff --git a/packages/propel/src/icons/brand/plane-logo.tsx b/packages/propel/src/icons/brand/plane-logo.tsx index 69fb95ef4..8f30d6ccf 100644 --- a/packages/propel/src/icons/brand/plane-logo.tsx +++ b/packages/propel/src/icons/brand/plane-logo.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const PlaneLogo: React.FC = ({ width = "85", height = "52", className, color = "currentColor" }) => ( = ({ width = "146", diff --git a/packages/propel/src/icons/brand/sony-logo.tsx b/packages/propel/src/icons/brand/sony-logo.tsx index 62e8d2b78..088d3edce 100644 --- a/packages/propel/src/icons/brand/sony-logo.tsx +++ b/packages/propel/src/icons/brand/sony-logo.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const SonyLogo: React.FC = ({ width = "44", height = "16", className, color = "currentColor" }) => ( = ({ width = "64", diff --git a/packages/propel/src/icons/calendar-after-icon.tsx b/packages/propel/src/icons/calendar-after-icon.tsx index 905af0716..2e9e7a386 100644 --- a/packages/propel/src/icons/calendar-after-icon.tsx +++ b/packages/propel/src/icons/calendar-after-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const CalendarAfterIcon: React.FC = ({ className = "fill-current", ...rest }) => ( diff --git a/packages/propel/src/icons/calendar-before-icon.tsx b/packages/propel/src/icons/calendar-before-icon.tsx index 2e19e6f54..c7e2d2d84 100644 --- a/packages/propel/src/icons/calendar-before-icon.tsx +++ b/packages/propel/src/icons/calendar-before-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const CalendarBeforeIcon: React.FC = ({ className = "fill-current", ...rest }) => ( diff --git a/packages/propel/src/icons/center-panel-icon.tsx b/packages/propel/src/icons/center-panel-icon.tsx index 4704dbf0a..78b95acc8 100644 --- a/packages/propel/src/icons/center-panel-icon.tsx +++ b/packages/propel/src/icons/center-panel-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const CenterPanelIcon: React.FC = ({ className = "text-current", ...rest }) => ( = ({ className = "text-current", ...rest }) => ( diff --git a/packages/propel/src/icons/create-icon.tsx b/packages/propel/src/icons/create-icon.tsx index 34241f553..a0b3f342a 100644 --- a/packages/propel/src/icons/create-icon.tsx +++ b/packages/propel/src/icons/create-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const CreateIcon: React.FC = ({ className = "text-current", ...rest }) => ( = ({ className = "text-current", ...rest }) => ( diff --git a/packages/propel/src/icons/cycle/contrast-icon.tsx b/packages/propel/src/icons/cycle/contrast-icon.tsx index 86ac3619c..d9cd16e15 100644 --- a/packages/propel/src/icons/cycle/contrast-icon.tsx +++ b/packages/propel/src/icons/cycle/contrast-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const ContrastIcon: React.FC = ({ className = "text-current", ...rest }) => ( = ({ className = "text-current", ...rest }) => ( = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/dice-icon.tsx b/packages/propel/src/icons/dice-icon.tsx index 809d66145..d298eaf4a 100644 --- a/packages/propel/src/icons/dice-icon.tsx +++ b/packages/propel/src/icons/dice-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const DiceIcon: React.FC = ({ className = "text-current", ...rest }) => ( = ({ width = "24", height = "24", className }) => ( = ({ className = "text-current", ...rest }) => ( diff --git a/packages/propel/src/icons/done-icon.tsx b/packages/propel/src/icons/done-icon.tsx index 36fc491f3..218afd5cd 100644 --- a/packages/propel/src/icons/done-icon.tsx +++ b/packages/propel/src/icons/done-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const DoneState: React.FC = ({ width = "10", height = "11", className }) => ( = ({ className = "text-current", ...rest }) => ( = ({ className = "text-current", color = "#a3a3a3", ...rest }) => ( = ({ className = "text-current", ...rest }) => ( = ({ width = "24", height = "24", className, color }) => ( = ({ width = "24", height = "24", className, color }) => ( { name: IconName; diff --git a/packages/propel/src/icons/in-progress-icon.tsx b/packages/propel/src/icons/in-progress-icon.tsx index f85b7b26e..d0f66f4cc 100644 --- a/packages/propel/src/icons/in-progress-icon.tsx +++ b/packages/propel/src/icons/in-progress-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const InProgressState: React.FC = ({ width = "10", height = "11", className, color }) => ( = ({ className = "text-current", ...rest }) => ( diff --git a/packages/propel/src/icons/info-icon.tsx b/packages/propel/src/icons/info-icon.tsx index b71337539..8173595d5 100644 --- a/packages/propel/src/icons/info-icon.tsx +++ b/packages/propel/src/icons/info-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const InfoIcon: React.FC = ({ className = "text-current", ...rest }) => ( = ({ className = "text-current", ...rest }) => ( = ({ className = "text-current", ...rest }) => ( = ({ className = "text-current", ...rest }) => ( = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/layouts/calendar-icon.tsx b/packages/propel/src/icons/layouts/calendar-icon.tsx index 803d4a60a..e8a69f1c9 100644 --- a/packages/propel/src/icons/layouts/calendar-icon.tsx +++ b/packages/propel/src/icons/layouts/calendar-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const CalendarLayoutIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/layouts/card-icon.tsx b/packages/propel/src/icons/layouts/card-icon.tsx index 64be0629c..6bb7a73b8 100644 --- a/packages/propel/src/icons/layouts/card-icon.tsx +++ b/packages/propel/src/icons/layouts/card-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const CardLayoutIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/layouts/grid-icon.tsx b/packages/propel/src/icons/layouts/grid-icon.tsx index 91cb6b717..58a75ebcd 100644 --- a/packages/propel/src/icons/layouts/grid-icon.tsx +++ b/packages/propel/src/icons/layouts/grid-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const GridLayoutIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/layouts/list-icon.tsx b/packages/propel/src/icons/layouts/list-icon.tsx index 7d993c218..af71829de 100644 --- a/packages/propel/src/icons/layouts/list-icon.tsx +++ b/packages/propel/src/icons/layouts/list-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const ListLayoutIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/layouts/sheet-icon.tsx b/packages/propel/src/icons/layouts/sheet-icon.tsx index eea1b9fe1..12cdbdc3f 100644 --- a/packages/propel/src/icons/layouts/sheet-icon.tsx +++ b/packages/propel/src/icons/layouts/sheet-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const SheetLayoutIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/layouts/timeline-icon.tsx b/packages/propel/src/icons/layouts/timeline-icon.tsx index 36950de1c..7c0669dce 100644 --- a/packages/propel/src/icons/layouts/timeline-icon.tsx +++ b/packages/propel/src/icons/layouts/timeline-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const TimelineLayoutIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/lead-icon.tsx b/packages/propel/src/icons/lead-icon.tsx index 5bb9d4b81..c093b65a7 100644 --- a/packages/propel/src/icons/lead-icon.tsx +++ b/packages/propel/src/icons/lead-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const LeadIcon: React.FC = ({ className = "text-current", ...rest }) => ( diff --git a/packages/propel/src/icons/module/backlog.tsx b/packages/propel/src/icons/module/backlog.tsx index 22d87cd28..0ae7de2da 100644 --- a/packages/propel/src/icons/module/backlog.tsx +++ b/packages/propel/src/icons/module/backlog.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const ModuleBacklogIcon: React.FC = ({ width = "20", diff --git a/packages/propel/src/icons/module/cancelled.tsx b/packages/propel/src/icons/module/cancelled.tsx index b47cc874c..2194ce3e0 100644 --- a/packages/propel/src/icons/module/cancelled.tsx +++ b/packages/propel/src/icons/module/cancelled.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const ModuleCancelledIcon: React.FC = ({ width = "20", height = "20", className }) => ( = ({ width = "20", height = "20", className }) => ( = ({ width = "20", diff --git a/packages/propel/src/icons/module/paused.tsx b/packages/propel/src/icons/module/paused.tsx index a2d728ebf..021d2a8e1 100644 --- a/packages/propel/src/icons/module/paused.tsx +++ b/packages/propel/src/icons/module/paused.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const ModulePausedIcon: React.FC = ({ width = "20", height = "20", className }) => ( = ({ width = "20", height = "20", className }) => ( = ({ className = "text-current", ...rest }) => ( diff --git a/packages/propel/src/icons/multiple-sticky.tsx b/packages/propel/src/icons/multiple-sticky.tsx index 60f2eaf9b..6ec82be47 100644 --- a/packages/propel/src/icons/multiple-sticky.tsx +++ b/packages/propel/src/icons/multiple-sticky.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const RecentStickyIcon: React.FC = ({ className = "text-current", ...rest }) => ( = ({ width = "16", height = "16" }) => ( diff --git a/packages/propel/src/icons/on-track-icon.tsx b/packages/propel/src/icons/on-track-icon.tsx index 55abe8b34..26bb9f92c 100644 --- a/packages/propel/src/icons/on-track-icon.tsx +++ b/packages/propel/src/icons/on-track-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const OnTrackIcon: React.FC = ({ width = "16", height = "16" }) => ( diff --git a/packages/propel/src/icons/overview-icon.tsx b/packages/propel/src/icons/overview-icon.tsx index bcf371244..6fe8f34fc 100644 --- a/packages/propel/src/icons/overview-icon.tsx +++ b/packages/propel/src/icons/overview-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const OverviewIcon: React.FC = ({ className = "text-current", ...rest }) => ( diff --git a/packages/propel/src/icons/pending-icon.tsx b/packages/propel/src/icons/pending-icon.tsx index 217edaf83..efbe59318 100644 --- a/packages/propel/src/icons/pending-icon.tsx +++ b/packages/propel/src/icons/pending-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const PendingState: React.FC = ({ width = "10", height = "11", className, color = "#455068" }) => ( = ({ className = "text-current", ...rest }) => ( = ({ width = "10", height = "11", className }) => ( = ({ color = "currentColor", ...rest }) => { const clipPathId = React.useId(); diff --git a/packages/propel/src/icons/project/epic-icon.tsx b/packages/propel/src/icons/project/epic-icon.tsx index 35bebaafc..b3fb6e23d 100644 --- a/packages/propel/src/icons/project/epic-icon.tsx +++ b/packages/propel/src/icons/project/epic-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const EpicIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/project/intake-icon.tsx b/packages/propel/src/icons/project/intake-icon.tsx index 6bee44333..936b4e861 100644 --- a/packages/propel/src/icons/project/intake-icon.tsx +++ b/packages/propel/src/icons/project/intake-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const IntakeIcon: React.FC = ({ color = "currentColor", ...rest }) => { const clipPathId = React.useId(); diff --git a/packages/propel/src/icons/project/module-icon.tsx b/packages/propel/src/icons/project/module-icon.tsx index 6c4341a8d..78c8a2af2 100644 --- a/packages/propel/src/icons/project/module-icon.tsx +++ b/packages/propel/src/icons/project/module-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const ModuleIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/project/page-icon.tsx b/packages/propel/src/icons/project/page-icon.tsx index a98a740d8..0e855bcd4 100644 --- a/packages/propel/src/icons/project/page-icon.tsx +++ b/packages/propel/src/icons/project/page-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const PageIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/project/view-icon.tsx b/packages/propel/src/icons/project/view-icon.tsx index 1b6f6a38b..4079b4439 100644 --- a/packages/propel/src/icons/project/view-icon.tsx +++ b/packages/propel/src/icons/project/view-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const ViewsIcon: React.FC = ({ color = "currentColor", ...rest }) => { const clipPathId = React.useId(); diff --git a/packages/propel/src/icons/project/work-items-icon.tsx b/packages/propel/src/icons/project/work-items-icon.tsx index d48c8e58c..a08daaf71 100644 --- a/packages/propel/src/icons/project/work-items-icon.tsx +++ b/packages/propel/src/icons/project/work-items-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const WorkItemsIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/properties/boolean-icon.tsx b/packages/propel/src/icons/properties/boolean-icon.tsx index 5c9588c90..5de7ba05a 100644 --- a/packages/propel/src/icons/properties/boolean-icon.tsx +++ b/packages/propel/src/icons/properties/boolean-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const BooleanPropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/properties/dropdown-icon.tsx b/packages/propel/src/icons/properties/dropdown-icon.tsx index b0215524d..a5e83582a 100644 --- a/packages/propel/src/icons/properties/dropdown-icon.tsx +++ b/packages/propel/src/icons/properties/dropdown-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const DropdownPropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => { const clipPathId = React.useId(); diff --git a/packages/propel/src/icons/properties/due-date-icon.tsx b/packages/propel/src/icons/properties/due-date-icon.tsx index d8f73c04a..9e3074491 100644 --- a/packages/propel/src/icons/properties/due-date-icon.tsx +++ b/packages/propel/src/icons/properties/due-date-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const DueDatePropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/properties/duplicate-icon.tsx b/packages/propel/src/icons/properties/duplicate-icon.tsx index 8384fc8c1..50ade4cf8 100644 --- a/packages/propel/src/icons/properties/duplicate-icon.tsx +++ b/packages/propel/src/icons/properties/duplicate-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const DuplicatePropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => { const clipPathId = React.useId(); diff --git a/packages/propel/src/icons/properties/estimate-icon.tsx b/packages/propel/src/icons/properties/estimate-icon.tsx index ad59eb02b..799655245 100644 --- a/packages/propel/src/icons/properties/estimate-icon.tsx +++ b/packages/propel/src/icons/properties/estimate-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const EstimatePropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/properties/hash-icon.tsx b/packages/propel/src/icons/properties/hash-icon.tsx index c218a7971..1b20d6fd8 100644 --- a/packages/propel/src/icons/properties/hash-icon.tsx +++ b/packages/propel/src/icons/properties/hash-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const HashPropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/properties/label-icon.tsx b/packages/propel/src/icons/properties/label-icon.tsx index 97bd7f5b7..2bfeae065 100644 --- a/packages/propel/src/icons/properties/label-icon.tsx +++ b/packages/propel/src/icons/properties/label-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const LabelPropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => { const clipPathId = React.useId(); diff --git a/packages/propel/src/icons/properties/members-icon.tsx b/packages/propel/src/icons/properties/members-icon.tsx index 3627ec3a1..95e903e97 100644 --- a/packages/propel/src/icons/properties/members-icon.tsx +++ b/packages/propel/src/icons/properties/members-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const MembersPropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/properties/overdue-date-icon.tsx b/packages/propel/src/icons/properties/overdue-date-icon.tsx index 1c4152c63..97b36e673 100644 --- a/packages/propel/src/icons/properties/overdue-date-icon.tsx +++ b/packages/propel/src/icons/properties/overdue-date-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const OverdueDatePropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/properties/parent-icon.tsx b/packages/propel/src/icons/properties/parent-icon.tsx index 1104f2481..36dd58fc7 100644 --- a/packages/propel/src/icons/properties/parent-icon.tsx +++ b/packages/propel/src/icons/properties/parent-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const ParentPropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/properties/priority-icon.tsx b/packages/propel/src/icons/properties/priority-icon.tsx index 904235557..de528a987 100644 --- a/packages/propel/src/icons/properties/priority-icon.tsx +++ b/packages/propel/src/icons/properties/priority-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const PriorityPropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/properties/relates-to-icon.tsx b/packages/propel/src/icons/properties/relates-to-icon.tsx index 625999e6d..8328a1de8 100644 --- a/packages/propel/src/icons/properties/relates-to-icon.tsx +++ b/packages/propel/src/icons/properties/relates-to-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const RelatesToPropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/properties/relation-icon.tsx b/packages/propel/src/icons/properties/relation-icon.tsx index 82326b2d0..258ab030d 100644 --- a/packages/propel/src/icons/properties/relation-icon.tsx +++ b/packages/propel/src/icons/properties/relation-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const RelationPropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/properties/scope-icon.tsx b/packages/propel/src/icons/properties/scope-icon.tsx index 0f66ee10a..afee1b710 100644 --- a/packages/propel/src/icons/properties/scope-icon.tsx +++ b/packages/propel/src/icons/properties/scope-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const ScopePropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => { const clipPathId = React.useId(); diff --git a/packages/propel/src/icons/properties/start-date-icon.tsx b/packages/propel/src/icons/properties/start-date-icon.tsx index 28741aecf..db46c6817 100644 --- a/packages/propel/src/icons/properties/start-date-icon.tsx +++ b/packages/propel/src/icons/properties/start-date-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const StartDatePropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/properties/state-icon.tsx b/packages/propel/src/icons/properties/state-icon.tsx index fc69eace6..80e6820de 100644 --- a/packages/propel/src/icons/properties/state-icon.tsx +++ b/packages/propel/src/icons/properties/state-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const StatePropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => { const clipPathId = React.useId(); diff --git a/packages/propel/src/icons/properties/user-circle-icon.tsx b/packages/propel/src/icons/properties/user-circle-icon.tsx index 06fd6f3eb..a28f72f1c 100644 --- a/packages/propel/src/icons/properties/user-circle-icon.tsx +++ b/packages/propel/src/icons/properties/user-circle-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const UserCirclePropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => { const clipPathId = React.useId(); diff --git a/packages/propel/src/icons/properties/user-icon.tsx b/packages/propel/src/icons/properties/user-icon.tsx index d1dd3ca83..9e81972c3 100644 --- a/packages/propel/src/icons/properties/user-icon.tsx +++ b/packages/propel/src/icons/properties/user-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const UserPropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/properties/user-square-icon.tsx b/packages/propel/src/icons/properties/user-square-icon.tsx index 3e7521f28..f7a6c4547 100644 --- a/packages/propel/src/icons/properties/user-square-icon.tsx +++ b/packages/propel/src/icons/properties/user-square-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const UserSquarePropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => { const clipPathId = React.useId(); diff --git a/packages/propel/src/icons/properties/workflows-icon.tsx b/packages/propel/src/icons/properties/workflows-icon.tsx index ed3a2b6bd..7524911b8 100644 --- a/packages/propel/src/icons/properties/workflows-icon.tsx +++ b/packages/propel/src/icons/properties/workflows-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const WorkflowsPropertyIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/related-icon.tsx b/packages/propel/src/icons/related-icon.tsx index 514b5e96d..3d467284c 100644 --- a/packages/propel/src/icons/related-icon.tsx +++ b/packages/propel/src/icons/related-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const RelatedIcon: React.FC = ({ className = "text-current", ...rest }) => ( = ({ className = "text-current", ...rest }) => ( diff --git a/packages/propel/src/icons/serif-icon.tsx b/packages/propel/src/icons/serif-icon.tsx index fab5c12d3..01ed92989 100644 --- a/packages/propel/src/icons/serif-icon.tsx +++ b/packages/propel/src/icons/serif-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const SerifIcon: React.FC = ({ className = "text-current", ...rest }) => ( diff --git a/packages/propel/src/icons/side-panel-icon.tsx b/packages/propel/src/icons/side-panel-icon.tsx index 137b2d24e..3327124a4 100644 --- a/packages/propel/src/icons/side-panel-icon.tsx +++ b/packages/propel/src/icons/side-panel-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const SidePanelIcon: React.FC = ({ className = "text-current", ...rest }) => ( = ({ diff --git a/packages/propel/src/icons/state/cancelled-group-icon.tsx b/packages/propel/src/icons/state/cancelled-group-icon.tsx index fb802523e..dde633980 100644 --- a/packages/propel/src/icons/state/cancelled-group-icon.tsx +++ b/packages/propel/src/icons/state/cancelled-group-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const CancelledGroupIcon: React.FC = ({ className = "", diff --git a/packages/propel/src/icons/state/completed-group-icon.tsx b/packages/propel/src/icons/state/completed-group-icon.tsx index c4a15f15f..e0c21a175 100644 --- a/packages/propel/src/icons/state/completed-group-icon.tsx +++ b/packages/propel/src/icons/state/completed-group-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const CompletedGroupIcon: React.FC = ({ className = "", diff --git a/packages/propel/src/icons/state/started-group-icon.tsx b/packages/propel/src/icons/state/started-group-icon.tsx index d924c0d6c..275fd70eb 100644 --- a/packages/propel/src/icons/state/started-group-icon.tsx +++ b/packages/propel/src/icons/state/started-group-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; import { DashedCircle } from "./dashed-circle"; import { ProgressCircle } from "./progress-circle"; diff --git a/packages/propel/src/icons/state/state-group-icon.tsx b/packages/propel/src/icons/state/state-group-icon.tsx index b5647ae05..b5e023d17 100644 --- a/packages/propel/src/icons/state/state-group-icon.tsx +++ b/packages/propel/src/icons/state/state-group-icon.tsx @@ -4,7 +4,8 @@ import { EIconSize } from "@plane/constants"; import { BacklogGroupIcon } from "./backlog-group-icon"; import { CancelledGroupIcon } from "./cancelled-group-icon"; import { CompletedGroupIcon } from "./completed-group-icon"; -import { IStateGroupIcon, STATE_GROUP_COLORS, STATE_GROUP_SIZES } from "./helper"; +import type { IStateGroupIcon } from "./helper"; +import { STATE_GROUP_COLORS, STATE_GROUP_SIZES } from "./helper"; import { StartedGroupIcon } from "./started-group-icon"; import { UnstartedGroupIcon } from "./unstarted-group-icon"; diff --git a/packages/propel/src/icons/state/unstarted-group-icon.tsx b/packages/propel/src/icons/state/unstarted-group-icon.tsx index 9f57b698f..fbc251649 100644 --- a/packages/propel/src/icons/state/unstarted-group-icon.tsx +++ b/packages/propel/src/icons/state/unstarted-group-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; import { DashedCircle } from "./dashed-circle"; import { ProgressCircle } from "./progress-circle"; diff --git a/packages/propel/src/icons/sticky-note-icon.tsx b/packages/propel/src/icons/sticky-note-icon.tsx index fd1652dad..875e23007 100644 --- a/packages/propel/src/icons/sticky-note-icon.tsx +++ b/packages/propel/src/icons/sticky-note-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const StickyNoteIcon: React.FC = ({ width = "17", height = "17", className, color }) => ( = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/sub-brand/plane-icon.tsx b/packages/propel/src/icons/sub-brand/plane-icon.tsx index e645dedf7..949fbfa6f 100644 --- a/packages/propel/src/icons/sub-brand/plane-icon.tsx +++ b/packages/propel/src/icons/sub-brand/plane-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const PlaneNewIcon: React.FC = ({ color = "currentColor", ...rest }) => { const clipPathId = React.useId(); diff --git a/packages/propel/src/icons/sub-brand/wiki-icon.tsx b/packages/propel/src/icons/sub-brand/wiki-icon.tsx index 8d534dc0d..a3c9fe4d6 100644 --- a/packages/propel/src/icons/sub-brand/wiki-icon.tsx +++ b/packages/propel/src/icons/sub-brand/wiki-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const WikiIcon: React.FC = ({ color = "currentColor", ...rest }) => { const clipPathId = React.useId(); diff --git a/packages/propel/src/icons/suspended-user.tsx b/packages/propel/src/icons/suspended-user.tsx index 8ae0206b2..ad1b793cb 100644 --- a/packages/propel/src/icons/suspended-user.tsx +++ b/packages/propel/src/icons/suspended-user.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const SuspendedUserIcon: React.FC = ({ className, ...rest }) => ( diff --git a/packages/propel/src/icons/teams.tsx b/packages/propel/src/icons/teams.tsx index b73055598..56bc60dba 100644 --- a/packages/propel/src/icons/teams.tsx +++ b/packages/propel/src/icons/teams.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const TeamsIcon: React.FC = ({ className = "text-current", ...rest }) => ( diff --git a/packages/propel/src/icons/transfer-icon.tsx b/packages/propel/src/icons/transfer-icon.tsx index f762f9611..ebda6edcc 100644 --- a/packages/propel/src/icons/transfer-icon.tsx +++ b/packages/propel/src/icons/transfer-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const TransferIcon: React.FC = ({ className = "fill-current", ...rest }) => ( diff --git a/packages/propel/src/icons/tree-map-icon.tsx b/packages/propel/src/icons/tree-map-icon.tsx index b8de01069..c37d10a3f 100644 --- a/packages/propel/src/icons/tree-map-icon.tsx +++ b/packages/propel/src/icons/tree-map-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const TreeMapIcon: React.FC = ({ className = "", ...rest }) => ( diff --git a/packages/propel/src/icons/updates-icon.tsx b/packages/propel/src/icons/updates-icon.tsx index b7aa85e50..5af0ffc6f 100644 --- a/packages/propel/src/icons/updates-icon.tsx +++ b/packages/propel/src/icons/updates-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const UpdatesIcon: React.FC = ({ className = "text-current" }) => ( diff --git a/packages/propel/src/icons/user-activity-icon.tsx b/packages/propel/src/icons/user-activity-icon.tsx index 9a8e691fd..01bf740df 100644 --- a/packages/propel/src/icons/user-activity-icon.tsx +++ b/packages/propel/src/icons/user-activity-icon.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { ISvgIcons } from "./type"; +import type { ISvgIcons } from "./type"; export const UserActivityIcon: React.FC = ({ className = "text-current", ...rest }) => ( = ({ className }) => ( = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/workspace/archive-icon.tsx b/packages/propel/src/icons/workspace/archive-icon.tsx index 1d359d360..d5998cec1 100644 --- a/packages/propel/src/icons/workspace/archive-icon.tsx +++ b/packages/propel/src/icons/workspace/archive-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const ArchiveIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/workspace/dashboard-icon.tsx b/packages/propel/src/icons/workspace/dashboard-icon.tsx index fab6d145b..eb3b1f33d 100644 --- a/packages/propel/src/icons/workspace/dashboard-icon.tsx +++ b/packages/propel/src/icons/workspace/dashboard-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const DashboardIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/workspace/draft-icon.tsx b/packages/propel/src/icons/workspace/draft-icon.tsx index bec049e6b..16860e518 100644 --- a/packages/propel/src/icons/workspace/draft-icon.tsx +++ b/packages/propel/src/icons/workspace/draft-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const DraftIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/workspace/home-icon.tsx b/packages/propel/src/icons/workspace/home-icon.tsx index cfc3c06f5..d32facfa0 100644 --- a/packages/propel/src/icons/workspace/home-icon.tsx +++ b/packages/propel/src/icons/workspace/home-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const HomeIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/workspace/inbox-icon.tsx b/packages/propel/src/icons/workspace/inbox-icon.tsx index c4a6151b4..296195902 100644 --- a/packages/propel/src/icons/workspace/inbox-icon.tsx +++ b/packages/propel/src/icons/workspace/inbox-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const InboxIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/workspace/project-icon.tsx b/packages/propel/src/icons/workspace/project-icon.tsx index 357f03339..0a01dff26 100644 --- a/packages/propel/src/icons/workspace/project-icon.tsx +++ b/packages/propel/src/icons/workspace/project-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const ProjectIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/icons/workspace/your-work-icon.tsx b/packages/propel/src/icons/workspace/your-work-icon.tsx index 75a2ea79e..577d25596 100644 --- a/packages/propel/src/icons/workspace/your-work-icon.tsx +++ b/packages/propel/src/icons/workspace/your-work-icon.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { IconWrapper } from "../icon-wrapper"; -import { ISvgIcons } from "../type"; +import type { ISvgIcons } from "../type"; export const YourWorkIcon: React.FC = ({ color = "currentColor", ...rest }) => ( diff --git a/packages/propel/src/menu/menu.tsx b/packages/propel/src/menu/menu.tsx index 92ee70adb..c0cb4e09b 100644 --- a/packages/propel/src/menu/menu.tsx +++ b/packages/propel/src/menu/menu.tsx @@ -3,7 +3,7 @@ import { Menu as BaseMenu } from "@base-ui-components/react/menu"; import { MoreHorizontal } from "lucide-react"; import { ChevronDownIcon, ChevronRightIcon } from "../icons"; import { cn } from "../utils/classname"; -import { TMenuProps, TSubMenuProps, TMenuItemProps } from "./types"; +import type { TMenuProps, TSubMenuProps, TMenuItemProps } from "./types"; // Context for main menu to communicate with submenus const MenuContext = React.createContext<{ diff --git a/packages/propel/src/popover/root.tsx b/packages/propel/src/popover/root.tsx index c48b20b83..e5e46fa14 100644 --- a/packages/propel/src/popover/root.tsx +++ b/packages/propel/src/popover/root.tsx @@ -1,6 +1,7 @@ import * as React from "react"; import { Popover as BasePopover } from "@base-ui-components/react/popover"; -import { TPlacement, TSide, TAlign, convertPlacementToSideAndAlign } from "../utils/placement"; +import type { TPlacement, TSide, TAlign } from "../utils/placement"; +import { convertPlacementToSideAndAlign } from "../utils/placement"; export interface PopoverContentProps extends React.ComponentProps { placement?: TPlacement; diff --git a/packages/propel/src/portal/modal-portal.tsx b/packages/propel/src/portal/modal-portal.tsx index 59f304cd4..0d716159e 100644 --- a/packages/propel/src/portal/modal-portal.tsx +++ b/packages/propel/src/portal/modal-portal.tsx @@ -9,7 +9,7 @@ import { MODAL_Z_INDEX, } from "./constants"; import { PortalWrapper } from "./portal-wrapper"; -import { ModalPortalProps } from "./types"; +import type { ModalPortalProps } from "./types"; /** * @param children - The modal content to render diff --git a/packages/propel/src/portal/portal-wrapper.tsx b/packages/propel/src/portal/portal-wrapper.tsx index 2f67540bd..d2a8306d7 100644 --- a/packages/propel/src/portal/portal-wrapper.tsx +++ b/packages/propel/src/portal/portal-wrapper.tsx @@ -1,7 +1,7 @@ import React, { useLayoutEffect, useState, useMemo } from "react"; import { createPortal } from "react-dom"; import { DEFAULT_PORTAL_ID } from "./constants"; -import { PortalWrapperProps } from "./types"; +import type { PortalWrapperProps } from "./types"; /** * PortalWrapper - A reusable portal component that renders children into a specific DOM element diff --git a/packages/propel/src/portal/types.ts b/packages/propel/src/portal/types.ts index 036c91911..8a229bc8d 100644 --- a/packages/propel/src/portal/types.ts +++ b/packages/propel/src/portal/types.ts @@ -1,5 +1,5 @@ import type { ReactNode, MouseEvent as ReactMouseEvent } from "react"; -import { EPortalWidth, EPortalPosition } from "./constants"; +import type { EPortalWidth, EPortalPosition } from "./constants"; export interface BasePortalProps { children: ReactNode; diff --git a/packages/propel/src/toolbar/toolbar.tsx b/packages/propel/src/toolbar/toolbar.tsx index a1c372b91..0acf3b20e 100644 --- a/packages/propel/src/toolbar/toolbar.tsx +++ b/packages/propel/src/toolbar/toolbar.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import { LucideIcon } from "lucide-react"; +import type { LucideIcon } from "lucide-react"; import type { ISvgIcons } from "../icons"; import { Tooltip } from "../tooltip"; import { cn } from "../utils"; diff --git a/packages/propel/src/tooltip/root.tsx b/packages/propel/src/tooltip/root.tsx index 097435874..590f3e5dd 100644 --- a/packages/propel/src/tooltip/root.tsx +++ b/packages/propel/src/tooltip/root.tsx @@ -1,7 +1,8 @@ import * as React from "react"; import { Tooltip as BaseTooltip } from "@base-ui-components/react/tooltip"; import { cn } from "../utils/classname"; -import { TPlacement, TSide, TAlign, convertPlacementToSideAndAlign } from "../utils/placement"; +import type { TPlacement, TSide, TAlign } from "../utils/placement"; +import { convertPlacementToSideAndAlign } from "../utils/placement"; type ITooltipProps = { tooltipHeading?: string; diff --git a/packages/propel/src/utils/classname.tsx b/packages/propel/src/utils/classname.tsx index a0b592912..7b3aeb2f8 100644 --- a/packages/propel/src/utils/classname.tsx +++ b/packages/propel/src/utils/classname.tsx @@ -1,4 +1,5 @@ -import clsx, { type ClassValue } from "clsx"; +import clsx from "clsx"; +import type { ClassValue } from "clsx"; import { twMerge } from "tailwind-merge"; export const cn = (...inputs: ClassValue[]) => twMerge(clsx(inputs)); diff --git a/packages/services/src/ai/ai.service.ts b/packages/services/src/ai/ai.service.ts index 261cf9df5..3f2054ac7 100644 --- a/packages/services/src/ai/ai.service.ts +++ b/packages/services/src/ai/ai.service.ts @@ -1,5 +1,6 @@ // plane web constants -import { AI_EDITOR_TASKS, API_BASE_URL } from "@plane/constants"; +import type { AI_EDITOR_TASKS } from "@plane/constants"; +import { API_BASE_URL } from "@plane/constants"; // services import { APIService } from "../api.service"; diff --git a/packages/services/src/api.service.ts b/packages/services/src/api.service.ts index e2b74993e..7cdeb3f28 100644 --- a/packages/services/src/api.service.ts +++ b/packages/services/src/api.service.ts @@ -1,4 +1,5 @@ -import axios, { AxiosInstance, AxiosRequestConfig } from "axios"; +import type { AxiosInstance, AxiosRequestConfig } from "axios"; +import axios from "axios"; /** * Abstract base class for making HTTP requests using axios diff --git a/packages/services/src/auth/auth.service.ts b/packages/services/src/auth/auth.service.ts index 1890533d2..c32c93e66 100644 --- a/packages/services/src/auth/auth.service.ts +++ b/packages/services/src/auth/auth.service.ts @@ -1,6 +1,6 @@ import { API_BASE_URL } from "@plane/constants"; // types -import { ICsrfTokenData, IEmailCheckData, IEmailCheckResponse } from "@plane/types"; +import type { ICsrfTokenData, IEmailCheckData, IEmailCheckResponse } from "@plane/types"; // services import { APIService } from "../api.service"; diff --git a/packages/services/src/auth/sites-auth.service.ts b/packages/services/src/auth/sites-auth.service.ts index 638a7b6f2..8e2bf8ea5 100644 --- a/packages/services/src/auth/sites-auth.service.ts +++ b/packages/services/src/auth/sites-auth.service.ts @@ -1,6 +1,6 @@ import { API_BASE_URL } from "@plane/constants"; // types -import { IEmailCheckData, IEmailCheckResponse } from "@plane/types"; +import type { IEmailCheckData, IEmailCheckResponse } from "@plane/types"; // services import { APIService } from "../api.service"; diff --git a/packages/services/src/cycle/cycle-archive.service.ts b/packages/services/src/cycle/cycle-archive.service.ts index 784fd32e7..09d3e9687 100644 --- a/packages/services/src/cycle/cycle-archive.service.ts +++ b/packages/services/src/cycle/cycle-archive.service.ts @@ -1,5 +1,5 @@ import { API_BASE_URL } from "@plane/constants"; -import { ICycle } from "@plane/types"; +import type { ICycle } from "@plane/types"; import { APIService } from "../api.service"; /** diff --git a/packages/services/src/cycle/sites-cycle.service.ts b/packages/services/src/cycle/sites-cycle.service.ts index 99cf361a7..0fb17407b 100644 --- a/packages/services/src/cycle/sites-cycle.service.ts +++ b/packages/services/src/cycle/sites-cycle.service.ts @@ -1,6 +1,6 @@ // plane imports import { API_BASE_URL } from "@plane/constants"; -import { TPublicCycle } from "@plane/types"; +import type { TPublicCycle } from "@plane/types"; // api service import { APIService } from "../api.service"; diff --git a/packages/services/src/dashboard/dashboard.service.ts b/packages/services/src/dashboard/dashboard.service.ts index 6a4a6bcca..a705b1e18 100644 --- a/packages/services/src/dashboard/dashboard.service.ts +++ b/packages/services/src/dashboard/dashboard.service.ts @@ -1,5 +1,5 @@ import { API_BASE_URL } from "@plane/constants"; -import { THomeDashboardResponse, TWidget, TWidgetStatsResponse, TWidgetStatsRequestParams } from "@plane/types"; +import type { THomeDashboardResponse, TWidget, TWidgetStatsResponse, TWidgetStatsRequestParams } from "@plane/types"; import { APIService } from "../api.service"; export default class DashboardService extends APIService { diff --git a/packages/services/src/developer/api-token.service.ts b/packages/services/src/developer/api-token.service.ts index 703ec9d32..229d62c33 100644 --- a/packages/services/src/developer/api-token.service.ts +++ b/packages/services/src/developer/api-token.service.ts @@ -1,5 +1,5 @@ import { API_BASE_URL } from "@plane/constants"; -import { IApiToken } from "@plane/types"; +import type { IApiToken } from "@plane/types"; import { APIService } from "../api.service"; export class APITokenService extends APIService { diff --git a/packages/services/src/developer/webhook.service.ts b/packages/services/src/developer/webhook.service.ts index e48da3430..846e780d7 100644 --- a/packages/services/src/developer/webhook.service.ts +++ b/packages/services/src/developer/webhook.service.ts @@ -1,5 +1,5 @@ import { API_BASE_URL } from "@plane/constants"; -import { IWebhook } from "@plane/types"; +import type { IWebhook } from "@plane/types"; import { APIService } from "../api.service"; /** diff --git a/packages/services/src/file/file.service.ts b/packages/services/src/file/file.service.ts index 32edd4eb4..fe1e747d4 100644 --- a/packages/services/src/file/file.service.ts +++ b/packages/services/src/file/file.service.ts @@ -1,7 +1,7 @@ // plane imports import { API_BASE_URL } from "@plane/constants"; // api service -import { TDuplicateAssetData, TDuplicateAssetResponse } from "@plane/types"; +import type { TDuplicateAssetData, TDuplicateAssetResponse } from "@plane/types"; import { APIService } from "../api.service"; // helpers import { getAssetIdFromUrl } from "./helper"; diff --git a/packages/services/src/file/helper.ts b/packages/services/src/file/helper.ts index 49f47c2af..499d943b4 100644 --- a/packages/services/src/file/helper.ts +++ b/packages/services/src/file/helper.ts @@ -1,7 +1,7 @@ // external imports import { fileTypeFromBuffer } from "file-type"; // plane imports -import { TFileMetaDataLite, TFileSignedURLResponse } from "@plane/types"; +import type { TFileMetaDataLite, TFileSignedURLResponse } from "@plane/types"; /** * @description from the provided signed URL response, generate a payload to be used to upload the file diff --git a/packages/services/src/file/sites-file.service.ts b/packages/services/src/file/sites-file.service.ts index 0536c5043..4c1019857 100644 --- a/packages/services/src/file/sites-file.service.ts +++ b/packages/services/src/file/sites-file.service.ts @@ -1,7 +1,7 @@ // plane imports import { API_BASE_URL } from "@plane/constants"; // local services -import { TFileEntityInfo, TFileSignedURLResponse } from "@plane/types"; +import type { TFileEntityInfo, TFileSignedURLResponse } from "@plane/types"; import { FileUploadService } from "./file-upload.service"; // helpers import { FileService } from "./file.service"; diff --git a/packages/services/src/issue/sites-issue.service.ts b/packages/services/src/issue/sites-issue.service.ts index 9b6aa772e..a715f2093 100644 --- a/packages/services/src/issue/sites-issue.service.ts +++ b/packages/services/src/issue/sites-issue.service.ts @@ -1,6 +1,6 @@ // plane imports import { API_BASE_URL } from "@plane/constants"; -import { IPublicIssue, TIssuePublicComment, TPublicIssuesResponse } from "@plane/types"; +import type { IPublicIssue, TIssuePublicComment, TPublicIssuesResponse } from "@plane/types"; // api service import { APIService } from "../api.service"; diff --git a/packages/services/src/label/sites-label.service.ts b/packages/services/src/label/sites-label.service.ts index 60ad96271..0fb924f34 100644 --- a/packages/services/src/label/sites-label.service.ts +++ b/packages/services/src/label/sites-label.service.ts @@ -1,6 +1,6 @@ // plane imports import { API_BASE_URL } from "@plane/constants"; -import { IIssueLabel } from "@plane/types"; +import type { IIssueLabel } from "@plane/types"; // api service import { APIService } from "../api.service"; diff --git a/packages/services/src/module/sites-module.service.ts b/packages/services/src/module/sites-module.service.ts index 333535ac3..b99b57955 100644 --- a/packages/services/src/module/sites-module.service.ts +++ b/packages/services/src/module/sites-module.service.ts @@ -1,7 +1,7 @@ // plane imports import { API_BASE_URL } from "@plane/constants"; // api service -import { TPublicModule } from "@plane/types"; +import type { TPublicModule } from "@plane/types"; import { APIService } from "../api.service"; /** diff --git a/packages/services/src/project/sites-publish.service.ts b/packages/services/src/project/sites-publish.service.ts index 52d42f5ee..af2c41a4f 100644 --- a/packages/services/src/project/sites-publish.service.ts +++ b/packages/services/src/project/sites-publish.service.ts @@ -1,6 +1,6 @@ // plane imports import { API_BASE_URL } from "@plane/constants"; -import { TProjectPublishSettings } from "@plane/types"; +import type { TProjectPublishSettings } from "@plane/types"; // api service import { APIService } from "../api.service"; diff --git a/packages/services/src/state/sites-state.service.ts b/packages/services/src/state/sites-state.service.ts index 98ff466d0..7cf325e49 100644 --- a/packages/services/src/state/sites-state.service.ts +++ b/packages/services/src/state/sites-state.service.ts @@ -1,6 +1,6 @@ // plane imports import { API_BASE_URL } from "@plane/constants"; -import { IState } from "@plane/types"; +import type { IState } from "@plane/types"; // api service import { APIService } from "../api.service"; diff --git a/packages/services/src/user/sites-member.service.ts b/packages/services/src/user/sites-member.service.ts index 45cb80626..33a4ef4f0 100644 --- a/packages/services/src/user/sites-member.service.ts +++ b/packages/services/src/user/sites-member.service.ts @@ -1,6 +1,6 @@ // plane imports import { API_BASE_URL } from "@plane/constants"; -import { TPublicMember } from "@plane/types"; +import type { TPublicMember } from "@plane/types"; // api service import { APIService } from "../api.service"; diff --git a/packages/services/src/workspace/invitation.service.ts b/packages/services/src/workspace/invitation.service.ts index 46088371f..5cc74f5d5 100644 --- a/packages/services/src/workspace/invitation.service.ts +++ b/packages/services/src/workspace/invitation.service.ts @@ -1,5 +1,5 @@ import { API_BASE_URL } from "@plane/constants"; -import { IWorkspaceMemberInvitation, IWorkspaceBulkInviteFormData, IWorkspaceMember } from "@plane/types"; +import type { IWorkspaceMemberInvitation, IWorkspaceBulkInviteFormData, IWorkspaceMember } from "@plane/types"; import { APIService } from "../api.service"; /** diff --git a/packages/services/src/workspace/member.service.ts b/packages/services/src/workspace/member.service.ts index e92225af3..af9333669 100644 --- a/packages/services/src/workspace/member.service.ts +++ b/packages/services/src/workspace/member.service.ts @@ -1,5 +1,5 @@ import { API_BASE_URL } from "@plane/constants"; -import { IWorkspaceMemberMe, IWorkspaceMember, IUserProjectsRole } from "@plane/types"; +import type { IWorkspaceMemberMe, IWorkspaceMember, IUserProjectsRole } from "@plane/types"; import { APIService } from "../api.service"; /** diff --git a/packages/services/src/workspace/notification.service.ts b/packages/services/src/workspace/notification.service.ts index a21f63222..30c588a04 100644 --- a/packages/services/src/workspace/notification.service.ts +++ b/packages/services/src/workspace/notification.service.ts @@ -1,5 +1,5 @@ import { API_BASE_URL } from "@plane/constants"; -import { +import type { TUnreadNotificationsCount, TNotificationPaginatedInfo, TNotification, diff --git a/packages/services/src/workspace/view.service.ts b/packages/services/src/workspace/view.service.ts index 0ea21f742..995a16eb3 100644 --- a/packages/services/src/workspace/view.service.ts +++ b/packages/services/src/workspace/view.service.ts @@ -1,5 +1,5 @@ import { API_BASE_URL } from "@plane/constants"; -import { IWorkspaceView, TIssuesResponse } from "@plane/types"; +import type { IWorkspaceView, TIssuesResponse } from "@plane/types"; import { APIService } from "../api.service"; export class WorkspaceViewService extends APIService { diff --git a/packages/services/src/workspace/workspace.service.ts b/packages/services/src/workspace/workspace.service.ts index 72ef9fcef..14e84d2a2 100644 --- a/packages/services/src/workspace/workspace.service.ts +++ b/packages/services/src/workspace/workspace.service.ts @@ -1,5 +1,5 @@ import { API_BASE_URL } from "@plane/constants"; -import { IWorkspace, ILastActiveWorkspaceDetails, IWorkspaceSearchResults } from "@plane/types"; +import type { IWorkspace, ILastActiveWorkspaceDetails, IWorkspaceSearchResults } from "@plane/types"; import { APIService } from "../api.service"; /** diff --git a/packages/shared-state/src/store/rich-filters/adapter.ts b/packages/shared-state/src/store/rich-filters/adapter.ts index 1dc74a67e..17e8b806a 100644 --- a/packages/shared-state/src/store/rich-filters/adapter.ts +++ b/packages/shared-state/src/store/rich-filters/adapter.ts @@ -1,5 +1,5 @@ // plane imports -import { IFilterAdapter, TExternalFilter, TFilterExpression, TFilterProperty } from "@plane/types"; +import type { IFilterAdapter, TExternalFilter, TFilterExpression, TFilterProperty } from "@plane/types"; /** * Abstract base class for converting between external filter formats and internal filter expressions. diff --git a/packages/shared-state/src/store/rich-filters/config-manager.ts b/packages/shared-state/src/store/rich-filters/config-manager.ts index 6dc437bc2..4ef6af6d0 100644 --- a/packages/shared-state/src/store/rich-filters/config-manager.ts +++ b/packages/shared-state/src/store/rich-filters/config-manager.ts @@ -1,11 +1,13 @@ import { action, computed, makeObservable, observable } from "mobx"; import { computedFn } from "mobx-utils"; // plane imports -import { DEFAULT_FILTER_CONFIG_OPTIONS, TConfigOptions } from "@plane/constants"; -import { TExternalFilter, TFilterConfig, TFilterProperty, TFilterValue } from "@plane/types"; +import type { TConfigOptions } from "@plane/constants"; +import { DEFAULT_FILTER_CONFIG_OPTIONS } from "@plane/constants"; +import type { TExternalFilter, TFilterConfig, TFilterProperty, TFilterValue } from "@plane/types"; // local imports -import { FilterConfig, IFilterConfig } from "./config"; -import { IFilterInstance } from "./filter"; +import type { IFilterConfig } from "./config"; +import { FilterConfig } from "./config"; +import type { IFilterInstance } from "./filter"; /** * Interface for managing filter configurations. diff --git a/packages/shared-state/src/store/rich-filters/config.ts b/packages/shared-state/src/store/rich-filters/config.ts index 57fe8fcf4..c2cbabe5d 100644 --- a/packages/shared-state/src/store/rich-filters/config.ts +++ b/packages/shared-state/src/store/rich-filters/config.ts @@ -3,8 +3,7 @@ import { action, computed, makeObservable, observable, runInAction } from "mobx" import { computedFn } from "mobx-utils"; // plane imports import { EMPTY_OPERATOR_LABEL } from "@plane/constants"; -import { - FILTER_FIELD_TYPE, +import type { TSupportedOperators, TFilterConfig, TFilterProperty, @@ -12,6 +11,7 @@ import { TOperatorSpecificConfigs, TAllAvailableOperatorsForDisplay, } from "@plane/types"; +import { FILTER_FIELD_TYPE } from "@plane/types"; import { getOperatorLabel, isDateFilterType, diff --git a/packages/shared-state/src/store/rich-filters/filter-helpers.ts b/packages/shared-state/src/store/rich-filters/filter-helpers.ts index 9c57c3d71..dff175c07 100644 --- a/packages/shared-state/src/store/rich-filters/filter-helpers.ts +++ b/packages/shared-state/src/store/rich-filters/filter-helpers.ts @@ -1,10 +1,10 @@ import { cloneDeep } from "lodash-es"; import { action, makeObservable, observable, toJS } from "mobx"; // plane imports -import { DEFAULT_FILTER_EXPRESSION_OPTIONS, TAutoVisibilityOptions, TExpressionOptions } from "@plane/constants"; -import { +import type { TAutoVisibilityOptions, TExpressionOptions } from "@plane/constants"; +import { DEFAULT_FILTER_EXPRESSION_OPTIONS } from "@plane/constants"; +import type { IFilterAdapter, - LOGICAL_OPERATOR, TSupportedOperators, TFilterConditionNode, TFilterExpression, @@ -14,9 +14,10 @@ import { TLogicalOperator, TFilterConditionPayload, } from "@plane/types"; +import { LOGICAL_OPERATOR } from "@plane/types"; import { addAndCondition, createConditionNode, updateNodeInExpression } from "@plane/utils"; // local imports -import { type IFilterInstance } from "./filter"; +import type { IFilterInstance } from "./filter"; type TFilterInstanceHelperParams

= { adapter: IFilterAdapter; diff --git a/packages/shared-state/src/store/rich-filters/filter.ts b/packages/shared-state/src/store/rich-filters/filter.ts index 5fe35cc36..9166dd6fe 100644 --- a/packages/shared-state/src/store/rich-filters/filter.ts +++ b/packages/shared-state/src/store/rich-filters/filter.ts @@ -3,16 +3,15 @@ import { action, computed, makeObservable, observable, toJS } from "mobx"; import { computedFn } from "mobx-utils"; import { v4 as uuidv4 } from "uuid"; // plane imports -import { - DEFAULT_FILTER_VISIBILITY_OPTIONS, +import type { TClearFilterOptions, TExpressionOptions, TFilterOptions, TSaveViewOptions, TUpdateViewOptions, } from "@plane/constants"; -import { - FILTER_NODE_TYPE, +import { DEFAULT_FILTER_VISIBILITY_OPTIONS } from "@plane/constants"; +import type { IFilterAdapter, SingleOrArray, TAllAvailableOperatorsForDisplay, @@ -26,6 +25,7 @@ import { TLogicalOperator, TSupportedOperators, } from "@plane/types"; +import { FILTER_NODE_TYPE } from "@plane/types"; // local imports import { deepCompareFilterExpressions, @@ -39,8 +39,10 @@ import { shouldNotifyChangeForExpression, updateNodeInExpression, } from "@plane/utils"; -import { FilterConfigManager, IFilterConfigManager } from "./config-manager"; -import { FilterInstanceHelper, IFilterInstanceHelper } from "./filter-helpers"; +import type { IFilterConfigManager } from "./config-manager"; +import { FilterConfigManager } from "./config-manager"; +import type { IFilterInstanceHelper } from "./filter-helpers"; +import { FilterInstanceHelper } from "./filter-helpers"; /** * Interface for a filter instance. diff --git a/packages/shared-state/src/store/user.store.ts b/packages/shared-state/src/store/user.store.ts index f7f30f5ba..2a0c30ef0 100644 --- a/packages/shared-state/src/store/user.store.ts +++ b/packages/shared-state/src/store/user.store.ts @@ -1,5 +1,5 @@ import { makeObservable, observable } from "mobx"; -import { IWorkspaceStore } from "./workspace.store"; +import type { IWorkspaceStore } from "./workspace.store"; export interface IUserStore { user: any; diff --git a/packages/shared-state/src/store/work-item-filters/adapter.ts b/packages/shared-state/src/store/work-item-filters/adapter.ts index 5785dde1a..0e61749c3 100644 --- a/packages/shared-state/src/store/work-item-filters/adapter.ts +++ b/packages/shared-state/src/store/work-item-filters/adapter.ts @@ -1,8 +1,6 @@ // plane imports import { isEmpty } from "lodash-es"; -import { - LOGICAL_OPERATOR, - MULTI_VALUE_OPERATORS, +import type { SingleOrArray, TFilterExpression, TFilterValue, @@ -12,8 +10,8 @@ import { TWorkItemFilterExpression, TWorkItemFilterExpressionData, TWorkItemFilterProperty, - WORK_ITEM_FILTER_PROPERTY_KEYS, } from "@plane/types"; +import { LOGICAL_OPERATOR, MULTI_VALUE_OPERATORS, WORK_ITEM_FILTER_PROPERTY_KEYS } from "@plane/types"; import { createConditionNode, createAndGroupNode, isAndGroupNode, isConditionNode } from "@plane/utils"; // local imports import { FilterAdapter } from "../rich-filters/adapter"; diff --git a/packages/shared-state/src/store/work-item-filters/filter.store.ts b/packages/shared-state/src/store/work-item-filters/filter.store.ts index e07b9855d..beaa4cd36 100644 --- a/packages/shared-state/src/store/work-item-filters/filter.store.ts +++ b/packages/shared-state/src/store/work-item-filters/filter.store.ts @@ -1,14 +1,16 @@ import { action, makeObservable, observable } from "mobx"; import { computedFn } from "mobx-utils"; // plane imports -import { TExpressionOptions } from "@plane/constants"; -import { EIssuesStoreType, LOGICAL_OPERATOR, TWorkItemFilterExpression, TWorkItemFilterProperty } from "@plane/types"; +import type { TExpressionOptions } from "@plane/constants"; +import type { EIssuesStoreType, TWorkItemFilterExpression, TWorkItemFilterProperty } from "@plane/types"; +import { LOGICAL_OPERATOR } from "@plane/types"; import { getOperatorForPayload } from "@plane/utils"; // local imports -import { buildWorkItemFilterExpressionFromConditions, TWorkItemFilterCondition } from "../../utils"; +import type { TWorkItemFilterCondition } from "../../utils"; +import { buildWorkItemFilterExpressionFromConditions } from "../../utils"; import { FilterInstance } from "../rich-filters/filter"; import { workItemFiltersAdapter } from "./adapter"; -import { IWorkItemFilterInstance, TWorkItemFilterKey } from "./shared"; +import type { IWorkItemFilterInstance, TWorkItemFilterKey } from "./shared"; type TGetOrCreateFilterParams = { showOnMount?: boolean; diff --git a/packages/shared-state/src/store/work-item-filters/shared.ts b/packages/shared-state/src/store/work-item-filters/shared.ts index c8e9a6a84..c2a4056ca 100644 --- a/packages/shared-state/src/store/work-item-filters/shared.ts +++ b/packages/shared-state/src/store/work-item-filters/shared.ts @@ -1,7 +1,7 @@ // plane imports -import { EIssuesStoreType, TWorkItemFilterExpression, TWorkItemFilterProperty } from "@plane/types"; +import type { EIssuesStoreType, TWorkItemFilterExpression, TWorkItemFilterProperty } from "@plane/types"; // local imports -import { IFilterInstance } from "../rich-filters"; +import type { IFilterInstance } from "../rich-filters"; export type TWorkItemFilterKey = `${EIssuesStoreType}-${string}`; diff --git a/packages/shared-state/src/utils/rich-filter.helper.ts b/packages/shared-state/src/utils/rich-filter.helper.ts index 3d1533fcc..255be5c87 100644 --- a/packages/shared-state/src/utils/rich-filter.helper.ts +++ b/packages/shared-state/src/utils/rich-filter.helper.ts @@ -1,11 +1,6 @@ // plane imports -import { - LOGICAL_OPERATOR, - TBuildFilterExpressionParams, - TExternalFilter, - TFilterProperty, - TFilterValue, -} from "@plane/types"; +import type { TBuildFilterExpressionParams, TExternalFilter, TFilterProperty, TFilterValue } from "@plane/types"; +import { LOGICAL_OPERATOR } from "@plane/types"; import { getOperatorForPayload } from "@plane/utils"; // local imports import { FilterInstance } from "../store/rich-filters/filter"; diff --git a/packages/shared-state/src/utils/work-item-filters.helper.ts b/packages/shared-state/src/utils/work-item-filters.helper.ts index 8763e3f75..8e815743d 100644 --- a/packages/shared-state/src/utils/work-item-filters.helper.ts +++ b/packages/shared-state/src/utils/work-item-filters.helper.ts @@ -1,5 +1,5 @@ // plane imports -import { +import type { TBuildFilterExpressionParams, TFilterConditionForBuild, TFilterValue, diff --git a/packages/types/src/ai.ts b/packages/types/src/ai.ts index d1c2d2441..cbc7fabe4 100644 --- a/packages/types/src/ai.ts +++ b/packages/types/src/ai.ts @@ -1,5 +1,5 @@ -import { IProjectLite } from "./project"; -import { IWorkspaceLite } from "./workspace"; +import type { IProjectLite } from "./project"; +import type { IWorkspaceLite } from "./workspace"; export interface IGptResponse { response: string; diff --git a/packages/types/src/analytics.ts b/packages/types/src/analytics.ts index aa1b1e126..119a4aed0 100644 --- a/packages/types/src/analytics.ts +++ b/packages/types/src/analytics.ts @@ -1,4 +1,4 @@ -import { TChartData } from "./charts"; +import type { TChartData } from "./charts"; export enum ChartXAxisProperty { STATES = "STATES", diff --git a/packages/types/src/dashboard.ts b/packages/types/src/dashboard.ts index b928430ba..135325841 100644 --- a/packages/types/src/dashboard.ts +++ b/packages/types/src/dashboard.ts @@ -1,8 +1,8 @@ -import { EDurationFilters } from "./enums"; -import { IIssueActivity, TIssuePriorities } from "./issues"; -import { TIssue } from "./issues/issue"; -import { TIssueRelationTypes } from "./issues/issue_relation"; -import { TStateGroups } from "./state"; +import type { EDurationFilters } from "./enums"; +import type { IIssueActivity, TIssuePriorities } from "./issues"; +import type { TIssue } from "./issues/issue"; +import type { TIssueRelationTypes } from "./issues/issue_relation"; +import type { TStateGroups } from "./state"; export type TWidgetKeys = | "overview_stats" diff --git a/packages/types/src/de-dupe.ts b/packages/types/src/de-dupe.ts index e6105a0c0..b36a78046 100644 --- a/packages/types/src/de-dupe.ts +++ b/packages/types/src/de-dupe.ts @@ -1,4 +1,4 @@ -import { TIssuePriorities } from "./issues"; +import type { TIssuePriorities } from "./issues"; export type TDuplicateIssuePayload = { title: string; diff --git a/packages/types/src/estimate.ts b/packages/types/src/estimate.ts index 0de2019fa..969f76a92 100644 --- a/packages/types/src/estimate.ts +++ b/packages/types/src/estimate.ts @@ -1,4 +1,4 @@ -import { EEstimateSystem, EEstimateUpdateStages } from "./enums"; +import type { EEstimateSystem, EEstimateUpdateStages } from "./enums"; export interface IEstimatePoint { id: string | undefined; diff --git a/packages/types/src/favorite/favorite.ts b/packages/types/src/favorite/favorite.ts index 65df79384..b5404167e 100644 --- a/packages/types/src/favorite/favorite.ts +++ b/packages/types/src/favorite/favorite.ts @@ -1,4 +1,4 @@ -import { TLogoProps } from "../common"; +import type { TLogoProps } from "../common"; export type IFavorite = { id: string; diff --git a/packages/types/src/file.ts b/packages/types/src/file.ts index d26533221..2a6055956 100644 --- a/packages/types/src/file.ts +++ b/packages/types/src/file.ts @@ -1,4 +1,4 @@ -import { EFileAssetType } from "./enums"; +import type { EFileAssetType } from "./enums"; export type TFileMetaDataLite = { name: string; diff --git a/packages/types/src/home.ts b/packages/types/src/home.ts index f34c15380..107daeb21 100644 --- a/packages/types/src/home.ts +++ b/packages/types/src/home.ts @@ -1,5 +1,5 @@ -import { TLogoProps } from "./common"; -import { TIssuePriorities } from "./issues"; +import type { TLogoProps } from "./common"; +import type { TIssuePriorities } from "./issues"; export type TRecentActivityFilterKeys = "all item" | "issue" | "page" | "project" | "workspace_page"; export type THomeWidgetKeys = "quick_links" | "recents" | "my_stickies" | "quick_tutorial" | "new_at_plane"; diff --git a/packages/types/src/importer/index.ts b/packages/types/src/importer/index.ts index 271d685b6..99a262d47 100644 --- a/packages/types/src/importer/index.ts +++ b/packages/types/src/importer/index.ts @@ -1,9 +1,9 @@ export * from "./github-importer"; export * from "./jira-importer"; -import { IProjectLite } from "../project"; +import type { IProjectLite } from "../project"; // types -import { IUserLite } from "../users"; +import type { IUserLite } from "../users"; export interface IImporterService { created_at: string; diff --git a/packages/types/src/inbox.ts b/packages/types/src/inbox.ts index d439f333a..daf936da3 100644 --- a/packages/types/src/inbox.ts +++ b/packages/types/src/inbox.ts @@ -1,7 +1,7 @@ // plane types -import { TPaginationInfo } from "./common"; -import { TIssuePriorities } from "./issues"; -import { TIssue } from "./issues/issue"; +import type { TPaginationInfo } from "./common"; +import type { TIssuePriorities } from "./issues"; +import type { TIssue } from "./issues/issue"; export enum EInboxIssueCurrentTab { OPEN = "open", diff --git a/packages/types/src/instance/base.ts b/packages/types/src/instance/base.ts index 8f3a0c648..742698f56 100644 --- a/packages/types/src/instance/base.ts +++ b/packages/types/src/instance/base.ts @@ -1,5 +1,5 @@ -import { IUserLite } from "../users"; -import { +import type { IUserLite } from "../users"; +import type { TInstanceAIConfigurationKeys, TInstanceEmailConfigurationKeys, TInstanceImageConfigurationKeys, diff --git a/packages/types/src/issues.ts b/packages/types/src/issues.ts index 44bb09e75..7d7aba3d5 100644 --- a/packages/types/src/issues.ts +++ b/packages/types/src/issues.ts @@ -1,17 +1,17 @@ -import { ICycle } from "./cycle"; -import { TIssue } from "./issues/issue"; -import { IModule } from "./module"; -import { IProjectLite } from "./project"; -import { IStateLite } from "./state"; -import { IUserLite } from "./users"; -import { +import type { ICycle } from "./cycle"; +import type { TIssue } from "./issues/issue"; +import type { IModule } from "./module"; +import type { IProjectLite } from "./project"; +import type { IStateLite } from "./state"; +import type { IUserLite } from "./users"; +import type { IIssueDisplayProperties, TIssueExtraOptions, TIssueGroupByOptions, TIssueGroupingFilters, TIssueOrderByOptions, } from "./view-props"; -import { IWorkspaceLite, Properties } from "./workspace"; +import type { IWorkspaceLite, Properties } from "./workspace"; export interface IIssueCycle { id: string; diff --git a/packages/types/src/issues/activity/base.ts b/packages/types/src/issues/activity/base.ts index e239ef9f0..b822fd25f 100644 --- a/packages/types/src/issues/activity/base.ts +++ b/packages/types/src/issues/activity/base.ts @@ -2,7 +2,7 @@ export * from "./issue_activity"; export * from "./issue_comment"; export * from "./issue_comment_reaction"; -import { TIssuePriorities } from "../../issues"; +import type { TIssuePriorities } from "../../issues"; // root types export type TIssueActivityWorkspaceDetail = { diff --git a/packages/types/src/issues/activity/issue_activity.ts b/packages/types/src/issues/activity/issue_activity.ts index bb71864e4..16bf355d1 100644 --- a/packages/types/src/issues/activity/issue_activity.ts +++ b/packages/types/src/issues/activity/issue_activity.ts @@ -1,6 +1,6 @@ // local imports -import { EInboxIssueSource } from "../../inbox"; -import { +import type { EInboxIssueSource } from "../../inbox"; +import type { TIssueActivityWorkspaceDetail, TIssueActivityProjectDetail, TIssueActivityIssueDetail, diff --git a/packages/types/src/issues/activity/issue_comment.ts b/packages/types/src/issues/activity/issue_comment.ts index f5db3679e..a4d887be5 100644 --- a/packages/types/src/issues/activity/issue_comment.ts +++ b/packages/types/src/issues/activity/issue_comment.ts @@ -1,9 +1,9 @@ -import { JSONContent } from "../../editor"; -import { EIssueCommentAccessSpecifier } from "../../enums"; -import { TFileSignedURLResponse } from "../../file"; -import { IUserLite } from "../../users"; -import { IWorkspaceLite } from "../../workspace"; -import { +import type { JSONContent } from "../../editor"; +import type { EIssueCommentAccessSpecifier } from "../../enums"; +import type { TFileSignedURLResponse } from "../../file"; +import type { IUserLite } from "../../users"; +import type { IWorkspaceLite } from "../../workspace"; +import type { TIssueActivityWorkspaceDetail, TIssueActivityProjectDetail, TIssueActivityIssueDetail, diff --git a/packages/types/src/issues/issue.ts b/packages/types/src/issues/issue.ts index 85069632e..f24e2718c 100644 --- a/packages/types/src/issues/issue.ts +++ b/packages/types/src/issues/issue.ts @@ -1,9 +1,9 @@ -import { TIssuePriorities } from "../issues"; -import { TIssuePublicComment } from "./activity/issue_comment"; -import { TIssueAttachment } from "./issue_attachment"; -import { TIssueLink } from "./issue_link"; -import { TIssueReaction, IIssuePublicReaction, IPublicVote } from "./issue_reaction"; -import { TIssueRelationTypes } from "./issue_relation"; +import type { TIssuePriorities } from "../issues"; +import type { TIssuePublicComment } from "./activity/issue_comment"; +import type { TIssueAttachment } from "./issue_attachment"; +import type { TIssueLink } from "./issue_link"; +import type { TIssueReaction, IIssuePublicReaction, IPublicVote } from "./issue_reaction"; +import type { TIssueRelationTypes } from "./issue_relation"; export enum EIssueLayoutTypes { LIST = "list", diff --git a/packages/types/src/issues/issue_attachment.ts b/packages/types/src/issues/issue_attachment.ts index d118568af..69d24c03d 100644 --- a/packages/types/src/issues/issue_attachment.ts +++ b/packages/types/src/issues/issue_attachment.ts @@ -1,4 +1,4 @@ -import { TFileSignedURLResponse } from "../file"; +import type { TFileSignedURLResponse } from "../file"; export type TIssueAttachment = { id: string; diff --git a/packages/types/src/issues/issue_reaction.ts b/packages/types/src/issues/issue_reaction.ts index bb0bf7a6a..579ee2be6 100644 --- a/packages/types/src/issues/issue_reaction.ts +++ b/packages/types/src/issues/issue_reaction.ts @@ -1,4 +1,4 @@ -import { IUserLite } from "../users"; +import type { IUserLite } from "../users"; export type TIssueReaction = { actor: string; diff --git a/packages/types/src/issues/issue_relation.ts b/packages/types/src/issues/issue_relation.ts index 53dc178f4..7d4c9d415 100644 --- a/packages/types/src/issues/issue_relation.ts +++ b/packages/types/src/issues/issue_relation.ts @@ -1,4 +1,4 @@ -import { TIssue } from "./issue"; +import type { TIssue } from "./issue"; export type TIssueRelation = Record; diff --git a/packages/types/src/issues/issue_sub_issues.ts b/packages/types/src/issues/issue_sub_issues.ts index d78d69503..fbfc7fe0e 100644 --- a/packages/types/src/issues/issue_sub_issues.ts +++ b/packages/types/src/issues/issue_sub_issues.ts @@ -1,4 +1,4 @@ -import { TIssue } from "./issue"; +import type { TIssue } from "./issue"; export type TSubIssuesStateDistribution = { backlog: string[]; diff --git a/packages/types/src/page/core.ts b/packages/types/src/page/core.ts index 9351d7d27..99b464188 100644 --- a/packages/types/src/page/core.ts +++ b/packages/types/src/page/core.ts @@ -1,6 +1,6 @@ -import { TLogoProps } from "../common"; -import { EPageAccess } from "../enums"; -import { TPageExtended } from "./extended"; +import type { TLogoProps } from "../common"; +import type { EPageAccess } from "../enums"; +import type { TPageExtended } from "./extended"; export type TPage = { access: EPageAccess | undefined; diff --git a/packages/types/src/project/projects.ts b/packages/types/src/project/projects.ts index 692768875..afcb28793 100644 --- a/packages/types/src/project/projects.ts +++ b/packages/types/src/project/projects.ts @@ -1,6 +1,6 @@ -import { TLogoProps } from "../common"; -import { TUserPermissions } from "../enums"; -import { TStateGroups } from "../state"; +import type { TLogoProps } from "../common"; +import type { TUserPermissions } from "../enums"; +import type { TStateGroups } from "../state"; import type { IUser, IUserLite } from "../users"; import type { IWorkspace } from "../workspace"; diff --git a/packages/types/src/publish.ts b/packages/types/src/publish.ts index 358d6e5da..646fc4c85 100644 --- a/packages/types/src/publish.ts +++ b/packages/types/src/publish.ts @@ -1,5 +1,5 @@ -import { IProject, IProjectLite } from "./project"; -import { IWorkspaceLite } from "./workspace"; +import type { IProject, IProjectLite } from "./project"; +import type { IWorkspaceLite } from "./workspace"; export type TPublishEntityType = "project" | "page"; diff --git a/packages/types/src/reaction.ts b/packages/types/src/reaction.ts index 7913b9870..b87a2c68d 100644 --- a/packages/types/src/reaction.ts +++ b/packages/types/src/reaction.ts @@ -1,4 +1,4 @@ -import { IUserLite } from "./users"; +import type { IUserLite } from "./users"; export interface IIssueReaction { actor: string; diff --git a/packages/types/src/rich-filters/adapter.ts b/packages/types/src/rich-filters/adapter.ts index 8641ec33f..ddcada6d5 100644 --- a/packages/types/src/rich-filters/adapter.ts +++ b/packages/types/src/rich-filters/adapter.ts @@ -1,5 +1,5 @@ // local imports -import { TFilterExpression, TFilterProperty } from "./expression"; +import type { TFilterExpression, TFilterProperty } from "./expression"; /** * External filter format diff --git a/packages/types/src/rich-filters/builder.ts b/packages/types/src/rich-filters/builder.ts index 1dc0847fa..4fea4305d 100644 --- a/packages/types/src/rich-filters/builder.ts +++ b/packages/types/src/rich-filters/builder.ts @@ -1,7 +1,7 @@ -import { SingleOrArray } from "../utils"; -import { IFilterAdapter, TExternalFilter } from "./adapter"; -import { TFilterProperty, TFilterValue } from "./expression"; -import { TAllAvailableOperatorsForDisplay } from "./operators"; +import type { SingleOrArray } from "../utils"; +import type { IFilterAdapter, TExternalFilter } from "./adapter"; +import type { TFilterProperty, TFilterValue } from "./expression"; +import type { TAllAvailableOperatorsForDisplay } from "./operators"; /** * Condition payload for building filter expressions. diff --git a/packages/types/src/rich-filters/config/filter-config.ts b/packages/types/src/rich-filters/config/filter-config.ts index de84a6596..e35a29257 100644 --- a/packages/types/src/rich-filters/config/filter-config.ts +++ b/packages/types/src/rich-filters/config/filter-config.ts @@ -1,5 +1,5 @@ -import { TFilterProperty, TFilterValue } from "../expression"; -import { TOperatorConfigMap } from "../operator-configs"; +import type { TFilterProperty, TFilterValue } from "../expression"; +import type { TOperatorConfigMap } from "../operator-configs"; /** * Main filter configuration type for different properties. diff --git a/packages/types/src/rich-filters/derived/core.ts b/packages/types/src/rich-filters/derived/core.ts index 23c960c90..5eec05ad0 100644 --- a/packages/types/src/rich-filters/derived/core.ts +++ b/packages/types/src/rich-filters/derived/core.ts @@ -1,12 +1,12 @@ -import { TFilterValue } from "../expression"; -import { +import type { TFilterValue } from "../expression"; +import type { TDateFilterFieldConfig, TDateRangeFilterFieldConfig, TSingleSelectFilterFieldConfig, TMultiSelectFilterFieldConfig, } from "../field-types"; -import { TCoreOperatorSpecificConfigs } from "../operator-configs"; -import { TFilterOperatorHelper } from "./shared"; +import type { TCoreOperatorSpecificConfigs } from "../operator-configs"; +import type { TFilterOperatorHelper } from "./shared"; // -------- DATE FILTER OPERATORS -------- diff --git a/packages/types/src/rich-filters/derived/extended.ts b/packages/types/src/rich-filters/derived/extended.ts index 118e5b87b..c5fc9b821 100644 --- a/packages/types/src/rich-filters/derived/extended.ts +++ b/packages/types/src/rich-filters/derived/extended.ts @@ -1,4 +1,4 @@ -import { TFilterValue } from "../expression"; +import type { TFilterValue } from "../expression"; // -------- DATE FILTER OPERATORS -------- diff --git a/packages/types/src/rich-filters/derived/index.ts b/packages/types/src/rich-filters/derived/index.ts index cc31c946c..67f84aa6b 100644 --- a/packages/types/src/rich-filters/derived/index.ts +++ b/packages/types/src/rich-filters/derived/index.ts @@ -1,11 +1,11 @@ -import { TFilterValue } from "../expression"; -import { +import type { TFilterValue } from "../expression"; +import type { TCoreAllAvailableDateFilterOperatorsForDisplay, TCoreAllAvailableSelectFilterOperatorsForDisplay, TCoreSupportedDateFilterOperators, TCoreSupportedSelectFilterOperators, } from "./core"; -import { +import type { TExtendedAllAvailableDateFilterOperatorsForDisplay, TExtendedAllAvailableSelectFilterOperatorsForDisplay, TExtendedSupportedDateFilterOperators, diff --git a/packages/types/src/rich-filters/expression.ts b/packages/types/src/rich-filters/expression.ts index 10d115e84..82d5aa408 100644 --- a/packages/types/src/rich-filters/expression.ts +++ b/packages/types/src/rich-filters/expression.ts @@ -1,6 +1,6 @@ // local imports -import { SingleOrArray } from "../utils"; -import { TSupportedOperators, LOGICAL_OPERATOR, TAllAvailableOperatorsForDisplay } from "./operators"; +import type { SingleOrArray } from "../utils"; +import type { TSupportedOperators, LOGICAL_OPERATOR, TAllAvailableOperatorsForDisplay } from "./operators"; /** * Filter node types for building hierarchical filter trees. diff --git a/packages/types/src/rich-filters/field-types/core.ts b/packages/types/src/rich-filters/field-types/core.ts index 504979f21..ed88466af 100644 --- a/packages/types/src/rich-filters/field-types/core.ts +++ b/packages/types/src/rich-filters/field-types/core.ts @@ -1,6 +1,6 @@ -import { TFilterValue } from "../expression"; -import { TSupportedOperators } from "../operators"; -import { TBaseFilterFieldConfig, IFilterOption } from "./shared"; +import type { TFilterValue } from "../expression"; +import type { TSupportedOperators } from "../operators"; +import type { TBaseFilterFieldConfig, IFilterOption } from "./shared"; /** * Core filter types diff --git a/packages/types/src/rich-filters/field-types/extended.ts b/packages/types/src/rich-filters/field-types/extended.ts index 80922fbd0..7c7bbf326 100644 --- a/packages/types/src/rich-filters/field-types/extended.ts +++ b/packages/types/src/rich-filters/field-types/extended.ts @@ -1,4 +1,4 @@ -import { TFilterValue } from "../expression"; +import type { TFilterValue } from "../expression"; /** * Extended filter types diff --git a/packages/types/src/rich-filters/field-types/index.ts b/packages/types/src/rich-filters/field-types/index.ts index 946c38cda..303cd03e2 100644 --- a/packages/types/src/rich-filters/field-types/index.ts +++ b/packages/types/src/rich-filters/field-types/index.ts @@ -1,6 +1,8 @@ -import { TFilterValue } from "../expression"; -import { CORE_FILTER_FIELD_TYPE, TCoreFilterFieldConfigs } from "./core"; -import { EXTENDED_FILTER_FIELD_TYPE, TExtendedFilterFieldConfigs } from "./extended"; +import type { TFilterValue } from "../expression"; +import type { TCoreFilterFieldConfigs } from "./core"; +import { CORE_FILTER_FIELD_TYPE } from "./core"; +import type { TExtendedFilterFieldConfigs } from "./extended"; +import { EXTENDED_FILTER_FIELD_TYPE } from "./extended"; // -------- COMPOSED FILTER TYPES -------- diff --git a/packages/types/src/rich-filters/field-types/shared.ts b/packages/types/src/rich-filters/field-types/shared.ts index 8626837f1..e4f6f1a9d 100644 --- a/packages/types/src/rich-filters/field-types/shared.ts +++ b/packages/types/src/rich-filters/field-types/shared.ts @@ -1,4 +1,4 @@ -import { TFilterValue } from "../expression"; +import type { TFilterValue } from "../expression"; /** * Negative operator configuration for operators. diff --git a/packages/types/src/rich-filters/operator-configs/core.ts b/packages/types/src/rich-filters/operator-configs/core.ts index 994361159..df2cd1210 100644 --- a/packages/types/src/rich-filters/operator-configs/core.ts +++ b/packages/types/src/rich-filters/operator-configs/core.ts @@ -1,11 +1,11 @@ -import { TFilterValue } from "../expression"; -import { +import type { TFilterValue } from "../expression"; +import type { TDateFilterFieldConfig, TDateRangeFilterFieldConfig, TSingleSelectFilterFieldConfig, TMultiSelectFilterFieldConfig, } from "../field-types"; -import { CORE_COLLECTION_OPERATOR, CORE_COMPARISON_OPERATOR, CORE_EQUALITY_OPERATOR } from "../operators"; +import type { CORE_COLLECTION_OPERATOR, CORE_COMPARISON_OPERATOR, CORE_EQUALITY_OPERATOR } from "../operators"; // ----------------------------- EXACT Operator ----------------------------- export type TCoreExactOperatorConfigs = diff --git a/packages/types/src/rich-filters/operator-configs/extended.ts b/packages/types/src/rich-filters/operator-configs/extended.ts index 19f2870c1..6004b9ce7 100644 --- a/packages/types/src/rich-filters/operator-configs/extended.ts +++ b/packages/types/src/rich-filters/operator-configs/extended.ts @@ -1,4 +1,4 @@ -import { TFilterValue } from "../expression"; +import type { TFilterValue } from "../expression"; // ----------------------------- EXACT Operator ----------------------------- export type TExtendedExactOperatorConfigs<_V extends TFilterValue> = never; diff --git a/packages/types/src/rich-filters/operator-configs/index.ts b/packages/types/src/rich-filters/operator-configs/index.ts index 4b863c306..252df7fe8 100644 --- a/packages/types/src/rich-filters/operator-configs/index.ts +++ b/packages/types/src/rich-filters/operator-configs/index.ts @@ -1,7 +1,7 @@ -import { TFilterValue } from "../expression"; -import { EQUALITY_OPERATOR, COLLECTION_OPERATOR, COMPARISON_OPERATOR } from "../operators"; -import { TCoreExactOperatorConfigs, TCoreInOperatorConfigs, TCoreRangeOperatorConfigs } from "./core"; -import { +import type { TFilterValue } from "../expression"; +import type { EQUALITY_OPERATOR, COLLECTION_OPERATOR, COMPARISON_OPERATOR } from "../operators"; +import type { TCoreExactOperatorConfigs, TCoreInOperatorConfigs, TCoreRangeOperatorConfigs } from "./core"; +import type { TExtendedExactOperatorConfigs, TExtendedInOperatorConfigs, TExtendedOperatorSpecificConfigs, diff --git a/packages/types/src/rich-filters/operators/index.ts b/packages/types/src/rich-filters/operators/index.ts index bcfd3cbba..d7fe9baa4 100644 --- a/packages/types/src/rich-filters/operators/index.ts +++ b/packages/types/src/rich-filters/operators/index.ts @@ -1,17 +1,17 @@ +import type { TCoreSupportedOperators } from "./core"; import { CORE_LOGICAL_OPERATOR, CORE_EQUALITY_OPERATOR, CORE_COLLECTION_OPERATOR, CORE_COMPARISON_OPERATOR, - TCoreSupportedOperators, CORE_MULTI_VALUE_OPERATORS, } from "./core"; +import type { TExtendedSupportedOperators } from "./extended"; import { EXTENDED_LOGICAL_OPERATOR, EXTENDED_EQUALITY_OPERATOR, EXTENDED_COLLECTION_OPERATOR, EXTENDED_COMPARISON_OPERATOR, - TExtendedSupportedOperators, EXTENDED_MULTI_VALUE_OPERATORS, } from "./extended"; diff --git a/packages/types/src/search.ts b/packages/types/src/search.ts index 413ca6bc0..eb4957985 100644 --- a/packages/types/src/search.ts +++ b/packages/types/src/search.ts @@ -1,10 +1,10 @@ -import { ICycle } from "./cycle"; -import { TIssue } from "./issues/issue"; -import { IModule } from "./module"; -import { TPage } from "./page"; -import { IProject } from "./project"; -import { IUser } from "./users"; -import { IWorkspace } from "./workspace"; +import type { ICycle } from "./cycle"; +import type { TIssue } from "./issues/issue"; +import type { IModule } from "./module"; +import type { TPage } from "./page"; +import type { IProject } from "./project"; +import type { IUser } from "./users"; +import type { IWorkspace } from "./workspace"; export type TSearchEntities = "user_mention" | "issue" | "project" | "cycle" | "module" | "page"; diff --git a/packages/types/src/stickies.ts b/packages/types/src/stickies.ts index ffa19e84f..e8fefa1df 100644 --- a/packages/types/src/stickies.ts +++ b/packages/types/src/stickies.ts @@ -1,4 +1,4 @@ -import { TLogoProps } from "./common"; +import type { TLogoProps } from "./common"; export type TSticky = { created_at?: string | undefined; diff --git a/packages/types/src/users.ts b/packages/types/src/users.ts index 170492dc6..ef1bfa5a2 100644 --- a/packages/types/src/users.ts +++ b/packages/types/src/users.ts @@ -1,5 +1,5 @@ -import { TUserPermissions } from "./enums"; -import { IIssueActivity, TIssuePriorities, TStateGroups } from "."; +import type { TUserPermissions } from "./enums"; +import type { IIssueActivity, TIssuePriorities, TStateGroups } from "."; /** * @description The start of the week for the user diff --git a/packages/types/src/view-props.ts b/packages/types/src/view-props.ts index 04f4dcc85..7211b58a4 100644 --- a/packages/types/src/view-props.ts +++ b/packages/types/src/view-props.ts @@ -1,6 +1,6 @@ -import { TIssue } from "./issues/issue"; -import { LOGICAL_OPERATOR, TSupportedOperators } from "./rich-filters"; -import { CompleteOrEmpty } from "./utils"; +import type { TIssue } from "./issues/issue"; +import type { LOGICAL_OPERATOR, TSupportedOperators } from "./rich-filters"; +import type { CompleteOrEmpty } from "./utils"; export type TIssueLayouts = "list" | "kanban" | "calendar" | "spreadsheet" | "gantt_chart"; diff --git a/packages/types/src/views.ts b/packages/types/src/views.ts index 42fc3ef41..a44e5c61f 100644 --- a/packages/types/src/views.ts +++ b/packages/types/src/views.ts @@ -1,5 +1,5 @@ -import { TLogoProps } from "./common"; -import { +import type { TLogoProps } from "./common"; +import type { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions, diff --git a/packages/types/src/workspace-draft-issues/base.ts b/packages/types/src/workspace-draft-issues/base.ts index 8090a9cb7..30185a0b0 100644 --- a/packages/types/src/workspace-draft-issues/base.ts +++ b/packages/types/src/workspace-draft-issues/base.ts @@ -1,4 +1,4 @@ -import { TIssuePriorities } from "../issues"; +import type { TIssuePriorities } from "../issues"; export type TWorkspaceDraftIssue = { id: string; diff --git a/packages/types/src/workspace-notifications.ts b/packages/types/src/workspace-notifications.ts index b6856154e..d9994f17a 100644 --- a/packages/types/src/workspace-notifications.ts +++ b/packages/types/src/workspace-notifications.ts @@ -1,4 +1,4 @@ -import { ENotificationFilterType } from "./enums"; +import type { ENotificationFilterType } from "./enums"; import type { IUserLite } from "./users"; // filters diff --git a/packages/types/src/workspace-views.ts b/packages/types/src/workspace-views.ts index f31cdc2bd..924d2e19d 100644 --- a/packages/types/src/workspace-views.ts +++ b/packages/types/src/workspace-views.ts @@ -1,10 +1,10 @@ -import { +import type { IWorkspaceViewProps, IIssueDisplayFilterOptions, IIssueDisplayProperties, TWorkItemFilterExpression, } from "./view-props"; -import { EViewAccess } from "./views"; +import type { EViewAccess } from "./views"; export interface IWorkspaceView { id: string; diff --git a/packages/types/src/workspace.ts b/packages/types/src/workspace.ts index 7dec26354..356d0993e 100644 --- a/packages/types/src/workspace.ts +++ b/packages/types/src/workspace.ts @@ -1,7 +1,7 @@ import type { TPaginationInfo } from "./common"; import type { ICycle } from "./cycle"; -import { TUserPermissions } from "./enums"; -import { TProjectMembership } from "./project"; +import type { TUserPermissions } from "./enums"; +import type { TProjectMembership } from "./project"; import type { IUser, IUserLite } from "./users"; import type { IWorkspaceViewProps } from "./view-props"; diff --git a/packages/ui/src/auth-form/auth-password-input.tsx b/packages/ui/src/auth-form/auth-password-input.tsx index 99519a37a..2a468e170 100644 --- a/packages/ui/src/auth-form/auth-password-input.tsx +++ b/packages/ui/src/auth-form/auth-password-input.tsx @@ -1,5 +1,5 @@ import React, { useState } from "react"; -import { E_PASSWORD_STRENGTH } from "@plane/constants"; +import type { E_PASSWORD_STRENGTH } from "@plane/constants"; import { cn, getPasswordStrength } from "@plane/utils"; import { PasswordStrengthIndicator } from "../form-fields/password/indicator"; import { AuthInput } from "./auth-input"; diff --git a/packages/ui/src/avatar/avatar-group.tsx b/packages/ui/src/avatar/avatar-group.tsx index 5d9291805..991fdd34e 100644 --- a/packages/ui/src/avatar/avatar-group.tsx +++ b/packages/ui/src/avatar/avatar-group.tsx @@ -4,7 +4,8 @@ import { Tooltip } from "@plane/propel/tooltip"; // helpers import { cn } from "../utils"; // types -import { TAvatarSize, getSizeInfo, isAValidNumber } from "./avatar"; +import type { TAvatarSize } from "./avatar"; +import { getSizeInfo, isAValidNumber } from "./avatar"; type Props = { /** diff --git a/packages/ui/src/badge/badge.tsx b/packages/ui/src/badge/badge.tsx index 73c7dd001..663e7f25e 100644 --- a/packages/ui/src/badge/badge.tsx +++ b/packages/ui/src/badge/badge.tsx @@ -1,7 +1,8 @@ import * as React from "react"; // helpers import { cn } from "../utils"; -import { getIconStyling, getBadgeStyling, TBadgeVariant, TBadgeSizes } from "./helper"; +import type { TBadgeVariant, TBadgeSizes } from "./helper"; +import { getIconStyling, getBadgeStyling } from "./helper"; export interface BadgeProps extends React.ButtonHTMLAttributes { variant?: TBadgeVariant; diff --git a/packages/ui/src/breadcrumbs/navigation-dropdown.tsx b/packages/ui/src/breadcrumbs/navigation-dropdown.tsx index 65106d279..d06bb4636 100644 --- a/packages/ui/src/breadcrumbs/navigation-dropdown.tsx +++ b/packages/ui/src/breadcrumbs/navigation-dropdown.tsx @@ -4,7 +4,8 @@ import { CheckIcon } from "lucide-react"; import * as React from "react"; // ui import { Tooltip } from "@plane/propel/tooltip"; -import { CustomMenu, TContextMenuItem } from "../dropdowns"; +import type { TContextMenuItem } from "../dropdowns"; +import { CustomMenu } from "../dropdowns"; import { cn } from "../utils"; import { Breadcrumbs } from "./breadcrumbs"; diff --git a/packages/ui/src/breadcrumbs/navigation-search-dropdown.tsx b/packages/ui/src/breadcrumbs/navigation-search-dropdown.tsx index 680b56c18..cd3d96083 100644 --- a/packages/ui/src/breadcrumbs/navigation-search-dropdown.tsx +++ b/packages/ui/src/breadcrumbs/navigation-search-dropdown.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { useState } from "react"; import { Tooltip } from "@plane/propel/tooltip"; -import { ICustomSearchSelectOption } from "@plane/types"; +import type { ICustomSearchSelectOption } from "@plane/types"; import { CustomSearchSelect } from "../dropdowns"; import { cn } from "../utils"; import { Breadcrumbs } from "./breadcrumbs"; diff --git a/packages/ui/src/button/button.tsx b/packages/ui/src/button/button.tsx index 4520e1940..c5e01f24d 100644 --- a/packages/ui/src/button/button.tsx +++ b/packages/ui/src/button/button.tsx @@ -1,7 +1,8 @@ import * as React from "react"; import { cn } from "../utils"; -import { getIconStyling, getButtonStyling, TButtonVariant, TButtonSizes } from "./helper"; +import type { TButtonVariant, TButtonSizes } from "./helper"; +import { getIconStyling, getButtonStyling } from "./helper"; export interface ButtonProps extends React.ButtonHTMLAttributes { variant?: TButtonVariant; diff --git a/packages/ui/src/card/card.tsx b/packages/ui/src/card/card.tsx index 01ef9da6a..174fda0e2 100644 --- a/packages/ui/src/card/card.tsx +++ b/packages/ui/src/card/card.tsx @@ -1,14 +1,7 @@ import * as React from "react"; import { cn } from "../utils"; -import { - ECardDirection, - ECardSpacing, - ECardVariant, - getCardStyle, - TCardDirection, - TCardSpacing, - TCardVariant, -} from "./helper"; +import type { TCardDirection, TCardSpacing, TCardVariant } from "./helper"; +import { ECardDirection, ECardSpacing, ECardVariant, getCardStyle } from "./helper"; export interface CardProps extends React.HTMLAttributes { variant?: TCardVariant; diff --git a/packages/ui/src/collapsible/collapsible-button.tsx b/packages/ui/src/collapsible/collapsible-button.tsx index 43035d6a0..c618ab74d 100644 --- a/packages/ui/src/collapsible/collapsible-button.tsx +++ b/packages/ui/src/collapsible/collapsible-button.tsx @@ -1,5 +1,7 @@ -import React, { FC } from "react"; -import { DropdownIcon, ISvgIcons } from "@plane/propel/icons"; +import type { FC } from "react"; +import React from "react"; +import type { ISvgIcons } from "@plane/propel/icons"; +import { DropdownIcon } from "@plane/propel/icons"; import { cn } from "../utils"; type Props = { diff --git a/packages/ui/src/collapsible/collapsible.tsx b/packages/ui/src/collapsible/collapsible.tsx index f7c99737b..529451a60 100644 --- a/packages/ui/src/collapsible/collapsible.tsx +++ b/packages/ui/src/collapsible/collapsible.tsx @@ -1,5 +1,6 @@ import { Disclosure, Transition } from "@headlessui/react"; -import React, { FC, useState, useEffect, useCallback } from "react"; +import type { FC } from "react"; +import React, { useState, useEffect, useCallback } from "react"; export type TCollapsibleProps = { title: string | React.ReactNode; diff --git a/packages/ui/src/content-wrapper/content-wrapper.tsx b/packages/ui/src/content-wrapper/content-wrapper.tsx index 506c90fb3..526ef4955 100644 --- a/packages/ui/src/content-wrapper/content-wrapper.tsx +++ b/packages/ui/src/content-wrapper/content-wrapper.tsx @@ -1,6 +1,7 @@ import * as React from "react"; import { Row } from "../row"; -import { ERowVariant, TRowVariant } from "../row/helper"; +import type { TRowVariant } from "../row/helper"; +import { ERowVariant } from "../row/helper"; import { cn } from "../utils"; export interface ContentWrapperProps extends React.HTMLAttributes { diff --git a/packages/ui/src/dropdown/common/button.tsx b/packages/ui/src/dropdown/common/button.tsx index f8d508f73..9e7d55a6e 100644 --- a/packages/ui/src/dropdown/common/button.tsx +++ b/packages/ui/src/dropdown/common/button.tsx @@ -2,7 +2,7 @@ import { Combobox } from "@headlessui/react"; import React, { Fragment } from "react"; // helper import { cn } from "../../utils"; -import { IMultiSelectDropdownButton, ISingleSelectDropdownButton } from "../dropdown"; +import type { IMultiSelectDropdownButton, ISingleSelectDropdownButton } from "../dropdown"; export const DropdownButton: React.FC = (props) => { const { diff --git a/packages/ui/src/dropdown/common/input-search.tsx b/packages/ui/src/dropdown/common/input-search.tsx index d5e19d0e8..d82d573dc 100644 --- a/packages/ui/src/dropdown/common/input-search.tsx +++ b/packages/ui/src/dropdown/common/input-search.tsx @@ -1,6 +1,7 @@ import { Combobox } from "@headlessui/react"; import { Search } from "lucide-react"; -import React, { FC, useEffect, useRef } from "react"; +import type { FC } from "react"; +import React, { useEffect, useRef } from "react"; // helpers import { cn } from "../../utils"; diff --git a/packages/ui/src/dropdown/common/options.tsx b/packages/ui/src/dropdown/common/options.tsx index f5fbf348b..90eef932c 100644 --- a/packages/ui/src/dropdown/common/options.tsx +++ b/packages/ui/src/dropdown/common/options.tsx @@ -4,7 +4,7 @@ import React from "react"; // helpers import { cn } from "../../utils"; // types -import { IMultiSelectDropdownOptions, ISingleSelectDropdownOptions } from "../dropdown"; +import type { IMultiSelectDropdownOptions, ISingleSelectDropdownOptions } from "../dropdown"; // components import { DropdownOptionsLoader, InputSearch } from "."; diff --git a/packages/ui/src/dropdown/dropdown.d.ts b/packages/ui/src/dropdown/dropdown.d.ts index 8d1159e7c..40ed64467 100644 --- a/packages/ui/src/dropdown/dropdown.d.ts +++ b/packages/ui/src/dropdown/dropdown.d.ts @@ -1,4 +1,4 @@ -import { Placement } from "@popperjs/core"; +import type { Placement } from "@popperjs/core"; export interface IDropdown { // root props diff --git a/packages/ui/src/dropdown/multi-select.tsx b/packages/ui/src/dropdown/multi-select.tsx index e33b08873..8a98c33f8 100644 --- a/packages/ui/src/dropdown/multi-select.tsx +++ b/packages/ui/src/dropdown/multi-select.tsx @@ -1,6 +1,7 @@ import { Combobox } from "@headlessui/react"; import { sortBy } from "lodash-es"; -import React, { FC, useMemo, useRef, useState } from "react"; +import type { FC } from "react"; +import React, { useMemo, useRef, useState } from "react"; import { usePopper } from "react-popper"; // plane imports import { useOutsideClickDetector } from "@plane/hooks"; @@ -9,7 +10,7 @@ import { useDropdownKeyPressed } from "../hooks/use-dropdown-key-pressed"; import { cn } from "../utils"; import { DropdownButton } from "./common"; import { DropdownOptions } from "./common/options"; -import { IMultiSelectDropdown } from "./dropdown"; +import type { IMultiSelectDropdown } from "./dropdown"; export const MultiSelectDropdown: FC = (props) => { const { diff --git a/packages/ui/src/dropdown/single-select.tsx b/packages/ui/src/dropdown/single-select.tsx index 54db877db..8d6088805 100644 --- a/packages/ui/src/dropdown/single-select.tsx +++ b/packages/ui/src/dropdown/single-select.tsx @@ -1,6 +1,7 @@ import { Combobox } from "@headlessui/react"; import { sortBy } from "lodash-es"; -import React, { FC, useMemo, useRef, useState } from "react"; +import type { FC } from "react"; +import React, { useMemo, useRef, useState } from "react"; import { usePopper } from "react-popper"; // plane imports import { useOutsideClickDetector } from "@plane/hooks"; @@ -9,7 +10,7 @@ import { useDropdownKeyPressed } from "../hooks/use-dropdown-key-pressed"; import { cn } from "../utils"; import { DropdownButton } from "./common"; import { DropdownOptions } from "./common/options"; -import { ISingleSelectDropdown } from "./dropdown"; +import type { ISingleSelectDropdown } from "./dropdown"; export const Dropdown: FC = (props) => { const { diff --git a/packages/ui/src/dropdowns/combo-box.tsx b/packages/ui/src/dropdowns/combo-box.tsx index ab68f97c0..bbb0446dc 100644 --- a/packages/ui/src/dropdowns/combo-box.tsx +++ b/packages/ui/src/dropdowns/combo-box.tsx @@ -1,15 +1,6 @@ import { Combobox } from "@headlessui/react"; -import React, { - ElementType, - Fragment, - KeyboardEventHandler, - ReactNode, - Ref, - forwardRef, - useEffect, - useRef, - useState, -} from "react"; +import type { ElementType, KeyboardEventHandler, ReactNode, Ref } from "react"; +import React, { Fragment, forwardRef, useEffect, useRef, useState } from "react"; type Props = { as?: ElementType | undefined; diff --git a/packages/ui/src/dropdowns/context-menu/item.tsx b/packages/ui/src/dropdowns/context-menu/item.tsx index 393dc9a3a..892ca9890 100644 --- a/packages/ui/src/dropdowns/context-menu/item.tsx +++ b/packages/ui/src/dropdowns/context-menu/item.tsx @@ -4,7 +4,8 @@ import { ChevronRightIcon } from "@plane/propel/icons"; // helpers import { cn } from "../../utils"; // types -import { TContextMenuItem, ContextMenuContext, Portal } from "./root"; +import type { TContextMenuItem } from "./root"; +import { ContextMenuContext, Portal } from "./root"; type ContextMenuItemProps = { handleActiveItem: () => void; diff --git a/packages/ui/src/dropdowns/custom-menu.tsx b/packages/ui/src/dropdowns/custom-menu.tsx index 944323299..c63bcd52b 100644 --- a/packages/ui/src/dropdowns/custom-menu.tsx +++ b/packages/ui/src/dropdowns/custom-menu.tsx @@ -11,7 +11,7 @@ import { useDropdownKeyDown } from "../hooks/use-dropdown-key-down"; import { cn } from "../utils"; // hooks // types -import { +import type { ICustomMenuDropdownProps, ICustomMenuItemProps, ICustomSubMenuProps, diff --git a/packages/ui/src/dropdowns/custom-search-select.tsx b/packages/ui/src/dropdowns/custom-search-select.tsx index ddb2707f0..54175aad5 100644 --- a/packages/ui/src/dropdowns/custom-search-select.tsx +++ b/packages/ui/src/dropdowns/custom-search-select.tsx @@ -10,7 +10,7 @@ import { ChevronDownIcon } from "@plane/propel/icons"; import { Tooltip } from "@plane/propel/tooltip"; import { useDropdownKeyDown } from "../hooks/use-dropdown-key-down"; import { cn } from "../utils"; -import { ICustomSearchSelectProps } from "./helper"; +import type { ICustomSearchSelectProps } from "./helper"; export const CustomSearchSelect = (props: ICustomSearchSelectProps) => { const { diff --git a/packages/ui/src/dropdowns/custom-select.tsx b/packages/ui/src/dropdowns/custom-select.tsx index 1ef3191a0..8f720fa29 100644 --- a/packages/ui/src/dropdowns/custom-select.tsx +++ b/packages/ui/src/dropdowns/custom-select.tsx @@ -11,7 +11,7 @@ import { useDropdownKeyDown } from "../hooks/use-dropdown-key-down"; // helpers import { cn } from "../utils"; // types -import { ICustomSelectItemProps, ICustomSelectProps } from "./helper"; +import type { ICustomSelectItemProps, ICustomSelectProps } from "./helper"; const CustomSelect = (props: ICustomSelectProps) => { const { diff --git a/packages/ui/src/dropdowns/helper.tsx b/packages/ui/src/dropdowns/helper.tsx index 5ce0ba82b..97b087105 100644 --- a/packages/ui/src/dropdowns/helper.tsx +++ b/packages/ui/src/dropdowns/helper.tsx @@ -1,5 +1,5 @@ // FIXME: fix this!!! -import { ICustomSearchSelectOption } from "@plane/types"; +import type { ICustomSearchSelectOption } from "@plane/types"; type Placement = | "top" diff --git a/packages/ui/src/header/header.tsx b/packages/ui/src/header/header.tsx index 3a789fdcd..ba98c58d3 100644 --- a/packages/ui/src/header/header.tsx +++ b/packages/ui/src/header/header.tsx @@ -1,7 +1,8 @@ import * as React from "react"; import { ERowVariant, Row } from "../row"; import { cn } from "../utils"; -import { EHeaderVariant, getHeaderStyle, THeaderVariant } from "./helper"; +import type { THeaderVariant } from "./helper"; +import { EHeaderVariant, getHeaderStyle } from "./helper"; export interface HeaderProps { variant?: THeaderVariant; diff --git a/packages/ui/src/link/block.tsx b/packages/ui/src/link/block.tsx index f3a615124..1b98e27b0 100644 --- a/packages/ui/src/link/block.tsx +++ b/packages/ui/src/link/block.tsx @@ -1,8 +1,9 @@ -import React, { FC } from "react"; +import type { FC } from "react"; +import React from "react"; // plane utils import { calculateTimeAgo, cn, getIconForLink } from "@plane/utils"; // plane ui -import { TContextMenuItem } from "../dropdowns/context-menu/root"; +import type { TContextMenuItem } from "../dropdowns/context-menu/root"; import { CustomMenu } from "../dropdowns/custom-menu"; export type TLinkItemBlockProps = { diff --git a/packages/ui/src/modals/alert-modal.tsx b/packages/ui/src/modals/alert-modal.tsx index 347e46f49..dfffec802 100644 --- a/packages/ui/src/modals/alert-modal.tsx +++ b/packages/ui/src/modals/alert-modal.tsx @@ -1,7 +1,9 @@ -import { AlertTriangle, Info, LucideIcon } from "lucide-react"; +import type { LucideIcon } from "lucide-react"; +import { AlertTriangle, Info } from "lucide-react"; import React from "react"; // components -import { Button, TButtonVariant } from "../button"; +import type { TButtonVariant } from "../button"; +import { Button } from "../button"; import { cn } from "../utils"; import { EModalPosition, EModalWidth } from "./constants"; import { ModalCore } from "./modal-core"; diff --git a/packages/ui/src/popovers/popover-menu.tsx b/packages/ui/src/popovers/popover-menu.tsx index bba6d5900..fa5f2833a 100644 --- a/packages/ui/src/popovers/popover-menu.tsx +++ b/packages/ui/src/popovers/popover-menu.tsx @@ -4,7 +4,7 @@ import { cn } from "../utils"; import { Popover } from "./popover"; // helpers // types -import { TPopoverMenu } from "./types"; +import type { TPopoverMenu } from "./types"; export const PopoverMenu = (props: TPopoverMenu) => { const { diff --git a/packages/ui/src/popovers/popover.tsx b/packages/ui/src/popovers/popover.tsx index cdf4a0fb1..96027798d 100644 --- a/packages/ui/src/popovers/popover.tsx +++ b/packages/ui/src/popovers/popover.tsx @@ -1,11 +1,12 @@ import { Popover as HeadlessReactPopover, Transition } from "@headlessui/react"; import { EllipsisVertical } from "lucide-react"; -import React, { Fragment, Ref, useState } from "react"; +import type { Ref } from "react"; +import React, { Fragment, useState } from "react"; import { usePopper } from "react-popper"; // helpers import { cn } from "../utils"; // types -import { TPopover } from "./types"; +import type { TPopover } from "./types"; export const Popover = (props: TPopover) => { const { diff --git a/packages/ui/src/popovers/types.ts b/packages/ui/src/popovers/types.ts index 602e0cd2f..3732766b2 100644 --- a/packages/ui/src/popovers/types.ts +++ b/packages/ui/src/popovers/types.ts @@ -1,5 +1,5 @@ -import { Placement } from "@popperjs/core"; -import { MutableRefObject, ReactNode } from "react"; +import type { Placement } from "@popperjs/core"; +import type { MutableRefObject, ReactNode } from "react"; export type TPopoverButtonDefaultOptions = { // button and button styling diff --git a/packages/ui/src/progress/radial-progress.tsx b/packages/ui/src/progress/radial-progress.tsx index 1c6606860..ea386b06b 100644 --- a/packages/ui/src/progress/radial-progress.tsx +++ b/packages/ui/src/progress/radial-progress.tsx @@ -1,4 +1,5 @@ -import React, { useState, useEffect, FC } from "react"; +import type { FC } from "react"; +import React, { useState, useEffect } from "react"; interface IRadialProgressBar { progress: number; diff --git a/packages/ui/src/row/row.tsx b/packages/ui/src/row/row.tsx index f482fc808..740e22fc5 100644 --- a/packages/ui/src/row/row.tsx +++ b/packages/ui/src/row/row.tsx @@ -1,6 +1,7 @@ import * as React from "react"; import { cn } from "../utils"; -import { ERowVariant, rowStyle, TRowVariant } from "./helper"; +import type { TRowVariant } from "./helper"; +import { ERowVariant, rowStyle } from "./helper"; export interface RowProps extends React.HTMLAttributes { variant?: TRowVariant; diff --git a/packages/ui/src/scroll-area.tsx b/packages/ui/src/scroll-area.tsx index ac5419f73..9378b4638 100644 --- a/packages/ui/src/scroll-area.tsx +++ b/packages/ui/src/scroll-area.tsx @@ -1,6 +1,7 @@ "use client"; import * as RadixScrollArea from "@radix-ui/react-scroll-area"; -import React, { FC } from "react"; +import type { FC } from "react"; +import React from "react"; import { cn } from "./utils"; type TScrollAreaProps = { diff --git a/packages/ui/src/tables/table.tsx b/packages/ui/src/tables/table.tsx index c18408144..707a1677b 100644 --- a/packages/ui/src/tables/table.tsx +++ b/packages/ui/src/tables/table.tsx @@ -2,7 +2,7 @@ import React from "react"; // helpers import { cn } from "../utils"; // types -import { TTableData } from "./types"; +import type { TTableData } from "./types"; export const Table = (props: TTableData) => { const { diff --git a/packages/ui/src/tabs/tab-list.tsx b/packages/ui/src/tabs/tab-list.tsx index c60ab1fa7..5a828f2ce 100644 --- a/packages/ui/src/tabs/tab-list.tsx +++ b/packages/ui/src/tabs/tab-list.tsx @@ -1,6 +1,7 @@ import { Tab } from "@headlessui/react"; -import { LucideProps } from "lucide-react"; -import React, { FC } from "react"; +import type { LucideProps } from "lucide-react"; +import type { FC } from "react"; +import React from "react"; // helpers import { cn } from "../utils"; diff --git a/packages/ui/src/tabs/tabs.tsx b/packages/ui/src/tabs/tabs.tsx index 7e368c0da..03cfd1de8 100644 --- a/packages/ui/src/tabs/tabs.tsx +++ b/packages/ui/src/tabs/tabs.tsx @@ -1,10 +1,12 @@ import { Tab } from "@headlessui/react"; -import React, { FC, Fragment, useEffect, useState } from "react"; +import type { FC } from "react"; +import React, { Fragment, useEffect, useState } from "react"; // helpers import { useLocalStorage } from "@plane/hooks"; import { cn } from "../utils"; // types -import { TabList, TabListItem } from "./tab-list"; +import type { TabListItem } from "./tab-list"; +import { TabList } from "./tab-list"; export type TabContent = { content: React.ReactNode; diff --git a/packages/ui/src/tag/tag.tsx b/packages/ui/src/tag/tag.tsx index 6f1b0e62f..2e602507b 100644 --- a/packages/ui/src/tag/tag.tsx +++ b/packages/ui/src/tag/tag.tsx @@ -1,6 +1,7 @@ import * as React from "react"; import { cn } from "../utils"; -import { ETagSize, ETagVariant, getTagStyle, TTagSize, TTagVariant } from "./helper"; +import type { TTagSize, TTagVariant } from "./helper"; +import { ETagSize, ETagVariant, getTagStyle } from "./helper"; export interface TagProps extends React.ComponentProps<"div"> { variant?: TTagVariant; diff --git a/packages/ui/src/utils/classname.tsx b/packages/ui/src/utils/classname.tsx index a500a7385..5a8d446f1 100644 --- a/packages/ui/src/utils/classname.tsx +++ b/packages/ui/src/utils/classname.tsx @@ -1,4 +1,5 @@ -import { clsx, type ClassValue } from "clsx"; +import { clsx } from "clsx"; +import type { ClassValue } from "clsx"; import { twMerge } from "tailwind-merge"; export const cn = (...inputs: ClassValue[]) => twMerge(clsx(inputs)); diff --git a/packages/utils/src/array.ts b/packages/utils/src/array.ts index 035de49bf..8e4e9f427 100644 --- a/packages/utils/src/array.ts +++ b/packages/utils/src/array.ts @@ -1,5 +1,5 @@ import { isEmpty } from "lodash-es"; -import { IIssueLabel, IIssueLabelTree } from "@plane/types"; +import type { IIssueLabel, IIssueLabelTree } from "@plane/types"; /** * @description Groups an array of objects by a specified key diff --git a/packages/utils/src/auth.ts b/packages/utils/src/auth.ts index 78bdeb0e4..8526079e1 100644 --- a/packages/utils/src/auth.ts +++ b/packages/utils/src/auth.ts @@ -1,8 +1,9 @@ "use client"; -import { ReactNode } from "react"; +import type { ReactNode } from "react"; // plane imports -import { E_PASSWORD_STRENGTH, EErrorAlertType, EAuthErrorCodes, TAuthErrorInfo } from "@plane/constants"; +import type { TAuthErrorInfo } from "@plane/constants"; +import { E_PASSWORD_STRENGTH, EErrorAlertType, EAuthErrorCodes } from "@plane/constants"; /** * @description Password strength levels diff --git a/packages/utils/src/calendar.ts b/packages/utils/src/calendar.ts index 6d1f1de57..2b1fd9886 100644 --- a/packages/utils/src/calendar.ts +++ b/packages/utils/src/calendar.ts @@ -1,5 +1,6 @@ // plane imports -import { EStartOfTheWeek, ICalendarDate, ICalendarPayload } from "@plane/types"; +import type { ICalendarDate, ICalendarPayload } from "@plane/types"; +import { EStartOfTheWeek } from "@plane/types"; // local imports import { getWeekNumberOfDate, renderFormattedPayloadDate } from "./datetime"; diff --git a/packages/utils/src/common.ts b/packages/utils/src/common.ts index a65d62cfb..692318a93 100644 --- a/packages/utils/src/common.ts +++ b/packages/utils/src/common.ts @@ -1,6 +1,7 @@ -import { clsx, type ClassValue } from "clsx"; +import { clsx } from "clsx"; +import type { ClassValue } from "clsx"; import { twMerge } from "tailwind-merge"; -import { CompleteOrEmpty } from "@plane/types"; +import type { CompleteOrEmpty } from "@plane/types"; // Support email can be configured by the application export const getSupportEmail = (defaultEmail: string = ""): string => defaultEmail; diff --git a/packages/utils/src/cycle.ts b/packages/utils/src/cycle.ts index 05688bba0..eb33ca463 100644 --- a/packages/utils/src/cycle.ts +++ b/packages/utils/src/cycle.ts @@ -1,7 +1,7 @@ import { startOfToday, format } from "date-fns"; import { isEmpty, orderBy, sortBy, uniqBy } from "lodash-es"; // plane imports -import { ICycle, TCycleFilters, TProgressSnapshot } from "@plane/types"; +import type { ICycle, TCycleFilters, TProgressSnapshot } from "@plane/types"; // local imports import { findTotalDaysInRange, generateDateArray, getDate } from "./datetime"; import { satisfiesDateFilter } from "./filter"; diff --git a/packages/utils/src/distribution-update.ts b/packages/utils/src/distribution-update.ts index 15c238569..76bc8ce25 100644 --- a/packages/utils/src/distribution-update.ts +++ b/packages/utils/src/distribution-update.ts @@ -4,7 +4,7 @@ import { format } from "date-fns"; import { get, set } from "lodash-es"; // plane imports import { COMPLETED_STATE_GROUPS, STATE_DISTRIBUTION } from "@plane/constants"; -import { ICycle, IEstimatePoint, IModule, IState, TIssue } from "@plane/types"; +import type { ICycle, IEstimatePoint, IModule, IState, TIssue } from "@plane/types"; // helper import { getDate } from "./datetime"; diff --git a/packages/utils/src/loader.ts b/packages/utils/src/loader.ts index d876f267a..dd3d95eeb 100644 --- a/packages/utils/src/loader.ts +++ b/packages/utils/src/loader.ts @@ -1,4 +1,4 @@ -import { TLoader } from "@plane/types"; +import type { TLoader } from "@plane/types"; // checks if a loader has finished initialization export const isLoaderReady = (loader: TLoader | undefined) => loader !== "init-loader"; diff --git a/packages/utils/src/module.ts b/packages/utils/src/module.ts index 722687af7..39cba0822 100644 --- a/packages/utils/src/module.ts +++ b/packages/utils/src/module.ts @@ -1,6 +1,6 @@ import { sortBy } from "lodash-es"; // plane imports -import { IModule, TModuleDisplayFilters, TModuleFilters, TModuleOrderByOptions } from "@plane/types"; +import type { IModule, TModuleDisplayFilters, TModuleFilters, TModuleOrderByOptions } from "@plane/types"; // local imports import { getDate } from "./datetime"; import { satisfiesDateFilter } from "./filter"; diff --git a/packages/utils/src/page.ts b/packages/utils/src/page.ts index 2947695a7..7eaedb578 100644 --- a/packages/utils/src/page.ts +++ b/packages/utils/src/page.ts @@ -1,6 +1,12 @@ import { sortBy } from "lodash-es"; // plane imports -import { TPage, TPageFilterProps, TPageFiltersSortBy, TPageFiltersSortKey, TPageNavigationTabs } from "@plane/types"; +import type { + TPage, + TPageFilterProps, + TPageFiltersSortBy, + TPageFiltersSortKey, + TPageNavigationTabs, +} from "@plane/types"; // local imports import { getDate } from "./datetime"; import { satisfiesDateFilter } from "./filter"; diff --git a/packages/utils/src/permission/role.ts b/packages/utils/src/permission/role.ts index 3b6f73cf4..2889907d7 100644 --- a/packages/utils/src/permission/role.ts +++ b/packages/utils/src/permission/role.ts @@ -1,6 +1,6 @@ // plane imports import { EUserPermissions } from "@plane/constants"; -import { EUserProjectRoles, EUserWorkspaceRoles } from "@plane/types"; +import type { EUserProjectRoles, EUserWorkspaceRoles } from "@plane/types"; export const getUserRole = (role: EUserPermissions | EUserWorkspaceRoles | EUserProjectRoles) => { switch (role) { diff --git a/packages/utils/src/project-views.ts b/packages/utils/src/project-views.ts index dd275d0ab..5fdf50214 100644 --- a/packages/utils/src/project-views.ts +++ b/packages/utils/src/project-views.ts @@ -1,7 +1,7 @@ import { isNil, orderBy } from "lodash-es"; // plane imports import { SPACE_BASE_PATH, SPACE_BASE_URL } from "@plane/constants"; -import { IProjectView, TViewFilterProps, TViewFiltersSortBy, TViewFiltersSortKey } from "@plane/types"; +import type { IProjectView, TViewFilterProps, TViewFiltersSortBy, TViewFiltersSortKey } from "@plane/types"; // local imports import { getDate } from "./datetime"; import { satisfiesDateFilter } from "./filter"; diff --git a/packages/utils/src/project.ts b/packages/utils/src/project.ts index ea0b5c0e6..cdb9a71dc 100644 --- a/packages/utils/src/project.ts +++ b/packages/utils/src/project.ts @@ -1,6 +1,6 @@ import { sortBy } from "lodash-es"; // plane imports -import { TProject, TProjectDisplayFilters, TProjectFilters, TProjectOrderByOptions } from "@plane/types"; +import type { TProject, TProjectDisplayFilters, TProjectFilters, TProjectOrderByOptions } from "@plane/types"; // local imports import { getDate } from "./datetime"; import { satisfiesDateFilter } from "./filter"; diff --git a/packages/utils/src/rich-filters/factories/configs/core.ts b/packages/utils/src/rich-filters/factories/configs/core.ts index 51b16ff74..92eeb0e25 100644 --- a/packages/utils/src/rich-filters/factories/configs/core.ts +++ b/packages/utils/src/rich-filters/factories/configs/core.ts @@ -1,7 +1,9 @@ // plane imports -import { FILTER_FIELD_TYPE, TFilterValue, TSupportedOperators, TBaseFilterFieldConfig } from "@plane/types"; +import type { TFilterValue, TSupportedOperators, TBaseFilterFieldConfig } from "@plane/types"; +import { FILTER_FIELD_TYPE } from "@plane/types"; // local imports -import { createFilterFieldConfig, IFilterIconConfig } from "./shared"; +import type { IFilterIconConfig } from "./shared"; +import { createFilterFieldConfig } from "./shared"; // ------------ Selection filters ------------ diff --git a/packages/utils/src/rich-filters/factories/configs/properties/date.ts b/packages/utils/src/rich-filters/factories/configs/properties/date.ts index e22abd5ad..39379cae9 100644 --- a/packages/utils/src/rich-filters/factories/configs/properties/date.ts +++ b/packages/utils/src/rich-filters/factories/configs/properties/date.ts @@ -1,8 +1,10 @@ // plane imports -import { TFilterProperty } from "@plane/types"; +import type { TFilterProperty } from "@plane/types"; // local imports -import { createFilterConfig, TCreateDateFilterParams, TCreateFilterConfig } from "../shared"; -import { getSupportedDateOperators, TCustomPropertyFilterParams } from "./shared"; +import type { TCreateDateFilterParams, TCreateFilterConfig } from "../shared"; +import { createFilterConfig } from "../shared"; +import type { TCustomPropertyFilterParams } from "./shared"; +import { getSupportedDateOperators } from "./shared"; /** * Date property filter specific params diff --git a/packages/utils/src/rich-filters/factories/configs/properties/member-picker.ts b/packages/utils/src/rich-filters/factories/configs/properties/member-picker.ts index d94ad4aba..c5da205ce 100644 --- a/packages/utils/src/rich-filters/factories/configs/properties/member-picker.ts +++ b/packages/utils/src/rich-filters/factories/configs/properties/member-picker.ts @@ -1,8 +1,11 @@ // plane imports -import { EQUALITY_OPERATOR, IUserLite, TFilterProperty } from "@plane/types"; +import type { IUserLite, TFilterProperty } from "@plane/types"; +import { EQUALITY_OPERATOR } from "@plane/types"; // local imports -import { createFilterConfig, createOperatorConfigEntry, TCreateFilterConfig } from "../shared"; -import { getMemberMultiSelectConfig, TCreateUserFilterParams, TCustomPropertyFilterParams } from "./shared"; +import type { TCreateFilterConfig } from "../shared"; +import { createFilterConfig, createOperatorConfigEntry } from "../shared"; +import type { TCreateUserFilterParams, TCustomPropertyFilterParams } from "./shared"; +import { getMemberMultiSelectConfig } from "./shared"; /** * Member picker property filter specific params diff --git a/packages/utils/src/rich-filters/factories/configs/properties/shared.ts b/packages/utils/src/rich-filters/factories/configs/properties/shared.ts index eaa4e9ed3..1ffd9c67b 100644 --- a/packages/utils/src/rich-filters/factories/configs/properties/shared.ts +++ b/packages/utils/src/rich-filters/factories/configs/properties/shared.ts @@ -1,21 +1,10 @@ // plane imports -import { - COMPARISON_OPERATOR, - EQUALITY_OPERATOR, - IProject, - IUserLite, - TOperatorConfigMap, - TSupportedOperators, -} from "@plane/types"; +import type { IProject, IUserLite, TOperatorConfigMap, TSupportedOperators } from "@plane/types"; +import { COMPARISON_OPERATOR, EQUALITY_OPERATOR } from "@plane/types"; // local imports import { getDatePickerConfig, getDateRangePickerConfig, getMultiSelectConfig } from "../core"; -import { - createOperatorConfigEntry, - IFilterIconConfig, - TCreateDateFilterParams, - TCreateFilterConfigParams, - TFilterIconType, -} from "../shared"; +import type { IFilterIconConfig, TCreateDateFilterParams, TCreateFilterConfigParams, TFilterIconType } from "../shared"; +import { createOperatorConfigEntry } from "../shared"; // ------------ Base User Filter Types ------------ diff --git a/packages/utils/src/rich-filters/factories/configs/shared.ts b/packages/utils/src/rich-filters/factories/configs/shared.ts index 3a24f3896..b67b1b107 100644 --- a/packages/utils/src/rich-filters/factories/configs/shared.ts +++ b/packages/utils/src/rich-filters/factories/configs/shared.ts @@ -1,4 +1,4 @@ -import { +import type { FILTER_FIELD_TYPE, TBaseFilterFieldConfig, TDateFilterFieldConfig, diff --git a/packages/utils/src/rich-filters/factories/nodes/core.ts b/packages/utils/src/rich-filters/factories/nodes/core.ts index 962ddddcd..982be3163 100644 --- a/packages/utils/src/rich-filters/factories/nodes/core.ts +++ b/packages/utils/src/rich-filters/factories/nodes/core.ts @@ -1,8 +1,6 @@ import { v4 as uuidv4 } from "uuid"; // plane imports -import { - FILTER_NODE_TYPE, - LOGICAL_OPERATOR, +import type { TFilterAndGroupNode, TFilterConditionNode, TFilterConditionPayload, @@ -10,6 +8,7 @@ import { TFilterProperty, TFilterValue, } from "@plane/types"; +import { FILTER_NODE_TYPE, LOGICAL_OPERATOR } from "@plane/types"; /** * Creates a condition node with a unique ID. diff --git a/packages/utils/src/rich-filters/operations/comparison.ts b/packages/utils/src/rich-filters/operations/comparison.ts index ae738c18e..2865c0646 100644 --- a/packages/utils/src/rich-filters/operations/comparison.ts +++ b/packages/utils/src/rich-filters/operations/comparison.ts @@ -1,13 +1,13 @@ import { compact, isEqual, sortBy } from "lodash-es"; // plane imports -import { - FILTER_NODE_TYPE, +import type { TFilterConditionNode, TFilterExpression, TFilterGroupNode, TFilterProperty, TFilterValue, } from "@plane/types"; +import { FILTER_NODE_TYPE } from "@plane/types"; // local imports import { isConditionNode, isGroupNode } from "../types/core"; import { processGroupNode } from "../types/shared"; diff --git a/packages/utils/src/rich-filters/operations/manipulation/core.ts b/packages/utils/src/rich-filters/operations/manipulation/core.ts index 22f6d662c..3f29959bf 100644 --- a/packages/utils/src/rich-filters/operations/manipulation/core.ts +++ b/packages/utils/src/rich-filters/operations/manipulation/core.ts @@ -1,5 +1,5 @@ // plane imports -import { +import type { TFilterConditionPayload, TFilterExpression, TFilterGroupNode, diff --git a/packages/utils/src/rich-filters/operations/transformation/core.ts b/packages/utils/src/rich-filters/operations/transformation/core.ts index d35168cf6..8ccfac412 100644 --- a/packages/utils/src/rich-filters/operations/transformation/core.ts +++ b/packages/utils/src/rich-filters/operations/transformation/core.ts @@ -1,5 +1,5 @@ // plane imports -import { TFilterExpression, TFilterGroupNode, TFilterProperty } from "@plane/types"; +import type { TFilterExpression, TFilterGroupNode, TFilterProperty } from "@plane/types"; // local imports import { isConditionNode, isGroupNode } from "../../types/core"; import { getGroupChildren } from "../../types/shared"; diff --git a/packages/utils/src/rich-filters/operations/transformation/shared.ts b/packages/utils/src/rich-filters/operations/transformation/shared.ts index 28da3990c..88f0de1f8 100644 --- a/packages/utils/src/rich-filters/operations/transformation/shared.ts +++ b/packages/utils/src/rich-filters/operations/transformation/shared.ts @@ -1,6 +1,7 @@ -import { TFilterGroupNode, TFilterProperty } from "@plane/types"; +import type { TFilterGroupNode, TFilterProperty } from "@plane/types"; import { processGroupNode } from "../../types/shared"; -import { transformGroupWithChildren, TTreeTransformFn, TTreeTransformResult } from "./core"; +import type { TTreeTransformFn, TTreeTransformResult } from "./core"; +import { transformGroupWithChildren } from "./core"; /** * Transforms groups by processing children. diff --git a/packages/utils/src/rich-filters/operations/traversal/core.ts b/packages/utils/src/rich-filters/operations/traversal/core.ts index 72b42100d..4a33f362d 100644 --- a/packages/utils/src/rich-filters/operations/traversal/core.ts +++ b/packages/utils/src/rich-filters/operations/traversal/core.ts @@ -1,5 +1,5 @@ // plane imports -import { +import type { TAllAvailableOperatorsForDisplay, TFilterConditionNode, TFilterConditionNodeForDisplay, diff --git a/packages/utils/src/rich-filters/operations/traversal/shared.ts b/packages/utils/src/rich-filters/operations/traversal/shared.ts index b3fcc3e99..89c1f6d41 100644 --- a/packages/utils/src/rich-filters/operations/traversal/shared.ts +++ b/packages/utils/src/rich-filters/operations/traversal/shared.ts @@ -1,5 +1,5 @@ // plane imports -import { +import type { TAllAvailableOperatorsForDisplay, TFilterExpression, TFilterProperty, diff --git a/packages/utils/src/rich-filters/operators/core.ts b/packages/utils/src/rich-filters/operators/core.ts index a87bc7079..db86286c6 100644 --- a/packages/utils/src/rich-filters/operators/core.ts +++ b/packages/utils/src/rich-filters/operators/core.ts @@ -1,7 +1,7 @@ import { get } from "lodash-es"; // plane imports import { DATE_OPERATOR_LABELS_MAP, EMPTY_OPERATOR_LABEL, OPERATOR_LABELS_MAP } from "@plane/constants"; -import { +import type { TAllAvailableOperatorsForDisplay, TFilterValue, TAllAvailableDateFilterOperatorsForDisplay, diff --git a/packages/utils/src/rich-filters/operators/shared.ts b/packages/utils/src/rich-filters/operators/shared.ts index 6923ddfcf..3daed0a9b 100644 --- a/packages/utils/src/rich-filters/operators/shared.ts +++ b/packages/utils/src/rich-filters/operators/shared.ts @@ -1,4 +1,4 @@ -import { TAllAvailableOperatorsForDisplay, TSupportedOperators } from "@plane/types"; +import type { TAllAvailableOperatorsForDisplay, TSupportedOperators } from "@plane/types"; /** * Result type for operator conversion diff --git a/packages/utils/src/rich-filters/types/core.ts b/packages/utils/src/rich-filters/types/core.ts index 696fe3796..8d0bc5622 100644 --- a/packages/utils/src/rich-filters/types/core.ts +++ b/packages/utils/src/rich-filters/types/core.ts @@ -1,7 +1,4 @@ -import { - FILTER_FIELD_TYPE, - FILTER_NODE_TYPE, - LOGICAL_OPERATOR, +import type { TFilterAndGroupNode, TFilterConditionNode, TFilterExpression, @@ -10,6 +7,7 @@ import { TFilterProperty, TFilterValue, } from "@plane/types"; +import { FILTER_FIELD_TYPE, FILTER_NODE_TYPE, LOGICAL_OPERATOR } from "@plane/types"; /** * Type guard to check if a node is a condition node. diff --git a/packages/utils/src/rich-filters/types/shared.ts b/packages/utils/src/rich-filters/types/shared.ts index a116fe8de..e1da6911b 100644 --- a/packages/utils/src/rich-filters/types/shared.ts +++ b/packages/utils/src/rich-filters/types/shared.ts @@ -1,5 +1,5 @@ // plane imports -import { TFilterAndGroupNode, TFilterExpression, TFilterGroupNode, TFilterProperty } from "@plane/types"; +import type { TFilterAndGroupNode, TFilterExpression, TFilterGroupNode, TFilterProperty } from "@plane/types"; // local imports import { getAndGroupChildren, isAndGroupNode } from "./core"; diff --git a/packages/utils/src/rich-filters/validators/core.ts b/packages/utils/src/rich-filters/validators/core.ts index 9a9268bd8..ee66e0f7e 100644 --- a/packages/utils/src/rich-filters/validators/core.ts +++ b/packages/utils/src/rich-filters/validators/core.ts @@ -1,5 +1,5 @@ // plane imports -import { SingleOrArray, TFilterExpression, TFilterProperty, TFilterValue } from "@plane/types"; +import type { SingleOrArray, TFilterExpression, TFilterProperty, TFilterValue } from "@plane/types"; // local imports import { getGroupChildren } from "../types"; import { isConditionNode, isGroupNode } from "../types/core"; diff --git a/packages/utils/src/rich-filters/validators/shared.ts b/packages/utils/src/rich-filters/validators/shared.ts index 1df8e69ae..5430c5773 100644 --- a/packages/utils/src/rich-filters/validators/shared.ts +++ b/packages/utils/src/rich-filters/validators/shared.ts @@ -1,5 +1,5 @@ // plane imports -import { TFilterGroupNode, TFilterProperty } from "@plane/types"; +import type { TFilterGroupNode, TFilterProperty } from "@plane/types"; // local imports import { getGroupChildren } from "../types/shared"; diff --git a/packages/utils/src/subscription.ts b/packages/utils/src/subscription.ts index 53f4a0185..bd74f529f 100644 --- a/packages/utils/src/subscription.ts +++ b/packages/utils/src/subscription.ts @@ -1,6 +1,7 @@ import { orderBy } from "lodash-es"; // plane imports -import { EProductSubscriptionEnum, IPaymentProduct, TProductSubscriptionType, TSubscriptionPrice } from "@plane/types"; +import type { IPaymentProduct, TProductSubscriptionType, TSubscriptionPrice } from "@plane/types"; +import { EProductSubscriptionEnum } from "@plane/types"; /** * Calculates the yearly discount percentage when switching from monthly to yearly billing diff --git a/packages/utils/src/tab-indices.ts b/packages/utils/src/tab-indices.ts index ea30903c9..e4232319b 100644 --- a/packages/utils/src/tab-indices.ts +++ b/packages/utils/src/tab-indices.ts @@ -1,5 +1,6 @@ // plane imports -import { ETabIndices, TAB_INDEX_MAP } from "@plane/constants"; +import type { ETabIndices } from "@plane/constants"; +import { TAB_INDEX_MAP } from "@plane/constants"; export const getTabIndex = (type?: ETabIndices, isMobile: boolean = false) => { const getIndex = (key: string) => diff --git a/packages/utils/src/theme.ts b/packages/utils/src/theme.ts index 487ceaccd..54e6d4254 100644 --- a/packages/utils/src/theme.ts +++ b/packages/utils/src/theme.ts @@ -1,5 +1,6 @@ // local imports -import { TRgb, hexToRgb } from "./color"; +import type { TRgb } from "./color"; +import { hexToRgb } from "./color"; type TShades = { 10: TRgb; diff --git a/packages/utils/src/work-item-filters/configs/filters/cycle.ts b/packages/utils/src/work-item-filters/configs/filters/cycle.ts index 9228c7f49..9e67fc39b 100644 --- a/packages/utils/src/work-item-filters/configs/filters/cycle.ts +++ b/packages/utils/src/work-item-filters/configs/filters/cycle.ts @@ -1,21 +1,9 @@ // plane imports -import { - EQUALITY_OPERATOR, - ICycle, - TCycleGroups, - TFilterProperty, - COLLECTION_OPERATOR, - TSupportedOperators, -} from "@plane/types"; +import type { ICycle, TCycleGroups, TFilterProperty, TSupportedOperators } from "@plane/types"; +import { EQUALITY_OPERATOR, COLLECTION_OPERATOR } from "@plane/types"; // local imports -import { - createFilterConfig, - TCreateFilterConfigParams, - IFilterIconConfig, - TCreateFilterConfig, - getMultiSelectConfig, - createOperatorConfigEntry, -} from "../../../rich-filters"; +import type { TCreateFilterConfigParams, IFilterIconConfig, TCreateFilterConfig } from "../../../rich-filters"; +import { createFilterConfig, getMultiSelectConfig, createOperatorConfigEntry } from "../../../rich-filters"; /** * Cycle filter specific params diff --git a/packages/utils/src/work-item-filters/configs/filters/date.ts b/packages/utils/src/work-item-filters/configs/filters/date.ts index 1492c4518..913712227 100644 --- a/packages/utils/src/work-item-filters/configs/filters/date.ts +++ b/packages/utils/src/work-item-filters/configs/filters/date.ts @@ -1,12 +1,8 @@ // plane imports -import { TFilterProperty } from "@plane/types"; +import type { TFilterProperty } from "@plane/types"; // local imports -import { - createFilterConfig, - TCreateFilterConfig, - TCreateDateFilterParams, - getSupportedDateOperators, -} from "../../../rich-filters"; +import type { TCreateFilterConfig, TCreateDateFilterParams } from "../../../rich-filters"; +import { createFilterConfig, getSupportedDateOperators } from "../../../rich-filters"; // ------------ Date filters ------------ diff --git a/packages/utils/src/work-item-filters/configs/filters/label.ts b/packages/utils/src/work-item-filters/configs/filters/label.ts index dcabd9db3..bcc79be98 100644 --- a/packages/utils/src/work-item-filters/configs/filters/label.ts +++ b/packages/utils/src/work-item-filters/configs/filters/label.ts @@ -1,20 +1,9 @@ // plane imports -import { - EQUALITY_OPERATOR, - IIssueLabel, - TFilterProperty, - COLLECTION_OPERATOR, - TSupportedOperators, -} from "@plane/types"; +import type { IIssueLabel, TFilterProperty, TSupportedOperators } from "@plane/types"; +import { EQUALITY_OPERATOR, COLLECTION_OPERATOR } from "@plane/types"; // local imports -import { - createFilterConfig, - TCreateFilterConfigParams, - IFilterIconConfig, - TCreateFilterConfig, - getMultiSelectConfig, - createOperatorConfigEntry, -} from "../../../rich-filters"; +import type { TCreateFilterConfigParams, IFilterIconConfig, TCreateFilterConfig } from "../../../rich-filters"; +import { createFilterConfig, getMultiSelectConfig, createOperatorConfigEntry } from "../../../rich-filters"; /** * Label filter specific params diff --git a/packages/utils/src/work-item-filters/configs/filters/module.ts b/packages/utils/src/work-item-filters/configs/filters/module.ts index 8c36409c1..d0dd279a9 100644 --- a/packages/utils/src/work-item-filters/configs/filters/module.ts +++ b/packages/utils/src/work-item-filters/configs/filters/module.ts @@ -1,14 +1,9 @@ // plane imports -import { EQUALITY_OPERATOR, IModule, TFilterProperty, COLLECTION_OPERATOR } from "@plane/types"; +import type { IModule, TFilterProperty } from "@plane/types"; +import { EQUALITY_OPERATOR, COLLECTION_OPERATOR } from "@plane/types"; // local imports -import { - createFilterConfig, - TCreateFilterConfigParams, - IFilterIconConfig, - TCreateFilterConfig, - getMultiSelectConfig, - createOperatorConfigEntry, -} from "../../../rich-filters"; +import type { TCreateFilterConfigParams, IFilterIconConfig, TCreateFilterConfig } from "../../../rich-filters"; +import { createFilterConfig, getMultiSelectConfig, createOperatorConfigEntry } from "../../../rich-filters"; /** * Module filter specific params diff --git a/packages/utils/src/work-item-filters/configs/filters/priority.ts b/packages/utils/src/work-item-filters/configs/filters/priority.ts index 0d5834c5e..77ef6c492 100644 --- a/packages/utils/src/work-item-filters/configs/filters/priority.ts +++ b/packages/utils/src/work-item-filters/configs/filters/priority.ts @@ -1,15 +1,11 @@ // plane imports -import { ISSUE_PRIORITIES, TIssuePriorities } from "@plane/constants"; -import { EQUALITY_OPERATOR, TFilterProperty, COLLECTION_OPERATOR, TSupportedOperators } from "@plane/types"; +import type { TIssuePriorities } from "@plane/constants"; +import { ISSUE_PRIORITIES } from "@plane/constants"; +import type { TFilterProperty, TSupportedOperators } from "@plane/types"; +import { EQUALITY_OPERATOR, COLLECTION_OPERATOR } from "@plane/types"; // local imports -import { - createFilterConfig, - TCreateFilterConfigParams, - IFilterIconConfig, - TCreateFilterConfig, - getMultiSelectConfig, - createOperatorConfigEntry, -} from "../../../rich-filters"; +import type { TCreateFilterConfigParams, IFilterIconConfig, TCreateFilterConfig } from "../../../rich-filters"; +import { createFilterConfig, getMultiSelectConfig, createOperatorConfigEntry } from "../../../rich-filters"; // ------------ Priority filter ------------ diff --git a/packages/utils/src/work-item-filters/configs/filters/project.ts b/packages/utils/src/work-item-filters/configs/filters/project.ts index fcefa309c..0088e2369 100644 --- a/packages/utils/src/work-item-filters/configs/filters/project.ts +++ b/packages/utils/src/work-item-filters/configs/filters/project.ts @@ -1,13 +1,9 @@ // plane imports -import { EQUALITY_OPERATOR, TFilterProperty, COLLECTION_OPERATOR } from "@plane/types"; +import type { TFilterProperty } from "@plane/types"; +import { EQUALITY_OPERATOR, COLLECTION_OPERATOR } from "@plane/types"; // local imports -import { - createFilterConfig, - createOperatorConfigEntry, - getProjectMultiSelectConfig, - TCreateFilterConfig, - TCreateProjectFilterParams, -} from "../../../rich-filters"; +import type { TCreateFilterConfig, TCreateProjectFilterParams } from "../../../rich-filters"; +import { createFilterConfig, createOperatorConfigEntry, getProjectMultiSelectConfig } from "../../../rich-filters"; // ------------ Project filter ------------ diff --git a/packages/utils/src/work-item-filters/configs/filters/shared.ts b/packages/utils/src/work-item-filters/configs/filters/shared.ts index af501d62e..67fe52378 100644 --- a/packages/utils/src/work-item-filters/configs/filters/shared.ts +++ b/packages/utils/src/work-item-filters/configs/filters/shared.ts @@ -1,20 +1,13 @@ // plane imports -import { - COMPARISON_OPERATOR, - EQUALITY_OPERATOR, - IProject, - TOperatorConfigMap, - TSupportedOperators, -} from "@plane/types"; +import type { IProject, TOperatorConfigMap, TSupportedOperators } from "@plane/types"; +import { COMPARISON_OPERATOR, EQUALITY_OPERATOR } from "@plane/types"; // local imports +import type { IFilterIconConfig, TCreateDateFilterParams, TCreateFilterConfigParams } from "../../../rich-filters"; import { createOperatorConfigEntry, getDatePickerConfig, getDateRangePickerConfig, getMultiSelectConfig, - IFilterIconConfig, - TCreateDateFilterParams, - TCreateFilterConfigParams, } from "../../../rich-filters"; // ------------ Date filter ------------ diff --git a/packages/utils/src/work-item-filters/configs/filters/state.ts b/packages/utils/src/work-item-filters/configs/filters/state.ts index b3a3d6daf..0962e13bb 100644 --- a/packages/utils/src/work-item-filters/configs/filters/state.ts +++ b/packages/utils/src/work-item-filters/configs/filters/state.ts @@ -1,22 +1,10 @@ // plane imports import { STATE_GROUPS } from "@plane/constants"; -import { - COLLECTION_OPERATOR, - EQUALITY_OPERATOR, - IState, - TFilterProperty, - TStateGroups, - TSupportedOperators, -} from "@plane/types"; +import type { IState, TFilterProperty, TStateGroups, TSupportedOperators } from "@plane/types"; +import { COLLECTION_OPERATOR, EQUALITY_OPERATOR } from "@plane/types"; // local imports -import { - createFilterConfig, - getMultiSelectConfig, - IFilterIconConfig, - TCreateFilterConfig, - TCreateFilterConfigParams, - createOperatorConfigEntry, -} from "../../../rich-filters"; +import type { IFilterIconConfig, TCreateFilterConfig, TCreateFilterConfigParams } from "../../../rich-filters"; +import { createFilterConfig, getMultiSelectConfig, createOperatorConfigEntry } from "../../../rich-filters"; // ------------ State group filter ------------ diff --git a/packages/utils/src/work-item-filters/configs/filters/user.ts b/packages/utils/src/work-item-filters/configs/filters/user.ts index f5c1cb7e2..297fcd5ab 100644 --- a/packages/utils/src/work-item-filters/configs/filters/user.ts +++ b/packages/utils/src/work-item-filters/configs/filters/user.ts @@ -1,13 +1,9 @@ // plane imports -import { EQUALITY_OPERATOR, TFilterProperty, COLLECTION_OPERATOR } from "@plane/types"; +import type { TFilterProperty } from "@plane/types"; +import { EQUALITY_OPERATOR, COLLECTION_OPERATOR } from "@plane/types"; // local imports -import { - createFilterConfig, - TCreateFilterConfig, - createOperatorConfigEntry, - getMemberMultiSelectConfig, - TCreateUserFilterParams, -} from "../../../rich-filters"; +import type { TCreateFilterConfig, TCreateUserFilterParams } from "../../../rich-filters"; +import { createFilterConfig, createOperatorConfigEntry, getMemberMultiSelectConfig } from "../../../rich-filters"; // ------------ Assignee filter ------------ diff --git a/packages/utils/src/work-item/base.ts b/packages/utils/src/work-item/base.ts index 826fb7c54..8a746ec90 100644 --- a/packages/utils/src/work-item/base.ts +++ b/packages/utils/src/work-item/base.ts @@ -2,15 +2,9 @@ import { differenceInCalendarDays } from "date-fns/differenceInCalendarDays"; import { isEmpty } from "lodash-es"; import { v4 as uuidv4 } from "uuid"; // plane imports -import { - ISSUE_DISPLAY_FILTERS_BY_PAGE, - ISSUE_PRIORITY_FILTERS, - STATE_GROUPS, - TIssueFilterPriorityObject, - TIssuePriorities, -} from "@plane/constants"; -import { - EIssueLayoutTypes, +import type { TIssueFilterPriorityObject, TIssuePriorities } from "@plane/constants"; +import { ISSUE_DISPLAY_FILTERS_BY_PAGE, ISSUE_PRIORITY_FILTERS, STATE_GROUPS } from "@plane/constants"; +import type { IGanttBlock, IIssueDisplayFilterOptions, IIssueDisplayProperties, @@ -23,6 +17,7 @@ import { TSubGroupedIssues, TUnGroupedIssues, } from "@plane/types"; +import { EIssueLayoutTypes } from "@plane/types"; // local imports import { orderArrayBy } from "../array"; import { getDate } from "../datetime"; diff --git a/packages/utils/src/work-item/modal.ts b/packages/utils/src/work-item/modal.ts index ec07c5508..e5c93a80c 100644 --- a/packages/utils/src/work-item/modal.ts +++ b/packages/utils/src/work-item/modal.ts @@ -1,7 +1,7 @@ import { set } from "lodash-es"; // plane imports import { DEFAULT_WORK_ITEM_FORM_VALUES } from "@plane/constants"; -import { IPartialProject, ISearchIssueResponse, IState, TIssue } from "@plane/types"; +import type { IPartialProject, ISearchIssueResponse, IState, TIssue } from "@plane/types"; export const getUpdateFormDataForReset = (projectId: string | null | undefined, formData: Partial) => ({ ...DEFAULT_WORK_ITEM_FORM_VALUES, diff --git a/packages/utils/src/work-item/state.ts b/packages/utils/src/work-item/state.ts index 8a123d7e9..949ce2dff 100644 --- a/packages/utils/src/work-item/state.ts +++ b/packages/utils/src/work-item/state.ts @@ -1,6 +1,7 @@ // plane imports -import { STATE_GROUPS, TDraggableData } from "@plane/constants"; -import { IState, IStateResponse } from "@plane/types"; +import type { TDraggableData } from "@plane/constants"; +import { STATE_GROUPS } from "@plane/constants"; +import type { IState, IStateResponse } from "@plane/types"; export const orderStateGroups = (unorderedStateGroups: IStateResponse | undefined): IStateResponse | undefined => { if (!unorderedStateGroups) return undefined; diff --git a/packages/utils/src/workspace.ts b/packages/utils/src/workspace.ts index 1fb74e89c..88200b5b5 100644 --- a/packages/utils/src/workspace.ts +++ b/packages/utils/src/workspace.ts @@ -1,5 +1,5 @@ // plane imports -import { IWorkspace } from "@plane/types"; +import type { IWorkspace } from "@plane/types"; export const orderWorkspacesList = (workspaces: IWorkspace[]): IWorkspace[] => workspaces.sort((a, b) => a.name.localeCompare(b.name));