Skip to content

Commit 8bb192f

Browse files
Version Packages
1 parent 3ba89c8 commit 8bb192f

35 files changed

Lines changed: 146 additions & 77 deletions

‎.changeset/catch-all-registration.md‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

‎.changeset/compare-points-traversal.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/disable-typographer.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/fix-mark-state-in-containers.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/inverse-data-set-unset.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/path-contains.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/range-intersects.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/skip-no-op-history-capture.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/table-alignment.md‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎packages/editor/CHANGELOG.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
# Changelog
22

3+
## 7.2.0
4+
5+
### Minor Changes
6+
7+
- [#2738](https://github.com/portabletext/editor/pull/2738) [`e0ee0f6`](https://github.com/portabletext/editor/commit/e0ee0f68ae8936bca7a158c2828c9b17ba468ec2) Thanks [@christianhg](https://github.com/christianhg)! - feat: catch-all node registration via `'*'` for `defineBlockObject`, `defineInlineObject`, `defineTextBlock`, and `defineSpan`
8+
9+
Pass `type: '*'` to register a render callback that handles any `_type` that has no specific registration. A single `defineBlockObject({type: '*', render})` plays the role of the legacy `renderBlock` callback; `defineTextBlock({type: '*', render})` plays the same role for text blocks; `defineInlineObject({type: '*', render})` and `defineSpan({type: '*', render})` mirror `renderChild`.
10+
11+
Resolution order (most specific wins):
12+
1. Positional registration for the exact `_type` (inside a container's `of`)
13+
2. Positional `'*'` (inside a container's `of`)
14+
3. Global registration for the exact `_type`
15+
4. Global `'*'`
16+
5. Engine default
17+
18+
`defineContainer` does not accept `'*'` — a container is a structural commitment that the editor needs to know about up front. Trying to do so is a compile-time error.
19+
20+
- [#2733](https://github.com/portabletext/editor/pull/2733) [`5c183b3`](https://github.com/portabletext/editor/commit/5c183b39b1482d0a83b0b9f98ebe99186560d511) Thanks [@christianhg](https://github.com/christianhg)! - feat: add `comparePoints` traversal util
21+
22+
- [#2731](https://github.com/portabletext/editor/pull/2731) [`ae60599`](https://github.com/portabletext/editor/commit/ae60599a6eb8514af2c80240f029688dc08bcfc0) Thanks [@christianhg](https://github.com/christianhg)! - feat: add `pathContains` traversal util
23+
24+
- [#2733](https://github.com/portabletext/editor/pull/2733) [`6540641`](https://github.com/portabletext/editor/commit/65406416e151044913784a11f7a0567e82be48fe) Thanks [@christianhg](https://github.com/christianhg)! - feat: add `rangeIntersects` traversal util
25+
26+
### Patch Changes
27+
28+
- [#2727](https://github.com/portabletext/editor/pull/2727) [`3229002`](https://github.com/portabletext/editor/commit/32290029c7e5eed4b8c96833b21181937efcf2a4) Thanks [@christianhg](https://github.com/christianhg)! - fix: `getMarkState` returns marks for selections inside containers
29+
30+
- [#2735](https://github.com/portabletext/editor/pull/2735) [`0fb1f28`](https://github.com/portabletext/editor/commit/0fb1f285fdd54ad9e67a9411829dfa2da283390c) Thanks [@christianhg](https://github.com/christianhg)! - fix: capture inverse data for locally-applied `set` and `unset` operations so they can be undone
31+
32+
- [#2739](https://github.com/portabletext/editor/pull/2739) [`492fb7d`](https://github.com/portabletext/editor/commit/492fb7dd390409d4267833ce5f86356a59e38c90) Thanks [@christianhg](https://github.com/christianhg)! - fix: skip no-op operations from history capture
33+
34+
- Updated dependencies [[`409a970`](https://github.com/portabletext/editor/commit/409a97041a37bc0214f3475554b834a16d92866a), [`7b961d4`](https://github.com/portabletext/editor/commit/7b961d40cda88ea3a65380ae6dd18562503f32a4)]:
35+
- @portabletext/markdown@1.4.0
36+
337
## 7.1.1
438

539
### Patch Changes

0 commit comments

Comments
 (0)