* fix: remove unused imports and variables (part 1) Resolve oxlint no-unused-vars warnings in packages/*, apps/admin, apps/space, apps/live, and apps/web (non-core). * fix: resolve CI check failures * fix: resolve check:types failures * fix: resolve check:types and check:format failures - Use destructuring alias for activeCycleResolvedPath - Format propel tab-navigation file * fix: format propel button helper with oxfmt Reorder Tailwind classes to match oxfmt canonical ordering.
41 lines
812 B
TypeScript
41 lines
812 B
TypeScript
/**
|
|
* Copyright (c) 2023-present Plane Software, Inc. and contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
* See the LICENSE file for details.
|
|
*/
|
|
|
|
// editor
|
|
import type { TExtensions } from "@plane/editor";
|
|
|
|
export type TEditorFlaggingHookReturnType = {
|
|
document: {
|
|
disabled: TExtensions[];
|
|
flagged: TExtensions[];
|
|
};
|
|
liteText: {
|
|
disabled: TExtensions[];
|
|
flagged: TExtensions[];
|
|
};
|
|
richText: {
|
|
disabled: TExtensions[];
|
|
flagged: TExtensions[];
|
|
};
|
|
};
|
|
|
|
/**
|
|
* @description extensions disabled in various editors
|
|
*/
|
|
export const useEditorFlagging = (_anchor: string): TEditorFlaggingHookReturnType => ({
|
|
document: {
|
|
disabled: [],
|
|
flagged: [],
|
|
},
|
|
liteText: {
|
|
disabled: [],
|
|
flagged: [],
|
|
},
|
|
richText: {
|
|
disabled: [],
|
|
flagged: [],
|
|
},
|
|
});
|