@contember/react-slate-editor-base 2.0.0-alpha.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/dist/development/components/RichTextEditor.cjs +93 -0
- package/dist/development/components/RichTextEditor.cjs.map +1 -0
- package/dist/development/components/RichTextEditor.js +93 -0
- package/dist/development/components/RichTextEditor.js.map +1 -0
- package/dist/development/components/triggers/EditorElementTrigger.cjs +16 -0
- package/dist/development/components/triggers/EditorElementTrigger.cjs.map +1 -0
- package/dist/development/components/triggers/EditorElementTrigger.js +16 -0
- package/dist/development/components/triggers/EditorElementTrigger.js.map +1 -0
- package/dist/development/components/triggers/EditorGenericTrigger.cjs +20 -0
- package/dist/development/components/triggers/EditorGenericTrigger.cjs.map +1 -0
- package/dist/development/components/triggers/EditorGenericTrigger.js +20 -0
- package/dist/development/components/triggers/EditorGenericTrigger.js.map +1 -0
- package/dist/development/components/triggers/EditorMarkTrigger.cjs +16 -0
- package/dist/development/components/triggers/EditorMarkTrigger.cjs.map +1 -0
- package/dist/development/components/triggers/EditorMarkTrigger.js +16 -0
- package/dist/development/components/triggers/EditorMarkTrigger.js.map +1 -0
- package/dist/development/components/triggers/EditorWrapNodeTrigger.cjs +28 -0
- package/dist/development/components/triggers/EditorWrapNodeTrigger.cjs.map +1 -0
- package/dist/development/components/triggers/EditorWrapNodeTrigger.js +28 -0
- package/dist/development/components/triggers/EditorWrapNodeTrigger.js.map +1 -0
- package/dist/development/editor/createEditor.cjs +35 -0
- package/dist/development/editor/createEditor.cjs.map +1 -0
- package/dist/development/editor/createEditor.js +35 -0
- package/dist/development/editor/createEditor.js.map +1 -0
- package/dist/development/editor/createEditorWithEssentials.cjs +227 -0
- package/dist/development/editor/createEditorWithEssentials.cjs.map +1 -0
- package/dist/development/editor/createEditorWithEssentials.js +211 -0
- package/dist/development/editor/createEditorWithEssentials.js.map +1 -0
- package/dist/development/editor/index.cjs +44 -0
- package/dist/development/editor/index.cjs.map +1 -0
- package/dist/development/editor/index.js +44 -0
- package/dist/development/editor/index.js.map +1 -0
- package/dist/development/editor/methods/addMarks.cjs +12 -0
- package/dist/development/editor/methods/addMarks.cjs.map +1 -0
- package/dist/development/editor/methods/addMarks.js +12 -0
- package/dist/development/editor/methods/addMarks.js.map +1 -0
- package/dist/development/editor/methods/canToggleMark.cjs +7 -0
- package/dist/development/editor/methods/canToggleMark.cjs.map +1 -0
- package/dist/development/editor/methods/canToggleMark.js +7 -0
- package/dist/development/editor/methods/canToggleMark.js.map +1 -0
- package/dist/development/editor/methods/closest.cjs +18 -0
- package/dist/development/editor/methods/closest.cjs.map +1 -0
- package/dist/development/editor/methods/closest.js +18 -0
- package/dist/development/editor/methods/closest.js.map +1 -0
- package/dist/development/editor/methods/closestBlockEntry.cjs +10 -0
- package/dist/development/editor/methods/closestBlockEntry.cjs.map +1 -0
- package/dist/development/editor/methods/closestBlockEntry.js +10 -0
- package/dist/development/editor/methods/closestBlockEntry.js.map +1 -0
- package/dist/development/editor/methods/closestViableBlockContainerEntry.cjs +9 -0
- package/dist/development/editor/methods/closestViableBlockContainerEntry.cjs.map +1 -0
- package/dist/development/editor/methods/closestViableBlockContainerEntry.js +9 -0
- package/dist/development/editor/methods/closestViableBlockContainerEntry.js.map +1 -0
- package/dist/development/editor/methods/ejectElement.cjs +15 -0
- package/dist/development/editor/methods/ejectElement.cjs.map +1 -0
- package/dist/development/editor/methods/ejectElement.js +15 -0
- package/dist/development/editor/methods/ejectElement.js.map +1 -0
- package/dist/development/editor/methods/elementToSpecifics.cjs +8 -0
- package/dist/development/editor/methods/elementToSpecifics.cjs.map +1 -0
- package/dist/development/editor/methods/elementToSpecifics.js +8 -0
- package/dist/development/editor/methods/elementToSpecifics.js.map +1 -0
- package/dist/development/editor/methods/getElementDataAttributes.cjs +13 -0
- package/dist/development/editor/methods/getElementDataAttributes.cjs.map +1 -0
- package/dist/development/editor/methods/getElementDataAttributes.js +13 -0
- package/dist/development/editor/methods/getElementDataAttributes.js.map +1 -0
- package/dist/development/editor/methods/getPreviousSibling.cjs +13 -0
- package/dist/development/editor/methods/getPreviousSibling.cjs.map +1 -0
- package/dist/development/editor/methods/getPreviousSibling.js +13 -0
- package/dist/development/editor/methods/getPreviousSibling.js.map +1 -0
- package/dist/development/editor/methods/hasMarks.cjs +23 -0
- package/dist/development/editor/methods/hasMarks.cjs.map +1 -0
- package/dist/development/editor/methods/hasMarks.js +23 -0
- package/dist/development/editor/methods/hasMarks.js.map +1 -0
- package/dist/development/editor/methods/hasParentOfType.cjs +15 -0
- package/dist/development/editor/methods/hasParentOfType.cjs.map +1 -0
- package/dist/development/editor/methods/hasParentOfType.js +15 -0
- package/dist/development/editor/methods/hasParentOfType.js.map +1 -0
- package/dist/development/editor/methods/isElementType.cjs +24 -0
- package/dist/development/editor/methods/isElementType.cjs.map +1 -0
- package/dist/development/editor/methods/isElementType.js +24 -0
- package/dist/development/editor/methods/isElementType.js.map +1 -0
- package/dist/development/editor/methods/permissivelyDeserializeNodes.cjs +22 -0
- package/dist/development/editor/methods/permissivelyDeserializeNodes.cjs.map +1 -0
- package/dist/development/editor/methods/permissivelyDeserializeNodes.js +22 -0
- package/dist/development/editor/methods/permissivelyDeserializeNodes.js.map +1 -0
- package/dist/development/editor/methods/removeMarks.cjs +12 -0
- package/dist/development/editor/methods/removeMarks.cjs.map +1 -0
- package/dist/development/editor/methods/removeMarks.js +12 -0
- package/dist/development/editor/methods/removeMarks.js.map +1 -0
- package/dist/development/editor/methods/serializeNodes.cjs +15 -0
- package/dist/development/editor/methods/serializeNodes.cjs.map +1 -0
- package/dist/development/editor/methods/serializeNodes.js +15 -0
- package/dist/development/editor/methods/serializeNodes.js.map +1 -0
- package/dist/development/editor/methods/strictlyDeserializeNodes.cjs +14 -0
- package/dist/development/editor/methods/strictlyDeserializeNodes.cjs.map +1 -0
- package/dist/development/editor/methods/strictlyDeserializeNodes.js +14 -0
- package/dist/development/editor/methods/strictlyDeserializeNodes.js.map +1 -0
- package/dist/development/editor/methods/textToSpecifics.cjs +8 -0
- package/dist/development/editor/methods/textToSpecifics.cjs.map +1 -0
- package/dist/development/editor/methods/textToSpecifics.js +8 -0
- package/dist/development/editor/methods/textToSpecifics.js.map +1 -0
- package/dist/development/editor/methods/toLatestFormat.cjs +34 -0
- package/dist/development/editor/methods/toLatestFormat.cjs.map +1 -0
- package/dist/development/editor/methods/toLatestFormat.js +34 -0
- package/dist/development/editor/methods/toLatestFormat.js.map +1 -0
- package/dist/development/editor/methods/topLevelNodes.cjs +12 -0
- package/dist/development/editor/methods/topLevelNodes.cjs.map +1 -0
- package/dist/development/editor/methods/topLevelNodes.js +12 -0
- package/dist/development/editor/methods/topLevelNodes.js.map +1 -0
- package/dist/development/index.cjs +139 -0
- package/dist/development/index.cjs.map +1 -0
- package/dist/development/index.js +136 -0
- package/dist/development/index.js.map +1 -0
- package/dist/development/internal/components/DefaultElement.cjs +11 -0
- package/dist/development/internal/components/DefaultElement.cjs.map +1 -0
- package/dist/development/internal/components/DefaultElement.js +11 -0
- package/dist/development/internal/components/DefaultElement.js.map +1 -0
- package/dist/development/internal/hooks/useRichTextFieldNodes.cjs +28 -0
- package/dist/development/internal/hooks/useRichTextFieldNodes.cjs.map +1 -0
- package/dist/development/internal/hooks/useRichTextFieldNodes.js +28 -0
- package/dist/development/internal/hooks/useRichTextFieldNodes.js.map +1 -0
- package/dist/development/internal/utils/EditorPasteUtils.cjs +47 -0
- package/dist/development/internal/utils/EditorPasteUtils.cjs.map +1 -0
- package/dist/development/internal/utils/EditorPasteUtils.js +47 -0
- package/dist/development/internal/utils/EditorPasteUtils.js.map +1 -0
- package/dist/development/internal/utils/parseUrl.cjs +14 -0
- package/dist/development/internal/utils/parseUrl.cjs.map +1 -0
- package/dist/development/internal/utils/parseUrl.js +14 -0
- package/dist/development/internal/utils/parseUrl.js.map +1 -0
- package/dist/development/plugins/attributes/alignment/alignButton.cjs +21 -0
- package/dist/development/plugins/attributes/alignment/alignButton.cjs.map +1 -0
- package/dist/development/plugins/attributes/alignment/alignButton.js +21 -0
- package/dist/development/plugins/attributes/alignment/alignButton.js.map +1 -0
- package/dist/development/plugins/behaviour/paste/HtmlDeserializer.cjs +138 -0
- package/dist/development/plugins/behaviour/paste/HtmlDeserializer.cjs.map +1 -0
- package/dist/development/plugins/behaviour/paste/HtmlDeserializer.js +138 -0
- package/dist/development/plugins/behaviour/paste/HtmlDeserializer.js.map +1 -0
- package/dist/development/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs +15 -0
- package/dist/development/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs.map +1 -0
- package/dist/development/plugins/behaviour/paste/createMarkHtmlDeserializer.js +15 -0
- package/dist/development/plugins/behaviour/paste/createMarkHtmlDeserializer.js.map +1 -0
- package/dist/development/plugins/behaviour/paste/withPaste.cjs +24 -0
- package/dist/development/plugins/behaviour/paste/withPaste.cjs.map +1 -0
- package/dist/development/plugins/behaviour/paste/withPaste.js +24 -0
- package/dist/development/plugins/behaviour/paste/withPaste.js.map +1 -0
- package/dist/development/plugins/element/anchors/AnchorElement.cjs +44 -0
- package/dist/development/plugins/element/anchors/AnchorElement.cjs.map +1 -0
- package/dist/development/plugins/element/anchors/AnchorElement.js +44 -0
- package/dist/development/plugins/element/anchors/AnchorElement.js.map +1 -0
- package/dist/development/plugins/element/anchors/AnchorHtmlDeserializer.cjs +19 -0
- package/dist/development/plugins/element/anchors/AnchorHtmlDeserializer.cjs.map +1 -0
- package/dist/development/plugins/element/anchors/AnchorHtmlDeserializer.js +19 -0
- package/dist/development/plugins/element/anchors/AnchorHtmlDeserializer.js.map +1 -0
- package/dist/development/plugins/element/anchors/AnchorModifications.cjs +29 -0
- package/dist/development/plugins/element/anchors/AnchorModifications.cjs.map +1 -0
- package/dist/development/plugins/element/anchors/AnchorModifications.js +29 -0
- package/dist/development/plugins/element/anchors/AnchorModifications.js.map +1 -0
- package/dist/development/plugins/element/anchors/withAnchors.cjs +21 -0
- package/dist/development/plugins/element/anchors/withAnchors.cjs.map +1 -0
- package/dist/development/plugins/element/anchors/withAnchors.js +21 -0
- package/dist/development/plugins/element/anchors/withAnchors.js.map +1 -0
- package/dist/development/plugins/element/headings/HeadingElement.cjs +41 -0
- package/dist/development/plugins/element/headings/HeadingElement.cjs.map +1 -0
- package/dist/development/plugins/element/headings/HeadingElement.js +41 -0
- package/dist/development/plugins/element/headings/HeadingElement.js.map +1 -0
- package/dist/development/plugins/element/headings/HeadingHtmlDeserializer.cjs +22 -0
- package/dist/development/plugins/element/headings/HeadingHtmlDeserializer.cjs.map +1 -0
- package/dist/development/plugins/element/headings/HeadingHtmlDeserializer.js +22 -0
- package/dist/development/plugins/element/headings/HeadingHtmlDeserializer.js.map +1 -0
- package/dist/development/plugins/element/headings/withHeadings.cjs +70 -0
- package/dist/development/plugins/element/headings/withHeadings.cjs.map +1 -0
- package/dist/development/plugins/element/headings/withHeadings.js +70 -0
- package/dist/development/plugins/element/headings/withHeadings.js.map +1 -0
- package/dist/development/plugins/element/horizonalRules/HorizontalRuleElement.cjs +41 -0
- package/dist/development/plugins/element/horizonalRules/HorizontalRuleElement.cjs.map +1 -0
- package/dist/development/plugins/element/horizonalRules/HorizontalRuleElement.js +41 -0
- package/dist/development/plugins/element/horizonalRules/HorizontalRuleElement.js.map +1 -0
- package/dist/development/plugins/element/horizonalRules/withHorizontalRules.cjs +75 -0
- package/dist/development/plugins/element/horizonalRules/withHorizontalRules.cjs.map +1 -0
- package/dist/development/plugins/element/horizonalRules/withHorizontalRules.js +75 -0
- package/dist/development/plugins/element/horizonalRules/withHorizontalRules.js.map +1 -0
- package/dist/development/plugins/element/lists/ListElement.cjs +26 -0
- package/dist/development/plugins/element/lists/ListElement.cjs.map +1 -0
- package/dist/development/plugins/element/lists/ListElement.js +26 -0
- package/dist/development/plugins/element/lists/ListElement.js.map +1 -0
- package/dist/development/plugins/element/lists/ListHtmlDeserializer.cjs +98 -0
- package/dist/development/plugins/element/lists/ListHtmlDeserializer.cjs.map +1 -0
- package/dist/development/plugins/element/lists/ListHtmlDeserializer.js +98 -0
- package/dist/development/plugins/element/lists/ListHtmlDeserializer.js.map +1 -0
- package/dist/development/plugins/element/lists/ListItemElement.cjs +53 -0
- package/dist/development/plugins/element/lists/ListItemElement.cjs.map +1 -0
- package/dist/development/plugins/element/lists/ListItemElement.js +53 -0
- package/dist/development/plugins/element/lists/ListItemElement.js.map +1 -0
- package/dist/development/plugins/element/lists/OrderedListElement.cjs +25 -0
- package/dist/development/plugins/element/lists/OrderedListElement.cjs.map +1 -0
- package/dist/development/plugins/element/lists/OrderedListElement.js +25 -0
- package/dist/development/plugins/element/lists/OrderedListElement.js.map +1 -0
- package/dist/development/plugins/element/lists/UnorderedListElement.cjs +25 -0
- package/dist/development/plugins/element/lists/UnorderedListElement.cjs.map +1 -0
- package/dist/development/plugins/element/lists/UnorderedListElement.js +25 -0
- package/dist/development/plugins/element/lists/UnorderedListElement.js.map +1 -0
- package/dist/development/plugins/element/lists/transforms/dedentListItem.cjs +57 -0
- package/dist/development/plugins/element/lists/transforms/dedentListItem.cjs.map +1 -0
- package/dist/development/plugins/element/lists/transforms/dedentListItem.js +57 -0
- package/dist/development/plugins/element/lists/transforms/dedentListItem.js.map +1 -0
- package/dist/development/plugins/element/lists/transforms/indentListItem.cjs +57 -0
- package/dist/development/plugins/element/lists/transforms/indentListItem.cjs.map +1 -0
- package/dist/development/plugins/element/lists/transforms/indentListItem.js +57 -0
- package/dist/development/plugins/element/lists/transforms/indentListItem.js.map +1 -0
- package/dist/development/plugins/element/lists/transforms/normalizeListElement.cjs +22 -0
- package/dist/development/plugins/element/lists/transforms/normalizeListElement.cjs.map +1 -0
- package/dist/development/plugins/element/lists/transforms/normalizeListElement.js +22 -0
- package/dist/development/plugins/element/lists/transforms/normalizeListElement.js.map +1 -0
- package/dist/development/plugins/element/lists/transforms/toggleListElement.cjs +93 -0
- package/dist/development/plugins/element/lists/transforms/toggleListElement.cjs.map +1 -0
- package/dist/development/plugins/element/lists/transforms/toggleListElement.js +93 -0
- package/dist/development/plugins/element/lists/transforms/toggleListElement.js.map +1 -0
- package/dist/development/plugins/element/lists/withLists.cjs +153 -0
- package/dist/development/plugins/element/lists/withLists.cjs.map +1 -0
- package/dist/development/plugins/element/lists/withLists.js +153 -0
- package/dist/development/plugins/element/lists/withLists.js.map +1 -0
- package/dist/development/plugins/element/paragraphs/ParagraphElement.cjs +49 -0
- package/dist/development/plugins/element/paragraphs/ParagraphElement.cjs.map +1 -0
- package/dist/development/plugins/element/paragraphs/ParagraphElement.js +49 -0
- package/dist/development/plugins/element/paragraphs/ParagraphElement.js.map +1 -0
- package/dist/development/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs +11 -0
- package/dist/development/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs.map +1 -0
- package/dist/development/plugins/element/paragraphs/ParagraphHtmlDeserializer.js +11 -0
- package/dist/development/plugins/element/paragraphs/ParagraphHtmlDeserializer.js.map +1 -0
- package/dist/development/plugins/element/paragraphs/withParagraphs.cjs +58 -0
- package/dist/development/plugins/element/paragraphs/withParagraphs.cjs.map +1 -0
- package/dist/development/plugins/element/paragraphs/withParagraphs.js +58 -0
- package/dist/development/plugins/element/paragraphs/withParagraphs.js.map +1 -0
- package/dist/development/plugins/element/scrollTargets/ScrollTargetElement.cjs +51 -0
- package/dist/development/plugins/element/scrollTargets/ScrollTargetElement.cjs.map +1 -0
- package/dist/development/plugins/element/scrollTargets/ScrollTargetElement.js +51 -0
- package/dist/development/plugins/element/scrollTargets/ScrollTargetElement.js.map +1 -0
- package/dist/development/plugins/element/scrollTargets/withScrollTargets.cjs +9 -0
- package/dist/development/plugins/element/scrollTargets/withScrollTargets.cjs.map +1 -0
- package/dist/development/plugins/element/scrollTargets/withScrollTargets.js +9 -0
- package/dist/development/plugins/element/scrollTargets/withScrollTargets.js.map +1 -0
- package/dist/development/plugins/element/tables/TableCellElement.cjs +39 -0
- package/dist/development/plugins/element/tables/TableCellElement.cjs.map +1 -0
- package/dist/development/plugins/element/tables/TableCellElement.js +39 -0
- package/dist/development/plugins/element/tables/TableCellElement.js.map +1 -0
- package/dist/development/plugins/element/tables/TableElement.cjs +114 -0
- package/dist/development/plugins/element/tables/TableElement.cjs.map +1 -0
- package/dist/development/plugins/element/tables/TableElement.js +114 -0
- package/dist/development/plugins/element/tables/TableElement.js.map +1 -0
- package/dist/development/plugins/element/tables/TableElementSelection.cjs +20 -0
- package/dist/development/plugins/element/tables/TableElementSelection.cjs.map +1 -0
- package/dist/development/plugins/element/tables/TableElementSelection.js +20 -0
- package/dist/development/plugins/element/tables/TableElementSelection.js.map +1 -0
- package/dist/development/plugins/element/tables/TableModifications.cjs +134 -0
- package/dist/development/plugins/element/tables/TableModifications.cjs.map +1 -0
- package/dist/development/plugins/element/tables/TableModifications.js +134 -0
- package/dist/development/plugins/element/tables/TableModifications.js.map +1 -0
- package/dist/development/plugins/element/tables/TableRowElement.cjs +43 -0
- package/dist/development/plugins/element/tables/TableRowElement.cjs.map +1 -0
- package/dist/development/plugins/element/tables/TableRowElement.js +43 -0
- package/dist/development/plugins/element/tables/TableRowElement.js.map +1 -0
- package/dist/development/plugins/element/tables/gaugeTableColumnCount.cjs +25 -0
- package/dist/development/plugins/element/tables/gaugeTableColumnCount.cjs.map +1 -0
- package/dist/development/plugins/element/tables/gaugeTableColumnCount.js +25 -0
- package/dist/development/plugins/element/tables/gaugeTableColumnCount.js.map +1 -0
- package/dist/development/plugins/element/tables/withTables.cjs +281 -0
- package/dist/development/plugins/element/tables/withTables.cjs.map +1 -0
- package/dist/development/plugins/element/tables/withTables.js +281 -0
- package/dist/development/plugins/element/tables/withTables.js.map +1 -0
- package/dist/development/plugins/text/bold/boldMark.cjs +13 -0
- package/dist/development/plugins/text/bold/boldMark.cjs.map +1 -0
- package/dist/development/plugins/text/bold/boldMark.js +13 -0
- package/dist/development/plugins/text/bold/boldMark.js.map +1 -0
- package/dist/development/plugins/text/bold/withBold.cjs +16 -0
- package/dist/development/plugins/text/bold/withBold.cjs.map +1 -0
- package/dist/development/plugins/text/bold/withBold.js +16 -0
- package/dist/development/plugins/text/bold/withBold.js.map +1 -0
- package/dist/development/plugins/text/code/codeMark.cjs +13 -0
- package/dist/development/plugins/text/code/codeMark.cjs.map +1 -0
- package/dist/development/plugins/text/code/codeMark.js +13 -0
- package/dist/development/plugins/text/code/codeMark.js.map +1 -0
- package/dist/development/plugins/text/code/withCode.cjs +9 -0
- package/dist/development/plugins/text/code/withCode.cjs.map +1 -0
- package/dist/development/plugins/text/code/withCode.js +9 -0
- package/dist/development/plugins/text/code/withCode.js.map +1 -0
- package/dist/development/plugins/text/highlight/highlightMark.cjs +13 -0
- package/dist/development/plugins/text/highlight/highlightMark.cjs.map +1 -0
- package/dist/development/plugins/text/highlight/highlightMark.js +13 -0
- package/dist/development/plugins/text/highlight/highlightMark.js.map +1 -0
- package/dist/development/plugins/text/highlight/withHighlight.cjs +9 -0
- package/dist/development/plugins/text/highlight/withHighlight.cjs.map +1 -0
- package/dist/development/plugins/text/highlight/withHighlight.js +9 -0
- package/dist/development/plugins/text/highlight/withHighlight.js.map +1 -0
- package/dist/development/plugins/text/italic/italicMark.cjs +13 -0
- package/dist/development/plugins/text/italic/italicMark.cjs.map +1 -0
- package/dist/development/plugins/text/italic/italicMark.js +13 -0
- package/dist/development/plugins/text/italic/italicMark.js.map +1 -0
- package/dist/development/plugins/text/italic/withItalic.cjs +16 -0
- package/dist/development/plugins/text/italic/withItalic.cjs.map +1 -0
- package/dist/development/plugins/text/italic/withItalic.js +16 -0
- package/dist/development/plugins/text/italic/withItalic.js.map +1 -0
- package/dist/development/plugins/text/newline/withNewline.cjs +15 -0
- package/dist/development/plugins/text/newline/withNewline.cjs.map +1 -0
- package/dist/development/plugins/text/newline/withNewline.js +15 -0
- package/dist/development/plugins/text/newline/withNewline.js.map +1 -0
- package/dist/development/plugins/text/strikeThrough/strikeThroughMark.cjs +13 -0
- package/dist/development/plugins/text/strikeThrough/strikeThroughMark.cjs.map +1 -0
- package/dist/development/plugins/text/strikeThrough/strikeThroughMark.js +13 -0
- package/dist/development/plugins/text/strikeThrough/strikeThroughMark.js.map +1 -0
- package/dist/development/plugins/text/strikeThrough/withStrikeThrough.cjs +17 -0
- package/dist/development/plugins/text/strikeThrough/withStrikeThrough.cjs.map +1 -0
- package/dist/development/plugins/text/strikeThrough/withStrikeThrough.js +17 -0
- package/dist/development/plugins/text/strikeThrough/withStrikeThrough.js.map +1 -0
- package/dist/development/plugins/text/underline/underlineMark.cjs +13 -0
- package/dist/development/plugins/text/underline/underlineMark.cjs.map +1 -0
- package/dist/development/plugins/text/underline/underlineMark.js +13 -0
- package/dist/development/plugins/text/underline/underlineMark.js.map +1 -0
- package/dist/development/plugins/text/underline/withUnderline.cjs +17 -0
- package/dist/development/plugins/text/underline/withUnderline.cjs.map +1 -0
- package/dist/development/plugins/text/underline/withUnderline.js +17 -0
- package/dist/development/plugins/text/underline/withUnderline.js.map +1 -0
- package/dist/development/slate-reexport.cjs +10 -0
- package/dist/development/slate-reexport.cjs.map +1 -0
- package/dist/development/slate-reexport.js +8 -0
- package/dist/development/slate-reexport.js.map +1 -0
- package/dist/production/components/RichTextEditor.cjs +93 -0
- package/dist/production/components/RichTextEditor.cjs.map +1 -0
- package/dist/production/components/RichTextEditor.js +93 -0
- package/dist/production/components/RichTextEditor.js.map +1 -0
- package/dist/production/components/triggers/EditorElementTrigger.cjs +16 -0
- package/dist/production/components/triggers/EditorElementTrigger.cjs.map +1 -0
- package/dist/production/components/triggers/EditorElementTrigger.js +16 -0
- package/dist/production/components/triggers/EditorElementTrigger.js.map +1 -0
- package/dist/production/components/triggers/EditorGenericTrigger.cjs +20 -0
- package/dist/production/components/triggers/EditorGenericTrigger.cjs.map +1 -0
- package/dist/production/components/triggers/EditorGenericTrigger.js +20 -0
- package/dist/production/components/triggers/EditorGenericTrigger.js.map +1 -0
- package/dist/production/components/triggers/EditorMarkTrigger.cjs +16 -0
- package/dist/production/components/triggers/EditorMarkTrigger.cjs.map +1 -0
- package/dist/production/components/triggers/EditorMarkTrigger.js +16 -0
- package/dist/production/components/triggers/EditorMarkTrigger.js.map +1 -0
- package/dist/production/components/triggers/EditorWrapNodeTrigger.cjs +28 -0
- package/dist/production/components/triggers/EditorWrapNodeTrigger.cjs.map +1 -0
- package/dist/production/components/triggers/EditorWrapNodeTrigger.js +28 -0
- package/dist/production/components/triggers/EditorWrapNodeTrigger.js.map +1 -0
- package/dist/production/editor/createEditor.cjs +35 -0
- package/dist/production/editor/createEditor.cjs.map +1 -0
- package/dist/production/editor/createEditor.js +35 -0
- package/dist/production/editor/createEditor.js.map +1 -0
- package/dist/production/editor/createEditorWithEssentials.cjs +227 -0
- package/dist/production/editor/createEditorWithEssentials.cjs.map +1 -0
- package/dist/production/editor/createEditorWithEssentials.js +211 -0
- package/dist/production/editor/createEditorWithEssentials.js.map +1 -0
- package/dist/production/editor/index.cjs +44 -0
- package/dist/production/editor/index.cjs.map +1 -0
- package/dist/production/editor/index.js +44 -0
- package/dist/production/editor/index.js.map +1 -0
- package/dist/production/editor/methods/addMarks.cjs +12 -0
- package/dist/production/editor/methods/addMarks.cjs.map +1 -0
- package/dist/production/editor/methods/addMarks.js +12 -0
- package/dist/production/editor/methods/addMarks.js.map +1 -0
- package/dist/production/editor/methods/canToggleMark.cjs +7 -0
- package/dist/production/editor/methods/canToggleMark.cjs.map +1 -0
- package/dist/production/editor/methods/canToggleMark.js +7 -0
- package/dist/production/editor/methods/canToggleMark.js.map +1 -0
- package/dist/production/editor/methods/closest.cjs +18 -0
- package/dist/production/editor/methods/closest.cjs.map +1 -0
- package/dist/production/editor/methods/closest.js +18 -0
- package/dist/production/editor/methods/closest.js.map +1 -0
- package/dist/production/editor/methods/closestBlockEntry.cjs +10 -0
- package/dist/production/editor/methods/closestBlockEntry.cjs.map +1 -0
- package/dist/production/editor/methods/closestBlockEntry.js +10 -0
- package/dist/production/editor/methods/closestBlockEntry.js.map +1 -0
- package/dist/production/editor/methods/closestViableBlockContainerEntry.cjs +9 -0
- package/dist/production/editor/methods/closestViableBlockContainerEntry.cjs.map +1 -0
- package/dist/production/editor/methods/closestViableBlockContainerEntry.js +9 -0
- package/dist/production/editor/methods/closestViableBlockContainerEntry.js.map +1 -0
- package/dist/production/editor/methods/ejectElement.cjs +15 -0
- package/dist/production/editor/methods/ejectElement.cjs.map +1 -0
- package/dist/production/editor/methods/ejectElement.js +15 -0
- package/dist/production/editor/methods/ejectElement.js.map +1 -0
- package/dist/production/editor/methods/elementToSpecifics.cjs +8 -0
- package/dist/production/editor/methods/elementToSpecifics.cjs.map +1 -0
- package/dist/production/editor/methods/elementToSpecifics.js +8 -0
- package/dist/production/editor/methods/elementToSpecifics.js.map +1 -0
- package/dist/production/editor/methods/getElementDataAttributes.cjs +13 -0
- package/dist/production/editor/methods/getElementDataAttributes.cjs.map +1 -0
- package/dist/production/editor/methods/getElementDataAttributes.js +13 -0
- package/dist/production/editor/methods/getElementDataAttributes.js.map +1 -0
- package/dist/production/editor/methods/getPreviousSibling.cjs +13 -0
- package/dist/production/editor/methods/getPreviousSibling.cjs.map +1 -0
- package/dist/production/editor/methods/getPreviousSibling.js +13 -0
- package/dist/production/editor/methods/getPreviousSibling.js.map +1 -0
- package/dist/production/editor/methods/hasMarks.cjs +23 -0
- package/dist/production/editor/methods/hasMarks.cjs.map +1 -0
- package/dist/production/editor/methods/hasMarks.js +23 -0
- package/dist/production/editor/methods/hasMarks.js.map +1 -0
- package/dist/production/editor/methods/hasParentOfType.cjs +15 -0
- package/dist/production/editor/methods/hasParentOfType.cjs.map +1 -0
- package/dist/production/editor/methods/hasParentOfType.js +15 -0
- package/dist/production/editor/methods/hasParentOfType.js.map +1 -0
- package/dist/production/editor/methods/isElementType.cjs +24 -0
- package/dist/production/editor/methods/isElementType.cjs.map +1 -0
- package/dist/production/editor/methods/isElementType.js +24 -0
- package/dist/production/editor/methods/isElementType.js.map +1 -0
- package/dist/production/editor/methods/permissivelyDeserializeNodes.cjs +22 -0
- package/dist/production/editor/methods/permissivelyDeserializeNodes.cjs.map +1 -0
- package/dist/production/editor/methods/permissivelyDeserializeNodes.js +22 -0
- package/dist/production/editor/methods/permissivelyDeserializeNodes.js.map +1 -0
- package/dist/production/editor/methods/removeMarks.cjs +12 -0
- package/dist/production/editor/methods/removeMarks.cjs.map +1 -0
- package/dist/production/editor/methods/removeMarks.js +12 -0
- package/dist/production/editor/methods/removeMarks.js.map +1 -0
- package/dist/production/editor/methods/serializeNodes.cjs +15 -0
- package/dist/production/editor/methods/serializeNodes.cjs.map +1 -0
- package/dist/production/editor/methods/serializeNodes.js +15 -0
- package/dist/production/editor/methods/serializeNodes.js.map +1 -0
- package/dist/production/editor/methods/strictlyDeserializeNodes.cjs +14 -0
- package/dist/production/editor/methods/strictlyDeserializeNodes.cjs.map +1 -0
- package/dist/production/editor/methods/strictlyDeserializeNodes.js +14 -0
- package/dist/production/editor/methods/strictlyDeserializeNodes.js.map +1 -0
- package/dist/production/editor/methods/textToSpecifics.cjs +8 -0
- package/dist/production/editor/methods/textToSpecifics.cjs.map +1 -0
- package/dist/production/editor/methods/textToSpecifics.js +8 -0
- package/dist/production/editor/methods/textToSpecifics.js.map +1 -0
- package/dist/production/editor/methods/toLatestFormat.cjs +34 -0
- package/dist/production/editor/methods/toLatestFormat.cjs.map +1 -0
- package/dist/production/editor/methods/toLatestFormat.js +34 -0
- package/dist/production/editor/methods/toLatestFormat.js.map +1 -0
- package/dist/production/editor/methods/topLevelNodes.cjs +12 -0
- package/dist/production/editor/methods/topLevelNodes.cjs.map +1 -0
- package/dist/production/editor/methods/topLevelNodes.js +12 -0
- package/dist/production/editor/methods/topLevelNodes.js.map +1 -0
- package/dist/production/index.cjs +139 -0
- package/dist/production/index.cjs.map +1 -0
- package/dist/production/index.js +136 -0
- package/dist/production/index.js.map +1 -0
- package/dist/production/internal/components/DefaultElement.cjs +11 -0
- package/dist/production/internal/components/DefaultElement.cjs.map +1 -0
- package/dist/production/internal/components/DefaultElement.js +11 -0
- package/dist/production/internal/components/DefaultElement.js.map +1 -0
- package/dist/production/internal/hooks/useRichTextFieldNodes.cjs +28 -0
- package/dist/production/internal/hooks/useRichTextFieldNodes.cjs.map +1 -0
- package/dist/production/internal/hooks/useRichTextFieldNodes.js +28 -0
- package/dist/production/internal/hooks/useRichTextFieldNodes.js.map +1 -0
- package/dist/production/internal/utils/EditorPasteUtils.cjs +47 -0
- package/dist/production/internal/utils/EditorPasteUtils.cjs.map +1 -0
- package/dist/production/internal/utils/EditorPasteUtils.js +47 -0
- package/dist/production/internal/utils/EditorPasteUtils.js.map +1 -0
- package/dist/production/internal/utils/parseUrl.cjs +14 -0
- package/dist/production/internal/utils/parseUrl.cjs.map +1 -0
- package/dist/production/internal/utils/parseUrl.js +14 -0
- package/dist/production/internal/utils/parseUrl.js.map +1 -0
- package/dist/production/plugins/attributes/alignment/alignButton.cjs +21 -0
- package/dist/production/plugins/attributes/alignment/alignButton.cjs.map +1 -0
- package/dist/production/plugins/attributes/alignment/alignButton.js +21 -0
- package/dist/production/plugins/attributes/alignment/alignButton.js.map +1 -0
- package/dist/production/plugins/behaviour/paste/HtmlDeserializer.cjs +138 -0
- package/dist/production/plugins/behaviour/paste/HtmlDeserializer.cjs.map +1 -0
- package/dist/production/plugins/behaviour/paste/HtmlDeserializer.js +138 -0
- package/dist/production/plugins/behaviour/paste/HtmlDeserializer.js.map +1 -0
- package/dist/production/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs +15 -0
- package/dist/production/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs.map +1 -0
- package/dist/production/plugins/behaviour/paste/createMarkHtmlDeserializer.js +15 -0
- package/dist/production/plugins/behaviour/paste/createMarkHtmlDeserializer.js.map +1 -0
- package/dist/production/plugins/behaviour/paste/withPaste.cjs +24 -0
- package/dist/production/plugins/behaviour/paste/withPaste.cjs.map +1 -0
- package/dist/production/plugins/behaviour/paste/withPaste.js +24 -0
- package/dist/production/plugins/behaviour/paste/withPaste.js.map +1 -0
- package/dist/production/plugins/element/anchors/AnchorElement.cjs +44 -0
- package/dist/production/plugins/element/anchors/AnchorElement.cjs.map +1 -0
- package/dist/production/plugins/element/anchors/AnchorElement.js +44 -0
- package/dist/production/plugins/element/anchors/AnchorElement.js.map +1 -0
- package/dist/production/plugins/element/anchors/AnchorHtmlDeserializer.cjs +19 -0
- package/dist/production/plugins/element/anchors/AnchorHtmlDeserializer.cjs.map +1 -0
- package/dist/production/plugins/element/anchors/AnchorHtmlDeserializer.js +19 -0
- package/dist/production/plugins/element/anchors/AnchorHtmlDeserializer.js.map +1 -0
- package/dist/production/plugins/element/anchors/AnchorModifications.cjs +29 -0
- package/dist/production/plugins/element/anchors/AnchorModifications.cjs.map +1 -0
- package/dist/production/plugins/element/anchors/AnchorModifications.js +29 -0
- package/dist/production/plugins/element/anchors/AnchorModifications.js.map +1 -0
- package/dist/production/plugins/element/anchors/withAnchors.cjs +21 -0
- package/dist/production/plugins/element/anchors/withAnchors.cjs.map +1 -0
- package/dist/production/plugins/element/anchors/withAnchors.js +21 -0
- package/dist/production/plugins/element/anchors/withAnchors.js.map +1 -0
- package/dist/production/plugins/element/headings/HeadingElement.cjs +41 -0
- package/dist/production/plugins/element/headings/HeadingElement.cjs.map +1 -0
- package/dist/production/plugins/element/headings/HeadingElement.js +41 -0
- package/dist/production/plugins/element/headings/HeadingElement.js.map +1 -0
- package/dist/production/plugins/element/headings/HeadingHtmlDeserializer.cjs +22 -0
- package/dist/production/plugins/element/headings/HeadingHtmlDeserializer.cjs.map +1 -0
- package/dist/production/plugins/element/headings/HeadingHtmlDeserializer.js +22 -0
- package/dist/production/plugins/element/headings/HeadingHtmlDeserializer.js.map +1 -0
- package/dist/production/plugins/element/headings/withHeadings.cjs +70 -0
- package/dist/production/plugins/element/headings/withHeadings.cjs.map +1 -0
- package/dist/production/plugins/element/headings/withHeadings.js +70 -0
- package/dist/production/plugins/element/headings/withHeadings.js.map +1 -0
- package/dist/production/plugins/element/horizonalRules/HorizontalRuleElement.cjs +41 -0
- package/dist/production/plugins/element/horizonalRules/HorizontalRuleElement.cjs.map +1 -0
- package/dist/production/plugins/element/horizonalRules/HorizontalRuleElement.js +41 -0
- package/dist/production/plugins/element/horizonalRules/HorizontalRuleElement.js.map +1 -0
- package/dist/production/plugins/element/horizonalRules/withHorizontalRules.cjs +75 -0
- package/dist/production/plugins/element/horizonalRules/withHorizontalRules.cjs.map +1 -0
- package/dist/production/plugins/element/horizonalRules/withHorizontalRules.js +75 -0
- package/dist/production/plugins/element/horizonalRules/withHorizontalRules.js.map +1 -0
- package/dist/production/plugins/element/lists/ListElement.cjs +26 -0
- package/dist/production/plugins/element/lists/ListElement.cjs.map +1 -0
- package/dist/production/plugins/element/lists/ListElement.js +26 -0
- package/dist/production/plugins/element/lists/ListElement.js.map +1 -0
- package/dist/production/plugins/element/lists/ListHtmlDeserializer.cjs +98 -0
- package/dist/production/plugins/element/lists/ListHtmlDeserializer.cjs.map +1 -0
- package/dist/production/plugins/element/lists/ListHtmlDeserializer.js +98 -0
- package/dist/production/plugins/element/lists/ListHtmlDeserializer.js.map +1 -0
- package/dist/production/plugins/element/lists/ListItemElement.cjs +53 -0
- package/dist/production/plugins/element/lists/ListItemElement.cjs.map +1 -0
- package/dist/production/plugins/element/lists/ListItemElement.js +53 -0
- package/dist/production/plugins/element/lists/ListItemElement.js.map +1 -0
- package/dist/production/plugins/element/lists/OrderedListElement.cjs +25 -0
- package/dist/production/plugins/element/lists/OrderedListElement.cjs.map +1 -0
- package/dist/production/plugins/element/lists/OrderedListElement.js +25 -0
- package/dist/production/plugins/element/lists/OrderedListElement.js.map +1 -0
- package/dist/production/plugins/element/lists/UnorderedListElement.cjs +25 -0
- package/dist/production/plugins/element/lists/UnorderedListElement.cjs.map +1 -0
- package/dist/production/plugins/element/lists/UnorderedListElement.js +25 -0
- package/dist/production/plugins/element/lists/UnorderedListElement.js.map +1 -0
- package/dist/production/plugins/element/lists/transforms/dedentListItem.cjs +57 -0
- package/dist/production/plugins/element/lists/transforms/dedentListItem.cjs.map +1 -0
- package/dist/production/plugins/element/lists/transforms/dedentListItem.js +57 -0
- package/dist/production/plugins/element/lists/transforms/dedentListItem.js.map +1 -0
- package/dist/production/plugins/element/lists/transforms/indentListItem.cjs +57 -0
- package/dist/production/plugins/element/lists/transforms/indentListItem.cjs.map +1 -0
- package/dist/production/plugins/element/lists/transforms/indentListItem.js +57 -0
- package/dist/production/plugins/element/lists/transforms/indentListItem.js.map +1 -0
- package/dist/production/plugins/element/lists/transforms/normalizeListElement.cjs +22 -0
- package/dist/production/plugins/element/lists/transforms/normalizeListElement.cjs.map +1 -0
- package/dist/production/plugins/element/lists/transforms/normalizeListElement.js +22 -0
- package/dist/production/plugins/element/lists/transforms/normalizeListElement.js.map +1 -0
- package/dist/production/plugins/element/lists/transforms/toggleListElement.cjs +93 -0
- package/dist/production/plugins/element/lists/transforms/toggleListElement.cjs.map +1 -0
- package/dist/production/plugins/element/lists/transforms/toggleListElement.js +93 -0
- package/dist/production/plugins/element/lists/transforms/toggleListElement.js.map +1 -0
- package/dist/production/plugins/element/lists/withLists.cjs +153 -0
- package/dist/production/plugins/element/lists/withLists.cjs.map +1 -0
- package/dist/production/plugins/element/lists/withLists.js +153 -0
- package/dist/production/plugins/element/lists/withLists.js.map +1 -0
- package/dist/production/plugins/element/paragraphs/ParagraphElement.cjs +49 -0
- package/dist/production/plugins/element/paragraphs/ParagraphElement.cjs.map +1 -0
- package/dist/production/plugins/element/paragraphs/ParagraphElement.js +49 -0
- package/dist/production/plugins/element/paragraphs/ParagraphElement.js.map +1 -0
- package/dist/production/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs +11 -0
- package/dist/production/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs.map +1 -0
- package/dist/production/plugins/element/paragraphs/ParagraphHtmlDeserializer.js +11 -0
- package/dist/production/plugins/element/paragraphs/ParagraphHtmlDeserializer.js.map +1 -0
- package/dist/production/plugins/element/paragraphs/withParagraphs.cjs +58 -0
- package/dist/production/plugins/element/paragraphs/withParagraphs.cjs.map +1 -0
- package/dist/production/plugins/element/paragraphs/withParagraphs.js +58 -0
- package/dist/production/plugins/element/paragraphs/withParagraphs.js.map +1 -0
- package/dist/production/plugins/element/scrollTargets/ScrollTargetElement.cjs +51 -0
- package/dist/production/plugins/element/scrollTargets/ScrollTargetElement.cjs.map +1 -0
- package/dist/production/plugins/element/scrollTargets/ScrollTargetElement.js +51 -0
- package/dist/production/plugins/element/scrollTargets/ScrollTargetElement.js.map +1 -0
- package/dist/production/plugins/element/scrollTargets/withScrollTargets.cjs +9 -0
- package/dist/production/plugins/element/scrollTargets/withScrollTargets.cjs.map +1 -0
- package/dist/production/plugins/element/scrollTargets/withScrollTargets.js +9 -0
- package/dist/production/plugins/element/scrollTargets/withScrollTargets.js.map +1 -0
- package/dist/production/plugins/element/tables/TableCellElement.cjs +39 -0
- package/dist/production/plugins/element/tables/TableCellElement.cjs.map +1 -0
- package/dist/production/plugins/element/tables/TableCellElement.js +39 -0
- package/dist/production/plugins/element/tables/TableCellElement.js.map +1 -0
- package/dist/production/plugins/element/tables/TableElement.cjs +114 -0
- package/dist/production/plugins/element/tables/TableElement.cjs.map +1 -0
- package/dist/production/plugins/element/tables/TableElement.js +114 -0
- package/dist/production/plugins/element/tables/TableElement.js.map +1 -0
- package/dist/production/plugins/element/tables/TableElementSelection.cjs +20 -0
- package/dist/production/plugins/element/tables/TableElementSelection.cjs.map +1 -0
- package/dist/production/plugins/element/tables/TableElementSelection.js +20 -0
- package/dist/production/plugins/element/tables/TableElementSelection.js.map +1 -0
- package/dist/production/plugins/element/tables/TableModifications.cjs +134 -0
- package/dist/production/plugins/element/tables/TableModifications.cjs.map +1 -0
- package/dist/production/plugins/element/tables/TableModifications.js +134 -0
- package/dist/production/plugins/element/tables/TableModifications.js.map +1 -0
- package/dist/production/plugins/element/tables/TableRowElement.cjs +43 -0
- package/dist/production/plugins/element/tables/TableRowElement.cjs.map +1 -0
- package/dist/production/plugins/element/tables/TableRowElement.js +43 -0
- package/dist/production/plugins/element/tables/TableRowElement.js.map +1 -0
- package/dist/production/plugins/element/tables/gaugeTableColumnCount.cjs +25 -0
- package/dist/production/plugins/element/tables/gaugeTableColumnCount.cjs.map +1 -0
- package/dist/production/plugins/element/tables/gaugeTableColumnCount.js +25 -0
- package/dist/production/plugins/element/tables/gaugeTableColumnCount.js.map +1 -0
- package/dist/production/plugins/element/tables/withTables.cjs +281 -0
- package/dist/production/plugins/element/tables/withTables.cjs.map +1 -0
- package/dist/production/plugins/element/tables/withTables.js +281 -0
- package/dist/production/plugins/element/tables/withTables.js.map +1 -0
- package/dist/production/plugins/text/bold/boldMark.cjs +13 -0
- package/dist/production/plugins/text/bold/boldMark.cjs.map +1 -0
- package/dist/production/plugins/text/bold/boldMark.js +13 -0
- package/dist/production/plugins/text/bold/boldMark.js.map +1 -0
- package/dist/production/plugins/text/bold/withBold.cjs +16 -0
- package/dist/production/plugins/text/bold/withBold.cjs.map +1 -0
- package/dist/production/plugins/text/bold/withBold.js +16 -0
- package/dist/production/plugins/text/bold/withBold.js.map +1 -0
- package/dist/production/plugins/text/code/codeMark.cjs +13 -0
- package/dist/production/plugins/text/code/codeMark.cjs.map +1 -0
- package/dist/production/plugins/text/code/codeMark.js +13 -0
- package/dist/production/plugins/text/code/codeMark.js.map +1 -0
- package/dist/production/plugins/text/code/withCode.cjs +9 -0
- package/dist/production/plugins/text/code/withCode.cjs.map +1 -0
- package/dist/production/plugins/text/code/withCode.js +9 -0
- package/dist/production/plugins/text/code/withCode.js.map +1 -0
- package/dist/production/plugins/text/highlight/highlightMark.cjs +13 -0
- package/dist/production/plugins/text/highlight/highlightMark.cjs.map +1 -0
- package/dist/production/plugins/text/highlight/highlightMark.js +13 -0
- package/dist/production/plugins/text/highlight/highlightMark.js.map +1 -0
- package/dist/production/plugins/text/highlight/withHighlight.cjs +9 -0
- package/dist/production/plugins/text/highlight/withHighlight.cjs.map +1 -0
- package/dist/production/plugins/text/highlight/withHighlight.js +9 -0
- package/dist/production/plugins/text/highlight/withHighlight.js.map +1 -0
- package/dist/production/plugins/text/italic/italicMark.cjs +13 -0
- package/dist/production/plugins/text/italic/italicMark.cjs.map +1 -0
- package/dist/production/plugins/text/italic/italicMark.js +13 -0
- package/dist/production/plugins/text/italic/italicMark.js.map +1 -0
- package/dist/production/plugins/text/italic/withItalic.cjs +16 -0
- package/dist/production/plugins/text/italic/withItalic.cjs.map +1 -0
- package/dist/production/plugins/text/italic/withItalic.js +16 -0
- package/dist/production/plugins/text/italic/withItalic.js.map +1 -0
- package/dist/production/plugins/text/newline/withNewline.cjs +15 -0
- package/dist/production/plugins/text/newline/withNewline.cjs.map +1 -0
- package/dist/production/plugins/text/newline/withNewline.js +15 -0
- package/dist/production/plugins/text/newline/withNewline.js.map +1 -0
- package/dist/production/plugins/text/strikeThrough/strikeThroughMark.cjs +13 -0
- package/dist/production/plugins/text/strikeThrough/strikeThroughMark.cjs.map +1 -0
- package/dist/production/plugins/text/strikeThrough/strikeThroughMark.js +13 -0
- package/dist/production/plugins/text/strikeThrough/strikeThroughMark.js.map +1 -0
- package/dist/production/plugins/text/strikeThrough/withStrikeThrough.cjs +17 -0
- package/dist/production/plugins/text/strikeThrough/withStrikeThrough.cjs.map +1 -0
- package/dist/production/plugins/text/strikeThrough/withStrikeThrough.js +17 -0
- package/dist/production/plugins/text/strikeThrough/withStrikeThrough.js.map +1 -0
- package/dist/production/plugins/text/underline/underlineMark.cjs +13 -0
- package/dist/production/plugins/text/underline/underlineMark.cjs.map +1 -0
- package/dist/production/plugins/text/underline/underlineMark.js +13 -0
- package/dist/production/plugins/text/underline/underlineMark.js.map +1 -0
- package/dist/production/plugins/text/underline/withUnderline.cjs +17 -0
- package/dist/production/plugins/text/underline/withUnderline.cjs.map +1 -0
- package/dist/production/plugins/text/underline/withUnderline.js +17 -0
- package/dist/production/plugins/text/underline/withUnderline.js.map +1 -0
- package/dist/production/slate-reexport.cjs +10 -0
- package/dist/production/slate-reexport.cjs.map +1 -0
- package/dist/production/slate-reexport.js +8 -0
- package/dist/production/slate-reexport.js.map +1 -0
- package/dist/types/components/RichTextEditor.d.ts +13 -0
- package/dist/types/components/RichTextEditor.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/components/triggers/EditorElementTrigger.d.ts +8 -0
- package/dist/types/components/triggers/EditorElementTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/EditorGenericTrigger.d.ts +16 -0
- package/dist/types/components/triggers/EditorGenericTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/EditorMarkTrigger.d.ts +7 -0
- package/dist/types/components/triggers/EditorMarkTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/EditorWrapNodeTrigger.d.ts +11 -0
- package/dist/types/components/triggers/EditorWrapNodeTrigger.d.ts.map +1 -0
- package/dist/types/components/triggers/index.d.ts +5 -0
- package/dist/types/components/triggers/index.d.ts.map +1 -0
- package/dist/types/editor/createEditor.d.ts +24 -0
- package/dist/types/editor/createEditor.d.ts.map +1 -0
- package/dist/types/editor/createEditorWithEssentials.d.ts +5 -0
- package/dist/types/editor/createEditorWithEssentials.d.ts.map +1 -0
- package/dist/types/editor/index.d.ts +35 -0
- package/dist/types/editor/index.d.ts.map +1 -0
- package/dist/types/editor/methods/addMarks.d.ts +3 -0
- package/dist/types/editor/methods/addMarks.d.ts.map +1 -0
- package/dist/types/editor/methods/canToggleMark.d.ts +2 -0
- package/dist/types/editor/methods/canToggleMark.d.ts.map +1 -0
- package/dist/types/editor/methods/closest.d.ts +6 -0
- package/dist/types/editor/methods/closest.d.ts.map +1 -0
- package/dist/types/editor/methods/closestBlockEntry.d.ts +6 -0
- package/dist/types/editor/methods/closestBlockEntry.d.ts.map +1 -0
- package/dist/types/editor/methods/closestViableBlockContainerEntry.d.ts +6 -0
- package/dist/types/editor/methods/closestViableBlockContainerEntry.d.ts.map +1 -0
- package/dist/types/editor/methods/ejectElement.d.ts +3 -0
- package/dist/types/editor/methods/ejectElement.d.ts.map +1 -0
- package/dist/types/editor/methods/elementToSpecifics.d.ts +2 -0
- package/dist/types/editor/methods/elementToSpecifics.d.ts.map +1 -0
- package/dist/types/editor/methods/getElementDataAttributes.d.ts +6 -0
- package/dist/types/editor/methods/getElementDataAttributes.d.ts.map +1 -0
- package/dist/types/editor/methods/getPreviousSibling.d.ts +3 -0
- package/dist/types/editor/methods/getPreviousSibling.d.ts.map +1 -0
- package/dist/types/editor/methods/hasMarks.d.ts +7 -0
- package/dist/types/editor/methods/hasMarks.d.ts.map +1 -0
- package/dist/types/editor/methods/hasParentOfType.d.ts +3 -0
- package/dist/types/editor/methods/hasParentOfType.d.ts.map +1 -0
- package/dist/types/editor/methods/index.d.ts +20 -0
- package/dist/types/editor/methods/index.d.ts.map +1 -0
- package/dist/types/editor/methods/isElementType.d.ts +3 -0
- package/dist/types/editor/methods/isElementType.d.ts.map +1 -0
- package/dist/types/editor/methods/permissivelyDeserializeNodes.d.ts +3 -0
- package/dist/types/editor/methods/permissivelyDeserializeNodes.d.ts.map +1 -0
- package/dist/types/editor/methods/removeMarks.d.ts +3 -0
- package/dist/types/editor/methods/removeMarks.d.ts.map +1 -0
- package/dist/types/editor/methods/serializeNodes.d.ts +3 -0
- package/dist/types/editor/methods/serializeNodes.d.ts.map +1 -0
- package/dist/types/editor/methods/strictlyDeserializeNodes.d.ts +3 -0
- package/dist/types/editor/methods/strictlyDeserializeNodes.d.ts.map +1 -0
- package/dist/types/editor/methods/textToSpecifics.d.ts +3 -0
- package/dist/types/editor/methods/textToSpecifics.d.ts.map +1 -0
- package/dist/types/editor/methods/toLatestFormat.d.ts +3 -0
- package/dist/types/editor/methods/toLatestFormat.d.ts.map +1 -0
- package/dist/types/editor/methods/topLevelNodes.d.ts +2 -0
- package/dist/types/editor/methods/topLevelNodes.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/internal/components/DefaultElement.d.ts +6 -0
- package/dist/types/internal/components/DefaultElement.d.ts.map +1 -0
- package/dist/types/internal/hooks/useRichTextFieldNodes.d.ts +9 -0
- package/dist/types/internal/hooks/useRichTextFieldNodes.d.ts.map +1 -0
- package/dist/types/internal/utils/EditorPasteUtils.d.ts +7 -0
- package/dist/types/internal/utils/EditorPasteUtils.d.ts.map +1 -0
- package/dist/types/internal/utils/index.d.ts +3 -0
- package/dist/types/internal/utils/index.d.ts.map +1 -0
- package/dist/types/internal/utils/parseIframeSrc.d.ts +2 -0
- package/dist/types/internal/utils/parseIframeSrc.d.ts.map +1 -0
- package/dist/types/internal/utils/parseUrl.d.ts +2 -0
- package/dist/types/internal/utils/parseUrl.d.ts.map +1 -0
- package/dist/types/plugins/attributes/alignment/alignButton.d.ts +14 -0
- package/dist/types/plugins/attributes/alignment/alignButton.d.ts.map +1 -0
- package/dist/types/plugins/attributes/alignment/index.d.ts +2 -0
- package/dist/types/plugins/attributes/alignment/index.d.ts.map +1 -0
- package/dist/types/plugins/attributes/index.d.ts +2 -0
- package/dist/types/plugins/attributes/index.d.ts.map +1 -0
- package/dist/types/plugins/behaviour/index.d.ts +2 -0
- package/dist/types/plugins/behaviour/index.d.ts.map +1 -0
- package/dist/types/plugins/behaviour/paste/HtmlDeserializer.d.ts +34 -0
- package/dist/types/plugins/behaviour/paste/HtmlDeserializer.d.ts.map +1 -0
- package/dist/types/plugins/behaviour/paste/createMarkHtmlDeserializer.d.ts +3 -0
- package/dist/types/plugins/behaviour/paste/createMarkHtmlDeserializer.d.ts.map +1 -0
- package/dist/types/plugins/behaviour/paste/index.d.ts +3 -0
- package/dist/types/plugins/behaviour/paste/index.d.ts.map +1 -0
- package/dist/types/plugins/behaviour/paste/withPaste.d.ts +3 -0
- package/dist/types/plugins/behaviour/paste/withPaste.d.ts.map +1 -0
- package/dist/types/plugins/element/anchors/AnchorElement.d.ts +14 -0
- package/dist/types/plugins/element/anchors/AnchorElement.d.ts.map +1 -0
- package/dist/types/plugins/element/anchors/AnchorHtmlDeserializer.d.ts +3 -0
- package/dist/types/plugins/element/anchors/AnchorHtmlDeserializer.d.ts.map +1 -0
- package/dist/types/plugins/element/anchors/AnchorModifications.d.ts +6 -0
- package/dist/types/plugins/element/anchors/AnchorModifications.d.ts.map +1 -0
- package/dist/types/plugins/element/anchors/index.d.ts +4 -0
- package/dist/types/plugins/element/anchors/index.d.ts.map +1 -0
- package/dist/types/plugins/element/anchors/withAnchors.d.ts +6 -0
- package/dist/types/plugins/element/anchors/withAnchors.d.ts.map +1 -0
- package/dist/types/plugins/element/headings/HeadingElement.d.ts +17 -0
- package/dist/types/plugins/element/headings/HeadingElement.d.ts.map +1 -0
- package/dist/types/plugins/element/headings/HeadingHtmlDeserializer.d.ts +3 -0
- package/dist/types/plugins/element/headings/HeadingHtmlDeserializer.d.ts.map +1 -0
- package/dist/types/plugins/element/headings/index.d.ts +4 -0
- package/dist/types/plugins/element/headings/index.d.ts.map +1 -0
- package/dist/types/plugins/element/headings/withHeadings.d.ts +6 -0
- package/dist/types/plugins/element/headings/withHeadings.d.ts.map +1 -0
- package/dist/types/plugins/element/horizonalRules/HorizontalRuleElement.d.ts +13 -0
- package/dist/types/plugins/element/horizonalRules/HorizontalRuleElement.d.ts.map +1 -0
- package/dist/types/plugins/element/horizonalRules/index.d.ts +3 -0
- package/dist/types/plugins/element/horizonalRules/index.d.ts.map +1 -0
- package/dist/types/plugins/element/horizonalRules/withHorizontalRules.d.ts +6 -0
- package/dist/types/plugins/element/horizonalRules/withHorizontalRules.d.ts.map +1 -0
- package/dist/types/plugins/element/index.d.ts +8 -0
- package/dist/types/plugins/element/index.d.ts.map +1 -0
- package/dist/types/plugins/element/lists/ListElement.d.ts +6 -0
- package/dist/types/plugins/element/lists/ListElement.d.ts.map +1 -0
- package/dist/types/plugins/element/lists/ListHtmlDeserializer.d.ts +10 -0
- package/dist/types/plugins/element/lists/ListHtmlDeserializer.d.ts.map +1 -0
- package/dist/types/plugins/element/lists/ListItemElement.d.ts +12 -0
- package/dist/types/plugins/element/lists/ListItemElement.d.ts.map +1 -0
- package/dist/types/plugins/element/lists/OrderedListElement.d.ts +12 -0
- package/dist/types/plugins/element/lists/OrderedListElement.d.ts.map +1 -0
- package/dist/types/plugins/element/lists/UnorderedListElement.d.ts +12 -0
- package/dist/types/plugins/element/lists/UnorderedListElement.d.ts.map +1 -0
- package/dist/types/plugins/element/lists/index.d.ts +6 -0
- package/dist/types/plugins/element/lists/index.d.ts.map +1 -0
- package/dist/types/plugins/element/lists/transforms/dedentListItem.d.ts +4 -0
- package/dist/types/plugins/element/lists/transforms/dedentListItem.d.ts.map +1 -0
- package/dist/types/plugins/element/lists/transforms/indentListItem.d.ts +4 -0
- package/dist/types/plugins/element/lists/transforms/indentListItem.d.ts.map +1 -0
- package/dist/types/plugins/element/lists/transforms/index.d.ts +5 -0
- package/dist/types/plugins/element/lists/transforms/index.d.ts.map +1 -0
- package/dist/types/plugins/element/lists/transforms/normalizeListElement.d.ts +7 -0
- package/dist/types/plugins/element/lists/transforms/normalizeListElement.d.ts.map +1 -0
- package/dist/types/plugins/element/lists/transforms/toggleListElement.d.ts +5 -0
- package/dist/types/plugins/element/lists/transforms/toggleListElement.d.ts.map +1 -0
- package/dist/types/plugins/element/lists/withLists.d.ts +10 -0
- package/dist/types/plugins/element/lists/withLists.d.ts.map +1 -0
- package/dist/types/plugins/element/paragraphs/ParagraphElement.d.ts +15 -0
- package/dist/types/plugins/element/paragraphs/ParagraphElement.d.ts.map +1 -0
- package/dist/types/plugins/element/paragraphs/ParagraphHtmlDeserializer.d.ts +3 -0
- package/dist/types/plugins/element/paragraphs/ParagraphHtmlDeserializer.d.ts.map +1 -0
- package/dist/types/plugins/element/paragraphs/index.d.ts +4 -0
- package/dist/types/plugins/element/paragraphs/index.d.ts.map +1 -0
- package/dist/types/plugins/element/paragraphs/withParagraphs.d.ts +6 -0
- package/dist/types/plugins/element/paragraphs/withParagraphs.d.ts.map +1 -0
- package/dist/types/plugins/element/scrollTargets/ScrollTargetElement.d.ts +14 -0
- package/dist/types/plugins/element/scrollTargets/ScrollTargetElement.d.ts.map +1 -0
- package/dist/types/plugins/element/scrollTargets/index.d.ts +3 -0
- package/dist/types/plugins/element/scrollTargets/index.d.ts.map +1 -0
- package/dist/types/plugins/element/scrollTargets/withScrollTargets.d.ts +6 -0
- package/dist/types/plugins/element/scrollTargets/withScrollTargets.d.ts.map +1 -0
- package/dist/types/plugins/element/tables/TableCellElement.d.ts +20 -0
- package/dist/types/plugins/element/tables/TableCellElement.d.ts.map +1 -0
- package/dist/types/plugins/element/tables/TableElement.d.ts +26 -0
- package/dist/types/plugins/element/tables/TableElement.d.ts.map +1 -0
- package/dist/types/plugins/element/tables/TableElementSelection.d.ts +6 -0
- package/dist/types/plugins/element/tables/TableElementSelection.d.ts.map +1 -0
- package/dist/types/plugins/element/tables/TableModifications.d.ts +14 -0
- package/dist/types/plugins/element/tables/TableModifications.d.ts.map +1 -0
- package/dist/types/plugins/element/tables/TableRowElement.d.ts +22 -0
- package/dist/types/plugins/element/tables/TableRowElement.d.ts.map +1 -0
- package/dist/types/plugins/element/tables/gaugeTableColumnCount.d.ts +3 -0
- package/dist/types/plugins/element/tables/gaugeTableColumnCount.d.ts.map +1 -0
- package/dist/types/plugins/element/tables/index.d.ts +6 -0
- package/dist/types/plugins/element/tables/index.d.ts.map +1 -0
- package/dist/types/plugins/element/tables/withTables.d.ts +10 -0
- package/dist/types/plugins/element/tables/withTables.d.ts.map +1 -0
- package/dist/types/plugins/index.d.ts +5 -0
- package/dist/types/plugins/index.d.ts.map +1 -0
- package/dist/types/plugins/text/bold/boldMark.d.ts +4 -0
- package/dist/types/plugins/text/bold/boldMark.d.ts.map +1 -0
- package/dist/types/plugins/text/bold/index.d.ts +3 -0
- package/dist/types/plugins/text/bold/index.d.ts.map +1 -0
- package/dist/types/plugins/text/bold/withBold.d.ts +3 -0
- package/dist/types/plugins/text/bold/withBold.d.ts.map +1 -0
- package/dist/types/plugins/text/code/codeMark.d.ts +4 -0
- package/dist/types/plugins/text/code/codeMark.d.ts.map +1 -0
- package/dist/types/plugins/text/code/index.d.ts +3 -0
- package/dist/types/plugins/text/code/index.d.ts.map +1 -0
- package/dist/types/plugins/text/code/withCode.d.ts +3 -0
- package/dist/types/plugins/text/code/withCode.d.ts.map +1 -0
- package/dist/types/plugins/text/highlight/highlightMark.d.ts +4 -0
- package/dist/types/plugins/text/highlight/highlightMark.d.ts.map +1 -0
- package/dist/types/plugins/text/highlight/index.d.ts +3 -0
- package/dist/types/plugins/text/highlight/index.d.ts.map +1 -0
- package/dist/types/plugins/text/highlight/withHighlight.d.ts +3 -0
- package/dist/types/plugins/text/highlight/withHighlight.d.ts.map +1 -0
- package/dist/types/plugins/text/index.d.ts +8 -0
- package/dist/types/plugins/text/index.d.ts.map +1 -0
- package/dist/types/plugins/text/italic/index.d.ts +3 -0
- package/dist/types/plugins/text/italic/index.d.ts.map +1 -0
- package/dist/types/plugins/text/italic/italicMark.d.ts +4 -0
- package/dist/types/plugins/text/italic/italicMark.d.ts.map +1 -0
- package/dist/types/plugins/text/italic/withItalic.d.ts +3 -0
- package/dist/types/plugins/text/italic/withItalic.d.ts.map +1 -0
- package/dist/types/plugins/text/newline/index.d.ts +2 -0
- package/dist/types/plugins/text/newline/index.d.ts.map +1 -0
- package/dist/types/plugins/text/newline/withNewline.d.ts +3 -0
- package/dist/types/plugins/text/newline/withNewline.d.ts.map +1 -0
- package/dist/types/plugins/text/strikeThrough/index.d.ts +3 -0
- package/dist/types/plugins/text/strikeThrough/index.d.ts.map +1 -0
- package/dist/types/plugins/text/strikeThrough/strikeThroughMark.d.ts +4 -0
- package/dist/types/plugins/text/strikeThrough/strikeThroughMark.d.ts.map +1 -0
- package/dist/types/plugins/text/strikeThrough/withStrikeThrough.d.ts +3 -0
- package/dist/types/plugins/text/strikeThrough/withStrikeThrough.d.ts.map +1 -0
- package/dist/types/plugins/text/underline/index.d.ts +3 -0
- package/dist/types/plugins/text/underline/index.d.ts.map +1 -0
- package/dist/types/plugins/text/underline/underlineMark.d.ts +4 -0
- package/dist/types/plugins/text/underline/underlineMark.d.ts.map +1 -0
- package/dist/types/plugins/text/underline/withUnderline.d.ts +3 -0
- package/dist/types/plugins/text/underline/withUnderline.d.ts.map +1 -0
- package/dist/types/slate-reexport.d.ts +3 -0
- package/dist/types/slate-reexport.d.ts.map +1 -0
- package/dist/types/slate-types.d.ts +31 -0
- package/dist/types/slate-types.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/dist/types/types/editor.d.ts +43 -0
- package/dist/types/types/editor.d.ts.map +1 -0
- package/dist/types/types/htmlDeserializer.d.ts +38 -0
- package/dist/types/types/htmlDeserializer.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +4 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/plugins.d.ts +59 -0
- package/dist/types/types/plugins.d.ts.map +1 -0
- package/package.json +62 -0
- package/src/components/RichTextEditor.tsx +123 -0
- package/src/components/index.ts +3 -0
- package/src/components/triggers/EditorElementTrigger.tsx +22 -0
- package/src/components/triggers/EditorGenericTrigger.tsx +27 -0
- package/src/components/triggers/EditorMarkTrigger.tsx +21 -0
- package/src/components/triggers/EditorWrapNodeTrigger.tsx +36 -0
- package/src/components/triggers/index.ts +4 -0
- package/src/editor/createEditor.ts +52 -0
- package/src/editor/createEditorWithEssentials.tsx +248 -0
- package/src/editor/index.ts +48 -0
- package/src/editor/methods/addMarks.ts +10 -0
- package/src/editor/methods/canToggleMark.ts +9 -0
- package/src/editor/methods/closest.ts +21 -0
- package/src/editor/methods/closestBlockEntry.ts +14 -0
- package/src/editor/methods/closestViableBlockContainerEntry.ts +14 -0
- package/src/editor/methods/ejectElement.ts +14 -0
- package/src/editor/methods/elementToSpecifics.ts +8 -0
- package/src/editor/methods/getElementDataAttributes.ts +22 -0
- package/src/editor/methods/getPreviousSibling.ts +18 -0
- package/src/editor/methods/hasMarks.ts +30 -0
- package/src/editor/methods/hasParentOfType.ts +18 -0
- package/src/editor/methods/index.ts +19 -0
- package/src/editor/methods/isElementType.ts +29 -0
- package/src/editor/methods/permissivelyDeserializeNodes.ts +30 -0
- package/src/editor/methods/removeMarks.ts +10 -0
- package/src/editor/methods/serializeNodes.ts +18 -0
- package/src/editor/methods/strictlyDeserializeNodes.ts +19 -0
- package/src/editor/methods/textToSpecifics.ts +7 -0
- package/src/editor/methods/toLatestFormat.ts +37 -0
- package/src/editor/methods/topLevelNodes.ts +11 -0
- package/src/index.ts +6 -0
- package/src/internal/components/DefaultElement.tsx +11 -0
- package/src/internal/hooks/useRichTextFieldNodes.ts +38 -0
- package/src/internal/utils/EditorPasteUtils.ts +53 -0
- package/src/internal/utils/index.ts +2 -0
- package/src/internal/utils/parseIframeSrc.ts +13 -0
- package/src/internal/utils/parseUrl.ts +13 -0
- package/src/plugins/attributes/alignment/alignButton.ts +30 -0
- package/src/plugins/attributes/alignment/index.ts +1 -0
- package/src/plugins/attributes/index.ts +1 -0
- package/src/plugins/behaviour/index.ts +1 -0
- package/src/plugins/behaviour/paste/HtmlDeserializer.ts +180 -0
- package/src/plugins/behaviour/paste/createMarkHtmlDeserializer.ts +13 -0
- package/src/plugins/behaviour/paste/index.ts +2 -0
- package/src/plugins/behaviour/paste/withPaste.ts +24 -0
- package/src/plugins/element/anchors/AnchorElement.ts +49 -0
- package/src/plugins/element/anchors/AnchorHtmlDeserializer.ts +18 -0
- package/src/plugins/element/anchors/AnchorModifications.ts +29 -0
- package/src/plugins/element/anchors/index.ts +3 -0
- package/src/plugins/element/anchors/withAnchors.ts +23 -0
- package/src/plugins/element/headings/HeadingElement.ts +52 -0
- package/src/plugins/element/headings/HeadingHtmlDeserializer.ts +20 -0
- package/src/plugins/element/headings/index.ts +3 -0
- package/src/plugins/element/headings/withHeadings.ts +120 -0
- package/src/plugins/element/horizonalRules/HorizontalRuleElement.ts +48 -0
- package/src/plugins/element/horizonalRules/index.ts +2 -0
- package/src/plugins/element/horizonalRules/withHorizontalRules.ts +87 -0
- package/src/plugins/element/index.ts +7 -0
- package/src/plugins/element/lists/ListElement.ts +26 -0
- package/src/plugins/element/lists/ListHtmlDeserializer.ts +113 -0
- package/src/plugins/element/lists/ListItemElement.ts +60 -0
- package/src/plugins/element/lists/OrderedListElement.ts +31 -0
- package/src/plugins/element/lists/UnorderedListElement.ts +31 -0
- package/src/plugins/element/lists/index.ts +5 -0
- package/src/plugins/element/lists/transforms/dedentListItem.ts +70 -0
- package/src/plugins/element/lists/transforms/indentListItem.ts +81 -0
- package/src/plugins/element/lists/transforms/index.ts +4 -0
- package/src/plugins/element/lists/transforms/normalizeListElement.ts +20 -0
- package/src/plugins/element/lists/transforms/toggleListElement.ts +113 -0
- package/src/plugins/element/lists/withLists.ts +202 -0
- package/src/plugins/element/paragraphs/ParagraphElement.ts +59 -0
- package/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.ts +9 -0
- package/src/plugins/element/paragraphs/index.ts +3 -0
- package/src/plugins/element/paragraphs/withParagraphs.ts +70 -0
- package/src/plugins/element/scrollTargets/ScrollTargetElement.ts +61 -0
- package/src/plugins/element/scrollTargets/index.ts +2 -0
- package/src/plugins/element/scrollTargets/withScrollTargets.ts +8 -0
- package/src/plugins/element/tables/TableCellElement.ts +45 -0
- package/src/plugins/element/tables/TableElement.ts +125 -0
- package/src/plugins/element/tables/TableElementSelection.ts +19 -0
- package/src/plugins/element/tables/TableModifications.ts +165 -0
- package/src/plugins/element/tables/TableRowElement.ts +47 -0
- package/src/plugins/element/tables/gaugeTableColumnCount.ts +35 -0
- package/src/plugins/element/tables/index.ts +5 -0
- package/src/plugins/element/tables/withTables.ts +335 -0
- package/src/plugins/index.ts +4 -0
- package/src/plugins/text/bold/boldMark.ts +11 -0
- package/src/plugins/text/bold/index.ts +2 -0
- package/src/plugins/text/bold/withBold.ts +15 -0
- package/src/plugins/text/code/codeMark.ts +11 -0
- package/src/plugins/text/code/index.ts +2 -0
- package/src/plugins/text/code/withCode.ts +10 -0
- package/src/plugins/text/highlight/highlightMark.ts +11 -0
- package/src/plugins/text/highlight/index.ts +2 -0
- package/src/plugins/text/highlight/withHighlight.ts +10 -0
- package/src/plugins/text/index.ts +7 -0
- package/src/plugins/text/italic/index.ts +2 -0
- package/src/plugins/text/italic/italicMark.ts +11 -0
- package/src/plugins/text/italic/withItalic.ts +15 -0
- package/src/plugins/text/newline/index.ts +1 -0
- package/src/plugins/text/newline/withNewline.ts +13 -0
- package/src/plugins/text/strikeThrough/index.ts +2 -0
- package/src/plugins/text/strikeThrough/strikeThroughMark.ts +10 -0
- package/src/plugins/text/strikeThrough/withStrikeThrough.ts +18 -0
- package/src/plugins/text/underline/index.ts +2 -0
- package/src/plugins/text/underline/underlineMark.ts +11 -0
- package/src/plugins/text/underline/withUnderline.ts +17 -0
- package/src/slate-reexport.ts +4 -0
- package/src/slate-types.ts +33 -0
- package/src/tsconfig.json +11 -0
- package/src/types/editor.ts +55 -0
- package/src/types/htmlDeserializer.ts +42 -0
- package/src/types/index.ts +3 -0
- package/src/types/plugins.ts +35 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const react = require("react");
|
|
4
|
+
const isHotkey = require("is-hotkey");
|
|
5
|
+
const boldMark = "isBold";
|
|
6
|
+
const boldMarkPlugin = {
|
|
7
|
+
type: boldMark,
|
|
8
|
+
isHotKey: isHotkey.isHotkey("mod+b"),
|
|
9
|
+
render: ({ children }) => react.createElement("b", void 0, children)
|
|
10
|
+
};
|
|
11
|
+
exports.boldMark = boldMark;
|
|
12
|
+
exports.boldMarkPlugin = boldMarkPlugin;
|
|
13
|
+
//# sourceMappingURL=boldMark.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boldMark.cjs","sources":["../../../../../src/plugins/text/bold/boldMark.ts"],"sourcesContent":["import { createElement } from 'react'\nimport { isHotkey } from 'is-hotkey'\nimport { EditorMarkPlugin } from '../../../types'\n\nexport const boldMark = 'isBold'\n\nexport const boldMarkPlugin: EditorMarkPlugin = {\n\ttype: boldMark,\n\tisHotKey: isHotkey('mod+b'),\n\trender: ({ children }) => createElement('b', undefined, children),\n}\n"],"names":["isHotkey","createElement"],"mappings":";;;;AAIO,MAAM,WAAW;AAEjB,MAAM,iBAAmC;AAAA,EAC/C,MAAM;AAAA,EACN,UAAUA,kBAAS,OAAO;AAAA,EAC1B,QAAQ,CAAC,EAAE,eAAeC,MAAc,cAAA,KAAK,QAAW,QAAQ;AACjE;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createElement } from "react";
|
|
2
|
+
import { isHotkey } from "is-hotkey";
|
|
3
|
+
const boldMark = "isBold";
|
|
4
|
+
const boldMarkPlugin = {
|
|
5
|
+
type: boldMark,
|
|
6
|
+
isHotKey: isHotkey("mod+b"),
|
|
7
|
+
render: ({ children }) => createElement("b", void 0, children)
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
boldMark,
|
|
11
|
+
boldMarkPlugin
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=boldMark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boldMark.js","sources":["../../../../../src/plugins/text/bold/boldMark.ts"],"sourcesContent":["import { createElement } from 'react'\nimport { isHotkey } from 'is-hotkey'\nimport { EditorMarkPlugin } from '../../../types'\n\nexport const boldMark = 'isBold'\n\nexport const boldMarkPlugin: EditorMarkPlugin = {\n\ttype: boldMark,\n\tisHotKey: isHotkey('mod+b'),\n\trender: ({ children }) => createElement('b', undefined, children),\n}\n"],"names":[],"mappings":";;AAIO,MAAM,WAAW;AAEjB,MAAM,iBAAmC;AAAA,EAC/C,MAAM;AAAA,EACN,UAAU,SAAS,OAAO;AAAA,EAC1B,QAAQ,CAAC,EAAE,eAAe,cAAc,KAAK,QAAW,QAAQ;AACjE;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const boldMark = require("./boldMark.cjs");
|
|
4
|
+
const createMarkHtmlDeserializer = require("../../behaviour/paste/createMarkHtmlDeserializer.cjs");
|
|
5
|
+
const withBold = () => (editor) => {
|
|
6
|
+
editor.registerMark(boldMark.boldMarkPlugin);
|
|
7
|
+
editor.htmlDeserializer.registerPlugin(
|
|
8
|
+
createMarkHtmlDeserializer.createMarkHtmlDeserializer(
|
|
9
|
+
boldMark.boldMark,
|
|
10
|
+
(el) => el.nodeName === "STRONG" || el.nodeName === "B" && !el.id.startsWith("docs-internal-guid"),
|
|
11
|
+
(el) => ["italic", "oblique"].includes(el.style.fontWeight)
|
|
12
|
+
)
|
|
13
|
+
);
|
|
14
|
+
};
|
|
15
|
+
exports.withBold = withBold;
|
|
16
|
+
//# sourceMappingURL=withBold.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withBold.cjs","sources":["../../../../../src/plugins/text/bold/withBold.ts"],"sourcesContent":["import { boldMark, boldMarkPlugin } from './boldMark'\nimport { EditorPlugin } from '../../../types'\nimport { createMarkHtmlDeserializer } from '../../behaviour'\n\n\nexport const withBold = (): EditorPlugin => editor => {\n\teditor.registerMark(boldMarkPlugin)\n\teditor.htmlDeserializer.registerPlugin(\n\t\tcreateMarkHtmlDeserializer(\n\t\t\tboldMark,\n\t\t\tel => el.nodeName === 'STRONG' || (el.nodeName === 'B' && !el.id.startsWith('docs-internal-guid')),\n\t\t\tel => ['italic', 'oblique'].includes(el.style.fontWeight),\n\t\t),\n\t)\n}\n"],"names":["boldMarkPlugin","createMarkHtmlDeserializer","boldMark"],"mappings":";;;;AAKa,MAAA,WAAW,MAAoB,CAAU,WAAA;AACrD,SAAO,aAAaA,SAAAA,cAAc;AAClC,SAAO,iBAAiB;AAAA,IACvBC,2BAAA;AAAA,MACCC,SAAA;AAAA,MACA,CAAA,OAAM,GAAG,aAAa,YAAa,GAAG,aAAa,OAAO,CAAC,GAAG,GAAG,WAAW,oBAAoB;AAAA,MAChG,CAAA,OAAM,CAAC,UAAU,SAAS,EAAE,SAAS,GAAG,MAAM,UAAU;AAAA,IACzD;AAAA,EAAA;AAEF;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { boldMarkPlugin, boldMark } from "./boldMark.js";
|
|
2
|
+
import { createMarkHtmlDeserializer } from "../../behaviour/paste/createMarkHtmlDeserializer.js";
|
|
3
|
+
const withBold = () => (editor) => {
|
|
4
|
+
editor.registerMark(boldMarkPlugin);
|
|
5
|
+
editor.htmlDeserializer.registerPlugin(
|
|
6
|
+
createMarkHtmlDeserializer(
|
|
7
|
+
boldMark,
|
|
8
|
+
(el) => el.nodeName === "STRONG" || el.nodeName === "B" && !el.id.startsWith("docs-internal-guid"),
|
|
9
|
+
(el) => ["italic", "oblique"].includes(el.style.fontWeight)
|
|
10
|
+
)
|
|
11
|
+
);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
withBold
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=withBold.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withBold.js","sources":["../../../../../src/plugins/text/bold/withBold.ts"],"sourcesContent":["import { boldMark, boldMarkPlugin } from './boldMark'\nimport { EditorPlugin } from '../../../types'\nimport { createMarkHtmlDeserializer } from '../../behaviour'\n\n\nexport const withBold = (): EditorPlugin => editor => {\n\teditor.registerMark(boldMarkPlugin)\n\teditor.htmlDeserializer.registerPlugin(\n\t\tcreateMarkHtmlDeserializer(\n\t\t\tboldMark,\n\t\t\tel => el.nodeName === 'STRONG' || (el.nodeName === 'B' && !el.id.startsWith('docs-internal-guid')),\n\t\t\tel => ['italic', 'oblique'].includes(el.style.fontWeight),\n\t\t),\n\t)\n}\n"],"names":[],"mappings":";;AAKa,MAAA,WAAW,MAAoB,CAAU,WAAA;AACrD,SAAO,aAAa,cAAc;AAClC,SAAO,iBAAiB;AAAA,IACvB;AAAA,MACC;AAAA,MACA,CAAA,OAAM,GAAG,aAAa,YAAa,GAAG,aAAa,OAAO,CAAC,GAAG,GAAG,WAAW,oBAAoB;AAAA,MAChG,CAAA,OAAM,CAAC,UAAU,SAAS,EAAE,SAAS,GAAG,MAAM,UAAU;AAAA,IACzD;AAAA,EAAA;AAEF;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const isHotkey = require("is-hotkey");
|
|
4
|
+
const react = require("react");
|
|
5
|
+
const codeMark = "isCode";
|
|
6
|
+
const codeMarkPlugin = {
|
|
7
|
+
type: codeMark,
|
|
8
|
+
isHotKey: isHotkey.isHotkey("mod+`"),
|
|
9
|
+
render: ({ children }) => react.createElement("code", void 0, children)
|
|
10
|
+
};
|
|
11
|
+
exports.codeMark = codeMark;
|
|
12
|
+
exports.codeMarkPlugin = codeMarkPlugin;
|
|
13
|
+
//# sourceMappingURL=codeMark.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codeMark.cjs","sources":["../../../../../src/plugins/text/code/codeMark.ts"],"sourcesContent":["import { isHotkey } from 'is-hotkey'\nimport { createElement } from 'react'\nimport { EditorMarkPlugin } from '../../../types'\n\nexport const codeMark = 'isCode'\n\nexport const codeMarkPlugin: EditorMarkPlugin = {\n\ttype: codeMark,\n\tisHotKey: isHotkey('mod+`'),\n\trender: ({ children }) => createElement('code', undefined, children),\n}\n"],"names":["isHotkey","createElement"],"mappings":";;;;AAIO,MAAM,WAAW;AAEjB,MAAM,iBAAmC;AAAA,EAC/C,MAAM;AAAA,EACN,UAAUA,kBAAS,OAAO;AAAA,EAC1B,QAAQ,CAAC,EAAE,eAAeC,MAAc,cAAA,QAAQ,QAAW,QAAQ;AACpE;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isHotkey } from "is-hotkey";
|
|
2
|
+
import { createElement } from "react";
|
|
3
|
+
const codeMark = "isCode";
|
|
4
|
+
const codeMarkPlugin = {
|
|
5
|
+
type: codeMark,
|
|
6
|
+
isHotKey: isHotkey("mod+`"),
|
|
7
|
+
render: ({ children }) => createElement("code", void 0, children)
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
codeMark,
|
|
11
|
+
codeMarkPlugin
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=codeMark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codeMark.js","sources":["../../../../../src/plugins/text/code/codeMark.ts"],"sourcesContent":["import { isHotkey } from 'is-hotkey'\nimport { createElement } from 'react'\nimport { EditorMarkPlugin } from '../../../types'\n\nexport const codeMark = 'isCode'\n\nexport const codeMarkPlugin: EditorMarkPlugin = {\n\ttype: codeMark,\n\tisHotKey: isHotkey('mod+`'),\n\trender: ({ children }) => createElement('code', undefined, children),\n}\n"],"names":[],"mappings":";;AAIO,MAAM,WAAW;AAEjB,MAAM,iBAAmC;AAAA,EAC/C,MAAM;AAAA,EACN,UAAU,SAAS,OAAO;AAAA,EAC1B,QAAQ,CAAC,EAAE,eAAe,cAAc,QAAQ,QAAW,QAAQ;AACpE;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const codeMark = require("./codeMark.cjs");
|
|
4
|
+
const withCode = () => (editor) => {
|
|
5
|
+
editor.registerMark(codeMark.codeMarkPlugin);
|
|
6
|
+
return editor;
|
|
7
|
+
};
|
|
8
|
+
exports.withCode = withCode;
|
|
9
|
+
//# sourceMappingURL=withCode.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withCode.cjs","sources":["../../../../../src/plugins/text/code/withCode.ts"],"sourcesContent":["import { Editor as SlateEditor } from 'slate'\nimport { codeMarkPlugin } from './codeMark'\nimport { EditorPlugin } from '../../../types'\n\n\nexport const withCode = (): EditorPlugin => editor => {\n\teditor.registerMark(codeMarkPlugin)\n\n\treturn editor\n}\n"],"names":["codeMarkPlugin"],"mappings":";;;AAKa,MAAA,WAAW,MAAoB,CAAU,WAAA;AACrD,SAAO,aAAaA,SAAAA,cAAc;AAE3B,SAAA;AACR;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withCode.js","sources":["../../../../../src/plugins/text/code/withCode.ts"],"sourcesContent":["import { Editor as SlateEditor } from 'slate'\nimport { codeMarkPlugin } from './codeMark'\nimport { EditorPlugin } from '../../../types'\n\n\nexport const withCode = (): EditorPlugin => editor => {\n\teditor.registerMark(codeMarkPlugin)\n\n\treturn editor\n}\n"],"names":[],"mappings":";AAKa,MAAA,WAAW,MAAoB,CAAU,WAAA;AACrD,SAAO,aAAa,cAAc;AAE3B,SAAA;AACR;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const isHotkey = require("is-hotkey");
|
|
4
|
+
const react = require("react");
|
|
5
|
+
const highlightMark = "isHighlighted";
|
|
6
|
+
const highlightMarkPlugin = {
|
|
7
|
+
type: highlightMark,
|
|
8
|
+
isHotKey: isHotkey.isHotkey("mod+e"),
|
|
9
|
+
render: ({ children }) => react.createElement("em", void 0, children)
|
|
10
|
+
};
|
|
11
|
+
exports.highlightMark = highlightMark;
|
|
12
|
+
exports.highlightMarkPlugin = highlightMarkPlugin;
|
|
13
|
+
//# sourceMappingURL=highlightMark.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlightMark.cjs","sources":["../../../../../src/plugins/text/highlight/highlightMark.ts"],"sourcesContent":["import { isHotkey } from 'is-hotkey'\nimport { createElement } from 'react'\nimport { EditorMarkPlugin } from '../../../types'\n\nexport const highlightMark = 'isHighlighted'\n\nexport const highlightMarkPlugin: EditorMarkPlugin = {\n\ttype: highlightMark,\n\tisHotKey: isHotkey('mod+e'),\n\trender: ({ children }) => createElement('em', undefined, children),\n}\n"],"names":["isHotkey","createElement"],"mappings":";;;;AAIO,MAAM,gBAAgB;AAEtB,MAAM,sBAAwC;AAAA,EACpD,MAAM;AAAA,EACN,UAAUA,kBAAS,OAAO;AAAA,EAC1B,QAAQ,CAAC,EAAE,eAAeC,MAAc,cAAA,MAAM,QAAW,QAAQ;AAClE;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isHotkey } from "is-hotkey";
|
|
2
|
+
import { createElement } from "react";
|
|
3
|
+
const highlightMark = "isHighlighted";
|
|
4
|
+
const highlightMarkPlugin = {
|
|
5
|
+
type: highlightMark,
|
|
6
|
+
isHotKey: isHotkey("mod+e"),
|
|
7
|
+
render: ({ children }) => createElement("em", void 0, children)
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
highlightMark,
|
|
11
|
+
highlightMarkPlugin
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=highlightMark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlightMark.js","sources":["../../../../../src/plugins/text/highlight/highlightMark.ts"],"sourcesContent":["import { isHotkey } from 'is-hotkey'\nimport { createElement } from 'react'\nimport { EditorMarkPlugin } from '../../../types'\n\nexport const highlightMark = 'isHighlighted'\n\nexport const highlightMarkPlugin: EditorMarkPlugin = {\n\ttype: highlightMark,\n\tisHotKey: isHotkey('mod+e'),\n\trender: ({ children }) => createElement('em', undefined, children),\n}\n"],"names":[],"mappings":";;AAIO,MAAM,gBAAgB;AAEtB,MAAM,sBAAwC;AAAA,EACpD,MAAM;AAAA,EACN,UAAU,SAAS,OAAO;AAAA,EAC1B,QAAQ,CAAC,EAAE,eAAe,cAAc,MAAM,QAAW,QAAQ;AAClE;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const highlightMark = require("./highlightMark.cjs");
|
|
4
|
+
const withHighlight = () => (editor) => {
|
|
5
|
+
editor.registerMark(highlightMark.highlightMarkPlugin);
|
|
6
|
+
return editor;
|
|
7
|
+
};
|
|
8
|
+
exports.withHighlight = withHighlight;
|
|
9
|
+
//# sourceMappingURL=withHighlight.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withHighlight.cjs","sources":["../../../../../src/plugins/text/highlight/withHighlight.ts"],"sourcesContent":["import { Editor as SlateEditor } from 'slate'\nimport { highlightMarkPlugin } from './highlightMark'\nimport { EditorPlugin } from '../../../types'\n\n\nexport const withHighlight = (): EditorPlugin => editor => {\n\teditor.registerMark(highlightMarkPlugin)\n\n\treturn editor\n}\n"],"names":["highlightMarkPlugin"],"mappings":";;;AAKa,MAAA,gBAAgB,MAAoB,CAAU,WAAA;AAC1D,SAAO,aAAaA,cAAAA,mBAAmB;AAEhC,SAAA;AACR;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withHighlight.js","sources":["../../../../../src/plugins/text/highlight/withHighlight.ts"],"sourcesContent":["import { Editor as SlateEditor } from 'slate'\nimport { highlightMarkPlugin } from './highlightMark'\nimport { EditorPlugin } from '../../../types'\n\n\nexport const withHighlight = (): EditorPlugin => editor => {\n\teditor.registerMark(highlightMarkPlugin)\n\n\treturn editor\n}\n"],"names":[],"mappings":";AAKa,MAAA,gBAAgB,MAAoB,CAAU,WAAA;AAC1D,SAAO,aAAa,mBAAmB;AAEhC,SAAA;AACR;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const isHotkey = require("is-hotkey");
|
|
4
|
+
const react = require("react");
|
|
5
|
+
const italicMark = "isItalic";
|
|
6
|
+
const italicMarkPlugin = {
|
|
7
|
+
type: italicMark,
|
|
8
|
+
isHotKey: isHotkey.isHotkey("mod+i"),
|
|
9
|
+
render: ({ children }) => react.createElement("i", void 0, children)
|
|
10
|
+
};
|
|
11
|
+
exports.italicMark = italicMark;
|
|
12
|
+
exports.italicMarkPlugin = italicMarkPlugin;
|
|
13
|
+
//# sourceMappingURL=italicMark.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"italicMark.cjs","sources":["../../../../../src/plugins/text/italic/italicMark.ts"],"sourcesContent":["import { isHotkey } from 'is-hotkey'\nimport { createElement } from 'react'\nimport { EditorMarkPlugin } from '../../../types'\n\nexport const italicMark = 'isItalic'\n\nexport const italicMarkPlugin: EditorMarkPlugin = {\n\ttype: italicMark,\n\tisHotKey: isHotkey('mod+i'),\n\trender: ({ children }) => createElement('i', undefined, children),\n}\n"],"names":["isHotkey","createElement"],"mappings":";;;;AAIO,MAAM,aAAa;AAEnB,MAAM,mBAAqC;AAAA,EACjD,MAAM;AAAA,EACN,UAAUA,kBAAS,OAAO;AAAA,EAC1B,QAAQ,CAAC,EAAE,eAAeC,MAAc,cAAA,KAAK,QAAW,QAAQ;AACjE;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isHotkey } from "is-hotkey";
|
|
2
|
+
import { createElement } from "react";
|
|
3
|
+
const italicMark = "isItalic";
|
|
4
|
+
const italicMarkPlugin = {
|
|
5
|
+
type: italicMark,
|
|
6
|
+
isHotKey: isHotkey("mod+i"),
|
|
7
|
+
render: ({ children }) => createElement("i", void 0, children)
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
italicMark,
|
|
11
|
+
italicMarkPlugin
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=italicMark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"italicMark.js","sources":["../../../../../src/plugins/text/italic/italicMark.ts"],"sourcesContent":["import { isHotkey } from 'is-hotkey'\nimport { createElement } from 'react'\nimport { EditorMarkPlugin } from '../../../types'\n\nexport const italicMark = 'isItalic'\n\nexport const italicMarkPlugin: EditorMarkPlugin = {\n\ttype: italicMark,\n\tisHotKey: isHotkey('mod+i'),\n\trender: ({ children }) => createElement('i', undefined, children),\n}\n"],"names":[],"mappings":";;AAIO,MAAM,aAAa;AAEnB,MAAM,mBAAqC;AAAA,EACjD,MAAM;AAAA,EACN,UAAU,SAAS,OAAO;AAAA,EAC1B,QAAQ,CAAC,EAAE,eAAe,cAAc,KAAK,QAAW,QAAQ;AACjE;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const italicMark = require("./italicMark.cjs");
|
|
4
|
+
const createMarkHtmlDeserializer = require("../../behaviour/paste/createMarkHtmlDeserializer.cjs");
|
|
5
|
+
const withItalic = () => (editor) => {
|
|
6
|
+
editor.registerMark(italicMark.italicMarkPlugin);
|
|
7
|
+
editor.htmlDeserializer.registerPlugin(
|
|
8
|
+
createMarkHtmlDeserializer.createMarkHtmlDeserializer(
|
|
9
|
+
italicMark.italicMark,
|
|
10
|
+
(el) => ["I", "EM"].includes(el.nodeName),
|
|
11
|
+
(el) => ["italic", "oblique"].includes(el.style.fontWeight)
|
|
12
|
+
)
|
|
13
|
+
);
|
|
14
|
+
};
|
|
15
|
+
exports.withItalic = withItalic;
|
|
16
|
+
//# sourceMappingURL=withItalic.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withItalic.cjs","sources":["../../../../../src/plugins/text/italic/withItalic.ts"],"sourcesContent":["import { italicMark, italicMarkPlugin } from './italicMark'\nimport { EditorPlugin } from '../../../types'\nimport { createMarkHtmlDeserializer } from '../../behaviour'\n\n\nexport const withItalic = (): EditorPlugin => editor => {\n\teditor.registerMark(italicMarkPlugin)\n\teditor.htmlDeserializer.registerPlugin(\n\t\tcreateMarkHtmlDeserializer(\n\t\t\titalicMark,\n\t\t\tel => ['I', 'EM'].includes(el.nodeName),\n\t\t\tel => ['italic', 'oblique'].includes(el.style.fontWeight),\n\t\t),\n\t)\n}\n"],"names":["italicMarkPlugin","createMarkHtmlDeserializer","italicMark"],"mappings":";;;;AAKa,MAAA,aAAa,MAAoB,CAAU,WAAA;AACvD,SAAO,aAAaA,WAAAA,gBAAgB;AACpC,SAAO,iBAAiB;AAAA,IACvBC,2BAAA;AAAA,MACCC,WAAA;AAAA,MACA,QAAM,CAAC,KAAK,IAAI,EAAE,SAAS,GAAG,QAAQ;AAAA,MACtC,CAAA,OAAM,CAAC,UAAU,SAAS,EAAE,SAAS,GAAG,MAAM,UAAU;AAAA,IACzD;AAAA,EAAA;AAEF;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { italicMarkPlugin, italicMark } from "./italicMark.js";
|
|
2
|
+
import { createMarkHtmlDeserializer } from "../../behaviour/paste/createMarkHtmlDeserializer.js";
|
|
3
|
+
const withItalic = () => (editor) => {
|
|
4
|
+
editor.registerMark(italicMarkPlugin);
|
|
5
|
+
editor.htmlDeserializer.registerPlugin(
|
|
6
|
+
createMarkHtmlDeserializer(
|
|
7
|
+
italicMark,
|
|
8
|
+
(el) => ["I", "EM"].includes(el.nodeName),
|
|
9
|
+
(el) => ["italic", "oblique"].includes(el.style.fontWeight)
|
|
10
|
+
)
|
|
11
|
+
);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
withItalic
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=withItalic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withItalic.js","sources":["../../../../../src/plugins/text/italic/withItalic.ts"],"sourcesContent":["import { italicMark, italicMarkPlugin } from './italicMark'\nimport { EditorPlugin } from '../../../types'\nimport { createMarkHtmlDeserializer } from '../../behaviour'\n\n\nexport const withItalic = (): EditorPlugin => editor => {\n\teditor.registerMark(italicMarkPlugin)\n\teditor.htmlDeserializer.registerPlugin(\n\t\tcreateMarkHtmlDeserializer(\n\t\t\titalicMark,\n\t\t\tel => ['I', 'EM'].includes(el.nodeName),\n\t\t\tel => ['italic', 'oblique'].includes(el.style.fontWeight),\n\t\t),\n\t)\n}\n"],"names":[],"mappings":";;AAKa,MAAA,aAAa,MAAoB,CAAU,WAAA;AACvD,SAAO,aAAa,gBAAgB;AACpC,SAAO,iBAAiB;AAAA,IACvB;AAAA,MACC;AAAA,MACA,QAAM,CAAC,KAAK,IAAI,EAAE,SAAS,GAAG,QAAQ;AAAA,MACtC,CAAA,OAAM,CAAC,UAAU,SAAS,EAAE,SAAS,GAAG,MAAM,UAAU;AAAA,IACzD;AAAA,EAAA;AAEF;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const Slate = require("slate");
|
|
4
|
+
const withNewline = () => (editor) => {
|
|
5
|
+
const { onKeyDown } = editor;
|
|
6
|
+
editor.onKeyDown = (e) => {
|
|
7
|
+
if (e.key !== "Enter" || !e.shiftKey) {
|
|
8
|
+
return onKeyDown(e);
|
|
9
|
+
}
|
|
10
|
+
e.preventDefault();
|
|
11
|
+
Slate.Transforms.insertText(editor, "\n");
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
exports.withNewline = withNewline;
|
|
15
|
+
//# sourceMappingURL=withNewline.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withNewline.cjs","sources":["../../../../../src/plugins/text/newline/withNewline.ts"],"sourcesContent":["import { Transforms } from 'slate'\nimport { EditorPlugin } from '../../../types'\n\nexport const withNewline = (): EditorPlugin => editor => {\n\tconst { onKeyDown } = editor\n\teditor.onKeyDown = e => {\n\t\tif (e.key !== 'Enter' || !e.shiftKey) {\n\t\t\treturn onKeyDown(e)\n\t\t}\n\t\te.preventDefault()\n\t\tTransforms.insertText(editor, '\\n')\n\t}\n}\n"],"names":["Transforms"],"mappings":";;;AAGa,MAAA,cAAc,MAAoB,CAAU,WAAA;AAClD,QAAA,EAAE,UAAc,IAAA;AACtB,SAAO,YAAY,CAAK,MAAA;AACvB,QAAI,EAAE,QAAQ,WAAW,CAAC,EAAE,UAAU;AACrC,aAAO,UAAU,CAAC;AAAA,IACnB;AACA,MAAE,eAAe;AACNA,UAAAA,WAAA,WAAW,QAAQ,IAAI;AAAA,EAAA;AAEpC;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Transforms } from "slate";
|
|
2
|
+
const withNewline = () => (editor) => {
|
|
3
|
+
const { onKeyDown } = editor;
|
|
4
|
+
editor.onKeyDown = (e) => {
|
|
5
|
+
if (e.key !== "Enter" || !e.shiftKey) {
|
|
6
|
+
return onKeyDown(e);
|
|
7
|
+
}
|
|
8
|
+
e.preventDefault();
|
|
9
|
+
Transforms.insertText(editor, "\n");
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
withNewline
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=withNewline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withNewline.js","sources":["../../../../../src/plugins/text/newline/withNewline.ts"],"sourcesContent":["import { Transforms } from 'slate'\nimport { EditorPlugin } from '../../../types'\n\nexport const withNewline = (): EditorPlugin => editor => {\n\tconst { onKeyDown } = editor\n\teditor.onKeyDown = e => {\n\t\tif (e.key !== 'Enter' || !e.shiftKey) {\n\t\t\treturn onKeyDown(e)\n\t\t}\n\t\te.preventDefault()\n\t\tTransforms.insertText(editor, '\\n')\n\t}\n}\n"],"names":[],"mappings":";AAGa,MAAA,cAAc,MAAoB,CAAU,WAAA;AAClD,QAAA,EAAE,UAAc,IAAA;AACtB,SAAO,YAAY,CAAK,MAAA;AACvB,QAAI,EAAE,QAAQ,WAAW,CAAC,EAAE,UAAU;AACrC,aAAO,UAAU,CAAC;AAAA,IACnB;AACA,MAAE,eAAe;AACN,eAAA,WAAW,QAAQ,IAAI;AAAA,EAAA;AAEpC;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const react = require("react");
|
|
4
|
+
const isHotkey = require("is-hotkey");
|
|
5
|
+
const strikeThroughMark = "isStruckThrough";
|
|
6
|
+
const strikeThroughPlugin = {
|
|
7
|
+
type: strikeThroughMark,
|
|
8
|
+
render: ({ children }) => react.createElement("s", void 0, children),
|
|
9
|
+
isHotKey: isHotkey.isHotkey("mod+opt+s")
|
|
10
|
+
};
|
|
11
|
+
exports.strikeThroughMark = strikeThroughMark;
|
|
12
|
+
exports.strikeThroughPlugin = strikeThroughPlugin;
|
|
13
|
+
//# sourceMappingURL=strikeThroughMark.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strikeThroughMark.cjs","sources":["../../../../../src/plugins/text/strikeThrough/strikeThroughMark.ts"],"sourcesContent":["import { createElement } from 'react'\nimport { isHotkey } from 'is-hotkey'\nimport { EditorMarkPlugin } from '../../../types'\n\nexport const strikeThroughMark = 'isStruckThrough'\nexport const strikeThroughPlugin: EditorMarkPlugin = {\n\ttype: strikeThroughMark,\n\trender: ({ children }) => createElement('s', undefined, children),\n\tisHotKey: isHotkey('mod+opt+s'),\n}\n"],"names":["createElement","isHotkey"],"mappings":";;;;AAIO,MAAM,oBAAoB;AAC1B,MAAM,sBAAwC;AAAA,EACpD,MAAM;AAAA,EACN,QAAQ,CAAC,EAAE,eAAeA,MAAc,cAAA,KAAK,QAAW,QAAQ;AAAA,EAChE,UAAUC,kBAAS,WAAW;AAC/B;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createElement } from "react";
|
|
2
|
+
import { isHotkey } from "is-hotkey";
|
|
3
|
+
const strikeThroughMark = "isStruckThrough";
|
|
4
|
+
const strikeThroughPlugin = {
|
|
5
|
+
type: strikeThroughMark,
|
|
6
|
+
render: ({ children }) => createElement("s", void 0, children),
|
|
7
|
+
isHotKey: isHotkey("mod+opt+s")
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
strikeThroughMark,
|
|
11
|
+
strikeThroughPlugin
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=strikeThroughMark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strikeThroughMark.js","sources":["../../../../../src/plugins/text/strikeThrough/strikeThroughMark.ts"],"sourcesContent":["import { createElement } from 'react'\nimport { isHotkey } from 'is-hotkey'\nimport { EditorMarkPlugin } from '../../../types'\n\nexport const strikeThroughMark = 'isStruckThrough'\nexport const strikeThroughPlugin: EditorMarkPlugin = {\n\ttype: strikeThroughMark,\n\trender: ({ children }) => createElement('s', undefined, children),\n\tisHotKey: isHotkey('mod+opt+s'),\n}\n"],"names":[],"mappings":";;AAIO,MAAM,oBAAoB;AAC1B,MAAM,sBAAwC;AAAA,EACpD,MAAM;AAAA,EACN,QAAQ,CAAC,EAAE,eAAe,cAAc,KAAK,QAAW,QAAQ;AAAA,EAChE,UAAU,SAAS,WAAW;AAC/B;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const strikeThroughMark = require("./strikeThroughMark.cjs");
|
|
4
|
+
const createMarkHtmlDeserializer = require("../../behaviour/paste/createMarkHtmlDeserializer.cjs");
|
|
5
|
+
const withStrikeThrough = () => (editor) => {
|
|
6
|
+
editor.registerMark(strikeThroughMark.strikeThroughPlugin);
|
|
7
|
+
editor.htmlDeserializer.registerPlugin(
|
|
8
|
+
createMarkHtmlDeserializer.createMarkHtmlDeserializer(
|
|
9
|
+
strikeThroughMark.strikeThroughMark,
|
|
10
|
+
(el) => el.nodeName === "S",
|
|
11
|
+
(el) => el.style.textDecoration === "line-through"
|
|
12
|
+
)
|
|
13
|
+
);
|
|
14
|
+
return editor;
|
|
15
|
+
};
|
|
16
|
+
exports.withStrikeThrough = withStrikeThrough;
|
|
17
|
+
//# sourceMappingURL=withStrikeThrough.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withStrikeThrough.cjs","sources":["../../../../../src/plugins/text/strikeThrough/withStrikeThrough.ts"],"sourcesContent":["import { Editor as SlateEditor } from 'slate'\nimport { strikeThroughMark, strikeThroughPlugin } from './strikeThroughMark'\nimport { EditorPlugin } from '../../../types'\nimport { createMarkHtmlDeserializer } from '../../behaviour'\n\n\nexport const withStrikeThrough = (): EditorPlugin => editor => {\n\teditor.registerMark(strikeThroughPlugin)\n\teditor.htmlDeserializer.registerPlugin(\n\t\tcreateMarkHtmlDeserializer(\n\t\t\tstrikeThroughMark,\n\t\t\tel => el.nodeName === 'S',\n\t\t\tel => el.style.textDecoration === 'line-through',\n\t\t),\n\t)\n\n\treturn editor\n}\n"],"names":["strikeThroughPlugin","createMarkHtmlDeserializer","strikeThroughMark"],"mappings":";;;;AAMa,MAAA,oBAAoB,MAAoB,CAAU,WAAA;AAC9D,SAAO,aAAaA,kBAAAA,mBAAmB;AACvC,SAAO,iBAAiB;AAAA,IACvBC,2BAAA;AAAA,MACCC,kBAAA;AAAA,MACA,CAAA,OAAM,GAAG,aAAa;AAAA,MACtB,CAAA,OAAM,GAAG,MAAM,mBAAmB;AAAA,IACnC;AAAA,EAAA;AAGM,SAAA;AACR;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { strikeThroughPlugin, strikeThroughMark } from "./strikeThroughMark.js";
|
|
2
|
+
import { createMarkHtmlDeserializer } from "../../behaviour/paste/createMarkHtmlDeserializer.js";
|
|
3
|
+
const withStrikeThrough = () => (editor) => {
|
|
4
|
+
editor.registerMark(strikeThroughPlugin);
|
|
5
|
+
editor.htmlDeserializer.registerPlugin(
|
|
6
|
+
createMarkHtmlDeserializer(
|
|
7
|
+
strikeThroughMark,
|
|
8
|
+
(el) => el.nodeName === "S",
|
|
9
|
+
(el) => el.style.textDecoration === "line-through"
|
|
10
|
+
)
|
|
11
|
+
);
|
|
12
|
+
return editor;
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
withStrikeThrough
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=withStrikeThrough.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withStrikeThrough.js","sources":["../../../../../src/plugins/text/strikeThrough/withStrikeThrough.ts"],"sourcesContent":["import { Editor as SlateEditor } from 'slate'\nimport { strikeThroughMark, strikeThroughPlugin } from './strikeThroughMark'\nimport { EditorPlugin } from '../../../types'\nimport { createMarkHtmlDeserializer } from '../../behaviour'\n\n\nexport const withStrikeThrough = (): EditorPlugin => editor => {\n\teditor.registerMark(strikeThroughPlugin)\n\teditor.htmlDeserializer.registerPlugin(\n\t\tcreateMarkHtmlDeserializer(\n\t\t\tstrikeThroughMark,\n\t\t\tel => el.nodeName === 'S',\n\t\t\tel => el.style.textDecoration === 'line-through',\n\t\t),\n\t)\n\n\treturn editor\n}\n"],"names":[],"mappings":";;AAMa,MAAA,oBAAoB,MAAoB,CAAU,WAAA;AAC9D,SAAO,aAAa,mBAAmB;AACvC,SAAO,iBAAiB;AAAA,IACvB;AAAA,MACC;AAAA,MACA,CAAA,OAAM,GAAG,aAAa;AAAA,MACtB,CAAA,OAAM,GAAG,MAAM,mBAAmB;AAAA,IACnC;AAAA,EAAA;AAGM,SAAA;AACR;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const isHotkey = require("is-hotkey");
|
|
4
|
+
const react = require("react");
|
|
5
|
+
const underlineMark = "isUnderlined";
|
|
6
|
+
const underlineMarkPlugin = {
|
|
7
|
+
type: underlineMark,
|
|
8
|
+
isHotKey: isHotkey.isHotkey("mod+u"),
|
|
9
|
+
render: ({ children }) => react.createElement("u", void 0, children)
|
|
10
|
+
};
|
|
11
|
+
exports.underlineMark = underlineMark;
|
|
12
|
+
exports.underlineMarkPlugin = underlineMarkPlugin;
|
|
13
|
+
//# sourceMappingURL=underlineMark.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"underlineMark.cjs","sources":["../../../../../src/plugins/text/underline/underlineMark.ts"],"sourcesContent":["import { isHotkey } from 'is-hotkey'\nimport { createElement } from 'react'\nimport { EditorMarkPlugin } from '../../../types'\n\nexport const underlineMark = 'isUnderlined'\n\nexport const underlineMarkPlugin: EditorMarkPlugin = {\n\ttype: underlineMark,\n\tisHotKey: isHotkey('mod+u'),\n\trender: ({ children }) => createElement('u', undefined, children),\n}\n"],"names":["isHotkey","createElement"],"mappings":";;;;AAIO,MAAM,gBAAgB;AAEtB,MAAM,sBAAwC;AAAA,EACpD,MAAM;AAAA,EACN,UAAUA,kBAAS,OAAO;AAAA,EAC1B,QAAQ,CAAC,EAAE,eAAeC,MAAc,cAAA,KAAK,QAAW,QAAQ;AACjE;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isHotkey } from "is-hotkey";
|
|
2
|
+
import { createElement } from "react";
|
|
3
|
+
const underlineMark = "isUnderlined";
|
|
4
|
+
const underlineMarkPlugin = {
|
|
5
|
+
type: underlineMark,
|
|
6
|
+
isHotKey: isHotkey("mod+u"),
|
|
7
|
+
render: ({ children }) => createElement("u", void 0, children)
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
underlineMark,
|
|
11
|
+
underlineMarkPlugin
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=underlineMark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"underlineMark.js","sources":["../../../../../src/plugins/text/underline/underlineMark.ts"],"sourcesContent":["import { isHotkey } from 'is-hotkey'\nimport { createElement } from 'react'\nimport { EditorMarkPlugin } from '../../../types'\n\nexport const underlineMark = 'isUnderlined'\n\nexport const underlineMarkPlugin: EditorMarkPlugin = {\n\ttype: underlineMark,\n\tisHotKey: isHotkey('mod+u'),\n\trender: ({ children }) => createElement('u', undefined, children),\n}\n"],"names":[],"mappings":";;AAIO,MAAM,gBAAgB;AAEtB,MAAM,sBAAwC;AAAA,EACpD,MAAM;AAAA,EACN,UAAU,SAAS,OAAO;AAAA,EAC1B,QAAQ,CAAC,EAAE,eAAe,cAAc,KAAK,QAAW,QAAQ;AACjE;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const underlineMark = require("./underlineMark.cjs");
|
|
4
|
+
const createMarkHtmlDeserializer = require("../../behaviour/paste/createMarkHtmlDeserializer.cjs");
|
|
5
|
+
const withUnderline = () => (editor) => {
|
|
6
|
+
editor.registerMark(underlineMark.underlineMarkPlugin);
|
|
7
|
+
editor.htmlDeserializer.registerPlugin(
|
|
8
|
+
createMarkHtmlDeserializer.createMarkHtmlDeserializer(
|
|
9
|
+
underlineMark.underlineMark,
|
|
10
|
+
(el) => el.nodeName === "U",
|
|
11
|
+
(el) => el.style.textDecoration === "underline"
|
|
12
|
+
)
|
|
13
|
+
);
|
|
14
|
+
return editor;
|
|
15
|
+
};
|
|
16
|
+
exports.withUnderline = withUnderline;
|
|
17
|
+
//# sourceMappingURL=withUnderline.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withUnderline.cjs","sources":["../../../../../src/plugins/text/underline/withUnderline.ts"],"sourcesContent":["import { underlineMark, underlineMarkPlugin } from './underlineMark'\nimport { createMarkHtmlDeserializer } from '../../behaviour'\nimport { EditorPlugin } from '../../../types'\n\n\nexport const withUnderline = (): EditorPlugin => editor => {\n\teditor.registerMark(underlineMarkPlugin)\n\teditor.htmlDeserializer.registerPlugin(\n\t\tcreateMarkHtmlDeserializer(\n\t\t\tunderlineMark,\n\t\t\tel => el.nodeName === 'U',\n\t\t\tel => el.style.textDecoration === 'underline',\n\t\t),\n\t)\n\n\treturn editor\n}\n"],"names":["underlineMarkPlugin","createMarkHtmlDeserializer","underlineMark"],"mappings":";;;;AAKa,MAAA,gBAAgB,MAAoB,CAAU,WAAA;AAC1D,SAAO,aAAaA,cAAAA,mBAAmB;AACvC,SAAO,iBAAiB;AAAA,IACvBC,2BAAA;AAAA,MACCC,cAAA;AAAA,MACA,CAAA,OAAM,GAAG,aAAa;AAAA,MACtB,CAAA,OAAM,GAAG,MAAM,mBAAmB;AAAA,IACnC;AAAA,EAAA;AAGM,SAAA;AACR;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { underlineMarkPlugin, underlineMark } from "./underlineMark.js";
|
|
2
|
+
import { createMarkHtmlDeserializer } from "../../behaviour/paste/createMarkHtmlDeserializer.js";
|
|
3
|
+
const withUnderline = () => (editor) => {
|
|
4
|
+
editor.registerMark(underlineMarkPlugin);
|
|
5
|
+
editor.htmlDeserializer.registerPlugin(
|
|
6
|
+
createMarkHtmlDeserializer(
|
|
7
|
+
underlineMark,
|
|
8
|
+
(el) => el.nodeName === "U",
|
|
9
|
+
(el) => el.style.textDecoration === "underline"
|
|
10
|
+
)
|
|
11
|
+
);
|
|
12
|
+
return editor;
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
withUnderline
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=withUnderline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withUnderline.js","sources":["../../../../../src/plugins/text/underline/withUnderline.ts"],"sourcesContent":["import { underlineMark, underlineMarkPlugin } from './underlineMark'\nimport { createMarkHtmlDeserializer } from '../../behaviour'\nimport { EditorPlugin } from '../../../types'\n\n\nexport const withUnderline = (): EditorPlugin => editor => {\n\teditor.registerMark(underlineMarkPlugin)\n\teditor.htmlDeserializer.registerPlugin(\n\t\tcreateMarkHtmlDeserializer(\n\t\t\tunderlineMark,\n\t\t\tel => el.nodeName === 'U',\n\t\t\tel => el.style.textDecoration === 'underline',\n\t\t),\n\t)\n\n\treturn editor\n}\n"],"names":[],"mappings":";;AAKa,MAAA,gBAAgB,MAAoB,CAAU,WAAA;AAC1D,SAAO,aAAa,mBAAmB;AACvC,SAAO,iBAAiB;AAAA,IACvB;AAAA,MACC;AAAA,MACA,CAAA,OAAM,GAAG,aAAa;AAAA,MACtB,CAAA,OAAM,GAAG,MAAM,mBAAmB;AAAA,IACnC;AAAA,EAAA;AAGM,SAAA;AACR;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const Slate = require("slate");
|
|
4
|
+
const EditorUtils = Slate.Editor;
|
|
5
|
+
Object.defineProperty(exports, "EditorTransforms", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: () => Slate.Transforms
|
|
8
|
+
});
|
|
9
|
+
exports.EditorUtils = EditorUtils;
|
|
10
|
+
//# sourceMappingURL=slate-reexport.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slate-reexport.cjs","sources":["../../src/slate-reexport.ts"],"sourcesContent":["import { Editor } from 'slate'\n\nexport { Transforms as EditorTransforms } from 'slate'\nexport const EditorUtils = Editor\n"],"names":["Editor"],"mappings":";;;AAGO,MAAM,cAAcA,MAAAA;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slate-reexport.js","sources":["../../src/slate-reexport.ts"],"sourcesContent":["import { Editor } from 'slate'\n\nexport { Transforms as EditorTransforms } from 'slate'\nexport const EditorUtils = Editor\n"],"names":[],"mappings":";;AAGO,MAAM,cAAc;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FieldBasicProps } from '@contember/react-binding';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
3
|
+
import { CreateEditorPublicOptions } from '../editor';
|
|
4
|
+
export type RichTextEditorProps = FieldBasicProps & CreateEditorPublicOptions & {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Rich text field supports more advanced formatting capabilities. Output of this field is a JSON.
|
|
9
|
+
*
|
|
10
|
+
* @group Form Fields
|
|
11
|
+
*/
|
|
12
|
+
export declare const RichTextEditor: FunctionComponent<RichTextEditorProps>;
|
|
13
|
+
//# sourceMappingURL=RichTextEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RichTextEditor.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmC,eAAe,EAA4B,MAAM,0BAA0B,CAAA;AACrH,OAAO,EAAE,iBAAiB,EAAkC,MAAM,OAAO,CAAA;AAGzE,OAAO,EAAgB,yBAAyB,EAAE,MAAM,WAAW,CAAA;AAInE,MAAM,MAAM,mBAAmB,GAC5B,eAAe,GACf,yBAAyB,GACzB;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CACzB,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,iBAAiB,CAAC,mBAAmB,CAqGjE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAE1B,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export interface EditorElementTriggerProps {
|
|
3
|
+
elementType: string;
|
|
4
|
+
suchThat?: Record<string, unknown>;
|
|
5
|
+
children: ReactElement;
|
|
6
|
+
}
|
|
7
|
+
export declare const EditorElementTrigger: ({ elementType, suchThat, ...props }: EditorElementTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=EditorElementTrigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorElementTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/EditorElementTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAKpC,MAAM,WAAW,yBAAyB;IACzC,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,QAAQ,EAAE,YAAY,CAAA;CACtB;AAED,eAAO,MAAM,oBAAoB,wCAAyC,yBAAyB,4CASlG,CAAA"}
|