mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 09:52:36 +02:00
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:
parent
531ab06f63
commit
494d6e4b9b
|
@ -7,6 +7,7 @@
|
||||||
- `Fix` — Layout did not shrink when a large document cleared in Chrome
|
- `Fix` — Layout did not shrink when a large document cleared in Chrome
|
||||||
- `Fix` — Multiple Tooltip elements creation fixed
|
- `Fix` — Multiple Tooltip elements creation fixed
|
||||||
- `Fix` — When the focusing Block is out of the viewport, the page will be scrolled.
|
- `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` — `blocks.render()` won't lead the `onChange` call in Safari
|
||||||
- `Fix` — Editor wrapper element growing on the Inline Toolbar close
|
- `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
|
- `Fix` — Fix errors thrown by clicks on a document when the editor is being initialized
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { BlockAPI } from '../../api';
|
import type { BlockAPI } from '../../api';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Details of CustomEvent fired on block mutation
|
* Details of CustomEvent fired on block mutation
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { BlockMutationEventDetail } from './Base';
|
import type { BlockMutationEventDetail } from './Base';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Type name of CustomEvent related to block added event
|
* Type name of CustomEvent related to block added event
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { BlockMutationEventDetail } from './Base';
|
import type { BlockMutationEventDetail } from './Base';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Type name of CustomEvent related to block changed event
|
* Type name of CustomEvent related to block changed event
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { BlockMutationEventDetail } from './Base';
|
import type { BlockMutationEventDetail } from './Base';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Type name of CustomEvent related to block moved event
|
* Type name of CustomEvent related to block moved event
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { BlockMutationEventDetail } from './Base';
|
import type { BlockMutationEventDetail } from './Base';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Type name of CustomEvent related to block removed event
|
* Type name of CustomEvent related to block removed event
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { BlockAddedEvent, BlockAddedMutationType } from './BlockAdded';
|
import { type BlockAddedEvent, BlockAddedMutationType } from './BlockAdded';
|
||||||
import { BlockChangedEvent, BlockChangedMutationType } from './BlockChanged';
|
import { type BlockChangedEvent, BlockChangedMutationType } from './BlockChanged';
|
||||||
import { BlockMovedEvent, BlockMovedMutationType } from './BlockMoved';
|
import { type BlockMovedEvent, BlockMovedMutationType } from './BlockMoved';
|
||||||
import { BlockRemovedEvent, BlockRemovedMutationType } from './BlockRemoved';
|
import { type BlockRemovedEvent, BlockRemovedMutationType } from './BlockRemoved';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Map for Custom Events related to block mutation types
|
* Map for Custom Events related to block mutation types
|
||||||
|
|
Loading…
Reference in a new issue