From 0e8cc0d5be502e25bc0237201d4b5b0a241b212d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Pich=C3=A9?= Date: Sat, 6 Jul 2024 13:10:32 -0400 Subject: [PATCH] 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 --- docs/CHANGELOG.md | 1 + types/events/block/index.ts | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 589741bc..2dea81e0 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -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 diff --git a/types/events/block/index.ts b/types/events/block/index.ts index 3c4c20c1..2851eba7 100644 --- a/types/events/block/index.ts +++ b/types/events/block/index.ts @@ -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