v53.1.0

TEN-framework/ten-frameworkv53.1.0Jun 10, 2026by zbeyens

AI Summary

A patch release for the `@platejs/dnd` package focusing on improving drag-and-drop UX and enhancing document export functionality.

Key Highlights

  • Clear stale DnD drop indicators when dragging blocks into editor whitespace.
  • Enhanced `exportToDocx` with support for custom `pageSize` (e.g., A4) and `fontFamily` settings.

New Features

  • Improved DnD drop indicator handling
  • Enhanced DOCX export options (pageSize, fontFamily)

Full Release Notes

## `@platejs/dnd`

### 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.

## `@platejs/docx-io`

### 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)