diff --git a/.changeset/thin-tools-nail.md b/.changeset/thin-tools-nail.md new file mode 100644 index 0000000000..949ca555bd --- /dev/null +++ b/.changeset/thin-tools-nail.md @@ -0,0 +1,19 @@ +--- +"@udecode/plate-code-block": patch +"@udecode/plate-excalidraw": patch +"@udecode/plate-suggestion": patch +"@udecode/plate-resizable": patch +"@udecode/plate-comments": patch +"@udecode/plate-caption": patch +"@udecode/plate-cursor": patch +"@udecode/plate-indent": patch +"@udecode/plate-layout": patch +"@udecode/plate-cloud": patch +"@udecode/plate-media": patch +"@udecode/plate-table": patch +"@udecode/plate-diff": patch +"@udecode/plate-link": patch +"@udecode/plate-list": patch +--- + +Fix types diff --git a/packages/caption/src/TCaptionElement.ts b/packages/caption/src/TCaptionElement.ts index 8a94d4ca32..8a23dea24a 100644 --- a/packages/caption/src/TCaptionElement.ts +++ b/packages/caption/src/TCaptionElement.ts @@ -1,4 +1,4 @@ -import type { TDescendant, TElement } from '@udecode/plate-common/server'; +import type { TDescendant, TElement } from '@udecode/plate-common'; export interface TCaptionElement extends TElement { caption?: TDescendant[]; diff --git a/packages/cloud/src/attachment/types.ts b/packages/cloud/src/attachment/types.ts index 42e266f228..476f078e99 100644 --- a/packages/cloud/src/attachment/types.ts +++ b/packages/cloud/src/attachment/types.ts @@ -1,4 +1,4 @@ -import type { TElement } from '@udecode/plate-common/server'; +import type { TElement } from '@udecode/plate-common'; /** Specifies just the `options` part of the CloudPlugin */ export type CloudAttachmentPlugin = {}; diff --git a/packages/cloud/src/image/types.ts b/packages/cloud/src/image/types.ts index 6c6945c1fd..348d7b7cac 100644 --- a/packages/cloud/src/image/types.ts +++ b/packages/cloud/src/image/types.ts @@ -1,8 +1,4 @@ -import type { - PlateEditor, - TElement, - Value, -} from '@udecode/plate-common/server'; +import type { PlateEditor, TElement, Value } from '@udecode/plate-common'; export type CloudImagePlugin = { maxInitialHeight?: number; diff --git a/packages/code-block/src/shared/types.ts b/packages/code-block/src/shared/types.ts index 78bc8e4406..7d2f115d76 100644 --- a/packages/code-block/src/shared/types.ts +++ b/packages/code-block/src/shared/types.ts @@ -3,7 +3,7 @@ import type { InsertNodesOptions, TElement, Value, -} from '@udecode/plate-common/server'; +} from '@udecode/plate-common'; export interface CodeBlockPlugin extends HotkeyPlugin { deserializers?: string[]; diff --git a/packages/comments/src/types.ts b/packages/comments/src/types.ts index 5c5e2c359c..20789d339f 100644 --- a/packages/comments/src/types.ts +++ b/packages/comments/src/types.ts @@ -1,4 +1,4 @@ -import type { TText, Value } from '@udecode/plate-common/server'; +import type { TText, Value } from '@udecode/plate-common'; export interface CommentUser { id: string; diff --git a/packages/cursor/src/components/CursorOverlay.tsx b/packages/cursor/src/components/CursorOverlay.tsx index d5ada6e0f3..a76b7ba414 100644 --- a/packages/cursor/src/components/CursorOverlay.tsx +++ b/packages/cursor/src/components/CursorOverlay.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import type { ClassNames, UnknownObject } from '@udecode/plate-common/server'; +import type { ClassNames, UnknownObject } from '@udecode/plate-common'; import { usePlateSelectors } from '@udecode/plate-common'; diff --git a/packages/diff/src/internal/utils/get-properties.ts b/packages/diff/src/internal/utils/get-properties.ts index 92a59fe898..1a3d886096 100644 --- a/packages/diff/src/internal/utils/get-properties.ts +++ b/packages/diff/src/internal/utils/get-properties.ts @@ -4,7 +4,7 @@ */ /* eslint-disable no-restricted-syntax */ -import type { TText } from '@udecode/plate-common/server'; +import type { TText } from '@udecode/plate-common'; // Get object that will set the properties of before // to equal the properties of node, in terms of the diff --git a/packages/excalidraw/src/types.ts b/packages/excalidraw/src/types.ts index 4a1167727e..687f0257a6 100644 --- a/packages/excalidraw/src/types.ts +++ b/packages/excalidraw/src/types.ts @@ -1,7 +1,7 @@ import type { ImportedDataState } from '@excalidraw/excalidraw/types/data/types'; import type { ExcalidrawElement } from '@excalidraw/excalidraw/types/element/types'; import type { ExcalidrawProps } from '@excalidraw/excalidraw/types/types'; -import type { TElement } from '@udecode/plate-common/server'; +import type { TElement } from '@udecode/plate-common'; export interface TExcalidrawElement extends TElement { data?: { diff --git a/packages/indent/src/types.ts b/packages/indent/src/types.ts index 8e54a88c68..4db301ac63 100644 --- a/packages/indent/src/types.ts +++ b/packages/indent/src/types.ts @@ -1,4 +1,4 @@ -import type { TElement } from '@udecode/plate-common/server'; +import type { TElement } from '@udecode/plate-common'; export interface TIndentElement extends TElement { indent: number; diff --git a/packages/layout/src/types.ts b/packages/layout/src/types.ts index e648125a94..4b391e159f 100644 --- a/packages/layout/src/types.ts +++ b/packages/layout/src/types.ts @@ -1,4 +1,4 @@ -import type { TElement } from '@udecode/plate-common/server'; +import type { TElement } from '@udecode/plate-common'; export interface TColumnElement extends TElement { type: 'column'; diff --git a/packages/link/src/types.ts b/packages/link/src/types.ts index 163c4fe5c4..694f6ff60d 100644 --- a/packages/link/src/types.ts +++ b/packages/link/src/types.ts @@ -1,4 +1,4 @@ -import type { TElement } from '@udecode/plate-common/server'; +import type { TElement } from '@udecode/plate-common'; export interface TLinkElement extends TElement { url: string; diff --git a/packages/list/src/todo-list/types.ts b/packages/list/src/todo-list/types.ts index de841052ed..6a3019fec8 100644 --- a/packages/list/src/todo-list/types.ts +++ b/packages/list/src/todo-list/types.ts @@ -1,4 +1,4 @@ -import type { TElement } from '@udecode/plate-common/server'; +import type { TElement } from '@udecode/plate-common'; export interface TTodoListItemElement extends TElement { checked?: boolean; diff --git a/packages/media/src/media/types.ts b/packages/media/src/media/types.ts index b4efce7fe6..e664675ccf 100644 --- a/packages/media/src/media/types.ts +++ b/packages/media/src/media/types.ts @@ -1,4 +1,4 @@ -import type { TElement } from '@udecode/plate-common/server'; +import type { TElement } from '@udecode/plate-common'; export interface TMediaElement extends TElement { url: string; diff --git a/packages/resizable/src/components/TResizableElement.ts b/packages/resizable/src/components/TResizableElement.ts index 33cb67cc3d..fac7d69673 100644 --- a/packages/resizable/src/components/TResizableElement.ts +++ b/packages/resizable/src/components/TResizableElement.ts @@ -1,4 +1,4 @@ -import type { TElement } from '@udecode/plate-common/server'; +import type { TElement } from '@udecode/plate-common'; export interface TResizableElement extends TElement { align?: 'center' | 'left' | 'right'; diff --git a/packages/suggestion/src/types.ts b/packages/suggestion/src/types.ts index b0c0e26289..7c77238852 100644 --- a/packages/suggestion/src/types.ts +++ b/packages/suggestion/src/types.ts @@ -1,4 +1,4 @@ -import type { TText, UnknownObject } from '@udecode/plate-common/server'; +import type { TText, UnknownObject } from '@udecode/plate-common'; export interface SuggestionUser extends UnknownObject { id: string; diff --git a/packages/table/src/components/TableCellElement/useIsCellSelected.ts b/packages/table/src/components/TableCellElement/useIsCellSelected.ts index 1708872ce0..3d05d304d6 100644 --- a/packages/table/src/components/TableCellElement/useIsCellSelected.ts +++ b/packages/table/src/components/TableCellElement/useIsCellSelected.ts @@ -1,6 +1,6 @@ import React from 'react'; -import type { TElement } from '@udecode/plate-common/server'; +import type { TElement } from '@udecode/plate-common'; import { useTableStore } from '../../stores/tableStore'; diff --git a/packages/table/src/merge/getTableMergedColumnCount.ts b/packages/table/src/merge/getTableMergedColumnCount.ts index ddaad46407..acb147a51c 100644 --- a/packages/table/src/merge/getTableMergedColumnCount.ts +++ b/packages/table/src/merge/getTableMergedColumnCount.ts @@ -1,4 +1,4 @@ -import type { TElement } from '@udecode/plate-common/server'; +import type { TElement } from '@udecode/plate-common'; import { getColSpan } from '../queries'; diff --git a/packages/table/src/queries/getTableColumnCount.ts b/packages/table/src/queries/getTableColumnCount.ts index ebb3534578..95380765dc 100644 --- a/packages/table/src/queries/getTableColumnCount.ts +++ b/packages/table/src/queries/getTableColumnCount.ts @@ -1,4 +1,4 @@ -import type { TElement } from '@udecode/plate-common/server'; +import type { TElement } from '@udecode/plate-common'; export const getTableColumnCount = (tableNode: TElement) => { return (tableNode.children as TElement[])?.[0]?.children?.length ?? 0; diff --git a/packages/table/src/stores/tableStore.ts b/packages/table/src/stores/tableStore.ts index b643bfefea..d8f4dfea1f 100644 --- a/packages/table/src/stores/tableStore.ts +++ b/packages/table/src/stores/tableStore.ts @@ -1,6 +1,6 @@ import React from 'react'; -import type { TElement } from '@udecode/plate-common/server'; +import type { TElement } from '@udecode/plate-common'; import { atom, createAtomStore } from '@udecode/plate-common'; diff --git a/packages/table/src/types.ts b/packages/table/src/types.ts index ca799657bc..a561355441 100644 --- a/packages/table/src/types.ts +++ b/packages/table/src/types.ts @@ -3,7 +3,7 @@ import type { TDescendant, TElement, Value, -} from '@udecode/plate-common/server'; +} from '@udecode/plate-common'; import type { Path } from 'slate'; export interface TablePlugin {