roosterjs-content-model-types 0.0.3
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/LICENSE +25 -0
- package/README.md +262 -0
- package/lib/block/ContentModelBlock.d.ts +11 -0
- package/lib/block/ContentModelBlock.js +3 -0
- package/lib/block/ContentModelBlock.js.map +1 -0
- package/lib/block/ContentModelBlockBase.d.ts +12 -0
- package/lib/block/ContentModelBlockBase.js +3 -0
- package/lib/block/ContentModelBlockBase.js.map +1 -0
- package/lib/block/ContentModelBlockWithCache.d.ts +9 -0
- package/lib/block/ContentModelBlockWithCache.js +3 -0
- package/lib/block/ContentModelBlockWithCache.js.map +1 -0
- package/lib/block/ContentModelDivider.d.ts +17 -0
- package/lib/block/ContentModelDivider.js +3 -0
- package/lib/block/ContentModelDivider.js.map +1 -0
- package/lib/block/ContentModelParagraph.d.ts +27 -0
- package/lib/block/ContentModelParagraph.js +3 -0
- package/lib/block/ContentModelParagraph.js.map +1 -0
- package/lib/block/ContentModelTable.d.ts +19 -0
- package/lib/block/ContentModelTable.js +3 -0
- package/lib/block/ContentModelTable.js.map +1 -0
- package/lib/block/ContentModelTableRow.d.ts +17 -0
- package/lib/block/ContentModelTableRow.js +3 -0
- package/lib/block/ContentModelTableRow.js.map +1 -0
- package/lib/context/ContentModelHandler.d.ts +34 -0
- package/lib/context/ContentModelHandler.js +3 -0
- package/lib/context/ContentModelHandler.js.map +1 -0
- package/lib/context/DarkColorHandler.d.ts +52 -0
- package/lib/context/DarkColorHandler.js +3 -0
- package/lib/context/DarkColorHandler.js.map +1 -0
- package/lib/context/DomIndexer.d.ts +37 -0
- package/lib/context/DomIndexer.js +3 -0
- package/lib/context/DomIndexer.js.map +1 -0
- package/lib/context/DomToModelContext.d.ts +9 -0
- package/lib/context/DomToModelContext.js +3 -0
- package/lib/context/DomToModelContext.js.map +1 -0
- package/lib/context/DomToModelFormatContext.d.ts +58 -0
- package/lib/context/DomToModelFormatContext.js +3 -0
- package/lib/context/DomToModelFormatContext.js.map +1 -0
- package/lib/context/DomToModelOption.d.ts +40 -0
- package/lib/context/DomToModelOption.js +3 -0
- package/lib/context/DomToModelOption.js.map +1 -0
- package/lib/context/DomToModelSelectionContext.d.ts +14 -0
- package/lib/context/DomToModelSelectionContext.js +3 -0
- package/lib/context/DomToModelSelectionContext.js.map +1 -0
- package/lib/context/DomToModelSettings.d.ts +114 -0
- package/lib/context/DomToModelSettings.js +3 -0
- package/lib/context/DomToModelSettings.js.map +1 -0
- package/lib/context/EditorContext.d.ts +50 -0
- package/lib/context/EditorContext.js +3 -0
- package/lib/context/EditorContext.js.map +1 -0
- package/lib/context/ElementProcessor.d.ts +9 -0
- package/lib/context/ElementProcessor.js +3 -0
- package/lib/context/ElementProcessor.js.map +1 -0
- package/lib/context/ModelToDomContext.d.ts +9 -0
- package/lib/context/ModelToDomContext.js +3 -0
- package/lib/context/ModelToDomContext.js.map +1 -0
- package/lib/context/ModelToDomFormatContext.d.ts +38 -0
- package/lib/context/ModelToDomFormatContext.js +3 -0
- package/lib/context/ModelToDomFormatContext.js.map +1 -0
- package/lib/context/ModelToDomOption.d.ts +26 -0
- package/lib/context/ModelToDomOption.js +3 -0
- package/lib/context/ModelToDomOption.js.map +1 -0
- package/lib/context/ModelToDomSelectionContext.d.ts +49 -0
- package/lib/context/ModelToDomSelectionContext.js +3 -0
- package/lib/context/ModelToDomSelectionContext.js.map +1 -0
- package/lib/context/ModelToDomSettings.d.ts +208 -0
- package/lib/context/ModelToDomSettings.js +3 -0
- package/lib/context/ModelToDomSettings.js.map +1 -0
- package/lib/context/TextMutationObserver.d.ts +17 -0
- package/lib/context/TextMutationObserver.js +3 -0
- package/lib/context/TextMutationObserver.js.map +1 -0
- package/lib/decorator/ContentModelCode.d.ts +9 -0
- package/lib/decorator/ContentModelCode.js +3 -0
- package/lib/decorator/ContentModelCode.js.map +1 -0
- package/lib/decorator/ContentModelDecorator.d.ts +7 -0
- package/lib/decorator/ContentModelDecorator.js +3 -0
- package/lib/decorator/ContentModelDecorator.js.map +1 -0
- package/lib/decorator/ContentModelLink.d.ts +10 -0
- package/lib/decorator/ContentModelLink.js +3 -0
- package/lib/decorator/ContentModelLink.js.map +1 -0
- package/lib/decorator/ContentModelListLevel.d.ts +13 -0
- package/lib/decorator/ContentModelListLevel.js +3 -0
- package/lib/decorator/ContentModelListLevel.js.map +1 -0
- package/lib/decorator/ContentModelParagraphDecorator.d.ts +13 -0
- package/lib/decorator/ContentModelParagraphDecorator.js +3 -0
- package/lib/decorator/ContentModelParagraphDecorator.js.map +1 -0
- package/lib/editor/ContextMenuProvider.d.ts +12 -0
- package/lib/editor/ContextMenuProvider.js +3 -0
- package/lib/editor/ContextMenuProvider.js.map +1 -0
- package/lib/editor/EditorCore.d.ts +304 -0
- package/lib/editor/EditorCore.js +3 -0
- package/lib/editor/EditorCore.js.map +1 -0
- package/lib/editor/EditorCorePlugins.d.ts +51 -0
- package/lib/editor/EditorCorePlugins.js +3 -0
- package/lib/editor/EditorCorePlugins.js.map +1 -0
- package/lib/editor/EditorOptions.d.ts +100 -0
- package/lib/editor/EditorOptions.js +3 -0
- package/lib/editor/EditorOptions.js.map +1 -0
- package/lib/editor/EditorPlugin.d.ts +40 -0
- package/lib/editor/EditorPlugin.js +3 -0
- package/lib/editor/EditorPlugin.js.map +1 -0
- package/lib/editor/IEditor.d.ts +171 -0
- package/lib/editor/IEditor.js +3 -0
- package/lib/editor/IEditor.js.map +1 -0
- package/lib/editor/PluginWithState.d.ts +11 -0
- package/lib/editor/PluginWithState.js +3 -0
- package/lib/editor/PluginWithState.js.map +1 -0
- package/lib/entity/ContentModelEntity.d.ts +18 -0
- package/lib/entity/ContentModelEntity.js +3 -0
- package/lib/entity/ContentModelEntity.js.map +1 -0
- package/lib/enum/BlockGroupType.d.ts +24 -0
- package/lib/enum/BlockGroupType.js +3 -0
- package/lib/enum/BlockGroupType.js.map +1 -0
- package/lib/enum/BlockType.d.ts +24 -0
- package/lib/enum/BlockType.js +3 -0
- package/lib/enum/BlockType.js.map +1 -0
- package/lib/enum/BorderOperations.d.ts +36 -0
- package/lib/enum/BorderOperations.js +3 -0
- package/lib/enum/BorderOperations.js.map +1 -0
- package/lib/enum/DeleteResult.d.ts +20 -0
- package/lib/enum/DeleteResult.js +3 -0
- package/lib/enum/DeleteResult.js.map +1 -0
- package/lib/enum/EntityOperation.d.ts +51 -0
- package/lib/enum/EntityOperation.js +3 -0
- package/lib/enum/EntityOperation.js.map +1 -0
- package/lib/enum/ExportContentMode.d.ts +16 -0
- package/lib/enum/ExportContentMode.js +3 -0
- package/lib/enum/ExportContentMode.js.map +1 -0
- package/lib/enum/InsertEntityPosition.d.ts +8 -0
- package/lib/enum/InsertEntityPosition.js +3 -0
- package/lib/enum/InsertEntityPosition.js.map +1 -0
- package/lib/enum/PasteType.d.ts +20 -0
- package/lib/enum/PasteType.js +3 -0
- package/lib/enum/PasteType.js.map +1 -0
- package/lib/enum/SegmentType.d.ts +28 -0
- package/lib/enum/SegmentType.js +3 -0
- package/lib/enum/SegmentType.js.map +1 -0
- package/lib/enum/TableOperation.d.ts +136 -0
- package/lib/enum/TableOperation.js +3 -0
- package/lib/enum/TableOperation.js.map +1 -0
- package/lib/event/BasePluginEvent.d.ts +27 -0
- package/lib/event/BasePluginEvent.js +3 -0
- package/lib/event/BasePluginEvent.js.map +1 -0
- package/lib/event/BeforeCutCopyEvent.d.ts +18 -0
- package/lib/event/BeforeCutCopyEvent.js +3 -0
- package/lib/event/BeforeCutCopyEvent.js.map +1 -0
- package/lib/event/BeforeDisposeEvent.d.ts +6 -0
- package/lib/event/BeforeDisposeEvent.js +3 -0
- package/lib/event/BeforeDisposeEvent.js.map +1 -0
- package/lib/event/BeforeKeyboardEditingEvent.d.ts +6 -0
- package/lib/event/BeforeKeyboardEditingEvent.js +3 -0
- package/lib/event/BeforeKeyboardEditingEvent.js.map +1 -0
- package/lib/event/BeforePasteEvent.d.ts +50 -0
- package/lib/event/BeforePasteEvent.js +3 -0
- package/lib/event/BeforePasteEvent.js.map +1 -0
- package/lib/event/BeforeSetContentEvent.d.ts +11 -0
- package/lib/event/BeforeSetContentEvent.js +3 -0
- package/lib/event/BeforeSetContentEvent.js.map +1 -0
- package/lib/event/ContentChangedEvent.d.ts +61 -0
- package/lib/event/ContentChangedEvent.js +3 -0
- package/lib/event/ContentChangedEvent.js.map +1 -0
- package/lib/event/ContextMenuEvent.d.ts +12 -0
- package/lib/event/ContextMenuEvent.js +3 -0
- package/lib/event/ContextMenuEvent.js.map +1 -0
- package/lib/event/EditImageEvent.d.ts +25 -0
- package/lib/event/EditImageEvent.js +3 -0
- package/lib/event/EditImageEvent.js.map +1 -0
- package/lib/event/EditorInputEvent.d.ts +10 -0
- package/lib/event/EditorInputEvent.js +3 -0
- package/lib/event/EditorInputEvent.js.map +1 -0
- package/lib/event/EditorReadyEvent.d.ts +6 -0
- package/lib/event/EditorReadyEvent.js +3 -0
- package/lib/event/EditorReadyEvent.js.map +1 -0
- package/lib/event/EntityOperationEvent.d.ts +52 -0
- package/lib/event/EntityOperationEvent.js +3 -0
- package/lib/event/EntityOperationEvent.js.map +1 -0
- package/lib/event/ExtractContentWithDomEvent.d.ts +14 -0
- package/lib/event/ExtractContentWithDomEvent.js +3 -0
- package/lib/event/ExtractContentWithDomEvent.js.map +1 -0
- package/lib/event/KeyboardEvent.d.ts +25 -0
- package/lib/event/KeyboardEvent.js +3 -0
- package/lib/event/KeyboardEvent.js.map +1 -0
- package/lib/event/MouseEvent.d.ts +15 -0
- package/lib/event/MouseEvent.js +3 -0
- package/lib/event/MouseEvent.js.map +1 -0
- package/lib/event/PluginEvent.d.ts +22 -0
- package/lib/event/PluginEvent.js +3 -0
- package/lib/event/PluginEvent.js.map +1 -0
- package/lib/event/PluginEventData.d.ts +21 -0
- package/lib/event/PluginEventData.js +3 -0
- package/lib/event/PluginEventData.js.map +1 -0
- package/lib/event/PluginEventType.d.ts +103 -0
- package/lib/event/PluginEventType.js +3 -0
- package/lib/event/PluginEventType.js.map +1 -0
- package/lib/event/ScrollEvent.d.ts +10 -0
- package/lib/event/ScrollEvent.js +3 -0
- package/lib/event/ScrollEvent.js.map +1 -0
- package/lib/event/SelectionChangedEvent.d.ts +11 -0
- package/lib/event/SelectionChangedEvent.js +3 -0
- package/lib/event/SelectionChangedEvent.js.map +1 -0
- package/lib/event/ShadowEditEvent.d.ts +11 -0
- package/lib/event/ShadowEditEvent.js +3 -0
- package/lib/event/ShadowEditEvent.js.map +1 -0
- package/lib/event/ZoomChangedEvent.d.ts +12 -0
- package/lib/event/ZoomChangedEvent.js +3 -0
- package/lib/event/ZoomChangedEvent.js.map +1 -0
- package/lib/format/ContentModelBlockFormat.d.ts +14 -0
- package/lib/format/ContentModelBlockFormat.js +3 -0
- package/lib/format/ContentModelBlockFormat.js.map +1 -0
- package/lib/format/ContentModelCodeFormat.d.ts +6 -0
- package/lib/format/ContentModelCodeFormat.js +3 -0
- package/lib/format/ContentModelCodeFormat.js.map +1 -0
- package/lib/format/ContentModelDividerFormat.d.ts +7 -0
- package/lib/format/ContentModelDividerFormat.js +3 -0
- package/lib/format/ContentModelDividerFormat.js.map +1 -0
- package/lib/format/ContentModelEntityFormat.d.ts +6 -0
- package/lib/format/ContentModelEntityFormat.js +3 -0
- package/lib/format/ContentModelEntityFormat.js.map +1 -0
- package/lib/format/ContentModelFormatBase.d.ts +8 -0
- package/lib/format/ContentModelFormatBase.js +3 -0
- package/lib/format/ContentModelFormatBase.js.map +1 -0
- package/lib/format/ContentModelFormatContainerFormat.d.ts +8 -0
- package/lib/format/ContentModelFormatContainerFormat.js +3 -0
- package/lib/format/ContentModelFormatContainerFormat.js.map +1 -0
- package/lib/format/ContentModelFormatMap.d.ts +124 -0
- package/lib/format/ContentModelFormatMap.js +3 -0
- package/lib/format/ContentModelFormatMap.js.map +1 -0
- package/lib/format/ContentModelHyperLinkFormat.d.ts +14 -0
- package/lib/format/ContentModelHyperLinkFormat.js +3 -0
- package/lib/format/ContentModelHyperLinkFormat.js.map +1 -0
- package/lib/format/ContentModelImageFormat.d.ts +14 -0
- package/lib/format/ContentModelImageFormat.js +3 -0
- package/lib/format/ContentModelImageFormat.js.map +1 -0
- package/lib/format/ContentModelListItemFormat.d.ts +12 -0
- package/lib/format/ContentModelListItemFormat.js +3 -0
- package/lib/format/ContentModelListItemFormat.js.map +1 -0
- package/lib/format/ContentModelListItemLevelFormat.d.ts +10 -0
- package/lib/format/ContentModelListItemLevelFormat.js +3 -0
- package/lib/format/ContentModelListItemLevelFormat.js.map +1 -0
- package/lib/format/ContentModelSegmentFormat.d.ts +15 -0
- package/lib/format/ContentModelSegmentFormat.js +3 -0
- package/lib/format/ContentModelSegmentFormat.js.map +1 -0
- package/lib/format/ContentModelTableCellFormat.d.ts +10 -0
- package/lib/format/ContentModelTableCellFormat.js +3 -0
- package/lib/format/ContentModelTableCellFormat.js.map +1 -0
- package/lib/format/ContentModelTableFormat.d.ts +13 -0
- package/lib/format/ContentModelTableFormat.js +3 -0
- package/lib/format/ContentModelTableFormat.js.map +1 -0
- package/lib/format/ContentModelWithDataset.d.ts +10 -0
- package/lib/format/ContentModelWithDataset.js +3 -0
- package/lib/format/ContentModelWithDataset.js.map +1 -0
- package/lib/format/ContentModelWithFormat.d.ts +10 -0
- package/lib/format/ContentModelWithFormat.js +3 -0
- package/lib/format/ContentModelWithFormat.js.map +1 -0
- package/lib/format/FormatHandlerTypeMap.d.ts +187 -0
- package/lib/format/FormatHandlerTypeMap.js +3 -0
- package/lib/format/FormatHandlerTypeMap.js.map +1 -0
- package/lib/format/formatParts/BackgroundColorFormat.d.ts +9 -0
- package/lib/format/formatParts/BackgroundColorFormat.js +3 -0
- package/lib/format/formatParts/BackgroundColorFormat.js.map +1 -0
- package/lib/format/formatParts/BoldFormat.d.ts +9 -0
- package/lib/format/formatParts/BoldFormat.js +3 -0
- package/lib/format/formatParts/BoldFormat.js.map +1 -0
- package/lib/format/formatParts/BorderBoxFormat.d.ts +9 -0
- package/lib/format/formatParts/BorderBoxFormat.js +3 -0
- package/lib/format/formatParts/BorderBoxFormat.js.map +1 -0
- package/lib/format/formatParts/BorderFormat.d.ts +41 -0
- package/lib/format/formatParts/BorderFormat.js +3 -0
- package/lib/format/formatParts/BorderFormat.js.map +1 -0
- package/lib/format/formatParts/BoxShadowFormat.d.ts +9 -0
- package/lib/format/formatParts/BoxShadowFormat.js +3 -0
- package/lib/format/formatParts/BoxShadowFormat.js.map +1 -0
- package/lib/format/formatParts/DirectionFormat.d.ts +9 -0
- package/lib/format/formatParts/DirectionFormat.js +3 -0
- package/lib/format/formatParts/DirectionFormat.js.map +1 -0
- package/lib/format/formatParts/DisplayFormat.d.ts +9 -0
- package/lib/format/formatParts/DisplayFormat.js +3 -0
- package/lib/format/formatParts/DisplayFormat.js.map +1 -0
- package/lib/format/formatParts/EntityInfoFormat.d.ts +17 -0
- package/lib/format/formatParts/EntityInfoFormat.js +3 -0
- package/lib/format/formatParts/EntityInfoFormat.js.map +1 -0
- package/lib/format/formatParts/FloatFormat.d.ts +9 -0
- package/lib/format/formatParts/FloatFormat.js +3 -0
- package/lib/format/formatParts/FloatFormat.js.map +1 -0
- package/lib/format/formatParts/FontFamilyFormat.d.ts +9 -0
- package/lib/format/formatParts/FontFamilyFormat.js +3 -0
- package/lib/format/formatParts/FontFamilyFormat.js.map +1 -0
- package/lib/format/formatParts/FontSizeFormat.d.ts +9 -0
- package/lib/format/formatParts/FontSizeFormat.js +3 -0
- package/lib/format/formatParts/FontSizeFormat.js.map +1 -0
- package/lib/format/formatParts/HtmlAlignFormat.d.ts +9 -0
- package/lib/format/formatParts/HtmlAlignFormat.js +3 -0
- package/lib/format/formatParts/HtmlAlignFormat.js.map +1 -0
- package/lib/format/formatParts/IdFormat.d.ts +9 -0
- package/lib/format/formatParts/IdFormat.js +3 -0
- package/lib/format/formatParts/IdFormat.js.map +1 -0
- package/lib/format/formatParts/ItalicFormat.d.ts +9 -0
- package/lib/format/formatParts/ItalicFormat.js +3 -0
- package/lib/format/formatParts/ItalicFormat.js.map +1 -0
- package/lib/format/formatParts/LetterSpacingFormat.d.ts +9 -0
- package/lib/format/formatParts/LetterSpacingFormat.js +3 -0
- package/lib/format/formatParts/LetterSpacingFormat.js.map +1 -0
- package/lib/format/formatParts/LineHeightFormat.d.ts +9 -0
- package/lib/format/formatParts/LineHeightFormat.js +3 -0
- package/lib/format/formatParts/LineHeightFormat.js.map +1 -0
- package/lib/format/formatParts/LinkFormat.d.ts +33 -0
- package/lib/format/formatParts/LinkFormat.js +3 -0
- package/lib/format/formatParts/LinkFormat.js.map +1 -0
- package/lib/format/formatParts/ListStyleFormat.d.ts +13 -0
- package/lib/format/formatParts/ListStyleFormat.js +3 -0
- package/lib/format/formatParts/ListStyleFormat.js.map +1 -0
- package/lib/format/formatParts/ListThreadFormat.d.ts +17 -0
- package/lib/format/formatParts/ListThreadFormat.js +3 -0
- package/lib/format/formatParts/ListThreadFormat.js.map +1 -0
- package/lib/format/formatParts/MarginFormat.d.ts +21 -0
- package/lib/format/formatParts/MarginFormat.js +3 -0
- package/lib/format/formatParts/MarginFormat.js.map +1 -0
- package/lib/format/formatParts/PaddingFormat.d.ts +21 -0
- package/lib/format/formatParts/PaddingFormat.js +3 -0
- package/lib/format/formatParts/PaddingFormat.js.map +1 -0
- package/lib/format/formatParts/SizeFormat.d.ts +29 -0
- package/lib/format/formatParts/SizeFormat.js +3 -0
- package/lib/format/formatParts/SizeFormat.js.map +1 -0
- package/lib/format/formatParts/SpacingFormat.d.ts +13 -0
- package/lib/format/formatParts/SpacingFormat.js +3 -0
- package/lib/format/formatParts/SpacingFormat.js.map +1 -0
- package/lib/format/formatParts/StrikeFormat.d.ts +9 -0
- package/lib/format/formatParts/StrikeFormat.js +3 -0
- package/lib/format/formatParts/StrikeFormat.js.map +1 -0
- package/lib/format/formatParts/SuperOrSubScriptFormat.d.ts +10 -0
- package/lib/format/formatParts/SuperOrSubScriptFormat.js +3 -0
- package/lib/format/formatParts/SuperOrSubScriptFormat.js.map +1 -0
- package/lib/format/formatParts/TableLayoutFormat.d.ts +9 -0
- package/lib/format/formatParts/TableLayoutFormat.js +3 -0
- package/lib/format/formatParts/TableLayoutFormat.js.map +1 -0
- package/lib/format/formatParts/TextAlignFormat.d.ts +9 -0
- package/lib/format/formatParts/TextAlignFormat.js +3 -0
- package/lib/format/formatParts/TextAlignFormat.js.map +1 -0
- package/lib/format/formatParts/TextColorFormat.d.ts +9 -0
- package/lib/format/formatParts/TextColorFormat.js +3 -0
- package/lib/format/formatParts/TextColorFormat.js.map +1 -0
- package/lib/format/formatParts/TextIndentFormat.d.ts +14 -0
- package/lib/format/formatParts/TextIndentFormat.js +3 -0
- package/lib/format/formatParts/TextIndentFormat.js.map +1 -0
- package/lib/format/formatParts/UnderlineFormat.d.ts +9 -0
- package/lib/format/formatParts/UnderlineFormat.js +3 -0
- package/lib/format/formatParts/UnderlineFormat.js.map +1 -0
- package/lib/format/formatParts/VerticalAlignFormat.d.ts +9 -0
- package/lib/format/formatParts/VerticalAlignFormat.js +3 -0
- package/lib/format/formatParts/VerticalAlignFormat.js.map +1 -0
- package/lib/format/formatParts/WhiteSpaceFormat.d.ts +9 -0
- package/lib/format/formatParts/WhiteSpaceFormat.js +3 -0
- package/lib/format/formatParts/WhiteSpaceFormat.js.map +1 -0
- package/lib/format/formatParts/WordBreakFormat.d.ts +9 -0
- package/lib/format/formatParts/WordBreakFormat.js +3 -0
- package/lib/format/formatParts/WordBreakFormat.js.map +1 -0
- package/lib/format/metadata/DatasetFormat.d.ts +4 -0
- package/lib/format/metadata/DatasetFormat.js +3 -0
- package/lib/format/metadata/DatasetFormat.js.map +1 -0
- package/lib/format/metadata/ImageMetadataFormat.d.ts +72 -0
- package/lib/format/metadata/ImageMetadataFormat.js +3 -0
- package/lib/format/metadata/ImageMetadataFormat.js.map +1 -0
- package/lib/format/metadata/ListMetadataFormat.d.ts +19 -0
- package/lib/format/metadata/ListMetadataFormat.js +3 -0
- package/lib/format/metadata/ListMetadataFormat.js.map +1 -0
- package/lib/format/metadata/TableCellMetadataFormat.d.ts +17 -0
- package/lib/format/metadata/TableCellMetadataFormat.js +3 -0
- package/lib/format/metadata/TableCellMetadataFormat.js.map +1 -0
- package/lib/format/metadata/TableMetadataFormat.d.ts +53 -0
- package/lib/format/metadata/TableMetadataFormat.js +3 -0
- package/lib/format/metadata/TableMetadataFormat.js.map +1 -0
- package/lib/group/ContentModelBlockGroup.d.ts +9 -0
- package/lib/group/ContentModelBlockGroup.js +3 -0
- package/lib/group/ContentModelBlockGroup.js.map +1 -0
- package/lib/group/ContentModelBlockGroupBase.d.ts +15 -0
- package/lib/group/ContentModelBlockGroupBase.js +3 -0
- package/lib/group/ContentModelBlockGroupBase.js.map +1 -0
- package/lib/group/ContentModelDocument.d.ts +8 -0
- package/lib/group/ContentModelDocument.js +3 -0
- package/lib/group/ContentModelDocument.js.map +1 -0
- package/lib/group/ContentModelFormatContainer.d.ts +18 -0
- package/lib/group/ContentModelFormatContainer.js +3 -0
- package/lib/group/ContentModelFormatContainer.js.map +1 -0
- package/lib/group/ContentModelGeneralBlock.d.ts +14 -0
- package/lib/group/ContentModelGeneralBlock.js +3 -0
- package/lib/group/ContentModelGeneralBlock.js.map +1 -0
- package/lib/group/ContentModelListItem.d.ts +18 -0
- package/lib/group/ContentModelListItem.js +3 -0
- package/lib/group/ContentModelListItem.js.map +1 -0
- package/lib/group/ContentModelTableCell.d.ts +24 -0
- package/lib/group/ContentModelTableCell.js +3 -0
- package/lib/group/ContentModelTableCell.js.map +1 -0
- package/lib/index.d.ts +172 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -0
- package/lib/metadata/Definition.d.ts +93 -0
- package/lib/metadata/Definition.js +3 -0
- package/lib/metadata/Definition.js.map +1 -0
- package/lib/metadata/DefinitionType.d.ts +24 -0
- package/lib/metadata/DefinitionType.js +3 -0
- package/lib/metadata/DefinitionType.js.map +1 -0
- package/lib/parameter/AnnounceData.d.ts +39 -0
- package/lib/parameter/AnnounceData.js +3 -0
- package/lib/parameter/AnnounceData.js.map +1 -0
- package/lib/parameter/Border.d.ts +18 -0
- package/lib/parameter/Border.js +3 -0
- package/lib/parameter/Border.js.map +1 -0
- package/lib/parameter/ClipboardData.d.ts +58 -0
- package/lib/parameter/ClipboardData.js +3 -0
- package/lib/parameter/ClipboardData.js.map +1 -0
- package/lib/parameter/ContentModelFormatState.d.ts +143 -0
- package/lib/parameter/ContentModelFormatState.js +3 -0
- package/lib/parameter/ContentModelFormatState.js.map +1 -0
- package/lib/parameter/DOMEventRecord.d.ts +19 -0
- package/lib/parameter/DOMEventRecord.js +3 -0
- package/lib/parameter/DOMEventRecord.js.map +1 -0
- package/lib/parameter/DOMHelper.d.ts +48 -0
- package/lib/parameter/DOMHelper.js +3 -0
- package/lib/parameter/DOMHelper.js.map +1 -0
- package/lib/parameter/DeleteSelectionStep.d.ts +49 -0
- package/lib/parameter/DeleteSelectionStep.js +3 -0
- package/lib/parameter/DeleteSelectionStep.js.map +1 -0
- package/lib/parameter/EdgeLinkPreview.d.ts +25 -0
- package/lib/parameter/EdgeLinkPreview.js +3 -0
- package/lib/parameter/EdgeLinkPreview.js.map +1 -0
- package/lib/parameter/EditorEnvironment.d.ts +21 -0
- package/lib/parameter/EditorEnvironment.js +3 -0
- package/lib/parameter/EditorEnvironment.js.map +1 -0
- package/lib/parameter/FormatContentModelContext.d.ts +86 -0
- package/lib/parameter/FormatContentModelContext.js +3 -0
- package/lib/parameter/FormatContentModelContext.js.map +1 -0
- package/lib/parameter/FormatContentModelOptions.d.ts +42 -0
- package/lib/parameter/FormatContentModelOptions.js +3 -0
- package/lib/parameter/FormatContentModelOptions.js.map +1 -0
- package/lib/parameter/ImageFormatState.d.ts +25 -0
- package/lib/parameter/ImageFormatState.js +3 -0
- package/lib/parameter/ImageFormatState.js.map +1 -0
- package/lib/parameter/InsertEntityOptions.d.ts +25 -0
- package/lib/parameter/InsertEntityOptions.js +3 -0
- package/lib/parameter/InsertEntityOptions.js.map +1 -0
- package/lib/parameter/Rect.d.ts +21 -0
- package/lib/parameter/Rect.js +3 -0
- package/lib/parameter/Rect.js.map +1 -0
- package/lib/parameter/Snapshot.d.ts +100 -0
- package/lib/parameter/Snapshot.js +3 -0
- package/lib/parameter/Snapshot.js.map +1 -0
- package/lib/parameter/SnapshotsManager.d.ts +35 -0
- package/lib/parameter/SnapshotsManager.js +3 -0
- package/lib/parameter/SnapshotsManager.js.map +1 -0
- package/lib/parameter/TrustedHTMLHandler.d.ts +4 -0
- package/lib/parameter/TrustedHTMLHandler.js +3 -0
- package/lib/parameter/TrustedHTMLHandler.js.map +1 -0
- package/lib/parameter/ValueSanitizer.d.ts +10 -0
- package/lib/parameter/ValueSanitizer.js +3 -0
- package/lib/parameter/ValueSanitizer.js.map +1 -0
- package/lib/pluginState/CachePluginState.d.ts +25 -0
- package/lib/pluginState/CachePluginState.js +3 -0
- package/lib/pluginState/CachePluginState.js.map +1 -0
- package/lib/pluginState/ContextMenuPluginState.d.ts +10 -0
- package/lib/pluginState/ContextMenuPluginState.js +3 -0
- package/lib/pluginState/ContextMenuPluginState.js.map +1 -0
- package/lib/pluginState/CopyPastePluginState.d.ts +19 -0
- package/lib/pluginState/CopyPastePluginState.js +3 -0
- package/lib/pluginState/CopyPastePluginState.js.map +1 -0
- package/lib/pluginState/DOMEventPluginState.d.ts +25 -0
- package/lib/pluginState/DOMEventPluginState.js +3 -0
- package/lib/pluginState/DOMEventPluginState.js.map +1 -0
- package/lib/pluginState/EntityPluginState.d.ts +26 -0
- package/lib/pluginState/EntityPluginState.js +3 -0
- package/lib/pluginState/EntityPluginState.js.map +1 -0
- package/lib/pluginState/FormatPluginState.d.ts +31 -0
- package/lib/pluginState/FormatPluginState.js +3 -0
- package/lib/pluginState/FormatPluginState.js.map +1 -0
- package/lib/pluginState/LifecyclePluginState.d.ts +13 -0
- package/lib/pluginState/LifecyclePluginState.js +3 -0
- package/lib/pluginState/LifecyclePluginState.js.map +1 -0
- package/lib/pluginState/PluginState.d.ts +30 -0
- package/lib/pluginState/PluginState.js +3 -0
- package/lib/pluginState/PluginState.js.map +1 -0
- package/lib/pluginState/SelectionPluginState.d.ts +22 -0
- package/lib/pluginState/SelectionPluginState.js +3 -0
- package/lib/pluginState/SelectionPluginState.js.map +1 -0
- package/lib/pluginState/UndoPluginState.d.ts +30 -0
- package/lib/pluginState/UndoPluginState.js +3 -0
- package/lib/pluginState/UndoPluginState.js.map +1 -0
- package/lib/segment/ContentModelBr.d.ts +6 -0
- package/lib/segment/ContentModelBr.js +3 -0
- package/lib/segment/ContentModelBr.js.map +1 -0
- package/lib/segment/ContentModelGeneralSegment.d.ts +9 -0
- package/lib/segment/ContentModelGeneralSegment.js +3 -0
- package/lib/segment/ContentModelGeneralSegment.js.map +1 -0
- package/lib/segment/ContentModelImage.d.ts +25 -0
- package/lib/segment/ContentModelImage.js +3 -0
- package/lib/segment/ContentModelImage.js.map +1 -0
- package/lib/segment/ContentModelSegment.d.ts +10 -0
- package/lib/segment/ContentModelSegment.js +3 -0
- package/lib/segment/ContentModelSegment.js.map +1 -0
- package/lib/segment/ContentModelSegmentBase.d.ts +23 -0
- package/lib/segment/ContentModelSegmentBase.js +3 -0
- package/lib/segment/ContentModelSegmentBase.js.map +1 -0
- package/lib/segment/ContentModelSelectionMarker.d.ts +10 -0
- package/lib/segment/ContentModelSelectionMarker.js +3 -0
- package/lib/segment/ContentModelSelectionMarker.js.map +1 -0
- package/lib/segment/ContentModelText.d.ts +10 -0
- package/lib/segment/ContentModelText.js +3 -0
- package/lib/segment/ContentModelText.js.map +1 -0
- package/lib/selection/DOMSelection.d.ts +57 -0
- package/lib/selection/DOMSelection.js +3 -0
- package/lib/selection/DOMSelection.js.map +1 -0
- package/lib/selection/InsertPoint.d.ts +25 -0
- package/lib/selection/InsertPoint.js +3 -0
- package/lib/selection/InsertPoint.js.map +1 -0
- package/lib/selection/Selectable.d.ts +9 -0
- package/lib/selection/Selectable.js +3 -0
- package/lib/selection/Selectable.js.map +1 -0
- package/lib/selection/TableSelectionContext.d.ts +22 -0
- package/lib/selection/TableSelectionContext.js +3 -0
- package/lib/selection/TableSelectionContext.js.map +1 -0
- package/lib/selection/TableSelectionCoordinates.d.ts +21 -0
- package/lib/selection/TableSelectionCoordinates.js +3 -0
- package/lib/selection/TableSelectionCoordinates.js.map +1 -0
- package/lib-amd/block/ContentModelBlock.d.ts +11 -0
- package/lib-amd/block/ContentModelBlock.js +5 -0
- package/lib-amd/block/ContentModelBlock.js.map +1 -0
- package/lib-amd/block/ContentModelBlockBase.d.ts +12 -0
- package/lib-amd/block/ContentModelBlockBase.js +5 -0
- package/lib-amd/block/ContentModelBlockBase.js.map +1 -0
- package/lib-amd/block/ContentModelBlockWithCache.d.ts +9 -0
- package/lib-amd/block/ContentModelBlockWithCache.js +5 -0
- package/lib-amd/block/ContentModelBlockWithCache.js.map +1 -0
- package/lib-amd/block/ContentModelDivider.d.ts +17 -0
- package/lib-amd/block/ContentModelDivider.js +5 -0
- package/lib-amd/block/ContentModelDivider.js.map +1 -0
- package/lib-amd/block/ContentModelParagraph.d.ts +27 -0
- package/lib-amd/block/ContentModelParagraph.js +5 -0
- package/lib-amd/block/ContentModelParagraph.js.map +1 -0
- package/lib-amd/block/ContentModelTable.d.ts +19 -0
- package/lib-amd/block/ContentModelTable.js +5 -0
- package/lib-amd/block/ContentModelTable.js.map +1 -0
- package/lib-amd/block/ContentModelTableRow.d.ts +17 -0
- package/lib-amd/block/ContentModelTableRow.js +5 -0
- package/lib-amd/block/ContentModelTableRow.js.map +1 -0
- package/lib-amd/context/ContentModelHandler.d.ts +34 -0
- package/lib-amd/context/ContentModelHandler.js +5 -0
- package/lib-amd/context/ContentModelHandler.js.map +1 -0
- package/lib-amd/context/DarkColorHandler.d.ts +52 -0
- package/lib-amd/context/DarkColorHandler.js +5 -0
- package/lib-amd/context/DarkColorHandler.js.map +1 -0
- package/lib-amd/context/DomIndexer.d.ts +37 -0
- package/lib-amd/context/DomIndexer.js +5 -0
- package/lib-amd/context/DomIndexer.js.map +1 -0
- package/lib-amd/context/DomToModelContext.d.ts +9 -0
- package/lib-amd/context/DomToModelContext.js +5 -0
- package/lib-amd/context/DomToModelContext.js.map +1 -0
- package/lib-amd/context/DomToModelFormatContext.d.ts +58 -0
- package/lib-amd/context/DomToModelFormatContext.js +5 -0
- package/lib-amd/context/DomToModelFormatContext.js.map +1 -0
- package/lib-amd/context/DomToModelOption.d.ts +40 -0
- package/lib-amd/context/DomToModelOption.js +5 -0
- package/lib-amd/context/DomToModelOption.js.map +1 -0
- package/lib-amd/context/DomToModelSelectionContext.d.ts +14 -0
- package/lib-amd/context/DomToModelSelectionContext.js +5 -0
- package/lib-amd/context/DomToModelSelectionContext.js.map +1 -0
- package/lib-amd/context/DomToModelSettings.d.ts +114 -0
- package/lib-amd/context/DomToModelSettings.js +5 -0
- package/lib-amd/context/DomToModelSettings.js.map +1 -0
- package/lib-amd/context/EditorContext.d.ts +50 -0
- package/lib-amd/context/EditorContext.js +5 -0
- package/lib-amd/context/EditorContext.js.map +1 -0
- package/lib-amd/context/ElementProcessor.d.ts +9 -0
- package/lib-amd/context/ElementProcessor.js +5 -0
- package/lib-amd/context/ElementProcessor.js.map +1 -0
- package/lib-amd/context/ModelToDomContext.d.ts +9 -0
- package/lib-amd/context/ModelToDomContext.js +5 -0
- package/lib-amd/context/ModelToDomContext.js.map +1 -0
- package/lib-amd/context/ModelToDomFormatContext.d.ts +38 -0
- package/lib-amd/context/ModelToDomFormatContext.js +5 -0
- package/lib-amd/context/ModelToDomFormatContext.js.map +1 -0
- package/lib-amd/context/ModelToDomOption.d.ts +26 -0
- package/lib-amd/context/ModelToDomOption.js +5 -0
- package/lib-amd/context/ModelToDomOption.js.map +1 -0
- package/lib-amd/context/ModelToDomSelectionContext.d.ts +49 -0
- package/lib-amd/context/ModelToDomSelectionContext.js +5 -0
- package/lib-amd/context/ModelToDomSelectionContext.js.map +1 -0
- package/lib-amd/context/ModelToDomSettings.d.ts +208 -0
- package/lib-amd/context/ModelToDomSettings.js +5 -0
- package/lib-amd/context/ModelToDomSettings.js.map +1 -0
- package/lib-amd/context/TextMutationObserver.d.ts +17 -0
- package/lib-amd/context/TextMutationObserver.js +5 -0
- package/lib-amd/context/TextMutationObserver.js.map +1 -0
- package/lib-amd/decorator/ContentModelCode.d.ts +9 -0
- package/lib-amd/decorator/ContentModelCode.js +5 -0
- package/lib-amd/decorator/ContentModelCode.js.map +1 -0
- package/lib-amd/decorator/ContentModelDecorator.d.ts +7 -0
- package/lib-amd/decorator/ContentModelDecorator.js +5 -0
- package/lib-amd/decorator/ContentModelDecorator.js.map +1 -0
- package/lib-amd/decorator/ContentModelLink.d.ts +10 -0
- package/lib-amd/decorator/ContentModelLink.js +5 -0
- package/lib-amd/decorator/ContentModelLink.js.map +1 -0
- package/lib-amd/decorator/ContentModelListLevel.d.ts +13 -0
- package/lib-amd/decorator/ContentModelListLevel.js +5 -0
- package/lib-amd/decorator/ContentModelListLevel.js.map +1 -0
- package/lib-amd/decorator/ContentModelParagraphDecorator.d.ts +13 -0
- package/lib-amd/decorator/ContentModelParagraphDecorator.js +5 -0
- package/lib-amd/decorator/ContentModelParagraphDecorator.js.map +1 -0
- package/lib-amd/editor/ContextMenuProvider.d.ts +12 -0
- package/lib-amd/editor/ContextMenuProvider.js +5 -0
- package/lib-amd/editor/ContextMenuProvider.js.map +1 -0
- package/lib-amd/editor/EditorCore.d.ts +304 -0
- package/lib-amd/editor/EditorCore.js +5 -0
- package/lib-amd/editor/EditorCore.js.map +1 -0
- package/lib-amd/editor/EditorCorePlugins.d.ts +51 -0
- package/lib-amd/editor/EditorCorePlugins.js +5 -0
- package/lib-amd/editor/EditorCorePlugins.js.map +1 -0
- package/lib-amd/editor/EditorOptions.d.ts +100 -0
- package/lib-amd/editor/EditorOptions.js +5 -0
- package/lib-amd/editor/EditorOptions.js.map +1 -0
- package/lib-amd/editor/EditorPlugin.d.ts +40 -0
- package/lib-amd/editor/EditorPlugin.js +5 -0
- package/lib-amd/editor/EditorPlugin.js.map +1 -0
- package/lib-amd/editor/IEditor.d.ts +171 -0
- package/lib-amd/editor/IEditor.js +5 -0
- package/lib-amd/editor/IEditor.js.map +1 -0
- package/lib-amd/editor/PluginWithState.d.ts +11 -0
- package/lib-amd/editor/PluginWithState.js +5 -0
- package/lib-amd/editor/PluginWithState.js.map +1 -0
- package/lib-amd/entity/ContentModelEntity.d.ts +18 -0
- package/lib-amd/entity/ContentModelEntity.js +5 -0
- package/lib-amd/entity/ContentModelEntity.js.map +1 -0
- package/lib-amd/enum/BlockGroupType.d.ts +24 -0
- package/lib-amd/enum/BlockGroupType.js +5 -0
- package/lib-amd/enum/BlockGroupType.js.map +1 -0
- package/lib-amd/enum/BlockType.d.ts +24 -0
- package/lib-amd/enum/BlockType.js +5 -0
- package/lib-amd/enum/BlockType.js.map +1 -0
- package/lib-amd/enum/BorderOperations.d.ts +36 -0
- package/lib-amd/enum/BorderOperations.js +5 -0
- package/lib-amd/enum/BorderOperations.js.map +1 -0
- package/lib-amd/enum/DeleteResult.d.ts +20 -0
- package/lib-amd/enum/DeleteResult.js +5 -0
- package/lib-amd/enum/DeleteResult.js.map +1 -0
- package/lib-amd/enum/EntityOperation.d.ts +51 -0
- package/lib-amd/enum/EntityOperation.js +5 -0
- package/lib-amd/enum/EntityOperation.js.map +1 -0
- package/lib-amd/enum/ExportContentMode.d.ts +16 -0
- package/lib-amd/enum/ExportContentMode.js +5 -0
- package/lib-amd/enum/ExportContentMode.js.map +1 -0
- package/lib-amd/enum/InsertEntityPosition.d.ts +8 -0
- package/lib-amd/enum/InsertEntityPosition.js +5 -0
- package/lib-amd/enum/InsertEntityPosition.js.map +1 -0
- package/lib-amd/enum/PasteType.d.ts +20 -0
- package/lib-amd/enum/PasteType.js +5 -0
- package/lib-amd/enum/PasteType.js.map +1 -0
- package/lib-amd/enum/SegmentType.d.ts +28 -0
- package/lib-amd/enum/SegmentType.js +5 -0
- package/lib-amd/enum/SegmentType.js.map +1 -0
- package/lib-amd/enum/TableOperation.d.ts +136 -0
- package/lib-amd/enum/TableOperation.js +5 -0
- package/lib-amd/enum/TableOperation.js.map +1 -0
- package/lib-amd/event/BasePluginEvent.d.ts +27 -0
- package/lib-amd/event/BasePluginEvent.js +5 -0
- package/lib-amd/event/BasePluginEvent.js.map +1 -0
- package/lib-amd/event/BeforeCutCopyEvent.d.ts +18 -0
- package/lib-amd/event/BeforeCutCopyEvent.js +5 -0
- package/lib-amd/event/BeforeCutCopyEvent.js.map +1 -0
- package/lib-amd/event/BeforeDisposeEvent.d.ts +6 -0
- package/lib-amd/event/BeforeDisposeEvent.js +5 -0
- package/lib-amd/event/BeforeDisposeEvent.js.map +1 -0
- package/lib-amd/event/BeforeKeyboardEditingEvent.d.ts +6 -0
- package/lib-amd/event/BeforeKeyboardEditingEvent.js +5 -0
- package/lib-amd/event/BeforeKeyboardEditingEvent.js.map +1 -0
- package/lib-amd/event/BeforePasteEvent.d.ts +50 -0
- package/lib-amd/event/BeforePasteEvent.js +5 -0
- package/lib-amd/event/BeforePasteEvent.js.map +1 -0
- package/lib-amd/event/BeforeSetContentEvent.d.ts +11 -0
- package/lib-amd/event/BeforeSetContentEvent.js +5 -0
- package/lib-amd/event/BeforeSetContentEvent.js.map +1 -0
- package/lib-amd/event/ContentChangedEvent.d.ts +61 -0
- package/lib-amd/event/ContentChangedEvent.js +5 -0
- package/lib-amd/event/ContentChangedEvent.js.map +1 -0
- package/lib-amd/event/ContextMenuEvent.d.ts +12 -0
- package/lib-amd/event/ContextMenuEvent.js +5 -0
- package/lib-amd/event/ContextMenuEvent.js.map +1 -0
- package/lib-amd/event/EditImageEvent.d.ts +25 -0
- package/lib-amd/event/EditImageEvent.js +5 -0
- package/lib-amd/event/EditImageEvent.js.map +1 -0
- package/lib-amd/event/EditorInputEvent.d.ts +10 -0
- package/lib-amd/event/EditorInputEvent.js +5 -0
- package/lib-amd/event/EditorInputEvent.js.map +1 -0
- package/lib-amd/event/EditorReadyEvent.d.ts +6 -0
- package/lib-amd/event/EditorReadyEvent.js +5 -0
- package/lib-amd/event/EditorReadyEvent.js.map +1 -0
- package/lib-amd/event/EntityOperationEvent.d.ts +52 -0
- package/lib-amd/event/EntityOperationEvent.js +5 -0
- package/lib-amd/event/EntityOperationEvent.js.map +1 -0
- package/lib-amd/event/ExtractContentWithDomEvent.d.ts +14 -0
- package/lib-amd/event/ExtractContentWithDomEvent.js +5 -0
- package/lib-amd/event/ExtractContentWithDomEvent.js.map +1 -0
- package/lib-amd/event/KeyboardEvent.d.ts +25 -0
- package/lib-amd/event/KeyboardEvent.js +5 -0
- package/lib-amd/event/KeyboardEvent.js.map +1 -0
- package/lib-amd/event/MouseEvent.d.ts +15 -0
- package/lib-amd/event/MouseEvent.js +5 -0
- package/lib-amd/event/MouseEvent.js.map +1 -0
- package/lib-amd/event/PluginEvent.d.ts +22 -0
- package/lib-amd/event/PluginEvent.js +5 -0
- package/lib-amd/event/PluginEvent.js.map +1 -0
- package/lib-amd/event/PluginEventData.d.ts +21 -0
- package/lib-amd/event/PluginEventData.js +5 -0
- package/lib-amd/event/PluginEventData.js.map +1 -0
- package/lib-amd/event/PluginEventType.d.ts +103 -0
- package/lib-amd/event/PluginEventType.js +5 -0
- package/lib-amd/event/PluginEventType.js.map +1 -0
- package/lib-amd/event/ScrollEvent.d.ts +10 -0
- package/lib-amd/event/ScrollEvent.js +5 -0
- package/lib-amd/event/ScrollEvent.js.map +1 -0
- package/lib-amd/event/SelectionChangedEvent.d.ts +11 -0
- package/lib-amd/event/SelectionChangedEvent.js +5 -0
- package/lib-amd/event/SelectionChangedEvent.js.map +1 -0
- package/lib-amd/event/ShadowEditEvent.d.ts +11 -0
- package/lib-amd/event/ShadowEditEvent.js +5 -0
- package/lib-amd/event/ShadowEditEvent.js.map +1 -0
- package/lib-amd/event/ZoomChangedEvent.d.ts +12 -0
- package/lib-amd/event/ZoomChangedEvent.js +5 -0
- package/lib-amd/event/ZoomChangedEvent.js.map +1 -0
- package/lib-amd/format/ContentModelBlockFormat.d.ts +14 -0
- package/lib-amd/format/ContentModelBlockFormat.js +5 -0
- package/lib-amd/format/ContentModelBlockFormat.js.map +1 -0
- package/lib-amd/format/ContentModelCodeFormat.d.ts +6 -0
- package/lib-amd/format/ContentModelCodeFormat.js +5 -0
- package/lib-amd/format/ContentModelCodeFormat.js.map +1 -0
- package/lib-amd/format/ContentModelDividerFormat.d.ts +7 -0
- package/lib-amd/format/ContentModelDividerFormat.js +5 -0
- package/lib-amd/format/ContentModelDividerFormat.js.map +1 -0
- package/lib-amd/format/ContentModelEntityFormat.d.ts +6 -0
- package/lib-amd/format/ContentModelEntityFormat.js +5 -0
- package/lib-amd/format/ContentModelEntityFormat.js.map +1 -0
- package/lib-amd/format/ContentModelFormatBase.d.ts +8 -0
- package/lib-amd/format/ContentModelFormatBase.js +5 -0
- package/lib-amd/format/ContentModelFormatBase.js.map +1 -0
- package/lib-amd/format/ContentModelFormatContainerFormat.d.ts +8 -0
- package/lib-amd/format/ContentModelFormatContainerFormat.js +5 -0
- package/lib-amd/format/ContentModelFormatContainerFormat.js.map +1 -0
- package/lib-amd/format/ContentModelFormatMap.d.ts +124 -0
- package/lib-amd/format/ContentModelFormatMap.js +5 -0
- package/lib-amd/format/ContentModelFormatMap.js.map +1 -0
- package/lib-amd/format/ContentModelHyperLinkFormat.d.ts +14 -0
- package/lib-amd/format/ContentModelHyperLinkFormat.js +5 -0
- package/lib-amd/format/ContentModelHyperLinkFormat.js.map +1 -0
- package/lib-amd/format/ContentModelImageFormat.d.ts +14 -0
- package/lib-amd/format/ContentModelImageFormat.js +5 -0
- package/lib-amd/format/ContentModelImageFormat.js.map +1 -0
- package/lib-amd/format/ContentModelListItemFormat.d.ts +12 -0
- package/lib-amd/format/ContentModelListItemFormat.js +5 -0
- package/lib-amd/format/ContentModelListItemFormat.js.map +1 -0
- package/lib-amd/format/ContentModelListItemLevelFormat.d.ts +10 -0
- package/lib-amd/format/ContentModelListItemLevelFormat.js +5 -0
- package/lib-amd/format/ContentModelListItemLevelFormat.js.map +1 -0
- package/lib-amd/format/ContentModelSegmentFormat.d.ts +15 -0
- package/lib-amd/format/ContentModelSegmentFormat.js +5 -0
- package/lib-amd/format/ContentModelSegmentFormat.js.map +1 -0
- package/lib-amd/format/ContentModelTableCellFormat.d.ts +10 -0
- package/lib-amd/format/ContentModelTableCellFormat.js +5 -0
- package/lib-amd/format/ContentModelTableCellFormat.js.map +1 -0
- package/lib-amd/format/ContentModelTableFormat.d.ts +13 -0
- package/lib-amd/format/ContentModelTableFormat.js +5 -0
- package/lib-amd/format/ContentModelTableFormat.js.map +1 -0
- package/lib-amd/format/ContentModelWithDataset.d.ts +10 -0
- package/lib-amd/format/ContentModelWithDataset.js +5 -0
- package/lib-amd/format/ContentModelWithDataset.js.map +1 -0
- package/lib-amd/format/ContentModelWithFormat.d.ts +10 -0
- package/lib-amd/format/ContentModelWithFormat.js +5 -0
- package/lib-amd/format/ContentModelWithFormat.js.map +1 -0
- package/lib-amd/format/FormatHandlerTypeMap.d.ts +187 -0
- package/lib-amd/format/FormatHandlerTypeMap.js +5 -0
- package/lib-amd/format/FormatHandlerTypeMap.js.map +1 -0
- package/lib-amd/format/formatParts/BackgroundColorFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/BackgroundColorFormat.js +5 -0
- package/lib-amd/format/formatParts/BackgroundColorFormat.js.map +1 -0
- package/lib-amd/format/formatParts/BoldFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/BoldFormat.js +5 -0
- package/lib-amd/format/formatParts/BoldFormat.js.map +1 -0
- package/lib-amd/format/formatParts/BorderBoxFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/BorderBoxFormat.js +5 -0
- package/lib-amd/format/formatParts/BorderBoxFormat.js.map +1 -0
- package/lib-amd/format/formatParts/BorderFormat.d.ts +41 -0
- package/lib-amd/format/formatParts/BorderFormat.js +5 -0
- package/lib-amd/format/formatParts/BorderFormat.js.map +1 -0
- package/lib-amd/format/formatParts/BoxShadowFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/BoxShadowFormat.js +5 -0
- package/lib-amd/format/formatParts/BoxShadowFormat.js.map +1 -0
- package/lib-amd/format/formatParts/DirectionFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/DirectionFormat.js +5 -0
- package/lib-amd/format/formatParts/DirectionFormat.js.map +1 -0
- package/lib-amd/format/formatParts/DisplayFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/DisplayFormat.js +5 -0
- package/lib-amd/format/formatParts/DisplayFormat.js.map +1 -0
- package/lib-amd/format/formatParts/EntityInfoFormat.d.ts +17 -0
- package/lib-amd/format/formatParts/EntityInfoFormat.js +5 -0
- package/lib-amd/format/formatParts/EntityInfoFormat.js.map +1 -0
- package/lib-amd/format/formatParts/FloatFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/FloatFormat.js +5 -0
- package/lib-amd/format/formatParts/FloatFormat.js.map +1 -0
- package/lib-amd/format/formatParts/FontFamilyFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/FontFamilyFormat.js +5 -0
- package/lib-amd/format/formatParts/FontFamilyFormat.js.map +1 -0
- package/lib-amd/format/formatParts/FontSizeFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/FontSizeFormat.js +5 -0
- package/lib-amd/format/formatParts/FontSizeFormat.js.map +1 -0
- package/lib-amd/format/formatParts/HtmlAlignFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/HtmlAlignFormat.js +5 -0
- package/lib-amd/format/formatParts/HtmlAlignFormat.js.map +1 -0
- package/lib-amd/format/formatParts/IdFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/IdFormat.js +5 -0
- package/lib-amd/format/formatParts/IdFormat.js.map +1 -0
- package/lib-amd/format/formatParts/ItalicFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/ItalicFormat.js +5 -0
- package/lib-amd/format/formatParts/ItalicFormat.js.map +1 -0
- package/lib-amd/format/formatParts/LetterSpacingFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/LetterSpacingFormat.js +5 -0
- package/lib-amd/format/formatParts/LetterSpacingFormat.js.map +1 -0
- package/lib-amd/format/formatParts/LineHeightFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/LineHeightFormat.js +5 -0
- package/lib-amd/format/formatParts/LineHeightFormat.js.map +1 -0
- package/lib-amd/format/formatParts/LinkFormat.d.ts +33 -0
- package/lib-amd/format/formatParts/LinkFormat.js +5 -0
- package/lib-amd/format/formatParts/LinkFormat.js.map +1 -0
- package/lib-amd/format/formatParts/ListStyleFormat.d.ts +13 -0
- package/lib-amd/format/formatParts/ListStyleFormat.js +5 -0
- package/lib-amd/format/formatParts/ListStyleFormat.js.map +1 -0
- package/lib-amd/format/formatParts/ListThreadFormat.d.ts +17 -0
- package/lib-amd/format/formatParts/ListThreadFormat.js +5 -0
- package/lib-amd/format/formatParts/ListThreadFormat.js.map +1 -0
- package/lib-amd/format/formatParts/MarginFormat.d.ts +21 -0
- package/lib-amd/format/formatParts/MarginFormat.js +5 -0
- package/lib-amd/format/formatParts/MarginFormat.js.map +1 -0
- package/lib-amd/format/formatParts/PaddingFormat.d.ts +21 -0
- package/lib-amd/format/formatParts/PaddingFormat.js +5 -0
- package/lib-amd/format/formatParts/PaddingFormat.js.map +1 -0
- package/lib-amd/format/formatParts/SizeFormat.d.ts +29 -0
- package/lib-amd/format/formatParts/SizeFormat.js +5 -0
- package/lib-amd/format/formatParts/SizeFormat.js.map +1 -0
- package/lib-amd/format/formatParts/SpacingFormat.d.ts +13 -0
- package/lib-amd/format/formatParts/SpacingFormat.js +5 -0
- package/lib-amd/format/formatParts/SpacingFormat.js.map +1 -0
- package/lib-amd/format/formatParts/StrikeFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/StrikeFormat.js +5 -0
- package/lib-amd/format/formatParts/StrikeFormat.js.map +1 -0
- package/lib-amd/format/formatParts/SuperOrSubScriptFormat.d.ts +10 -0
- package/lib-amd/format/formatParts/SuperOrSubScriptFormat.js +5 -0
- package/lib-amd/format/formatParts/SuperOrSubScriptFormat.js.map +1 -0
- package/lib-amd/format/formatParts/TableLayoutFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/TableLayoutFormat.js +5 -0
- package/lib-amd/format/formatParts/TableLayoutFormat.js.map +1 -0
- package/lib-amd/format/formatParts/TextAlignFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/TextAlignFormat.js +5 -0
- package/lib-amd/format/formatParts/TextAlignFormat.js.map +1 -0
- package/lib-amd/format/formatParts/TextColorFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/TextColorFormat.js +5 -0
- package/lib-amd/format/formatParts/TextColorFormat.js.map +1 -0
- package/lib-amd/format/formatParts/TextIndentFormat.d.ts +14 -0
- package/lib-amd/format/formatParts/TextIndentFormat.js +5 -0
- package/lib-amd/format/formatParts/TextIndentFormat.js.map +1 -0
- package/lib-amd/format/formatParts/UnderlineFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/UnderlineFormat.js +5 -0
- package/lib-amd/format/formatParts/UnderlineFormat.js.map +1 -0
- package/lib-amd/format/formatParts/VerticalAlignFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/VerticalAlignFormat.js +5 -0
- package/lib-amd/format/formatParts/VerticalAlignFormat.js.map +1 -0
- package/lib-amd/format/formatParts/WhiteSpaceFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/WhiteSpaceFormat.js +5 -0
- package/lib-amd/format/formatParts/WhiteSpaceFormat.js.map +1 -0
- package/lib-amd/format/formatParts/WordBreakFormat.d.ts +9 -0
- package/lib-amd/format/formatParts/WordBreakFormat.js +5 -0
- package/lib-amd/format/formatParts/WordBreakFormat.js.map +1 -0
- package/lib-amd/format/metadata/DatasetFormat.d.ts +4 -0
- package/lib-amd/format/metadata/DatasetFormat.js +5 -0
- package/lib-amd/format/metadata/DatasetFormat.js.map +1 -0
- package/lib-amd/format/metadata/ImageMetadataFormat.d.ts +72 -0
- package/lib-amd/format/metadata/ImageMetadataFormat.js +5 -0
- package/lib-amd/format/metadata/ImageMetadataFormat.js.map +1 -0
- package/lib-amd/format/metadata/ListMetadataFormat.d.ts +19 -0
- package/lib-amd/format/metadata/ListMetadataFormat.js +5 -0
- package/lib-amd/format/metadata/ListMetadataFormat.js.map +1 -0
- package/lib-amd/format/metadata/TableCellMetadataFormat.d.ts +17 -0
- package/lib-amd/format/metadata/TableCellMetadataFormat.js +5 -0
- package/lib-amd/format/metadata/TableCellMetadataFormat.js.map +1 -0
- package/lib-amd/format/metadata/TableMetadataFormat.d.ts +53 -0
- package/lib-amd/format/metadata/TableMetadataFormat.js +5 -0
- package/lib-amd/format/metadata/TableMetadataFormat.js.map +1 -0
- package/lib-amd/group/ContentModelBlockGroup.d.ts +9 -0
- package/lib-amd/group/ContentModelBlockGroup.js +5 -0
- package/lib-amd/group/ContentModelBlockGroup.js.map +1 -0
- package/lib-amd/group/ContentModelBlockGroupBase.d.ts +15 -0
- package/lib-amd/group/ContentModelBlockGroupBase.js +5 -0
- package/lib-amd/group/ContentModelBlockGroupBase.js.map +1 -0
- package/lib-amd/group/ContentModelDocument.d.ts +8 -0
- package/lib-amd/group/ContentModelDocument.js +5 -0
- package/lib-amd/group/ContentModelDocument.js.map +1 -0
- package/lib-amd/group/ContentModelFormatContainer.d.ts +18 -0
- package/lib-amd/group/ContentModelFormatContainer.js +5 -0
- package/lib-amd/group/ContentModelFormatContainer.js.map +1 -0
- package/lib-amd/group/ContentModelGeneralBlock.d.ts +14 -0
- package/lib-amd/group/ContentModelGeneralBlock.js +5 -0
- package/lib-amd/group/ContentModelGeneralBlock.js.map +1 -0
- package/lib-amd/group/ContentModelListItem.d.ts +18 -0
- package/lib-amd/group/ContentModelListItem.js +5 -0
- package/lib-amd/group/ContentModelListItem.js.map +1 -0
- package/lib-amd/group/ContentModelTableCell.d.ts +24 -0
- package/lib-amd/group/ContentModelTableCell.js +5 -0
- package/lib-amd/group/ContentModelTableCell.js.map +1 -0
- package/lib-amd/index.d.ts +172 -0
- package/lib-amd/index.js +5 -0
- package/lib-amd/index.js.map +1 -0
- package/lib-amd/metadata/Definition.d.ts +93 -0
- package/lib-amd/metadata/Definition.js +5 -0
- package/lib-amd/metadata/Definition.js.map +1 -0
- package/lib-amd/metadata/DefinitionType.d.ts +24 -0
- package/lib-amd/metadata/DefinitionType.js +5 -0
- package/lib-amd/metadata/DefinitionType.js.map +1 -0
- package/lib-amd/parameter/AnnounceData.d.ts +39 -0
- package/lib-amd/parameter/AnnounceData.js +5 -0
- package/lib-amd/parameter/AnnounceData.js.map +1 -0
- package/lib-amd/parameter/Border.d.ts +18 -0
- package/lib-amd/parameter/Border.js +5 -0
- package/lib-amd/parameter/Border.js.map +1 -0
- package/lib-amd/parameter/ClipboardData.d.ts +58 -0
- package/lib-amd/parameter/ClipboardData.js +5 -0
- package/lib-amd/parameter/ClipboardData.js.map +1 -0
- package/lib-amd/parameter/ContentModelFormatState.d.ts +143 -0
- package/lib-amd/parameter/ContentModelFormatState.js +5 -0
- package/lib-amd/parameter/ContentModelFormatState.js.map +1 -0
- package/lib-amd/parameter/DOMEventRecord.d.ts +19 -0
- package/lib-amd/parameter/DOMEventRecord.js +5 -0
- package/lib-amd/parameter/DOMEventRecord.js.map +1 -0
- package/lib-amd/parameter/DOMHelper.d.ts +48 -0
- package/lib-amd/parameter/DOMHelper.js +5 -0
- package/lib-amd/parameter/DOMHelper.js.map +1 -0
- package/lib-amd/parameter/DeleteSelectionStep.d.ts +49 -0
- package/lib-amd/parameter/DeleteSelectionStep.js +5 -0
- package/lib-amd/parameter/DeleteSelectionStep.js.map +1 -0
- package/lib-amd/parameter/EdgeLinkPreview.d.ts +25 -0
- package/lib-amd/parameter/EdgeLinkPreview.js +5 -0
- package/lib-amd/parameter/EdgeLinkPreview.js.map +1 -0
- package/lib-amd/parameter/EditorEnvironment.d.ts +21 -0
- package/lib-amd/parameter/EditorEnvironment.js +5 -0
- package/lib-amd/parameter/EditorEnvironment.js.map +1 -0
- package/lib-amd/parameter/FormatContentModelContext.d.ts +86 -0
- package/lib-amd/parameter/FormatContentModelContext.js +5 -0
- package/lib-amd/parameter/FormatContentModelContext.js.map +1 -0
- package/lib-amd/parameter/FormatContentModelOptions.d.ts +42 -0
- package/lib-amd/parameter/FormatContentModelOptions.js +5 -0
- package/lib-amd/parameter/FormatContentModelOptions.js.map +1 -0
- package/lib-amd/parameter/ImageFormatState.d.ts +25 -0
- package/lib-amd/parameter/ImageFormatState.js +5 -0
- package/lib-amd/parameter/ImageFormatState.js.map +1 -0
- package/lib-amd/parameter/InsertEntityOptions.d.ts +25 -0
- package/lib-amd/parameter/InsertEntityOptions.js +5 -0
- package/lib-amd/parameter/InsertEntityOptions.js.map +1 -0
- package/lib-amd/parameter/Rect.d.ts +21 -0
- package/lib-amd/parameter/Rect.js +5 -0
- package/lib-amd/parameter/Rect.js.map +1 -0
- package/lib-amd/parameter/Snapshot.d.ts +100 -0
- package/lib-amd/parameter/Snapshot.js +5 -0
- package/lib-amd/parameter/Snapshot.js.map +1 -0
- package/lib-amd/parameter/SnapshotsManager.d.ts +35 -0
- package/lib-amd/parameter/SnapshotsManager.js +5 -0
- package/lib-amd/parameter/SnapshotsManager.js.map +1 -0
- package/lib-amd/parameter/TrustedHTMLHandler.d.ts +4 -0
- package/lib-amd/parameter/TrustedHTMLHandler.js +5 -0
- package/lib-amd/parameter/TrustedHTMLHandler.js.map +1 -0
- package/lib-amd/parameter/ValueSanitizer.d.ts +10 -0
- package/lib-amd/parameter/ValueSanitizer.js +5 -0
- package/lib-amd/parameter/ValueSanitizer.js.map +1 -0
- package/lib-amd/pluginState/CachePluginState.d.ts +25 -0
- package/lib-amd/pluginState/CachePluginState.js +5 -0
- package/lib-amd/pluginState/CachePluginState.js.map +1 -0
- package/lib-amd/pluginState/ContextMenuPluginState.d.ts +10 -0
- package/lib-amd/pluginState/ContextMenuPluginState.js +5 -0
- package/lib-amd/pluginState/ContextMenuPluginState.js.map +1 -0
- package/lib-amd/pluginState/CopyPastePluginState.d.ts +19 -0
- package/lib-amd/pluginState/CopyPastePluginState.js +5 -0
- package/lib-amd/pluginState/CopyPastePluginState.js.map +1 -0
- package/lib-amd/pluginState/DOMEventPluginState.d.ts +25 -0
- package/lib-amd/pluginState/DOMEventPluginState.js +5 -0
- package/lib-amd/pluginState/DOMEventPluginState.js.map +1 -0
- package/lib-amd/pluginState/EntityPluginState.d.ts +26 -0
- package/lib-amd/pluginState/EntityPluginState.js +5 -0
- package/lib-amd/pluginState/EntityPluginState.js.map +1 -0
- package/lib-amd/pluginState/FormatPluginState.d.ts +31 -0
- package/lib-amd/pluginState/FormatPluginState.js +5 -0
- package/lib-amd/pluginState/FormatPluginState.js.map +1 -0
- package/lib-amd/pluginState/LifecyclePluginState.d.ts +13 -0
- package/lib-amd/pluginState/LifecyclePluginState.js +5 -0
- package/lib-amd/pluginState/LifecyclePluginState.js.map +1 -0
- package/lib-amd/pluginState/PluginState.d.ts +30 -0
- package/lib-amd/pluginState/PluginState.js +5 -0
- package/lib-amd/pluginState/PluginState.js.map +1 -0
- package/lib-amd/pluginState/SelectionPluginState.d.ts +22 -0
- package/lib-amd/pluginState/SelectionPluginState.js +5 -0
- package/lib-amd/pluginState/SelectionPluginState.js.map +1 -0
- package/lib-amd/pluginState/UndoPluginState.d.ts +30 -0
- package/lib-amd/pluginState/UndoPluginState.js +5 -0
- package/lib-amd/pluginState/UndoPluginState.js.map +1 -0
- package/lib-amd/segment/ContentModelBr.d.ts +6 -0
- package/lib-amd/segment/ContentModelBr.js +5 -0
- package/lib-amd/segment/ContentModelBr.js.map +1 -0
- package/lib-amd/segment/ContentModelGeneralSegment.d.ts +9 -0
- package/lib-amd/segment/ContentModelGeneralSegment.js +5 -0
- package/lib-amd/segment/ContentModelGeneralSegment.js.map +1 -0
- package/lib-amd/segment/ContentModelImage.d.ts +25 -0
- package/lib-amd/segment/ContentModelImage.js +5 -0
- package/lib-amd/segment/ContentModelImage.js.map +1 -0
- package/lib-amd/segment/ContentModelSegment.d.ts +10 -0
- package/lib-amd/segment/ContentModelSegment.js +5 -0
- package/lib-amd/segment/ContentModelSegment.js.map +1 -0
- package/lib-amd/segment/ContentModelSegmentBase.d.ts +23 -0
- package/lib-amd/segment/ContentModelSegmentBase.js +5 -0
- package/lib-amd/segment/ContentModelSegmentBase.js.map +1 -0
- package/lib-amd/segment/ContentModelSelectionMarker.d.ts +10 -0
- package/lib-amd/segment/ContentModelSelectionMarker.js +5 -0
- package/lib-amd/segment/ContentModelSelectionMarker.js.map +1 -0
- package/lib-amd/segment/ContentModelText.d.ts +10 -0
- package/lib-amd/segment/ContentModelText.js +5 -0
- package/lib-amd/segment/ContentModelText.js.map +1 -0
- package/lib-amd/selection/DOMSelection.d.ts +57 -0
- package/lib-amd/selection/DOMSelection.js +5 -0
- package/lib-amd/selection/DOMSelection.js.map +1 -0
- package/lib-amd/selection/InsertPoint.d.ts +25 -0
- package/lib-amd/selection/InsertPoint.js +5 -0
- package/lib-amd/selection/InsertPoint.js.map +1 -0
- package/lib-amd/selection/Selectable.d.ts +9 -0
- package/lib-amd/selection/Selectable.js +5 -0
- package/lib-amd/selection/Selectable.js.map +1 -0
- package/lib-amd/selection/TableSelectionContext.d.ts +22 -0
- package/lib-amd/selection/TableSelectionContext.js +5 -0
- package/lib-amd/selection/TableSelectionContext.js.map +1 -0
- package/lib-amd/selection/TableSelectionCoordinates.d.ts +21 -0
- package/lib-amd/selection/TableSelectionCoordinates.js +5 -0
- package/lib-amd/selection/TableSelectionCoordinates.js.map +1 -0
- package/lib-mjs/block/ContentModelBlock.d.ts +11 -0
- package/lib-mjs/block/ContentModelBlock.js +2 -0
- package/lib-mjs/block/ContentModelBlock.js.map +1 -0
- package/lib-mjs/block/ContentModelBlockBase.d.ts +12 -0
- package/lib-mjs/block/ContentModelBlockBase.js +2 -0
- package/lib-mjs/block/ContentModelBlockBase.js.map +1 -0
- package/lib-mjs/block/ContentModelBlockWithCache.d.ts +9 -0
- package/lib-mjs/block/ContentModelBlockWithCache.js +2 -0
- package/lib-mjs/block/ContentModelBlockWithCache.js.map +1 -0
- package/lib-mjs/block/ContentModelDivider.d.ts +17 -0
- package/lib-mjs/block/ContentModelDivider.js +2 -0
- package/lib-mjs/block/ContentModelDivider.js.map +1 -0
- package/lib-mjs/block/ContentModelParagraph.d.ts +27 -0
- package/lib-mjs/block/ContentModelParagraph.js +2 -0
- package/lib-mjs/block/ContentModelParagraph.js.map +1 -0
- package/lib-mjs/block/ContentModelTable.d.ts +19 -0
- package/lib-mjs/block/ContentModelTable.js +2 -0
- package/lib-mjs/block/ContentModelTable.js.map +1 -0
- package/lib-mjs/block/ContentModelTableRow.d.ts +17 -0
- package/lib-mjs/block/ContentModelTableRow.js +2 -0
- package/lib-mjs/block/ContentModelTableRow.js.map +1 -0
- package/lib-mjs/context/ContentModelHandler.d.ts +34 -0
- package/lib-mjs/context/ContentModelHandler.js +2 -0
- package/lib-mjs/context/ContentModelHandler.js.map +1 -0
- package/lib-mjs/context/DarkColorHandler.d.ts +52 -0
- package/lib-mjs/context/DarkColorHandler.js +2 -0
- package/lib-mjs/context/DarkColorHandler.js.map +1 -0
- package/lib-mjs/context/DomIndexer.d.ts +37 -0
- package/lib-mjs/context/DomIndexer.js +2 -0
- package/lib-mjs/context/DomIndexer.js.map +1 -0
- package/lib-mjs/context/DomToModelContext.d.ts +9 -0
- package/lib-mjs/context/DomToModelContext.js +2 -0
- package/lib-mjs/context/DomToModelContext.js.map +1 -0
- package/lib-mjs/context/DomToModelFormatContext.d.ts +58 -0
- package/lib-mjs/context/DomToModelFormatContext.js +2 -0
- package/lib-mjs/context/DomToModelFormatContext.js.map +1 -0
- package/lib-mjs/context/DomToModelOption.d.ts +40 -0
- package/lib-mjs/context/DomToModelOption.js +2 -0
- package/lib-mjs/context/DomToModelOption.js.map +1 -0
- package/lib-mjs/context/DomToModelSelectionContext.d.ts +14 -0
- package/lib-mjs/context/DomToModelSelectionContext.js +2 -0
- package/lib-mjs/context/DomToModelSelectionContext.js.map +1 -0
- package/lib-mjs/context/DomToModelSettings.d.ts +114 -0
- package/lib-mjs/context/DomToModelSettings.js +2 -0
- package/lib-mjs/context/DomToModelSettings.js.map +1 -0
- package/lib-mjs/context/EditorContext.d.ts +50 -0
- package/lib-mjs/context/EditorContext.js +2 -0
- package/lib-mjs/context/EditorContext.js.map +1 -0
- package/lib-mjs/context/ElementProcessor.d.ts +9 -0
- package/lib-mjs/context/ElementProcessor.js +2 -0
- package/lib-mjs/context/ElementProcessor.js.map +1 -0
- package/lib-mjs/context/ModelToDomContext.d.ts +9 -0
- package/lib-mjs/context/ModelToDomContext.js +2 -0
- package/lib-mjs/context/ModelToDomContext.js.map +1 -0
- package/lib-mjs/context/ModelToDomFormatContext.d.ts +38 -0
- package/lib-mjs/context/ModelToDomFormatContext.js +2 -0
- package/lib-mjs/context/ModelToDomFormatContext.js.map +1 -0
- package/lib-mjs/context/ModelToDomOption.d.ts +26 -0
- package/lib-mjs/context/ModelToDomOption.js +2 -0
- package/lib-mjs/context/ModelToDomOption.js.map +1 -0
- package/lib-mjs/context/ModelToDomSelectionContext.d.ts +49 -0
- package/lib-mjs/context/ModelToDomSelectionContext.js +2 -0
- package/lib-mjs/context/ModelToDomSelectionContext.js.map +1 -0
- package/lib-mjs/context/ModelToDomSettings.d.ts +208 -0
- package/lib-mjs/context/ModelToDomSettings.js +2 -0
- package/lib-mjs/context/ModelToDomSettings.js.map +1 -0
- package/lib-mjs/context/TextMutationObserver.d.ts +17 -0
- package/lib-mjs/context/TextMutationObserver.js +2 -0
- package/lib-mjs/context/TextMutationObserver.js.map +1 -0
- package/lib-mjs/decorator/ContentModelCode.d.ts +9 -0
- package/lib-mjs/decorator/ContentModelCode.js +2 -0
- package/lib-mjs/decorator/ContentModelCode.js.map +1 -0
- package/lib-mjs/decorator/ContentModelDecorator.d.ts +7 -0
- package/lib-mjs/decorator/ContentModelDecorator.js +2 -0
- package/lib-mjs/decorator/ContentModelDecorator.js.map +1 -0
- package/lib-mjs/decorator/ContentModelLink.d.ts +10 -0
- package/lib-mjs/decorator/ContentModelLink.js +2 -0
- package/lib-mjs/decorator/ContentModelLink.js.map +1 -0
- package/lib-mjs/decorator/ContentModelListLevel.d.ts +13 -0
- package/lib-mjs/decorator/ContentModelListLevel.js +2 -0
- package/lib-mjs/decorator/ContentModelListLevel.js.map +1 -0
- package/lib-mjs/decorator/ContentModelParagraphDecorator.d.ts +13 -0
- package/lib-mjs/decorator/ContentModelParagraphDecorator.js +2 -0
- package/lib-mjs/decorator/ContentModelParagraphDecorator.js.map +1 -0
- package/lib-mjs/editor/ContextMenuProvider.d.ts +12 -0
- package/lib-mjs/editor/ContextMenuProvider.js +2 -0
- package/lib-mjs/editor/ContextMenuProvider.js.map +1 -0
- package/lib-mjs/editor/EditorCore.d.ts +304 -0
- package/lib-mjs/editor/EditorCore.js +2 -0
- package/lib-mjs/editor/EditorCore.js.map +1 -0
- package/lib-mjs/editor/EditorCorePlugins.d.ts +51 -0
- package/lib-mjs/editor/EditorCorePlugins.js +2 -0
- package/lib-mjs/editor/EditorCorePlugins.js.map +1 -0
- package/lib-mjs/editor/EditorOptions.d.ts +100 -0
- package/lib-mjs/editor/EditorOptions.js +2 -0
- package/lib-mjs/editor/EditorOptions.js.map +1 -0
- package/lib-mjs/editor/EditorPlugin.d.ts +40 -0
- package/lib-mjs/editor/EditorPlugin.js +2 -0
- package/lib-mjs/editor/EditorPlugin.js.map +1 -0
- package/lib-mjs/editor/IEditor.d.ts +171 -0
- package/lib-mjs/editor/IEditor.js +2 -0
- package/lib-mjs/editor/IEditor.js.map +1 -0
- package/lib-mjs/editor/PluginWithState.d.ts +11 -0
- package/lib-mjs/editor/PluginWithState.js +2 -0
- package/lib-mjs/editor/PluginWithState.js.map +1 -0
- package/lib-mjs/entity/ContentModelEntity.d.ts +18 -0
- package/lib-mjs/entity/ContentModelEntity.js +2 -0
- package/lib-mjs/entity/ContentModelEntity.js.map +1 -0
- package/lib-mjs/enum/BlockGroupType.d.ts +24 -0
- package/lib-mjs/enum/BlockGroupType.js +2 -0
- package/lib-mjs/enum/BlockGroupType.js.map +1 -0
- package/lib-mjs/enum/BlockType.d.ts +24 -0
- package/lib-mjs/enum/BlockType.js +2 -0
- package/lib-mjs/enum/BlockType.js.map +1 -0
- package/lib-mjs/enum/BorderOperations.d.ts +36 -0
- package/lib-mjs/enum/BorderOperations.js +2 -0
- package/lib-mjs/enum/BorderOperations.js.map +1 -0
- package/lib-mjs/enum/DeleteResult.d.ts +20 -0
- package/lib-mjs/enum/DeleteResult.js +2 -0
- package/lib-mjs/enum/DeleteResult.js.map +1 -0
- package/lib-mjs/enum/EntityOperation.d.ts +51 -0
- package/lib-mjs/enum/EntityOperation.js +2 -0
- package/lib-mjs/enum/EntityOperation.js.map +1 -0
- package/lib-mjs/enum/ExportContentMode.d.ts +16 -0
- package/lib-mjs/enum/ExportContentMode.js +2 -0
- package/lib-mjs/enum/ExportContentMode.js.map +1 -0
- package/lib-mjs/enum/InsertEntityPosition.d.ts +8 -0
- package/lib-mjs/enum/InsertEntityPosition.js +2 -0
- package/lib-mjs/enum/InsertEntityPosition.js.map +1 -0
- package/lib-mjs/enum/PasteType.d.ts +20 -0
- package/lib-mjs/enum/PasteType.js +2 -0
- package/lib-mjs/enum/PasteType.js.map +1 -0
- package/lib-mjs/enum/SegmentType.d.ts +28 -0
- package/lib-mjs/enum/SegmentType.js +2 -0
- package/lib-mjs/enum/SegmentType.js.map +1 -0
- package/lib-mjs/enum/TableOperation.d.ts +136 -0
- package/lib-mjs/enum/TableOperation.js +2 -0
- package/lib-mjs/enum/TableOperation.js.map +1 -0
- package/lib-mjs/event/BasePluginEvent.d.ts +27 -0
- package/lib-mjs/event/BasePluginEvent.js +2 -0
- package/lib-mjs/event/BasePluginEvent.js.map +1 -0
- package/lib-mjs/event/BeforeCutCopyEvent.d.ts +18 -0
- package/lib-mjs/event/BeforeCutCopyEvent.js +2 -0
- package/lib-mjs/event/BeforeCutCopyEvent.js.map +1 -0
- package/lib-mjs/event/BeforeDisposeEvent.d.ts +6 -0
- package/lib-mjs/event/BeforeDisposeEvent.js +2 -0
- package/lib-mjs/event/BeforeDisposeEvent.js.map +1 -0
- package/lib-mjs/event/BeforeKeyboardEditingEvent.d.ts +6 -0
- package/lib-mjs/event/BeforeKeyboardEditingEvent.js +2 -0
- package/lib-mjs/event/BeforeKeyboardEditingEvent.js.map +1 -0
- package/lib-mjs/event/BeforePasteEvent.d.ts +50 -0
- package/lib-mjs/event/BeforePasteEvent.js +2 -0
- package/lib-mjs/event/BeforePasteEvent.js.map +1 -0
- package/lib-mjs/event/BeforeSetContentEvent.d.ts +11 -0
- package/lib-mjs/event/BeforeSetContentEvent.js +2 -0
- package/lib-mjs/event/BeforeSetContentEvent.js.map +1 -0
- package/lib-mjs/event/ContentChangedEvent.d.ts +61 -0
- package/lib-mjs/event/ContentChangedEvent.js +2 -0
- package/lib-mjs/event/ContentChangedEvent.js.map +1 -0
- package/lib-mjs/event/ContextMenuEvent.d.ts +12 -0
- package/lib-mjs/event/ContextMenuEvent.js +2 -0
- package/lib-mjs/event/ContextMenuEvent.js.map +1 -0
- package/lib-mjs/event/EditImageEvent.d.ts +25 -0
- package/lib-mjs/event/EditImageEvent.js +2 -0
- package/lib-mjs/event/EditImageEvent.js.map +1 -0
- package/lib-mjs/event/EditorInputEvent.d.ts +10 -0
- package/lib-mjs/event/EditorInputEvent.js +2 -0
- package/lib-mjs/event/EditorInputEvent.js.map +1 -0
- package/lib-mjs/event/EditorReadyEvent.d.ts +6 -0
- package/lib-mjs/event/EditorReadyEvent.js +2 -0
- package/lib-mjs/event/EditorReadyEvent.js.map +1 -0
- package/lib-mjs/event/EntityOperationEvent.d.ts +52 -0
- package/lib-mjs/event/EntityOperationEvent.js +2 -0
- package/lib-mjs/event/EntityOperationEvent.js.map +1 -0
- package/lib-mjs/event/ExtractContentWithDomEvent.d.ts +14 -0
- package/lib-mjs/event/ExtractContentWithDomEvent.js +2 -0
- package/lib-mjs/event/ExtractContentWithDomEvent.js.map +1 -0
- package/lib-mjs/event/KeyboardEvent.d.ts +25 -0
- package/lib-mjs/event/KeyboardEvent.js +2 -0
- package/lib-mjs/event/KeyboardEvent.js.map +1 -0
- package/lib-mjs/event/MouseEvent.d.ts +15 -0
- package/lib-mjs/event/MouseEvent.js +2 -0
- package/lib-mjs/event/MouseEvent.js.map +1 -0
- package/lib-mjs/event/PluginEvent.d.ts +22 -0
- package/lib-mjs/event/PluginEvent.js +2 -0
- package/lib-mjs/event/PluginEvent.js.map +1 -0
- package/lib-mjs/event/PluginEventData.d.ts +21 -0
- package/lib-mjs/event/PluginEventData.js +2 -0
- package/lib-mjs/event/PluginEventData.js.map +1 -0
- package/lib-mjs/event/PluginEventType.d.ts +103 -0
- package/lib-mjs/event/PluginEventType.js +2 -0
- package/lib-mjs/event/PluginEventType.js.map +1 -0
- package/lib-mjs/event/ScrollEvent.d.ts +10 -0
- package/lib-mjs/event/ScrollEvent.js +2 -0
- package/lib-mjs/event/ScrollEvent.js.map +1 -0
- package/lib-mjs/event/SelectionChangedEvent.d.ts +11 -0
- package/lib-mjs/event/SelectionChangedEvent.js +2 -0
- package/lib-mjs/event/SelectionChangedEvent.js.map +1 -0
- package/lib-mjs/event/ShadowEditEvent.d.ts +11 -0
- package/lib-mjs/event/ShadowEditEvent.js +2 -0
- package/lib-mjs/event/ShadowEditEvent.js.map +1 -0
- package/lib-mjs/event/ZoomChangedEvent.d.ts +12 -0
- package/lib-mjs/event/ZoomChangedEvent.js +2 -0
- package/lib-mjs/event/ZoomChangedEvent.js.map +1 -0
- package/lib-mjs/format/ContentModelBlockFormat.d.ts +14 -0
- package/lib-mjs/format/ContentModelBlockFormat.js +2 -0
- package/lib-mjs/format/ContentModelBlockFormat.js.map +1 -0
- package/lib-mjs/format/ContentModelCodeFormat.d.ts +6 -0
- package/lib-mjs/format/ContentModelCodeFormat.js +2 -0
- package/lib-mjs/format/ContentModelCodeFormat.js.map +1 -0
- package/lib-mjs/format/ContentModelDividerFormat.d.ts +7 -0
- package/lib-mjs/format/ContentModelDividerFormat.js +2 -0
- package/lib-mjs/format/ContentModelDividerFormat.js.map +1 -0
- package/lib-mjs/format/ContentModelEntityFormat.d.ts +6 -0
- package/lib-mjs/format/ContentModelEntityFormat.js +2 -0
- package/lib-mjs/format/ContentModelEntityFormat.js.map +1 -0
- package/lib-mjs/format/ContentModelFormatBase.d.ts +8 -0
- package/lib-mjs/format/ContentModelFormatBase.js +2 -0
- package/lib-mjs/format/ContentModelFormatBase.js.map +1 -0
- package/lib-mjs/format/ContentModelFormatContainerFormat.d.ts +8 -0
- package/lib-mjs/format/ContentModelFormatContainerFormat.js +2 -0
- package/lib-mjs/format/ContentModelFormatContainerFormat.js.map +1 -0
- package/lib-mjs/format/ContentModelFormatMap.d.ts +124 -0
- package/lib-mjs/format/ContentModelFormatMap.js +2 -0
- package/lib-mjs/format/ContentModelFormatMap.js.map +1 -0
- package/lib-mjs/format/ContentModelHyperLinkFormat.d.ts +14 -0
- package/lib-mjs/format/ContentModelHyperLinkFormat.js +2 -0
- package/lib-mjs/format/ContentModelHyperLinkFormat.js.map +1 -0
- package/lib-mjs/format/ContentModelImageFormat.d.ts +14 -0
- package/lib-mjs/format/ContentModelImageFormat.js +2 -0
- package/lib-mjs/format/ContentModelImageFormat.js.map +1 -0
- package/lib-mjs/format/ContentModelListItemFormat.d.ts +12 -0
- package/lib-mjs/format/ContentModelListItemFormat.js +2 -0
- package/lib-mjs/format/ContentModelListItemFormat.js.map +1 -0
- package/lib-mjs/format/ContentModelListItemLevelFormat.d.ts +10 -0
- package/lib-mjs/format/ContentModelListItemLevelFormat.js +2 -0
- package/lib-mjs/format/ContentModelListItemLevelFormat.js.map +1 -0
- package/lib-mjs/format/ContentModelSegmentFormat.d.ts +15 -0
- package/lib-mjs/format/ContentModelSegmentFormat.js +2 -0
- package/lib-mjs/format/ContentModelSegmentFormat.js.map +1 -0
- package/lib-mjs/format/ContentModelTableCellFormat.d.ts +10 -0
- package/lib-mjs/format/ContentModelTableCellFormat.js +2 -0
- package/lib-mjs/format/ContentModelTableCellFormat.js.map +1 -0
- package/lib-mjs/format/ContentModelTableFormat.d.ts +13 -0
- package/lib-mjs/format/ContentModelTableFormat.js +2 -0
- package/lib-mjs/format/ContentModelTableFormat.js.map +1 -0
- package/lib-mjs/format/ContentModelWithDataset.d.ts +10 -0
- package/lib-mjs/format/ContentModelWithDataset.js +2 -0
- package/lib-mjs/format/ContentModelWithDataset.js.map +1 -0
- package/lib-mjs/format/ContentModelWithFormat.d.ts +10 -0
- package/lib-mjs/format/ContentModelWithFormat.js +2 -0
- package/lib-mjs/format/ContentModelWithFormat.js.map +1 -0
- package/lib-mjs/format/FormatHandlerTypeMap.d.ts +187 -0
- package/lib-mjs/format/FormatHandlerTypeMap.js +2 -0
- package/lib-mjs/format/FormatHandlerTypeMap.js.map +1 -0
- package/lib-mjs/format/formatParts/BackgroundColorFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/BackgroundColorFormat.js +2 -0
- package/lib-mjs/format/formatParts/BackgroundColorFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/BoldFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/BoldFormat.js +2 -0
- package/lib-mjs/format/formatParts/BoldFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/BorderBoxFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/BorderBoxFormat.js +2 -0
- package/lib-mjs/format/formatParts/BorderBoxFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/BorderFormat.d.ts +41 -0
- package/lib-mjs/format/formatParts/BorderFormat.js +2 -0
- package/lib-mjs/format/formatParts/BorderFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/BoxShadowFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/BoxShadowFormat.js +2 -0
- package/lib-mjs/format/formatParts/BoxShadowFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/DirectionFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/DirectionFormat.js +2 -0
- package/lib-mjs/format/formatParts/DirectionFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/DisplayFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/DisplayFormat.js +2 -0
- package/lib-mjs/format/formatParts/DisplayFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/EntityInfoFormat.d.ts +17 -0
- package/lib-mjs/format/formatParts/EntityInfoFormat.js +2 -0
- package/lib-mjs/format/formatParts/EntityInfoFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/FloatFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/FloatFormat.js +2 -0
- package/lib-mjs/format/formatParts/FloatFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/FontFamilyFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/FontFamilyFormat.js +2 -0
- package/lib-mjs/format/formatParts/FontFamilyFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/FontSizeFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/FontSizeFormat.js +2 -0
- package/lib-mjs/format/formatParts/FontSizeFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/HtmlAlignFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/HtmlAlignFormat.js +2 -0
- package/lib-mjs/format/formatParts/HtmlAlignFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/IdFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/IdFormat.js +2 -0
- package/lib-mjs/format/formatParts/IdFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/ItalicFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/ItalicFormat.js +2 -0
- package/lib-mjs/format/formatParts/ItalicFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/LetterSpacingFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/LetterSpacingFormat.js +2 -0
- package/lib-mjs/format/formatParts/LetterSpacingFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/LineHeightFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/LineHeightFormat.js +2 -0
- package/lib-mjs/format/formatParts/LineHeightFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/LinkFormat.d.ts +33 -0
- package/lib-mjs/format/formatParts/LinkFormat.js +2 -0
- package/lib-mjs/format/formatParts/LinkFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/ListStyleFormat.d.ts +13 -0
- package/lib-mjs/format/formatParts/ListStyleFormat.js +2 -0
- package/lib-mjs/format/formatParts/ListStyleFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/ListThreadFormat.d.ts +17 -0
- package/lib-mjs/format/formatParts/ListThreadFormat.js +2 -0
- package/lib-mjs/format/formatParts/ListThreadFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/MarginFormat.d.ts +21 -0
- package/lib-mjs/format/formatParts/MarginFormat.js +2 -0
- package/lib-mjs/format/formatParts/MarginFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/PaddingFormat.d.ts +21 -0
- package/lib-mjs/format/formatParts/PaddingFormat.js +2 -0
- package/lib-mjs/format/formatParts/PaddingFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/SizeFormat.d.ts +29 -0
- package/lib-mjs/format/formatParts/SizeFormat.js +2 -0
- package/lib-mjs/format/formatParts/SizeFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/SpacingFormat.d.ts +13 -0
- package/lib-mjs/format/formatParts/SpacingFormat.js +2 -0
- package/lib-mjs/format/formatParts/SpacingFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/StrikeFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/StrikeFormat.js +2 -0
- package/lib-mjs/format/formatParts/StrikeFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/SuperOrSubScriptFormat.d.ts +10 -0
- package/lib-mjs/format/formatParts/SuperOrSubScriptFormat.js +2 -0
- package/lib-mjs/format/formatParts/SuperOrSubScriptFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/TableLayoutFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/TableLayoutFormat.js +2 -0
- package/lib-mjs/format/formatParts/TableLayoutFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/TextAlignFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/TextAlignFormat.js +2 -0
- package/lib-mjs/format/formatParts/TextAlignFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/TextColorFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/TextColorFormat.js +2 -0
- package/lib-mjs/format/formatParts/TextColorFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/TextIndentFormat.d.ts +14 -0
- package/lib-mjs/format/formatParts/TextIndentFormat.js +2 -0
- package/lib-mjs/format/formatParts/TextIndentFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/UnderlineFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/UnderlineFormat.js +2 -0
- package/lib-mjs/format/formatParts/UnderlineFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/VerticalAlignFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/VerticalAlignFormat.js +2 -0
- package/lib-mjs/format/formatParts/VerticalAlignFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/WhiteSpaceFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/WhiteSpaceFormat.js +2 -0
- package/lib-mjs/format/formatParts/WhiteSpaceFormat.js.map +1 -0
- package/lib-mjs/format/formatParts/WordBreakFormat.d.ts +9 -0
- package/lib-mjs/format/formatParts/WordBreakFormat.js +2 -0
- package/lib-mjs/format/formatParts/WordBreakFormat.js.map +1 -0
- package/lib-mjs/format/metadata/DatasetFormat.d.ts +4 -0
- package/lib-mjs/format/metadata/DatasetFormat.js +2 -0
- package/lib-mjs/format/metadata/DatasetFormat.js.map +1 -0
- package/lib-mjs/format/metadata/ImageMetadataFormat.d.ts +72 -0
- package/lib-mjs/format/metadata/ImageMetadataFormat.js +2 -0
- package/lib-mjs/format/metadata/ImageMetadataFormat.js.map +1 -0
- package/lib-mjs/format/metadata/ListMetadataFormat.d.ts +19 -0
- package/lib-mjs/format/metadata/ListMetadataFormat.js +2 -0
- package/lib-mjs/format/metadata/ListMetadataFormat.js.map +1 -0
- package/lib-mjs/format/metadata/TableCellMetadataFormat.d.ts +17 -0
- package/lib-mjs/format/metadata/TableCellMetadataFormat.js +2 -0
- package/lib-mjs/format/metadata/TableCellMetadataFormat.js.map +1 -0
- package/lib-mjs/format/metadata/TableMetadataFormat.d.ts +53 -0
- package/lib-mjs/format/metadata/TableMetadataFormat.js +2 -0
- package/lib-mjs/format/metadata/TableMetadataFormat.js.map +1 -0
- package/lib-mjs/group/ContentModelBlockGroup.d.ts +9 -0
- package/lib-mjs/group/ContentModelBlockGroup.js +2 -0
- package/lib-mjs/group/ContentModelBlockGroup.js.map +1 -0
- package/lib-mjs/group/ContentModelBlockGroupBase.d.ts +15 -0
- package/lib-mjs/group/ContentModelBlockGroupBase.js +2 -0
- package/lib-mjs/group/ContentModelBlockGroupBase.js.map +1 -0
- package/lib-mjs/group/ContentModelDocument.d.ts +8 -0
- package/lib-mjs/group/ContentModelDocument.js +2 -0
- package/lib-mjs/group/ContentModelDocument.js.map +1 -0
- package/lib-mjs/group/ContentModelFormatContainer.d.ts +18 -0
- package/lib-mjs/group/ContentModelFormatContainer.js +2 -0
- package/lib-mjs/group/ContentModelFormatContainer.js.map +1 -0
- package/lib-mjs/group/ContentModelGeneralBlock.d.ts +14 -0
- package/lib-mjs/group/ContentModelGeneralBlock.js +2 -0
- package/lib-mjs/group/ContentModelGeneralBlock.js.map +1 -0
- package/lib-mjs/group/ContentModelListItem.d.ts +18 -0
- package/lib-mjs/group/ContentModelListItem.js +2 -0
- package/lib-mjs/group/ContentModelListItem.js.map +1 -0
- package/lib-mjs/group/ContentModelTableCell.d.ts +24 -0
- package/lib-mjs/group/ContentModelTableCell.js +2 -0
- package/lib-mjs/group/ContentModelTableCell.js.map +1 -0
- package/lib-mjs/index.d.ts +172 -0
- package/lib-mjs/index.js +2 -0
- package/lib-mjs/index.js.map +1 -0
- package/lib-mjs/metadata/Definition.d.ts +93 -0
- package/lib-mjs/metadata/Definition.js +2 -0
- package/lib-mjs/metadata/Definition.js.map +1 -0
- package/lib-mjs/metadata/DefinitionType.d.ts +24 -0
- package/lib-mjs/metadata/DefinitionType.js +2 -0
- package/lib-mjs/metadata/DefinitionType.js.map +1 -0
- package/lib-mjs/parameter/AnnounceData.d.ts +39 -0
- package/lib-mjs/parameter/AnnounceData.js +2 -0
- package/lib-mjs/parameter/AnnounceData.js.map +1 -0
- package/lib-mjs/parameter/Border.d.ts +18 -0
- package/lib-mjs/parameter/Border.js +2 -0
- package/lib-mjs/parameter/Border.js.map +1 -0
- package/lib-mjs/parameter/ClipboardData.d.ts +58 -0
- package/lib-mjs/parameter/ClipboardData.js +2 -0
- package/lib-mjs/parameter/ClipboardData.js.map +1 -0
- package/lib-mjs/parameter/ContentModelFormatState.d.ts +143 -0
- package/lib-mjs/parameter/ContentModelFormatState.js +2 -0
- package/lib-mjs/parameter/ContentModelFormatState.js.map +1 -0
- package/lib-mjs/parameter/DOMEventRecord.d.ts +19 -0
- package/lib-mjs/parameter/DOMEventRecord.js +2 -0
- package/lib-mjs/parameter/DOMEventRecord.js.map +1 -0
- package/lib-mjs/parameter/DOMHelper.d.ts +48 -0
- package/lib-mjs/parameter/DOMHelper.js +2 -0
- package/lib-mjs/parameter/DOMHelper.js.map +1 -0
- package/lib-mjs/parameter/DeleteSelectionStep.d.ts +49 -0
- package/lib-mjs/parameter/DeleteSelectionStep.js +2 -0
- package/lib-mjs/parameter/DeleteSelectionStep.js.map +1 -0
- package/lib-mjs/parameter/EdgeLinkPreview.d.ts +25 -0
- package/lib-mjs/parameter/EdgeLinkPreview.js +2 -0
- package/lib-mjs/parameter/EdgeLinkPreview.js.map +1 -0
- package/lib-mjs/parameter/EditorEnvironment.d.ts +21 -0
- package/lib-mjs/parameter/EditorEnvironment.js +2 -0
- package/lib-mjs/parameter/EditorEnvironment.js.map +1 -0
- package/lib-mjs/parameter/FormatContentModelContext.d.ts +86 -0
- package/lib-mjs/parameter/FormatContentModelContext.js +2 -0
- package/lib-mjs/parameter/FormatContentModelContext.js.map +1 -0
- package/lib-mjs/parameter/FormatContentModelOptions.d.ts +42 -0
- package/lib-mjs/parameter/FormatContentModelOptions.js +2 -0
- package/lib-mjs/parameter/FormatContentModelOptions.js.map +1 -0
- package/lib-mjs/parameter/ImageFormatState.d.ts +25 -0
- package/lib-mjs/parameter/ImageFormatState.js +2 -0
- package/lib-mjs/parameter/ImageFormatState.js.map +1 -0
- package/lib-mjs/parameter/InsertEntityOptions.d.ts +25 -0
- package/lib-mjs/parameter/InsertEntityOptions.js +2 -0
- package/lib-mjs/parameter/InsertEntityOptions.js.map +1 -0
- package/lib-mjs/parameter/Rect.d.ts +21 -0
- package/lib-mjs/parameter/Rect.js +2 -0
- package/lib-mjs/parameter/Rect.js.map +1 -0
- package/lib-mjs/parameter/Snapshot.d.ts +100 -0
- package/lib-mjs/parameter/Snapshot.js +2 -0
- package/lib-mjs/parameter/Snapshot.js.map +1 -0
- package/lib-mjs/parameter/SnapshotsManager.d.ts +35 -0
- package/lib-mjs/parameter/SnapshotsManager.js +2 -0
- package/lib-mjs/parameter/SnapshotsManager.js.map +1 -0
- package/lib-mjs/parameter/TrustedHTMLHandler.d.ts +4 -0
- package/lib-mjs/parameter/TrustedHTMLHandler.js +2 -0
- package/lib-mjs/parameter/TrustedHTMLHandler.js.map +1 -0
- package/lib-mjs/parameter/ValueSanitizer.d.ts +10 -0
- package/lib-mjs/parameter/ValueSanitizer.js +2 -0
- package/lib-mjs/parameter/ValueSanitizer.js.map +1 -0
- package/lib-mjs/pluginState/CachePluginState.d.ts +25 -0
- package/lib-mjs/pluginState/CachePluginState.js +2 -0
- package/lib-mjs/pluginState/CachePluginState.js.map +1 -0
- package/lib-mjs/pluginState/ContextMenuPluginState.d.ts +10 -0
- package/lib-mjs/pluginState/ContextMenuPluginState.js +2 -0
- package/lib-mjs/pluginState/ContextMenuPluginState.js.map +1 -0
- package/lib-mjs/pluginState/CopyPastePluginState.d.ts +19 -0
- package/lib-mjs/pluginState/CopyPastePluginState.js +2 -0
- package/lib-mjs/pluginState/CopyPastePluginState.js.map +1 -0
- package/lib-mjs/pluginState/DOMEventPluginState.d.ts +25 -0
- package/lib-mjs/pluginState/DOMEventPluginState.js +2 -0
- package/lib-mjs/pluginState/DOMEventPluginState.js.map +1 -0
- package/lib-mjs/pluginState/EntityPluginState.d.ts +26 -0
- package/lib-mjs/pluginState/EntityPluginState.js +2 -0
- package/lib-mjs/pluginState/EntityPluginState.js.map +1 -0
- package/lib-mjs/pluginState/FormatPluginState.d.ts +31 -0
- package/lib-mjs/pluginState/FormatPluginState.js +2 -0
- package/lib-mjs/pluginState/FormatPluginState.js.map +1 -0
- package/lib-mjs/pluginState/LifecyclePluginState.d.ts +13 -0
- package/lib-mjs/pluginState/LifecyclePluginState.js +2 -0
- package/lib-mjs/pluginState/LifecyclePluginState.js.map +1 -0
- package/lib-mjs/pluginState/PluginState.d.ts +30 -0
- package/lib-mjs/pluginState/PluginState.js +2 -0
- package/lib-mjs/pluginState/PluginState.js.map +1 -0
- package/lib-mjs/pluginState/SelectionPluginState.d.ts +22 -0
- package/lib-mjs/pluginState/SelectionPluginState.js +2 -0
- package/lib-mjs/pluginState/SelectionPluginState.js.map +1 -0
- package/lib-mjs/pluginState/UndoPluginState.d.ts +30 -0
- package/lib-mjs/pluginState/UndoPluginState.js +2 -0
- package/lib-mjs/pluginState/UndoPluginState.js.map +1 -0
- package/lib-mjs/segment/ContentModelBr.d.ts +6 -0
- package/lib-mjs/segment/ContentModelBr.js +2 -0
- package/lib-mjs/segment/ContentModelBr.js.map +1 -0
- package/lib-mjs/segment/ContentModelGeneralSegment.d.ts +9 -0
- package/lib-mjs/segment/ContentModelGeneralSegment.js +2 -0
- package/lib-mjs/segment/ContentModelGeneralSegment.js.map +1 -0
- package/lib-mjs/segment/ContentModelImage.d.ts +25 -0
- package/lib-mjs/segment/ContentModelImage.js +2 -0
- package/lib-mjs/segment/ContentModelImage.js.map +1 -0
- package/lib-mjs/segment/ContentModelSegment.d.ts +10 -0
- package/lib-mjs/segment/ContentModelSegment.js +2 -0
- package/lib-mjs/segment/ContentModelSegment.js.map +1 -0
- package/lib-mjs/segment/ContentModelSegmentBase.d.ts +23 -0
- package/lib-mjs/segment/ContentModelSegmentBase.js +2 -0
- package/lib-mjs/segment/ContentModelSegmentBase.js.map +1 -0
- package/lib-mjs/segment/ContentModelSelectionMarker.d.ts +10 -0
- package/lib-mjs/segment/ContentModelSelectionMarker.js +2 -0
- package/lib-mjs/segment/ContentModelSelectionMarker.js.map +1 -0
- package/lib-mjs/segment/ContentModelText.d.ts +10 -0
- package/lib-mjs/segment/ContentModelText.js +2 -0
- package/lib-mjs/segment/ContentModelText.js.map +1 -0
- package/lib-mjs/selection/DOMSelection.d.ts +57 -0
- package/lib-mjs/selection/DOMSelection.js +2 -0
- package/lib-mjs/selection/DOMSelection.js.map +1 -0
- package/lib-mjs/selection/InsertPoint.d.ts +25 -0
- package/lib-mjs/selection/InsertPoint.js +2 -0
- package/lib-mjs/selection/InsertPoint.js.map +1 -0
- package/lib-mjs/selection/Selectable.d.ts +9 -0
- package/lib-mjs/selection/Selectable.js +2 -0
- package/lib-mjs/selection/Selectable.js.map +1 -0
- package/lib-mjs/selection/TableSelectionContext.d.ts +22 -0
- package/lib-mjs/selection/TableSelectionContext.js +2 -0
- package/lib-mjs/selection/TableSelectionContext.js.map +1 -0
- package/lib-mjs/selection/TableSelectionCoordinates.d.ts +21 -0
- package/lib-mjs/selection/TableSelectionCoordinates.js +2 -0
- package/lib-mjs/selection/TableSelectionCoordinates.js.map +1 -0
- package/package.json +14 -0
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import type { DOMHelper } from '../parameter/DOMHelper';
|
|
2
|
+
import type { PluginEvent } from '../event/PluginEvent';
|
|
3
|
+
import type { PluginState } from '../pluginState/PluginState';
|
|
4
|
+
import type { EditorPlugin } from './EditorPlugin';
|
|
5
|
+
import type { ClipboardData } from '../parameter/ClipboardData';
|
|
6
|
+
import type { PasteType } from '../enum/PasteType';
|
|
7
|
+
import type { DOMEventRecord } from '../parameter/DOMEventRecord';
|
|
8
|
+
import type { Snapshot } from '../parameter/Snapshot';
|
|
9
|
+
import type { EntityState } from '../parameter/FormatContentModelContext';
|
|
10
|
+
import type { DarkColorHandler } from '../context/DarkColorHandler';
|
|
11
|
+
import type { ContentModelDocument } from '../group/ContentModelDocument';
|
|
12
|
+
import type { DOMSelection } from '../selection/DOMSelection';
|
|
13
|
+
import type { DomToModelOption } from '../context/DomToModelOption';
|
|
14
|
+
import type { DomToModelSettings } from '../context/DomToModelSettings';
|
|
15
|
+
import type { EditorContext } from '../context/EditorContext';
|
|
16
|
+
import type { EditorEnvironment } from '../parameter/EditorEnvironment';
|
|
17
|
+
import type { ModelToDomOption } from '../context/ModelToDomOption';
|
|
18
|
+
import type { ModelToDomSettings, OnNodeCreated } from '../context/ModelToDomSettings';
|
|
19
|
+
import type { TrustedHTMLHandler } from '../parameter/TrustedHTMLHandler';
|
|
20
|
+
import type { Rect } from '../parameter/Rect';
|
|
21
|
+
import type { ContentModelFormatter, FormatContentModelOptions } from '../parameter/FormatContentModelOptions';
|
|
22
|
+
/**
|
|
23
|
+
* Create a EditorContext object used by ContentModel API
|
|
24
|
+
* @param core The EditorCore object
|
|
25
|
+
* @param saveIndex True to allow saving index info into node using domIndexer, otherwise false
|
|
26
|
+
*/
|
|
27
|
+
export declare type CreateEditorContext = (core: EditorCore, saveIndex: boolean) => EditorContext;
|
|
28
|
+
/**
|
|
29
|
+
* Create Content Model from DOM tree in this editor
|
|
30
|
+
* @param core The EditorCore object
|
|
31
|
+
* @param option The option to customize the behavior of DOM to Content Model conversion
|
|
32
|
+
* @param selectionOverride When passed, use this selection range instead of current selection in editor
|
|
33
|
+
*/
|
|
34
|
+
export declare type CreateContentModel = (core: EditorCore, option?: DomToModelOption, selectionOverride?: DOMSelection) => ContentModelDocument;
|
|
35
|
+
/**
|
|
36
|
+
* Get current DOM selection from editor
|
|
37
|
+
* @param core The EditorCore object
|
|
38
|
+
*/
|
|
39
|
+
export declare type GetDOMSelection = (core: EditorCore) => DOMSelection | null;
|
|
40
|
+
/**
|
|
41
|
+
* Set content with content model. This is the replacement of core API getSelectionRangeEx
|
|
42
|
+
* @param core The EditorCore object
|
|
43
|
+
* @param model The content model to set
|
|
44
|
+
* @param option Additional options to customize the behavior of Content Model to DOM conversion
|
|
45
|
+
* @param onNodeCreated An optional callback that will be called when a DOM node is created
|
|
46
|
+
*/
|
|
47
|
+
export declare type SetContentModel = (core: EditorCore, model: ContentModelDocument, option?: ModelToDomOption, onNodeCreated?: OnNodeCreated) => DOMSelection | null;
|
|
48
|
+
/**
|
|
49
|
+
* Set current DOM selection from editor. This is the replacement of core API select
|
|
50
|
+
* @param core The EditorCore object
|
|
51
|
+
* @param selection The selection to set
|
|
52
|
+
* @param skipSelectionChangedEvent @param Pass true to skip triggering a SelectionChangedEvent
|
|
53
|
+
*/
|
|
54
|
+
export declare type SetDOMSelection = (core: EditorCore, selection: DOMSelection | null, skipSelectionChangedEvent?: boolean) => void;
|
|
55
|
+
/**
|
|
56
|
+
* The general API to do format change with Content Model
|
|
57
|
+
* It will grab a Content Model for current editor content, and invoke a callback function
|
|
58
|
+
* to do format change. Then according to the return value, write back the modified content model into editor.
|
|
59
|
+
* If there is cached model, it will be used and updated.
|
|
60
|
+
* @param core The EditorCore object
|
|
61
|
+
* @param formatter Formatter function, see ContentModelFormatter
|
|
62
|
+
* @param options More options, see FormatContentModelOptions
|
|
63
|
+
*/
|
|
64
|
+
export declare type FormatContentModel = (core: EditorCore, formatter: ContentModelFormatter, options?: FormatContentModelOptions) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Switch the Shadow Edit mode of editor On/Off
|
|
67
|
+
* @param core The EditorCore object
|
|
68
|
+
* @param isOn True to switch On, False to switch Off
|
|
69
|
+
*/
|
|
70
|
+
export declare type SwitchShadowEdit = (core: EditorCore, isOn: boolean) => void;
|
|
71
|
+
/**
|
|
72
|
+
* Trigger a plugin event
|
|
73
|
+
* @param core The EditorCore object
|
|
74
|
+
* @param pluginEvent The event object to trigger
|
|
75
|
+
* @param broadcast Set to true to skip the shouldHandleEventExclusively check
|
|
76
|
+
*/
|
|
77
|
+
export declare type TriggerEvent = (core: EditorCore, pluginEvent: PluginEvent, broadcast: boolean) => void;
|
|
78
|
+
/**
|
|
79
|
+
* Add an undo snapshot to current undo snapshot stack
|
|
80
|
+
* @param core The EditorCore object
|
|
81
|
+
* @param canUndoByBackspace True if this action can be undone when user press Backspace key (aka Auto Complete).
|
|
82
|
+
* @param entityStates @optional Entity states related to this snapshot.
|
|
83
|
+
* Each entity state will cause an EntityOperation event with operation = EntityOperation.UpdateEntityState
|
|
84
|
+
* when undo/redo to this snapshot
|
|
85
|
+
*/
|
|
86
|
+
export declare type AddUndoSnapshot = (core: EditorCore, canUndoByBackspace: boolean, entityStates?: EntityState[]) => Snapshot | null;
|
|
87
|
+
/**
|
|
88
|
+
* Retrieves the rect of the visible viewport of the editor.
|
|
89
|
+
* @param core The EditorCore object
|
|
90
|
+
*/
|
|
91
|
+
export declare type GetVisibleViewport = (core: EditorCore) => Rect | null;
|
|
92
|
+
/**
|
|
93
|
+
* Check if the editor has focus now
|
|
94
|
+
* @param core The EditorCore object
|
|
95
|
+
* @returns True if the editor has focus, otherwise false
|
|
96
|
+
*/
|
|
97
|
+
export declare type HasFocus = (core: EditorCore) => boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Focus to editor. If there is a cached selection range, use it as current selection
|
|
100
|
+
* @param core The EditorCore object
|
|
101
|
+
*/
|
|
102
|
+
export declare type Focus = (core: EditorCore) => void;
|
|
103
|
+
/**
|
|
104
|
+
* Attach a DOM event to the editor content DIV
|
|
105
|
+
* @param core The EditorCore object
|
|
106
|
+
* @param eventMap A map from event name to its handler
|
|
107
|
+
*/
|
|
108
|
+
export declare type AttachDomEvent = (core: EditorCore, eventMap: Record<string, DOMEventRecord>) => () => void;
|
|
109
|
+
/**
|
|
110
|
+
* Restore an undo snapshot into editor
|
|
111
|
+
* @param core The EditorCore object
|
|
112
|
+
* @param step Steps to move, can be 0, positive or negative
|
|
113
|
+
*/
|
|
114
|
+
export declare type RestoreUndoSnapshot = (core: EditorCore, snapshot: Snapshot) => void;
|
|
115
|
+
/**
|
|
116
|
+
* Paste into editor using a clipboardData object
|
|
117
|
+
* @param core The EditorCore object.
|
|
118
|
+
* @param clipboardData Clipboard data retrieved from clipboard
|
|
119
|
+
* @param pasteType Type of content to paste. @default normal
|
|
120
|
+
*/
|
|
121
|
+
export declare type Paste = (core: EditorCore, clipboardData: ClipboardData, pasteType: PasteType) => void;
|
|
122
|
+
/**
|
|
123
|
+
* The interface for the map of core API for Editor.
|
|
124
|
+
* Editor can call call API from this map under EditorCore object
|
|
125
|
+
*/
|
|
126
|
+
export interface CoreApiMap {
|
|
127
|
+
/**
|
|
128
|
+
* Create a EditorContext object used by ContentModel API
|
|
129
|
+
* @param core The EditorCore object
|
|
130
|
+
* @param saveIndex True to allow saving index info into node using domIndexer, otherwise false
|
|
131
|
+
*/
|
|
132
|
+
createEditorContext: CreateEditorContext;
|
|
133
|
+
/**
|
|
134
|
+
* Create Content Model from DOM tree in this editor
|
|
135
|
+
* @param core The EditorCore object
|
|
136
|
+
* @param option The option to customize the behavior of DOM to Content Model conversion
|
|
137
|
+
*/
|
|
138
|
+
createContentModel: CreateContentModel;
|
|
139
|
+
/**
|
|
140
|
+
* Get current DOM selection from editor
|
|
141
|
+
* @param core The EditorCore object
|
|
142
|
+
*/
|
|
143
|
+
getDOMSelection: GetDOMSelection;
|
|
144
|
+
/**
|
|
145
|
+
* Set content with content model
|
|
146
|
+
* @param core The EditorCore object
|
|
147
|
+
* @param model The content model to set
|
|
148
|
+
* @param option Additional options to customize the behavior of Content Model to DOM conversion
|
|
149
|
+
*/
|
|
150
|
+
setContentModel: SetContentModel;
|
|
151
|
+
/**
|
|
152
|
+
* Set current DOM selection from editor. This is the replacement of core API select
|
|
153
|
+
* @param core The EditorCore object
|
|
154
|
+
* @param selection The selection to set
|
|
155
|
+
* @param skipSelectionChangedEvent @param Pass true to skip triggering a SelectionChangedEvent
|
|
156
|
+
*/
|
|
157
|
+
setDOMSelection: SetDOMSelection;
|
|
158
|
+
/**
|
|
159
|
+
* The general API to do format change with Content Model
|
|
160
|
+
* It will grab a Content Model for current editor content, and invoke a callback function
|
|
161
|
+
* to do format change. Then according to the return value, write back the modified content model into editor.
|
|
162
|
+
* If there is cached model, it will be used and updated.
|
|
163
|
+
* @param core The EditorCore object
|
|
164
|
+
* @param formatter Formatter function, see ContentModelFormatter
|
|
165
|
+
* @param options More options, see FormatContentModelOptions
|
|
166
|
+
*/
|
|
167
|
+
formatContentModel: FormatContentModel;
|
|
168
|
+
/**
|
|
169
|
+
* Switch the Shadow Edit mode of editor On/Off
|
|
170
|
+
* @param core The EditorCore object
|
|
171
|
+
* @param isOn True to switch On, False to switch Off
|
|
172
|
+
*/
|
|
173
|
+
switchShadowEdit: SwitchShadowEdit;
|
|
174
|
+
/**
|
|
175
|
+
* Retrieves the rect of the visible viewport of the editor.
|
|
176
|
+
* @param core The EditorCore object
|
|
177
|
+
*/
|
|
178
|
+
getVisibleViewport: GetVisibleViewport;
|
|
179
|
+
/**
|
|
180
|
+
* Check if the editor has focus now
|
|
181
|
+
* @param core The EditorCore object
|
|
182
|
+
* @returns True if the editor has focus, otherwise false
|
|
183
|
+
*/
|
|
184
|
+
hasFocus: HasFocus;
|
|
185
|
+
/**
|
|
186
|
+
* Focus to editor. If there is a cached selection range, use it as current selection
|
|
187
|
+
* @param core The EditorCore object
|
|
188
|
+
*/
|
|
189
|
+
focus: Focus;
|
|
190
|
+
/**
|
|
191
|
+
* Add an undo snapshot to current undo snapshot stack
|
|
192
|
+
* @param core The EditorCore object
|
|
193
|
+
* @param canUndoByBackspace True if this action can be undone when user press Backspace key (aka Auto Complete).
|
|
194
|
+
* @param entityStates @optional Entity states related to this snapshot.
|
|
195
|
+
* Each entity state will cause an EntityOperation event with operation = EntityOperation.UpdateEntityState
|
|
196
|
+
* when undo/redo to this snapshot
|
|
197
|
+
*/
|
|
198
|
+
addUndoSnapshot: AddUndoSnapshot;
|
|
199
|
+
/**
|
|
200
|
+
* Restore an undo snapshot into editor
|
|
201
|
+
* @param core The editor core object
|
|
202
|
+
* @param step Steps to move, can be 0, positive or negative
|
|
203
|
+
*/
|
|
204
|
+
restoreUndoSnapshot: RestoreUndoSnapshot;
|
|
205
|
+
/**
|
|
206
|
+
* Attach a DOM event to the editor content DIV
|
|
207
|
+
* @param core The EditorCore object
|
|
208
|
+
* @param eventMap A map from event name to its handler
|
|
209
|
+
*/
|
|
210
|
+
attachDomEvent: AttachDomEvent;
|
|
211
|
+
/**
|
|
212
|
+
* Trigger a plugin event
|
|
213
|
+
* @param core The EditorCore object
|
|
214
|
+
* @param pluginEvent The event object to trigger
|
|
215
|
+
* @param broadcast Set to true to skip the shouldHandleEventExclusively check
|
|
216
|
+
*/
|
|
217
|
+
triggerEvent: TriggerEvent;
|
|
218
|
+
/**
|
|
219
|
+
* Paste into editor using a clipboardData object
|
|
220
|
+
* @param editor The editor to paste content into
|
|
221
|
+
* @param clipboardData Clipboard data retrieved from clipboard
|
|
222
|
+
* @param pasteType Type of content to paste. @default normal
|
|
223
|
+
*/
|
|
224
|
+
paste: Paste;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Represents the core data structure of an editor
|
|
228
|
+
*/
|
|
229
|
+
export interface EditorCore extends PluginState {
|
|
230
|
+
/**
|
|
231
|
+
* The root DIV element of this editor (formerly contentDiv)
|
|
232
|
+
*/
|
|
233
|
+
readonly physicalRoot: HTMLDivElement;
|
|
234
|
+
/**
|
|
235
|
+
* The content DIV element that operations should be applied to
|
|
236
|
+
* By default, the logical root is the same as the physical root,
|
|
237
|
+
* but if nested editors are used, the logical root changes to that of the inner editor
|
|
238
|
+
*/
|
|
239
|
+
logicalRoot: HTMLDivElement;
|
|
240
|
+
/**
|
|
241
|
+
* Core API map of this editor
|
|
242
|
+
*/
|
|
243
|
+
readonly api: CoreApiMap;
|
|
244
|
+
/**
|
|
245
|
+
* Original API map of this editor. Overridden core API can use API from this map to call the original version of core API.
|
|
246
|
+
*/
|
|
247
|
+
readonly originalApi: CoreApiMap;
|
|
248
|
+
/**
|
|
249
|
+
* An array of editor plugins.
|
|
250
|
+
*/
|
|
251
|
+
readonly plugins: EditorPlugin[];
|
|
252
|
+
/**
|
|
253
|
+
* Settings used by DOM to Content Model conversion
|
|
254
|
+
*/
|
|
255
|
+
readonly domToModelSettings: ContentModelSettings<DomToModelOption, DomToModelSettings>;
|
|
256
|
+
/**
|
|
257
|
+
* Settings used by Content Model to DOM conversion
|
|
258
|
+
*/
|
|
259
|
+
readonly modelToDomSettings: ContentModelSettings<ModelToDomOption, ModelToDomSettings>;
|
|
260
|
+
/**
|
|
261
|
+
* Editor running environment
|
|
262
|
+
*/
|
|
263
|
+
readonly environment: EditorEnvironment;
|
|
264
|
+
/**
|
|
265
|
+
* Dark model handler for the editor, used for variable-based solution.
|
|
266
|
+
* If keep it null, editor will still use original dataset-based dark mode solution.
|
|
267
|
+
*/
|
|
268
|
+
readonly darkColorHandler: DarkColorHandler;
|
|
269
|
+
/**
|
|
270
|
+
* A handler to convert HTML string to a trust HTML string.
|
|
271
|
+
* By default it will just return the original HTML string directly.
|
|
272
|
+
* To override, pass your own trusted HTML handler to EditorOptions.trustedHTMLHandler
|
|
273
|
+
*/
|
|
274
|
+
readonly trustedHTMLHandler: TrustedHTMLHandler;
|
|
275
|
+
/**
|
|
276
|
+
* A helper class to provide DOM access APIs
|
|
277
|
+
*/
|
|
278
|
+
readonly domHelper: DOMHelper;
|
|
279
|
+
/**
|
|
280
|
+
* A callback to be invoked when any exception is thrown during disposing editor
|
|
281
|
+
* @param plugin The plugin that causes exception
|
|
282
|
+
* @param error The error object we got
|
|
283
|
+
*/
|
|
284
|
+
readonly disposeErrorHandler?: (plugin: EditorPlugin, error: Error) => void;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Default DOM and Content Model conversion settings for an editor
|
|
288
|
+
*/
|
|
289
|
+
export interface ContentModelSettings<OptionType, ConfigType> {
|
|
290
|
+
/**
|
|
291
|
+
* Built in options used by editor
|
|
292
|
+
*/
|
|
293
|
+
builtIn: OptionType;
|
|
294
|
+
/**
|
|
295
|
+
* Customize options passed in from Editor Options, used for overwrite default option.
|
|
296
|
+
* This will also be used by copy/paste
|
|
297
|
+
*/
|
|
298
|
+
customized: OptionType;
|
|
299
|
+
/**
|
|
300
|
+
* Configuration calculated from default and customized options.
|
|
301
|
+
* This is a cached object so that we don't need to cache it every time when we use Content Model
|
|
302
|
+
*/
|
|
303
|
+
calculated: ConfigType;
|
|
304
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorCore.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/EditorCore.ts"],"names":[],"mappings":"","sourcesContent":["import type { DOMHelper } from '../parameter/DOMHelper';\r\nimport type { PluginEvent } from '../event/PluginEvent';\r\nimport type { PluginState } from '../pluginState/PluginState';\r\nimport type { EditorPlugin } from './EditorPlugin';\r\nimport type { ClipboardData } from '../parameter/ClipboardData';\r\nimport type { PasteType } from '../enum/PasteType';\r\nimport type { DOMEventRecord } from '../parameter/DOMEventRecord';\r\nimport type { Snapshot } from '../parameter/Snapshot';\r\nimport type { EntityState } from '../parameter/FormatContentModelContext';\r\nimport type { DarkColorHandler } from '../context/DarkColorHandler';\r\nimport type { ContentModelDocument } from '../group/ContentModelDocument';\r\nimport type { DOMSelection } from '../selection/DOMSelection';\r\nimport type { DomToModelOption } from '../context/DomToModelOption';\r\nimport type { DomToModelSettings } from '../context/DomToModelSettings';\r\nimport type { EditorContext } from '../context/EditorContext';\r\nimport type { EditorEnvironment } from '../parameter/EditorEnvironment';\r\nimport type { ModelToDomOption } from '../context/ModelToDomOption';\r\nimport type { ModelToDomSettings, OnNodeCreated } from '../context/ModelToDomSettings';\r\nimport type { TrustedHTMLHandler } from '../parameter/TrustedHTMLHandler';\r\nimport type { Rect } from '../parameter/Rect';\r\nimport type {\r\n ContentModelFormatter,\r\n FormatContentModelOptions,\r\n} from '../parameter/FormatContentModelOptions';\r\n\r\n/**\r\n * Create a EditorContext object used by ContentModel API\r\n * @param core The EditorCore object\r\n * @param saveIndex True to allow saving index info into node using domIndexer, otherwise false\r\n */\r\nexport type CreateEditorContext = (core: EditorCore, saveIndex: boolean) => EditorContext;\r\n\r\n/**\r\n * Create Content Model from DOM tree in this editor\r\n * @param core The EditorCore object\r\n * @param option The option to customize the behavior of DOM to Content Model conversion\r\n * @param selectionOverride When passed, use this selection range instead of current selection in editor\r\n */\r\nexport type CreateContentModel = (\r\n core: EditorCore,\r\n option?: DomToModelOption,\r\n selectionOverride?: DOMSelection\r\n) => ContentModelDocument;\r\n\r\n/**\r\n * Get current DOM selection from editor\r\n * @param core The EditorCore object\r\n */\r\nexport type GetDOMSelection = (core: EditorCore) => DOMSelection | null;\r\n\r\n/**\r\n * Set content with content model. This is the replacement of core API getSelectionRangeEx\r\n * @param core The EditorCore object\r\n * @param model The content model to set\r\n * @param option Additional options to customize the behavior of Content Model to DOM conversion\r\n * @param onNodeCreated An optional callback that will be called when a DOM node is created\r\n */\r\nexport type SetContentModel = (\r\n core: EditorCore,\r\n model: ContentModelDocument,\r\n option?: ModelToDomOption,\r\n onNodeCreated?: OnNodeCreated\r\n) => DOMSelection | null;\r\n\r\n/**\r\n * Set current DOM selection from editor. This is the replacement of core API select\r\n * @param core The EditorCore object\r\n * @param selection The selection to set\r\n * @param skipSelectionChangedEvent @param Pass true to skip triggering a SelectionChangedEvent\r\n */\r\nexport type SetDOMSelection = (\r\n core: EditorCore,\r\n selection: DOMSelection | null,\r\n skipSelectionChangedEvent?: boolean\r\n) => void;\r\n\r\n/**\r\n * The general API to do format change with Content Model\r\n * It will grab a Content Model for current editor content, and invoke a callback function\r\n * to do format change. Then according to the return value, write back the modified content model into editor.\r\n * If there is cached model, it will be used and updated.\r\n * @param core The EditorCore object\r\n * @param formatter Formatter function, see ContentModelFormatter\r\n * @param options More options, see FormatContentModelOptions\r\n */\r\nexport type FormatContentModel = (\r\n core: EditorCore,\r\n formatter: ContentModelFormatter,\r\n options?: FormatContentModelOptions\r\n) => void;\r\n\r\n/**\r\n * Switch the Shadow Edit mode of editor On/Off\r\n * @param core The EditorCore object\r\n * @param isOn True to switch On, False to switch Off\r\n */\r\nexport type SwitchShadowEdit = (core: EditorCore, isOn: boolean) => void;\r\n\r\n/**\r\n * Trigger a plugin event\r\n * @param core The EditorCore object\r\n * @param pluginEvent The event object to trigger\r\n * @param broadcast Set to true to skip the shouldHandleEventExclusively check\r\n */\r\nexport type TriggerEvent = (core: EditorCore, pluginEvent: PluginEvent, broadcast: boolean) => void;\r\n\r\n/**\r\n * Add an undo snapshot to current undo snapshot stack\r\n * @param core The EditorCore object\r\n * @param canUndoByBackspace True if this action can be undone when user press Backspace key (aka Auto Complete).\r\n * @param entityStates @optional Entity states related to this snapshot.\r\n * Each entity state will cause an EntityOperation event with operation = EntityOperation.UpdateEntityState\r\n * when undo/redo to this snapshot\r\n */\r\nexport type AddUndoSnapshot = (\r\n core: EditorCore,\r\n canUndoByBackspace: boolean,\r\n entityStates?: EntityState[]\r\n) => Snapshot | null;\r\n\r\n/**\r\n * Retrieves the rect of the visible viewport of the editor.\r\n * @param core The EditorCore object\r\n */\r\nexport type GetVisibleViewport = (core: EditorCore) => Rect | null;\r\n\r\n/**\r\n * Check if the editor has focus now\r\n * @param core The EditorCore object\r\n * @returns True if the editor has focus, otherwise false\r\n */\r\nexport type HasFocus = (core: EditorCore) => boolean;\r\n\r\n/**\r\n * Focus to editor. If there is a cached selection range, use it as current selection\r\n * @param core The EditorCore object\r\n */\r\nexport type Focus = (core: EditorCore) => void;\r\n\r\n/**\r\n * Attach a DOM event to the editor content DIV\r\n * @param core The EditorCore object\r\n * @param eventMap A map from event name to its handler\r\n */\r\nexport type AttachDomEvent = (\r\n core: EditorCore,\r\n eventMap: Record<string, DOMEventRecord>\r\n) => () => void;\r\n\r\n/**\r\n * Restore an undo snapshot into editor\r\n * @param core The EditorCore object\r\n * @param step Steps to move, can be 0, positive or negative\r\n */\r\nexport type RestoreUndoSnapshot = (core: EditorCore, snapshot: Snapshot) => void;\r\n\r\n/**\r\n * Paste into editor using a clipboardData object\r\n * @param core The EditorCore object.\r\n * @param clipboardData Clipboard data retrieved from clipboard\r\n * @param pasteType Type of content to paste. @default normal\r\n */\r\nexport type Paste = (core: EditorCore, clipboardData: ClipboardData, pasteType: PasteType) => void;\r\n\r\n/**\r\n * The interface for the map of core API for Editor.\r\n * Editor can call call API from this map under EditorCore object\r\n */\r\nexport interface CoreApiMap {\r\n /**\r\n * Create a EditorContext object used by ContentModel API\r\n * @param core The EditorCore object\r\n * @param saveIndex True to allow saving index info into node using domIndexer, otherwise false\r\n */\r\n createEditorContext: CreateEditorContext;\r\n\r\n /**\r\n * Create Content Model from DOM tree in this editor\r\n * @param core The EditorCore object\r\n * @param option The option to customize the behavior of DOM to Content Model conversion\r\n */\r\n createContentModel: CreateContentModel;\r\n\r\n /**\r\n * Get current DOM selection from editor\r\n * @param core The EditorCore object\r\n */\r\n getDOMSelection: GetDOMSelection;\r\n\r\n /**\r\n * Set content with content model\r\n * @param core The EditorCore object\r\n * @param model The content model to set\r\n * @param option Additional options to customize the behavior of Content Model to DOM conversion\r\n */\r\n setContentModel: SetContentModel;\r\n\r\n /**\r\n * Set current DOM selection from editor. This is the replacement of core API select\r\n * @param core The EditorCore object\r\n * @param selection The selection to set\r\n * @param skipSelectionChangedEvent @param Pass true to skip triggering a SelectionChangedEvent\r\n */\r\n setDOMSelection: SetDOMSelection;\r\n\r\n /**\r\n * The general API to do format change with Content Model\r\n * It will grab a Content Model for current editor content, and invoke a callback function\r\n * to do format change. Then according to the return value, write back the modified content model into editor.\r\n * If there is cached model, it will be used and updated.\r\n * @param core The EditorCore object\r\n * @param formatter Formatter function, see ContentModelFormatter\r\n * @param options More options, see FormatContentModelOptions\r\n */\r\n formatContentModel: FormatContentModel;\r\n\r\n /**\r\n * Switch the Shadow Edit mode of editor On/Off\r\n * @param core The EditorCore object\r\n * @param isOn True to switch On, False to switch Off\r\n */\r\n switchShadowEdit: SwitchShadowEdit;\r\n\r\n /**\r\n * Retrieves the rect of the visible viewport of the editor.\r\n * @param core The EditorCore object\r\n */\r\n getVisibleViewport: GetVisibleViewport;\r\n\r\n /**\r\n * Check if the editor has focus now\r\n * @param core The EditorCore object\r\n * @returns True if the editor has focus, otherwise false\r\n */\r\n hasFocus: HasFocus;\r\n\r\n /**\r\n * Focus to editor. If there is a cached selection range, use it as current selection\r\n * @param core The EditorCore object\r\n */\r\n focus: Focus;\r\n\r\n /**\r\n * Add an undo snapshot to current undo snapshot stack\r\n * @param core The EditorCore object\r\n * @param canUndoByBackspace True if this action can be undone when user press Backspace key (aka Auto Complete).\r\n * @param entityStates @optional Entity states related to this snapshot.\r\n * Each entity state will cause an EntityOperation event with operation = EntityOperation.UpdateEntityState\r\n * when undo/redo to this snapshot\r\n */\r\n addUndoSnapshot: AddUndoSnapshot;\r\n\r\n /**\r\n * Restore an undo snapshot into editor\r\n * @param core The editor core object\r\n * @param step Steps to move, can be 0, positive or negative\r\n */\r\n restoreUndoSnapshot: RestoreUndoSnapshot;\r\n\r\n /**\r\n * Attach a DOM event to the editor content DIV\r\n * @param core The EditorCore object\r\n * @param eventMap A map from event name to its handler\r\n */\r\n attachDomEvent: AttachDomEvent;\r\n\r\n /**\r\n * Trigger a plugin event\r\n * @param core The EditorCore object\r\n * @param pluginEvent The event object to trigger\r\n * @param broadcast Set to true to skip the shouldHandleEventExclusively check\r\n */\r\n triggerEvent: TriggerEvent;\r\n\r\n /**\r\n * Paste into editor using a clipboardData object\r\n * @param editor The editor to paste content into\r\n * @param clipboardData Clipboard data retrieved from clipboard\r\n * @param pasteType Type of content to paste. @default normal\r\n */\r\n paste: Paste;\r\n}\r\n\r\n/**\r\n * Represents the core data structure of an editor\r\n */\r\nexport interface EditorCore extends PluginState {\r\n /**\r\n * The root DIV element of this editor (formerly contentDiv)\r\n */\r\n readonly physicalRoot: HTMLDivElement;\r\n\r\n /**\r\n * The content DIV element that operations should be applied to\r\n * By default, the logical root is the same as the physical root,\r\n * but if nested editors are used, the logical root changes to that of the inner editor\r\n */\r\n logicalRoot: HTMLDivElement;\r\n\r\n /**\r\n * Core API map of this editor\r\n */\r\n readonly api: CoreApiMap;\r\n\r\n /**\r\n * Original API map of this editor. Overridden core API can use API from this map to call the original version of core API.\r\n */\r\n readonly originalApi: CoreApiMap;\r\n\r\n /**\r\n * An array of editor plugins.\r\n */\r\n readonly plugins: EditorPlugin[];\r\n\r\n /**\r\n * Settings used by DOM to Content Model conversion\r\n */\r\n readonly domToModelSettings: ContentModelSettings<DomToModelOption, DomToModelSettings>;\r\n\r\n /**\r\n * Settings used by Content Model to DOM conversion\r\n */\r\n readonly modelToDomSettings: ContentModelSettings<ModelToDomOption, ModelToDomSettings>;\r\n\r\n /**\r\n * Editor running environment\r\n */\r\n readonly environment: EditorEnvironment;\r\n\r\n /**\r\n * Dark model handler for the editor, used for variable-based solution.\r\n * If keep it null, editor will still use original dataset-based dark mode solution.\r\n */\r\n readonly darkColorHandler: DarkColorHandler;\r\n\r\n /**\r\n * A handler to convert HTML string to a trust HTML string.\r\n * By default it will just return the original HTML string directly.\r\n * To override, pass your own trusted HTML handler to EditorOptions.trustedHTMLHandler\r\n */\r\n readonly trustedHTMLHandler: TrustedHTMLHandler;\r\n\r\n /**\r\n * A helper class to provide DOM access APIs\r\n */\r\n readonly domHelper: DOMHelper;\r\n\r\n /**\r\n * A callback to be invoked when any exception is thrown during disposing editor\r\n * @param plugin The plugin that causes exception\r\n * @param error The error object we got\r\n */\r\n readonly disposeErrorHandler?: (plugin: EditorPlugin, error: Error) => void;\r\n}\r\n\r\n/**\r\n * Default DOM and Content Model conversion settings for an editor\r\n */\r\nexport interface ContentModelSettings<OptionType, ConfigType> {\r\n /**\r\n * Built in options used by editor\r\n */\r\n builtIn: OptionType;\r\n\r\n /**\r\n * Customize options passed in from Editor Options, used for overwrite default option.\r\n * This will also be used by copy/paste\r\n */\r\n customized: OptionType;\r\n\r\n /**\r\n * Configuration calculated from default and customized options.\r\n * This is a cached object so that we don't need to cache it every time when we use Content Model\r\n */\r\n calculated: ConfigType;\r\n}\r\n"]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ContextMenuPluginState } from '../pluginState/ContextMenuPluginState';
|
|
2
|
+
import type { PluginWithState } from './PluginWithState';
|
|
3
|
+
import type { CopyPastePluginState } from '../pluginState/CopyPastePluginState';
|
|
4
|
+
import type { UndoPluginState } from '../pluginState/UndoPluginState';
|
|
5
|
+
import type { SelectionPluginState } from '../pluginState/SelectionPluginState';
|
|
6
|
+
import type { EntityPluginState } from '../pluginState/EntityPluginState';
|
|
7
|
+
import type { LifecyclePluginState } from '../pluginState/LifecyclePluginState';
|
|
8
|
+
import type { DOMEventPluginState } from '../pluginState/DOMEventPluginState';
|
|
9
|
+
import type { CachePluginState } from '../pluginState/CachePluginState';
|
|
10
|
+
import type { FormatPluginState } from '../pluginState/FormatPluginState';
|
|
11
|
+
/**
|
|
12
|
+
* Core plugins for editor
|
|
13
|
+
*/
|
|
14
|
+
export interface EditorCorePlugins {
|
|
15
|
+
/**
|
|
16
|
+
* ContentModel cache plugin manages cached Content Model, and refresh the cache when necessary
|
|
17
|
+
*/
|
|
18
|
+
readonly cache: PluginWithState<CachePluginState>;
|
|
19
|
+
/**
|
|
20
|
+
* ContentModelFormat plugins helps editor to do formatting on top of content model.
|
|
21
|
+
*/
|
|
22
|
+
readonly format: PluginWithState<FormatPluginState>;
|
|
23
|
+
/**
|
|
24
|
+
* Copy and paste plugin for handling onCopy and onPaste event
|
|
25
|
+
*/
|
|
26
|
+
readonly copyPaste: PluginWithState<CopyPastePluginState>;
|
|
27
|
+
/**
|
|
28
|
+
* DomEvent plugin helps handle additional DOM events such as IME composition, cut, drop.
|
|
29
|
+
*/
|
|
30
|
+
readonly domEvent: PluginWithState<DOMEventPluginState>;
|
|
31
|
+
/**
|
|
32
|
+
* Selection plugin handles selection, including range selection, table selection, and image selection
|
|
33
|
+
*/
|
|
34
|
+
readonly selection: PluginWithState<SelectionPluginState>;
|
|
35
|
+
/**
|
|
36
|
+
* Entity Plugin handles all operations related to an entity and generate entity specified events
|
|
37
|
+
*/
|
|
38
|
+
readonly entity: PluginWithState<EntityPluginState>;
|
|
39
|
+
/**
|
|
40
|
+
* Undo plugin provides the ability to undo/redo
|
|
41
|
+
*/
|
|
42
|
+
readonly undo: PluginWithState<UndoPluginState>;
|
|
43
|
+
/**
|
|
44
|
+
* Undo plugin provides the ability get context menu items and trigger ContextMenu event
|
|
45
|
+
*/
|
|
46
|
+
readonly contextMenu: PluginWithState<ContextMenuPluginState>;
|
|
47
|
+
/**
|
|
48
|
+
* Lifecycle plugin handles editor initialization and disposing
|
|
49
|
+
*/
|
|
50
|
+
readonly lifecycle: PluginWithState<LifecyclePluginState>;
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorCorePlugins.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/EditorCorePlugins.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContextMenuPluginState } from '../pluginState/ContextMenuPluginState';\r\nimport type { PluginWithState } from './PluginWithState';\r\nimport type { CopyPastePluginState } from '../pluginState/CopyPastePluginState';\r\nimport type { UndoPluginState } from '../pluginState/UndoPluginState';\r\nimport type { SelectionPluginState } from '../pluginState/SelectionPluginState';\r\nimport type { EntityPluginState } from '../pluginState/EntityPluginState';\r\nimport type { LifecyclePluginState } from '../pluginState/LifecyclePluginState';\r\nimport type { DOMEventPluginState } from '../pluginState/DOMEventPluginState';\r\nimport type { CachePluginState } from '../pluginState/CachePluginState';\r\nimport type { FormatPluginState } from '../pluginState/FormatPluginState';\r\n\r\n/**\r\n * Core plugins for editor\r\n */\r\nexport interface EditorCorePlugins {\r\n /**\r\n * ContentModel cache plugin manages cached Content Model, and refresh the cache when necessary\r\n */\r\n readonly cache: PluginWithState<CachePluginState>;\r\n\r\n /**\r\n * ContentModelFormat plugins helps editor to do formatting on top of content model.\r\n */\r\n readonly format: PluginWithState<FormatPluginState>;\r\n\r\n /**\r\n * Copy and paste plugin for handling onCopy and onPaste event\r\n */\r\n readonly copyPaste: PluginWithState<CopyPastePluginState>;\r\n\r\n /**\r\n * DomEvent plugin helps handle additional DOM events such as IME composition, cut, drop.\r\n */\r\n readonly domEvent: PluginWithState<DOMEventPluginState>;\r\n\r\n /**\r\n * Selection plugin handles selection, including range selection, table selection, and image selection\r\n */\r\n readonly selection: PluginWithState<SelectionPluginState>;\r\n\r\n /**\r\n * Entity Plugin handles all operations related to an entity and generate entity specified events\r\n */\r\n readonly entity: PluginWithState<EntityPluginState>;\r\n\r\n /**\r\n * Undo plugin provides the ability to undo/redo\r\n */\r\n readonly undo: PluginWithState<UndoPluginState>;\r\n\r\n /**\r\n * Undo plugin provides the ability get context menu items and trigger ContextMenu event\r\n */\r\n readonly contextMenu: PluginWithState<ContextMenuPluginState>;\r\n\r\n /**\r\n * Lifecycle plugin handles editor initialization and disposing\r\n */\r\n readonly lifecycle: PluginWithState<LifecyclePluginState>;\r\n}\r\n"]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { PasteType } from '../enum/PasteType';
|
|
2
|
+
import type { Colors, ColorTransformFunction } from '../context/DarkColorHandler';
|
|
3
|
+
import type { EditorPlugin } from './EditorPlugin';
|
|
4
|
+
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
|
|
5
|
+
import type { CoreApiMap } from './EditorCore';
|
|
6
|
+
import type { DomToModelOption } from '../context/DomToModelOption';
|
|
7
|
+
import type { ModelToDomOption } from '../context/ModelToDomOption';
|
|
8
|
+
import type { ContentModelDocument } from '../group/ContentModelDocument';
|
|
9
|
+
import type { Snapshots } from '../parameter/Snapshot';
|
|
10
|
+
import type { TrustedHTMLHandler } from '../parameter/TrustedHTMLHandler';
|
|
11
|
+
/**
|
|
12
|
+
* Options for editor
|
|
13
|
+
*/
|
|
14
|
+
export interface EditorOptions {
|
|
15
|
+
/**
|
|
16
|
+
* Default options used for DOM to Content Model conversion
|
|
17
|
+
*/
|
|
18
|
+
defaultDomToModelOptions?: DomToModelOption;
|
|
19
|
+
/**
|
|
20
|
+
* Default options used for Content Model to DOM conversion
|
|
21
|
+
*/
|
|
22
|
+
defaultModelToDomOptions?: ModelToDomOption;
|
|
23
|
+
/**
|
|
24
|
+
* Reuse existing DOM structure if possible, and update the model when content or selection is changed
|
|
25
|
+
*/
|
|
26
|
+
cacheModel?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* List of plugins.
|
|
29
|
+
* The order of plugins here determines in what order each event will be dispatched.
|
|
30
|
+
* Plugins not appear in this list will not be added to editor, including built-in plugins.
|
|
31
|
+
* Default value is empty array.
|
|
32
|
+
*/
|
|
33
|
+
plugins?: EditorPlugin[];
|
|
34
|
+
/**
|
|
35
|
+
* Default format of editor content. This will be applied to empty content.
|
|
36
|
+
* If there is already content inside editor, format of existing content will not be changed.
|
|
37
|
+
* Default value is the computed style of editor content DIV
|
|
38
|
+
*/
|
|
39
|
+
defaultSegmentFormat?: ContentModelSegmentFormat;
|
|
40
|
+
/**
|
|
41
|
+
* Allowed custom content type when paste besides text/plain, text/html and images
|
|
42
|
+
* Only text types are supported, and do not add "text/" prefix to the type values
|
|
43
|
+
*/
|
|
44
|
+
allowedCustomPasteType?: string[];
|
|
45
|
+
/**
|
|
46
|
+
* The scroll container to get scroll event from.
|
|
47
|
+
* By default, the scroll container will be the same with editor content DIV
|
|
48
|
+
*/
|
|
49
|
+
scrollContainer?: HTMLElement;
|
|
50
|
+
/**
|
|
51
|
+
* A util function to transform light mode color to dark mode color
|
|
52
|
+
* Default value is to return the original light color
|
|
53
|
+
*/
|
|
54
|
+
getDarkColor?: ColorTransformFunction;
|
|
55
|
+
/**
|
|
56
|
+
* Existing known color pairs
|
|
57
|
+
*/
|
|
58
|
+
knownColors?: Record<string, Colors>;
|
|
59
|
+
/**
|
|
60
|
+
* Customized trusted type handler used for sanitizing HTML string before assign to DOM tree
|
|
61
|
+
* This is required when trusted-type Content-Security-Policy (CSP) is enabled.
|
|
62
|
+
* See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/trusted-types
|
|
63
|
+
*/
|
|
64
|
+
trustedHTMLHandler?: TrustedHTMLHandler;
|
|
65
|
+
/**
|
|
66
|
+
* A function map to override default core API implementation
|
|
67
|
+
* Default value is null
|
|
68
|
+
*/
|
|
69
|
+
coreApiOverride?: Partial<CoreApiMap>;
|
|
70
|
+
/**
|
|
71
|
+
* Color of the border of a selectedImage. Default color: '#DB626C'
|
|
72
|
+
*/
|
|
73
|
+
imageSelectionBorderColor?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Initial Content Model
|
|
76
|
+
*/
|
|
77
|
+
initialModel?: ContentModelDocument;
|
|
78
|
+
/**
|
|
79
|
+
* Whether to skip the adjust editor process when for light/dark mode
|
|
80
|
+
*/
|
|
81
|
+
doNotAdjustEditorColor?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* If the editor is currently in dark mode
|
|
84
|
+
*/
|
|
85
|
+
inDarkMode?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Undo snapshot. Use this parameter to provide an external storage of undo snapshots
|
|
88
|
+
*/
|
|
89
|
+
snapshots?: Snapshots;
|
|
90
|
+
/**
|
|
91
|
+
* A callback to be invoked when any exception is thrown during disposing editor
|
|
92
|
+
* @param plugin The plugin that causes exception
|
|
93
|
+
* @param error The error object we got
|
|
94
|
+
*/
|
|
95
|
+
disposeErrorHandler?: (plugin: EditorPlugin, error: Error) => void;
|
|
96
|
+
/**
|
|
97
|
+
* Default paste type. By default will use the normal (as-is) paste type.
|
|
98
|
+
*/
|
|
99
|
+
defaultPasteType?: PasteType;
|
|
100
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorOptions.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/EditorOptions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PasteType } from '../enum/PasteType';\r\nimport type { Colors, ColorTransformFunction } from '../context/DarkColorHandler';\r\nimport type { EditorPlugin } from './EditorPlugin';\r\nimport type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';\r\nimport type { CoreApiMap } from './EditorCore';\r\nimport type { DomToModelOption } from '../context/DomToModelOption';\r\nimport type { ModelToDomOption } from '../context/ModelToDomOption';\r\nimport type { ContentModelDocument } from '../group/ContentModelDocument';\r\nimport type { Snapshots } from '../parameter/Snapshot';\r\nimport type { TrustedHTMLHandler } from '../parameter/TrustedHTMLHandler';\r\n\r\n/**\r\n * Options for editor\r\n */\r\nexport interface EditorOptions {\r\n /**\r\n * Default options used for DOM to Content Model conversion\r\n */\r\n defaultDomToModelOptions?: DomToModelOption;\r\n\r\n /**\r\n * Default options used for Content Model to DOM conversion\r\n */\r\n defaultModelToDomOptions?: ModelToDomOption;\r\n\r\n /**\r\n * Reuse existing DOM structure if possible, and update the model when content or selection is changed\r\n */\r\n cacheModel?: boolean;\r\n\r\n /**\r\n * List of plugins.\r\n * The order of plugins here determines in what order each event will be dispatched.\r\n * Plugins not appear in this list will not be added to editor, including built-in plugins.\r\n * Default value is empty array.\r\n */\r\n plugins?: EditorPlugin[];\r\n\r\n /**\r\n * Default format of editor content. This will be applied to empty content.\r\n * If there is already content inside editor, format of existing content will not be changed.\r\n * Default value is the computed style of editor content DIV\r\n */\r\n defaultSegmentFormat?: ContentModelSegmentFormat;\r\n\r\n /**\r\n * Allowed custom content type when paste besides text/plain, text/html and images\r\n * Only text types are supported, and do not add \"text/\" prefix to the type values\r\n */\r\n allowedCustomPasteType?: string[];\r\n\r\n /**\r\n * The scroll container to get scroll event from.\r\n * By default, the scroll container will be the same with editor content DIV\r\n */\r\n scrollContainer?: HTMLElement;\r\n\r\n /**\r\n * A util function to transform light mode color to dark mode color\r\n * Default value is to return the original light color\r\n */\r\n getDarkColor?: ColorTransformFunction;\r\n\r\n /**\r\n * Existing known color pairs\r\n */\r\n knownColors?: Record<string, Colors>;\r\n\r\n /**\r\n * Customized trusted type handler used for sanitizing HTML string before assign to DOM tree\r\n * This is required when trusted-type Content-Security-Policy (CSP) is enabled.\r\n * See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/trusted-types\r\n */\r\n trustedHTMLHandler?: TrustedHTMLHandler;\r\n\r\n /**\r\n * A function map to override default core API implementation\r\n * Default value is null\r\n */\r\n coreApiOverride?: Partial<CoreApiMap>;\r\n\r\n /**\r\n * Color of the border of a selectedImage. Default color: '#DB626C'\r\n */\r\n imageSelectionBorderColor?: string;\r\n\r\n /**\r\n * Initial Content Model\r\n */\r\n initialModel?: ContentModelDocument;\r\n\r\n /**\r\n * Whether to skip the adjust editor process when for light/dark mode\r\n */\r\n doNotAdjustEditorColor?: boolean;\r\n\r\n /**\r\n * If the editor is currently in dark mode\r\n */\r\n inDarkMode?: boolean;\r\n\r\n /**\r\n * Undo snapshot. Use this parameter to provide an external storage of undo snapshots\r\n */\r\n snapshots?: Snapshots;\r\n\r\n /**\r\n * A callback to be invoked when any exception is thrown during disposing editor\r\n * @param plugin The plugin that causes exception\r\n * @param error The error object we got\r\n */\r\n disposeErrorHandler?: (plugin: EditorPlugin, error: Error) => void;\r\n\r\n /**\r\n * Default paste type. By default will use the normal (as-is) paste type.\r\n */\r\n defaultPasteType?: PasteType;\r\n}\r\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { PluginEvent } from '../event/PluginEvent';
|
|
2
|
+
import type { IEditor } from './IEditor';
|
|
3
|
+
/**
|
|
4
|
+
* Interface of an editor plugin
|
|
5
|
+
*/
|
|
6
|
+
export interface EditorPlugin {
|
|
7
|
+
/**
|
|
8
|
+
* Get a friendly name of this plugin
|
|
9
|
+
*/
|
|
10
|
+
getName: () => string;
|
|
11
|
+
/**
|
|
12
|
+
* The first method that editor will call to a plugin when editor is initializing.
|
|
13
|
+
* It will pass in the editor instance, plugin should take this chance to save the
|
|
14
|
+
* editor reference so that it can call to any editor method or format API later.
|
|
15
|
+
* @param editor The editor object
|
|
16
|
+
*/
|
|
17
|
+
initialize: (editor: IEditor) => void;
|
|
18
|
+
/**
|
|
19
|
+
* The last method that editor will call to a plugin before it is disposed.
|
|
20
|
+
* Plugin can take this chance to clear the reference to editor. After this method is
|
|
21
|
+
* called, plugin should not call to any editor method since it will result in error.
|
|
22
|
+
*/
|
|
23
|
+
dispose: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* Check if the plugin should handle the given event exclusively.
|
|
26
|
+
* Handle an event exclusively means other plugin will not receive this event in
|
|
27
|
+
* onPluginEvent method.
|
|
28
|
+
* If two plugins will return true in willHandleEventExclusively() for the same event,
|
|
29
|
+
* the final result depends on the order of the plugins are added into editor
|
|
30
|
+
* @param event The event to check:
|
|
31
|
+
*/
|
|
32
|
+
willHandleEventExclusively?: (event: PluginEvent) => boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Core method for a plugin. Once an event happens in editor, editor will call this
|
|
35
|
+
* method of each plugin to handle the event as long as the event is not handled
|
|
36
|
+
* exclusively by another plugin.
|
|
37
|
+
* @param event The event to handle:
|
|
38
|
+
*/
|
|
39
|
+
onPluginEvent?: (event: PluginEvent) => void;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorPlugin.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/EditorPlugin.ts"],"names":[],"mappings":"","sourcesContent":["import type { PluginEvent } from '../event/PluginEvent';\r\nimport type { IEditor } from './IEditor';\r\n\r\n/**\r\n * Interface of an editor plugin\r\n */\r\nexport interface EditorPlugin {\r\n /**\r\n * Get a friendly name of this plugin\r\n */\r\n getName: () => string;\r\n\r\n /**\r\n * The first method that editor will call to a plugin when editor is initializing.\r\n * It will pass in the editor instance, plugin should take this chance to save the\r\n * editor reference so that it can call to any editor method or format API later.\r\n * @param editor The editor object\r\n */\r\n initialize: (editor: IEditor) => void;\r\n\r\n /**\r\n * The last method that editor will call to a plugin before it is disposed.\r\n * Plugin can take this chance to clear the reference to editor. After this method is\r\n * called, plugin should not call to any editor method since it will result in error.\r\n */\r\n dispose: () => void;\r\n\r\n /**\r\n * Check if the plugin should handle the given event exclusively.\r\n * Handle an event exclusively means other plugin will not receive this event in\r\n * onPluginEvent method.\r\n * If two plugins will return true in willHandleEventExclusively() for the same event,\r\n * the final result depends on the order of the plugins are added into editor\r\n * @param event The event to check:\r\n */\r\n willHandleEventExclusively?: (event: PluginEvent) => boolean;\r\n\r\n /**\r\n * Core method for a plugin. Once an event happens in editor, editor will call this\r\n * method of each plugin to handle the event as long as the event is not handled\r\n * exclusively by another plugin.\r\n * @param event The event to handle:\r\n */\r\n onPluginEvent?: (event: PluginEvent) => void;\r\n}\r\n"]}
|