diff --git a/packages/editor-ext/src/lib/image/image-upload.ts b/packages/editor-ext/src/lib/image/image-upload.ts index 2c197e3..8ffa2cb 100644 --- a/packages/editor-ext/src/lib/image/image-upload.ts +++ b/packages/editor-ext/src/lib/image/image-upload.ts @@ -1,7 +1,7 @@ import { type EditorState, Plugin, PluginKey } from "@tiptap/pm/state"; import { Decoration, DecorationSet } from "@tiptap/pm/view"; -import { IAttachment } from "client/src/lib/types"; import { MediaUploadOptions, UploadFn } from "../media-utils"; +import { IAttachment } from "../types"; const uploadKey = new PluginKey("image-upload"); diff --git a/packages/editor-ext/src/lib/types.ts b/packages/editor-ext/src/lib/types.ts new file mode 100644 index 0000000..595d7f4 --- /dev/null +++ b/packages/editor-ext/src/lib/types.ts @@ -0,0 +1,17 @@ +// repetition for now +export interface IAttachment { + id: string; + fileName: string; + filePath: string; + fileSize: number; + fileExt: string; + mimeType: string; + type: string; + creatorId: string; + pageId: string | null; + spaceId: string | null; + workspaceId: string; + createdAt: string; + updatedAt: string; + deletedAt: string | null; +} diff --git a/packages/editor-ext/src/lib/video/video-upload.ts b/packages/editor-ext/src/lib/video/video-upload.ts index 60e8bed..022e630 100644 --- a/packages/editor-ext/src/lib/video/video-upload.ts +++ b/packages/editor-ext/src/lib/video/video-upload.ts @@ -1,7 +1,7 @@ import { type EditorState, Plugin, PluginKey } from "@tiptap/pm/state"; import { Decoration, DecorationSet } from "@tiptap/pm/view"; -import { IAttachment } from "client/src/lib/types"; import { MediaUploadOptions, UploadFn } from "../media-utils"; +import { IAttachment } from "../types"; const uploadKey = new PluginKey("video-upload");