udecode/plate
Rich-text editor with AI and shadcn/ui
๐ Patch Changes
- Synced latest changes from `main` into the beta lane.
๐ Patch Changes
- Synced latest changes from `main` into the beta lane.
๐ Patch Changes
- Synced latest changes from `main` into the beta lane.
๐ Patch Changes
- Synced latest changes from `main` into the beta lane.
๐ Patch Changes
- Synced latest changes from `main` into the beta lane.
- Full changelog: [`v54.0.0-beta.0...v54.0.0-beta.1`](https://github.com/udecode/plate/compare/v54.0.0-beta.0...v54.0.0-beta.1)
๐ Patch Changes
- [#5026](https://github.com/udecode/plate/pull/5026) by [@zbeyens](https://github.com/zbeyens) โ Preserve streaming trailing whitespace with markdown hard breaks.
๐ Patch Changes
- [#5026](https://github.com/udecode/plate/pull/5026) by [@zbeyens](https://github.com/zbeyens) โ Serialize hard line breaks inside paragraph text nodes.
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @zbeyens
- Full changelog: [`v53.2.1...v53.2.2`](https://github.com/udecode/plate/compare/v53.2.1...v53.2.2)
๐ฆ `@platejs/browser`
- Published `@platejs/browser@54.0.0-beta.0`.
๐ฆ `@platejs/slate-dom`
- Published `@platejs/slate-dom@54.0.0-beta.0`.
๐ฆ `@platejs/slate-history`
- Published `@platejs/slate-history@54.0.0-beta.0`.
๐ฆ `@platejs/slate-hyperscript`
- Published `@platejs/slate-hyperscript@54.0.0-beta.0`.
๐ฆ `@platejs/slate-layout`
- Published `@platejs/slate-layout@54.0.0-beta.0`.
๐ Major Changes
- [#5031](https://github.com/udecode/plate/pull/5031) by [@felixfeng33](https://github.com/felixfeng33) โ Prepare v54 beta prerelease versioning for Slate.
๐ฆ `@platejs/slate-react`
- Published `@platejs/slate-react@54.0.0-beta.0`.
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @felixfeng33
- Full changelog: [`v53.2.2...v54.0.0-beta.0`](https://github.com/udecode/plate/compare/v53.2.2...v54.0.0-beta.0)
๐ Patch Changes
- [#5029](https://github.com/udecode/plate/pull/5029) by [@zbeyens](https://github.com/zbeyens) โ Add `node.isMetadataProp` and `editor.api.isElementStateEmpty` for element state checks.
๐ Patch Changes
- [#5029](https://github.com/udecode/plate/pull/5029) by [@zbeyens](https://github.com/zbeyens) โ Fix block placeholders on single empty list items.
๐ Patch Changes
- Updated `@platejs/core`, `@platejs/utils`.
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @zbeyens
- Full changelog: [`v53.2.0...v53.2.1`](https://github.com/udecode/plate/compare/v53.2.0...v53.2.1)
๐ Minor Changes
- [#5027](https://github.com/udecode/plate/pull/5027) by [@zbeyens](https://github.com/zbeyens) โ Add built-in IndexedDB provider support.
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @zbeyens
- Full changelog: [`v53.1.7...v53.2.0`](https://github.com/udecode/plate/compare/v53.1.7...v53.2.0)
๐ Patch Changes
- [#5024](https://github.com/udecode/plate/pull/5024) by [@zbeyens](https://github.com/zbeyens) โ Fix emoji category navigation showing empty category panes.
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @zbeyens
- Full changelog: [`v53.1.6...v53.1.7`](https://github.com/udecode/plate/compare/v53.1.6...v53.1.7)
๐ Patch Changes
- Updated `@platejs/selection`.
๐ Patch Changes
- [#5018](https://github.com/udecode/plate/pull/5018) by [@zbeyens](https://github.com/zbeyens) โ Fix block selection copy and cut in Safari by writing selected blocks to the native clipboard event.
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @zbeyens
- Full changelog: [`v53.1.5...v53.1.6`](https://github.com/udecode/plate/compare/v53.1.5...v53.1.6)
๐ Patch Changes
- Updated `@platejs/markdown`.
๐ Patch Changes
- [#5016](https://github.com/udecode/plate/pull/5016) by [@zbeyens](https://github.com/zbeyens) โ Fix markdown deserialization from crashing on malformed HTML-like MDX input.
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @zbeyens
- Full changelog: [`v53.1.4...v53.1.5`](https://github.com/udecode/plate/compare/v53.1.4...v53.1.5)
๐ Patch Changes
- [#5014](https://github.com/udecode/plate/pull/5014) by [@zbeyens](https://github.com/zbeyens) โ Fix media embed rendering to reject unsafe serialized iframe URLs
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @zbeyens
- Full changelog: [`v53.1.3...v53.1.4`](https://github.com/udecode/plate/compare/v53.1.3...v53.1.4)
๐ Patch Changes
- [#5011](https://github.com/udecode/plate/pull/5011) by [@zbeyens](https://github.com/zbeyens) โ Fix ordered paragraph lists continuing numbering from numbered headings.
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @zbeyens
- Full changelog: [`v53.1.2...v53.1.3`](https://github.com/udecode/plate/compare/v53.1.2...v53.1.3)
๐ Patch Changes
- [#5009](https://github.com/udecode/plate/pull/5009) by [@zbeyens](https://github.com/zbeyens) โ Fix complex leaf and text renderers triggering React hook-order warnings when marks change.
๐ Patch Changes
- Updated `@platejs/core`.
๐ Patch Changes
- Updated `@platejs/core`, `@platejs/utils`.
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @zbeyens
- Full changelog: [`v53.1.1...v53.1.2`](https://github.com/udecode/plate/compare/v53.1.1...v53.1.2)
๐ Patch Changes
- Updated `@platejs/markdown`.
๐ Patch Changes
- [#5007](https://github.com/udecode/plate/pull/5007) by [@kiranmagic7](https://github.com/kiranmagic7) โ Fix MDX fallback deserialization for GFM tables containing plain less-than text.
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @kiranmagic7
- Full changelog: [`v53.1.0...v53.1.1`](https://github.com/udecode/plate/compare/v53.1.0...v53.1.1)
๐ Patch Changes
- [#5002](https://github.com/udecode/plate/pull/5002) by [@kiranmagic7](https://github.com/kiranmagic7) โ Clear stale DnD drop indicators when dragging from a block into editor whitespace.
๐ Minor Changes
- [#4997](https://github.com/udecode/plate/pull/4997) by [@WilliamPeralta](https://github.com/WilliamPeralta) โ Forward two dropped options in `exportToDocx`:
- `pageSize` โ the html-to-docx engine accepts a page size, but `exportToDocx` only forwarded `margins` and `orientation`, so the document was always the default (US Letter). You can now pass e.g. `pageSize: { width: 11906, height: 16838 }` to export A4.
- `fontFamily` โ it was only applied to the serialized HTML (and only when an `EditorStaticComponent` was provided), so the document default font was never set and Word fell back to Times New Roman. It now also sets the document default font (`documentOptions.font`).
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @kiranmagic7, @WilliamPeralta
- Full changelog: [`v53.0.9...v53.1.0`](https://github.com/udecode/plate/compare/v53.0.9...v53.1.0)
๐ Patch Changes
- Updated `@platejs/table`.
๐ฆ `@platejs/csv`
- Published `@platejs/csv@53.0.9`.
๐ Patch Changes
- [#4994](https://github.com/udecode/plate/pull/4994) by [@puneetdixit200](https://github.com/puneetdixit200) โ Remove the table when deleting its final column.
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @puneetdixit200
- Full changelog: [`v53.0.8...v53.0.9`](https://github.com/udecode/plate/compare/v53.0.8...v53.0.9)
๐ Patch Changes
- [#4991](https://github.com/udecode/plate/pull/4991) by [@WilliamPeralta](https://github.com/WilliamPeralta) โ Fix `exportToDocx` adding blank paragraphs at the top of the document. `wrapHtmlForDocx` emitted a `<!DOCTYPE html>` and indented the template; html-to-docx (html-to-vdom) keeps the DOCTYPE and the whitespace-only text nodes between tags and renders each as a blank paragraph. The wrapper now emits tight markup with no DOCTYPE.
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @WilliamPeralta
- Full changelog: [`v53.0.7...v53.0.8`](https://github.com/udecode/plate/compare/v53.0.7...v53.0.8)
๐ Patch Changes
- Updated `@platejs/table`.
๐ Patch Changes
- [#4987](https://github.com/udecode/plate/pull/4987) by [@zbeyens](https://github.com/zbeyens) โ Add `transformInitialValue` and `nodeId.initialValueIds` while keeping `normalizeInitialValue` as a deprecated alias
- [#4987](https://github.com/udecode/plate/pull/4987) by [@zbeyens](https://github.com/zbeyens) โ Improve large-document mount and render performance across core element, mark, and `nodeId` paths
- Cut `10k` mixed-document core mount time from `1240.60 ms` to `468.26 ms` without `nodeId` (`62.3%`, `2.65x` faster)
- Cut `10k` mixed-document core mount time from `1290.66 ms` to `477.73 ms` with `nodeId` (`63.0%`, `2.70x` faster)
- Cut mixed-document `nodeId` overhead over core from `+50.06 ms` to `+9.46 ms` (`81.1%` smaller)
- Cut duplicate-id paste cost from `20.06 ms` to `13.79 ms` (`31.2%`, `1.45x` faster)
- Cut `10k` code-only mount time from `1500.30 ms` to `496.47 ms` (`66.9%`, `3.02x` faster) and shrink the code-only tax over core from `+280.75 ms` to `+27.89 ms` (`90.1%` smaller)
- Bring the current `10k` core and basic large-document mount lanes to Slate parity or better (`core -3.5%`, `core + nodeId -1.6%`, `basic -1.2%`)
- + 1 more
๐ฆ `@platejs/csv`
- Published `@platejs/csv@53.0.7`.
๐ Patch Changes
- [#4987](https://github.com/udecode/plate/pull/4987) by [@zbeyens](https://github.com/zbeyens) โ Add experimental `editor.tf.setNodesBatch` for exact-path node prop updates on large documents
- Cut the large-document `set_node` hot path from `18.56 ms` to `2.63 ms` at `1k` blocks (`7.05x` faster)
- Cut the same path from `118.54 ms` to `4.92 ms` at `5k` blocks (`24.10x` faster)
- Let `@platejs/core` batch live `nodeId` normalization instead of paying one `setNodes` call per missing id
- Keep `editor.tf.setNodesBatch` explicitly temporary. It is experimental and will be removed in a future release
- [`231b986`](https://github.com/udecode/plate/commit/231b9869825e38678621f55a4c4d1812704056e0) by [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D) โ Updated `slate-hyperscript`.
๐ Patch Changes
- [#4987](https://github.com/udecode/plate/pull/4987) by [@zbeyens](https://github.com/zbeyens) โ Speed up unmerged table range selection while preserving merged-cell handling
๐งช `@platejs/test-utils`
- Published `@platejs/test-utils@53.0.7`.
๐ Patch Changes
- Updated `@platejs/core`, `@platejs/slate`.
๐ Patch Changes
- Updated `@platejs/core`, `@platejs/slate`, `@platejs/utils`.
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @zbeyens
- Full changelog: [`v53.0.6...v53.0.7`](https://github.com/udecode/plate/compare/v53.0.6...v53.0.7)
๐ Patch Changes
- [#4983](https://github.com/udecode/plate/pull/4983) by [@bbyiringiro](https://github.com/bbyiringiro) โ Fix `.configure({ inputRules })` losing rules on subsequent editor instances
- [#4983](https://github.com/udecode/plate/pull/4983) by [@bbyiringiro](https://github.com/bbyiringiro) โ Fix `createTextSubstitutionInputRule` not firing on the final character of flat matches (e.g. `->` โ `โ`, `(c)` โ `ยฉ`)
๐ Patch Changes
- Updated `@platejs/core`.
๐ Patch Changes
- Updated `@platejs/core`, `@platejs/utils`.
๐ฆ Contributors
- Thanks to everyone who contributed to this release:
- @bbyiringiro
- Full changelog: [`v53.0.5...v53.0.6`](https://github.com/udecode/plate/compare/v53.0.5...v53.0.6)
๐ฆ `@platejs/core`
- Published `@platejs/core@53.0.5`.
๐ Patch Changes
- [`ce9ec87`](https://github.com/udecode/plate/commit/ce9ec871c9547a8a3c78ded13a93049ef9fe049c) by [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D) โ Updated `slate-react`.
๐งช `@platejs/test-utils`
- Published `@platejs/test-utils@53.0.5`.
๐ Patch Changes
- Updated `@platejs/core`, `@platejs/slate`.
๐ Patch Changes
- Updated `@platejs/core`, `@platejs/slate`, `@platejs/utils`.
- Full changelog: [`v53.0.4...v53.0.5`](https://github.com/udecode/plate/compare/%40platejs%2Fai%4053.0.4...platejs%4053.0.5)
๐ Patch Changes
- [#4972](https://github.com/udecode/plate/pull/4972) by [@ajmnz](https://github.com/ajmnz) โ Respect `resourceLink` when serializing bare autolink literals
๐ Patch Changes
- Updated `@platejs/markdown`.
๐ Patch Changes
- Updated `@platejs/utils`.
๐ Patch Changes
- [#4945](https://github.com/udecode/plate/pull/4945) by [@felixfeng33](https://github.com/felixfeng33) โ Add a trailing-block insert hook for normalization-driven insert behavior
๐ Patch Changes
- [#4945](https://github.com/udecode/plate/pull/4945) by [@felixfeng33](https://github.com/felixfeng33) โ Fix inline-void delete and replace suggestions around mentions and paragraph boundaries
๐ Patch Changes
- [#4945](https://github.com/udecode/plate/pull/4945) by [@felixfeng33](https://github.com/felixfeng33) โ Fix empty link normalization when suggestion acceptance removes the last link character
๐ Patch Changes
- [#4945](https://github.com/udecode/plate/pull/4945) by [@felixfeng33](https://github.com/felixfeng33) โ Clear block streaming state when `aiChat.stop()` stops generation
๐ Patch Changes
- [#4957](https://github.com/udecode/plate/pull/4957) by [@zbeyens](https://github.com/zbeyens) โ Fix video URL parsing to avoid ReDoS on crafted time parameters
๐ Patch Changes
- [#4954](https://github.com/udecode/plate/pull/4954) by [@dylans](https://github.com/dylans) โ Fix `normalizeListStart` to skip unordered list items and resume ordered list numbering past same-indent unordered siblings
๐ Patch Changes
- [#4941](https://github.com/udecode/plate/pull/4941) by [@zbeyens](https://github.com/zbeyens) โ Add `KEYS.footnoteDefinition`, `KEYS.footnoteReference`, and `KEYS.footnoteInput`
