diff --git a/packages/model/src/CaretManagement/Caret/Caret.ts b/packages/model/src/CaretManagement/Caret/Caret.ts index e4f04dfe..6935dad1 100644 --- a/packages/model/src/CaretManagement/Caret/Caret.ts +++ b/packages/model/src/CaretManagement/Caret/Caret.ts @@ -1,7 +1,7 @@ -import type { Index } from '../../utils/index.js'; +import type { Index } from '../../EventBus/index.js'; import type { CaretSerialized, CaretEvent } from './types.js'; import { CaretUpdatedEvent } from './types.js'; -import { EventBus } from '../../utils/index.js'; +import { EventBus } from '../../EventBus/index.js'; /** * Interface to extend EventTarget methods diff --git a/packages/model/src/CaretManagement/CaretManager.ts b/packages/model/src/CaretManagement/CaretManager.ts index 243d6766..58d1338a 100644 --- a/packages/model/src/CaretManagement/CaretManager.ts +++ b/packages/model/src/CaretManagement/CaretManager.ts @@ -1,10 +1,10 @@ -import type { Index } from '../utils/index.js'; +import type { Index } from '../EventBus/index.js'; import { CaretManagerCaretAddedEvent, CaretManagerCaretRemovedEvent, CaretManagerCaretUpdatedEvent, EventBus -} from '../utils/index.js'; +} from '../EventBus/index.js'; import { Caret } from './Caret/Caret.js'; import { CaretEvent } from './Caret/types.js'; diff --git a/packages/model/src/EditorJSModel.ts b/packages/model/src/EditorJSModel.ts index bbe3cc8f..26cf88a9 100644 --- a/packages/model/src/EditorJSModel.ts +++ b/packages/model/src/EditorJSModel.ts @@ -1,8 +1,8 @@ // Stryker disable all -- we don't count mutation test coverage fot this file as it just proxy calls to EditorDocument /* istanbul ignore file -- we don't count test coverage fot this file as it just proxy calls to EditorDocument */ import { EditorDocument } from './entities/index.js'; -import { EventBus, EventType } from './utils/index.js'; -import type { ModelEvents, CaretManagerCaretUpdatedEvent, CaretManagerEvents } from './utils/index.js'; +import { EventBus, EventType } from './EventBus/index.js'; +import type { ModelEvents, CaretManagerCaretUpdatedEvent, CaretManagerEvents } from './EventBus/index.js'; import { BaseDocumentEvent } from './EventBus/events/BaseEvent.js'; import type { Constructor } from './utils/types.js'; import { CaretManager } from './CaretManagement/index.js'; diff --git a/packages/model/src/index.ts b/packages/model/src/index.ts index f69af74e..437702c4 100644 --- a/packages/model/src/index.ts +++ b/packages/model/src/index.ts @@ -1,5 +1,4 @@ export * from './entities/index.js'; -export * from './utils/index.js'; +export * from './EventBus/index.js'; export * from './EditorJSModel.js'; -export { EventType } from './EventBus/types/EventType.js'; export * from './CaretManagement/index.js';