editor.js/src/components/modules
Peter Savchenko 922dfd8741
chore(api): blocks.update(id, data) method improved (#2443)
* add custom Chai assertion "be.calledWithBatchedEvents" for testing onchange

* chore(api): blocks.update(id, data) method improved

- `blocks.update(id, data)` now can accept partial data object — it will update only passed properties, others will remain the same.
- `blocks.update(id, data)` now will trigger onChange with only `block-change` event.
- `blocks.update(id, data)` will return a promise with BlockAPI object of changed block.

* fix tests

* Update blocks.cy.ts
2023-08-19 07:53:42 +03:00
..
api chore(api): blocks.update(id, data) method improved (#2443) 2023-08-19 07:53:42 +03:00
toolbar chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
blockEvents.ts chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
blockManager.ts chore(api): blocks.update(id, data) method improved (#2443) 2023-08-19 07:53:42 +03:00
blockSelection.ts chore(linting): eslint updated, code linted (#2174) 2022-11-25 21:56:50 +04:00
caret.ts chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
crossBlockSelection.ts chore(linting): eslint updated, code linted (#2174) 2022-11-25 21:56:50 +04:00
dragNDrop.ts Fix BlockManager.setCurrentBlockByChildNode() with multiple Editor.js instances 2021-02-17 18:01:28 +03:00
index.ts Use Vite builder (#2300) 2023-04-13 22:25:29 +03:00
modificationsObserver.ts chore(onChange): bugfix, batching, improvements of ModificationsObserver (#2349) 2023-05-12 20:50:48 +03:00
paste.ts chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
readonly.ts chore(linting): eslint updated, code linted (#2174) 2022-11-25 21:56:50 +04:00
rectangleSelection.ts chore(linting): eslint updated, code linted (#2174) 2022-11-25 21:56:50 +04:00
renderer.ts chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
saver.ts chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
tools.ts Use Vite builder (#2300) 2023-04-13 22:25:29 +03:00
ui.ts chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00