Skip to content

Commit

Permalink
Merge pull request #3187 from udecode/fix/server-types
Browse files Browse the repository at this point in the history
Fix/server types
  • Loading branch information
zbeyens committed May 8, 2024
2 parents e002587 + eaa7e9d commit fe1ec41
Show file tree
Hide file tree
Showing 21 changed files with 39 additions and 24 deletions.
19 changes: 19 additions & 0 deletions .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
2 changes: 1 addition & 1 deletion 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[];
Expand Down
2 changes: 1 addition & 1 deletion 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 = {};
Expand Down
6 changes: 1 addition & 5 deletions 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;
Expand Down
2 changes: 1 addition & 1 deletion packages/code-block/src/shared/types.ts
Expand Up @@ -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[];
Expand Down
2 changes: 1 addition & 1 deletion 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;
Expand Down
2 changes: 1 addition & 1 deletion 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';

Expand Down
2 changes: 1 addition & 1 deletion packages/diff/src/internal/utils/get-properties.ts
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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?: {
Expand Down
2 changes: 1 addition & 1 deletion 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;
Expand Down
2 changes: 1 addition & 1 deletion 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';
Expand Down
2 changes: 1 addition & 1 deletion 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;
Expand Down
2 changes: 1 addition & 1 deletion 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;
Expand Down
2 changes: 1 addition & 1 deletion 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;
Expand Down
2 changes: 1 addition & 1 deletion 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';
Expand Down
2 changes: 1 addition & 1 deletion 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;
Expand Down
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion 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';

Expand Down
2 changes: 1 addition & 1 deletion 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;
Expand Down
2 changes: 1 addition & 1 deletion 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';

Expand Down
2 changes: 1 addition & 1 deletion packages/table/src/types.ts
Expand Up @@ -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<V extends Value = Value> {
Expand Down

0 comments on commit fe1ec41

Please sign in to comment.