Skip to content

Commit

Permalink
Fix EventBus imports
Browse files Browse the repository at this point in the history
  • Loading branch information
gohabereg committed Jan 18, 2024
1 parent 312398c commit ce85ece
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/model/src/CaretManagement/Caret/Caret.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/model/src/CaretManagement/CaretManager.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
4 changes: 2 additions & 2 deletions packages/model/src/EditorJSModel.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 1 addition & 2 deletions packages/model/src/index.ts
Original file line number Diff line number Diff line change
@@ -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';

0 comments on commit ce85ece

Please sign in to comment.