@contember/react-slate-editor-base 2.1.0-alpha.37 → 2.1.0-alpha.39
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/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/src/components/RichTextEditor.cjs +106 -0
- package/dist/development/src/components/RichTextEditor.cjs.map +1 -0
- package/dist/development/src/components/RichTextEditor.js +106 -0
- package/dist/development/src/components/RichTextEditor.js.map +1 -0
- package/dist/development/src/components/triggers/EditorElementTrigger.cjs +20 -0
- package/dist/development/src/components/triggers/EditorElementTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/EditorElementTrigger.js +20 -0
- package/dist/development/src/components/triggers/EditorElementTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/EditorGenericTrigger.cjs +24 -0
- package/dist/development/src/components/triggers/EditorGenericTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/EditorGenericTrigger.js +24 -0
- package/dist/development/src/components/triggers/EditorGenericTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/EditorMarkTrigger.cjs +20 -0
- package/dist/development/src/components/triggers/EditorMarkTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/EditorMarkTrigger.js +20 -0
- package/dist/development/src/components/triggers/EditorMarkTrigger.js.map +1 -0
- package/dist/development/src/components/triggers/EditorWrapNodeTrigger.cjs +32 -0
- package/dist/development/src/components/triggers/EditorWrapNodeTrigger.cjs.map +1 -0
- package/dist/development/src/components/triggers/EditorWrapNodeTrigger.js +32 -0
- package/dist/development/src/components/triggers/EditorWrapNodeTrigger.js.map +1 -0
- package/dist/development/src/editor/createEditor.cjs +35 -0
- package/dist/development/src/editor/createEditor.cjs.map +1 -0
- package/dist/development/src/editor/createEditor.js +35 -0
- package/dist/development/src/editor/createEditor.js.map +1 -0
- package/dist/development/src/editor/createEditorWithEssentials.cjs +227 -0
- package/dist/development/src/editor/createEditorWithEssentials.cjs.map +1 -0
- package/dist/development/src/editor/createEditorWithEssentials.js +211 -0
- package/dist/development/src/editor/createEditorWithEssentials.js.map +1 -0
- package/dist/development/src/editor/index.cjs +44 -0
- package/dist/development/src/editor/index.cjs.map +1 -0
- package/dist/development/src/editor/index.js +44 -0
- package/dist/development/src/editor/index.js.map +1 -0
- package/dist/development/src/editor/methods/addMarks.cjs +12 -0
- package/dist/development/src/editor/methods/addMarks.cjs.map +1 -0
- package/dist/development/src/editor/methods/addMarks.js +12 -0
- package/dist/development/src/editor/methods/addMarks.js.map +1 -0
- package/dist/development/src/editor/methods/canToggleMark.cjs +7 -0
- package/dist/development/src/editor/methods/canToggleMark.cjs.map +1 -0
- package/dist/development/src/editor/methods/canToggleMark.js +7 -0
- package/dist/development/src/editor/methods/canToggleMark.js.map +1 -0
- package/dist/development/src/editor/methods/closest.cjs +18 -0
- package/dist/development/src/editor/methods/closest.cjs.map +1 -0
- package/dist/development/src/editor/methods/closest.js +18 -0
- package/dist/development/src/editor/methods/closest.js.map +1 -0
- package/dist/development/src/editor/methods/closestBlockEntry.cjs +10 -0
- package/dist/development/src/editor/methods/closestBlockEntry.cjs.map +1 -0
- package/dist/development/src/editor/methods/closestBlockEntry.js +10 -0
- package/dist/development/src/editor/methods/closestBlockEntry.js.map +1 -0
- package/dist/development/src/editor/methods/closestViableBlockContainerEntry.cjs +9 -0
- package/dist/development/src/editor/methods/closestViableBlockContainerEntry.cjs.map +1 -0
- package/dist/development/src/editor/methods/closestViableBlockContainerEntry.js +9 -0
- package/dist/development/src/editor/methods/closestViableBlockContainerEntry.js.map +1 -0
- package/dist/development/src/editor/methods/ejectElement.cjs +15 -0
- package/dist/development/src/editor/methods/ejectElement.cjs.map +1 -0
- package/dist/development/src/editor/methods/ejectElement.js +15 -0
- package/dist/development/src/editor/methods/ejectElement.js.map +1 -0
- package/dist/development/src/editor/methods/elementToSpecifics.cjs +8 -0
- package/dist/development/src/editor/methods/elementToSpecifics.cjs.map +1 -0
- package/dist/development/src/editor/methods/elementToSpecifics.js +8 -0
- package/dist/development/src/editor/methods/elementToSpecifics.js.map +1 -0
- package/dist/development/src/editor/methods/getElementDataAttributes.cjs +13 -0
- package/dist/development/src/editor/methods/getElementDataAttributes.cjs.map +1 -0
- package/dist/development/src/editor/methods/getElementDataAttributes.js +13 -0
- package/dist/development/src/editor/methods/getElementDataAttributes.js.map +1 -0
- package/dist/development/src/editor/methods/getPreviousSibling.cjs +13 -0
- package/dist/development/src/editor/methods/getPreviousSibling.cjs.map +1 -0
- package/dist/development/src/editor/methods/getPreviousSibling.js +13 -0
- package/dist/development/src/editor/methods/getPreviousSibling.js.map +1 -0
- package/dist/development/src/editor/methods/hasMarks.cjs +23 -0
- package/dist/development/src/editor/methods/hasMarks.cjs.map +1 -0
- package/dist/development/src/editor/methods/hasMarks.js +23 -0
- package/dist/development/src/editor/methods/hasMarks.js.map +1 -0
- package/dist/development/src/editor/methods/hasParentOfType.cjs +15 -0
- package/dist/development/src/editor/methods/hasParentOfType.cjs.map +1 -0
- package/dist/development/src/editor/methods/hasParentOfType.js +15 -0
- package/dist/development/src/editor/methods/hasParentOfType.js.map +1 -0
- package/dist/development/src/editor/methods/isElementType.cjs +24 -0
- package/dist/development/src/editor/methods/isElementType.cjs.map +1 -0
- package/dist/development/src/editor/methods/isElementType.js +24 -0
- package/dist/development/src/editor/methods/isElementType.js.map +1 -0
- package/dist/development/src/editor/methods/permissivelyDeserializeNodes.cjs +22 -0
- package/dist/development/src/editor/methods/permissivelyDeserializeNodes.cjs.map +1 -0
- package/dist/development/src/editor/methods/permissivelyDeserializeNodes.js +22 -0
- package/dist/development/src/editor/methods/permissivelyDeserializeNodes.js.map +1 -0
- package/dist/development/src/editor/methods/removeMarks.cjs +12 -0
- package/dist/development/src/editor/methods/removeMarks.cjs.map +1 -0
- package/dist/development/src/editor/methods/removeMarks.js +12 -0
- package/dist/development/src/editor/methods/removeMarks.js.map +1 -0
- package/dist/development/src/editor/methods/serializeNodes.cjs +15 -0
- package/dist/development/src/editor/methods/serializeNodes.cjs.map +1 -0
- package/dist/development/src/editor/methods/serializeNodes.js +15 -0
- package/dist/development/src/editor/methods/serializeNodes.js.map +1 -0
- package/dist/development/src/editor/methods/strictlyDeserializeNodes.cjs +14 -0
- package/dist/development/src/editor/methods/strictlyDeserializeNodes.cjs.map +1 -0
- package/dist/development/src/editor/methods/strictlyDeserializeNodes.js +14 -0
- package/dist/development/src/editor/methods/strictlyDeserializeNodes.js.map +1 -0
- package/dist/development/src/editor/methods/textToSpecifics.cjs +8 -0
- package/dist/development/src/editor/methods/textToSpecifics.cjs.map +1 -0
- package/dist/development/src/editor/methods/textToSpecifics.js +8 -0
- package/dist/development/src/editor/methods/textToSpecifics.js.map +1 -0
- package/dist/development/src/editor/methods/toLatestFormat.cjs +32 -0
- package/dist/development/src/editor/methods/toLatestFormat.cjs.map +1 -0
- package/dist/development/src/editor/methods/toLatestFormat.js +32 -0
- package/dist/development/src/editor/methods/toLatestFormat.js.map +1 -0
- package/dist/development/src/editor/methods/topLevelNodes.cjs +12 -0
- package/dist/development/src/editor/methods/topLevelNodes.cjs.map +1 -0
- package/dist/development/src/editor/methods/topLevelNodes.js +12 -0
- package/dist/development/src/editor/methods/topLevelNodes.js.map +1 -0
- package/dist/development/src/internal/components/DefaultElement.cjs +11 -0
- package/dist/development/src/internal/components/DefaultElement.cjs.map +1 -0
- package/dist/development/src/internal/components/DefaultElement.js +11 -0
- package/dist/development/src/internal/components/DefaultElement.js.map +1 -0
- package/dist/development/src/internal/hooks/useRichTextFieldNodes.cjs +28 -0
- package/dist/development/src/internal/hooks/useRichTextFieldNodes.cjs.map +1 -0
- package/dist/development/src/internal/hooks/useRichTextFieldNodes.js +28 -0
- package/dist/development/src/internal/hooks/useRichTextFieldNodes.js.map +1 -0
- package/dist/development/src/internal/utils/EditorPasteUtils.cjs +47 -0
- package/dist/development/src/internal/utils/EditorPasteUtils.cjs.map +1 -0
- package/dist/development/src/internal/utils/EditorPasteUtils.js +47 -0
- package/dist/development/src/internal/utils/EditorPasteUtils.js.map +1 -0
- package/dist/development/src/internal/utils/parseUrl.cjs +14 -0
- package/dist/development/src/internal/utils/parseUrl.cjs.map +1 -0
- package/dist/development/src/internal/utils/parseUrl.js +14 -0
- package/dist/development/src/internal/utils/parseUrl.js.map +1 -0
- package/dist/development/src/plugins/attributes/alignment/alignButton.cjs +21 -0
- package/dist/development/src/plugins/attributes/alignment/alignButton.cjs.map +1 -0
- package/dist/development/src/plugins/attributes/alignment/alignButton.js +21 -0
- package/dist/development/src/plugins/attributes/alignment/alignButton.js.map +1 -0
- package/dist/development/src/plugins/behaviour/paste/HtmlDeserializer.cjs +136 -0
- package/dist/development/src/plugins/behaviour/paste/HtmlDeserializer.cjs.map +1 -0
- package/dist/development/src/plugins/behaviour/paste/HtmlDeserializer.js +136 -0
- package/dist/development/src/plugins/behaviour/paste/HtmlDeserializer.js.map +1 -0
- package/dist/development/src/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs +15 -0
- package/dist/development/src/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs.map +1 -0
- package/dist/development/src/plugins/behaviour/paste/createMarkHtmlDeserializer.js +15 -0
- package/dist/development/src/plugins/behaviour/paste/createMarkHtmlDeserializer.js.map +1 -0
- package/dist/development/src/plugins/behaviour/paste/withPaste.cjs +24 -0
- package/dist/development/src/plugins/behaviour/paste/withPaste.cjs.map +1 -0
- package/dist/development/src/plugins/behaviour/paste/withPaste.js +24 -0
- package/dist/development/src/plugins/behaviour/paste/withPaste.js.map +1 -0
- package/dist/development/src/plugins/element/anchors/AnchorElement.cjs +44 -0
- package/dist/development/src/plugins/element/anchors/AnchorElement.cjs.map +1 -0
- package/dist/development/src/plugins/element/anchors/AnchorElement.js +44 -0
- package/dist/development/src/plugins/element/anchors/AnchorElement.js.map +1 -0
- package/dist/development/src/plugins/element/anchors/AnchorHtmlDeserializer.cjs +19 -0
- package/dist/development/src/plugins/element/anchors/AnchorHtmlDeserializer.cjs.map +1 -0
- package/dist/development/src/plugins/element/anchors/AnchorHtmlDeserializer.js +19 -0
- package/dist/development/src/plugins/element/anchors/AnchorHtmlDeserializer.js.map +1 -0
- package/dist/development/src/plugins/element/anchors/AnchorModifications.cjs +29 -0
- package/dist/development/src/plugins/element/anchors/AnchorModifications.cjs.map +1 -0
- package/dist/development/src/plugins/element/anchors/AnchorModifications.js +29 -0
- package/dist/development/src/plugins/element/anchors/AnchorModifications.js.map +1 -0
- package/dist/development/src/plugins/element/anchors/withAnchors.cjs +21 -0
- package/dist/development/src/plugins/element/anchors/withAnchors.cjs.map +1 -0
- package/dist/development/src/plugins/element/anchors/withAnchors.js +21 -0
- package/dist/development/src/plugins/element/anchors/withAnchors.js.map +1 -0
- package/dist/development/src/plugins/element/headings/HeadingElement.cjs +41 -0
- package/dist/development/src/plugins/element/headings/HeadingElement.cjs.map +1 -0
- package/dist/development/src/plugins/element/headings/HeadingElement.js +41 -0
- package/dist/development/src/plugins/element/headings/HeadingElement.js.map +1 -0
- package/dist/development/src/plugins/element/headings/HeadingHtmlDeserializer.cjs +22 -0
- package/dist/development/src/plugins/element/headings/HeadingHtmlDeserializer.cjs.map +1 -0
- package/dist/development/src/plugins/element/headings/HeadingHtmlDeserializer.js +22 -0
- package/dist/development/src/plugins/element/headings/HeadingHtmlDeserializer.js.map +1 -0
- package/dist/development/src/plugins/element/headings/withHeadings.cjs +70 -0
- package/dist/development/src/plugins/element/headings/withHeadings.cjs.map +1 -0
- package/dist/development/src/plugins/element/headings/withHeadings.js +70 -0
- package/dist/development/src/plugins/element/headings/withHeadings.js.map +1 -0
- package/dist/development/src/plugins/element/horizonalRules/HorizontalRuleElement.cjs +41 -0
- package/dist/development/src/plugins/element/horizonalRules/HorizontalRuleElement.cjs.map +1 -0
- package/dist/development/src/plugins/element/horizonalRules/HorizontalRuleElement.js +41 -0
- package/dist/development/src/plugins/element/horizonalRules/HorizontalRuleElement.js.map +1 -0
- package/dist/development/src/plugins/element/horizonalRules/withHorizontalRules.cjs +75 -0
- package/dist/development/src/plugins/element/horizonalRules/withHorizontalRules.cjs.map +1 -0
- package/dist/development/src/plugins/element/horizonalRules/withHorizontalRules.js +75 -0
- package/dist/development/src/plugins/element/horizonalRules/withHorizontalRules.js.map +1 -0
- package/dist/development/src/plugins/element/lists/ListElement.cjs +26 -0
- package/dist/development/src/plugins/element/lists/ListElement.cjs.map +1 -0
- package/dist/development/src/plugins/element/lists/ListElement.js +26 -0
- package/dist/development/src/plugins/element/lists/ListElement.js.map +1 -0
- package/dist/development/src/plugins/element/lists/ListHtmlDeserializer.cjs +98 -0
- package/dist/development/src/plugins/element/lists/ListHtmlDeserializer.cjs.map +1 -0
- package/dist/development/src/plugins/element/lists/ListHtmlDeserializer.js +98 -0
- package/dist/development/src/plugins/element/lists/ListHtmlDeserializer.js.map +1 -0
- package/dist/development/src/plugins/element/lists/ListItemElement.cjs +53 -0
- package/dist/development/src/plugins/element/lists/ListItemElement.cjs.map +1 -0
- package/dist/development/src/plugins/element/lists/ListItemElement.js +53 -0
- package/dist/development/src/plugins/element/lists/ListItemElement.js.map +1 -0
- package/dist/development/src/plugins/element/lists/OrderedListElement.cjs +25 -0
- package/dist/development/src/plugins/element/lists/OrderedListElement.cjs.map +1 -0
- package/dist/development/src/plugins/element/lists/OrderedListElement.js +25 -0
- package/dist/development/src/plugins/element/lists/OrderedListElement.js.map +1 -0
- package/dist/development/src/plugins/element/lists/UnorderedListElement.cjs +25 -0
- package/dist/development/src/plugins/element/lists/UnorderedListElement.cjs.map +1 -0
- package/dist/development/src/plugins/element/lists/UnorderedListElement.js +25 -0
- package/dist/development/src/plugins/element/lists/UnorderedListElement.js.map +1 -0
- package/dist/development/src/plugins/element/lists/transforms/dedentListItem.cjs +57 -0
- package/dist/development/src/plugins/element/lists/transforms/dedentListItem.cjs.map +1 -0
- package/dist/development/src/plugins/element/lists/transforms/dedentListItem.js +57 -0
- package/dist/development/src/plugins/element/lists/transforms/dedentListItem.js.map +1 -0
- package/dist/development/src/plugins/element/lists/transforms/indentListItem.cjs +57 -0
- package/dist/development/src/plugins/element/lists/transforms/indentListItem.cjs.map +1 -0
- package/dist/development/src/plugins/element/lists/transforms/indentListItem.js +57 -0
- package/dist/development/src/plugins/element/lists/transforms/indentListItem.js.map +1 -0
- package/dist/development/src/plugins/element/lists/transforms/normalizeListElement.cjs +22 -0
- package/dist/development/src/plugins/element/lists/transforms/normalizeListElement.cjs.map +1 -0
- package/dist/development/src/plugins/element/lists/transforms/normalizeListElement.js +22 -0
- package/dist/development/src/plugins/element/lists/transforms/normalizeListElement.js.map +1 -0
- package/dist/development/src/plugins/element/lists/transforms/toggleListElement.cjs +93 -0
- package/dist/development/src/plugins/element/lists/transforms/toggleListElement.cjs.map +1 -0
- package/dist/development/src/plugins/element/lists/transforms/toggleListElement.js +93 -0
- package/dist/development/src/plugins/element/lists/transforms/toggleListElement.js.map +1 -0
- package/dist/development/src/plugins/element/lists/withLists.cjs +153 -0
- package/dist/development/src/plugins/element/lists/withLists.cjs.map +1 -0
- package/dist/development/src/plugins/element/lists/withLists.js +153 -0
- package/dist/development/src/plugins/element/lists/withLists.js.map +1 -0
- package/dist/development/src/plugins/element/paragraphs/ParagraphElement.cjs +49 -0
- package/dist/development/src/plugins/element/paragraphs/ParagraphElement.cjs.map +1 -0
- package/dist/development/src/plugins/element/paragraphs/ParagraphElement.js +49 -0
- package/dist/development/src/plugins/element/paragraphs/ParagraphElement.js.map +1 -0
- package/dist/development/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs +11 -0
- package/dist/development/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs.map +1 -0
- package/dist/development/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.js +11 -0
- package/dist/development/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.js.map +1 -0
- package/dist/development/src/plugins/element/paragraphs/withParagraphs.cjs +58 -0
- package/dist/development/src/plugins/element/paragraphs/withParagraphs.cjs.map +1 -0
- package/dist/development/src/plugins/element/paragraphs/withParagraphs.js +58 -0
- package/dist/development/src/plugins/element/paragraphs/withParagraphs.js.map +1 -0
- package/dist/development/src/plugins/element/scrollTargets/ScrollTargetElement.cjs +51 -0
- package/dist/development/src/plugins/element/scrollTargets/ScrollTargetElement.cjs.map +1 -0
- package/dist/development/src/plugins/element/scrollTargets/ScrollTargetElement.js +51 -0
- package/dist/development/src/plugins/element/scrollTargets/ScrollTargetElement.js.map +1 -0
- package/dist/development/src/plugins/element/scrollTargets/withScrollTargets.cjs +9 -0
- package/dist/development/src/plugins/element/scrollTargets/withScrollTargets.cjs.map +1 -0
- package/dist/development/src/plugins/element/scrollTargets/withScrollTargets.js +9 -0
- package/dist/development/src/plugins/element/scrollTargets/withScrollTargets.js.map +1 -0
- package/dist/development/src/plugins/element/tables/TableCellElement.cjs +39 -0
- package/dist/development/src/plugins/element/tables/TableCellElement.cjs.map +1 -0
- package/dist/development/src/plugins/element/tables/TableCellElement.js +39 -0
- package/dist/development/src/plugins/element/tables/TableCellElement.js.map +1 -0
- package/dist/development/src/plugins/element/tables/TableElement.cjs +114 -0
- package/dist/development/src/plugins/element/tables/TableElement.cjs.map +1 -0
- package/dist/development/src/plugins/element/tables/TableElement.js +114 -0
- package/dist/development/src/plugins/element/tables/TableElement.js.map +1 -0
- package/dist/development/src/plugins/element/tables/TableElementSelection.cjs +20 -0
- package/dist/development/src/plugins/element/tables/TableElementSelection.cjs.map +1 -0
- package/dist/development/src/plugins/element/tables/TableElementSelection.js +20 -0
- package/dist/development/src/plugins/element/tables/TableElementSelection.js.map +1 -0
- package/dist/development/src/plugins/element/tables/TableHtmlDeserializer.cjs +36 -0
- package/dist/development/src/plugins/element/tables/TableHtmlDeserializer.cjs.map +1 -0
- package/dist/development/src/plugins/element/tables/TableHtmlDeserializer.js +36 -0
- package/dist/development/src/plugins/element/tables/TableHtmlDeserializer.js.map +1 -0
- package/dist/development/src/plugins/element/tables/TableModifications.cjs +134 -0
- package/dist/development/src/plugins/element/tables/TableModifications.cjs.map +1 -0
- package/dist/development/src/plugins/element/tables/TableModifications.js +134 -0
- package/dist/development/src/plugins/element/tables/TableModifications.js.map +1 -0
- package/dist/development/src/plugins/element/tables/TableRowElement.cjs +43 -0
- package/dist/development/src/plugins/element/tables/TableRowElement.cjs.map +1 -0
- package/dist/development/src/plugins/element/tables/TableRowElement.js +43 -0
- package/dist/development/src/plugins/element/tables/TableRowElement.js.map +1 -0
- package/dist/development/src/plugins/element/tables/gaugeTableColumnCount.cjs +25 -0
- package/dist/development/src/plugins/element/tables/gaugeTableColumnCount.cjs.map +1 -0
- package/dist/development/src/plugins/element/tables/gaugeTableColumnCount.js +25 -0
- package/dist/development/src/plugins/element/tables/gaugeTableColumnCount.js.map +1 -0
- package/dist/development/src/plugins/element/tables/withTables.cjs +283 -0
- package/dist/development/src/plugins/element/tables/withTables.cjs.map +1 -0
- package/dist/development/src/plugins/element/tables/withTables.js +283 -0
- package/dist/development/src/plugins/element/tables/withTables.js.map +1 -0
- package/dist/development/src/plugins/text/bold/boldMark.cjs +13 -0
- package/dist/development/src/plugins/text/bold/boldMark.cjs.map +1 -0
- package/dist/development/src/plugins/text/bold/boldMark.js +13 -0
- package/dist/development/src/plugins/text/bold/boldMark.js.map +1 -0
- package/dist/development/src/plugins/text/bold/withBold.cjs +16 -0
- package/dist/development/src/plugins/text/bold/withBold.cjs.map +1 -0
- package/dist/development/src/plugins/text/bold/withBold.js +16 -0
- package/dist/development/src/plugins/text/bold/withBold.js.map +1 -0
- package/dist/development/src/plugins/text/code/codeMark.cjs +13 -0
- package/dist/development/src/plugins/text/code/codeMark.cjs.map +1 -0
- package/dist/development/src/plugins/text/code/codeMark.js +13 -0
- package/dist/development/src/plugins/text/code/codeMark.js.map +1 -0
- package/dist/development/src/plugins/text/code/withCode.cjs +9 -0
- package/dist/development/src/plugins/text/code/withCode.cjs.map +1 -0
- package/dist/development/src/plugins/text/code/withCode.js +9 -0
- package/dist/development/src/plugins/text/code/withCode.js.map +1 -0
- package/dist/development/src/plugins/text/highlight/highlightMark.cjs +13 -0
- package/dist/development/src/plugins/text/highlight/highlightMark.cjs.map +1 -0
- package/dist/development/src/plugins/text/highlight/highlightMark.js +13 -0
- package/dist/development/src/plugins/text/highlight/highlightMark.js.map +1 -0
- package/dist/development/src/plugins/text/highlight/withHighlight.cjs +9 -0
- package/dist/development/src/plugins/text/highlight/withHighlight.cjs.map +1 -0
- package/dist/development/src/plugins/text/highlight/withHighlight.js +9 -0
- package/dist/development/src/plugins/text/highlight/withHighlight.js.map +1 -0
- package/dist/development/src/plugins/text/italic/italicMark.cjs +13 -0
- package/dist/development/src/plugins/text/italic/italicMark.cjs.map +1 -0
- package/dist/development/src/plugins/text/italic/italicMark.js +13 -0
- package/dist/development/src/plugins/text/italic/italicMark.js.map +1 -0
- package/dist/development/src/plugins/text/italic/withItalic.cjs +16 -0
- package/dist/development/src/plugins/text/italic/withItalic.cjs.map +1 -0
- package/dist/development/src/plugins/text/italic/withItalic.js +16 -0
- package/dist/development/src/plugins/text/italic/withItalic.js.map +1 -0
- package/dist/development/src/plugins/text/newline/withNewline.cjs +15 -0
- package/dist/development/src/plugins/text/newline/withNewline.cjs.map +1 -0
- package/dist/development/src/plugins/text/newline/withNewline.js +15 -0
- package/dist/development/src/plugins/text/newline/withNewline.js.map +1 -0
- package/dist/development/src/plugins/text/strikeThrough/strikeThroughMark.cjs +13 -0
- package/dist/development/src/plugins/text/strikeThrough/strikeThroughMark.cjs.map +1 -0
- package/dist/development/src/plugins/text/strikeThrough/strikeThroughMark.js +13 -0
- package/dist/development/src/plugins/text/strikeThrough/strikeThroughMark.js.map +1 -0
- package/dist/development/src/plugins/text/strikeThrough/withStrikeThrough.cjs +17 -0
- package/dist/development/src/plugins/text/strikeThrough/withStrikeThrough.cjs.map +1 -0
- package/dist/development/src/plugins/text/strikeThrough/withStrikeThrough.js +17 -0
- package/dist/development/src/plugins/text/strikeThrough/withStrikeThrough.js.map +1 -0
- package/dist/development/src/plugins/text/underline/underlineMark.cjs +13 -0
- package/dist/development/src/plugins/text/underline/underlineMark.cjs.map +1 -0
- package/dist/development/src/plugins/text/underline/underlineMark.js +13 -0
- package/dist/development/src/plugins/text/underline/underlineMark.js.map +1 -0
- package/dist/development/src/plugins/text/underline/withUnderline.cjs +17 -0
- package/dist/development/src/plugins/text/underline/withUnderline.cjs.map +1 -0
- package/dist/development/src/plugins/text/underline/withUnderline.js +17 -0
- package/dist/development/src/plugins/text/underline/withUnderline.js.map +1 -0
- package/dist/development/src/slate-reexport.cjs +10 -0
- package/dist/development/src/slate-reexport.cjs.map +1 -0
- package/dist/development/src/slate-reexport.js +8 -0
- package/dist/development/src/slate-reexport.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/src/components/RichTextEditor.cjs +94 -0
- package/dist/production/src/components/RichTextEditor.cjs.map +1 -0
- package/dist/production/src/components/RichTextEditor.js +94 -0
- package/dist/production/src/components/RichTextEditor.js.map +1 -0
- package/dist/production/src/components/triggers/EditorElementTrigger.cjs +16 -0
- package/dist/production/src/components/triggers/EditorElementTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/EditorElementTrigger.js +16 -0
- package/dist/production/src/components/triggers/EditorElementTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/EditorGenericTrigger.cjs +20 -0
- package/dist/production/src/components/triggers/EditorGenericTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/EditorGenericTrigger.js +20 -0
- package/dist/production/src/components/triggers/EditorGenericTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/EditorMarkTrigger.cjs +16 -0
- package/dist/production/src/components/triggers/EditorMarkTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/EditorMarkTrigger.js +16 -0
- package/dist/production/src/components/triggers/EditorMarkTrigger.js.map +1 -0
- package/dist/production/src/components/triggers/EditorWrapNodeTrigger.cjs +28 -0
- package/dist/production/src/components/triggers/EditorWrapNodeTrigger.cjs.map +1 -0
- package/dist/production/src/components/triggers/EditorWrapNodeTrigger.js +28 -0
- package/dist/production/src/components/triggers/EditorWrapNodeTrigger.js.map +1 -0
- package/dist/production/src/editor/createEditor.cjs +35 -0
- package/dist/production/src/editor/createEditor.cjs.map +1 -0
- package/dist/production/src/editor/createEditor.js +35 -0
- package/dist/production/src/editor/createEditor.js.map +1 -0
- package/dist/production/src/editor/createEditorWithEssentials.cjs +227 -0
- package/dist/production/src/editor/createEditorWithEssentials.cjs.map +1 -0
- package/dist/production/src/editor/createEditorWithEssentials.js +211 -0
- package/dist/production/src/editor/createEditorWithEssentials.js.map +1 -0
- package/dist/production/src/editor/index.cjs +44 -0
- package/dist/production/src/editor/index.cjs.map +1 -0
- package/dist/production/src/editor/index.js +44 -0
- package/dist/production/src/editor/index.js.map +1 -0
- package/dist/production/src/editor/methods/addMarks.cjs +12 -0
- package/dist/production/src/editor/methods/addMarks.cjs.map +1 -0
- package/dist/production/src/editor/methods/addMarks.js +12 -0
- package/dist/production/src/editor/methods/addMarks.js.map +1 -0
- package/dist/production/src/editor/methods/canToggleMark.cjs +7 -0
- package/dist/production/src/editor/methods/canToggleMark.cjs.map +1 -0
- package/dist/production/src/editor/methods/canToggleMark.js +7 -0
- package/dist/production/src/editor/methods/canToggleMark.js.map +1 -0
- package/dist/production/src/editor/methods/closest.cjs +18 -0
- package/dist/production/src/editor/methods/closest.cjs.map +1 -0
- package/dist/production/src/editor/methods/closest.js +18 -0
- package/dist/production/src/editor/methods/closest.js.map +1 -0
- package/dist/production/src/editor/methods/closestBlockEntry.cjs +10 -0
- package/dist/production/src/editor/methods/closestBlockEntry.cjs.map +1 -0
- package/dist/production/src/editor/methods/closestBlockEntry.js +10 -0
- package/dist/production/src/editor/methods/closestBlockEntry.js.map +1 -0
- package/dist/production/src/editor/methods/closestViableBlockContainerEntry.cjs +9 -0
- package/dist/production/src/editor/methods/closestViableBlockContainerEntry.cjs.map +1 -0
- package/dist/production/src/editor/methods/closestViableBlockContainerEntry.js +9 -0
- package/dist/production/src/editor/methods/closestViableBlockContainerEntry.js.map +1 -0
- package/dist/production/src/editor/methods/ejectElement.cjs +15 -0
- package/dist/production/src/editor/methods/ejectElement.cjs.map +1 -0
- package/dist/production/src/editor/methods/ejectElement.js +15 -0
- package/dist/production/src/editor/methods/ejectElement.js.map +1 -0
- package/dist/production/src/editor/methods/elementToSpecifics.cjs +8 -0
- package/dist/production/src/editor/methods/elementToSpecifics.cjs.map +1 -0
- package/dist/production/src/editor/methods/elementToSpecifics.js +8 -0
- package/dist/production/src/editor/methods/elementToSpecifics.js.map +1 -0
- package/dist/production/src/editor/methods/getElementDataAttributes.cjs +13 -0
- package/dist/production/src/editor/methods/getElementDataAttributes.cjs.map +1 -0
- package/dist/production/src/editor/methods/getElementDataAttributes.js +13 -0
- package/dist/production/src/editor/methods/getElementDataAttributes.js.map +1 -0
- package/dist/production/src/editor/methods/getPreviousSibling.cjs +13 -0
- package/dist/production/src/editor/methods/getPreviousSibling.cjs.map +1 -0
- package/dist/production/src/editor/methods/getPreviousSibling.js +13 -0
- package/dist/production/src/editor/methods/getPreviousSibling.js.map +1 -0
- package/dist/production/src/editor/methods/hasMarks.cjs +23 -0
- package/dist/production/src/editor/methods/hasMarks.cjs.map +1 -0
- package/dist/production/src/editor/methods/hasMarks.js +23 -0
- package/dist/production/src/editor/methods/hasMarks.js.map +1 -0
- package/dist/production/src/editor/methods/hasParentOfType.cjs +15 -0
- package/dist/production/src/editor/methods/hasParentOfType.cjs.map +1 -0
- package/dist/production/src/editor/methods/hasParentOfType.js +15 -0
- package/dist/production/src/editor/methods/hasParentOfType.js.map +1 -0
- package/dist/production/src/editor/methods/isElementType.cjs +24 -0
- package/dist/production/src/editor/methods/isElementType.cjs.map +1 -0
- package/dist/production/src/editor/methods/isElementType.js +24 -0
- package/dist/production/src/editor/methods/isElementType.js.map +1 -0
- package/dist/production/src/editor/methods/permissivelyDeserializeNodes.cjs +22 -0
- package/dist/production/src/editor/methods/permissivelyDeserializeNodes.cjs.map +1 -0
- package/dist/production/src/editor/methods/permissivelyDeserializeNodes.js +22 -0
- package/dist/production/src/editor/methods/permissivelyDeserializeNodes.js.map +1 -0
- package/dist/production/src/editor/methods/removeMarks.cjs +12 -0
- package/dist/production/src/editor/methods/removeMarks.cjs.map +1 -0
- package/dist/production/src/editor/methods/removeMarks.js +12 -0
- package/dist/production/src/editor/methods/removeMarks.js.map +1 -0
- package/dist/production/src/editor/methods/serializeNodes.cjs +15 -0
- package/dist/production/src/editor/methods/serializeNodes.cjs.map +1 -0
- package/dist/production/src/editor/methods/serializeNodes.js +15 -0
- package/dist/production/src/editor/methods/serializeNodes.js.map +1 -0
- package/dist/production/src/editor/methods/strictlyDeserializeNodes.cjs +14 -0
- package/dist/production/src/editor/methods/strictlyDeserializeNodes.cjs.map +1 -0
- package/dist/production/src/editor/methods/strictlyDeserializeNodes.js +14 -0
- package/dist/production/src/editor/methods/strictlyDeserializeNodes.js.map +1 -0
- package/dist/production/src/editor/methods/textToSpecifics.cjs +8 -0
- package/dist/production/src/editor/methods/textToSpecifics.cjs.map +1 -0
- package/dist/production/src/editor/methods/textToSpecifics.js +8 -0
- package/dist/production/src/editor/methods/textToSpecifics.js.map +1 -0
- package/dist/production/src/editor/methods/toLatestFormat.cjs +32 -0
- package/dist/production/src/editor/methods/toLatestFormat.cjs.map +1 -0
- package/dist/production/src/editor/methods/toLatestFormat.js +32 -0
- package/dist/production/src/editor/methods/toLatestFormat.js.map +1 -0
- package/dist/production/src/editor/methods/topLevelNodes.cjs +12 -0
- package/dist/production/src/editor/methods/topLevelNodes.cjs.map +1 -0
- package/dist/production/src/editor/methods/topLevelNodes.js +12 -0
- package/dist/production/src/editor/methods/topLevelNodes.js.map +1 -0
- package/dist/production/src/internal/components/DefaultElement.cjs +11 -0
- package/dist/production/src/internal/components/DefaultElement.cjs.map +1 -0
- package/dist/production/src/internal/components/DefaultElement.js +11 -0
- package/dist/production/src/internal/components/DefaultElement.js.map +1 -0
- package/dist/production/src/internal/hooks/useRichTextFieldNodes.cjs +28 -0
- package/dist/production/src/internal/hooks/useRichTextFieldNodes.cjs.map +1 -0
- package/dist/production/src/internal/hooks/useRichTextFieldNodes.js +28 -0
- package/dist/production/src/internal/hooks/useRichTextFieldNodes.js.map +1 -0
- package/dist/production/src/internal/utils/EditorPasteUtils.cjs +47 -0
- package/dist/production/src/internal/utils/EditorPasteUtils.cjs.map +1 -0
- package/dist/production/src/internal/utils/EditorPasteUtils.js +47 -0
- package/dist/production/src/internal/utils/EditorPasteUtils.js.map +1 -0
- package/dist/production/src/internal/utils/parseUrl.cjs +14 -0
- package/dist/production/src/internal/utils/parseUrl.cjs.map +1 -0
- package/dist/production/src/internal/utils/parseUrl.js +14 -0
- package/dist/production/src/internal/utils/parseUrl.js.map +1 -0
- package/dist/production/src/plugins/attributes/alignment/alignButton.cjs +21 -0
- package/dist/production/src/plugins/attributes/alignment/alignButton.cjs.map +1 -0
- package/dist/production/src/plugins/attributes/alignment/alignButton.js +21 -0
- package/dist/production/src/plugins/attributes/alignment/alignButton.js.map +1 -0
- package/dist/production/src/plugins/behaviour/paste/HtmlDeserializer.cjs +136 -0
- package/dist/production/src/plugins/behaviour/paste/HtmlDeserializer.cjs.map +1 -0
- package/dist/production/src/plugins/behaviour/paste/HtmlDeserializer.js +136 -0
- package/dist/production/src/plugins/behaviour/paste/HtmlDeserializer.js.map +1 -0
- package/dist/production/src/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs +15 -0
- package/dist/production/src/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs.map +1 -0
- package/dist/production/src/plugins/behaviour/paste/createMarkHtmlDeserializer.js +15 -0
- package/dist/production/src/plugins/behaviour/paste/createMarkHtmlDeserializer.js.map +1 -0
- package/dist/production/src/plugins/behaviour/paste/withPaste.cjs +24 -0
- package/dist/production/src/plugins/behaviour/paste/withPaste.cjs.map +1 -0
- package/dist/production/src/plugins/behaviour/paste/withPaste.js +24 -0
- package/dist/production/src/plugins/behaviour/paste/withPaste.js.map +1 -0
- package/dist/production/src/plugins/element/anchors/AnchorElement.cjs +44 -0
- package/dist/production/src/plugins/element/anchors/AnchorElement.cjs.map +1 -0
- package/dist/production/src/plugins/element/anchors/AnchorElement.js +44 -0
- package/dist/production/src/plugins/element/anchors/AnchorElement.js.map +1 -0
- package/dist/production/src/plugins/element/anchors/AnchorHtmlDeserializer.cjs +19 -0
- package/dist/production/src/plugins/element/anchors/AnchorHtmlDeserializer.cjs.map +1 -0
- package/dist/production/src/plugins/element/anchors/AnchorHtmlDeserializer.js +19 -0
- package/dist/production/src/plugins/element/anchors/AnchorHtmlDeserializer.js.map +1 -0
- package/dist/production/src/plugins/element/anchors/AnchorModifications.cjs +29 -0
- package/dist/production/src/plugins/element/anchors/AnchorModifications.cjs.map +1 -0
- package/dist/production/src/plugins/element/anchors/AnchorModifications.js +29 -0
- package/dist/production/src/plugins/element/anchors/AnchorModifications.js.map +1 -0
- package/dist/production/src/plugins/element/anchors/withAnchors.cjs +21 -0
- package/dist/production/src/plugins/element/anchors/withAnchors.cjs.map +1 -0
- package/dist/production/src/plugins/element/anchors/withAnchors.js +21 -0
- package/dist/production/src/plugins/element/anchors/withAnchors.js.map +1 -0
- package/dist/production/src/plugins/element/headings/HeadingElement.cjs +41 -0
- package/dist/production/src/plugins/element/headings/HeadingElement.cjs.map +1 -0
- package/dist/production/src/plugins/element/headings/HeadingElement.js +41 -0
- package/dist/production/src/plugins/element/headings/HeadingElement.js.map +1 -0
- package/dist/production/src/plugins/element/headings/HeadingHtmlDeserializer.cjs +22 -0
- package/dist/production/src/plugins/element/headings/HeadingHtmlDeserializer.cjs.map +1 -0
- package/dist/production/src/plugins/element/headings/HeadingHtmlDeserializer.js +22 -0
- package/dist/production/src/plugins/element/headings/HeadingHtmlDeserializer.js.map +1 -0
- package/dist/production/src/plugins/element/headings/withHeadings.cjs +70 -0
- package/dist/production/src/plugins/element/headings/withHeadings.cjs.map +1 -0
- package/dist/production/src/plugins/element/headings/withHeadings.js +70 -0
- package/dist/production/src/plugins/element/headings/withHeadings.js.map +1 -0
- package/dist/production/src/plugins/element/horizonalRules/HorizontalRuleElement.cjs +41 -0
- package/dist/production/src/plugins/element/horizonalRules/HorizontalRuleElement.cjs.map +1 -0
- package/dist/production/src/plugins/element/horizonalRules/HorizontalRuleElement.js +41 -0
- package/dist/production/src/plugins/element/horizonalRules/HorizontalRuleElement.js.map +1 -0
- package/dist/production/src/plugins/element/horizonalRules/withHorizontalRules.cjs +75 -0
- package/dist/production/src/plugins/element/horizonalRules/withHorizontalRules.cjs.map +1 -0
- package/dist/production/src/plugins/element/horizonalRules/withHorizontalRules.js +75 -0
- package/dist/production/src/plugins/element/horizonalRules/withHorizontalRules.js.map +1 -0
- package/dist/production/src/plugins/element/lists/ListElement.cjs +26 -0
- package/dist/production/src/plugins/element/lists/ListElement.cjs.map +1 -0
- package/dist/production/src/plugins/element/lists/ListElement.js +26 -0
- package/dist/production/src/plugins/element/lists/ListElement.js.map +1 -0
- package/dist/production/src/plugins/element/lists/ListHtmlDeserializer.cjs +98 -0
- package/dist/production/src/plugins/element/lists/ListHtmlDeserializer.cjs.map +1 -0
- package/dist/production/src/plugins/element/lists/ListHtmlDeserializer.js +98 -0
- package/dist/production/src/plugins/element/lists/ListHtmlDeserializer.js.map +1 -0
- package/dist/production/src/plugins/element/lists/ListItemElement.cjs +53 -0
- package/dist/production/src/plugins/element/lists/ListItemElement.cjs.map +1 -0
- package/dist/production/src/plugins/element/lists/ListItemElement.js +53 -0
- package/dist/production/src/plugins/element/lists/ListItemElement.js.map +1 -0
- package/dist/production/src/plugins/element/lists/OrderedListElement.cjs +25 -0
- package/dist/production/src/plugins/element/lists/OrderedListElement.cjs.map +1 -0
- package/dist/production/src/plugins/element/lists/OrderedListElement.js +25 -0
- package/dist/production/src/plugins/element/lists/OrderedListElement.js.map +1 -0
- package/dist/production/src/plugins/element/lists/UnorderedListElement.cjs +25 -0
- package/dist/production/src/plugins/element/lists/UnorderedListElement.cjs.map +1 -0
- package/dist/production/src/plugins/element/lists/UnorderedListElement.js +25 -0
- package/dist/production/src/plugins/element/lists/UnorderedListElement.js.map +1 -0
- package/dist/production/src/plugins/element/lists/transforms/dedentListItem.cjs +57 -0
- package/dist/production/src/plugins/element/lists/transforms/dedentListItem.cjs.map +1 -0
- package/dist/production/src/plugins/element/lists/transforms/dedentListItem.js +57 -0
- package/dist/production/src/plugins/element/lists/transforms/dedentListItem.js.map +1 -0
- package/dist/production/src/plugins/element/lists/transforms/indentListItem.cjs +57 -0
- package/dist/production/src/plugins/element/lists/transforms/indentListItem.cjs.map +1 -0
- package/dist/production/src/plugins/element/lists/transforms/indentListItem.js +57 -0
- package/dist/production/src/plugins/element/lists/transforms/indentListItem.js.map +1 -0
- package/dist/production/src/plugins/element/lists/transforms/normalizeListElement.cjs +22 -0
- package/dist/production/src/plugins/element/lists/transforms/normalizeListElement.cjs.map +1 -0
- package/dist/production/src/plugins/element/lists/transforms/normalizeListElement.js +22 -0
- package/dist/production/src/plugins/element/lists/transforms/normalizeListElement.js.map +1 -0
- package/dist/production/src/plugins/element/lists/transforms/toggleListElement.cjs +93 -0
- package/dist/production/src/plugins/element/lists/transforms/toggleListElement.cjs.map +1 -0
- package/dist/production/src/plugins/element/lists/transforms/toggleListElement.js +93 -0
- package/dist/production/src/plugins/element/lists/transforms/toggleListElement.js.map +1 -0
- package/dist/production/src/plugins/element/lists/withLists.cjs +153 -0
- package/dist/production/src/plugins/element/lists/withLists.cjs.map +1 -0
- package/dist/production/src/plugins/element/lists/withLists.js +153 -0
- package/dist/production/src/plugins/element/lists/withLists.js.map +1 -0
- package/dist/production/src/plugins/element/paragraphs/ParagraphElement.cjs +49 -0
- package/dist/production/src/plugins/element/paragraphs/ParagraphElement.cjs.map +1 -0
- package/dist/production/src/plugins/element/paragraphs/ParagraphElement.js +49 -0
- package/dist/production/src/plugins/element/paragraphs/ParagraphElement.js.map +1 -0
- package/dist/production/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs +11 -0
- package/dist/production/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs.map +1 -0
- package/dist/production/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.js +11 -0
- package/dist/production/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.js.map +1 -0
- package/dist/production/src/plugins/element/paragraphs/withParagraphs.cjs +58 -0
- package/dist/production/src/plugins/element/paragraphs/withParagraphs.cjs.map +1 -0
- package/dist/production/src/plugins/element/paragraphs/withParagraphs.js +58 -0
- package/dist/production/src/plugins/element/paragraphs/withParagraphs.js.map +1 -0
- package/dist/production/src/plugins/element/scrollTargets/ScrollTargetElement.cjs +51 -0
- package/dist/production/src/plugins/element/scrollTargets/ScrollTargetElement.cjs.map +1 -0
- package/dist/production/src/plugins/element/scrollTargets/ScrollTargetElement.js +51 -0
- package/dist/production/src/plugins/element/scrollTargets/ScrollTargetElement.js.map +1 -0
- package/dist/production/src/plugins/element/scrollTargets/withScrollTargets.cjs +9 -0
- package/dist/production/src/plugins/element/scrollTargets/withScrollTargets.cjs.map +1 -0
- package/dist/production/src/plugins/element/scrollTargets/withScrollTargets.js +9 -0
- package/dist/production/src/plugins/element/scrollTargets/withScrollTargets.js.map +1 -0
- package/dist/production/src/plugins/element/tables/TableCellElement.cjs +39 -0
- package/dist/production/src/plugins/element/tables/TableCellElement.cjs.map +1 -0
- package/dist/production/src/plugins/element/tables/TableCellElement.js +39 -0
- package/dist/production/src/plugins/element/tables/TableCellElement.js.map +1 -0
- package/dist/production/src/plugins/element/tables/TableElement.cjs +114 -0
- package/dist/production/src/plugins/element/tables/TableElement.cjs.map +1 -0
- package/dist/production/src/plugins/element/tables/TableElement.js +114 -0
- package/dist/production/src/plugins/element/tables/TableElement.js.map +1 -0
- package/dist/production/src/plugins/element/tables/TableElementSelection.cjs +20 -0
- package/dist/production/src/plugins/element/tables/TableElementSelection.cjs.map +1 -0
- package/dist/production/src/plugins/element/tables/TableElementSelection.js +20 -0
- package/dist/production/src/plugins/element/tables/TableElementSelection.js.map +1 -0
- package/dist/production/src/plugins/element/tables/TableHtmlDeserializer.cjs +36 -0
- package/dist/production/src/plugins/element/tables/TableHtmlDeserializer.cjs.map +1 -0
- package/dist/production/src/plugins/element/tables/TableHtmlDeserializer.js +36 -0
- package/dist/production/src/plugins/element/tables/TableHtmlDeserializer.js.map +1 -0
- package/dist/production/src/plugins/element/tables/TableModifications.cjs +134 -0
- package/dist/production/src/plugins/element/tables/TableModifications.cjs.map +1 -0
- package/dist/production/src/plugins/element/tables/TableModifications.js +134 -0
- package/dist/production/src/plugins/element/tables/TableModifications.js.map +1 -0
- package/dist/production/src/plugins/element/tables/TableRowElement.cjs +43 -0
- package/dist/production/src/plugins/element/tables/TableRowElement.cjs.map +1 -0
- package/dist/production/src/plugins/element/tables/TableRowElement.js +43 -0
- package/dist/production/src/plugins/element/tables/TableRowElement.js.map +1 -0
- package/dist/production/src/plugins/element/tables/gaugeTableColumnCount.cjs +25 -0
- package/dist/production/src/plugins/element/tables/gaugeTableColumnCount.cjs.map +1 -0
- package/dist/production/src/plugins/element/tables/gaugeTableColumnCount.js +25 -0
- package/dist/production/src/plugins/element/tables/gaugeTableColumnCount.js.map +1 -0
- package/dist/production/src/plugins/element/tables/withTables.cjs +283 -0
- package/dist/production/src/plugins/element/tables/withTables.cjs.map +1 -0
- package/dist/production/src/plugins/element/tables/withTables.js +283 -0
- package/dist/production/src/plugins/element/tables/withTables.js.map +1 -0
- package/dist/production/src/plugins/text/bold/boldMark.cjs +13 -0
- package/dist/production/src/plugins/text/bold/boldMark.cjs.map +1 -0
- package/dist/production/src/plugins/text/bold/boldMark.js +13 -0
- package/dist/production/src/plugins/text/bold/boldMark.js.map +1 -0
- package/dist/production/src/plugins/text/bold/withBold.cjs +16 -0
- package/dist/production/src/plugins/text/bold/withBold.cjs.map +1 -0
- package/dist/production/src/plugins/text/bold/withBold.js +16 -0
- package/dist/production/src/plugins/text/bold/withBold.js.map +1 -0
- package/dist/production/src/plugins/text/code/codeMark.cjs +13 -0
- package/dist/production/src/plugins/text/code/codeMark.cjs.map +1 -0
- package/dist/production/src/plugins/text/code/codeMark.js +13 -0
- package/dist/production/src/plugins/text/code/codeMark.js.map +1 -0
- package/dist/production/src/plugins/text/code/withCode.cjs +9 -0
- package/dist/production/src/plugins/text/code/withCode.cjs.map +1 -0
- package/dist/production/src/plugins/text/code/withCode.js +9 -0
- package/dist/production/src/plugins/text/code/withCode.js.map +1 -0
- package/dist/production/src/plugins/text/highlight/highlightMark.cjs +13 -0
- package/dist/production/src/plugins/text/highlight/highlightMark.cjs.map +1 -0
- package/dist/production/src/plugins/text/highlight/highlightMark.js +13 -0
- package/dist/production/src/plugins/text/highlight/highlightMark.js.map +1 -0
- package/dist/production/src/plugins/text/highlight/withHighlight.cjs +9 -0
- package/dist/production/src/plugins/text/highlight/withHighlight.cjs.map +1 -0
- package/dist/production/src/plugins/text/highlight/withHighlight.js +9 -0
- package/dist/production/src/plugins/text/highlight/withHighlight.js.map +1 -0
- package/dist/production/src/plugins/text/italic/italicMark.cjs +13 -0
- package/dist/production/src/plugins/text/italic/italicMark.cjs.map +1 -0
- package/dist/production/src/plugins/text/italic/italicMark.js +13 -0
- package/dist/production/src/plugins/text/italic/italicMark.js.map +1 -0
- package/dist/production/src/plugins/text/italic/withItalic.cjs +16 -0
- package/dist/production/src/plugins/text/italic/withItalic.cjs.map +1 -0
- package/dist/production/src/plugins/text/italic/withItalic.js +16 -0
- package/dist/production/src/plugins/text/italic/withItalic.js.map +1 -0
- package/dist/production/src/plugins/text/newline/withNewline.cjs +15 -0
- package/dist/production/src/plugins/text/newline/withNewline.cjs.map +1 -0
- package/dist/production/src/plugins/text/newline/withNewline.js +15 -0
- package/dist/production/src/plugins/text/newline/withNewline.js.map +1 -0
- package/dist/production/src/plugins/text/strikeThrough/strikeThroughMark.cjs +13 -0
- package/dist/production/src/plugins/text/strikeThrough/strikeThroughMark.cjs.map +1 -0
- package/dist/production/src/plugins/text/strikeThrough/strikeThroughMark.js +13 -0
- package/dist/production/src/plugins/text/strikeThrough/strikeThroughMark.js.map +1 -0
- package/dist/production/src/plugins/text/strikeThrough/withStrikeThrough.cjs +17 -0
- package/dist/production/src/plugins/text/strikeThrough/withStrikeThrough.cjs.map +1 -0
- package/dist/production/src/plugins/text/strikeThrough/withStrikeThrough.js +17 -0
- package/dist/production/src/plugins/text/strikeThrough/withStrikeThrough.js.map +1 -0
- package/dist/production/src/plugins/text/underline/underlineMark.cjs +13 -0
- package/dist/production/src/plugins/text/underline/underlineMark.cjs.map +1 -0
- package/dist/production/src/plugins/text/underline/underlineMark.js +13 -0
- package/dist/production/src/plugins/text/underline/underlineMark.js.map +1 -0
- package/dist/production/src/plugins/text/underline/withUnderline.cjs +17 -0
- package/dist/production/src/plugins/text/underline/withUnderline.cjs.map +1 -0
- package/dist/production/src/plugins/text/underline/withUnderline.js +17 -0
- package/dist/production/src/plugins/text/underline/withUnderline.js.map +1 -0
- package/dist/production/src/slate-reexport.cjs +10 -0
- package/dist/production/src/slate-reexport.cjs.map +1 -0
- package/dist/production/src/slate-reexport.js +8 -0
- package/dist/production/src/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 +4 -0
- package/dist/types/editor/methods/addMarks.d.ts.map +1 -0
- package/dist/types/editor/methods/canToggleMark.d.ts +3 -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 +3 -0
- package/dist/types/editor/methods/elementToSpecifics.d.ts.map +1 -0
- package/dist/types/editor/methods/getElementDataAttributes.d.ts +7 -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 +4 -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 +4 -0
- package/dist/types/editor/methods/textToSpecifics.d.ts.map +1 -0
- package/dist/types/editor/methods/toLatestFormat.d.ts +4 -0
- package/dist/types/editor/methods/toLatestFormat.d.ts.map +1 -0
- package/dist/types/editor/methods/topLevelNodes.d.ts +3 -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 +7 -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 +7 -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 +7 -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 +11 -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 +7 -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 +7 -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/TableHtmlDeserializer.d.ts +3 -0
- package/dist/types/plugins/element/tables/TableHtmlDeserializer.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 +11 -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 +58 -0
- package/dist/types/types/plugins.d.ts.map +1 -0
- package/package.json +14 -14
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withItalic.js","sources":["../../../../../../../packages/react-slate-editor-base/src/plugins/text/italic/withItalic.ts"],"sourcesContent":["import { italicMark, italicMarkPlugin } from './italicMark'\nimport { EditorPlugin } from '../../../types'\nimport { createMarkHtmlDeserializer } from '../../behaviour'\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":";;AAIO,MAAM,aAAa,MAAoB,CAAA,WAAU;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,IAAA;AAAA,EACzD;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":["../../../../../../../packages/react-slate-editor-base/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":";;;AAGO,MAAM,cAAc,MAAoB,CAAA,WAAU;AACxD,QAAM,EAAE,cAAc;AACtB,SAAO,YAAY,CAAA,MAAK;AACvB,QAAI,EAAE,QAAQ,WAAW,CAAC,EAAE,UAAU;AACrC,aAAO,UAAU,CAAC;AAAA,IACnB;AACA,MAAE,eAAA;AACFA,qBAAW,WAAW,QAAQ,IAAI;AAAA,EACnC;AACD;;"}
|
|
@@ -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":["../../../../../../../packages/react-slate-editor-base/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":";AAGO,MAAM,cAAc,MAAoB,CAAA,WAAU;AACxD,QAAM,EAAE,cAAc;AACtB,SAAO,YAAY,CAAA,MAAK;AACvB,QAAI,EAAE,QAAQ,WAAW,CAAC,EAAE,UAAU;AACrC,aAAO,UAAU,CAAC;AAAA,IACnB;AACA,MAAE,eAAA;AACF,eAAW,WAAW,QAAQ,IAAI;AAAA,EACnC;AACD;"}
|
|
@@ -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":["../../../../../../../packages/react-slate-editor-base/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,SAAA,MAAeA,MAAAA,cAAc,KAAK,QAAW,QAAQ;AAAA,EAChE,UAAUC,SAAAA,SAAS,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":["../../../../../../../packages/react-slate-editor-base/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,SAAA,MAAe,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":["../../../../../../../packages/react-slate-editor-base/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\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":";;;;AAKO,MAAM,oBAAoB,MAAoB,CAAA,WAAU;AAC9D,SAAO,aAAaA,qCAAmB;AACvC,SAAO,iBAAiB;AAAA,IACvBC,2BAAAA;AAAAA,MACCC,kBAAAA;AAAAA,MACA,CAAA,OAAM,GAAG,aAAa;AAAA,MACtB,CAAA,OAAM,GAAG,MAAM,mBAAmB;AAAA,IAAA;AAAA,EACnC;AAGD,SAAO;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":["../../../../../../../packages/react-slate-editor-base/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\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":";;AAKO,MAAM,oBAAoB,MAAoB,CAAA,WAAU;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,IAAA;AAAA,EACnC;AAGD,SAAO;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":["../../../../../../../packages/react-slate-editor-base/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,SAAAA,SAAS,OAAO;AAAA,EAC1B,QAAQ,CAAC,EAAE,SAAA,MAAeC,MAAAA,cAAc,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":["../../../../../../../packages/react-slate-editor-base/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,SAAA,MAAe,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":["../../../../../../../packages/react-slate-editor-base/src/plugins/text/underline/withUnderline.ts"],"sourcesContent":["import { underlineMark, underlineMarkPlugin } from './underlineMark'\nimport { createMarkHtmlDeserializer } from '../../behaviour'\nimport { EditorPlugin } from '../../../types'\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":";;;;AAIO,MAAM,gBAAgB,MAAoB,CAAA,WAAU;AAC1D,SAAO,aAAaA,iCAAmB;AACvC,SAAO,iBAAiB;AAAA,IACvBC,2BAAAA;AAAAA,MACCC,cAAAA;AAAAA,MACA,CAAA,OAAM,GAAG,aAAa;AAAA,MACtB,CAAA,OAAM,GAAG,MAAM,mBAAmB;AAAA,IAAA;AAAA,EACnC;AAGD,SAAO;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":["../../../../../../../packages/react-slate-editor-base/src/plugins/text/underline/withUnderline.ts"],"sourcesContent":["import { underlineMark, underlineMarkPlugin } from './underlineMark'\nimport { createMarkHtmlDeserializer } from '../../behaviour'\nimport { EditorPlugin } from '../../../types'\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":";;AAIO,MAAM,gBAAgB,MAAoB,CAAA,WAAU;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,IAAA;AAAA,EACnC;AAGD,SAAO;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":["../../../../packages/react-slate-editor-base/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":["../../../../packages/react-slate-editor-base/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,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const index = require("./src/editor/index.cjs");
|
|
4
|
+
const slateReexport = require("./src/slate-reexport.cjs");
|
|
5
|
+
const EditorElementTrigger = require("./src/components/triggers/EditorElementTrigger.cjs");
|
|
6
|
+
const EditorGenericTrigger = require("./src/components/triggers/EditorGenericTrigger.cjs");
|
|
7
|
+
const EditorMarkTrigger = require("./src/components/triggers/EditorMarkTrigger.cjs");
|
|
8
|
+
const Slate = require("slate");
|
|
9
|
+
const EditorWrapNodeTrigger = require("./src/components/triggers/EditorWrapNodeTrigger.cjs");
|
|
10
|
+
const RichTextEditor = require("./src/components/RichTextEditor.cjs");
|
|
11
|
+
const TableModifications = require("./src/plugins/element/tables/TableModifications.cjs");
|
|
12
|
+
const AnchorElement = require("./src/plugins/element/anchors/AnchorElement.cjs");
|
|
13
|
+
const AnchorHtmlDeserializer = require("./src/plugins/element/anchors/AnchorHtmlDeserializer.cjs");
|
|
14
|
+
const boldMark = require("./src/plugins/text/bold/boldMark.cjs");
|
|
15
|
+
const codeMark = require("./src/plugins/text/code/codeMark.cjs");
|
|
16
|
+
const alignButton = require("./src/plugins/attributes/alignment/alignButton.cjs");
|
|
17
|
+
const createEditor = require("./src/editor/createEditor.cjs");
|
|
18
|
+
const TableCellElement = require("./src/plugins/element/tables/TableCellElement.cjs");
|
|
19
|
+
const TableElement = require("./src/plugins/element/tables/TableElement.cjs");
|
|
20
|
+
const TableRowElement = require("./src/plugins/element/tables/TableRowElement.cjs");
|
|
21
|
+
const createMarkHtmlDeserializer = require("./src/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs");
|
|
22
|
+
const HeadingElement = require("./src/plugins/element/headings/HeadingElement.cjs");
|
|
23
|
+
const HeadingHtmlDeserializer = require("./src/plugins/element/headings/HeadingHtmlDeserializer.cjs");
|
|
24
|
+
const highlightMark = require("./src/plugins/text/highlight/highlightMark.cjs");
|
|
25
|
+
const HorizontalRuleElement = require("./src/plugins/element/horizonalRules/HorizontalRuleElement.cjs");
|
|
26
|
+
const ListItemElement = require("./src/plugins/element/lists/ListItemElement.cjs");
|
|
27
|
+
const OrderedListElement = require("./src/plugins/element/lists/OrderedListElement.cjs");
|
|
28
|
+
const ParagraphElement = require("./src/plugins/element/paragraphs/ParagraphElement.cjs");
|
|
29
|
+
const ScrollTargetElement = require("./src/plugins/element/scrollTargets/ScrollTargetElement.cjs");
|
|
30
|
+
const UnorderedListElement = require("./src/plugins/element/lists/UnorderedListElement.cjs");
|
|
31
|
+
const italicMark = require("./src/plugins/text/italic/italicMark.cjs");
|
|
32
|
+
const ListHtmlDeserializer = require("./src/plugins/element/lists/ListHtmlDeserializer.cjs");
|
|
33
|
+
const ParagraphHtmlDeserializer = require("./src/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs");
|
|
34
|
+
const strikeThroughMark = require("./src/plugins/text/strikeThrough/strikeThroughMark.cjs");
|
|
35
|
+
const underlineMark = require("./src/plugins/text/underline/underlineMark.cjs");
|
|
36
|
+
const withAnchors = require("./src/plugins/element/anchors/withAnchors.cjs");
|
|
37
|
+
const withBold = require("./src/plugins/text/bold/withBold.cjs");
|
|
38
|
+
const withCode = require("./src/plugins/text/code/withCode.cjs");
|
|
39
|
+
const withHeadings = require("./src/plugins/element/headings/withHeadings.cjs");
|
|
40
|
+
const withHighlight = require("./src/plugins/text/highlight/withHighlight.cjs");
|
|
41
|
+
const withHorizontalRules = require("./src/plugins/element/horizonalRules/withHorizontalRules.cjs");
|
|
42
|
+
const withItalic = require("./src/plugins/text/italic/withItalic.cjs");
|
|
43
|
+
const withLists = require("./src/plugins/element/lists/withLists.cjs");
|
|
44
|
+
const withNewline = require("./src/plugins/text/newline/withNewline.cjs");
|
|
45
|
+
const withParagraphs = require("./src/plugins/element/paragraphs/withParagraphs.cjs");
|
|
46
|
+
const withPaste = require("./src/plugins/behaviour/paste/withPaste.cjs");
|
|
47
|
+
const withScrollTargets = require("./src/plugins/element/scrollTargets/withScrollTargets.cjs");
|
|
48
|
+
const withStrikeThrough = require("./src/plugins/text/strikeThrough/withStrikeThrough.cjs");
|
|
49
|
+
const withTables = require("./src/plugins/element/tables/withTables.cjs");
|
|
50
|
+
const withUnderline = require("./src/plugins/text/underline/withUnderline.cjs");
|
|
51
|
+
exports.ContemberEditor = index.ContemberEditor;
|
|
52
|
+
exports.EditorUtils = slateReexport.EditorUtils;
|
|
53
|
+
exports.EditorElementTrigger = EditorElementTrigger.EditorElementTrigger;
|
|
54
|
+
exports.EditorGenericTrigger = EditorGenericTrigger.EditorGenericTrigger;
|
|
55
|
+
exports.EditorMarkTrigger = EditorMarkTrigger.EditorMarkTrigger;
|
|
56
|
+
Object.defineProperty(exports, "EditorTransforms", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: () => Slate.Transforms
|
|
59
|
+
});
|
|
60
|
+
exports.EditorWrapNodeTrigger = EditorWrapNodeTrigger.EditorWrapNodeTrigger;
|
|
61
|
+
exports.RichTextEditor = RichTextEditor.RichTextEditor;
|
|
62
|
+
exports.TableModifications = TableModifications.TableModifications;
|
|
63
|
+
exports.anchorElementPlugin = AnchorElement.anchorElementPlugin;
|
|
64
|
+
exports.anchorElementType = AnchorElement.anchorElementType;
|
|
65
|
+
exports.isAnchorElement = AnchorElement.isAnchorElement;
|
|
66
|
+
exports.isAnchorElementActive = AnchorElement.isAnchorElementActive;
|
|
67
|
+
exports.anchorHtmlDeserializer = AnchorHtmlDeserializer.anchorHtmlDeserializer;
|
|
68
|
+
exports.boldMark = boldMark.boldMark;
|
|
69
|
+
exports.boldMarkPlugin = boldMark.boldMarkPlugin;
|
|
70
|
+
exports.codeMark = codeMark.codeMark;
|
|
71
|
+
exports.codeMarkPlugin = codeMark.codeMarkPlugin;
|
|
72
|
+
exports.createAlignHandler = alignButton.createAlignHandler;
|
|
73
|
+
exports.createEditor = createEditor.createEditor;
|
|
74
|
+
exports.createEmptyTableCellElement = TableCellElement.createEmptyTableCellElement;
|
|
75
|
+
exports.isTableCellElement = TableCellElement.isTableCellElement;
|
|
76
|
+
exports.tableCellElementPlugin = TableCellElement.tableCellElementPlugin;
|
|
77
|
+
exports.tableCellElementType = TableCellElement.tableCellElementType;
|
|
78
|
+
exports.createEmptyTableElement = TableElement.createEmptyTableElement;
|
|
79
|
+
exports.getTableElementColumnCount = TableElement.getTableElementColumnCount;
|
|
80
|
+
exports.getTableElementRowCount = TableElement.getTableElementRowCount;
|
|
81
|
+
exports.isTableElement = TableElement.isTableElement;
|
|
82
|
+
exports.tableElementPlugin = TableElement.tableElementPlugin;
|
|
83
|
+
exports.tableElementType = TableElement.tableElementType;
|
|
84
|
+
exports.createEmptyTableRowElement = TableRowElement.createEmptyTableRowElement;
|
|
85
|
+
exports.isTableRowElement = TableRowElement.isTableRowElement;
|
|
86
|
+
exports.tableRowElementPlugin = TableRowElement.tableRowElementPlugin;
|
|
87
|
+
exports.tableRowElementType = TableRowElement.tableRowElementType;
|
|
88
|
+
exports.createMarkHtmlDeserializer = createMarkHtmlDeserializer.createMarkHtmlDeserializer;
|
|
89
|
+
exports.ejectHeadingElement = HeadingElement.ejectHeadingElement;
|
|
90
|
+
exports.headingElementPlugin = HeadingElement.headingElementPlugin;
|
|
91
|
+
exports.headingElementType = HeadingElement.headingElementType;
|
|
92
|
+
exports.isHeadingElement = HeadingElement.isHeadingElement;
|
|
93
|
+
exports.headingHtmlDeserializer = HeadingHtmlDeserializer.headingHtmlDeserializer;
|
|
94
|
+
exports.highlightMark = highlightMark.highlightMark;
|
|
95
|
+
exports.highlightMarkPlugin = highlightMark.highlightMarkPlugin;
|
|
96
|
+
exports.horizontalRuleElementPlugin = HorizontalRuleElement.horizontalRuleElementPlugin;
|
|
97
|
+
exports.horizontalRuleElementType = HorizontalRuleElement.horizontalRuleElementType;
|
|
98
|
+
exports.isHorizontalRuleElement = HorizontalRuleElement.isHorizontalRuleElement;
|
|
99
|
+
exports.isHorizontalRuleElementActive = HorizontalRuleElement.isHorizontalRuleElementActive;
|
|
100
|
+
exports.isListItemElement = ListItemElement.isListItemElement;
|
|
101
|
+
exports.listItemElementPlugin = ListItemElement.listItemElementPlugin;
|
|
102
|
+
exports.listItemElementType = ListItemElement.listItemElementType;
|
|
103
|
+
exports.isOrderedListElement = OrderedListElement.isOrderedListElement;
|
|
104
|
+
exports.orderedListElementPlugin = OrderedListElement.orderedListElementPlugin;
|
|
105
|
+
exports.orderedListElementType = OrderedListElement.orderedListElementType;
|
|
106
|
+
exports.isParagraphElement = ParagraphElement.isParagraphElement;
|
|
107
|
+
exports.paragraphElementPlugin = ParagraphElement.paragraphElementPlugin;
|
|
108
|
+
exports.paragraphElementType = ParagraphElement.paragraphElementType;
|
|
109
|
+
exports.isScrollTargetElement = ScrollTargetElement.isScrollTargetElement;
|
|
110
|
+
exports.isScrollTargetElementActive = ScrollTargetElement.isScrollTargetElementActive;
|
|
111
|
+
exports.scrollTargetElementPlugin = ScrollTargetElement.scrollTargetElementPlugin;
|
|
112
|
+
exports.scrollTargetElementType = ScrollTargetElement.scrollTargetElementType;
|
|
113
|
+
exports.isUnorderedListElement = UnorderedListElement.isUnorderedListElement;
|
|
114
|
+
exports.unorderedListElementPlugin = UnorderedListElement.unorderedListElementPlugin;
|
|
115
|
+
exports.unorderedListElementType = UnorderedListElement.unorderedListElementType;
|
|
116
|
+
exports.italicMark = italicMark.italicMark;
|
|
117
|
+
exports.italicMarkPlugin = italicMark.italicMarkPlugin;
|
|
118
|
+
exports.listHtmlDeserializerFactory = ListHtmlDeserializer.listHtmlDeserializerFactory;
|
|
119
|
+
exports.paragraphHtmlDeserializer = ParagraphHtmlDeserializer.paragraphHtmlDeserializer;
|
|
120
|
+
exports.strikeThroughMark = strikeThroughMark.strikeThroughMark;
|
|
121
|
+
exports.strikeThroughPlugin = strikeThroughMark.strikeThroughPlugin;
|
|
122
|
+
exports.underlineMark = underlineMark.underlineMark;
|
|
123
|
+
exports.underlineMarkPlugin = underlineMark.underlineMarkPlugin;
|
|
124
|
+
exports.withAnchors = withAnchors.withAnchors;
|
|
125
|
+
exports.withBold = withBold.withBold;
|
|
126
|
+
exports.withCode = withCode.withCode;
|
|
127
|
+
exports.withHeadings = withHeadings.withHeadings;
|
|
128
|
+
exports.withHighlight = withHighlight.withHighlight;
|
|
129
|
+
exports.withHorizontalRules = withHorizontalRules.withHorizontalRules;
|
|
130
|
+
exports.withItalic = withItalic.withItalic;
|
|
131
|
+
exports.withLists = withLists.withLists;
|
|
132
|
+
exports.withNewline = withNewline.withNewline;
|
|
133
|
+
exports.withParagraphs = withParagraphs.withParagraphs;
|
|
134
|
+
exports.withPaste = withPaste.withPaste;
|
|
135
|
+
exports.withScrollTargets = withScrollTargets.withScrollTargets;
|
|
136
|
+
exports.withStrikeThrough = withStrikeThrough.withStrikeThrough;
|
|
137
|
+
exports.withTables = withTables.withTables;
|
|
138
|
+
exports.withUnderline = withUnderline.withUnderline;
|
|
139
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { ContemberEditor } from "./src/editor/index.js";
|
|
2
|
+
import { EditorUtils } from "./src/slate-reexport.js";
|
|
3
|
+
import { EditorElementTrigger } from "./src/components/triggers/EditorElementTrigger.js";
|
|
4
|
+
import { EditorGenericTrigger } from "./src/components/triggers/EditorGenericTrigger.js";
|
|
5
|
+
import { EditorMarkTrigger } from "./src/components/triggers/EditorMarkTrigger.js";
|
|
6
|
+
import { Transforms } from "slate";
|
|
7
|
+
import { EditorWrapNodeTrigger } from "./src/components/triggers/EditorWrapNodeTrigger.js";
|
|
8
|
+
import { RichTextEditor } from "./src/components/RichTextEditor.js";
|
|
9
|
+
import { TableModifications } from "./src/plugins/element/tables/TableModifications.js";
|
|
10
|
+
import { anchorElementPlugin, anchorElementType, isAnchorElement, isAnchorElementActive } from "./src/plugins/element/anchors/AnchorElement.js";
|
|
11
|
+
import { anchorHtmlDeserializer } from "./src/plugins/element/anchors/AnchorHtmlDeserializer.js";
|
|
12
|
+
import { boldMark, boldMarkPlugin } from "./src/plugins/text/bold/boldMark.js";
|
|
13
|
+
import { codeMark, codeMarkPlugin } from "./src/plugins/text/code/codeMark.js";
|
|
14
|
+
import { createAlignHandler } from "./src/plugins/attributes/alignment/alignButton.js";
|
|
15
|
+
import { createEditor } from "./src/editor/createEditor.js";
|
|
16
|
+
import { createEmptyTableCellElement, isTableCellElement, tableCellElementPlugin, tableCellElementType } from "./src/plugins/element/tables/TableCellElement.js";
|
|
17
|
+
import { createEmptyTableElement, getTableElementColumnCount, getTableElementRowCount, isTableElement, tableElementPlugin, tableElementType } from "./src/plugins/element/tables/TableElement.js";
|
|
18
|
+
import { createEmptyTableRowElement, isTableRowElement, tableRowElementPlugin, tableRowElementType } from "./src/plugins/element/tables/TableRowElement.js";
|
|
19
|
+
import { createMarkHtmlDeserializer } from "./src/plugins/behaviour/paste/createMarkHtmlDeserializer.js";
|
|
20
|
+
import { ejectHeadingElement, headingElementPlugin, headingElementType, isHeadingElement } from "./src/plugins/element/headings/HeadingElement.js";
|
|
21
|
+
import { headingHtmlDeserializer } from "./src/plugins/element/headings/HeadingHtmlDeserializer.js";
|
|
22
|
+
import { highlightMark, highlightMarkPlugin } from "./src/plugins/text/highlight/highlightMark.js";
|
|
23
|
+
import { horizontalRuleElementPlugin, horizontalRuleElementType, isHorizontalRuleElement, isHorizontalRuleElementActive } from "./src/plugins/element/horizonalRules/HorizontalRuleElement.js";
|
|
24
|
+
import { isListItemElement, listItemElementPlugin, listItemElementType } from "./src/plugins/element/lists/ListItemElement.js";
|
|
25
|
+
import { isOrderedListElement, orderedListElementPlugin, orderedListElementType } from "./src/plugins/element/lists/OrderedListElement.js";
|
|
26
|
+
import { isParagraphElement, paragraphElementPlugin, paragraphElementType } from "./src/plugins/element/paragraphs/ParagraphElement.js";
|
|
27
|
+
import { isScrollTargetElement, isScrollTargetElementActive, scrollTargetElementPlugin, scrollTargetElementType } from "./src/plugins/element/scrollTargets/ScrollTargetElement.js";
|
|
28
|
+
import { isUnorderedListElement, unorderedListElementPlugin, unorderedListElementType } from "./src/plugins/element/lists/UnorderedListElement.js";
|
|
29
|
+
import { italicMark, italicMarkPlugin } from "./src/plugins/text/italic/italicMark.js";
|
|
30
|
+
import { listHtmlDeserializerFactory } from "./src/plugins/element/lists/ListHtmlDeserializer.js";
|
|
31
|
+
import { paragraphHtmlDeserializer } from "./src/plugins/element/paragraphs/ParagraphHtmlDeserializer.js";
|
|
32
|
+
import { strikeThroughMark, strikeThroughPlugin } from "./src/plugins/text/strikeThrough/strikeThroughMark.js";
|
|
33
|
+
import { underlineMark, underlineMarkPlugin } from "./src/plugins/text/underline/underlineMark.js";
|
|
34
|
+
import { withAnchors } from "./src/plugins/element/anchors/withAnchors.js";
|
|
35
|
+
import { withBold } from "./src/plugins/text/bold/withBold.js";
|
|
36
|
+
import { withCode } from "./src/plugins/text/code/withCode.js";
|
|
37
|
+
import { withHeadings } from "./src/plugins/element/headings/withHeadings.js";
|
|
38
|
+
import { withHighlight } from "./src/plugins/text/highlight/withHighlight.js";
|
|
39
|
+
import { withHorizontalRules } from "./src/plugins/element/horizonalRules/withHorizontalRules.js";
|
|
40
|
+
import { withItalic } from "./src/plugins/text/italic/withItalic.js";
|
|
41
|
+
import { withLists } from "./src/plugins/element/lists/withLists.js";
|
|
42
|
+
import { withNewline } from "./src/plugins/text/newline/withNewline.js";
|
|
43
|
+
import { withParagraphs } from "./src/plugins/element/paragraphs/withParagraphs.js";
|
|
44
|
+
import { withPaste } from "./src/plugins/behaviour/paste/withPaste.js";
|
|
45
|
+
import { withScrollTargets } from "./src/plugins/element/scrollTargets/withScrollTargets.js";
|
|
46
|
+
import { withStrikeThrough } from "./src/plugins/text/strikeThrough/withStrikeThrough.js";
|
|
47
|
+
import { withTables } from "./src/plugins/element/tables/withTables.js";
|
|
48
|
+
import { withUnderline } from "./src/plugins/text/underline/withUnderline.js";
|
|
49
|
+
export {
|
|
50
|
+
ContemberEditor,
|
|
51
|
+
EditorElementTrigger,
|
|
52
|
+
EditorGenericTrigger,
|
|
53
|
+
EditorMarkTrigger,
|
|
54
|
+
Transforms as EditorTransforms,
|
|
55
|
+
EditorUtils,
|
|
56
|
+
EditorWrapNodeTrigger,
|
|
57
|
+
RichTextEditor,
|
|
58
|
+
TableModifications,
|
|
59
|
+
anchorElementPlugin,
|
|
60
|
+
anchorElementType,
|
|
61
|
+
anchorHtmlDeserializer,
|
|
62
|
+
boldMark,
|
|
63
|
+
boldMarkPlugin,
|
|
64
|
+
codeMark,
|
|
65
|
+
codeMarkPlugin,
|
|
66
|
+
createAlignHandler,
|
|
67
|
+
createEditor,
|
|
68
|
+
createEmptyTableCellElement,
|
|
69
|
+
createEmptyTableElement,
|
|
70
|
+
createEmptyTableRowElement,
|
|
71
|
+
createMarkHtmlDeserializer,
|
|
72
|
+
ejectHeadingElement,
|
|
73
|
+
getTableElementColumnCount,
|
|
74
|
+
getTableElementRowCount,
|
|
75
|
+
headingElementPlugin,
|
|
76
|
+
headingElementType,
|
|
77
|
+
headingHtmlDeserializer,
|
|
78
|
+
highlightMark,
|
|
79
|
+
highlightMarkPlugin,
|
|
80
|
+
horizontalRuleElementPlugin,
|
|
81
|
+
horizontalRuleElementType,
|
|
82
|
+
isAnchorElement,
|
|
83
|
+
isAnchorElementActive,
|
|
84
|
+
isHeadingElement,
|
|
85
|
+
isHorizontalRuleElement,
|
|
86
|
+
isHorizontalRuleElementActive,
|
|
87
|
+
isListItemElement,
|
|
88
|
+
isOrderedListElement,
|
|
89
|
+
isParagraphElement,
|
|
90
|
+
isScrollTargetElement,
|
|
91
|
+
isScrollTargetElementActive,
|
|
92
|
+
isTableCellElement,
|
|
93
|
+
isTableElement,
|
|
94
|
+
isTableRowElement,
|
|
95
|
+
isUnorderedListElement,
|
|
96
|
+
italicMark,
|
|
97
|
+
italicMarkPlugin,
|
|
98
|
+
listHtmlDeserializerFactory,
|
|
99
|
+
listItemElementPlugin,
|
|
100
|
+
listItemElementType,
|
|
101
|
+
orderedListElementPlugin,
|
|
102
|
+
orderedListElementType,
|
|
103
|
+
paragraphElementPlugin,
|
|
104
|
+
paragraphElementType,
|
|
105
|
+
paragraphHtmlDeserializer,
|
|
106
|
+
scrollTargetElementPlugin,
|
|
107
|
+
scrollTargetElementType,
|
|
108
|
+
strikeThroughMark,
|
|
109
|
+
strikeThroughPlugin,
|
|
110
|
+
tableCellElementPlugin,
|
|
111
|
+
tableCellElementType,
|
|
112
|
+
tableElementPlugin,
|
|
113
|
+
tableElementType,
|
|
114
|
+
tableRowElementPlugin,
|
|
115
|
+
tableRowElementType,
|
|
116
|
+
underlineMark,
|
|
117
|
+
underlineMarkPlugin,
|
|
118
|
+
unorderedListElementPlugin,
|
|
119
|
+
unorderedListElementType,
|
|
120
|
+
withAnchors,
|
|
121
|
+
withBold,
|
|
122
|
+
withCode,
|
|
123
|
+
withHeadings,
|
|
124
|
+
withHighlight,
|
|
125
|
+
withHorizontalRules,
|
|
126
|
+
withItalic,
|
|
127
|
+
withLists,
|
|
128
|
+
withNewline,
|
|
129
|
+
withParagraphs,
|
|
130
|
+
withPaste,
|
|
131
|
+
withScrollTargets,
|
|
132
|
+
withStrikeThrough,
|
|
133
|
+
withTables,
|
|
134
|
+
withUnderline
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const reactBinding = require("@contember/react-binding");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const Slate = require("slate");
|
|
7
|
+
const slateReact = require("slate-react");
|
|
8
|
+
const useRichTextFieldNodes = require("../internal/hooks/useRichTextFieldNodes.cjs");
|
|
9
|
+
const createEditor = require("../editor/createEditor.cjs");
|
|
10
|
+
const ParagraphElement = require("../plugins/element/paragraphs/ParagraphElement.cjs");
|
|
11
|
+
const RichTextEditor = reactBinding.Component(
|
|
12
|
+
(props) => {
|
|
13
|
+
const entity = reactBinding.useEntity();
|
|
14
|
+
const environment = entity.environment;
|
|
15
|
+
const getParent = entity.getAccessor;
|
|
16
|
+
const desugaredField = React.useMemo(
|
|
17
|
+
() => reactBinding.QueryLanguage.desugarRelativeSingleField(props, environment),
|
|
18
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: props is stable via Component HOC
|
|
19
|
+
[environment, props]
|
|
20
|
+
);
|
|
21
|
+
const fieldAccessor = React.useMemo(() => entity.getField(desugaredField), [entity, desugaredField]);
|
|
22
|
+
const [contemberFieldElementCache] = React.useState(() => /* @__PURE__ */ new WeakMap());
|
|
23
|
+
const [editor] = React.useState(() => {
|
|
24
|
+
const { editor: editor2 } = createEditor.createEditor({
|
|
25
|
+
plugins: props.plugins,
|
|
26
|
+
defaultElementType: ParagraphElement.paragraphElementType,
|
|
27
|
+
entity,
|
|
28
|
+
environment,
|
|
29
|
+
children: props.children
|
|
30
|
+
});
|
|
31
|
+
const { normalizeNode } = editor2;
|
|
32
|
+
Object.assign(editor2, {
|
|
33
|
+
insertBreak: () => {
|
|
34
|
+
Slate.Transforms.insertText(editor2, "\n");
|
|
35
|
+
},
|
|
36
|
+
normalizeNode: (nodeEntry) => {
|
|
37
|
+
const [node, path] = nodeEntry;
|
|
38
|
+
if (path.length === 0 && Slate.Element.isAncestor(node)) {
|
|
39
|
+
if (node.children.length > 1) {
|
|
40
|
+
return Slate.Editor.withoutNormalizing(editor2, () => {
|
|
41
|
+
const targetPath = [0, editor2.children[0].children.length];
|
|
42
|
+
Slate.Transforms.moveNodes(editor2, {
|
|
43
|
+
at: [1],
|
|
44
|
+
to: targetPath
|
|
45
|
+
});
|
|
46
|
+
Slate.Transforms.unwrapNodes(editor2, { at: targetPath });
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
if (Slate.Element.isElement(node.children[0]) && !editor2.isDefaultElement(node.children[0])) {
|
|
50
|
+
return Slate.Editor.withoutNormalizing(editor2, () => {
|
|
51
|
+
Slate.Transforms.wrapNodes(editor2, editor2.createDefaultElement([{ text: "" }]), {
|
|
52
|
+
at: path
|
|
53
|
+
});
|
|
54
|
+
Slate.Transforms.unwrapNodes(editor2, { at: [0, 0] });
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
if (Slate.Element.isElement(node) && Slate.Editor.isBlock(editor2, node) && path.length > 1) {
|
|
59
|
+
return Slate.Transforms.unwrapNodes(editor2, { at: path });
|
|
60
|
+
}
|
|
61
|
+
normalizeNode(nodeEntry);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
return editor2;
|
|
65
|
+
});
|
|
66
|
+
const valueNodes = useRichTextFieldNodes.useRichTextFieldNodes({
|
|
67
|
+
editor,
|
|
68
|
+
fieldAccessor,
|
|
69
|
+
contemberFieldElementCache
|
|
70
|
+
});
|
|
71
|
+
const serialize = editor.serializeNodes;
|
|
72
|
+
const onChange = React.useCallback(
|
|
73
|
+
(value) => {
|
|
74
|
+
getParent().batchUpdates((getAccessor) => {
|
|
75
|
+
const fieldAccessor2 = getAccessor().getField(desugaredField);
|
|
76
|
+
if (Slate.Node.string({ type: "dummy", children: value }) === "" && fieldAccessor2.valueOnServer === null) {
|
|
77
|
+
fieldAccessor2.updateValue(null);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
if (Slate.Element.isElement(value[0])) {
|
|
81
|
+
fieldAccessor2.updateValue(serialize(value[0].children));
|
|
82
|
+
contemberFieldElementCache.set(getAccessor().getField(desugaredField), value);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
},
|
|
86
|
+
[getParent, contemberFieldElementCache, desugaredField, serialize]
|
|
87
|
+
);
|
|
88
|
+
return /* @__PURE__ */ jsxRuntime.jsx(slateReact.Slate, { editor, initialValue: valueNodes, onChange, children: props.children });
|
|
89
|
+
},
|
|
90
|
+
(props) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(reactBinding.Field, { defaultValue: props.defaultValue, field: props.field, isNonbearing: props.isNonbearing }) }),
|
|
91
|
+
"RichTextEditor"
|
|
92
|
+
);
|
|
93
|
+
exports.RichTextEditor = RichTextEditor;
|
|
94
|
+
//# sourceMappingURL=RichTextEditor.cjs.map
|