Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Content Model type files into contentModel folder #2602

Merged
merged 3 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { ContentModelDivider } from './ContentModelDivider';
import type { ContentModelEntity } from '../entity/ContentModelEntity';
import type { ContentModelFormatContainer } from '../group/ContentModelFormatContainer';
import type { ContentModelGeneralBlock } from '../group/ContentModelGeneralBlock';
import type { ContentModelListItem } from '../group/ContentModelListItem';
import type { ContentModelFormatContainer } from '../blockGroup/ContentModelFormatContainer';
import type { ContentModelGeneralBlock } from '../blockGroup/ContentModelGeneralBlock';
import type { ContentModelListItem } from '../blockGroup/ContentModelListItem';
import type { ContentModelParagraph } from './ContentModelParagraph';
import type { ContentModelTable } from './ContentModelTable';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
import type { ContentModelBlockType } from '../enum/BlockType';
import type { ContentModelBlockType } from './BlockType';
import type { ContentModelWithFormat } from '../format/ContentModelWithFormat';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ContentModelBlockBase } from './ContentModelBlockBase';
import type { ContentModelBlockWithCache } from './ContentModelBlockWithCache';
import type { ContentModelBlockWithCache } from '../common/ContentModelBlockWithCache';
import type { ContentModelDividerFormat } from '../format/ContentModelDividerFormat';
import type { Selectable } from '../selection/Selectable';
import type { Selectable } from '../common/Selectable';

