@ethberry/mui-lexical 3.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/common/hooks/index.d.ts +1 -1
- package/dist/common/hooks/index.d.ts.map +1 -1
- package/dist/common/hooks/index.js +1 -1
- package/dist/common/hooks/index.js.map +1 -1
- package/dist/common/hooks/useModal.js +1 -1
- package/dist/common/hooks/useModal.js.map +1 -1
- package/dist/common/index.d.ts +2 -2
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +2 -2
- package/dist/common/index.js.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/index.js.map +1 -1
- package/dist/config/lexicalEditorConfig.d.ts.map +1 -1
- package/dist/config/lexicalEditorConfig.js +2 -11
- package/dist/config/lexicalEditorConfig.js.map +1 -1
- package/dist/display/index.js +3 -3
- package/dist/display/index.js.map +1 -1
- package/dist/editor/Editor.d.ts +1 -1
- package/dist/editor/Editor.d.ts.map +1 -1
- package/dist/editor/Editor.js +5 -5
- package/dist/editor/Editor.js.map +1 -1
- package/dist/editor/constants/index.d.ts +1 -1
- package/dist/editor/constants/index.d.ts.map +1 -1
- package/dist/editor/context/index.d.ts +2 -2
- package/dist/editor/context/index.d.ts.map +1 -1
- package/dist/editor/context/index.js +2 -2
- package/dist/editor/context/index.js.map +1 -1
- package/dist/editor/hooks/index.d.ts +1 -1
- package/dist/editor/hooks/index.d.ts.map +1 -1
- package/dist/editor/hooks/index.js +1 -1
- package/dist/editor/hooks/index.js.map +1 -1
- package/dist/editor/hooks/useModal.js +1 -1
- package/dist/editor/hooks/useModal.js.map +1 -1
- package/dist/editor/images/icons/index.d.ts +88 -88
- package/dist/editor/images/icons/index.d.ts.map +1 -1
- package/dist/editor/images/icons/index.js +88 -88
- package/dist/editor/images/icons/index.js.map +1 -1
- package/dist/editor/index.d.ts +2 -2
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/editor/index.js +2 -2
- package/dist/editor/index.js.map +1 -1
- package/dist/editor/nodes/Image/ImageComponent.js +5 -5
- package/dist/editor/nodes/Image/ImageComponent.js.map +1 -1
- package/dist/editor/nodes/Image/ImageNode.js +1 -1
- package/dist/editor/nodes/Image/ImageNode.js.map +1 -1
- package/dist/editor/nodes/Image/index.d.ts +3 -3
- package/dist/editor/nodes/Image/index.d.ts.map +1 -1
- package/dist/editor/nodes/Image/index.js +3 -3
- package/dist/editor/nodes/Image/index.js.map +1 -1
- package/dist/editor/nodes/InlineImage/InlineImageComponent.d.ts +1 -1
- package/dist/editor/nodes/InlineImage/InlineImageComponent.d.ts.map +1 -1
- package/dist/editor/nodes/InlineImage/InlineImageComponent.js +4 -4
- package/dist/editor/nodes/InlineImage/InlineImageComponent.js.map +1 -1
- package/dist/editor/nodes/InlineImage/InlineImageNode.js +1 -1
- package/dist/editor/nodes/InlineImage/InlineImageNode.js.map +1 -1
- package/dist/editor/nodes/InlineImage/index.d.ts +3 -3
- package/dist/editor/nodes/InlineImage/index.d.ts.map +1 -1
- package/dist/editor/nodes/InlineImage/index.js +3 -3
- package/dist/editor/nodes/InlineImage/index.js.map +1 -1
- package/dist/editor/nodes/MuiLexicalNodes.js +3 -3
- package/dist/editor/nodes/MuiLexicalNodes.js.map +1 -1
- package/dist/editor/nodes/Video/VideoComponent.d.ts +1 -1
- package/dist/editor/nodes/Video/VideoComponent.d.ts.map +1 -1
- package/dist/editor/nodes/Video/VideoComponent.js +1 -5
- package/dist/editor/nodes/Video/VideoComponent.js.map +1 -1
- package/dist/editor/nodes/Video/VideoNode.d.ts +2 -2
- package/dist/editor/nodes/Video/VideoNode.d.ts.map +1 -1
- package/dist/editor/nodes/Video/VideoNode.js +4 -4
- package/dist/editor/nodes/Video/VideoNode.js.map +1 -1
- package/dist/editor/nodes/Video/index.d.ts +3 -3
- package/dist/editor/nodes/Video/index.d.ts.map +1 -1
- package/dist/editor/nodes/Video/index.js +3 -3
- package/dist/editor/nodes/Video/index.js.map +1 -1
- package/dist/editor/nodes/index.d.ts +4 -4
- package/dist/editor/nodes/index.d.ts.map +1 -1
- package/dist/editor/nodes/index.js +4 -4
- package/dist/editor/nodes/index.js.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/components/index.d.ts +2 -2
- package/dist/editor/plugins/CodeActionMenuPlugin/components/index.d.ts.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/components/index.js +2 -2
- package/dist/editor/plugins/CodeActionMenuPlugin/components/index.js.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/index.d.ts +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/index.d.ts.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/index.js +3 -3
- package/dist/editor/plugins/CodeActionMenuPlugin/index.js.map +1 -1
- package/dist/editor/plugins/ComponentPickerPlugin/index.js +4 -4
- package/dist/editor/plugins/ComponentPickerPlugin/index.js.map +1 -1
- package/dist/editor/plugins/FloatingLinkEditorPlugin/index.d.ts +1 -1
- package/dist/editor/plugins/FloatingLinkEditorPlugin/index.d.ts.map +1 -1
- package/dist/editor/plugins/FloatingLinkEditorPlugin/index.js +5 -5
- package/dist/editor/plugins/FloatingLinkEditorPlugin/index.js.map +1 -1
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +3 -3
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.d.ts.map +1 -1
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.js +7 -7
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -1
- package/dist/editor/plugins/ImagesPlugin/index.d.ts +1 -1
- package/dist/editor/plugins/ImagesPlugin/index.d.ts.map +1 -1
- package/dist/editor/plugins/ImagesPlugin/index.js +14 -7
- package/dist/editor/plugins/ImagesPlugin/index.js.map +1 -1
- package/dist/editor/plugins/LinkPlugin/index.js +1 -1
- package/dist/editor/plugins/LinkPlugin/index.js.map +1 -1
- package/dist/editor/plugins/MarkdownShortcutPlugin/index.js +1 -1
- package/dist/editor/plugins/MarkdownShortcutPlugin/index.js.map +1 -1
- package/dist/editor/plugins/MarkdownTransformers/index.js +1 -1
- package/dist/editor/plugins/MarkdownTransformers/index.js.map +1 -1
- package/dist/editor/plugins/ShortcutsPlugin/index.js +4 -4
- package/dist/editor/plugins/ShortcutsPlugin/index.js.map +1 -1
- package/dist/editor/plugins/TableActionMenuPlugin/index.js +2 -2
- package/dist/editor/plugins/TableActionMenuPlugin/index.js.map +1 -1
- package/dist/editor/plugins/TableCellResizer/index.d.ts +1 -1
- package/dist/editor/plugins/TableCellResizer/index.d.ts.map +1 -1
- package/dist/editor/plugins/TableCellResizer/index.js +4 -2
- package/dist/editor/plugins/TableCellResizer/index.js.map +1 -1
- package/dist/editor/plugins/TableHoverActionsPlugin/index.js +2 -2
- package/dist/editor/plugins/TableHoverActionsPlugin/index.js.map +1 -1
- package/dist/editor/plugins/TablePlugin.js +3 -3
- package/dist/editor/plugins/TablePlugin.js.map +1 -1
- package/dist/editor/plugins/ToolbarPlugin/index.d.ts +1 -1
- package/dist/editor/plugins/ToolbarPlugin/index.d.ts.map +1 -1
- package/dist/editor/plugins/ToolbarPlugin/index.js +14 -11
- package/dist/editor/plugins/ToolbarPlugin/index.js.map +1 -1
- package/dist/editor/plugins/ToolbarPlugin/utils.js +1 -1
- package/dist/editor/plugins/ToolbarPlugin/utils.js.map +1 -1
- package/dist/editor/plugins/VideoPlugin/index.js +6 -6
- package/dist/editor/plugins/VideoPlugin/index.js.map +1 -1
- package/dist/editor/plugins/index.d.ts +19 -19
- package/dist/editor/plugins/index.d.ts.map +1 -1
- package/dist/editor/plugins/index.js +19 -19
- package/dist/editor/plugins/index.js.map +1 -1
- package/dist/editor/themes/index.d.ts +1 -1
- package/dist/editor/themes/index.d.ts.map +1 -1
- package/dist/editor/themes/index.js +1 -1
- package/dist/editor/themes/index.js.map +1 -1
- package/dist/editor/types/index.d.ts +1 -1
- package/dist/editor/types/index.d.ts.map +1 -1
- package/dist/editor/ui/BlockFormatDropdown/index.d.ts +3 -3
- package/dist/editor/ui/BlockFormatDropdown/index.d.ts.map +1 -1
- package/dist/editor/ui/BlockFormatDropdown/index.js +6 -6
- package/dist/editor/ui/BlockFormatDropdown/index.js.map +1 -1
- package/dist/editor/ui/BoldButton/index.d.ts +1 -1
- package/dist/editor/ui/BoldButton/index.d.ts.map +1 -1
- package/dist/editor/ui/BoldButton/index.js +2 -2
- package/dist/editor/ui/BoldButton/index.js.map +1 -1
- package/dist/editor/ui/Button.js +1 -1
- package/dist/editor/ui/Button.js.map +1 -1
- package/dist/editor/ui/CenterAlignButton/index.d.ts +1 -1
- package/dist/editor/ui/CenterAlignButton/index.d.ts.map +1 -1
- package/dist/editor/ui/CenterAlignButton/index.js +2 -2
- package/dist/editor/ui/CenterAlignButton/index.js.map +1 -1
- package/dist/editor/ui/ClearEditorButton/index.d.ts +1 -1
- package/dist/editor/ui/ClearEditorButton/index.d.ts.map +1 -1
- package/dist/editor/ui/ClearEditorButton/index.js +1 -1
- package/dist/editor/ui/ClearEditorButton/index.js.map +1 -1
- package/dist/editor/ui/ClearFormattingButton/index.d.ts +1 -1
- package/dist/editor/ui/ClearFormattingButton/index.d.ts.map +1 -1
- package/dist/editor/ui/ClearFormattingButton/index.js +1 -1
- package/dist/editor/ui/ClearFormattingButton/index.js.map +1 -1
- package/dist/editor/ui/CodeButton/index.d.ts +1 -1
- package/dist/editor/ui/CodeButton/index.d.ts.map +1 -1
- package/dist/editor/ui/CodeButton/index.js +2 -2
- package/dist/editor/ui/CodeButton/index.js.map +1 -1
- package/dist/editor/ui/CodeLanguageDropdown/index.d.ts +2 -2
- package/dist/editor/ui/CodeLanguageDropdown/index.d.ts.map +1 -1
- package/dist/editor/ui/CodeLanguageDropdown/index.js +2 -2
- package/dist/editor/ui/CodeLanguageDropdown/index.js.map +1 -1
- package/dist/editor/ui/HorizontalRuleButton/index.d.ts +1 -1
- package/dist/editor/ui/HorizontalRuleButton/index.d.ts.map +1 -1
- package/dist/editor/ui/HorizontalRuleButton/index.js +1 -1
- package/dist/editor/ui/HorizontalRuleButton/index.js.map +1 -1
- package/dist/editor/ui/ImageButton/index.d.ts +2 -2
- package/dist/editor/ui/ImageButton/index.d.ts.map +1 -1
- package/dist/editor/ui/ImageButton/index.js +2 -2
- package/dist/editor/ui/ImageButton/index.js.map +1 -1
- package/dist/editor/ui/ItalicButton/index.d.ts +1 -1
- package/dist/editor/ui/ItalicButton/index.d.ts.map +1 -1
- package/dist/editor/ui/ItalicButton/index.js +2 -2
- package/dist/editor/ui/ItalicButton/index.js.map +1 -1
- package/dist/editor/ui/LeftAlignButton/index.d.ts +1 -1
- package/dist/editor/ui/LeftAlignButton/index.d.ts.map +1 -1
- package/dist/editor/ui/LeftAlignButton/index.js +2 -2
- package/dist/editor/ui/LeftAlignButton/index.js.map +1 -1
- package/dist/editor/ui/LinkButton/index.d.ts +1 -1
- package/dist/editor/ui/LinkButton/index.d.ts.map +1 -1
- package/dist/editor/ui/LinkButton/index.js +2 -2
- package/dist/editor/ui/LinkButton/index.js.map +1 -1
- package/dist/editor/ui/RedoButton/index.d.ts +1 -1
- package/dist/editor/ui/RedoButton/index.d.ts.map +1 -1
- package/dist/editor/ui/RedoButton/index.js +1 -1
- package/dist/editor/ui/RedoButton/index.js.map +1 -1
- package/dist/editor/ui/RightAlignButton/index.d.ts +1 -1
- package/dist/editor/ui/RightAlignButton/index.d.ts.map +1 -1
- package/dist/editor/ui/RightAlignButton/index.js +2 -2
- package/dist/editor/ui/RightAlignButton/index.js.map +1 -1
- package/dist/editor/ui/StrikethroughButton/index.d.ts +1 -1
- package/dist/editor/ui/StrikethroughButton/index.d.ts.map +1 -1
- package/dist/editor/ui/StrikethroughButton/index.js +2 -2
- package/dist/editor/ui/StrikethroughButton/index.js.map +1 -1
- package/dist/editor/ui/TableButton/index.d.ts +2 -2
- package/dist/editor/ui/TableButton/index.d.ts.map +1 -1
- package/dist/editor/ui/TableButton/index.js +2 -2
- package/dist/editor/ui/TableButton/index.js.map +1 -1
- package/dist/editor/ui/UnderlineButton/index.d.ts +1 -1
- package/dist/editor/ui/UnderlineButton/index.d.ts.map +1 -1
- package/dist/editor/ui/UnderlineButton/index.js +2 -2
- package/dist/editor/ui/UnderlineButton/index.js.map +1 -1
- package/dist/editor/ui/UndoButton/index.d.ts +1 -1
- package/dist/editor/ui/UndoButton/index.d.ts.map +1 -1
- package/dist/editor/ui/UndoButton/index.js +1 -1
- package/dist/editor/ui/UndoButton/index.js.map +1 -1
- package/dist/editor/ui/VideoButton/index.d.ts +2 -2
- package/dist/editor/ui/VideoButton/index.d.ts.map +1 -1
- package/dist/editor/ui/VideoButton/index.js +2 -2
- package/dist/editor/ui/VideoButton/index.js.map +1 -1
- package/dist/editor/ui/index.d.ts +29 -29
- package/dist/editor/ui/index.d.ts.map +1 -1
- package/dist/editor/ui/index.js +36 -36
- package/dist/editor/ui/index.js.map +1 -1
- package/dist/editor/utils/index.d.ts +9 -9
- package/dist/editor/utils/index.d.ts.map +1 -1
- package/dist/editor/utils/index.js +9 -9
- package/dist/editor/utils/index.js.map +1 -1
- package/dist/editor/utils/useIsClient.d.ts +2 -0
- package/dist/editor/utils/useIsClient.d.ts.map +1 -0
- package/dist/editor/utils/useIsClient.js +6 -0
- package/dist/editor/utils/useIsClient.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +10 -5
- package/eslint.config.mjs +0 -37
- package/jest.config.json +0 -39
- package/jest.setup.cjs +0 -31
- package/tsconfig.eslint.json +0 -10
- package/tsconfig.jest.json +0 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/RedoButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/RedoButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,sBAAsB,CAejD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { REDO_COMMAND } from "lexical";
|
|
3
3
|
import { IS_APPLE } from "@lexical/utils";
|
|
4
|
-
import { ArrowClockwiseIcon } from "../../images/icons";
|
|
4
|
+
import { ArrowClockwiseIcon } from "../../images/icons/index.js";
|
|
5
5
|
export const RedoButton = ({ activeEditor, disabled }) => {
|
|
6
6
|
return (_jsx("button", { disabled: disabled, onClick: () => {
|
|
7
7
|
activeEditor.dispatchCommand(REDO_COMMAND, undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/RedoButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/RedoButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,CAAC,MAAM,UAAU,GAA+B,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,EAAE;IACnF,OAAO,CACL,iBACE,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE;YACZ,YAAY,CAAC,eAAe,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;QACxD,CAAC,EACD,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,eAAe,EAChD,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,cAAc,gBACb,MAAM,YAEjB,KAAC,kBAAkB,KAAG,GACf,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/RightAlignButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/RightAlignButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,UAAU,sBAAuB,SAAQ,sBAAsB;IAC7D,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,sBAAsB,CAevD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { FORMAT_ELEMENT_COMMAND } from "lexical";
|
|
3
|
-
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts";
|
|
4
|
-
import { TextRightIcon } from "../../images/icons";
|
|
3
|
+
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts.js";
|
|
4
|
+
import { TextRightIcon } from "../../images/icons/index.js";
|
|
5
5
|
export const RightAlignButton = ({ activeEditor, isRightAlign, disabled }) => {
|
|
6
6
|
return (_jsx("button", { disabled: disabled, onClick: () => {
|
|
7
7
|
activeEditor.dispatchCommand(FORMAT_ELEMENT_COMMAND, "right");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/RightAlignButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/RightAlignButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAEvE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAM5D,MAAM,CAAC,MAAM,gBAAgB,GAA+B,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,EAAE;IACvG,OAAO,CACL,iBACE,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE;YACZ,YAAY,CAAC,eAAe,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;QAChE,CAAC,EACD,SAAS,EAAE,sBAAsB,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAClE,KAAK,EAAE,gBAAgB,SAAS,CAAC,WAAW,GAAG,EAC/C,IAAI,EAAC,QAAQ,gBACD,yCAAyC,SAAS,CAAC,WAAW,EAAE,YAE5E,KAAC,aAAa,KAAG,GACV,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/StrikethroughButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/StrikethroughButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,UAAU,yBAA0B,SAAQ,sBAAsB;IAChE,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,yBAAyB,CAe7D,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { FORMAT_TEXT_COMMAND } from "lexical";
|
|
3
|
-
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts";
|
|
4
|
-
import { TypeStrikethroughIcon } from "../../images/icons";
|
|
3
|
+
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts.js";
|
|
4
|
+
import { TypeStrikethroughIcon } from "../../images/icons/index.js";
|
|
5
5
|
export const StrikethroughButton = ({ activeEditor, isStrikethrough, disabled }) => {
|
|
6
6
|
return (_jsx("button", { disabled: disabled, onClick: () => {
|
|
7
7
|
activeEditor.dispatchCommand(FORMAT_TEXT_COMMAND, "strikethrough");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/StrikethroughButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/StrikethroughButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAEvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAMpE,MAAM,CAAC,MAAM,mBAAmB,GAAkC,CAAC,EAAE,YAAY,EAAE,eAAe,EAAE,QAAQ,EAAE,EAAE,EAAE;IAChH,OAAO,CACL,iBACE,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE;YACZ,YAAY,CAAC,eAAe,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;QACrE,CAAC,EACD,SAAS,EAAE,sBAAsB,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EACrE,KAAK,EAAE,WAAW,SAAS,CAAC,aAAa,GAAG,EAC5C,IAAI,EAAC,QAAQ,gBACD,qCAAqC,SAAS,CAAC,aAAa,EAAE,YAE1E,KAAC,qBAAqB,KAAG,GAClB,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { IToolbarComponentProps } from "../../../common";
|
|
3
|
-
import { useModal } from "../../hooks";
|
|
2
|
+
import { IToolbarComponentProps } from "../../../common/index.js";
|
|
3
|
+
import { useModal } from "../../hooks/index.js";
|
|
4
4
|
interface ITableButtonProps extends Omit<IToolbarComponentProps, "disabled"> {
|
|
5
5
|
showModal: ReturnType<typeof useModal>[1];
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/TableButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/TableButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,UAAU,iBAAkB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC;IAC1E,SAAS,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3C;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,iBAAiB,CAc7C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { InsertTableDialog } from "../../plugins";
|
|
3
|
-
import { TableIcon } from "../../images/icons";
|
|
2
|
+
import { InsertTableDialog } from "../../plugins/index.js";
|
|
3
|
+
import { TableIcon } from "../../images/icons/index.js";
|
|
4
4
|
export const TableButton = ({ activeEditor, showModal }) => {
|
|
5
5
|
return (_jsx("button", { onClick: () => {
|
|
6
6
|
showModal("Insert Table", onClose => _jsx(InsertTableDialog, { activeEditor: activeEditor, onClose: onClose }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/TableButton/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/TableButton/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAMxD,MAAM,CAAC,MAAM,WAAW,GAA0B,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,EAAE;IAChF,OAAO,CACL,iBACE,OAAO,EAAE,GAAG,EAAE;YACZ,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC,EAAE,CAAC,KAAC,iBAAiB,IAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC;QAC5G,CAAC,EACD,SAAS,EAAE,qBAAqB,EAChC,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,QAAQ,gBACF,OAAO,YAElB,KAAC,SAAS,KAAG,GACN,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/UnderlineButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/UnderlineButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,UAAU,qBAAsB,SAAQ,sBAAsB;IAC5D,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,qBAAqB,CAerD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { FORMAT_TEXT_COMMAND } from "lexical";
|
|
3
|
-
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts";
|
|
4
|
-
import { TypeUnderlineIcon } from "../../images/icons";
|
|
3
|
+
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts.js";
|
|
4
|
+
import { TypeUnderlineIcon } from "../../images/icons/index.js";
|
|
5
5
|
export const UnderlineButton = ({ activeEditor, isUnderline, disabled }) => {
|
|
6
6
|
return (_jsx("button", { disabled: disabled, onClick: () => {
|
|
7
7
|
activeEditor.dispatchCommand(FORMAT_TEXT_COMMAND, "underline");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/UnderlineButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/UnderlineButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAEvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAMhE,MAAM,CAAC,MAAM,eAAe,GAA8B,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpG,OAAO,CACL,iBACE,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE;YACZ,YAAY,CAAC,eAAe,CAAC,mBAAmB,EAAE,WAAW,CAAC,CAAC;QACjE,CAAC,EACD,SAAS,EAAE,sBAAsB,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EACjE,KAAK,EAAE,WAAW,SAAS,CAAC,SAAS,GAAG,EACxC,IAAI,EAAC,QAAQ,gBACD,qCAAqC,SAAS,CAAC,SAAS,EAAE,YAEtE,KAAC,iBAAiB,KAAG,GACd,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/UndoButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/UndoButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,sBAAsB,CAejD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { UNDO_COMMAND } from "lexical";
|
|
3
3
|
import { IS_APPLE } from "@lexical/utils";
|
|
4
|
-
import { ArrowCounterclockwiseIcon } from "../../images/icons";
|
|
4
|
+
import { ArrowCounterclockwiseIcon } from "../../images/icons/index.js";
|
|
5
5
|
export const UndoButton = ({ activeEditor, disabled }) => {
|
|
6
6
|
return (_jsx("button", { disabled: disabled, onClick: () => {
|
|
7
7
|
activeEditor.dispatchCommand(UNDO_COMMAND, undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/UndoButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/UndoButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,MAAM,CAAC,MAAM,UAAU,GAA+B,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,EAAE;IACnF,OAAO,CACL,iBACE,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE;YACZ,YAAY,CAAC,eAAe,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;QACxD,CAAC,EACD,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,eAAe,EAC/C,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,qBAAqB,gBACpB,MAAM,YAEjB,KAAC,yBAAyB,KAAG,GACtB,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { IToolbarComponentProps } from "../../../common";
|
|
3
|
-
import { useModal } from "../../hooks";
|
|
2
|
+
import { IToolbarComponentProps } from "../../../common/index.js";
|
|
3
|
+
import { useModal } from "../../hooks/index.js";
|
|
4
4
|
interface IVideoButtonProps extends Omit<IToolbarComponentProps, "disabled"> {
|
|
5
5
|
showModal: ReturnType<typeof useModal>[1];
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/VideoButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/VideoButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,UAAU,iBAAkB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC;IAC1E,SAAS,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3C;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,iBAAiB,CAc7C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { InsertVideoDialog } from "../../plugins";
|
|
3
|
-
import { YoutubeIcon } from "../../images/icons";
|
|
2
|
+
import { InsertVideoDialog } from "../../plugins/index.js";
|
|
3
|
+
import { YoutubeIcon } from "../../images/icons/index.js";
|
|
4
4
|
export const VideoButton = ({ activeEditor, showModal }) => {
|
|
5
5
|
return (_jsx("button", { onClick: () => {
|
|
6
6
|
showModal("Insert Video", onClose => _jsx(InsertVideoDialog, { activeEditor: activeEditor, onClose: onClose }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/VideoButton/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/VideoButton/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAM1D,MAAM,CAAC,MAAM,WAAW,GAA0B,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,EAAE;IAChF,OAAO,CACL,iBACE,OAAO,EAAE,GAAG,EAAE;YACZ,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC,EAAE,CAAC,KAAC,iBAAiB,IAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC;QAC5G,CAAC,EACD,SAAS,EAAE,qBAAqB,EAChC,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,QAAQ,gBACF,OAAO,YAElB,KAAC,WAAW,KAAG,GACR,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export { Button } from "./Button";
|
|
2
|
-
export { LexicalContentEditable } from "./ContentEditable";
|
|
3
|
-
export { DialogButtonsList, DialogActions } from "./Dialog";
|
|
4
|
-
export { DropDown, DropDownItem } from "./DropDown";
|
|
5
|
-
export { FlashMessage } from "./FlashMessage";
|
|
6
|
-
export { ImageResizer } from "./ImageResizer";
|
|
7
|
-
export { Modal } from "./Modal";
|
|
8
|
-
export { Select } from "./Select";
|
|
9
|
-
export { TextInput } from "./TextInput";
|
|
10
|
-
export * from "./UndoButton";
|
|
11
|
-
export * from "./RedoButton";
|
|
12
|
-
export * from "./BoldButton";
|
|
13
|
-
export * from "./ClearFormattingButton";
|
|
14
|
-
export * from "./ClearEditorButton";
|
|
15
|
-
export * from "./CodeButton";
|
|
16
|
-
export * from "./ItalicButton";
|
|
17
|
-
export * from "./ImageButton";
|
|
18
|
-
export * from "./HorizontalRuleButton";
|
|
19
|
-
export * from "./LinkButton";
|
|
20
|
-
export * from "./UnderlineButton";
|
|
21
|
-
export * from "./StrikethroughButton";
|
|
22
|
-
export * from "./TableButton";
|
|
23
|
-
export * from "./VideoButton";
|
|
24
|
-
export * from "./Divider";
|
|
25
|
-
export * from "./BlockFormatDropdown";
|
|
26
|
-
export * from "./CodeLanguageDropdown";
|
|
27
|
-
export * from "./LeftAlignButton";
|
|
28
|
-
export * from "./CenterAlignButton";
|
|
29
|
-
export * from "./RightAlignButton";
|
|
1
|
+
export { Button } from "./Button.js";
|
|
2
|
+
export { LexicalContentEditable } from "./ContentEditable.js";
|
|
3
|
+
export { DialogButtonsList, DialogActions } from "./Dialog.js";
|
|
4
|
+
export { DropDown, DropDownItem } from "./DropDown.js";
|
|
5
|
+
export { FlashMessage } from "./FlashMessage.js";
|
|
6
|
+
export { ImageResizer } from "./ImageResizer.js";
|
|
7
|
+
export { Modal } from "./Modal.js";
|
|
8
|
+
export { Select } from "./Select.js";
|
|
9
|
+
export { TextInput } from "./TextInput.js";
|
|
10
|
+
export * from "./UndoButton/index.js";
|
|
11
|
+
export * from "./RedoButton/index.js";
|
|
12
|
+
export * from "./BoldButton/index.js";
|
|
13
|
+
export * from "./ClearFormattingButton/index.js";
|
|
14
|
+
export * from "./ClearEditorButton/index.js";
|
|
15
|
+
export * from "./CodeButton/index.js";
|
|
16
|
+
export * from "./ItalicButton/index.js";
|
|
17
|
+
export * from "./ImageButton/index.js";
|
|
18
|
+
export * from "./HorizontalRuleButton/index.js";
|
|
19
|
+
export * from "./LinkButton/index.js";
|
|
20
|
+
export * from "./UnderlineButton/index.js";
|
|
21
|
+
export * from "./StrikethroughButton/index.js";
|
|
22
|
+
export * from "./TableButton/index.js";
|
|
23
|
+
export * from "./VideoButton/index.js";
|
|
24
|
+
export * from "./Divider/index.js";
|
|
25
|
+
export * from "./BlockFormatDropdown/index.js";
|
|
26
|
+
export * from "./CodeLanguageDropdown/index.js";
|
|
27
|
+
export * from "./LeftAlignButton/index.js";
|
|
28
|
+
export * from "./CenterAlignButton/index.js";
|
|
29
|
+
export * from "./RightAlignButton/index.js";
|
|
30
30
|
export declare const componentsStyles: import("@emotion/utils").SerializedStyles[];
|
|
31
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/ui/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/ui/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAE5C,eAAO,MAAM,gBAAgB,6CAQ5B,CAAC"}
|
package/dist/editor/ui/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { buttonStyles } from "./Button";
|
|
2
|
-
import { lexicalContentEditableStyles } from "./ContentEditable";
|
|
3
|
-
import { lexicalDialogStyles } from "./Dialog";
|
|
4
|
-
import { lexicalFlashMessageStyles } from "./FlashMessage";
|
|
5
|
-
import { lexicalModalStyles } from "./Modal";
|
|
6
|
-
import { lexicalSelectStyles } from "./Select";
|
|
7
|
-
import { lexicalTextInputStyles } from "./TextInput";
|
|
8
|
-
export { Button } from "./Button";
|
|
9
|
-
export { LexicalContentEditable } from "./ContentEditable";
|
|
10
|
-
export { DialogButtonsList, DialogActions } from "./Dialog";
|
|
11
|
-
export { DropDown, DropDownItem } from "./DropDown";
|
|
12
|
-
export { FlashMessage } from "./FlashMessage";
|
|
13
|
-
export { ImageResizer } from "./ImageResizer";
|
|
14
|
-
export { Modal } from "./Modal";
|
|
15
|
-
export { Select } from "./Select";
|
|
16
|
-
export { TextInput } from "./TextInput";
|
|
17
|
-
export * from "./UndoButton";
|
|
18
|
-
export * from "./RedoButton";
|
|
19
|
-
export * from "./BoldButton";
|
|
20
|
-
export * from "./ClearFormattingButton";
|
|
21
|
-
export * from "./ClearEditorButton";
|
|
22
|
-
export * from "./CodeButton";
|
|
23
|
-
export * from "./ItalicButton";
|
|
24
|
-
export * from "./ImageButton";
|
|
25
|
-
export * from "./HorizontalRuleButton";
|
|
26
|
-
export * from "./LinkButton";
|
|
27
|
-
export * from "./UnderlineButton";
|
|
28
|
-
export * from "./StrikethroughButton";
|
|
29
|
-
export * from "./TableButton";
|
|
30
|
-
export * from "./VideoButton";
|
|
31
|
-
export * from "./Divider";
|
|
32
|
-
export * from "./BlockFormatDropdown";
|
|
33
|
-
export * from "./CodeLanguageDropdown";
|
|
34
|
-
export * from "./LeftAlignButton";
|
|
35
|
-
export * from "./CenterAlignButton";
|
|
36
|
-
export * from "./RightAlignButton";
|
|
1
|
+
import { buttonStyles } from "./Button.js";
|
|
2
|
+
import { lexicalContentEditableStyles } from "./ContentEditable.js";
|
|
3
|
+
import { lexicalDialogStyles } from "./Dialog.js";
|
|
4
|
+
import { lexicalFlashMessageStyles } from "./FlashMessage.js";
|
|
5
|
+
import { lexicalModalStyles } from "./Modal.js";
|
|
6
|
+
import { lexicalSelectStyles } from "./Select.js";
|
|
7
|
+
import { lexicalTextInputStyles } from "./TextInput.js";
|
|
8
|
+
export { Button } from "./Button.js";
|
|
9
|
+
export { LexicalContentEditable } from "./ContentEditable.js";
|
|
10
|
+
export { DialogButtonsList, DialogActions } from "./Dialog.js";
|
|
11
|
+
export { DropDown, DropDownItem } from "./DropDown.js";
|
|
12
|
+
export { FlashMessage } from "./FlashMessage.js";
|
|
13
|
+
export { ImageResizer } from "./ImageResizer.js";
|
|
14
|
+
export { Modal } from "./Modal.js";
|
|
15
|
+
export { Select } from "./Select.js";
|
|
16
|
+
export { TextInput } from "./TextInput.js";
|
|
17
|
+
export * from "./UndoButton/index.js";
|
|
18
|
+
export * from "./RedoButton/index.js";
|
|
19
|
+
export * from "./BoldButton/index.js";
|
|
20
|
+
export * from "./ClearFormattingButton/index.js";
|
|
21
|
+
export * from "./ClearEditorButton/index.js";
|
|
22
|
+
export * from "./CodeButton/index.js";
|
|
23
|
+
export * from "./ItalicButton/index.js";
|
|
24
|
+
export * from "./ImageButton/index.js";
|
|
25
|
+
export * from "./HorizontalRuleButton/index.js";
|
|
26
|
+
export * from "./LinkButton/index.js";
|
|
27
|
+
export * from "./UnderlineButton/index.js";
|
|
28
|
+
export * from "./StrikethroughButton/index.js";
|
|
29
|
+
export * from "./TableButton/index.js";
|
|
30
|
+
export * from "./VideoButton/index.js";
|
|
31
|
+
export * from "./Divider/index.js";
|
|
32
|
+
export * from "./BlockFormatDropdown/index.js";
|
|
33
|
+
export * from "./CodeLanguageDropdown/index.js";
|
|
34
|
+
export * from "./LeftAlignButton/index.js";
|
|
35
|
+
export * from "./CenterAlignButton/index.js";
|
|
36
|
+
export * from "./RightAlignButton/index.js";
|
|
37
37
|
export const componentsStyles = [
|
|
38
38
|
buttonStyles,
|
|
39
39
|
lexicalContentEditableStyles,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAE5C,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,YAAY;IACZ,4BAA4B;IAC5B,mBAAmB;IACnB,yBAAyB;IACzB,kBAAkB;IAClB,mBAAmB;IACnB,sBAAsB;CACvB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from "./dropDownActiveClass";
|
|
2
|
-
export * from "./getDOMRangeRect";
|
|
3
|
-
export * from "./getSelectedNode";
|
|
4
|
-
export * from "./getThemeSelector";
|
|
5
|
-
export * from "./joinClasses";
|
|
6
|
-
export * from "./parseVideoUrl";
|
|
7
|
-
export * from "./setFloatingElemPosition";
|
|
8
|
-
export * from "./setFloatingElemPositionForLinkEditor";
|
|
9
|
-
export * from "./url";
|
|
1
|
+
export * from "./dropDownActiveClass.js";
|
|
2
|
+
export * from "./getDOMRangeRect.js";
|
|
3
|
+
export * from "./getSelectedNode.js";
|
|
4
|
+
export * from "./getThemeSelector.js";
|
|
5
|
+
export * from "./joinClasses.js";
|
|
6
|
+
export * from "./parseVideoUrl.js";
|
|
7
|
+
export * from "./setFloatingElemPosition.js";
|
|
8
|
+
export * from "./setFloatingElemPositionForLinkEditor.js";
|
|
9
|
+
export * from "./url.js";
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,UAAU,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from "./dropDownActiveClass";
|
|
2
|
-
export * from "./getDOMRangeRect";
|
|
3
|
-
export * from "./getSelectedNode";
|
|
4
|
-
export * from "./getThemeSelector";
|
|
5
|
-
export * from "./joinClasses";
|
|
6
|
-
export * from "./parseVideoUrl";
|
|
7
|
-
export * from "./setFloatingElemPosition";
|
|
8
|
-
export * from "./setFloatingElemPositionForLinkEditor";
|
|
9
|
-
export * from "./url";
|
|
1
|
+
export * from "./dropDownActiveClass.js";
|
|
2
|
+
export * from "./getDOMRangeRect.js";
|
|
3
|
+
export * from "./getSelectedNode.js";
|
|
4
|
+
export * from "./getThemeSelector.js";
|
|
5
|
+
export * from "./joinClasses.js";
|
|
6
|
+
export * from "./parseVideoUrl.js";
|
|
7
|
+
export * from "./setFloatingElemPosition.js";
|
|
8
|
+
export * from "./setFloatingElemPositionForLinkEditor.js";
|
|
9
|
+
export * from "./url.js";
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsClient.d.ts","sourceRoot":"","sources":["../../../src/editor/utils/useIsClient.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,QAAO,OAK5B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { useSyncExternalStore } from "react";
|
|
2
|
+
const subscribe = () => () => void 0;
|
|
3
|
+
// false on the server and while the page hydrates, true after that: what renders into document.body (a portal)
|
|
4
|
+
// waits for it, so a server render needs no document and the hydration sees the same markup as the server
|
|
5
|
+
export const useIsClient = () => useSyncExternalStore(subscribe, () => true, () => false);
|
|
6
|
+
//# sourceMappingURL=useIsClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsClient.js","sourceRoot":"","sources":["../../../src/editor/utils/useIsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAE7C,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;AAErC,+GAA+G;AAC/G,0GAA0G;AAC1G,MAAM,CAAC,MAAM,WAAW,GAAG,GAAY,EAAE,CACvC,oBAAoB,CAClB,SAAS,EACT,GAAG,EAAE,CAAC,IAAI,EACV,GAAG,EAAE,CAAC,KAAK,CACZ,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,eAAO,MAAM,gBAAgB,6CAW5B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { codeActionMenuPluginStyles, floatLinkEditorPluginStyles, floatTextFormatToolbarPluginStyles, tableCellResizerPluginStyles, } from "./editor/plugins";
|
|
2
|
-
import { playgroundEditorThemeStyles } from "./editor/themes";
|
|
3
|
-
import { editorStyles } from "./editor/editorStyles";
|
|
4
|
-
import { componentsStyles } from "./editor/ui";
|
|
5
|
-
import { imageNodeStyles, videoNodeStyles, inlineImageNodeStyles } from "./editor/nodes";
|
|
6
|
-
export * from "./editor";
|
|
7
|
-
export * from "./display";
|
|
1
|
+
import { codeActionMenuPluginStyles, floatLinkEditorPluginStyles, floatTextFormatToolbarPluginStyles, tableCellResizerPluginStyles, } from "./editor/plugins/index.js";
|
|
2
|
+
import { playgroundEditorThemeStyles } from "./editor/themes/index.js";
|
|
3
|
+
import { editorStyles } from "./editor/editorStyles.js";
|
|
4
|
+
import { componentsStyles } from "./editor/ui/index.js";
|
|
5
|
+
import { imageNodeStyles, videoNodeStyles, inlineImageNodeStyles } from "./editor/nodes/index.js";
|
|
6
|
+
export * from "./editor/index.js";
|
|
7
|
+
export * from "./display/index.js";
|
|
8
8
|
export const muiLexicalStyles = [
|
|
9
9
|
...componentsStyles,
|
|
10
10
|
editorStyles,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC3B,kCAAkC,EAClC,4BAA4B,GAC7B,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC3B,kCAAkC,EAClC,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAElG,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,gBAAgB;IACnB,YAAY;IACZ,eAAe;IACf,qBAAqB;IACrB,0BAA0B;IAC1B,2BAA2B;IAC3B,kCAAkC;IAClC,4BAA4B;IAC5B,2BAA2B;IAC3B,eAAe;CAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -21,13 +21,10 @@
|
|
|
21
21
|
"@lexical/list": "0.53.0",
|
|
22
22
|
"@lexical/markdown": "0.53.0",
|
|
23
23
|
"@lexical/overflow": "0.53.0",
|
|
24
|
-
"@lexical/react": "0.53.0",
|
|
25
24
|
"@lexical/rich-text": "0.53.0",
|
|
26
25
|
"@lexical/selection": "0.53.0",
|
|
27
26
|
"@lexical/table": "0.53.0",
|
|
28
27
|
"@lexical/utils": "0.53.0",
|
|
29
|
-
"@mui/material": "^7.0.0 || ^9.2.0",
|
|
30
|
-
"lexical": "0.53.0",
|
|
31
28
|
"lodash-es": "4.18.1"
|
|
32
29
|
},
|
|
33
30
|
"description": "Material-UI Lexical Editor and Viewer",
|
|
@@ -37,6 +34,9 @@
|
|
|
37
34
|
"@emotion/styled": "11.14.1",
|
|
38
35
|
"@ethberry/cross-env": "0.0.5",
|
|
39
36
|
"@ethberry/eslint-config": "5.0.13",
|
|
37
|
+
"@jest/globals": "30.5.2",
|
|
38
|
+
"@lexical/react": "0.53.0",
|
|
39
|
+
"@mui/material": "9.5.0",
|
|
40
40
|
"@storybook/addon-docs": "10.6.7",
|
|
41
41
|
"@storybook/addon-links": "10.6.7",
|
|
42
42
|
"@storybook/addon-webpack5-compiler-swc": "4.0.3",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"husky": "9.1.7",
|
|
56
56
|
"jest": "30.5.2",
|
|
57
57
|
"jest-environment-jsdom": "30.5.2",
|
|
58
|
+
"lexical": "0.53.0",
|
|
58
59
|
"lint-staged": "17.6.0",
|
|
59
60
|
"lodash": "4.18.1",
|
|
60
61
|
"prettier": "3.9.10",
|
|
@@ -90,9 +91,11 @@
|
|
|
90
91
|
"main": "./dist/index.js",
|
|
91
92
|
"name": "@ethberry/mui-lexical",
|
|
92
93
|
"peerDependencies": {
|
|
94
|
+
"@lexical/react": "^0.53.0",
|
|
93
95
|
"@mui/icons-material": "^7.0.0 || ^9.2.0",
|
|
94
96
|
"@mui/material": "^7.0.0 || ^9.2.0",
|
|
95
97
|
"@mui/system": "^7.0.0 || ^9.0.0",
|
|
98
|
+
"lexical": "^0.53.0",
|
|
96
99
|
"react": "^19.0.0",
|
|
97
100
|
"react-dom": "^19.0.0"
|
|
98
101
|
},
|
|
@@ -107,13 +110,15 @@
|
|
|
107
110
|
"scripts": {
|
|
108
111
|
"build": "tsc",
|
|
109
112
|
"build-storybook": "storybook build",
|
|
113
|
+
"check:peers": "node scripts/check-peers.mjs .",
|
|
110
114
|
"lint": "eslint . --fix",
|
|
111
115
|
"prebuild": "rimraf dist/",
|
|
112
116
|
"prepare": "husky",
|
|
113
117
|
"storybook": "storybook dev -p 6006",
|
|
114
|
-
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest"
|
|
118
|
+
"test": "npm run check:peers && npm run typecheck && cross-env NODE_OPTIONS=--experimental-vm-modules jest",
|
|
119
|
+
"typecheck": "tsc -p tsconfig.test.json"
|
|
115
120
|
},
|
|
116
121
|
"type": "module",
|
|
117
122
|
"types": "./dist/index.d.ts",
|
|
118
|
-
"version": "
|
|
123
|
+
"version": "4.0.1"
|
|
119
124
|
}
|