2024-08-07 20:06:15 +05:30
|
|
|
// editor
|
2025-08-15 13:10:26 +05:30
|
|
|
import type { TExtensions } from "@plane/editor";
|
2025-10-14 16:45:07 +05:30
|
|
|
import type { EPageStoreType } from "@/plane-web/hooks/store";
|
2024-08-07 20:06:15 +05:30
|
|
|
|
2025-06-19 16:25:52 +05:30
|
|
|
export type TEditorFlaggingHookReturnType = {
|
|
|
|
|
document: {
|
|
|
|
|
disabled: TExtensions[];
|
|
|
|
|
flagged: TExtensions[];
|
|
|
|
|
};
|
|
|
|
|
liteText: {
|
|
|
|
|
disabled: TExtensions[];
|
|
|
|
|
flagged: TExtensions[];
|
|
|
|
|
};
|
|
|
|
|
richText: {
|
|
|
|
|
disabled: TExtensions[];
|
|
|
|
|
flagged: TExtensions[];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2025-09-01 22:17:53 +05:30
|
|
|
export type TEditorFlaggingHookProps = {
|
|
|
|
|
workspaceSlug: string;
|
2025-11-21 12:49:30 +05:30
|
|
|
projectId?: string;
|
2025-09-01 22:17:53 +05:30
|
|
|
storeType?: EPageStoreType;
|
|
|
|
|
};
|
|
|
|
|
|
2024-08-07 20:06:15 +05:30
|
|
|
/**
|
|
|
|
|
* @description extensions disabled in various editors
|
|
|
|
|
*/
|
2025-09-30 19:56:12 +05:30
|
|
|
export const useEditorFlagging = (_props: TEditorFlaggingHookProps): TEditorFlaggingHookReturnType => ({
|
2025-06-19 16:25:52 +05:30
|
|
|
document: {
|
|
|
|
|
disabled: ["ai", "collaboration-cursor"],
|
|
|
|
|
flagged: [],
|
|
|
|
|
},
|
|
|
|
|
liteText: {
|
|
|
|
|
disabled: ["ai", "collaboration-cursor"],
|
|
|
|
|
flagged: [],
|
|
|
|
|
},
|
|
|
|
|
richText: {
|
|
|
|
|
disabled: ["ai", "collaboration-cursor"],
|
|
|
|
|
flagged: [],
|
|
|
|
|
},
|
2024-08-07 20:06:15 +05:30
|
|
|
});
|