roosterjs-content-model-types 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/block/ContentModelBlock.d.ts +7 -7
- package/lib/block/ContentModelBlock.js.map +1 -1
- package/lib/block/ContentModelBlockBase.d.ts +3 -3
- package/lib/block/ContentModelBlockBase.js.map +1 -1
- package/lib/block/ContentModelDivider.d.ts +4 -4
- package/lib/block/ContentModelDivider.js.map +1 -1
- package/lib/block/ContentModelParagraph.d.ts +5 -5
- package/lib/block/ContentModelParagraph.js.map +1 -1
- package/lib/block/ContentModelTable.d.ts +6 -6
- package/lib/block/ContentModelTable.js.map +1 -1
- package/lib/block/ContentModelTableRow.d.ts +4 -4
- package/lib/block/ContentModelTableRow.js.map +1 -1
- package/lib/context/ContentModelDomIndexer.d.ts +37 -0
- package/lib/context/ContentModelDomIndexer.js +3 -0
- package/lib/context/ContentModelDomIndexer.js.map +1 -0
- package/lib/context/ContentModelHandler.d.ts +5 -5
- package/lib/context/ContentModelHandler.js.map +1 -1
- package/lib/context/DomToModelContext.d.ts +4 -4
- package/lib/context/DomToModelContext.js.map +1 -1
- package/lib/context/DomToModelFormatContext.d.ts +7 -7
- package/lib/context/DomToModelFormatContext.js.map +1 -1
- package/lib/context/DomToModelOption.d.ts +1 -1
- package/lib/context/DomToModelOption.js.map +1 -1
- package/lib/context/DomToModelSelectionContext.d.ts +2 -2
- package/lib/context/DomToModelSelectionContext.js.map +1 -1
- package/lib/context/DomToModelSettings.d.ts +5 -5
- package/lib/context/DomToModelSettings.js.map +1 -1
- package/lib/context/EditorContext.d.ts +7 -2
- package/lib/context/EditorContext.js.map +1 -1
- package/lib/context/ElementProcessor.d.ts +2 -2
- package/lib/context/ElementProcessor.js.map +1 -1
- package/lib/context/ModelToDomContext.d.ts +4 -4
- package/lib/context/ModelToDomContext.js.map +1 -1
- package/lib/context/ModelToDomFormatContext.d.ts +3 -3
- package/lib/context/ModelToDomFormatContext.js.map +1 -1
- package/lib/context/ModelToDomOption.d.ts +1 -1
- package/lib/context/ModelToDomOption.js.map +1 -1
- package/lib/context/ModelToDomSelectionContext.d.ts +3 -29
- package/lib/context/ModelToDomSelectionContext.js.map +1 -1
- package/lib/context/ModelToDomSettings.d.ts +23 -23
- package/lib/context/ModelToDomSettings.js.map +1 -1
- package/lib/decorator/ContentModelCode.d.ts +2 -2
- package/lib/decorator/ContentModelCode.js.map +1 -1
- package/lib/decorator/ContentModelDecorator.d.ts +3 -3
- package/lib/decorator/ContentModelDecorator.js.map +1 -1
- package/lib/decorator/ContentModelLink.d.ts +3 -3
- package/lib/decorator/ContentModelLink.js.map +1 -1
- package/lib/decorator/ContentModelListLevel.d.ts +4 -4
- package/lib/decorator/ContentModelListLevel.js.map +1 -1
- package/lib/decorator/ContentModelParagraphDecorator.d.ts +2 -2
- package/lib/decorator/ContentModelParagraphDecorator.js.map +1 -1
- package/lib/entity/ContentModelEntity.d.ts +7 -14
- package/lib/entity/ContentModelEntity.js.map +1 -1
- package/lib/format/ContentModelBlockFormat.d.ts +9 -9
- package/lib/format/ContentModelBlockFormat.js.map +1 -1
- package/lib/format/ContentModelCodeFormat.d.ts +2 -2
- package/lib/format/ContentModelCodeFormat.js.map +1 -1
- package/lib/format/ContentModelDividerFormat.d.ts +3 -3
- package/lib/format/ContentModelDividerFormat.js.map +1 -1
- 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/ContentModelFormatContainerFormat.d.ts +4 -4
- package/lib/format/ContentModelFormatContainerFormat.js.map +1 -1
- package/lib/format/ContentModelFormatMap.d.ts +17 -12
- package/lib/format/ContentModelFormatMap.js.map +1 -1
- package/lib/format/ContentModelHyperLinkFormat.d.ts +10 -10
- package/lib/format/ContentModelHyperLinkFormat.js.map +1 -1
- package/lib/format/ContentModelImageFormat.d.ts +10 -10
- package/lib/format/ContentModelImageFormat.js.map +1 -1
- package/lib/format/ContentModelListItemFormat.d.ts +5 -5
- package/lib/format/ContentModelListItemFormat.js.map +1 -1
- package/lib/format/ContentModelListItemLevelFormat.d.ts +6 -6
- package/lib/format/ContentModelListItemLevelFormat.js.map +1 -1
- package/lib/format/ContentModelSegmentFormat.d.ts +11 -11
- package/lib/format/ContentModelSegmentFormat.js.map +1 -1
- package/lib/format/ContentModelTableCellFormat.d.ts +6 -6
- package/lib/format/ContentModelTableCellFormat.js.map +1 -1
- package/lib/format/ContentModelTableFormat.d.ts +8 -8
- package/lib/format/ContentModelTableFormat.js.map +1 -1
- package/lib/format/ContentModelWithDataset.d.ts +1 -1
- package/lib/format/ContentModelWithDataset.js.map +1 -1
- package/lib/format/ContentModelWithFormat.d.ts +1 -1
- package/lib/format/ContentModelWithFormat.js.map +1 -1
- package/lib/format/FormatHandlerTypeMap.d.ts +37 -32
- package/lib/format/FormatHandlerTypeMap.js.map +1 -1
- 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/metadata/ListMetadataFormat.d.ts +1 -1
- package/lib/format/metadata/ListMetadataFormat.js.map +1 -1
- package/lib/format/metadata/TableMetadataFormat.d.ts +1 -1
- package/lib/format/metadata/TableMetadataFormat.js.map +1 -1
- package/lib/group/ContentModelBlockGroup.d.ts +5 -5
- package/lib/group/ContentModelBlockGroup.js.map +1 -1
- package/lib/group/ContentModelBlockGroupBase.d.ts +2 -2
- package/lib/group/ContentModelBlockGroupBase.js.map +1 -1
- package/lib/group/ContentModelDocument.d.ts +3 -3
- package/lib/group/ContentModelDocument.js.map +1 -1
- package/lib/group/ContentModelFormatContainer.d.ts +4 -4
- package/lib/group/ContentModelFormatContainer.js.map +1 -1
- package/lib/group/ContentModelGeneralBlock.d.ts +5 -5
- package/lib/group/ContentModelGeneralBlock.js.map +1 -1
- package/lib/group/ContentModelListItem.d.ts +5 -5
- package/lib/group/ContentModelListItem.js.map +1 -1
- package/lib/group/ContentModelTableCell.d.ts +7 -7
- package/lib/group/ContentModelTableCell.js.map +1 -1
- package/lib/index.d.ts +5 -1
- package/lib/index.js.map +1 -1
- package/lib/segment/ContentModelBr.d.ts +1 -1
- package/lib/segment/ContentModelBr.js.map +1 -1
- package/lib/segment/ContentModelGeneralSegment.d.ts +4 -4
- package/lib/segment/ContentModelGeneralSegment.js.map +1 -1
- package/lib/segment/ContentModelImage.d.ts +4 -4
- package/lib/segment/ContentModelImage.js.map +1 -1
- package/lib/segment/ContentModelSegment.d.ts +6 -6
- package/lib/segment/ContentModelSegment.js.map +1 -1
- package/lib/segment/ContentModelSegmentBase.d.ts +6 -6
- package/lib/segment/ContentModelSegmentBase.js.map +1 -1
- package/lib/segment/ContentModelSelectionMarker.d.ts +1 -1
- package/lib/segment/ContentModelSelectionMarker.js.map +1 -1
- package/lib/segment/ContentModelText.d.ts +1 -1
- package/lib/segment/ContentModelText.js.map +1 -1
- package/lib/selection/DOMSelection.d.ts +67 -0
- package/lib/selection/DOMSelection.js +3 -0
- package/lib/selection/DOMSelection.js.map +1 -0
- package/lib-amd/block/ContentModelBlock.d.ts +7 -7
- package/lib-amd/block/ContentModelBlock.js.map +1 -1
- package/lib-amd/block/ContentModelBlockBase.d.ts +3 -3
- package/lib-amd/block/ContentModelBlockBase.js.map +1 -1
- package/lib-amd/block/ContentModelDivider.d.ts +4 -4
- package/lib-amd/block/ContentModelDivider.js.map +1 -1
- package/lib-amd/block/ContentModelParagraph.d.ts +5 -5
- package/lib-amd/block/ContentModelParagraph.js.map +1 -1
- package/lib-amd/block/ContentModelTable.d.ts +6 -6
- package/lib-amd/block/ContentModelTable.js.map +1 -1
- package/lib-amd/block/ContentModelTableRow.d.ts +4 -4
- package/lib-amd/block/ContentModelTableRow.js.map +1 -1
- package/lib-amd/context/ContentModelDomIndexer.d.ts +37 -0
- package/lib-amd/context/ContentModelDomIndexer.js +5 -0
- package/lib-amd/context/ContentModelDomIndexer.js.map +1 -0
- package/lib-amd/context/ContentModelHandler.d.ts +5 -5
- package/lib-amd/context/ContentModelHandler.js.map +1 -1
- package/lib-amd/context/DomToModelContext.d.ts +4 -4
- package/lib-amd/context/DomToModelContext.js.map +1 -1
- package/lib-amd/context/DomToModelFormatContext.d.ts +7 -7
- package/lib-amd/context/DomToModelFormatContext.js.map +1 -1
- package/lib-amd/context/DomToModelOption.d.ts +1 -1
- package/lib-amd/context/DomToModelOption.js.map +1 -1
- package/lib-amd/context/DomToModelSelectionContext.d.ts +2 -2
- package/lib-amd/context/DomToModelSelectionContext.js.map +1 -1
- package/lib-amd/context/DomToModelSettings.d.ts +5 -5
- package/lib-amd/context/DomToModelSettings.js.map +1 -1
- package/lib-amd/context/EditorContext.d.ts +7 -2
- package/lib-amd/context/EditorContext.js.map +1 -1
- package/lib-amd/context/ElementProcessor.d.ts +2 -2
- package/lib-amd/context/ElementProcessor.js.map +1 -1
- package/lib-amd/context/ModelToDomContext.d.ts +4 -4
- package/lib-amd/context/ModelToDomContext.js.map +1 -1
- package/lib-amd/context/ModelToDomFormatContext.d.ts +3 -3
- package/lib-amd/context/ModelToDomFormatContext.js.map +1 -1
- package/lib-amd/context/ModelToDomOption.d.ts +1 -1
- package/lib-amd/context/ModelToDomOption.js.map +1 -1
- package/lib-amd/context/ModelToDomSelectionContext.d.ts +3 -29
- package/lib-amd/context/ModelToDomSelectionContext.js.map +1 -1
- package/lib-amd/context/ModelToDomSettings.d.ts +23 -23
- package/lib-amd/context/ModelToDomSettings.js.map +1 -1
- package/lib-amd/decorator/ContentModelCode.d.ts +2 -2
- package/lib-amd/decorator/ContentModelCode.js.map +1 -1
- package/lib-amd/decorator/ContentModelDecorator.d.ts +3 -3
- package/lib-amd/decorator/ContentModelDecorator.js.map +1 -1
- package/lib-amd/decorator/ContentModelLink.d.ts +3 -3
- package/lib-amd/decorator/ContentModelLink.js.map +1 -1
- package/lib-amd/decorator/ContentModelListLevel.d.ts +4 -4
- package/lib-amd/decorator/ContentModelListLevel.js.map +1 -1
- package/lib-amd/decorator/ContentModelParagraphDecorator.d.ts +2 -2
- package/lib-amd/decorator/ContentModelParagraphDecorator.js.map +1 -1
- package/lib-amd/entity/ContentModelEntity.d.ts +7 -14
- package/lib-amd/entity/ContentModelEntity.js.map +1 -1
- package/lib-amd/format/ContentModelBlockFormat.d.ts +9 -9
- package/lib-amd/format/ContentModelBlockFormat.js.map +1 -1
- package/lib-amd/format/ContentModelCodeFormat.d.ts +2 -2
- package/lib-amd/format/ContentModelCodeFormat.js.map +1 -1
- package/lib-amd/format/ContentModelDividerFormat.d.ts +3 -3
- package/lib-amd/format/ContentModelDividerFormat.js.map +1 -1
- 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/ContentModelFormatContainerFormat.d.ts +4 -4
- package/lib-amd/format/ContentModelFormatContainerFormat.js.map +1 -1
- package/lib-amd/format/ContentModelFormatMap.d.ts +17 -12
- package/lib-amd/format/ContentModelFormatMap.js.map +1 -1
- package/lib-amd/format/ContentModelHyperLinkFormat.d.ts +10 -10
- package/lib-amd/format/ContentModelHyperLinkFormat.js.map +1 -1
- package/lib-amd/format/ContentModelImageFormat.d.ts +10 -10
- package/lib-amd/format/ContentModelImageFormat.js.map +1 -1
- package/lib-amd/format/ContentModelListItemFormat.d.ts +5 -5
- package/lib-amd/format/ContentModelListItemFormat.js.map +1 -1
- package/lib-amd/format/ContentModelListItemLevelFormat.d.ts +6 -6
- package/lib-amd/format/ContentModelListItemLevelFormat.js.map +1 -1
- package/lib-amd/format/ContentModelSegmentFormat.d.ts +11 -11
- package/lib-amd/format/ContentModelSegmentFormat.js.map +1 -1
- package/lib-amd/format/ContentModelTableCellFormat.d.ts +6 -6
- package/lib-amd/format/ContentModelTableCellFormat.js.map +1 -1
- package/lib-amd/format/ContentModelTableFormat.d.ts +8 -8
- package/lib-amd/format/ContentModelTableFormat.js.map +1 -1
- package/lib-amd/format/ContentModelWithDataset.d.ts +1 -1
- package/lib-amd/format/ContentModelWithDataset.js.map +1 -1
- package/lib-amd/format/ContentModelWithFormat.d.ts +1 -1
- package/lib-amd/format/ContentModelWithFormat.js.map +1 -1
- package/lib-amd/format/FormatHandlerTypeMap.d.ts +37 -32
- package/lib-amd/format/FormatHandlerTypeMap.js.map +1 -1
- 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/metadata/ListMetadataFormat.d.ts +1 -1
- package/lib-amd/format/metadata/ListMetadataFormat.js.map +1 -1
- package/lib-amd/format/metadata/TableMetadataFormat.d.ts +1 -1
- package/lib-amd/format/metadata/TableMetadataFormat.js.map +1 -1
- package/lib-amd/group/ContentModelBlockGroup.d.ts +5 -5
- package/lib-amd/group/ContentModelBlockGroup.js.map +1 -1
- package/lib-amd/group/ContentModelBlockGroupBase.d.ts +2 -2
- package/lib-amd/group/ContentModelBlockGroupBase.js.map +1 -1
- package/lib-amd/group/ContentModelDocument.d.ts +3 -3
- package/lib-amd/group/ContentModelDocument.js.map +1 -1
- package/lib-amd/group/ContentModelFormatContainer.d.ts +4 -4
- package/lib-amd/group/ContentModelFormatContainer.js.map +1 -1
- package/lib-amd/group/ContentModelGeneralBlock.d.ts +5 -5
- package/lib-amd/group/ContentModelGeneralBlock.js.map +1 -1
- package/lib-amd/group/ContentModelListItem.d.ts +5 -5
- package/lib-amd/group/ContentModelListItem.js.map +1 -1
- package/lib-amd/group/ContentModelTableCell.d.ts +7 -7
- package/lib-amd/group/ContentModelTableCell.js.map +1 -1
- package/lib-amd/index.d.ts +5 -1
- package/lib-amd/index.js.map +1 -1
- package/lib-amd/segment/ContentModelBr.d.ts +1 -1
- package/lib-amd/segment/ContentModelBr.js.map +1 -1
- package/lib-amd/segment/ContentModelGeneralSegment.d.ts +4 -4
- package/lib-amd/segment/ContentModelGeneralSegment.js.map +1 -1
- package/lib-amd/segment/ContentModelImage.d.ts +4 -4
- package/lib-amd/segment/ContentModelImage.js.map +1 -1
- package/lib-amd/segment/ContentModelSegment.d.ts +6 -6
- package/lib-amd/segment/ContentModelSegment.js.map +1 -1
- package/lib-amd/segment/ContentModelSegmentBase.d.ts +6 -6
- package/lib-amd/segment/ContentModelSegmentBase.js.map +1 -1
- package/lib-amd/segment/ContentModelSelectionMarker.d.ts +1 -1
- package/lib-amd/segment/ContentModelSelectionMarker.js.map +1 -1
- package/lib-amd/segment/ContentModelText.d.ts +1 -1
- package/lib-amd/segment/ContentModelText.js.map +1 -1
- package/lib-amd/selection/DOMSelection.d.ts +67 -0
- package/lib-amd/selection/DOMSelection.js +5 -0
- package/lib-amd/selection/DOMSelection.js.map +1 -0
- package/lib-mjs/block/ContentModelBlock.d.ts +7 -7
- package/lib-mjs/block/ContentModelBlock.js.map +1 -1
- package/lib-mjs/block/ContentModelBlockBase.d.ts +3 -3
- package/lib-mjs/block/ContentModelBlockBase.js.map +1 -1
- package/lib-mjs/block/ContentModelDivider.d.ts +4 -4
- package/lib-mjs/block/ContentModelDivider.js.map +1 -1
- package/lib-mjs/block/ContentModelParagraph.d.ts +5 -5
- package/lib-mjs/block/ContentModelParagraph.js.map +1 -1
- package/lib-mjs/block/ContentModelTable.d.ts +6 -6
- package/lib-mjs/block/ContentModelTable.js.map +1 -1
- package/lib-mjs/block/ContentModelTableRow.d.ts +4 -4
- package/lib-mjs/block/ContentModelTableRow.js.map +1 -1
- package/lib-mjs/context/ContentModelDomIndexer.d.ts +37 -0
- package/lib-mjs/context/ContentModelDomIndexer.js +2 -0
- package/lib-mjs/context/ContentModelDomIndexer.js.map +1 -0
- package/lib-mjs/context/ContentModelHandler.d.ts +5 -5
- package/lib-mjs/context/ContentModelHandler.js.map +1 -1
- package/lib-mjs/context/DomToModelContext.d.ts +4 -4
- package/lib-mjs/context/DomToModelContext.js.map +1 -1
- package/lib-mjs/context/DomToModelFormatContext.d.ts +7 -7
- package/lib-mjs/context/DomToModelFormatContext.js.map +1 -1
- package/lib-mjs/context/DomToModelOption.d.ts +1 -1
- package/lib-mjs/context/DomToModelOption.js.map +1 -1
- package/lib-mjs/context/DomToModelSelectionContext.d.ts +2 -2
- package/lib-mjs/context/DomToModelSelectionContext.js.map +1 -1
- package/lib-mjs/context/DomToModelSettings.d.ts +5 -5
- package/lib-mjs/context/DomToModelSettings.js.map +1 -1
- package/lib-mjs/context/EditorContext.d.ts +7 -2
- package/lib-mjs/context/EditorContext.js.map +1 -1
- package/lib-mjs/context/ElementProcessor.d.ts +2 -2
- package/lib-mjs/context/ElementProcessor.js.map +1 -1
- package/lib-mjs/context/ModelToDomContext.d.ts +4 -4
- package/lib-mjs/context/ModelToDomContext.js.map +1 -1
- package/lib-mjs/context/ModelToDomFormatContext.d.ts +3 -3
- package/lib-mjs/context/ModelToDomFormatContext.js.map +1 -1
- package/lib-mjs/context/ModelToDomOption.d.ts +1 -1
- package/lib-mjs/context/ModelToDomOption.js.map +1 -1
- package/lib-mjs/context/ModelToDomSelectionContext.d.ts +3 -29
- package/lib-mjs/context/ModelToDomSelectionContext.js.map +1 -1
- package/lib-mjs/context/ModelToDomSettings.d.ts +23 -23
- package/lib-mjs/context/ModelToDomSettings.js.map +1 -1
- package/lib-mjs/decorator/ContentModelCode.d.ts +2 -2
- package/lib-mjs/decorator/ContentModelCode.js.map +1 -1
- package/lib-mjs/decorator/ContentModelDecorator.d.ts +3 -3
- package/lib-mjs/decorator/ContentModelDecorator.js.map +1 -1
- package/lib-mjs/decorator/ContentModelLink.d.ts +3 -3
- package/lib-mjs/decorator/ContentModelLink.js.map +1 -1
- package/lib-mjs/decorator/ContentModelListLevel.d.ts +4 -4
- package/lib-mjs/decorator/ContentModelListLevel.js.map +1 -1
- package/lib-mjs/decorator/ContentModelParagraphDecorator.d.ts +2 -2
- package/lib-mjs/decorator/ContentModelParagraphDecorator.js.map +1 -1
- package/lib-mjs/entity/ContentModelEntity.d.ts +7 -14
- package/lib-mjs/entity/ContentModelEntity.js.map +1 -1
- package/lib-mjs/format/ContentModelBlockFormat.d.ts +9 -9
- package/lib-mjs/format/ContentModelBlockFormat.js.map +1 -1
- package/lib-mjs/format/ContentModelCodeFormat.d.ts +2 -2
- package/lib-mjs/format/ContentModelCodeFormat.js.map +1 -1
- package/lib-mjs/format/ContentModelDividerFormat.d.ts +3 -3
- package/lib-mjs/format/ContentModelDividerFormat.js.map +1 -1
- 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/ContentModelFormatContainerFormat.d.ts +4 -4
- package/lib-mjs/format/ContentModelFormatContainerFormat.js.map +1 -1
- package/lib-mjs/format/ContentModelFormatMap.d.ts +17 -12
- package/lib-mjs/format/ContentModelFormatMap.js.map +1 -1
- package/lib-mjs/format/ContentModelHyperLinkFormat.d.ts +10 -10
- package/lib-mjs/format/ContentModelHyperLinkFormat.js.map +1 -1
- package/lib-mjs/format/ContentModelImageFormat.d.ts +10 -10
- package/lib-mjs/format/ContentModelImageFormat.js.map +1 -1
- package/lib-mjs/format/ContentModelListItemFormat.d.ts +5 -5
- package/lib-mjs/format/ContentModelListItemFormat.js.map +1 -1
- package/lib-mjs/format/ContentModelListItemLevelFormat.d.ts +6 -6
- package/lib-mjs/format/ContentModelListItemLevelFormat.js.map +1 -1
- package/lib-mjs/format/ContentModelSegmentFormat.d.ts +11 -11
- package/lib-mjs/format/ContentModelSegmentFormat.js.map +1 -1
- package/lib-mjs/format/ContentModelTableCellFormat.d.ts +6 -6
- package/lib-mjs/format/ContentModelTableCellFormat.js.map +1 -1
- package/lib-mjs/format/ContentModelTableFormat.d.ts +8 -8
- package/lib-mjs/format/ContentModelTableFormat.js.map +1 -1
- package/lib-mjs/format/ContentModelWithDataset.d.ts +1 -1
- package/lib-mjs/format/ContentModelWithDataset.js.map +1 -1
- package/lib-mjs/format/ContentModelWithFormat.d.ts +1 -1
- package/lib-mjs/format/ContentModelWithFormat.js.map +1 -1
- package/lib-mjs/format/FormatHandlerTypeMap.d.ts +37 -32
- package/lib-mjs/format/FormatHandlerTypeMap.js.map +1 -1
- 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/metadata/ListMetadataFormat.d.ts +1 -1
- package/lib-mjs/format/metadata/ListMetadataFormat.js.map +1 -1
- package/lib-mjs/format/metadata/TableMetadataFormat.d.ts +1 -1
- package/lib-mjs/format/metadata/TableMetadataFormat.js.map +1 -1
- package/lib-mjs/group/ContentModelBlockGroup.d.ts +5 -5
- package/lib-mjs/group/ContentModelBlockGroup.js.map +1 -1
- package/lib-mjs/group/ContentModelBlockGroupBase.d.ts +2 -2
- package/lib-mjs/group/ContentModelBlockGroupBase.js.map +1 -1
- package/lib-mjs/group/ContentModelDocument.d.ts +3 -3
- package/lib-mjs/group/ContentModelDocument.js.map +1 -1
- package/lib-mjs/group/ContentModelFormatContainer.d.ts +4 -4
- package/lib-mjs/group/ContentModelFormatContainer.js.map +1 -1
- package/lib-mjs/group/ContentModelGeneralBlock.d.ts +5 -5
- package/lib-mjs/group/ContentModelGeneralBlock.js.map +1 -1
- package/lib-mjs/group/ContentModelListItem.d.ts +5 -5
- package/lib-mjs/group/ContentModelListItem.js.map +1 -1
- package/lib-mjs/group/ContentModelTableCell.d.ts +7 -7
- package/lib-mjs/group/ContentModelTableCell.js.map +1 -1
- package/lib-mjs/index.d.ts +5 -1
- package/lib-mjs/index.js.map +1 -1
- package/lib-mjs/segment/ContentModelBr.d.ts +1 -1
- package/lib-mjs/segment/ContentModelBr.js.map +1 -1
- package/lib-mjs/segment/ContentModelGeneralSegment.d.ts +4 -4
- package/lib-mjs/segment/ContentModelGeneralSegment.js.map +1 -1
- package/lib-mjs/segment/ContentModelImage.d.ts +4 -4
- package/lib-mjs/segment/ContentModelImage.js.map +1 -1
- package/lib-mjs/segment/ContentModelSegment.d.ts +6 -6
- package/lib-mjs/segment/ContentModelSegment.js.map +1 -1
- package/lib-mjs/segment/ContentModelSegmentBase.d.ts +6 -6
- package/lib-mjs/segment/ContentModelSegmentBase.js.map +1 -1
- package/lib-mjs/segment/ContentModelSelectionMarker.d.ts +1 -1
- package/lib-mjs/segment/ContentModelSelectionMarker.js.map +1 -1
- package/lib-mjs/segment/ContentModelText.d.ts +1 -1
- package/lib-mjs/segment/ContentModelText.js.map +1 -1
- package/lib-mjs/selection/DOMSelection.d.ts +67 -0
- package/lib-mjs/selection/DOMSelection.js +2 -0
- package/lib-mjs/selection/DOMSelection.js.map +1 -0
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ContentModelDivider } from './ContentModelDivider';
|
|
2
|
-
import { ContentModelEntity } from '../entity/ContentModelEntity';
|
|
3
|
-
import { ContentModelFormatContainer } from '../group/ContentModelFormatContainer';
|
|
4
|
-
import { ContentModelGeneralBlock } from '../group/ContentModelGeneralBlock';
|
|
5
|
-
import { ContentModelListItem } from '../group/ContentModelListItem';
|
|
6
|
-
import { ContentModelParagraph } from './ContentModelParagraph';
|
|
7
|
-
import { ContentModelTable } from './ContentModelTable';
|
|
1
|
+
import type { ContentModelDivider } from './ContentModelDivider';
|
|
2
|
+
import type { ContentModelEntity } from '../entity/ContentModelEntity';
|
|
3
|
+
import type { ContentModelFormatContainer } from '../group/ContentModelFormatContainer';
|
|
4
|
+
import type { ContentModelGeneralBlock } from '../group/ContentModelGeneralBlock';
|
|
5
|
+
import type { ContentModelListItem } from '../group/ContentModelListItem';
|
|
6
|
+
import type { ContentModelParagraph } from './ContentModelParagraph';
|
|
7
|
+
import type { ContentModelTable } from './ContentModelTable';
|
|
8
8
|
/**
|
|
9
9
|
* A union type of Content Model Block
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentModelBlock.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/block/ContentModelBlock.ts"],"names":[],"mappings":"","sourcesContent":["import { ContentModelDivider } from './ContentModelDivider';\nimport { ContentModelEntity } from '../entity/ContentModelEntity';\nimport { ContentModelFormatContainer } from '../group/ContentModelFormatContainer';\nimport { ContentModelGeneralBlock } from '../group/ContentModelGeneralBlock';\nimport { ContentModelListItem } from '../group/ContentModelListItem';\nimport { ContentModelParagraph } from './ContentModelParagraph';\nimport { ContentModelTable } from './ContentModelTable';\n\n/**\n * A union type of Content Model Block\n */\nexport type ContentModelBlock =\n | ContentModelFormatContainer\n | ContentModelListItem\n | ContentModelGeneralBlock\n | ContentModelTable\n | ContentModelParagraph\n | ContentModelEntity\n | ContentModelDivider;\n"]}
|
|
1
|
+
{"version":3,"file":"ContentModelBlock.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/block/ContentModelBlock.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelDivider } from './ContentModelDivider';\nimport type { ContentModelEntity } from '../entity/ContentModelEntity';\nimport type { ContentModelFormatContainer } from '../group/ContentModelFormatContainer';\nimport type { ContentModelGeneralBlock } from '../group/ContentModelGeneralBlock';\nimport type { ContentModelListItem } from '../group/ContentModelListItem';\nimport type { ContentModelParagraph } from './ContentModelParagraph';\nimport type { ContentModelTable } from './ContentModelTable';\n\n/**\n * A union type of Content Model Block\n */\nexport type ContentModelBlock =\n | ContentModelFormatContainer\n | ContentModelListItem\n | ContentModelGeneralBlock\n | ContentModelTable\n | ContentModelParagraph\n | ContentModelEntity\n | ContentModelDivider;\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
|
|
2
|
-
import { ContentModelBlockType } from '../enum/BlockType';
|
|
3
|
-
import { ContentModelWithFormat } from '../format/ContentModelWithFormat';
|
|
1
|
+
import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
|
|
2
|
+
import type { ContentModelBlockType } from '../enum/BlockType';
|
|
3
|
+
import type { ContentModelWithFormat } from '../format/ContentModelWithFormat';
|
|
4
4
|
/**
|
|
5
5
|
* Base type of a block
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentModelBlockBase.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/block/ContentModelBlockBase.ts"],"names":[],"mappings":"","sourcesContent":["import { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';\nimport { ContentModelBlockType } from '../enum/BlockType';\nimport { ContentModelWithFormat } from '../format/ContentModelWithFormat';\n\n/**\n * Base type of a block\n */\nexport interface ContentModelBlockBase<\n T extends ContentModelBlockType,\n TFormat extends ContentModelBlockFormat = ContentModelBlockFormat\n> extends ContentModelWithFormat<TFormat> {\n /**\n * Type of this block\n */\n blockType: T;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContentModelBlockBase.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/block/ContentModelBlockBase.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';\nimport type { ContentModelBlockType } from '../enum/BlockType';\nimport type { ContentModelWithFormat } from '../format/ContentModelWithFormat';\n\n/**\n * Base type of a block\n */\nexport interface ContentModelBlockBase<\n T extends ContentModelBlockType,\n TFormat extends ContentModelBlockFormat = ContentModelBlockFormat\n> extends ContentModelWithFormat<TFormat> {\n /**\n * Type of this block\n */\n blockType: T;\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ContentModelBlockBase } from './ContentModelBlockBase';
|
|
2
|
-
import { ContentModelBlockWithCache } from './ContentModelBlockWithCache';
|
|
3
|
-
import { ContentModelDividerFormat } from '../format/ContentModelDividerFormat';
|
|
4
|
-
import { Selectable } from '../selection/Selectable';
|
|
1
|
+
import type { ContentModelBlockBase } from './ContentModelBlockBase';
|
|
2
|
+
import type { ContentModelBlockWithCache } from './ContentModelBlockWithCache';
|
|
3
|
+
import type { ContentModelDividerFormat } from '../format/ContentModelDividerFormat';
|
|
4
|
+
import type { Selectable } from '../selection/Selectable';
|
|
5
5
|
/**
|
|
6
6
|
* Content Model of horizontal divider
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentModelDivider.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/block/ContentModelDivider.ts"],"names":[],"mappings":"","sourcesContent":["import { ContentModelBlockBase } from './ContentModelBlockBase';\nimport { ContentModelBlockWithCache } from './ContentModelBlockWithCache';\nimport { ContentModelDividerFormat } from '../format/ContentModelDividerFormat';\nimport { Selectable } from '../selection/Selectable';\n\n/**\n * Content Model of horizontal divider\n */\nexport interface ContentModelDivider\n extends Selectable,\n ContentModelBlockWithCache,\n ContentModelBlockBase<'Divider', ContentModelDividerFormat> {\n /**\n * Tag name of this element, either HR or DIV\n */\n tagName: 'hr' | 'div';\n\n /**\n * Size property for HR\n */\n size?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContentModelDivider.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/block/ContentModelDivider.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockBase } from './ContentModelBlockBase';\nimport type { ContentModelBlockWithCache } from './ContentModelBlockWithCache';\nimport type { ContentModelDividerFormat } from '../format/ContentModelDividerFormat';\nimport type { Selectable } from '../selection/Selectable';\n\n/**\n * Content Model of horizontal divider\n */\nexport interface ContentModelDivider\n extends Selectable,\n ContentModelBlockWithCache,\n ContentModelBlockBase<'Divider', ContentModelDividerFormat> {\n /**\n * Tag name of this element, either HR or DIV\n */\n tagName: 'hr' | 'div';\n\n /**\n * Size property for HR\n */\n size?: string;\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ContentModelBlockBase } from './ContentModelBlockBase';
|
|
2
|
-
import { ContentModelBlockWithCache } from './ContentModelBlockWithCache';
|
|
3
|
-
import { ContentModelParagraphDecorator } from '../decorator/ContentModelParagraphDecorator';
|
|
4
|
-
import { ContentModelSegment } from '../segment/ContentModelSegment';
|
|
5
|
-
import { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
|
|
1
|
+
import type { ContentModelBlockBase } from './ContentModelBlockBase';
|
|
2
|
+
import type { ContentModelBlockWithCache } from './ContentModelBlockWithCache';
|
|
3
|
+
import type { ContentModelParagraphDecorator } from '../decorator/ContentModelParagraphDecorator';
|
|
4
|
+
import type { ContentModelSegment } from '../segment/ContentModelSegment';
|
|
5
|
+
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
|
|
6
6
|
/**
|
|
7
7
|
* Content Model of Paragraph
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentModelParagraph.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/block/ContentModelParagraph.ts"],"names":[],"mappings":"","sourcesContent":["import { ContentModelBlockBase } from './ContentModelBlockBase';\nimport { ContentModelBlockWithCache } from './ContentModelBlockWithCache';\nimport { ContentModelParagraphDecorator } from '../decorator/ContentModelParagraphDecorator';\nimport { ContentModelSegment } from '../segment/ContentModelSegment';\nimport { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';\n\n/**\n * Content Model of Paragraph\n */\nexport interface ContentModelParagraph\n extends ContentModelBlockWithCache,\n ContentModelBlockBase<'Paragraph'> {\n /**\n * Segments within this paragraph\n */\n segments: ContentModelSegment[];\n\n /**\n * Segment format on this paragraph. This is mostly used for default format\n */\n segmentFormat?: ContentModelSegmentFormat;\n\n /**\n * Decorator info for this paragraph, used by heading and P tags\n */\n decorator?: ContentModelParagraphDecorator;\n\n /**\n * Whether this block was created from a block HTML element or just some simple segment between other block elements.\n * True means it doesn't have a related block element, false means it was from a block element\n */\n isImplicit?: boolean;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContentModelParagraph.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/block/ContentModelParagraph.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockBase } from './ContentModelBlockBase';\nimport type { ContentModelBlockWithCache } from './ContentModelBlockWithCache';\nimport type { ContentModelParagraphDecorator } from '../decorator/ContentModelParagraphDecorator';\nimport type { ContentModelSegment } from '../segment/ContentModelSegment';\nimport type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';\n\n/**\n * Content Model of Paragraph\n */\nexport interface ContentModelParagraph\n extends ContentModelBlockWithCache,\n ContentModelBlockBase<'Paragraph'> {\n /**\n * Segments within this paragraph\n */\n segments: ContentModelSegment[];\n\n /**\n * Segment format on this paragraph. This is mostly used for default format\n */\n segmentFormat?: ContentModelSegmentFormat;\n\n /**\n * Decorator info for this paragraph, used by heading and P tags\n */\n decorator?: ContentModelParagraphDecorator;\n\n /**\n * Whether this block was created from a block HTML element or just some simple segment between other block elements.\n * True means it doesn't have a related block element, false means it was from a block element\n */\n isImplicit?: boolean;\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ContentModelBlockBase } from './ContentModelBlockBase';
|
|
2
|
-
import { ContentModelBlockWithCache } from './ContentModelBlockWithCache';
|
|
3
|
-
import { ContentModelTableFormat } from '../format/ContentModelTableFormat';
|
|
4
|
-
import { ContentModelTableRow } from './ContentModelTableRow';
|
|
5
|
-
import { ContentModelWithDataset } from '../format/ContentModelWithDataset';
|
|
6
|
-
import { TableMetadataFormat } from '../format/metadata/TableMetadataFormat';
|
|
1
|
+
import type { ContentModelBlockBase } from './ContentModelBlockBase';
|
|
2
|
+
import type { ContentModelBlockWithCache } from './ContentModelBlockWithCache';
|
|
3
|
+
import type { ContentModelTableFormat } from '../format/ContentModelTableFormat';
|
|
4
|
+
import type { ContentModelTableRow } from './ContentModelTableRow';
|
|
5
|
+
import type { ContentModelWithDataset } from '../format/ContentModelWithDataset';
|
|
6
|
+
import type { TableMetadataFormat } from '../format/metadata/TableMetadataFormat';
|
|
7
7
|
/**
|
|
8
8
|
* Content Model of Table
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentModelTable.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/block/ContentModelTable.ts"],"names":[],"mappings":"","sourcesContent":["import { ContentModelBlockBase } from './ContentModelBlockBase';\nimport { ContentModelBlockWithCache } from './ContentModelBlockWithCache';\nimport { ContentModelTableFormat } from '../format/ContentModelTableFormat';\nimport { ContentModelTableRow } from './ContentModelTableRow';\nimport { ContentModelWithDataset } from '../format/ContentModelWithDataset';\nimport { TableMetadataFormat } from '../format/metadata/TableMetadataFormat';\n\n/**\n * Content Model of Table\n */\nexport interface ContentModelTable\n extends ContentModelBlockBase<'Table', ContentModelTableFormat>,\n ContentModelWithDataset<TableMetadataFormat>,\n ContentModelBlockWithCache<HTMLTableElement> {\n /**\n * Widths of each column\n */\n widths: number[];\n\n /**\n * Cells of this table\n */\n rows: ContentModelTableRow[];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContentModelTable.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/block/ContentModelTable.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockBase } from './ContentModelBlockBase';\nimport type { ContentModelBlockWithCache } from './ContentModelBlockWithCache';\nimport type { ContentModelTableFormat } from '../format/ContentModelTableFormat';\nimport type { ContentModelTableRow } from './ContentModelTableRow';\nimport type { ContentModelWithDataset } from '../format/ContentModelWithDataset';\nimport type { TableMetadataFormat } from '../format/metadata/TableMetadataFormat';\n\n/**\n * Content Model of Table\n */\nexport interface ContentModelTable\n extends ContentModelBlockBase<'Table', ContentModelTableFormat>,\n ContentModelWithDataset<TableMetadataFormat>,\n ContentModelBlockWithCache<HTMLTableElement> {\n /**\n * Widths of each column\n */\n widths: number[];\n\n /**\n * Cells of this table\n */\n rows: ContentModelTableRow[];\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
|
|
2
|
-
import { ContentModelBlockWithCache } from './ContentModelBlockWithCache';
|
|
3
|
-
import { ContentModelTableCell } from '../group/ContentModelTableCell';
|
|
4
|
-
import { ContentModelWithFormat } from '../format/ContentModelWithFormat';
|
|
1
|
+
import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
|
|
2
|
+
import type { ContentModelBlockWithCache } from './ContentModelBlockWithCache';
|
|
3
|
+
import type { ContentModelTableCell } from '../group/ContentModelTableCell';
|
|
4
|
+
import type { ContentModelWithFormat } from '../format/ContentModelWithFormat';
|
|
5
5
|
/**
|
|
6
6
|
* Content Model of Table
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentModelTableRow.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/block/ContentModelTableRow.ts"],"names":[],"mappings":"","sourcesContent":["import { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';\nimport { ContentModelBlockWithCache } from './ContentModelBlockWithCache';\nimport { ContentModelTableCell } from '../group/ContentModelTableCell';\nimport { ContentModelWithFormat } from '../format/ContentModelWithFormat';\n\n/**\n * Content Model of Table\n */\nexport interface ContentModelTableRow\n extends ContentModelBlockWithCache<HTMLTableRowElement>,\n ContentModelWithFormat<ContentModelBlockFormat> {\n /**\n * Heights of each row\n */\n height: number;\n\n /**\n * Cells of this table\n */\n cells: ContentModelTableCell[];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContentModelTableRow.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/block/ContentModelTableRow.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';\nimport type { ContentModelBlockWithCache } from './ContentModelBlockWithCache';\nimport type { ContentModelTableCell } from '../group/ContentModelTableCell';\nimport type { ContentModelWithFormat } from '../format/ContentModelWithFormat';\n\n/**\n * Content Model of Table\n */\nexport interface ContentModelTableRow\n extends ContentModelBlockWithCache<HTMLTableRowElement>,\n ContentModelWithFormat<ContentModelBlockFormat> {\n /**\n * Heights of each row\n */\n height: number;\n\n /**\n * Cells of this table\n */\n cells: ContentModelTableCell[];\n}\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ContentModelDocument } from '../group/ContentModelDocument';
|
|
2
|
+
import type { ContentModelParagraph } from '../block/ContentModelParagraph';
|
|
3
|
+
import type { ContentModelSegment } from '../segment/ContentModelSegment';
|
|
4
|
+
import type { ContentModelTable } from '../block/ContentModelTable';
|
|
5
|
+
import type { DOMSelection } from '../selection/DOMSelection';
|
|
6
|
+
/**
|
|
7
|
+
* Represents an indexer object which provides methods to help build backward relationship
|
|
8
|
+
* from DOM node to Content Model
|
|
9
|
+
*/
|
|
10
|
+
export interface ContentModelDomIndexer {
|
|
11
|
+
/**
|
|
12
|
+
* Invoked when processing a segment
|
|
13
|
+
* @param segmentNode The new DOM node for this segment
|
|
14
|
+
* @param paragraph Parent paragraph of this segment
|
|
15
|
+
* @param segments The source segments
|
|
16
|
+
*/
|
|
17
|
+
onSegment: (segmentNode: Node, paragraph: ContentModelParagraph, segments: ContentModelSegment[]) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Invoked when new paragraph node is created in DOM tree
|
|
20
|
+
* @param paragraphElement The new DOM node for this paragraph
|
|
21
|
+
*/
|
|
22
|
+
onParagraph: (paragraphElement: HTMLElement) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Invoked when new table node is created in DOM tree
|
|
25
|
+
* @param tableElement The new DOM node for this table
|
|
26
|
+
*/
|
|
27
|
+
onTable: (tableElement: HTMLTableElement, tableModel: ContentModelTable) => void;
|
|
28
|
+
/**
|
|
29
|
+
* When document content or selection is changed by user, we need to use this function to update the content model
|
|
30
|
+
* to reflect the latest document. This process can fail since the selected node may not have a related model data structure.
|
|
31
|
+
* @param model Current cached content model
|
|
32
|
+
* @param newSelection Latest selection
|
|
33
|
+
* @param oldSelection @optional Original selection before this change
|
|
34
|
+
* @returns True if reconcile successfully, otherwise false
|
|
35
|
+
*/
|
|
36
|
+
reconcileSelection: (model: ContentModelDocument, newSelection: DOMSelection, oldSelection?: DOMSelection) => boolean;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentModelDomIndexer.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/ContentModelDomIndexer.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelDocument } from '../group/ContentModelDocument';\nimport type { ContentModelParagraph } from '../block/ContentModelParagraph';\nimport type { ContentModelSegment } from '../segment/ContentModelSegment';\nimport type { ContentModelTable } from '../block/ContentModelTable';\nimport type { DOMSelection } from '../selection/DOMSelection';\n\n/**\n * Represents an indexer object which provides methods to help build backward relationship\n * from DOM node to Content Model\n */\nexport interface ContentModelDomIndexer {\n /**\n * Invoked when processing a segment\n * @param segmentNode The new DOM node for this segment\n * @param paragraph Parent paragraph of this segment\n * @param segments The source segments\n */\n onSegment: (\n segmentNode: Node,\n paragraph: ContentModelParagraph,\n segments: ContentModelSegment[]\n ) => void;\n\n /**\n * Invoked when new paragraph node is created in DOM tree\n * @param paragraphElement The new DOM node for this paragraph\n */\n onParagraph: (paragraphElement: HTMLElement) => void;\n\n /**\n * Invoked when new table node is created in DOM tree\n * @param tableElement The new DOM node for this table\n */\n onTable: (tableElement: HTMLTableElement, tableModel: ContentModelTable) => void;\n\n /**\n * When document content or selection is changed by user, we need to use this function to update the content model\n * to reflect the latest document. This process can fail since the selected node may not have a related model data structure.\n * @param model Current cached content model\n * @param newSelection Latest selection\n * @param oldSelection @optional Original selection before this change\n * @returns True if reconcile successfully, otherwise false\n */\n reconcileSelection: (\n model: ContentModelDocument,\n newSelection: DOMSelection,\n oldSelection?: DOMSelection\n ) => boolean;\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ContentModelBlock } from '../block/ContentModelBlock';
|
|
2
|
-
import { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';
|
|
3
|
-
import { ContentModelDecorator } from '../decorator/ContentModelDecorator';
|
|
4
|
-
import { ContentModelSegment } from '../segment/ContentModelSegment';
|
|
5
|
-
import { ModelToDomContext } from './ModelToDomContext';
|
|
1
|
+
import type { ContentModelBlock } from '../block/ContentModelBlock';
|
|
2
|
+
import type { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';
|
|
3
|
+
import type { ContentModelDecorator } from '../decorator/ContentModelDecorator';
|
|
4
|
+
import type { ContentModelSegment } from '../segment/ContentModelSegment';
|
|
5
|
+
import type { ModelToDomContext } from './ModelToDomContext';
|
|
6
6
|
/**
|
|
7
7
|
* Type of Content Model to DOM handler
|
|
8
8
|
* @param doc Target HTML Document object
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentModelHandler.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/ContentModelHandler.ts"],"names":[],"mappings":"","sourcesContent":["import { ContentModelBlock } from '../block/ContentModelBlock';\nimport { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';\nimport { ContentModelDecorator } from '../decorator/ContentModelDecorator';\nimport { ContentModelSegment } from '../segment/ContentModelSegment';\nimport { ModelToDomContext } from './ModelToDomContext';\n\n/**\n * Type of Content Model to DOM handler\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n */\nexport type ContentModelHandler<\n T extends ContentModelSegment | ContentModelBlockGroup | ContentModelDecorator\n> = (doc: Document, parent: Node, model: T, context: ModelToDomContext) => void;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param refNode Reference node. This is the next node the new node to be inserted.\n * It is used when write DOM tree onto existing DOM true. If there is no reference node, pass null.\n */\nexport type ContentModelBlockHandler<T extends ContentModelBlock | ContentModelBlockGroup> = (\n doc: Document,\n parent: Node,\n model: T,\n context: ModelToDomContext,\n refNode: Node | null\n) => Node | null;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param segmentNodes Nodes that created to represent this segment. In most cases there will be one node returned, except\n * - For segments with decorators: decorator elements will also be included\n * - For inline entity segment, the delimiter SPANs will also be included\n */\nexport type ContentModelSegmentHandler<T extends ContentModelSegment> = (\n doc: Document,\n parent: Node,\n model: T,\n context: ModelToDomContext,\n segmentNodes: Node[]\n) => void;\n"]}
|
|
1
|
+
{"version":3,"file":"ContentModelHandler.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/ContentModelHandler.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlock } from '../block/ContentModelBlock';\nimport type { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';\nimport type { ContentModelDecorator } from '../decorator/ContentModelDecorator';\nimport type { ContentModelSegment } from '../segment/ContentModelSegment';\nimport type { ModelToDomContext } from './ModelToDomContext';\n\n/**\n * Type of Content Model to DOM handler\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n */\nexport type ContentModelHandler<\n T extends ContentModelSegment | ContentModelBlockGroup | ContentModelDecorator\n> = (doc: Document, parent: Node, model: T, context: ModelToDomContext) => void;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param refNode Reference node. This is the next node the new node to be inserted.\n * It is used when write DOM tree onto existing DOM true. If there is no reference node, pass null.\n */\nexport type ContentModelBlockHandler<T extends ContentModelBlock | ContentModelBlockGroup> = (\n doc: Document,\n parent: Node,\n model: T,\n context: ModelToDomContext,\n refNode: Node | null\n) => Node | null;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param segmentNodes Nodes that created to represent this segment. In most cases there will be one node returned, except\n * - For segments with decorators: decorator elements will also be included\n * - For inline entity segment, the delimiter SPANs will also be included\n */\nexport type ContentModelSegmentHandler<T extends ContentModelSegment> = (\n doc: Document,\n parent: Node,\n model: T,\n context: ModelToDomContext,\n segmentNodes: Node[]\n) => void;\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DomToModelSelectionContext } from './DomToModelSelectionContext';
|
|
2
|
-
import { DomToModelSettings } from './DomToModelSettings';
|
|
3
|
-
import { EditorContext } from './EditorContext';
|
|
4
|
-
import { DomToModelFormatContext, DomToModelDecoratorContext } from './DomToModelFormatContext';
|
|
1
|
+
import type { DomToModelSelectionContext } from './DomToModelSelectionContext';
|
|
2
|
+
import type { DomToModelSettings } from './DomToModelSettings';
|
|
3
|
+
import type { EditorContext } from './EditorContext';
|
|
4
|
+
import type { DomToModelFormatContext, DomToModelDecoratorContext } from './DomToModelFormatContext';
|
|
5
5
|
/**
|
|
6
6
|
* Context of DOM to Model conversion, used for parse HTML element according to current context
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomToModelContext.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/DomToModelContext.ts"],"names":[],"mappings":"","sourcesContent":["import { DomToModelSelectionContext } from './DomToModelSelectionContext';\nimport { DomToModelSettings } from './DomToModelSettings';\nimport { EditorContext } from './EditorContext';\nimport {
|
|
1
|
+
{"version":3,"file":"DomToModelContext.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/DomToModelContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { DomToModelSelectionContext } from './DomToModelSelectionContext';\nimport type { DomToModelSettings } from './DomToModelSettings';\nimport type { EditorContext } from './EditorContext';\nimport type {\n DomToModelFormatContext,\n DomToModelDecoratorContext,\n} from './DomToModelFormatContext';\n\n/**\n * Context of DOM to Model conversion, used for parse HTML element according to current context\n */\nexport interface DomToModelContext\n extends EditorContext,\n DomToModelSelectionContext,\n DomToModelFormatContext,\n DomToModelSettings,\n DomToModelDecoratorContext {}\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
|
|
2
|
-
import { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';
|
|
3
|
-
import { ContentModelCode } from '../decorator/ContentModelCode';
|
|
4
|
-
import { ContentModelLink } from '../decorator/ContentModelLink';
|
|
5
|
-
import { ContentModelListLevel } from '../decorator/ContentModelListLevel';
|
|
6
|
-
import { ContentModelParagraphDecorator } from '../decorator/ContentModelParagraphDecorator';
|
|
7
|
-
import { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
|
|
1
|
+
import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
|
|
2
|
+
import type { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';
|
|
3
|
+
import type { ContentModelCode } from '../decorator/ContentModelCode';
|
|
4
|
+
import type { ContentModelLink } from '../decorator/ContentModelLink';
|
|
5
|
+
import type { ContentModelListLevel } from '../decorator/ContentModelListLevel';
|
|
6
|
+
import type { ContentModelParagraphDecorator } from '../decorator/ContentModelParagraphDecorator';
|
|
7
|
+
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
|
|
8
8
|
/**
|
|
9
9
|
* Represents the context object used when do DOM to Content Model conversion and processing a List
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomToModelFormatContext.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/DomToModelFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';\nimport { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';\nimport { ContentModelCode } from '../decorator/ContentModelCode';\nimport { ContentModelLink } from '../decorator/ContentModelLink';\nimport { ContentModelListLevel } from '../decorator/ContentModelListLevel';\nimport { ContentModelParagraphDecorator } from '../decorator/ContentModelParagraphDecorator';\nimport { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';\n\n/**\n * Represents the context object used when do DOM to Content Model conversion and processing a List\n */\nexport interface DomToModelListFormat {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * The list that is currently processing\n */\n listParent?: ContentModelBlockGroup;\n\n /**\n * Current list type stack\n */\n levels: ContentModelListLevel[];\n}\n\n/**\n * Represents format info used by DOM to Content Model conversion\n */\nexport interface DomToModelFormatContext {\n /**\n * Format of current block\n */\n blockFormat: ContentModelBlockFormat;\n\n /**\n * Format of current segment\n */\n segmentFormat: ContentModelSegmentFormat;\n\n /**\n * Context of list that is currently processing\n */\n listFormat: DomToModelListFormat;\n}\n\n/**\n * Represents decorator info used by DOM to Content Model conversion\n */\nexport interface DomToModelDecoratorContext {\n /**\n * Context of hyper link info\n */\n link: ContentModelLink;\n\n /**\n * Context of code info\n */\n code: ContentModelCode;\n\n /**\n * Context for paragraph decorator\n */\n blockDecorator: ContentModelParagraphDecorator;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"DomToModelFormatContext.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/DomToModelFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';\nimport type { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';\nimport type { ContentModelCode } from '../decorator/ContentModelCode';\nimport type { ContentModelLink } from '../decorator/ContentModelLink';\nimport type { ContentModelListLevel } from '../decorator/ContentModelListLevel';\nimport type { ContentModelParagraphDecorator } from '../decorator/ContentModelParagraphDecorator';\nimport type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';\n\n/**\n * Represents the context object used when do DOM to Content Model conversion and processing a List\n */\nexport interface DomToModelListFormat {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * The list that is currently processing\n */\n listParent?: ContentModelBlockGroup;\n\n /**\n * Current list type stack\n */\n levels: ContentModelListLevel[];\n}\n\n/**\n * Represents format info used by DOM to Content Model conversion\n */\nexport interface DomToModelFormatContext {\n /**\n * Format of current block\n */\n blockFormat: ContentModelBlockFormat;\n\n /**\n * Format of current segment\n */\n segmentFormat: ContentModelSegmentFormat;\n\n /**\n * Context of list that is currently processing\n */\n listFormat: DomToModelListFormat;\n}\n\n/**\n * Represents decorator info used by DOM to Content Model conversion\n */\nexport interface DomToModelDecoratorContext {\n /**\n * Context of hyper link info\n */\n link: ContentModelLink;\n\n /**\n * Context of code info\n */\n code: ContentModelCode;\n\n /**\n * Context for paragraph decorator\n */\n blockDecorator: ContentModelParagraphDecorator;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomToModelOption.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/DomToModelOption.ts"],"names":[],"mappings":"","sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"DomToModelOption.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/DomToModelOption.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n ElementProcessorMap,\n FormatParsers,\n FormatParsersPerCategory,\n} from './DomToModelSettings';\n\n/**\n * Options for creating DomToModelContext\n */\nexport interface DomToModelOption {\n /**\n * Overrides default element processors\n */\n processorOverride?: Partial<ElementProcessorMap>;\n\n /**\n * Overrides default format handlers\n */\n formatParserOverride?: Partial<FormatParsers>;\n\n /**\n * Provide additional format parsers for each format type\n */\n additionalFormatParsers?: Partial<FormatParsersPerCategory>;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DOMSelection } from '../selection/DOMSelection';
|
|
2
2
|
/**
|
|
3
3
|
* Represents the selection information of content used by DOM to Content Model conversion
|
|
4
4
|
*/
|
|
@@ -10,5 +10,5 @@ export interface DomToModelSelectionContext {
|
|
|
10
10
|
/**
|
|
11
11
|
* Current selection range
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
selection?: DOMSelection;
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomToModelSelectionContext.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/DomToModelSelectionContext.ts"],"names":[],"mappings":"","sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"DomToModelSelectionContext.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/DomToModelSelectionContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { DOMSelection } from '../selection/DOMSelection';\n\n/**\n * Represents the selection information of content used by DOM to Content Model conversion\n */\nexport interface DomToModelSelectionContext {\n /**\n * Is current context under a selection\n */\n isInSelection?: boolean;\n\n /**\n * Current selection range\n */\n selection?: DOMSelection;\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ContentModelFormatBase } from '../format/ContentModelFormatBase';
|
|
2
|
-
import { ContentModelFormatMap } from '../format/ContentModelFormatMap';
|
|
3
|
-
import { DomToModelContext } from './DomToModelContext';
|
|
4
|
-
import { ElementProcessor } from './ElementProcessor';
|
|
5
|
-
import { FormatHandlerTypeMap, FormatKey } from '../format/FormatHandlerTypeMap';
|
|
1
|
+
import type { ContentModelFormatBase } from '../format/ContentModelFormatBase';
|
|
2
|
+
import type { ContentModelFormatMap } from '../format/ContentModelFormatMap';
|
|
3
|
+
import type { DomToModelContext } from './DomToModelContext';
|
|
4
|
+
import type { ElementProcessor } from './ElementProcessor';
|
|
5
|
+
import type { FormatHandlerTypeMap, FormatKey } from '../format/FormatHandlerTypeMap';
|
|
6
6
|
/**
|
|
7
7
|
* A type of Default style map, from tag name string (in upper case) to a static style object
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomToModelSettings.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/DomToModelSettings.ts"],"names":[],"mappings":"","sourcesContent":["import { ContentModelFormatBase } from '../format/ContentModelFormatBase';\nimport { ContentModelFormatMap } from '../format/ContentModelFormatMap';\nimport { DomToModelContext } from './DomToModelContext';\nimport { ElementProcessor } from './ElementProcessor';\nimport { FormatHandlerTypeMap, FormatKey } from '../format/FormatHandlerTypeMap';\n\n/**\n * A type of Default style map, from tag name string (in upper case) to a static style object\n */\nexport type DefaultStyleMap = {\n [key in keyof HTMLElementDeprecatedTagNameMap]?: Readonly<Partial<CSSStyleDeclaration>>;\n} &\n {\n [key in keyof HTMLElementTagNameMap]?: Readonly<Partial<CSSStyleDeclaration>>;\n } & {\n // Workaround typescript 4.4.4 which does not have these elements in its declaration file\n center?: Partial<CSSStyleDeclaration>;\n strike?: Partial<CSSStyleDeclaration>;\n };\n\n/**\n * Parse format from the given HTML element and default style\n * @param format The format object to parse into\n * @param element The HTML element to parse format from\n * @param context The context object that provide related context information\n * @param defaultStyle Default CSS style of the given HTML element\n */\nexport type FormatParser<TFormat extends ContentModelFormatBase> = (\n format: TFormat,\n element: HTMLElement,\n context: DomToModelContext,\n defaultStyle: Readonly<Partial<CSSStyleDeclaration>>\n) => void;\n\n/**\n * All format parsers\n */\nexport type FormatParsers = {\n [Key in FormatKey]: FormatParser<FormatHandlerTypeMap[Key]> | null;\n};\n\n/**\n * A map from format parser category name to an array of parsers\n */\nexport type FormatParsersPerCategory = {\n [Key in keyof ContentModelFormatMap]: (FormatParser<ContentModelFormatMap[Key]> | null)[];\n};\n\n/**\n * A map from element processor name to its processor type\n */\nexport type ElementProcessorMap = {\n [key in keyof HTMLElementDeprecatedTagNameMap]?: ElementProcessor<\n HTMLElementDeprecatedTagNameMap[key]\n >;\n} &\n {\n [key in keyof HTMLElementTagNameMap]?: ElementProcessor<HTMLElementTagNameMap[key]>;\n } & {\n /**\n * Processors for all other HTML elements\n */\n '*': ElementProcessor<HTMLElement>;\n\n /**\n * Processor for text node\n */\n '#text': ElementProcessor<Text>;\n\n /**\n * Processor for entity\n */\n entity: ElementProcessor<HTMLElement>;\n\n /**\n * Common processor dispatch for all elements\n */\n element: ElementProcessor<HTMLElement>;\n\n /**\n * Common processor for child nodes of a given element\n */\n child: ElementProcessor<ParentNode>;\n\n /**\n * Workaround for typescript 4.4.4 that doesn't have element \"strike\" in its element type\n */\n strike?: ElementProcessor<HTMLElement>;\n\n /**\n * Workaround for typescript 4.4.4 that doesn't have element \"center\" in its element type\n */\n center?: ElementProcessor<HTMLElement>;\n\n /**\n * Processor for Inline Readonly Delimiters\n */\n delimiter?: ElementProcessor<Node>;\n };\n\n/**\n * Represents settings to customize DOM to Content Model conversion\n */\nexport interface DomToModelSettings {\n /**\n * Map of element processors\n */\n elementProcessors: ElementProcessorMap;\n\n /**\n * Map of format parsers\n */\n formatParsers: FormatParsersPerCategory;\n\n /**\n * Default DOM to Content Model processors before overriding.\n * This provides a way to call original processor from an overridden processor function\n */\n defaultElementProcessors: Readonly<ElementProcessorMap>;\n\n /**\n * Default format parsers before overriding.\n * This provides a way to call original format parser from an overridden parser function\n */\n defaultFormatParsers: Readonly<FormatParsers>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"DomToModelSettings.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/DomToModelSettings.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelFormatBase } from '../format/ContentModelFormatBase';\nimport type { ContentModelFormatMap } from '../format/ContentModelFormatMap';\nimport type { DomToModelContext } from './DomToModelContext';\nimport type { ElementProcessor } from './ElementProcessor';\nimport type { FormatHandlerTypeMap, FormatKey } from '../format/FormatHandlerTypeMap';\n\n/**\n * A type of Default style map, from tag name string (in upper case) to a static style object\n */\nexport type DefaultStyleMap = {\n [key in keyof HTMLElementDeprecatedTagNameMap]?: Readonly<Partial<CSSStyleDeclaration>>;\n} &\n {\n [key in keyof HTMLElementTagNameMap]?: Readonly<Partial<CSSStyleDeclaration>>;\n } & {\n // Workaround typescript 4.4.4 which does not have these elements in its declaration file\n center?: Partial<CSSStyleDeclaration>;\n strike?: Partial<CSSStyleDeclaration>;\n };\n\n/**\n * Parse format from the given HTML element and default style\n * @param format The format object to parse into\n * @param element The HTML element to parse format from\n * @param context The context object that provide related context information\n * @param defaultStyle Default CSS style of the given HTML element\n */\nexport type FormatParser<TFormat extends ContentModelFormatBase> = (\n format: TFormat,\n element: HTMLElement,\n context: DomToModelContext,\n defaultStyle: Readonly<Partial<CSSStyleDeclaration>>\n) => void;\n\n/**\n * All format parsers\n */\nexport type FormatParsers = {\n [Key in FormatKey]: FormatParser<FormatHandlerTypeMap[Key]> | null;\n};\n\n/**\n * A map from format parser category name to an array of parsers\n */\nexport type FormatParsersPerCategory = {\n [Key in keyof ContentModelFormatMap]: (FormatParser<ContentModelFormatMap[Key]> | null)[];\n};\n\n/**\n * A map from element processor name to its processor type\n */\nexport type ElementProcessorMap = {\n [key in keyof HTMLElementDeprecatedTagNameMap]?: ElementProcessor<\n HTMLElementDeprecatedTagNameMap[key]\n >;\n} &\n {\n [key in keyof HTMLElementTagNameMap]?: ElementProcessor<HTMLElementTagNameMap[key]>;\n } & {\n /**\n * Processors for all other HTML elements\n */\n '*': ElementProcessor<HTMLElement>;\n\n /**\n * Processor for text node\n */\n '#text': ElementProcessor<Text>;\n\n /**\n * Processor for entity\n */\n entity: ElementProcessor<HTMLElement>;\n\n /**\n * Common processor dispatch for all elements\n */\n element: ElementProcessor<HTMLElement>;\n\n /**\n * Common processor for child nodes of a given element\n */\n child: ElementProcessor<ParentNode>;\n\n /**\n * Workaround for typescript 4.4.4 that doesn't have element \"strike\" in its element type\n */\n strike?: ElementProcessor<HTMLElement>;\n\n /**\n * Workaround for typescript 4.4.4 that doesn't have element \"center\" in its element type\n */\n center?: ElementProcessor<HTMLElement>;\n\n /**\n * Processor for Inline Readonly Delimiters\n */\n delimiter?: ElementProcessor<Node>;\n };\n\n/**\n * Represents settings to customize DOM to Content Model conversion\n */\nexport interface DomToModelSettings {\n /**\n * Map of element processors\n */\n elementProcessors: ElementProcessorMap;\n\n /**\n * Map of format parsers\n */\n formatParsers: FormatParsersPerCategory;\n\n /**\n * Default DOM to Content Model processors before overriding.\n * This provides a way to call original processor from an overridden processor function\n */\n defaultElementProcessors: Readonly<ElementProcessorMap>;\n\n /**\n * Default format parsers before overriding.\n * This provides a way to call original format parser from an overridden parser function\n */\n defaultFormatParsers: Readonly<FormatParsers>;\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ContentModelDomIndexer } from './ContentModelDomIndexer';
|
|
2
|
+
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
|
|
3
|
+
import type { DarkColorHandler } from 'roosterjs-editor-types';
|
|
3
4
|
/**
|
|
4
5
|
* An editor context interface used by ContentModel PAI
|
|
5
6
|
*/
|
|
@@ -33,4 +34,8 @@ export interface EditorContext {
|
|
|
33
34
|
* When pass true, this cached element will be used to create DOM tree back when convert Content Model to DOM
|
|
34
35
|
*/
|
|
35
36
|
allowCacheElement?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @optional Indexer for content model, to help build backward relationship from DOM node to Content Model
|
|
39
|
+
*/
|
|
40
|
+
domIndexer?: ContentModelDomIndexer;
|
|
36
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorContext.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/EditorContext.ts"],"names":[],"mappings":"","sourcesContent":["import { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';\nimport { DarkColorHandler } from 'roosterjs-editor-types';\n\n/**\n * An editor context interface used by ContentModel PAI\n */\nexport interface EditorContext {\n /**\n * Whether current content is in dark mode\n */\n isDarkMode?: boolean;\n\n /**\n * Default format of editor\n */\n defaultFormat?: ContentModelSegmentFormat;\n\n /**\n * Dark model color handler\n */\n darkColorHandler?: DarkColorHandler | null;\n\n /**\n * Whether to handle delimiters in Content Model\n */\n addDelimiterForEntity?: boolean;\n\n /**\n * Zoom scale number\n */\n zoomScale?: number;\n\n /**\n * Whether the content is in Right-to-left from root level\n */\n isRootRtl?: boolean;\n\n /**\n * Whether put the source element into Content Model when possible.\n * When pass true, this cached element will be used to create DOM tree back when convert Content Model to DOM\n */\n allowCacheElement?: boolean;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"EditorContext.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/EditorContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelDomIndexer } from './ContentModelDomIndexer';\nimport type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';\nimport type { DarkColorHandler } from 'roosterjs-editor-types';\n\n/**\n * An editor context interface used by ContentModel PAI\n */\nexport interface EditorContext {\n /**\n * Whether current content is in dark mode\n */\n isDarkMode?: boolean;\n\n /**\n * Default format of editor\n */\n defaultFormat?: ContentModelSegmentFormat;\n\n /**\n * Dark model color handler\n */\n darkColorHandler?: DarkColorHandler | null;\n\n /**\n * Whether to handle delimiters in Content Model\n */\n addDelimiterForEntity?: boolean;\n\n /**\n * Zoom scale number\n */\n zoomScale?: number;\n\n /**\n * Whether the content is in Right-to-left from root level\n */\n isRootRtl?: boolean;\n\n /**\n * Whether put the source element into Content Model when possible.\n * When pass true, this cached element will be used to create DOM tree back when convert Content Model to DOM\n */\n allowCacheElement?: boolean;\n\n /**\n * @optional Indexer for content model, to help build backward relationship from DOM node to Content Model\n */\n domIndexer?: ContentModelDomIndexer;\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';
|
|
2
|
-
import { DomToModelContext } from './DomToModelContext';
|
|
1
|
+
import type { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';
|
|
2
|
+
import type { DomToModelContext } from './DomToModelContext';
|
|
3
3
|
/**
|
|
4
4
|
* A function type to process HTML element when do DOM to Content Model conversion
|
|
5
5
|
* @param group Parent content model group
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementProcessor.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/ElementProcessor.ts"],"names":[],"mappings":"","sourcesContent":["import { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';\nimport { DomToModelContext } from './DomToModelContext';\n\n/**\n * A function type to process HTML element when do DOM to Content Model conversion\n * @param group Parent content model group\n * @param element The element to process\n * @param context The context object to provide related information\n */\nexport type ElementProcessor<T extends Node> = (\n group: ContentModelBlockGroup,\n element: T,\n context: DomToModelContext\n) => void;\n"]}
|
|
1
|
+
{"version":3,"file":"ElementProcessor.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/ElementProcessor.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';\nimport type { DomToModelContext } from './DomToModelContext';\n\n/**\n * A function type to process HTML element when do DOM to Content Model conversion\n * @param group Parent content model group\n * @param element The element to process\n * @param context The context object to provide related information\n */\nexport type ElementProcessor<T extends Node> = (\n group: ContentModelBlockGroup,\n element: T,\n context: DomToModelContext\n) => void;\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EditorContext } from './EditorContext';
|
|
2
|
-
import { ModelToDomFormatContext } from './ModelToDomFormatContext';
|
|
3
|
-
import { ModelToDomSelectionContext } from './ModelToDomSelectionContext';
|
|
4
|
-
import { ModelToDomSettings } from './ModelToDomSettings';
|
|
1
|
+
import type { EditorContext } from './EditorContext';
|
|
2
|
+
import type { ModelToDomFormatContext } from './ModelToDomFormatContext';
|
|
3
|
+
import type { ModelToDomSelectionContext } from './ModelToDomSelectionContext';
|
|
4
|
+
import type { ModelToDomSettings } from './ModelToDomSettings';
|
|
5
5
|
/**
|
|
6
6
|
* Context of Model to DOM conversion, used for generate HTML DOM tree according to current context
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelToDomContext.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/ModelToDomContext.ts"],"names":[],"mappings":"","sourcesContent":["import { EditorContext } from './EditorContext';\nimport { ModelToDomFormatContext } from './ModelToDomFormatContext';\nimport { ModelToDomSelectionContext } from './ModelToDomSelectionContext';\nimport { ModelToDomSettings } from './ModelToDomSettings';\n\n/**\n * Context of Model to DOM conversion, used for generate HTML DOM tree according to current context\n */\nexport interface ModelToDomContext\n extends EditorContext,\n ModelToDomSelectionContext,\n ModelToDomFormatContext,\n ModelToDomSettings {}\n"]}
|
|
1
|
+
{"version":3,"file":"ModelToDomContext.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/ModelToDomContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { EditorContext } from './EditorContext';\nimport type { ModelToDomFormatContext } from './ModelToDomFormatContext';\nimport type { ModelToDomSelectionContext } from './ModelToDomSelectionContext';\nimport type { ModelToDomSettings } from './ModelToDomSettings';\n\n/**\n * Context of Model to DOM conversion, used for generate HTML DOM tree according to current context\n */\nexport interface ModelToDomContext\n extends EditorContext,\n ModelToDomSelectionContext,\n ModelToDomFormatContext,\n ModelToDomSettings {}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
|
|
2
|
-
import { ContentModelListLevel } from '../decorator/ContentModelListLevel';
|
|
3
|
-
import { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
|
|
1
|
+
import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
|
|
2
|
+
import type { ContentModelListLevel } from '../decorator/ContentModelListLevel';
|
|
3
|
+
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
|
|
4
4
|
/**
|
|
5
5
|
* Represents a list stack item used by Content Model to DOM conversion
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelToDomFormatContext.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/ModelToDomFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';\nimport { ContentModelListLevel } from '../decorator/ContentModelListLevel';\nimport { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';\n\n/**\n * Represents a list stack item used by Content Model to DOM conversion\n */\nexport interface ModelToDomListStackItem extends Partial<ContentModelListLevel> {\n /**\n * DOM node of this list stack\n */\n node: Node;\n}\n\n/**\n * Represents context for list handling\n */\nexport interface ModelToDomListContext {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * A stack of current list element chain, start from the parent node of top level list\n */\n nodeStack: ModelToDomListStackItem[];\n}\n\n/**\n * Represents format context used by Content Model to DOM conversion\n */\nexport interface ModelToDomFormatContext {\n /**\n * Context for list handling\n */\n listFormat: ModelToDomListContext;\n\n /**\n * Existing format implicitly applied from parent element\n */\n implicitFormat: ContentModelSegmentFormat & ContentModelBlockFormat;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ModelToDomFormatContext.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/ModelToDomFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';\nimport type { ContentModelListLevel } from '../decorator/ContentModelListLevel';\nimport type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';\n\n/**\n * Represents a list stack item used by Content Model to DOM conversion\n */\nexport interface ModelToDomListStackItem extends Partial<ContentModelListLevel> {\n /**\n * DOM node of this list stack\n */\n node: Node;\n}\n\n/**\n * Represents context for list handling\n */\nexport interface ModelToDomListContext {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * A stack of current list element chain, start from the parent node of top level list\n */\n nodeStack: ModelToDomListStackItem[];\n}\n\n/**\n * Represents format context used by Content Model to DOM conversion\n */\nexport interface ModelToDomFormatContext {\n /**\n * Context for list handling\n */\n listFormat: ModelToDomListContext;\n\n /**\n * Existing format implicitly applied from parent element\n */\n implicitFormat: ContentModelSegmentFormat & ContentModelBlockFormat;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentModelHandlerMap, FormatAppliers, FormatAppliersPerCategory } from './ModelToDomSettings';
|
|
1
|
+
import type { ContentModelHandlerMap, FormatAppliers, FormatAppliersPerCategory } from './ModelToDomSettings';
|
|
2
2
|
/**
|
|
3
3
|
* Options for creating ModelToDomContext
|
|
4
4
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelToDomOption.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/ModelToDomOption.ts"],"names":[],"mappings":"","sourcesContent":["import {\n ContentModelHandlerMap,\n FormatAppliers,\n FormatAppliersPerCategory,\n} from './ModelToDomSettings';\n\n/**\n * Options for creating ModelToDomContext\n */\nexport interface ModelToDomOption {\n /**\n * Overrides default format appliers\n */\n formatApplierOverride?: Partial<FormatAppliers>;\n\n /**\n * Provide additional format appliers for each format type\n */\n additionalFormatAppliers?: Partial<FormatAppliersPerCategory>;\n\n /**\n * Overrides default model handlers\n */\n modelHandlerOverride?: Partial<ContentModelHandlerMap>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ModelToDomOption.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/ModelToDomOption.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n ContentModelHandlerMap,\n FormatAppliers,\n FormatAppliersPerCategory,\n} from './ModelToDomSettings';\n\n/**\n * Options for creating ModelToDomContext\n */\nexport interface ModelToDomOption {\n /**\n * Overrides default format appliers\n */\n formatApplierOverride?: Partial<FormatAppliers>;\n\n /**\n * Provide additional format appliers for each format type\n */\n additionalFormatAppliers?: Partial<FormatAppliersPerCategory>;\n\n /**\n * Overrides default model handlers\n */\n modelHandlerOverride?: Partial<ContentModelHandlerMap>;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ImageSelection, TableSelection } from '../selection/DOMSelection';
|
|
2
2
|
/**
|
|
3
3
|
* Represents internal data structure for a selection position, combined by block and segment node
|
|
4
4
|
*/
|
|
@@ -30,32 +30,6 @@ export interface ModelToDomRegularSelection {
|
|
|
30
30
|
*/
|
|
31
31
|
current: ModelToDomBlockAndSegmentNode;
|
|
32
32
|
}
|
|
33
|
-
/**
|
|
34
|
-
* Represents internal data structure for table selection
|
|
35
|
-
*/
|
|
36
|
-
export interface ModelToDomTableSelection {
|
|
37
|
-
/**
|
|
38
|
-
* Table where selection is located
|
|
39
|
-
*/
|
|
40
|
-
table: HTMLTableElement;
|
|
41
|
-
/**
|
|
42
|
-
* Coordinate of first selected cell
|
|
43
|
-
*/
|
|
44
|
-
firstCell: Coordinates;
|
|
45
|
-
/**
|
|
46
|
-
* Coordinate of last selected cell
|
|
47
|
-
*/
|
|
48
|
-
lastCell: Coordinates;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Represents an image selection for Content Model to DOM conversion
|
|
52
|
-
*/
|
|
53
|
-
export interface ModelToDomImageSelection {
|
|
54
|
-
/**
|
|
55
|
-
* Selected image
|
|
56
|
-
*/
|
|
57
|
-
image: HTMLImageElement;
|
|
58
|
-
}
|
|
59
33
|
/**
|
|
60
34
|
* Represents selection info used by Content Model to DOM conversion
|
|
61
35
|
*/
|
|
@@ -67,9 +41,9 @@ export interface ModelToDomSelectionContext {
|
|
|
67
41
|
/**
|
|
68
42
|
* Table selection info
|
|
69
43
|
*/
|
|
70
|
-
tableSelection?:
|
|
44
|
+
tableSelection?: TableSelection;
|
|
71
45
|
/**
|
|
72
46
|
* Image selection info
|
|
73
47
|
*/
|
|
74
|
-
imageSelection?:
|
|
48
|
+
imageSelection?: ImageSelection;
|
|
75
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelToDomSelectionContext.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/ModelToDomSelectionContext.ts"],"names":[],"mappings":"","sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"ModelToDomSelectionContext.js","sourceRoot":"","sources":["../../../../packages-content-model/roosterjs-content-model-types/lib/context/ModelToDomSelectionContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ImageSelection, TableSelection } from '../selection/DOMSelection';\n\n/**\n * Represents internal data structure for a selection position, combined by block and segment node\n */\nexport interface ModelToDomBlockAndSegmentNode {\n /**\n * The block element of the selection. When segment is null, it represents the start position of this block element,\n * otherwise block element will be ignored and we can always retrieve position from segment node\n */\n block: Node | null;\n\n /**\n * Segment node of this position. When provided, it represents the position right after this node\n */\n segment: Node | null;\n}\n\n/**\n * Represents internal data structure for regular selection\n */\nexport interface ModelToDomRegularSelection {\n /**\n * Start position of selection\n */\n start?: ModelToDomBlockAndSegmentNode;\n\n /**\n * End position of selection\n */\n end?: ModelToDomBlockAndSegmentNode;\n\n /**\n * Current navigating position\n */\n current: ModelToDomBlockAndSegmentNode;\n}\n\n/**\n * Represents selection info used by Content Model to DOM conversion\n */\nexport interface ModelToDomSelectionContext {\n /**\n * Regular selection info\n */\n regularSelection: ModelToDomRegularSelection;\n\n /**\n * Table selection info\n */\n tableSelection?: TableSelection;\n\n /**\n * Image selection info\n */\n imageSelection?: ImageSelection;\n}\n"]}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { ContentModelBlock } from '../block/ContentModelBlock';
|
|
2
|
-
import { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
|
|
3
|
-
import { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';
|
|
4
|
-
import { ContentModelBr } from '../segment/ContentModelBr';
|
|
5
|
-
import { ContentModelDecorator } from '../decorator/ContentModelDecorator';
|
|
6
|
-
import { ContentModelDivider } from '../block/ContentModelDivider';
|
|
7
|
-
import { ContentModelEntity } from '../entity/ContentModelEntity';
|
|
8
|
-
import { ContentModelFormatBase } from '../format/ContentModelFormatBase';
|
|
9
|
-
import { ContentModelFormatContainer } from '../group/ContentModelFormatContainer';
|
|
10
|
-
import { ContentModelFormatMap } from '../format/ContentModelFormatMap';
|
|
11
|
-
import { ContentModelGeneralBlock } from '../group/ContentModelGeneralBlock';
|
|
12
|
-
import { ContentModelGeneralSegment } from '../segment/ContentModelGeneralSegment';
|
|
13
|
-
import { ContentModelImage } from '../segment/ContentModelImage';
|
|
14
|
-
import { ContentModelListItem } from '../group/ContentModelListItem';
|
|
15
|
-
import { ContentModelParagraph } from '../block/ContentModelParagraph';
|
|
16
|
-
import { ContentModelSegment } from '../segment/ContentModelSegment';
|
|
17
|
-
import { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
|
|
18
|
-
import { ContentModelTable } from '../block/ContentModelTable';
|
|
19
|
-
import { ContentModelTableRow } from '../block/ContentModelTableRow';
|
|
20
|
-
import { ContentModelText } from '../segment/ContentModelText';
|
|
21
|
-
import { FormatHandlerTypeMap, FormatKey } from '../format/FormatHandlerTypeMap';
|
|
22
|
-
import { ModelToDomContext } from './ModelToDomContext';
|
|
23
|
-
import { ContentModelHandler, ContentModelBlockHandler, ContentModelSegmentHandler } from './ContentModelHandler';
|
|
1
|
+
import type { ContentModelBlock } from '../block/ContentModelBlock';
|
|
2
|
+
import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
|
|
3
|
+
import type { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';
|
|
4
|
+
import type { ContentModelBr } from '../segment/ContentModelBr';
|
|
5
|
+
import type { ContentModelDecorator } from '../decorator/ContentModelDecorator';
|
|
6
|
+
import type { ContentModelDivider } from '../block/ContentModelDivider';
|
|
7
|
+
import type { ContentModelEntity } from '../entity/ContentModelEntity';
|
|
8
|
+
import type { ContentModelFormatBase } from '../format/ContentModelFormatBase';
|
|
9
|
+
import type { ContentModelFormatContainer } from '../group/ContentModelFormatContainer';
|
|
10
|
+
import type { ContentModelFormatMap } from '../format/ContentModelFormatMap';
|
|
11
|
+
import type { ContentModelGeneralBlock } from '../group/ContentModelGeneralBlock';
|
|
12
|
+
import type { ContentModelGeneralSegment } from '../segment/ContentModelGeneralSegment';
|
|
13
|
+
import type { ContentModelImage } from '../segment/ContentModelImage';
|
|
14
|
+
import type { ContentModelListItem } from '../group/ContentModelListItem';
|
|
15
|
+
import type { ContentModelParagraph } from '../block/ContentModelParagraph';
|
|
16
|
+
import type { ContentModelSegment } from '../segment/ContentModelSegment';
|
|
17
|
+
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
|
|
18
|
+
import type { ContentModelTable } from '../block/ContentModelTable';
|
|
19
|
+
import type { ContentModelTableRow } from '../block/ContentModelTableRow';
|
|
20
|
+
import type { ContentModelText } from '../segment/ContentModelText';
|
|
21
|
+
import type { FormatHandlerTypeMap, FormatKey } from '../format/FormatHandlerTypeMap';
|
|
22
|
+
import type { ModelToDomContext } from './ModelToDomContext';
|
|
23
|
+
import type { ContentModelHandler, ContentModelBlockHandler, ContentModelSegmentHandler } from './ContentModelHandler';
|
|
24
24
|
/**
|
|
25
25
|
* Default implicit format map from tag name (lower case) to segment format
|
|
26
26
|
*/
|