Fix import in types/events/block/index.ts (#2739)

* 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 <specc.dev@gmail.com>
This commit is contained in:
Pascal Piché 2024-07-06 13:10:32 -04:00 committed by GitHub
commit 0e8cc0d5be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -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