editor.js/types
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
block-tunes Block tunes as a popover (#2091) 2022-11-03 20:52:33 +03:00
configs feat(shortcuts): convert block by tools shortcut (#2419) 2023-07-20 23:27:18 +03:00
data-formats chore(onChange): bugfix, batching, improvements of ModificationsObserver (#2349) 2023-05-12 20:50:48 +03:00
events/block chore(onChange): bugfix, batching, improvements of ModificationsObserver (#2349) 2023-05-12 20:50:48 +03:00
tools fix(tunes): Make label an alias for title in tunes menu item (#2198) 2022-12-14 23:46:36 +03:00
index.d.ts chore(api): blocks.update(id, data) method improved (#2443) 2023-08-19 07:53:42 +03:00