Compare commits

...

5 commits

Author SHA1 Message Date
Peter Savchenko 78803d6461 Update CHANGELOG.md 2024-04-29 22:20:05 +03:00
Peter Savchenko dfb95c39b3 lint 2024-04-29 22:13:59 +03:00
Peter Savchenko 7e16e2b288 lint 2024-04-29 22:12:05 +03:00
Peter Savchenko 833d802542 rm tsconfig change 2024-04-28 11:10:27 +03:00
Peter Savchenko 962848c454 Refactor test descriptions in caret.cy.ts 2024-04-28 11:09:08 +03:00
3 changed files with 7 additions and 9 deletions

View file

@ -2,19 +2,19 @@
### 2.30.0
`New` Block Tunes now supports nesting items
`New` Block Tunes now supports separator items
`New` "Convert to" control is now also available in Block Tunes
- `New` Block Tunes now supports nesting items
- `New` Block Tunes now supports separator items
- `New` "Convert to" control is now also available in Block Tunes
- `Improvement` — The ability to merge blocks of different types (if both tools provide the conversionConfig)
- `Fix``onChange` will be called when removing the entire text within a descendant element of a block.
- `Fix` - Unexpected new line on Enter press with selected block without caret
- `Fix` - Search input autofocus loosing after Block Tunes opening
- `Fix` - Block removing while Enter press on Block Tunes
`Fix` Unwanted scroll on first typing on iOS devices
- `Fix` Unwanted scroll on first typing on iOS devices
- `Fix` - Unwanted soft line break on Enter press after period and space (". |") on iOS devices
- `Fix` - Caret lost after block conversion on mobile devices.
- `Improvement` - The API `blocks.convert()` now returns the new block API
- `Improvement` - The API `caret.setToBlock(`)` now can accept either BlockAPI or block index or block id
- `Improvement` - The API `caret.setToBlock()` now can accept either BlockAPI or block index or block id
### 2.29.1

View file

@ -1,8 +1,7 @@
import EditorJS from '../../../../types';
import { BlockChangedMutationType } from '../../../../types/events/block/BlockChanged';
/**
* There will be described test cases of BlockAPI
* Test cases for Caret API
*/
describe('Caret API', () => {
const paragraphDataMock = {
@ -54,7 +53,7 @@ describe('Caret API', () => {
.should(($block) => {
expect($block[0].contains(range.startContainer)).to.be.true;
});
});
});
expect(returnedValue).to.be.true;
});

View file

@ -2,7 +2,6 @@
"compilerOptions" : {
"sourceMap": true,
"target": "es2017",
"strict": true,
"declaration": false,
"moduleResolution": "node", // This resolution strategy attempts to mimic the Node.js module resolution mechanism at runtime
"lib": ["dom", "es2017", "es2018", "es2019"],