@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,20 +1,20 @@
|
|
|
1
|
-
export * from "./CodeActionMenuPlugin";
|
|
2
|
-
export * from "./CodeHighlightPlugin";
|
|
3
|
-
export * from "./ComponentPickerPlugin";
|
|
4
|
-
export * from "./ContextMenuPlugin";
|
|
5
|
-
export * from "./FloatingLinkEditorPlugin";
|
|
6
|
-
export * from "./FloatingTextFormatToolbarPlugin";
|
|
7
|
-
export * from "./ImagesPlugin";
|
|
8
|
-
export * from "./LinkPlugin";
|
|
9
|
-
export * from "./MarkdownShortcutPlugin";
|
|
10
|
-
export * from "./MarkdownTransformers";
|
|
11
|
-
export * from "./MaxLengthPlugin";
|
|
12
|
-
export * from "./ShortcutsPlugin";
|
|
13
|
-
export * from "./TabFocusPlugin";
|
|
14
|
-
export * from "./TableActionMenuPlugin";
|
|
15
|
-
export * from "./TableCellResizer";
|
|
16
|
-
export * from "./TableHoverActionsPlugin";
|
|
17
|
-
export * from "./TablePlugin";
|
|
18
|
-
export * from "./ToolbarPlugin";
|
|
19
|
-
export * from "./VideoPlugin";
|
|
1
|
+
export * from "./CodeActionMenuPlugin/index.js";
|
|
2
|
+
export * from "./CodeHighlightPlugin/index.js";
|
|
3
|
+
export * from "./ComponentPickerPlugin/index.js";
|
|
4
|
+
export * from "./ContextMenuPlugin/index.js";
|
|
5
|
+
export * from "./FloatingLinkEditorPlugin/index.js";
|
|
6
|
+
export * from "./FloatingTextFormatToolbarPlugin/index.js";
|
|
7
|
+
export * from "./ImagesPlugin/index.js";
|
|
8
|
+
export * from "./LinkPlugin/index.js";
|
|
9
|
+
export * from "./MarkdownShortcutPlugin/index.js";
|
|
10
|
+
export * from "./MarkdownTransformers/index.js";
|
|
11
|
+
export * from "./MaxLengthPlugin/index.js";
|
|
12
|
+
export * from "./ShortcutsPlugin/index.js";
|
|
13
|
+
export * from "./TabFocusPlugin/index.js";
|
|
14
|
+
export * from "./TableActionMenuPlugin/index.js";
|
|
15
|
+
export * from "./TableCellResizer/index.js";
|
|
16
|
+
export * from "./TableHoverActionsPlugin/index.js";
|
|
17
|
+
export * from "./TablePlugin.js";
|
|
18
|
+
export * from "./ToolbarPlugin/index.js";
|
|
19
|
+
export * from "./VideoPlugin/index.js";
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export * from "./CodeActionMenuPlugin";
|
|
2
|
-
export * from "./CodeHighlightPlugin";
|
|
3
|
-
export * from "./ComponentPickerPlugin";
|
|
4
|
-
export * from "./ContextMenuPlugin";
|
|
5
|
-
export * from "./FloatingLinkEditorPlugin";
|
|
6
|
-
export * from "./FloatingTextFormatToolbarPlugin";
|
|
7
|
-
export * from "./ImagesPlugin";
|
|
8
|
-
export * from "./LinkPlugin";
|
|
9
|
-
export * from "./MarkdownShortcutPlugin";
|
|
10
|
-
export * from "./MarkdownTransformers";
|
|
11
|
-
export * from "./MaxLengthPlugin";
|
|
12
|
-
export * from "./ShortcutsPlugin";
|
|
13
|
-
export * from "./TabFocusPlugin";
|
|
14
|
-
export * from "./TableActionMenuPlugin";
|
|
15
|
-
export * from "./TableCellResizer";
|
|
16
|
-
export * from "./TableHoverActionsPlugin";
|
|
17
|
-
export * from "./TablePlugin";
|
|
18
|
-
export * from "./ToolbarPlugin";
|
|
19
|
-
export * from "./VideoPlugin";
|
|
1
|
+
export * from "./CodeActionMenuPlugin/index.js";
|
|
2
|
+
export * from "./CodeHighlightPlugin/index.js";
|
|
3
|
+
export * from "./ComponentPickerPlugin/index.js";
|
|
4
|
+
export * from "./ContextMenuPlugin/index.js";
|
|
5
|
+
export * from "./FloatingLinkEditorPlugin/index.js";
|
|
6
|
+
export * from "./FloatingTextFormatToolbarPlugin/index.js";
|
|
7
|
+
export * from "./ImagesPlugin/index.js";
|
|
8
|
+
export * from "./LinkPlugin/index.js";
|
|
9
|
+
export * from "./MarkdownShortcutPlugin/index.js";
|
|
10
|
+
export * from "./MarkdownTransformers/index.js";
|
|
11
|
+
export * from "./MaxLengthPlugin/index.js";
|
|
12
|
+
export * from "./ShortcutsPlugin/index.js";
|
|
13
|
+
export * from "./TabFocusPlugin/index.js";
|
|
14
|
+
export * from "./TableActionMenuPlugin/index.js";
|
|
15
|
+
export * from "./TableCellResizer/index.js";
|
|
16
|
+
export * from "./TableHoverActionsPlugin/index.js";
|
|
17
|
+
export * from "./TablePlugin.js";
|
|
18
|
+
export * from "./ToolbarPlugin/index.js";
|
|
19
|
+
export * from "./VideoPlugin/index.js";
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { playgroundEditorThemeStyles } from "./playgroundEditorThemeStyles";
|
|
1
|
+
export { playgroundEditorThemeStyles } from "./playgroundEditorThemeStyles.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { playgroundEditorThemeStyles } from "./playgroundEditorThemeStyles";
|
|
1
|
+
export { playgroundEditorThemeStyles } from "./playgroundEditorThemeStyles.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
2
|
import { CODE_LANGUAGE_FRIENDLY_NAME_MAP } from "@lexical/code-prism";
|
|
3
|
-
import { blockTypeToBlockName } from "../context";
|
|
3
|
+
import { blockTypeToBlockName } from "../context/index.js";
|
|
4
4
|
export type TToolbarHistoryControl = "undo" | "redo";
|
|
5
5
|
export type TToolbarTextFormatControl = "bold" | "italic" | "underline" | "strikethrough" | "code" | "link" | "leftAlign" | "centerAlign" | "rightAlign";
|
|
6
6
|
export type TToolbarViewFormatControl = "horizontal" | "image" | "video" | "table";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,CAAC;AACrD,MAAM,MAAM,yBAAyB,GACnC,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,aAAa,GAAG,YAAY,CAAC;AACnH,MAAM,MAAM,yBAAyB,GAAG,YAAY,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AACnF,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG,QAAQ,CAAC;AAC3D,MAAM,MAAM,0BAA0B,GAAG,MAAM,OAAO,oBAAoB,CAAC;AAC3E,MAAM,MAAM,4BAA4B,GAAG,MAAM,OAAO,+BAA+B,CAAC;AACxF,MAAM,MAAM,eAAe,GACvB,sBAAsB,GACtB,yBAAyB,GACzB,yBAAyB,GACzB,oBAAoB,GACpB,aAAa,GACb,eAAe,CAAC;AAEpB,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;IACxC,UAAU,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC9C,WAAW,CAAC,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAChD,UAAU,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC9C,aAAa,CAAC,EAAE,KAAK,CAAC,4BAA4B,CAAC,CAAC;IACpD,KAAK,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;CACrC;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LexicalEditor } from "lexical";
|
|
2
2
|
import { JSX } from "react";
|
|
3
|
-
import { blockTypeToBlockName } from "../../context";
|
|
4
|
-
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts";
|
|
5
|
-
import { TToolbarBlockFormatControl } from "../../types";
|
|
3
|
+
import { blockTypeToBlockName } from "../../context/index.js";
|
|
4
|
+
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts.js";
|
|
5
|
+
import { TToolbarBlockFormatControl } from "../../types/index.js";
|
|
6
6
|
export type BlockType = keyof typeof blockTypeToBlockName;
|
|
7
7
|
export interface IBlockFormatOptions {
|
|
8
8
|
blockType: BlockType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/BlockFormatDropdown/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAc,EAAE,GAAG,EAAW,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/BlockFormatDropdown/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAc,EAAE,GAAG,EAAW,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAW9D,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAgBvE,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAElE,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,oBAAoB,CAAC;AAE1D,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC;IACxB,QAAQ,EAAE,MAAM,OAAO,SAAS,CAAC;CAClC;AAqCD,eAAO,MAAM,mBAAmB,GAAI,4CAKjC;IACD,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;CAC9C,KAAG,GAAG,CAAC,OAmDP,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { blockTypeToBlockName } from "../../context";
|
|
4
|
-
import { DropDown, DropDownItem } from "../DropDown";
|
|
5
|
-
import { formatBulletList, formatCheckList, formatCode, formatHeading, formatNumberedList, formatParagraph, formatQuote, } from "../../plugins/ToolbarPlugin/utils";
|
|
6
|
-
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts";
|
|
7
|
-
import { dropDownActiveClass } from "../../utils";
|
|
8
|
-
import { ChatSquareQuoteIcon, CodeIcon, ListOlIcon, ListUlIcon, SquareCheckIcon, TextParagraphIcon, TypeH1Icon, TypeH2Icon, TypeH3Icon, TypeH4Icon, TypeH5Icon, TypeH6Icon, } from "../../images/icons";
|
|
3
|
+
import { blockTypeToBlockName } from "../../context/index.js";
|
|
4
|
+
import { DropDown, DropDownItem } from "../DropDown.js";
|
|
5
|
+
import { formatBulletList, formatCheckList, formatCode, formatHeading, formatNumberedList, formatParagraph, formatQuote, } from "../../plugins/ToolbarPlugin/utils.js";
|
|
6
|
+
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts.js";
|
|
7
|
+
import { dropDownActiveClass } from "../../utils/index.js";
|
|
8
|
+
import { ChatSquareQuoteIcon, CodeIcon, ListOlIcon, ListUlIcon, SquareCheckIcon, TextParagraphIcon, TypeH1Icon, TypeH2Icon, TypeH3Icon, TypeH4Icon, TypeH5Icon, TypeH6Icon, } from "../../images/icons/index.js";
|
|
9
9
|
const formatBlockIcons = {
|
|
10
10
|
paragraph: TextParagraphIcon,
|
|
11
11
|
h1: TypeH1Icon,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/BlockFormatDropdown/index.tsx"],"names":[],"mappings":";AACA,OAAc,EAAO,OAAO,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/BlockFormatDropdown/index.tsx"],"names":[],"mappings":";AACA,OAAc,EAAO,OAAO,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,WAAW,GACZ,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EACL,mBAAmB,EACnB,QAAQ,EACR,UAAU,EACV,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,GACX,MAAM,6BAA6B,CAAC;AAYrC,MAAM,gBAAgB,GAAyC;IAC7D,SAAS,EAAE,iBAAiB;IAC5B,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,UAAU;IACd,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,UAAU;IAClB,KAAK,EAAE,eAAe;IACtB,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,QAAQ;CACf,CAAC;AAEF,MAAM,kBAAkB,GAA+B;IACrD;QACE,SAAS,EAAE,WAAW;QACtB,KAAK,EAAE,oBAAoB,CAAC,SAAS;QACrC,IAAI,EAAE,gBAAgB,CAAC,SAAS;QAChC,QAAQ,EAAE,QAAQ;KACnB;IACD,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,oBAAoB,CAAC,EAAE,EAAE,IAAI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|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/BoldButton/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/BoldButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,UAAU,gBAAiB,SAAQ,sBAAsB;IACvD,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,gBAAgB,CAe3C,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 { TypeBoldIcon } from "../../images/icons";
|
|
3
|
+
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts.js";
|
|
4
|
+
import { TypeBoldIcon } from "../../images/icons/index.js";
|
|
5
5
|
export const BoldButton = ({ activeEditor, isBold, disabled }) => {
|
|
6
6
|
return (_jsx("button", { disabled: disabled, onClick: () => {
|
|
7
7
|
activeEditor.dispatchCommand(FORMAT_TEXT_COMMAND, "bold");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/BoldButton/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/BoldButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAM3D,MAAM,CAAC,MAAM,UAAU,GAAyB,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE;IACrF,OAAO,CACL,iBACE,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE;YACZ,YAAY,CAAC,eAAe,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;QAC5D,CAAC,EACD,SAAS,EAAE,sBAAsB,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAC5D,KAAK,EAAE,SAAS,SAAS,CAAC,IAAI,GAAG,EACjC,IAAI,EAAC,QAAQ,gBACD,kCAAkC,SAAS,CAAC,IAAI,EAAE,YAE9D,KAAC,YAAY,KAAG,GACT,CACV,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/editor/ui/Button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { css, Button as MUIButton } from "@mui/material";
|
|
3
|
-
import { joinClasses } from "../utils";
|
|
3
|
+
import { joinClasses } from "../utils/index.js";
|
|
4
4
|
export const Button = ({ "data-test-id": dataTestId, children, className, onClick, disabled, small, title, }) => {
|
|
5
5
|
return (_jsx(MUIButton, { disabled: disabled, className: joinClasses("Button__root", disabled && "Button__disabled", small && "Button__small", className), onClick: onClick, title: title, "aria-label": title, ...(dataTestId && { "data-test-id": dataTestId }), children: children }));
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/editor/ui/Button.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/editor/ui/Button.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,cAAc,EAAE,UAAU,EAC1B,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,EACR,KAAK,EACL,KAAK,GASN,EAAe,EAAE;IAChB,OAAO,CACL,KAAC,SAAS,IACR,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,WAAW,CAAC,cAAc,EAAE,QAAQ,IAAI,kBAAkB,EAAE,KAAK,IAAI,eAAe,EAAE,SAAS,CAAC,EAC3G,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,gBACA,KAAK,KACb,CAAC,UAAU,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,YAEjD,QAAQ,GACC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/CenterAlignButton/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/CenterAlignButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,UAAU,uBAAwB,SAAQ,sBAAsB;IAC9D,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,uBAAuB,CAezD,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 { TextCenterIcon } from "../../images/icons";
|
|
3
|
+
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts.js";
|
|
4
|
+
import { TextCenterIcon } from "../../images/icons/index.js";
|
|
5
5
|
export const CenterAlignButton = ({ activeEditor, isCenterAlign, disabled }) => {
|
|
6
6
|
return (_jsx("button", { disabled: disabled, onClick: () => {
|
|
7
7
|
activeEditor.dispatchCommand(FORMAT_ELEMENT_COMMAND, "center");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/CenterAlignButton/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/CenterAlignButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAM7D,MAAM,CAAC,MAAM,iBAAiB,GAAgC,CAAC,EAAE,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1G,OAAO,CACL,iBACE,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE;YACZ,YAAY,CAAC,eAAe,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CAAC;QACjE,CAAC,EACD,SAAS,EAAE,sBAAsB,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EACnE,KAAK,EAAE,iBAAiB,SAAS,CAAC,YAAY,GAAG,EACjD,IAAI,EAAC,QAAQ,gBACD,0CAA0C,SAAS,CAAC,YAAY,EAAE,YAE9E,KAAC,cAAc,KAAG,GACX,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/ClearEditorButton/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/ClearEditorButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,UAAU,gBAAiB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,cAAc,CAAC;IAC7E,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,gBAAgB,CAalD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Trash3Icon } from "../../images/icons";
|
|
2
|
+
import { Trash3Icon } from "../../images/icons/index.js";
|
|
3
3
|
export const ClearEditorButton = ({ onClick, disabled }) => {
|
|
4
4
|
return (_jsx("button", { disabled: disabled, onClick: onClick, className: "toolbar-item spaced", title: "Clear all editor", type: "button", "aria-label": "Clear all editor", children: _jsx(Trash3Icon, {}) }));
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/ClearEditorButton/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/ClearEditorButton/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAMzD,MAAM,CAAC,MAAM,iBAAiB,GAAyB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC/E,OAAO,CACL,iBACE,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,qBAAqB,EAChC,KAAK,EAAC,kBAAkB,EACxB,IAAI,EAAC,QAAQ,gBACF,kBAAkB,YAE7B,KAAC,UAAU,KAAG,GACP,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/ClearFormattingButton/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/ClearFormattingButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,UAAU,gBAAiB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,cAAc,CAAC;IAC7E,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,gBAAgB,CAatD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { FormatClearIcon } from "../../images/icons";
|
|
2
|
+
import { FormatClearIcon } from "../../images/icons/index.js";
|
|
3
3
|
export const ClearFormattingButton = ({ onClick, disabled }) => {
|
|
4
4
|
return (_jsx("button", { disabled: disabled, onClick: onClick, className: "toolbar-item spaced", title: "Clear text formatting", type: "button", "aria-label": "Clear all text formatting", children: _jsx(FormatClearIcon, {}) }));
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/ClearFormattingButton/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/ClearFormattingButton/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAM9D,MAAM,CAAC,MAAM,qBAAqB,GAAyB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IACnF,OAAO,CACL,iBACE,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,qBAAqB,EAChC,KAAK,EAAC,uBAAuB,EAC7B,IAAI,EAAC,QAAQ,gBACF,2BAA2B,YAEtC,KAAC,eAAe,KAAG,GACZ,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/CodeButton/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/CodeButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,UAAU,gBAAiB,SAAQ,sBAAsB;IACvD,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,gBAAgB,CAe3C,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 { CodeIcon } from "../../images/icons";
|
|
3
|
+
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts.js";
|
|
4
|
+
import { CodeIcon } from "../../images/icons/index.js";
|
|
5
5
|
export const CodeButton = ({ activeEditor, isCode, disabled }) => {
|
|
6
6
|
return (_jsx("button", { disabled: disabled, onClick: () => {
|
|
7
7
|
activeEditor.dispatchCommand(FORMAT_TEXT_COMMAND, "code");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/CodeButton/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/CodeButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAMvD,MAAM,CAAC,MAAM,UAAU,GAAyB,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE;IACrF,OAAO,CACL,iBACE,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE;YACZ,YAAY,CAAC,eAAe,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;QAC5D,CAAC,EACD,SAAS,EAAE,sBAAsB,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAC5D,KAAK,EAAE,sBAAsB,SAAS,CAAC,iBAAiB,GAAG,EAC3D,IAAI,EAAC,QAAQ,gBACF,mBAAmB,YAE9B,KAAC,QAAQ,KAAG,GACL,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ToolbarState } from "../../context";
|
|
3
|
-
import { TToolbarCodeLanguagesControl } from "../../types";
|
|
2
|
+
import { ToolbarState } from "../../context/index.js";
|
|
3
|
+
import { TToolbarCodeLanguagesControl } from "../../types/index.js";
|
|
4
4
|
interface ICodeLanguageDropdownProps {
|
|
5
5
|
toolbarState: ToolbarState;
|
|
6
6
|
onCodeLanguageSelect: (value: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/CodeLanguageDropdown/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/CodeLanguageDropdown/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAcpE,UAAU,0BAA0B;IAClC,YAAY,EAAE,YAAY,CAAC;IAC3B,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,4BAA4B,CAAC,CAAC;CAChD;AAED,eAAO,MAAM,oBAAoB,GAAI,OAAO,0BAA0B,sBA2BrE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { CODE_LANGUAGE_FRIENDLY_NAME_MAP, getLanguageFriendlyName } from "@lexical/code-prism";
|
|
3
|
-
import { DropDown, DropDownItem } from "../DropDown";
|
|
4
|
-
import { dropDownActiveClass } from "../../utils";
|
|
3
|
+
import { DropDown, DropDownItem } from "../DropDown.js";
|
|
4
|
+
import { dropDownActiveClass } from "../../utils/index.js";
|
|
5
5
|
function getCodeLanguageOptions() {
|
|
6
6
|
const options = [];
|
|
7
7
|
for (const [lang, friendlyName] of Object.entries(CODE_LANGUAGE_FRIENDLY_NAME_MAP)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/CodeLanguageDropdown/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,+BAA+B,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE/F,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/CodeLanguageDropdown/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,+BAA+B,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE/F,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI3D,SAAS,sBAAsB;IAC7B,MAAM,OAAO,GAAuB,EAAE,CAAC;IAEvC,KAAK,M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"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/HorizontalRuleButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/HorizontalRuleButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,sBAAsB,CAc3D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { INSERT_HORIZONTAL_RULE_COMMAND } from "@lexical/react/LexicalHorizontalRuleNode";
|
|
3
|
-
import { HorizontalRuleIcon } from "../../images/icons";
|
|
3
|
+
import { HorizontalRuleIcon } from "../../images/icons/index.js";
|
|
4
4
|
export const HorizontalRuleButton = ({ activeEditor }) => {
|
|
5
5
|
return (_jsx("button", { onClick: () => {
|
|
6
6
|
activeEditor.dispatchCommand(INSERT_HORIZONTAL_RULE_COMMAND, undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/HorizontalRuleButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAG1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/HorizontalRuleButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAG1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,CAAC,MAAM,oBAAoB,GAA+B,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;IACnF,OAAO,CACL,iBACE,OAAO,EAAE,GAAG,EAAE;YACZ,YAAY,CAAC,eAAe,CAAC,8BAA8B,EAAE,SAAS,CAAC,CAAC;QAC1E,CAAC,EACD,SAAS,EAAE,qBAAqB,EAChC,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAC,QAAQ,gBACF,iBAAiB,YAE5B,KAAC,kBAAkB,KAAG,GACf,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 IImageButtonProps 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/ImageButton/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/ImageButton/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 { InsertImageDialog } from "../../plugins";
|
|
3
|
-
import { FileImageIcon } from "../../images/icons";
|
|
2
|
+
import { InsertImageDialog } from "../../plugins/index.js";
|
|
3
|
+
import { FileImageIcon } from "../../images/icons/index.js";
|
|
4
4
|
export const ImageButton = ({ activeEditor, showModal }) => {
|
|
5
5
|
return (_jsx("button", { onClick: () => {
|
|
6
6
|
showModal("Insert Image", onClose => _jsx(InsertImageDialog, { activeEditor: activeEditor, onClose: onClose }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/ImageButton/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/ImageButton/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAM5D,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,aAAa,KAAG,GACV,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/ItalicButton/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/ItalicButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,UAAU,kBAAmB,SAAQ,sBAAsB;IACzD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,kBAAkB,CAe/C,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 { TypeItalicIcon } from "../../images/icons";
|
|
3
|
+
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts.js";
|
|
4
|
+
import { TypeItalicIcon } from "../../images/icons/index.js";
|
|
5
5
|
export const ItalicButton = ({ activeEditor, isItalic, disabled }) => {
|
|
6
6
|
return (_jsx("button", { disabled: disabled, onClick: () => {
|
|
7
7
|
activeEditor.dispatchCommand(FORMAT_TEXT_COMMAND, "italic");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/ItalicButton/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/ItalicButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAM7D,MAAM,CAAC,MAAM,YAAY,GAA2B,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3F,OAAO,CACL,iBACE,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE;YACZ,YAAY,CAAC,eAAe,CAAC,mBAAmB,EAAE,QAAQ,CAAC,CAAC;QAC9D,CAAC,EACD,SAAS,EAAE,sBAAsB,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAC9D,KAAK,EAAE,WAAW,SAAS,CAAC,MAAM,GAAG,EACrC,IAAI,EAAC,QAAQ,gBACD,qCAAqC,SAAS,CAAC,MAAM,EAAE,YAEnE,KAAC,cAAc,KAAG,GACX,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/LeftAlignButton/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/LeftAlignButton/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_ELEMENT_COMMAND } from "lexical";
|
|
3
|
-
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts";
|
|
4
|
-
import { TextLeftIcon } from "../../images/icons";
|
|
3
|
+
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts.js";
|
|
4
|
+
import { TextLeftIcon } from "../../images/icons/index.js";
|
|
5
5
|
export const LeftAlignButton = ({ activeEditor, isLeftAlign, disabled }) => {
|
|
6
6
|
return (_jsx("button", { disabled: disabled, onClick: () => {
|
|
7
7
|
activeEditor.dispatchCommand(FORMAT_ELEMENT_COMMAND, "left");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/LeftAlignButton/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/LeftAlignButton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAM3D,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,sBAAsB,EAAE,MAAM,CAAC,CAAC;QAC/D,CAAC,EACD,SAAS,EAAE,sBAAsB,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EACjE,KAAK,EAAE,eAAe,SAAS,CAAC,UAAU,GAAG,EAC7C,IAAI,EAAC,QAAQ,gBACD,wCAAwC,SAAS,CAAC,UAAU,EAAE,YAE1E,KAAC,YAAY,KAAG,GACT,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { IToolbarComponentProps } from "../../../common";
|
|
2
|
+
import { IToolbarComponentProps } from "../../../common/index.js";
|
|
3
3
|
interface ILinkButtonProps extends Omit<IToolbarComponentProps, "activeEditor"> {
|
|
4
4
|
isLink: boolean;
|
|
5
5
|
insertLink: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/LinkButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/ui/LinkButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,UAAU,gBAAiB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,cAAc,CAAC;IAC7E,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,gBAAgB,CAa3C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts";
|
|
3
|
-
import { LinkIcon } from "../../images/icons";
|
|
2
|
+
import { SHORTCUTS } from "../../plugins/ShortcutsPlugin/shortcuts.js";
|
|
3
|
+
import { LinkIcon } from "../../images/icons/index.js";
|
|
4
4
|
export const LinkButton = ({ insertLink, isLink, disabled }) => {
|
|
5
5
|
return (_jsx("button", { disabled: disabled, onClick: insertLink, className: "toolbar-item spaced " + (isLink ? "active" : ""), "aria-label": "Insert link", title: `Insert link (${SHORTCUTS.INSERT_LINK})`, type: "button", children: _jsx(LinkIcon, {}) }));
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/LinkButton/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/ui/LinkButton/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAOvD,MAAM,CAAC,MAAM,UAAU,GAAyB,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE;IACnF,OAAO,CACL,iBACE,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,sBAAsB,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,gBACjD,aAAa,EACxB,KAAK,EAAE,gBAAgB,SAAS,CAAC,WAAW,GAAG,EAC/C,IAAI,EAAC,QAAQ,YAEb,KAAC,QAAQ,KAAG,GACL,CACV,CAAC;AACJ,CAAC,CAAC"}
|