@webiny/lexical-editor 6.3.0-beta.4 → 6.4.0-beta.0
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/commands/image.js +2 -1
- package/commands/image.js.map +1 -1
- package/commands/index.js +0 -2
- package/commands/list.js +4 -3
- package/commands/list.js.map +1 -1
- package/commands/quote.js +2 -1
- package/commands/quote.js.map +1 -1
- package/commands/toolbar.js +2 -1
- package/commands/toolbar.js.map +1 -1
- package/commands/typography.js +2 -1
- package/commands/typography.js.map +1 -1
- package/components/Editor/EnsureHeadingTagPlugin.js +8 -15
- package/components/Editor/EnsureHeadingTagPlugin.js.map +1 -1
- package/components/Editor/RichTextEditor.js +82 -121
- package/components/Editor/RichTextEditor.js.map +1 -1
- package/components/Editor/normalizeInputValue.js +11 -13
- package/components/Editor/normalizeInputValue.js.map +1 -1
- package/components/LexicalEditorConfig/LexicalEditorConfig.js +24 -15
- package/components/LexicalEditorConfig/LexicalEditorConfig.js.map +1 -1
- package/components/LexicalEditorConfig/components/Node.js +21 -26
- package/components/LexicalEditorConfig/components/Node.js.map +1 -1
- package/components/LexicalEditorConfig/components/Plugin.js +21 -26
- package/components/LexicalEditorConfig/components/Plugin.js.map +1 -1
- package/components/LexicalEditorConfig/components/ToolbarElement.js +21 -26
- package/components/LexicalEditorConfig/components/ToolbarElement.js.map +1 -1
- package/components/LexicalHtmlRenderer.js +35 -40
- package/components/LexicalHtmlRenderer.js.map +1 -1
- package/components/Toolbar/StaticToolbar.js +11 -16
- package/components/Toolbar/StaticToolbar.js.map +1 -1
- package/components/ToolbarActions/BoldAction.js +16 -19
- package/components/ToolbarActions/BoldAction.js.map +1 -1
- package/components/ToolbarActions/BulletListAction.js +24 -32
- package/components/ToolbarActions/BulletListAction.js.map +1 -1
- package/components/ToolbarActions/CodeHighlightAction.js +16 -19
- package/components/ToolbarActions/CodeHighlightAction.js.map +1 -1
- package/components/ToolbarActions/FontColorAction.js +32 -38
- package/components/ToolbarActions/FontColorAction.js.map +1 -1
- package/components/ToolbarActions/ImageAction.js +28 -30
- package/components/ToolbarActions/ImageAction.js.map +1 -1
- package/components/ToolbarActions/ItalicAction.js +16 -19
- package/components/ToolbarActions/ItalicAction.js.map +1 -1
- package/components/ToolbarActions/LinkAction.js +25 -30
- package/components/ToolbarActions/LinkAction.js.map +1 -1
- package/components/ToolbarActions/NumberedListAction.js +28 -37
- package/components/ToolbarActions/NumberedListAction.js.map +1 -1
- package/components/ToolbarActions/QuoteAction.js +22 -27
- package/components/ToolbarActions/QuoteAction.js.map +1 -1
- package/components/ToolbarActions/TextAlignmentAction.js +38 -50
- package/components/ToolbarActions/TextAlignmentAction.js.map +1 -1
- package/components/ToolbarActions/TypographyAction.js +69 -99
- package/components/ToolbarActions/TypographyAction.js.map +1 -1
- package/components/ToolbarActions/UnderlineAction.js +16 -19
- package/components/ToolbarActions/UnderlineAction.js.map +1 -1
- package/context/FontColorActionContext.js +3 -2
- package/context/FontColorActionContext.js.map +1 -1
- package/context/RichTextEditorContext.js +26 -29
- package/context/RichTextEditorContext.js.map +1 -1
- package/context/SharedHistoryContext.js +11 -15
- package/context/SharedHistoryContext.js.map +1 -1
- package/context/TextAlignmentActionContextProps.js +3 -2
- package/context/TextAlignmentActionContextProps.js.map +1 -1
- package/context/TypographyActionContext.js +3 -2
- package/context/TypographyActionContext.js.map +1 -1
- package/exports/admin/lexical.js +2 -20
- package/hooks/index.js +0 -2
- package/hooks/useCurrentElement.js +18 -21
- package/hooks/useCurrentElement.js.map +1 -1
- package/hooks/useCurrentSelection.js +39 -48
- package/hooks/useCurrentSelection.js.map +1 -1
- package/hooks/useFontColorPicker.js +5 -6
- package/hooks/useFontColorPicker.js.map +1 -1
- package/hooks/useIsMounted.js +7 -8
- package/hooks/useIsMounted.js.map +1 -1
- package/hooks/useRichTextEditor.js +5 -6
- package/hooks/useRichTextEditor.js.map +1 -1
- package/hooks/useTextAlignmentAction.js +5 -6
- package/hooks/useTextAlignmentAction.js.map +1 -1
- package/hooks/useTypographyAction.js +5 -6
- package/hooks/useTypographyAction.js.map +1 -1
- package/images/icons/chat-square-quote.js +19 -0
- package/images/icons/chat-square-quote.js.map +1 -0
- package/images/icons/chevron-down.js +18 -0
- package/images/icons/chevron-down.js.map +1 -0
- package/images/icons/code.js +17 -0
- package/images/icons/code.js.map +1 -0
- package/images/icons/font-color.js +17 -0
- package/images/icons/font-color.js.map +1 -0
- package/images/icons/indent.js +18 -0
- package/images/icons/indent.js.map +1 -0
- package/images/icons/insert-image.js +20 -0
- package/images/icons/insert-image.js.map +1 -0
- package/images/icons/justify.js +19 -0
- package/images/icons/justify.js.map +1 -0
- package/images/icons/link.js +19 -0
- package/images/icons/link.js.map +1 -0
- package/images/icons/list-ol.js +20 -0
- package/images/icons/list-ol.js.map +1 -0
- package/images/icons/list-ul.js +18 -0
- package/images/icons/list-ul.js.map +1 -0
- package/images/icons/outdent.js +18 -0
- package/images/icons/outdent.js.map +1 -0
- package/images/icons/pencil-fill.js +17 -0
- package/images/icons/pencil-fill.js.map +1 -0
- package/images/icons/text-center.js +18 -0
- package/images/icons/text-center.js.map +1 -0
- package/images/icons/text-left.js +18 -0
- package/images/icons/text-left.js.map +1 -0
- package/images/icons/text-paragraph.js +18 -0
- package/images/icons/text-paragraph.js.map +1 -0
- package/images/icons/text-right.js +18 -0
- package/images/icons/text-right.js.map +1 -0
- package/images/icons/type-bold.js +17 -0
- package/images/icons/type-bold.js.map +1 -0
- package/images/icons/type-h1.js +17 -0
- package/images/icons/type-h1.js.map +1 -0
- package/images/icons/type-h2.js +17 -0
- package/images/icons/type-h2.js.map +1 -0
- package/images/icons/type-h3.js +17 -0
- package/images/icons/type-h3.js.map +1 -0
- package/images/icons/type-h4.js +17 -0
- package/images/icons/type-h4.js.map +1 -0
- package/images/icons/type-h5.js +17 -0
- package/images/icons/type-h5.js.map +1 -0
- package/images/icons/type-h6.js +17 -0
- package/images/icons/type-h6.js.map +1 -0
- package/images/icons/type-italic.js +17 -0
- package/images/icons/type-italic.js.map +1 -0
- package/images/icons/type-strikethrough.js +17 -0
- package/images/icons/type-strikethrough.js.map +1 -0
- package/images/icons/type-underline.js +17 -0
- package/images/icons/type-underline.js.map +1 -0
- package/images/icons/unlink_icon.js +27 -0
- package/images/icons/unlink_icon.js.map +1 -0
- package/index.js +5 -18
- package/package.json +7 -7
- package/plugins/BlurEventPlugin/BlurEventPlugin.js +11 -14
- package/plugins/BlurEventPlugin/BlurEventPlugin.js.map +1 -1
- package/plugins/CodeHighlightPlugin/CodeHighlightPlugin.js +7 -8
- package/plugins/CodeHighlightPlugin/CodeHighlightPlugin.js.map +1 -1
- package/plugins/CodeHighlightPlugin/index.js +0 -2
- package/plugins/FloatingLinkEditorPlugin/FloatingLinkEditor.js +16 -24
- package/plugins/FloatingLinkEditorPlugin/FloatingLinkEditor.js.map +1 -1
- package/plugins/FloatingLinkEditorPlugin/FloatingLinkEditorController.js +37 -51
- package/plugins/FloatingLinkEditorPlugin/FloatingLinkEditorController.js.map +1 -1
- package/plugins/FloatingLinkEditorPlugin/FloatingLinkEditorPlugin.js +6 -5
- package/plugins/FloatingLinkEditorPlugin/FloatingLinkEditorPlugin.js.map +1 -1
- package/plugins/FloatingLinkEditorPlugin/index.js +0 -2
- package/plugins/FloatingLinkEditorPlugin/isChildOfLinkEditor.js +6 -9
- package/plugins/FloatingLinkEditorPlugin/isChildOfLinkEditor.js.map +1 -1
- package/plugins/FloatingLinkEditorPlugin/types.js +0 -3
- package/plugins/FloatingLinkEditorPlugin/useFloatingLinkEditor.js +101 -108
- package/plugins/FloatingLinkEditorPlugin/useFloatingLinkEditor.js.map +1 -1
- package/plugins/FontColorPlugin/FontColorPlugin.js +14 -19
- package/plugins/FontColorPlugin/FontColorPlugin.js.map +1 -1
- package/plugins/FontColorPlugin/applyColorToNode.js +5 -4
- package/plugins/FontColorPlugin/applyColorToNode.js.map +1 -1
- package/plugins/FontColorPlugin/applyColorToSelection.js +42 -60
- package/plugins/FontColorPlugin/applyColorToSelection.js.map +1 -1
- package/plugins/ImagesPlugin/ImagesPlugin.js +79 -121
- package/plugins/ImagesPlugin/ImagesPlugin.js.map +1 -1
- package/plugins/LinkPlugin/LinkPlugin.js +46 -52
- package/plugins/LinkPlugin/LinkPlugin.js.map +1 -1
- package/plugins/ListPLugin/ListPlugin.js +44 -52
- package/plugins/ListPLugin/ListPlugin.js.map +1 -1
- package/plugins/QuoteNodePlugin/QuoteNodePlugin.js +18 -19
- package/plugins/QuoteNodePlugin/QuoteNodePlugin.js.map +1 -1
- package/plugins/StateHandlingPlugin.js +55 -64
- package/plugins/StateHandlingPlugin.js.map +1 -1
- package/plugins/TypographyPlugin/TypographyPlugin.js +13 -20
- package/plugins/TypographyPlugin/TypographyPlugin.js.map +1 -1
- package/static/svg/chat-square-quote.123cfa24.svg +1 -0
- package/static/svg/chevron-down.d9636921.svg +1 -0
- package/static/svg/code.912b1f4d.svg +1 -0
- package/static/svg/font-color.4f0c0de5.svg +1 -0
- package/static/svg/indent.4d78e483.svg +3 -0
- package/static/svg/insert-image.354465f1.svg +4 -0
- package/static/svg/justify.dab42aec.svg +3 -0
- package/static/svg/link.b774de25.svg +1 -0
- package/static/svg/list-ol.d64946f3.svg +1 -0
- package/static/svg/list-ul.1d54da3f.svg +1 -0
- package/static/svg/outdent.5c13ff16.svg +3 -0
- package/static/svg/pencil-fill.94cb216b.svg +1 -0
- package/static/svg/text-center.a411e780.svg +1 -0
- package/static/svg/text-left.54f41f4e.svg +1 -0
- package/static/svg/text-paragraph.61674422.svg +1 -0
- package/static/svg/text-right.9288b7a2.svg +1 -0
- package/static/svg/type-bold.7e3e270b.svg +1 -0
- package/static/svg/type-h1.f292ffe1.svg +1 -0
- package/static/svg/type-h2.a9d1aa48.svg +1 -0
- package/static/svg/type-h3.4a29ff88.svg +1 -0
- package/static/svg/type-h4.7f48750c.svg +1 -0
- package/static/svg/type-h5.14b4ac56.svg +1 -0
- package/static/svg/type-h6.4e9dfe2d.svg +1 -0
- package/static/svg/type-italic.d8e45748.svg +1 -0
- package/static/svg/type-strikethrough.2694a816.svg +1 -0
- package/static/svg/type-underline.104a0ed5.svg +1 -0
- package/static/svg/unlink_icon.074ceed3.svg +1 -0
- package/types.js +0 -8
- package/ui/ContentEditable.js +6 -14
- package/ui/ContentEditable.js.map +1 -1
- package/ui/Divider.js +6 -5
- package/ui/Divider.js.map +1 -1
- package/ui/DropDown.js +146 -176
- package/ui/DropDown.js.map +1 -1
- package/ui/ImageResizer.js +173 -204
- package/ui/ImageResizer.js.map +1 -1
- package/ui/LinkPreview.js +61 -84
- package/ui/LinkPreview.js.map +1 -1
- package/ui/Placeholder.js +9 -20
- package/ui/Placeholder.js.map +1 -1
- package/ui/TextInput.js +17 -30
- package/ui/TextInput.js.map +1 -1
- package/ui/ToolbarActionDialog.js +64 -73
- package/ui/ToolbarActionDialog.js.map +1 -1
- package/utils/canUseDOM.js +2 -1
- package/utils/canUseDOM.js.map +1 -1
- package/utils/files.js +9 -8
- package/utils/files.js.map +1 -1
- package/utils/getDOMRangeRect.js +10 -20
- package/utils/getDOMRangeRect.js.map +1 -1
- package/utils/getSelectedNode.js +9 -20
- package/utils/getSelectedNode.js.map +1 -1
- package/utils/getTransparentImage.js +2 -3
- package/utils/getTransparentImage.js.map +1 -1
- package/utils/insertImage.js +9 -11
- package/utils/insertImage.js.map +1 -1
- package/utils/isAnchorLink.js +2 -3
- package/utils/isAnchorLink.js.map +1 -1
- package/utils/isChildOfFloatingToolbar.js +6 -9
- package/utils/isChildOfFloatingToolbar.js.map +1 -1
- package/utils/isHTMLElement.js +3 -9
- package/utils/isHTMLElement.js.map +1 -1
- package/utils/isValidJSON.js +9 -10
- package/utils/isValidJSON.js.map +1 -1
- package/utils/isValidLexicalData.js +17 -20
- package/utils/isValidLexicalData.js.map +1 -1
- package/utils/point.js +32 -45
- package/utils/point.js.map +1 -1
- package/utils/rect.js +92 -125
- package/utils/rect.js.map +1 -1
- package/utils/sanitizeUrl.js +8 -21
- package/utils/sanitizeUrl.js.map +1 -1
- package/utils/setFloatingElemPosition.js +23 -27
- package/utils/setFloatingElemPosition.js.map +1 -1
- package/commands/index.js.map +0 -1
- package/exports/admin/lexical.js.map +0 -1
- package/hooks/index.js.map +0 -1
- package/index.js.map +0 -1
- package/plugins/CodeHighlightPlugin/index.js.map +0 -1
- package/plugins/FloatingLinkEditorPlugin/index.js.map +0 -1
- package/plugins/FloatingLinkEditorPlugin/types.js.map +0 -1
- package/types.js.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import __rslib_svgr_url__0__ from "../../static/svg/text-left.54f41f4e.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const SvgTextLeft = (props)=>/*#__PURE__*/ __rspack_external_react.createElement("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16,
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
className: "text-left_svg__bi text-left_svg__bi-text-left",
|
|
9
|
+
...props
|
|
10
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
11
|
+
fillRule: "evenodd",
|
|
12
|
+
d: "M2 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5"
|
|
13
|
+
}));
|
|
14
|
+
const text_left = __rslib_svgr_url__0__;
|
|
15
|
+
export default text_left;
|
|
16
|
+
export { SvgTextLeft as ReactComponent };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=text-left.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images/icons/text-left.js","sources":["../../../src/images/icons/text-left.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgTextLeft = props => <svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"currentColor\" className=\"text-left_svg__bi text-left_svg__bi-text-left\" {...props}><path fillRule=\"evenodd\" d=\"M2 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5\" /></svg>;\nexport { SvgTextLeft as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBLIC_PATH__static/svg/text-left.54f41f4e.svg\";"],"names":["SvgTextLeft","props"],"mappings":";;AACA,MAAMA,cAAcC,CAAAA,QAAAA,WAAAA,GAAS,sCAAC;QAAI,OAAM;QAA6B,OAAO;QAAI,QAAQ;QAAI,MAAK;QAAe,WAAU;QAAiD,GAAGA,KAAK;qBAAE,sCAAC;QAAK,UAAS;QAAU,GAAE;;AAEhN"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import __rslib_svgr_url__0__ from "../../static/svg/text-paragraph.61674422.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const SvgTextParagraph = (props)=>/*#__PURE__*/ __rspack_external_react.createElement("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16,
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
className: "text-paragraph_svg__bi text-paragraph_svg__bi-text-paragraph",
|
|
9
|
+
...props
|
|
10
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
11
|
+
fillRule: "evenodd",
|
|
12
|
+
d: "M2 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m4-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5"
|
|
13
|
+
}));
|
|
14
|
+
const text_paragraph = __rslib_svgr_url__0__;
|
|
15
|
+
export default text_paragraph;
|
|
16
|
+
export { SvgTextParagraph as ReactComponent };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=text-paragraph.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images/icons/text-paragraph.js","sources":["../../../src/images/icons/text-paragraph.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgTextParagraph = props => <svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"currentColor\" className=\"text-paragraph_svg__bi text-paragraph_svg__bi-text-paragraph\" {...props}><path fillRule=\"evenodd\" d=\"M2 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m4-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5\" /></svg>;\nexport { SvgTextParagraph as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBLIC_PATH__static/svg/text-paragraph.61674422.svg\";"],"names":["SvgTextParagraph","props"],"mappings":";;AACA,MAAMA,mBAAmBC,CAAAA,QAAAA,WAAAA,GAAS,sCAAC;QAAI,OAAM;QAA6B,OAAO;QAAI,QAAQ;QAAI,MAAK;QAAe,WAAU;QAAgE,GAAGA,KAAK;qBAAE,sCAAC;QAAK,UAAS;QAAU,GAAE;;AAEpO"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import __rslib_svgr_url__0__ from "../../static/svg/text-right.9288b7a2.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const SvgTextRight = (props)=>/*#__PURE__*/ __rspack_external_react.createElement("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16,
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
className: "text-right_svg__bi text-right_svg__bi-text-right",
|
|
9
|
+
...props
|
|
10
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
11
|
+
fillRule: "evenodd",
|
|
12
|
+
d: "M6 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m-4-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m4-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m-4-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5"
|
|
13
|
+
}));
|
|
14
|
+
const text_right = __rslib_svgr_url__0__;
|
|
15
|
+
export default text_right;
|
|
16
|
+
export { SvgTextRight as ReactComponent };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=text-right.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images/icons/text-right.js","sources":["../../../src/images/icons/text-right.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgTextRight = props => <svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"currentColor\" className=\"text-right_svg__bi text-right_svg__bi-text-right\" {...props}><path fillRule=\"evenodd\" d=\"M6 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m-4-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m4-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m-4-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5\" /></svg>;\nexport { SvgTextRight as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBLIC_PATH__static/svg/text-right.9288b7a2.svg\";"],"names":["SvgTextRight","props"],"mappings":";;AACA,MAAMA,eAAeC,CAAAA,QAAAA,WAAAA,GAAS,sCAAC;QAAI,OAAM;QAA6B,OAAO;QAAI,QAAQ;QAAI,MAAK;QAAe,WAAU;QAAoD,GAAGA,KAAK;qBAAE,sCAAC;QAAK,UAAS;QAAU,GAAE;;AAEpN"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import __rslib_svgr_url__0__ from "../../static/svg/type-bold.7e3e270b.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const SvgTypeBold = (props)=>/*#__PURE__*/ __rspack_external_react.createElement("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16,
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
className: "type-bold_svg__bi type-bold_svg__bi-type-bold",
|
|
9
|
+
...props
|
|
10
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
11
|
+
d: "M8.21 13c2.106 0 3.412-1.087 3.412-2.823 0-1.306-.984-2.283-2.324-2.386v-.055a2.176 2.176 0 0 0 1.852-2.14c0-1.51-1.162-2.46-3.014-2.46H3.843V13zM5.908 4.674h1.696c.963 0 1.517.451 1.517 1.244 0 .834-.629 1.32-1.73 1.32H5.908V4.673zm0 6.788V8.598h1.73c1.217 0 1.88.492 1.88 1.415 0 .943-.643 1.449-1.832 1.449H5.907z"
|
|
12
|
+
}));
|
|
13
|
+
const type_bold = __rslib_svgr_url__0__;
|
|
14
|
+
export default type_bold;
|
|
15
|
+
export { SvgTypeBold as ReactComponent };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=type-bold.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images/icons/type-bold.js","sources":["../../../src/images/icons/type-bold.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgTypeBold = props => <svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"currentColor\" className=\"type-bold_svg__bi type-bold_svg__bi-type-bold\" {...props}><path d=\"M8.21 13c2.106 0 3.412-1.087 3.412-2.823 0-1.306-.984-2.283-2.324-2.386v-.055a2.176 2.176 0 0 0 1.852-2.14c0-1.51-1.162-2.46-3.014-2.46H3.843V13zM5.908 4.674h1.696c.963 0 1.517.451 1.517 1.244 0 .834-.629 1.32-1.73 1.32H5.908V4.673zm0 6.788V8.598h1.73c1.217 0 1.88.492 1.88 1.415 0 .943-.643 1.449-1.832 1.449H5.907z\" /></svg>;\nexport { SvgTypeBold as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBLIC_PATH__static/svg/type-bold.7e3e270b.svg\";"],"names":["SvgTypeBold","props"],"mappings":";;AACA,MAAMA,cAAcC,CAAAA,QAAAA,WAAAA,GAAS,sCAAC;QAAI,OAAM;QAA6B,OAAO;QAAI,QAAQ;QAAI,MAAK;QAAe,WAAU;QAAiD,GAAGA,KAAK;qBAAE,sCAAC;QAAK,GAAE;;AAE7L"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import __rslib_svgr_url__0__ from "../../static/svg/type-h1.f292ffe1.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const SvgTypeH1 = (props)=>/*#__PURE__*/ __rspack_external_react.createElement("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16,
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
className: "type-h1_svg__bi type-h1_svg__bi-type-h1",
|
|
9
|
+
...props
|
|
10
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
11
|
+
d: "M8.637 13V3.669H7.379V7.62H2.758V3.67H1.5V13h1.258V8.728h4.62V13zm5.329 0V3.669h-1.244L10.5 5.316v1.265l2.16-1.565h.062V13z"
|
|
12
|
+
}));
|
|
13
|
+
const type_h1 = __rslib_svgr_url__0__;
|
|
14
|
+
export default type_h1;
|
|
15
|
+
export { SvgTypeH1 as ReactComponent };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=type-h1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images/icons/type-h1.js","sources":["../../../src/images/icons/type-h1.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgTypeH1 = props => <svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"currentColor\" className=\"type-h1_svg__bi type-h1_svg__bi-type-h1\" {...props}><path d=\"M8.637 13V3.669H7.379V7.62H2.758V3.67H1.5V13h1.258V8.728h4.62V13zm5.329 0V3.669h-1.244L10.5 5.316v1.265l2.16-1.565h.062V13z\" /></svg>;\nexport { SvgTypeH1 as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBLIC_PATH__static/svg/type-h1.f292ffe1.svg\";"],"names":["SvgTypeH1","props"],"mappings":";;AACA,MAAMA,YAAYC,CAAAA,QAAAA,WAAAA,GAAS,sCAAC;QAAI,OAAM;QAA6B,OAAO;QAAI,QAAQ;QAAI,MAAK;QAAe,WAAU;QAA2C,GAAGA,KAAK;qBAAE,sCAAC;QAAK,GAAE;;AAErL"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import __rslib_svgr_url__0__ from "../../static/svg/type-h2.a9d1aa48.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const SvgTypeH2 = (props)=>/*#__PURE__*/ __rspack_external_react.createElement("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16,
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
className: "type-h2_svg__bi type-h2_svg__bi-type-h2",
|
|
9
|
+
...props
|
|
10
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
11
|
+
d: "M7.638 13V3.669H6.38V7.62H1.759V3.67H.5V13h1.258V8.728h4.62V13zm3.022-6.733v-.048c0-.889.63-1.668 1.716-1.668.957 0 1.675.608 1.675 1.572 0 .855-.554 1.504-1.067 2.085l-3.513 3.999V13H15.5v-1.094h-4.245v-.075l2.481-2.844c.875-.998 1.586-1.784 1.586-2.953 0-1.463-1.155-2.556-2.919-2.556-1.941 0-2.966 1.326-2.966 2.74v.049z"
|
|
12
|
+
}));
|
|
13
|
+
const type_h2 = __rslib_svgr_url__0__;
|
|
14
|
+
export default type_h2;
|
|
15
|
+
export { SvgTypeH2 as ReactComponent };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=type-h2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images/icons/type-h2.js","sources":["../../../src/images/icons/type-h2.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgTypeH2 = props => <svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"currentColor\" className=\"type-h2_svg__bi type-h2_svg__bi-type-h2\" {...props}><path d=\"M7.638 13V3.669H6.38V7.62H1.759V3.67H.5V13h1.258V8.728h4.62V13zm3.022-6.733v-.048c0-.889.63-1.668 1.716-1.668.957 0 1.675.608 1.675 1.572 0 .855-.554 1.504-1.067 2.085l-3.513 3.999V13H15.5v-1.094h-4.245v-.075l2.481-2.844c.875-.998 1.586-1.784 1.586-2.953 0-1.463-1.155-2.556-2.919-2.556-1.941 0-2.966 1.326-2.966 2.74v.049z\" /></svg>;\nexport { SvgTypeH2 as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBLIC_PATH__static/svg/type-h2.a9d1aa48.svg\";"],"names":["SvgTypeH2","props"],"mappings":";;AACA,MAAMA,YAAYC,CAAAA,QAAAA,WAAAA,GAAS,sCAAC;QAAI,OAAM;QAA6B,OAAO;QAAI,QAAQ;QAAI,MAAK;QAAe,WAAU;QAA2C,GAAGA,KAAK;qBAAE,sCAAC;QAAK,GAAE;;AAErL"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import __rslib_svgr_url__0__ from "../../static/svg/type-h3.4a29ff88.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const SvgTypeH3 = (props)=>/*#__PURE__*/ __rspack_external_react.createElement("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16,
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
className: "type-h3_svg__bi type-h3_svg__bi-type-h3",
|
|
9
|
+
...props
|
|
10
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
11
|
+
d: "M7.637 13V3.669H6.379V7.62H1.758V3.67H.5V13h1.258V8.728h4.62V13zm3.625-4.272h1.018c1.142 0 1.935.67 1.949 1.674.013 1.005-.78 1.737-2.01 1.73-1.08-.007-1.853-.588-1.935-1.32H9.108c.069 1.327 1.224 2.386 3.083 2.386 1.935 0 3.343-1.155 3.309-2.789-.027-1.51-1.251-2.16-2.037-2.249v-.068c.704-.123 1.764-.91 1.723-2.229-.035-1.353-1.176-2.4-2.954-2.385-1.873.006-2.857 1.162-2.898 2.358h1.196c.062-.69.711-1.299 1.696-1.299.998 0 1.695.622 1.695 1.525.007.922-.718 1.592-1.695 1.592h-.964z"
|
|
12
|
+
}));
|
|
13
|
+
const type_h3 = __rslib_svgr_url__0__;
|
|
14
|
+
export default type_h3;
|
|
15
|
+
export { SvgTypeH3 as ReactComponent };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=type-h3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images/icons/type-h3.js","sources":["../../../src/images/icons/type-h3.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgTypeH3 = props => <svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"currentColor\" className=\"type-h3_svg__bi type-h3_svg__bi-type-h3\" {...props}><path d=\"M7.637 13V3.669H6.379V7.62H1.758V3.67H.5V13h1.258V8.728h4.62V13zm3.625-4.272h1.018c1.142 0 1.935.67 1.949 1.674.013 1.005-.78 1.737-2.01 1.73-1.08-.007-1.853-.588-1.935-1.32H9.108c.069 1.327 1.224 2.386 3.083 2.386 1.935 0 3.343-1.155 3.309-2.789-.027-1.51-1.251-2.16-2.037-2.249v-.068c.704-.123 1.764-.91 1.723-2.229-.035-1.353-1.176-2.4-2.954-2.385-1.873.006-2.857 1.162-2.898 2.358h1.196c.062-.69.711-1.299 1.696-1.299.998 0 1.695.622 1.695 1.525.007.922-.718 1.592-1.695 1.592h-.964z\" /></svg>;\nexport { SvgTypeH3 as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBLIC_PATH__static/svg/type-h3.4a29ff88.svg\";"],"names":["SvgTypeH3","props"],"mappings":";;AACA,MAAMA,YAAYC,CAAAA,QAAAA,WAAAA,GAAS,sCAAC;QAAI,OAAM;QAA6B,OAAO;QAAI,QAAQ;QAAI,MAAK;QAAe,WAAU;QAA2C,GAAGA,KAAK;qBAAE,sCAAC;QAAK,GAAE;;AAErL"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import __rslib_svgr_url__0__ from "../../static/svg/type-h4.7f48750c.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const SvgTypeH4 = (props)=>/*#__PURE__*/ __rspack_external_react.createElement("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16,
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
className: "type-h4_svg__bi type-h4_svg__bi-type-h1",
|
|
9
|
+
...props
|
|
10
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
11
|
+
d: "M7.637 13V3.669H6.379V7.62H1.758V3.67H.5V13h1.258V8.728h4.62V13Zm5.337.2v-2.328H9.108V9.828l3.441-6.35h1.632v6.141H15.5v1.253h-1.319V13.2Zm-2.615-3.581h2.615V6.7L13 4.689l-.872 1.7z"
|
|
12
|
+
}));
|
|
13
|
+
const type_h4 = __rslib_svgr_url__0__;
|
|
14
|
+
export default type_h4;
|
|
15
|
+
export { SvgTypeH4 as ReactComponent };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=type-h4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images/icons/type-h4.js","sources":["../../../src/images/icons/type-h4.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgTypeH4 = props => <svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"currentColor\" className=\"type-h4_svg__bi type-h4_svg__bi-type-h1\" {...props}><path d=\"M7.637 13V3.669H6.379V7.62H1.758V3.67H.5V13h1.258V8.728h4.62V13Zm5.337.2v-2.328H9.108V9.828l3.441-6.35h1.632v6.141H15.5v1.253h-1.319V13.2Zm-2.615-3.581h2.615V6.7L13 4.689l-.872 1.7z\" /></svg>;\nexport { SvgTypeH4 as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBLIC_PATH__static/svg/type-h4.7f48750c.svg\";"],"names":["SvgTypeH4","props"],"mappings":";;AACA,MAAMA,YAAYC,CAAAA,QAAAA,WAAAA,GAAS,sCAAC;QAAI,OAAM;QAA6B,OAAO;QAAI,QAAQ;QAAI,MAAK;QAAe,WAAU;QAA2C,GAAGA,KAAK;qBAAE,sCAAC;QAAK,GAAE;;AAErL"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import __rslib_svgr_url__0__ from "../../static/svg/type-h5.14b4ac56.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const SvgTypeH5 = (props)=>/*#__PURE__*/ __rspack_external_react.createElement("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16,
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
className: "type-h5_svg__bi type-h5_svg__bi-type-h1",
|
|
9
|
+
...props
|
|
10
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
11
|
+
d: "M7.637 13V3.669H6.379V7.62H1.758V3.67H.5V13h1.258V8.728h4.62V13Zm2.755-5.791a3.76 3.76 0 0 1 2.113-.517 2.973 2.973 0 0 1 2.995 3.1 3.45 3.45 0 0 1-.9 2.442 3.11 3.11 0 0 1-2.393.968 3.33 3.33 0 0 1-2.094-.671 2.76 2.76 0 0 1-1.007-2h1.284a1.39 1.39 0 0 0 .511 1.1 2.4 2.4 0 0 0 1.4.421 1.82 1.82 0 0 0 1.479-.638 2.04 2.04 0 0 0 .437-1.514 2.17 2.17 0 0 0-.567-1.584 1.96 1.96 0 0 0-1.468-.58 2.36 2.36 0 0 0-1.79.789H9.108V3.478h5.931v1.134h-4.647Z"
|
|
12
|
+
}));
|
|
13
|
+
const type_h5 = __rslib_svgr_url__0__;
|
|
14
|
+
export default type_h5;
|
|
15
|
+
export { SvgTypeH5 as ReactComponent };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=type-h5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images/icons/type-h5.js","sources":["../../../src/images/icons/type-h5.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgTypeH5 = props => <svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"currentColor\" className=\"type-h5_svg__bi type-h5_svg__bi-type-h1\" {...props}><path d=\"M7.637 13V3.669H6.379V7.62H1.758V3.67H.5V13h1.258V8.728h4.62V13Zm2.755-5.791a3.76 3.76 0 0 1 2.113-.517 2.973 2.973 0 0 1 2.995 3.1 3.45 3.45 0 0 1-.9 2.442 3.11 3.11 0 0 1-2.393.968 3.33 3.33 0 0 1-2.094-.671 2.76 2.76 0 0 1-1.007-2h1.284a1.39 1.39 0 0 0 .511 1.1 2.4 2.4 0 0 0 1.4.421 1.82 1.82 0 0 0 1.479-.638 2.04 2.04 0 0 0 .437-1.514 2.17 2.17 0 0 0-.567-1.584 1.96 1.96 0 0 0-1.468-.58 2.36 2.36 0 0 0-1.79.789H9.108V3.478h5.931v1.134h-4.647Z\" /></svg>;\nexport { SvgTypeH5 as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBLIC_PATH__static/svg/type-h5.14b4ac56.svg\";"],"names":["SvgTypeH5","props"],"mappings":";;AACA,MAAMA,YAAYC,CAAAA,QAAAA,WAAAA,GAAS,sCAAC;QAAI,OAAM;QAA6B,OAAO;QAAI,QAAQ;QAAI,MAAK;QAAe,WAAU;QAA2C,GAAGA,KAAK;qBAAE,sCAAC;QAAK,GAAE;;AAErL"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import __rslib_svgr_url__0__ from "../../static/svg/type-h6.4e9dfe2d.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const SvgTypeH6 = (props)=>/*#__PURE__*/ __rspack_external_react.createElement("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16,
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
className: "type-h6_svg__bi type-h6_svg__bi-type-h1",
|
|
9
|
+
...props
|
|
10
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
11
|
+
d: "M7.637 13V3.669H6.379V7.62H1.758V3.67H.5V13h1.258V8.728h4.62V13Zm5.039-6.13a2.8 2.8 0 0 1 1.419.364 2.7 2.7 0 0 1 1.022 1.05 3.3 3.3 0 0 1 .383 1.642 3.6 3.6 0 0 1-.39 1.7 2.9 2.9 0 0 1-1.1 1.158 3.17 3.17 0 0 1-1.635.416 2.8 2.8 0 0 1-1.734-.545A3.5 3.5 0 0 1 9.51 11.1a6.5 6.5 0 0 1-.4-2.411A7.7 7.7 0 0 1 9.542 6a4.3 4.3 0 0 1 1.233-1.851 2.83 2.83 0 0 1 1.889-.673A2.7 2.7 0 0 1 13.8 3.7a2.5 2.5 0 0 1 .812.586 2.9 2.9 0 0 1 .514.8 2.8 2.8 0 0 1 .223.861H14a1.5 1.5 0 0 0-.453-.923 1.35 1.35 0 0 0-.935-.329 1.5 1.5 0 0 0-1.072.425 2.84 2.84 0 0 0-.71 1.18 6.8 6.8 0 0 0-.323 1.771 2.64 2.64 0 0 1 .918-.889 2.5 2.5 0 0 1 1.251-.312m-.285 5.117a1.6 1.6 0 0 0 .91-.256 1.75 1.75 0 0 0 .614-.713 2.3 2.3 0 0 0 .223-1.037 2.2 2.2 0 0 0-.217-1.01 1.6 1.6 0 0 0-.6-.666 1.67 1.67 0 0 0-.892-.236 1.83 1.83 0 0 0-1.164.377 2.4 2.4 0 0 0-.743 1.009 3.75 3.75 0 0 0 .6 1.845 1.5 1.5 0 0 0 1.269.687"
|
|
12
|
+
}));
|
|
13
|
+
const type_h6 = __rslib_svgr_url__0__;
|
|
14
|
+
export default type_h6;
|
|
15
|
+
export { SvgTypeH6 as ReactComponent };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=type-h6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images/icons/type-h6.js","sources":["../../../src/images/icons/type-h6.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgTypeH6 = props => <svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"currentColor\" className=\"type-h6_svg__bi type-h6_svg__bi-type-h1\" {...props}><path d=\"M7.637 13V3.669H6.379V7.62H1.758V3.67H.5V13h1.258V8.728h4.62V13Zm5.039-6.13a2.8 2.8 0 0 1 1.419.364 2.7 2.7 0 0 1 1.022 1.05 3.3 3.3 0 0 1 .383 1.642 3.6 3.6 0 0 1-.39 1.7 2.9 2.9 0 0 1-1.1 1.158 3.17 3.17 0 0 1-1.635.416 2.8 2.8 0 0 1-1.734-.545A3.5 3.5 0 0 1 9.51 11.1a6.5 6.5 0 0 1-.4-2.411A7.7 7.7 0 0 1 9.542 6a4.3 4.3 0 0 1 1.233-1.851 2.83 2.83 0 0 1 1.889-.673A2.7 2.7 0 0 1 13.8 3.7a2.5 2.5 0 0 1 .812.586 2.9 2.9 0 0 1 .514.8 2.8 2.8 0 0 1 .223.861H14a1.5 1.5 0 0 0-.453-.923 1.35 1.35 0 0 0-.935-.329 1.5 1.5 0 0 0-1.072.425 2.84 2.84 0 0 0-.71 1.18 6.8 6.8 0 0 0-.323 1.771 2.64 2.64 0 0 1 .918-.889 2.5 2.5 0 0 1 1.251-.312m-.285 5.117a1.6 1.6 0 0 0 .91-.256 1.75 1.75 0 0 0 .614-.713 2.3 2.3 0 0 0 .223-1.037 2.2 2.2 0 0 0-.217-1.01 1.6 1.6 0 0 0-.6-.666 1.67 1.67 0 0 0-.892-.236 1.83 1.83 0 0 0-1.164.377 2.4 2.4 0 0 0-.743 1.009 3.75 3.75 0 0 0 .6 1.845 1.5 1.5 0 0 0 1.269.687\" /></svg>;\nexport { SvgTypeH6 as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBLIC_PATH__static/svg/type-h6.4e9dfe2d.svg\";"],"names":["SvgTypeH6","props"],"mappings":";;AACA,MAAMA,YAAYC,CAAAA,QAAAA,WAAAA,GAAS,sCAAC;QAAI,OAAM;QAA6B,OAAO;QAAI,QAAQ;QAAI,MAAK;QAAe,WAAU;QAA2C,GAAGA,KAAK;qBAAE,sCAAC;QAAK,GAAE;;AAErL"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import __rslib_svgr_url__0__ from "../../static/svg/type-italic.d8e45748.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const SvgTypeItalic = (props)=>/*#__PURE__*/ __rspack_external_react.createElement("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16,
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
className: "type-italic_svg__bi type-italic_svg__bi-type-italic",
|
|
9
|
+
...props
|
|
10
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
11
|
+
d: "M7.991 11.674 9.53 4.455c.123-.595.246-.71 1.347-.807l.11-.52H7.211l-.11.52c1.06.096 1.128.212 1.005.807L6.57 11.674c-.123.595-.246.71-1.346.806l-.11.52h3.774l.11-.52c-1.06-.095-1.129-.211-1.006-.806z"
|
|
12
|
+
}));
|
|
13
|
+
const type_italic = __rslib_svgr_url__0__;
|
|
14
|
+
export default type_italic;
|
|
15
|
+
export { SvgTypeItalic as ReactComponent };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=type-italic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images/icons/type-italic.js","sources":["../../../src/images/icons/type-italic.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgTypeItalic = props => <svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"currentColor\" className=\"type-italic_svg__bi type-italic_svg__bi-type-italic\" {...props}><path d=\"M7.991 11.674 9.53 4.455c.123-.595.246-.71 1.347-.807l.11-.52H7.211l-.11.52c1.06.096 1.128.212 1.005.807L6.57 11.674c-.123.595-.246.71-1.346.806l-.11.52h3.774l.11-.52c-1.06-.095-1.129-.211-1.006-.806z\" /></svg>;\nexport { SvgTypeItalic as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBLIC_PATH__static/svg/type-italic.d8e45748.svg\";"],"names":["SvgTypeItalic","props"],"mappings":";;AACA,MAAMA,gBAAgBC,CAAAA,QAAAA,WAAAA,GAAS,sCAAC;QAAI,OAAM;QAA6B,OAAO;QAAI,QAAQ;QAAI,MAAK;QAAe,WAAU;QAAuD,GAAGA,KAAK;qBAAE,sCAAC;QAAK,GAAE;;AAErM"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import __rslib_svgr_url__0__ from "../../static/svg/type-strikethrough.2694a816.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const SvgTypeStrikethrough = (props)=>/*#__PURE__*/ __rspack_external_react.createElement("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16,
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
className: "type-strikethrough_svg__bi type-strikethrough_svg__bi-type-strikethrough",
|
|
9
|
+
...props
|
|
10
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
11
|
+
d: "M6.333 5.686c0 .31.083.581.27.814H5.166a2.8 2.8 0 0 1-.099-.76c0-1.627 1.436-2.768 3.48-2.768 1.969 0 3.39 1.175 3.445 2.85h-1.23c-.11-1.08-.964-1.743-2.25-1.743-1.23 0-2.18.602-2.18 1.607zm2.194 7.478c-2.153 0-3.589-1.107-3.705-2.81h1.23c.144 1.06 1.129 1.703 2.544 1.703 1.34 0 2.31-.705 2.31-1.675 0-.827-.547-1.374-1.914-1.675L8.046 8.5H1v-1h14v1h-3.504c.468.437.675.994.675 1.697 0 1.826-1.436 2.967-3.644 2.967"
|
|
12
|
+
}));
|
|
13
|
+
const type_strikethrough = __rslib_svgr_url__0__;
|
|
14
|
+
export default type_strikethrough;
|
|
15
|
+
export { SvgTypeStrikethrough as ReactComponent };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=type-strikethrough.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images/icons/type-strikethrough.js","sources":["../../../src/images/icons/type-strikethrough.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgTypeStrikethrough = props => <svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"currentColor\" className=\"type-strikethrough_svg__bi type-strikethrough_svg__bi-type-strikethrough\" {...props}><path d=\"M6.333 5.686c0 .31.083.581.27.814H5.166a2.8 2.8 0 0 1-.099-.76c0-1.627 1.436-2.768 3.48-2.768 1.969 0 3.39 1.175 3.445 2.85h-1.23c-.11-1.08-.964-1.743-2.25-1.743-1.23 0-2.18.602-2.18 1.607zm2.194 7.478c-2.153 0-3.589-1.107-3.705-2.81h1.23c.144 1.06 1.129 1.703 2.544 1.703 1.34 0 2.31-.705 2.31-1.675 0-.827-.547-1.374-1.914-1.675L8.046 8.5H1v-1h14v1h-3.504c.468.437.675.994.675 1.697 0 1.826-1.436 2.967-3.644 2.967\" /></svg>;\nexport { SvgTypeStrikethrough as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBLIC_PATH__static/svg/type-strikethrough.2694a816.svg\";"],"names":["SvgTypeStrikethrough","props"],"mappings":";;AACA,MAAMA,uBAAuBC,CAAAA,QAAAA,WAAAA,GAAS,sCAAC;QAAI,OAAM;QAA6B,OAAO;QAAI,QAAQ;QAAI,MAAK;QAAe,WAAU;QAA4E,GAAGA,KAAK;qBAAE,sCAAC;QAAK,GAAE;;AAEjO"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import __rslib_svgr_url__0__ from "../../static/svg/type-underline.104a0ed5.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const SvgTypeUnderline = (props)=>/*#__PURE__*/ __rspack_external_react.createElement("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16,
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
className: "type-underline_svg__bi type-underline_svg__bi-type-underline",
|
|
9
|
+
...props
|
|
10
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
11
|
+
d: "M5.313 3.136h-1.23V9.54c0 2.105 1.47 3.623 3.917 3.623s3.917-1.518 3.917-3.623V3.136h-1.23v6.323c0 1.49-.978 2.57-2.687 2.57s-2.687-1.08-2.687-2.57zM12.5 15h-9v-1h9z"
|
|
12
|
+
}));
|
|
13
|
+
const type_underline = __rslib_svgr_url__0__;
|
|
14
|
+
export default type_underline;
|
|
15
|
+
export { SvgTypeUnderline as ReactComponent };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=type-underline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images/icons/type-underline.js","sources":["../../../src/images/icons/type-underline.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgTypeUnderline = props => <svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"currentColor\" className=\"type-underline_svg__bi type-underline_svg__bi-type-underline\" {...props}><path d=\"M5.313 3.136h-1.23V9.54c0 2.105 1.47 3.623 3.917 3.623s3.917-1.518 3.917-3.623V3.136h-1.23v6.323c0 1.49-.978 2.57-2.687 2.57s-2.687-1.08-2.687-2.57zM12.5 15h-9v-1h9z\" /></svg>;\nexport { SvgTypeUnderline as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBLIC_PATH__static/svg/type-underline.104a0ed5.svg\";"],"names":["SvgTypeUnderline","props"],"mappings":";;AACA,MAAMA,mBAAmBC,CAAAA,QAAAA,WAAAA,GAAS,sCAAC;QAAI,OAAM;QAA6B,OAAO;QAAI,QAAQ;QAAI,MAAK;QAAe,WAAU;QAAgE,GAAGA,KAAK;qBAAE,sCAAC;QAAK,GAAE;;AAEjN"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import __rslib_svgr_url__0__ from "../../static/svg/unlink_icon.074ceed3.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const SvgUnlinkIcon = (props)=>/*#__PURE__*/ __rspack_external_react.createElement("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: 24,
|
|
6
|
+
height: 24,
|
|
7
|
+
fill: "none",
|
|
8
|
+
stroke: "currentColor",
|
|
9
|
+
strokeLinecap: "round",
|
|
10
|
+
strokeLinejoin: "round",
|
|
11
|
+
strokeWidth: 2,
|
|
12
|
+
className: "unlink_icon_svg__icon unlink_icon_svg__icon-tabler unlink_icon_svg__icon-tabler-unlink",
|
|
13
|
+
viewBox: "0 0 24 24",
|
|
14
|
+
...props
|
|
15
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
16
|
+
stroke: "none",
|
|
17
|
+
d: "M0 0h24v24H0z"
|
|
18
|
+
}), /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
19
|
+
d: "M10 14a3.5 3.5 0 0 0 5 0l4-4a3.5 3.5 0 0 0-5-5l-.5.5"
|
|
20
|
+
}), /*#__PURE__*/ __rspack_external_react.createElement("path", {
|
|
21
|
+
d: "M14 10a3.5 3.5 0 0 0-5 0l-4 4a3.5 3.5 0 0 0 5 5l.5-.5M16 21v-2M19 16h2M3 8h2M8 3v2"
|
|
22
|
+
}));
|
|
23
|
+
const unlink_icon = __rslib_svgr_url__0__;
|
|
24
|
+
export default unlink_icon;
|
|
25
|
+
export { SvgUnlinkIcon as ReactComponent };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=unlink_icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images/icons/unlink_icon.js","sources":["../../../src/images/icons/unlink_icon.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgUnlinkIcon = props => <svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" stroke=\"currentColor\" strokeLinecap=\"round\" strokeLinejoin=\"round\" strokeWidth={2} className=\"unlink_icon_svg__icon unlink_icon_svg__icon-tabler unlink_icon_svg__icon-tabler-unlink\" viewBox=\"0 0 24 24\" {...props}><path stroke=\"none\" d=\"M0 0h24v24H0z\" /><path d=\"M10 14a3.5 3.5 0 0 0 5 0l4-4a3.5 3.5 0 0 0-5-5l-.5.5\" /><path d=\"M14 10a3.5 3.5 0 0 0-5 0l-4 4a3.5 3.5 0 0 0 5 5l.5-.5M16 21v-2M19 16h2M3 8h2M8 3v2\" /></svg>;\nexport { SvgUnlinkIcon as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBLIC_PATH__static/svg/unlink_icon.074ceed3.svg\";"],"names":["SvgUnlinkIcon","props"],"mappings":";;AACA,MAAMA,gBAAgBC,CAAAA,QAAAA,WAAAA,GAAS,sCAAC;QAAI,OAAM;QAA6B,OAAO;QAAI,QAAQ;QAAI,MAAK;QAAO,QAAO;QAAe,eAAc;QAAQ,gBAAe;QAAQ,aAAa;QAAG,WAAU;QAAyF,SAAQ;QAAa,GAAGA,KAAK;qBAAE,sCAAC;QAAK,QAAO;QAAO,GAAE;sBAAkB,sCAAC;QAAK,GAAE;sBAAyD,sCAAC;QAAK,GAAE;;AAEhb"}
|
package/index.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export { LexicalHtmlRenderer } from "./components/LexicalHtmlRenderer.js";
|
|
3
|
-
// hooks
|
|
1
|
+
import * as __rspack_external__types_js_7eec16d2 from "./types.js";
|
|
4
2
|
export * from "./hooks/index.js";
|
|
5
|
-
|
|
3
|
+
export * from "./commands/index.js";
|
|
4
|
+
export { LexicalHtmlRenderer } from "./components/LexicalHtmlRenderer.js";
|
|
6
5
|
export { Divider } from "./ui/Divider.js";
|
|
7
|
-
export { DropDownItem } from "./ui/DropDown.js";
|
|
8
|
-
export { DropDown } from "./ui/DropDown.js";
|
|
9
|
-
// actions
|
|
6
|
+
export { DropDown, DropDownItem } from "./ui/DropDown.js";
|
|
10
7
|
export { BoldAction } from "./components/ToolbarActions/BoldAction.js";
|
|
11
8
|
export { BulletListAction } from "./components/ToolbarActions/BulletListAction.js";
|
|
12
9
|
export { CodeHighlightAction } from "./components/ToolbarActions/CodeHighlightAction.js";
|
|
@@ -19,11 +16,8 @@ export { UnderlineAction } from "./components/ToolbarActions/UnderlineAction.js"
|
|
|
19
16
|
export { TypographyAction } from "./components/ToolbarActions/TypographyAction.js";
|
|
20
17
|
export { TextAlignmentAction } from "./components/ToolbarActions/TextAlignmentAction.js";
|
|
21
18
|
export { ImageAction } from "./components/ToolbarActions/ImageAction.js";
|
|
22
|
-
// toolbars
|
|
23
19
|
export { StaticToolbar } from "./components/Toolbar/StaticToolbar.js";
|
|
24
|
-
// editor
|
|
25
20
|
export { RichTextEditor } from "./components/Editor/RichTextEditor.js";
|
|
26
|
-
// plugins
|
|
27
21
|
export { LinkPlugin } from "./plugins/LinkPlugin/LinkPlugin.js";
|
|
28
22
|
export { FloatingLinkEditorPlugin } from "./plugins/FloatingLinkEditorPlugin/FloatingLinkEditorPlugin.js";
|
|
29
23
|
export { CodeHighlightPlugin } from "./plugins/CodeHighlightPlugin/CodeHighlightPlugin.js";
|
|
@@ -34,13 +28,6 @@ export { QuotePlugin } from "./plugins/QuoteNodePlugin/QuoteNodePlugin.js";
|
|
|
34
28
|
export { ListPlugin } from "./plugins/ListPLugin/ListPlugin.js";
|
|
35
29
|
export { ImagesPlugin } from "./plugins/ImagesPlugin/ImagesPlugin.js";
|
|
36
30
|
export { StateHandlingPlugin } from "./plugins/StateHandlingPlugin.js";
|
|
37
|
-
// utils
|
|
38
31
|
export { isValidLexicalData } from "./utils/isValidLexicalData.js";
|
|
39
|
-
// Commands
|
|
40
|
-
export * from "./commands/index.js";
|
|
41
|
-
// types
|
|
42
|
-
export * as types from "./types.js";
|
|
43
|
-
// config
|
|
44
32
|
export { LexicalEditorConfig, useLexicalEditorConfig } from "./components/LexicalEditorConfig/LexicalEditorConfig.js";
|
|
45
|
-
|
|
46
|
-
//# sourceMappingURL=index.js.map
|
|
33
|
+
export { __rspack_external__types_js_7eec16d2 as types };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/lexical-editor",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0-beta.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"@lexical/selection": "0.44.0",
|
|
21
21
|
"@lexical/text": "0.44.0",
|
|
22
22
|
"@lexical/utils": "0.44.0",
|
|
23
|
-
"@webiny/lexical-nodes": "6.
|
|
24
|
-
"@webiny/lexical-theme": "6.
|
|
25
|
-
"@webiny/react-composition": "6.
|
|
26
|
-
"@webiny/react-properties": "6.
|
|
23
|
+
"@webiny/lexical-nodes": "6.4.0-beta.0",
|
|
24
|
+
"@webiny/lexical-theme": "6.4.0-beta.0",
|
|
25
|
+
"@webiny/react-composition": "6.4.0-beta.0",
|
|
26
|
+
"@webiny/react-properties": "6.4.0-beta.0",
|
|
27
27
|
"lexical": "0.44.0",
|
|
28
28
|
"lodash": "4.18.1",
|
|
29
29
|
"react": "18.3.1",
|
|
30
30
|
"react-dom": "18.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@webiny/build-tools": "6.
|
|
33
|
+
"@webiny/build-tools": "6.4.0-beta.0"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public",
|
|
37
37
|
"directory": "dist"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "a545d7529828af07d08d49c3da1bcb967483b9ce"
|
|
40
40
|
}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
2
|
import { BLUR_COMMAND, COMMAND_PRIORITY_LOW } from "lexical";
|
|
3
3
|
import { useRichTextEditor } from "../../hooks/index.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
return false;
|
|
16
|
-
}, COMMAND_PRIORITY_LOW), []);
|
|
17
|
-
return null;
|
|
4
|
+
const BlurEventPlugin = ({ onBlur })=>{
|
|
5
|
+
const { editor } = useRichTextEditor();
|
|
6
|
+
useEffect(()=>editor.registerCommand(BLUR_COMMAND, ()=>{
|
|
7
|
+
if ("function" == typeof onBlur) {
|
|
8
|
+
const editorState = editor.getEditorState();
|
|
9
|
+
onBlur(JSON.stringify(editorState.toJSON()));
|
|
10
|
+
}
|
|
11
|
+
return false;
|
|
12
|
+
}, COMMAND_PRIORITY_LOW), []);
|
|
13
|
+
return null;
|
|
18
14
|
};
|
|
15
|
+
export { BlurEventPlugin };
|
|
19
16
|
|
|
20
17
|
//# sourceMappingURL=BlurEventPlugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"plugins/BlurEventPlugin/BlurEventPlugin.js","sources":["../../../src/plugins/BlurEventPlugin/BlurEventPlugin.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport { useEffect } from \"react\";\nimport { BLUR_COMMAND, COMMAND_PRIORITY_LOW } from \"lexical\";\nimport type { LexicalValue } from \"~/types.js\";\nimport { useRichTextEditor } from \"~/hooks/index.js\";\n\ninterface BlurEventPlugin {\n onBlur?: (editorState: LexicalValue) => void;\n}\n\nexport const BlurEventPlugin: FC<BlurEventPlugin> = ({ onBlur }) => {\n const { editor } = useRichTextEditor();\n\n useEffect(\n () =>\n editor.registerCommand(\n BLUR_COMMAND,\n () => {\n if (typeof onBlur === \"function\") {\n const editorState = editor.getEditorState();\n onBlur(JSON.stringify(editorState.toJSON()));\n }\n return false;\n },\n COMMAND_PRIORITY_LOW\n ),\n []\n );\n return null;\n};\n"],"names":["BlurEventPlugin","onBlur","editor","useRichTextEditor","useEffect","BLUR_COMMAND","editorState","JSON","COMMAND_PRIORITY_LOW"],"mappings":";;;AAUO,MAAMA,kBAAuC,CAAC,EAAEC,MAAM,EAAE;IAC3D,MAAM,EAAEC,MAAM,EAAE,GAAGC;IAEnBC,UACI,IACIF,OAAO,eAAe,CAClBG,cACA;YACI,IAAI,AAAkB,cAAlB,OAAOJ,QAAuB;gBAC9B,MAAMK,cAAcJ,OAAO,cAAc;gBACzCD,OAAOM,KAAK,SAAS,CAACD,YAAY,MAAM;YAC5C;YACA,OAAO;QACX,GACAE,uBAER,EAAE;IAEN,OAAO;AACX"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
2
|
import { registerCodeHighlighting } from "@lexical/code";
|
|
3
3
|
import { useRichTextEditor } from "../../hooks/index.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
editor
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return
|
|
10
|
-
}, [editor]);
|
|
11
|
-
return null;
|
|
4
|
+
function CodeHighlightPlugin() {
|
|
5
|
+
const { editor } = useRichTextEditor();
|
|
6
|
+
useEffect(()=>registerCodeHighlighting(editor), [
|
|
7
|
+
editor
|
|
8
|
+
]);
|
|
9
|
+
return null;
|
|
12
10
|
}
|
|
11
|
+
export { CodeHighlightPlugin };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=CodeHighlightPlugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"plugins/CodeHighlightPlugin/CodeHighlightPlugin.js","sources":["../../../src/plugins/CodeHighlightPlugin/CodeHighlightPlugin.tsx"],"sourcesContent":["import { useEffect } from \"react\";\nimport { registerCodeHighlighting } from \"@lexical/code\";\nimport { useRichTextEditor } from \"~/hooks/index.js\";\n\nexport function CodeHighlightPlugin() {\n const { editor } = useRichTextEditor();\n useEffect(() => {\n return registerCodeHighlighting(editor);\n }, [editor]);\n return null;\n}\n"],"names":["CodeHighlightPlugin","editor","useRichTextEditor","useEffect","registerCodeHighlighting"],"mappings":";;;AAIO,SAASA;IACZ,MAAM,EAAEC,MAAM,EAAE,GAAGC;IACnBC,UAAU,IACCC,yBAAyBH,SACjC;QAACA;KAAO;IACX,OAAO;AACX"}
|
|
@@ -1,28 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import react from "react";
|
|
2
2
|
import { useFloatingLinkEditor } from "./useFloatingLinkEditor.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
style: {
|
|
18
|
-
opacity: isVisible ? 1 : 0,
|
|
19
|
-
pointerEvents: isVisible ? "auto" : "none"
|
|
20
|
-
}
|
|
21
|
-
}, isVisible ? /*#__PURE__*/React.createElement(LinkForm, {
|
|
22
|
-
linkData: linkData,
|
|
23
|
-
onSave: applyChanges,
|
|
24
|
-
removeLink: removeLink
|
|
25
|
-
}) : null);
|
|
3
|
+
function FloatingLinkEditor({ editor, isVisible, LinkForm }) {
|
|
4
|
+
const { editorRef, linkData, applyChanges, removeLink } = useFloatingLinkEditor(editor);
|
|
5
|
+
return /*#__PURE__*/ react.createElement("div", {
|
|
6
|
+
ref: editorRef,
|
|
7
|
+
className: "z-dialog absolute link-editor",
|
|
8
|
+
style: {
|
|
9
|
+
opacity: isVisible ? 1 : 0,
|
|
10
|
+
pointerEvents: isVisible ? "auto" : "none"
|
|
11
|
+
}
|
|
12
|
+
}, isVisible ? /*#__PURE__*/ react.createElement(LinkForm, {
|
|
13
|
+
linkData: linkData,
|
|
14
|
+
onSave: applyChanges,
|
|
15
|
+
removeLink: removeLink
|
|
16
|
+
}) : null);
|
|
26
17
|
}
|
|
18
|
+
export { FloatingLinkEditor };
|
|
27
19
|
|
|
28
20
|
//# sourceMappingURL=FloatingLinkEditor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"plugins/FloatingLinkEditorPlugin/FloatingLinkEditor.js","sources":["../../../src/plugins/FloatingLinkEditorPlugin/FloatingLinkEditor.tsx"],"sourcesContent":["import React from \"react\";\nimport type { LexicalEditor } from \"lexical\";\nimport { LinkFormProps } from \"./types.js\";\nimport { useFloatingLinkEditor } from \"./useFloatingLinkEditor.js\";\n\ninterface FloatingLinkEditorProps {\n editor: LexicalEditor;\n isVisible: boolean;\n LinkForm: React.FunctionComponent<LinkFormProps>;\n}\n\nexport function FloatingLinkEditor({ editor, isVisible, LinkForm }: FloatingLinkEditorProps) {\n const { editorRef, linkData, applyChanges, removeLink } = useFloatingLinkEditor(editor);\n\n return (\n <div\n ref={editorRef}\n className=\"z-dialog absolute link-editor\"\n style={{ opacity: isVisible ? 1 : 0, pointerEvents: isVisible ? \"auto\" : \"none\" }}\n >\n {isVisible ? (\n <LinkForm linkData={linkData} onSave={applyChanges} removeLink={removeLink} />\n ) : null}\n </div>\n );\n}\n"],"names":["FloatingLinkEditor","editor","isVisible","LinkForm","editorRef","linkData","applyChanges","removeLink","useFloatingLinkEditor"],"mappings":";;AAWO,SAASA,mBAAmB,EAAEC,MAAM,EAAEC,SAAS,EAAEC,QAAQ,EAA2B;IACvF,MAAM,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,YAAY,EAAEC,UAAU,EAAE,GAAGC,sBAAsBP;IAEhF,OAAO,WAAP,GACI,oBAAC;QACG,KAAKG;QACL,WAAU;QACV,OAAO;YAAE,SAASF,YAAY,IAAI;YAAG,eAAeA,YAAY,SAAS;QAAO;OAE/EA,YAAY,WAAZA,GACG,oBAACC,UAAAA;QAAS,UAAUE;QAAU,QAAQC;QAAc,YAAYC;SAChE;AAGhB"}
|