[WEB-1682] refactor: editor code splitting (#4893)
* refactor: lite and rich text editors * refactor: document editor migration * fix: add missing css import * refactor: issue embed widget splitting * chore: remove extensions folder from ee * chore: update web ee folder structure * fix: build errors --------- Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
This commit is contained in:
parent
367ccba17e
commit
dcdd1ef065
256 changed files with 1027 additions and 2401 deletions
37
packages/editor/src/index.ts
Normal file
37
packages/editor/src/index.ts
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
// styles
|
||||
// import "./styles/tailwind.css";
|
||||
import "src/styles/editor.css";
|
||||
import "src/styles/table.css";
|
||||
import "src/styles/github-dark.css";
|
||||
import "src/styles/drag-drop.css";
|
||||
|
||||
// editors
|
||||
export {
|
||||
DocumentEditorWithRef,
|
||||
DocumentReadOnlyEditorWithRef,
|
||||
LiteTextEditorWithRef,
|
||||
LiteTextReadOnlyEditorWithRef,
|
||||
RichTextEditorWithRef,
|
||||
RichTextReadOnlyEditorWithRef,
|
||||
} from "@/components/editors";
|
||||
|
||||
export { isCellSelection } from "@/extensions/table/table/utilities/is-cell-selection";
|
||||
|
||||
// helpers
|
||||
export * from "@/helpers/common";
|
||||
export * from "@/helpers/editor-commands";
|
||||
export * from "@/helpers/yjs";
|
||||
export * from "@/extensions/table/table";
|
||||
export { startImageUpload } from "@/plugins/image";
|
||||
|
||||
// components
|
||||
export * from "@/components/menus";
|
||||
|
||||
// hooks
|
||||
export { useEditor } from "@/hooks/use-editor";
|
||||
export { type IMarking, useEditorMarkings } from "@/hooks/use-editor-markings";
|
||||
export { useReadOnlyEditor } from "@/hooks/use-read-only-editor";
|
||||
|
||||
// types
|
||||
export type { CustomEditorProps, TFileHandler } from "@/hooks/use-editor";
|
||||
export * from "@/types";
|
||||
Loading…
Add table
Add a link
Reference in a new issue