fix: use type imports for block events (#2491)

* fix: use type imports for block events

* add changelog entry

---------

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
ferntheplant 2023-12-05 11:26:10 -05:00 committed by GitHub
parent 531ab06f63
commit 494d6e4b9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 9 deletions

View file

@ -7,6 +7,7 @@
- `Fix` — Layout did not shrink when a large document cleared in Chrome
- `Fix` — Multiple Tooltip elements creation fixed
- `Fix` — When the focusing Block is out of the viewport, the page will be scrolled.
- `Fix` - Compiler error "This import is never used as a value and must use 'import type'..." fixed
- `Fix``blocks.render()` won't lead the `onChange` call in Safari
- `Fix` — Editor wrapper element growing on the Inline Toolbar close
- `Fix` — Fix errors thrown by clicks on a document when the editor is being initialized

View file

@ -1,4 +1,4 @@
import { BlockAPI } from '../../api';
import type { BlockAPI } from '../../api';
/**
* Details of CustomEvent fired on block mutation

View file

@ -1,4 +1,4 @@
import { BlockMutationEventDetail } from './Base';
import type { BlockMutationEventDetail } from './Base';
/**
* Type name of CustomEvent related to block added event

View file

@ -1,4 +1,4 @@
import { BlockMutationEventDetail } from './Base';
import type { BlockMutationEventDetail } from './Base';
/**
* Type name of CustomEvent related to block changed event

View file

@ -1,4 +1,4 @@
import { BlockMutationEventDetail } from './Base';
import type { BlockMutationEventDetail } from './Base';
/**
* Type name of CustomEvent related to block moved event

View file

@ -1,4 +1,4 @@
import { BlockMutationEventDetail } from './Base';
import type { BlockMutationEventDetail } from './Base';
/**
* Type name of CustomEvent related to block removed event

View file

@ -1,7 +1,7 @@
import { BlockAddedEvent, BlockAddedMutationType } from './BlockAdded';
import { BlockChangedEvent, BlockChangedMutationType } from './BlockChanged';
import { BlockMovedEvent, BlockMovedMutationType } from './BlockMoved';
import { 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