[WIKI-699] refactor: editor config (#7850)

This commit is contained in:
Vipin Chaudhary 2025-10-01 15:00:10 +05:30 committed by GitHub
parent a69c6f1b9c
commit b37e453b32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 32 additions and 3 deletions

View file

@ -0,0 +1 @@
export type TExtendedFileHandler = object;

View file

@ -1,2 +1,3 @@
export * from "./issue-embed";
export * from "./editor-extended";
export * from "./config";

View file

@ -22,6 +22,7 @@ const generalSelectors = [
".image-upload-component",
".editor-callout-component",
".editor-embed-component",
".editor-drawio-component",
].join(", ");
const maxScrollSpeed = 20;

View file

@ -1,5 +1,6 @@
// plane imports
import { TWebhookConnectionQueryParams } from "@plane/types";
import { TExtendedFileHandler } from "@/plane-editor/types/config";
export type TFileHandler = {
assetsUploadStatus: Record<string, number>; // blockId => progress percentage
@ -16,7 +17,7 @@ export type TFileHandler = {
* @example enter 5242880(5 * 1024 * 1024) for 5MB
*/
maxFileSize: number;
};
} & TExtendedFileHandler;
};
export type TEditorFontStyle = "sans-serif" | "serif" | "monospace";