Skip to content

Commit

Permalink
Fix import in types/events/block/index.ts (#2739)
Browse files Browse the repository at this point in the history
* Fix import in types/events/block/index.ts 

Fix wrong placement of the keyword type in the import lines of the types/events/block/index.ts introduced in PR-2491 and released in V2.29.0 preventing compilation.

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Co-authored-by: Peter Savchenko <[email protected]>
  • Loading branch information
PascalPiche and neSpecc authored Jul 6, 2024
1 parent eb97c49 commit 0e8cc0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
- `Improvement` — Placeholders will stay visible on inputs focus.
- `New` — Editor.js now supports contenteditable placeholders out of the box. Just add `data-placeholder` or `data-placeholder-active` attribute to make it work. The first one will work like native placeholder while the second one will show placeholder only when block is current.
- `Improvement` — Now Paragraph placeholder will be shown for the current paragraph, not the only first one.
- `Fix` — The problem caused by missed "import type" in block mutation event types resolved

### 2.29.1

Expand Down
8 changes: 4 additions & 4 deletions types/events/block/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type BlockAddedEvent, BlockAddedMutationType } from './BlockAdded';
import { type BlockChangedEvent, BlockChangedMutationType } from './BlockChanged';
import { type BlockMovedEvent, BlockMovedMutationType } from './BlockMoved';
import { type BlockRemovedEvent, BlockRemovedMutationType } from './BlockRemoved';
import type { BlockAddedEvent, BlockAddedMutationType } from './BlockAdded';
import type { BlockChangedEvent, BlockChangedMutationType } from './BlockChanged';
import type { BlockMovedEvent, BlockMovedMutationType } from './BlockMoved';
import type { BlockRemovedEvent, BlockRemovedMutationType } from './BlockRemoved';

/**
* Map for Custom Events related to block mutation types
Expand Down

0 comments on commit 0e8cc0d

Please sign in to comment.