/**
* Content Model of horizontal divider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ContentModelBlockBase } from './ContentModelBlockBase';
import type { ContentModelBlockWithCache } from './ContentModelBlockWithCache';
import type { ContentModelBlockWithCache } from '../common/ContentModelBlockWithCache';
import type { ContentModelParagraphDecorator } from '../decorator/ContentModelParagraphDecorator';
import type { ContentModelSegment } from '../segment/ContentModelSegment';
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ContentModelBlockBase } from './ContentModelBlockBase';
import type { ContentModelBlockWithCache } from './ContentModelBlockWithCache';
import type { ContentModelBlockWithCache } from '../common/ContentModelBlockWithCache';
import type { ContentModelTableFormat } from '../format/ContentModelTableFormat';
import type { ContentModelTableRow } from './ContentModelTableRow';
import type { ContentModelWithDataset } from '../format/ContentModelWithDataset';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
import type { ContentModelBlockWithCache } from './ContentModelBlockWithCache';
import type { ContentModelTableCell } from '../group/ContentModelTableCell';
import type { ContentModelBlockWithCache } from '../common/ContentModelBlockWithCache';
import type { ContentModelTableCell } from '../blockGroup/ContentModelTableCell';
import type { ContentModelWithFormat } from '../format/ContentModelWithFormat';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ContentModelBlock } from '../block/ContentModelBlock';
import type { ContentModelBlockGroupType } from '../enum/BlockGroupType';
import type { ContentModelBlockGroupType } from './BlockGroupType';

/**
* Base type of Content Model Block Group
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ContentModelBlockBase } from '../block/ContentModelBlockBase';
import type { ContentModelBlockGroupBase } from './ContentModelBlockGroupBase';
import type { ContentModelBlockWithCache } from '../block/ContentModelBlockWithCache';
import type { ContentModelBlockWithCache } from '../common/ContentModelBlockWithCache';
import type { ContentModelFormatContainerFormat } from '../format/ContentModelFormatContainerFormat';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { ContentModelBlockBase } from '../block/ContentModelBlockBase';
import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
import type { ContentModelBlockGroupBase } from './ContentModelBlockGroupBase';
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
import type { Selectable } from '../selection/Selectable';
import type { Selectable } from '../common/Selectable';

/**
* Content Model for general Block element
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { TableCellMetadataFormat } from '../format/metadata/TableCellMetadataFormat';
import type { ContentModelBlockGroupBase } from './ContentModelBlockGroupBase';
import type { ContentModelBlockWithCache } from '../block/ContentModelBlockWithCache';
import type { ContentModelBlockWithCache } from '../common/ContentModelBlockWithCache';
import type { ContentModelTableCellFormat } from '../format/ContentModelTableCellFormat';
import type { ContentModelWithDataset } from '../format/ContentModelWithDataset';
import type { ContentModelWithFormat } from '../format/ContentModelWithFormat';
import type { Selectable } from '../selection/Selectable';
import type { Selectable } from '../common/Selectable';

/**
* Content Model of Table Cell
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
import type { ContentModelGeneralBlock } from '../group/ContentModelGeneralBlock';
import type { ContentModelGeneralBlock } from '../blockGroup/ContentModelGeneralBlock';
import type { ContentModelSegmentBase } from './ContentModelSegmentBase';
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { ContentModelCode } from '../decorator/ContentModelCode';
import type { ContentModelLink } from '../decorator/ContentModelLink';
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
import type { ContentModelSegmentType } from '../enum/SegmentType';
import type { ContentModelSegmentType } from './SegmentType';
import type { ContentModelWithFormat } from '../format/ContentModelWithFormat';
import type { Selectable } from '../selection/Selectable';
import type { Selectable } from '../common/Selectable';

/**
* Base type of Content Model Segment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ContentModelBlock } from '../block/ContentModelBlock';
import type { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';
import type { ContentModelDecorator } from '../decorator/ContentModelDecorator';
import type { ContentModelSegment } from '../segment/ContentModelSegment';
import type { ContentModelBlock } from '../contentModel/block/ContentModelBlock';
import type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';
import type { ContentModelDecorator } from '../contentModel/decorator/ContentModelDecorator';
import type { ContentModelSegment } from '../contentModel/segment/ContentModelSegment';
import type { ModelToDomContext } from './ModelToDomContext';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { CacheSelection } from '../pluginState/CachePluginState';
import type { ContentModelDocument } from '../group/ContentModelDocument';
import type { ContentModelParagraph } from '../block/ContentModelParagraph';
import type { ContentModelSegment } from '../segment/ContentModelSegment';
import type { ContentModelTable } from '../block/ContentModelTable';
import type { ContentModelDocument } from '../contentModel/blockGroup/ContentModelDocument';
import type { ContentModelParagraph } from '../contentModel/block/ContentModelParagraph';
import type { ContentModelSegment } from '../contentModel/segment/ContentModelSegment';
import type { ContentModelTable } from '../contentModel/block/ContentModelTable';
import type { DOMSelection } from '../selection/DOMSelection';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
import type { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';
import type { ContentModelCode } from '../decorator/ContentModelCode';
import type { ContentModelLink } from '../decorator/ContentModelLink';
import type { ContentModelListLevel } from '../decorator/ContentModelListLevel';
import type { ContentModelParagraphDecorator } from '../decorator/ContentModelParagraphDecorator';
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';
import type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';
import type { ContentModelCode } from '../contentModel/decorator/ContentModelCode';
import type { ContentModelLink } from '../contentModel/decorator/ContentModelLink';
import type { ContentModelListLevel } from '../contentModel/decorator/ContentModelListLevel';
import type { ContentModelParagraphDecorator } from '../contentModel/decorator/ContentModelParagraphDecorator';
import type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';

/**
* Represents the context object used when do DOM to Content Model conversion and processing a List
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
import type { ContentModelFormatBase } from '../format/ContentModelFormatBase';
import type { ContentModelFormatMap } from '../format/ContentModelFormatMap';
import type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';
import type { ContentModelFormatBase } from '../contentModel/format/ContentModelFormatBase';
import type { ContentModelFormatMap } from '../contentModel/format/ContentModelFormatMap';
import type { DomToModelContext } from './DomToModelContext';
import type { ElementProcessor } from './ElementProcessor';
import type { FormatHandlerTypeMap, FormatKey } from '../format/FormatHandlerTypeMap';
import type { FormatHandlerTypeMap, FormatKey } from '../contentModel/format/FormatHandlerTypeMap';

/**
* A type of Default style map, from tag name string (in upper case) to a static style object
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { DarkColorHandler } from './DarkColorHandler';
import type { DomIndexer } from './DomIndexer';
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
import type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';
import type { PendingFormat } from '../pluginState/FormatPluginState';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';
import type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';
import type { DomToModelContext } from './DomToModelContext';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
import type { ContentModelListLevel } from '../decorator/ContentModelListLevel';
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';
import type { ContentModelListLevel } from '../contentModel/decorator/ContentModelListLevel';
import type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';

/**
* Represents a list stack item used by Content Model to DOM conversion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
import type { Definition } from '../metadata/Definition';
import type { ContentModelBlock } from '../block/ContentModelBlock';
import type { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';
import type { ContentModelBlockGroup } from '../group/ContentModelBlockGroup';
import type { ContentModelBr } from '../segment/ContentModelBr';
import type { ContentModelDecorator } from '../decorator/ContentModelDecorator';
import type { ContentModelDivider } from '../block/ContentModelDivider';
import type { ContentModelEntity } from '../entity/ContentModelEntity';
import type { ContentModelFormatBase } from '../format/ContentModelFormatBase';
import type { ContentModelFormatContainer } from '../group/ContentModelFormatContainer';
import type { ContentModelFormatMap } from '../format/ContentModelFormatMap';
import type { ContentModelGeneralBlock } from '../group/ContentModelGeneralBlock';
import type { ContentModelGeneralSegment } from '../segment/ContentModelGeneralSegment';
import type { ContentModelImage } from '../segment/ContentModelImage';
import type { ContentModelListItem } from '../group/ContentModelListItem';
import type { ContentModelListItemFormat } from '../format/ContentModelListItemFormat';
import type { ContentModelListItemLevelFormat } from '../format/ContentModelListItemLevelFormat';
import type { ContentModelParagraph } from '../block/ContentModelParagraph';
import type { ContentModelSegment } from '../segment/ContentModelSegment';
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
import type { ContentModelTable } from '../block/ContentModelTable';
import type { ContentModelTableRow } from '../block/ContentModelTableRow';
import type { ContentModelText } from '../segment/ContentModelText';
import type { FormatHandlerTypeMap, FormatKey } from '../format/FormatHandlerTypeMap';
import type { ContentModelBlock } from '../contentModel/block/ContentModelBlock';
import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';
import type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';
import type { ContentModelBr } from '../contentModel/segment/ContentModelBr';
import type { ContentModelDecorator } from '../contentModel/decorator/ContentModelDecorator';
import type { ContentModelDivider } from '../contentModel/block/ContentModelDivider';
import type { ContentModelEntity } from '../contentModel/entity/ContentModelEntity';
import type { ContentModelFormatBase } from '../contentModel/format/ContentModelFormatBase';
import type { ContentModelFormatContainer } from '../contentModel/blockGroup/ContentModelFormatContainer';
import type { ContentModelFormatMap } from '../contentModel/format/ContentModelFormatMap';
import type { ContentModelGeneralBlock } from '../contentModel/blockGroup/ContentModelGeneralBlock';
import type { ContentModelGeneralSegment } from '../contentModel/segment/ContentModelGeneralSegment';
import type { ContentModelImage } from '../contentModel/segment/ContentModelImage';
import type { ContentModelListItem } from '../contentModel/blockGroup/ContentModelListItem';
import type { ContentModelListItemFormat } from '../contentModel/format/ContentModelListItemFormat';
import type { ContentModelListItemLevelFormat } from '../contentModel/format/ContentModelListItemLevelFormat';
import type { ContentModelParagraph } from '../contentModel/block/ContentModelParagraph';
import type { ContentModelSegment } from '../contentModel/segment/ContentModelSegment';
import type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';
import type { ContentModelTable } from '../contentModel/block/ContentModelTable';
import type { ContentModelTableRow } from '../contentModel/block/ContentModelTableRow';
import type { ContentModelText } from '../contentModel/segment/ContentModelText';
import type { FormatHandlerTypeMap, FormatKey } from '../contentModel/format/FormatHandlerTypeMap';
import type { ModelToDomContext } from './ModelToDomContext';
import type { ListMetadataFormat } from '../format/metadata/ListMetadataFormat';
import type { ListMetadataFormat } from '../contentModel/format/metadata/ListMetadataFormat';
import type {
ContentModelHandler,
ContentModelBlockHandler,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { DOMEventRecord } from '../parameter/DOMEventRecord';
import type { Snapshot } from '../parameter/Snapshot';
import type { EntityState } from '../parameter/FormatContentModelContext';
import type { DarkColorHandler } from '../context/DarkColorHandler';
import type { ContentModelDocument } from '../group/ContentModelDocument';
import type { ContentModelDocument } from '../contentModel/blockGroup/ContentModelDocument';
import type { DOMSelection } from '../selection/DOMSelection';
import type { DomToModelOptionForCreateModel } from '../context/DomToModelOption';
import type { EditorContext } from '../context/EditorContext';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import type { KnownAnnounceStrings } from '../parameter/AnnounceData';
import type { PasteType } from '../enum/PasteType';
import type { Colors, ColorTransformFunction } from '../context/DarkColorHandler';
import type { EditorPlugin } from './EditorPlugin';
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
import type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';
import type { CoreApiMap } from './EditorCore';
import type { DomToModelOption } from '../context/DomToModelOption';
import type { ModelToDomOption } from '../context/ModelToDomOption';
import type { ContentModelDocument } from '../group/ContentModelDocument';
import type { ContentModelDocument } from '../contentModel/blockGroup/ContentModelDocument';
import type { Snapshots } from '../parameter/Snapshot';
import type { TrustedHTMLHandler } from '../parameter/TrustedHTMLHandler';

Expand Down
4 changes: 2 additions & 2 deletions packages/roosterjs-content-model-types/lib/editor/IEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import type { PluginEventType } from '../event/PluginEventType';
import type { DOMEventRecord } from '../parameter/DOMEventRecord';
import type { SnapshotsManager } from '../parameter/SnapshotsManager';
import type { Snapshot } from '../parameter/Snapshot';
import type { ContentModelDocument } from '../group/ContentModelDocument';
import type { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
import type { ContentModelDocument } from '../contentModel/blockGroup/ContentModelDocument';
import type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';
import type { DOMSelection } from '../selection/DOMSelection';
import type { EditorEnvironment } from '../parameter/EditorEnvironment';
import type {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { DomToModelOptionForSanitizing } from '../context/DomToModelOption'
import type { PasteType } from '../enum/PasteType';
import type { ClipboardData } from '../parameter/ClipboardData';
import type { BasePluginEvent } from './BasePluginEvent';
import type { ContentModelDocument } from '../group/ContentModelDocument';
import type { ContentModelDocument } from '../contentModel/blockGroup/ContentModelDocument';
import type { InsertPoint } from '../selection/InsertPoint';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { AnnounceData } from '../parameter/AnnounceData';
import type { BasePluginEvent } from './BasePluginEvent';
import type { EntityState } from '../parameter/FormatContentModelContext';
import type { ContentModelEntity } from '../entity/ContentModelEntity';
import type { ContentModelEntity } from '../contentModel/entity/ContentModelEntity';
import type { EntityRemovalOperation } from '../enum/EntityOperation';
import type { ContentModelDocument } from '../group/ContentModelDocument';
import type { ContentModelDocument } from '../contentModel/blockGroup/ContentModelDocument';
import type { DOMSelection } from '../selection/DOMSelection';

/**
Expand Down
Loading
Loading