Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 56 additions & 3 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,68 @@
"@udecode/react-utils": "52.3.4",
"@udecode/utils": "52.3.4",
"@platejs/utils": "53.1.2",
"@platejs/yjs": "53.2.0"
"@platejs/yjs": "53.2.0",
"plite": "0.0.0-private",
"@platejs/browser": "54.0.0-beta.0",
"@platejs/plite-dom": "54.0.0-beta.0",
"@platejs/plite-history": "54.0.0-beta.0",
"@platejs/plite-hyperscript": "54.0.0-beta.0",
"@platejs/plite-layout": "54.0.0-beta.0",
"@platejs/plite-react": "54.0.0-beta.0"
},
"changesets": [
"ai-v54-runtime",
"auto-main-to-next-sync-platejs-ai",
"auto-main-to-next-sync-platejs-core",
"auto-main-to-next-sync-platejs-markdown",
"auto-main-to-next-sync-platejs-utils",
"auto-main-to-next-sync-platejs",
"prepare-v54-beta-core",
"prepare-v54-beta-plite"
"clean-registry-owner-context",
"cmdk-active-descendant",
"cn-hoc-inference",
"code-block-commands",
"code-drawing-block-insert",
"depset-safe-execution",
"diff-replacement-markers",
"diff-replay-invariant-errors",
"dnd-cross-editor-drop",
"docx-base-plugin-cleanup",
"docx-io-v54-api",
"emoji-v54-runtime",
"excalidraw-v54-runtime",
"find-replace-v54-runtime",
"fix-test-utils-fixtures",
"floating-v54-runtime",
"footnote-v54-runtime",
"indent-v54-runtime",
"infer-plite-hyperscript-tags",
"juice-v54-runtime",
"layout-v54-runtime",
"link-v54-runtime",
"list-scoped-api",
"math-transaction-transforms",
"media-v54-runtime",
"mention-v54-runtime",
"plite-delete-block-void",
"plite-dom-stale-path-reads",
"plite-history-runtime",
"plite-operation-root",
"plite-react-read-only-provider",
"plite-react-stale-path-reads",
"plite-yjs-attribute-keys",
"plugin-portal-scoped-api",
"prepare-v54-beta-plite",
"react-hotkeys-lifecycle",
"react-utils-clean-runtime",
"resizable-v54-runtime",
"slash-command-plite-plugin",
"slate-browser-proof-lane",
"suggestion-v54-runtime",
"tabbable-plite-navigation",
"table-block-insert",
"tag-v54-runtime",
"toc-v54-runtime",
"toggle-v54-runtime",
"udecode-utils-clean-surface"
]
}
23 changes: 20 additions & 3 deletions apps/www/src/generated/release-index.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions packages/ai/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @platejs/ai

## 54.0.0-beta.2

### Major Changes

- [#5036](https://github.com/udecode/plate/pull/5036) by [@zbeyens](https://github.com/zbeyens) – Move AI, AI Chat, and Copilot behavior to Plite reads, state, and transactions

**Migration:** Use `editor.update.ai.*` and `editor.update.copilot.*` for mutations. Use `editor.plugin(BaseAIPlugin).api` and `editor.plugin(AIChatPlugin).api` for preview and chat orchestration.

## 53.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platejs/ai",
"version": "54.0.0-beta.1",
"version": "54.0.0-beta.2",
"description": "Text AI plugin for Plate",
"keywords": [
"plate",
Expand Down
2 changes: 2 additions & 0 deletions packages/basic-nodes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @platejs/basic-nodes

## 54.0.0-beta.2

## 53.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/basic-nodes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platejs/basic-nodes",
"version": "54.0.0-beta.0",
"version": "54.0.0-beta.2",
"description": "Basic nodes plugin for Plate",
"keywords": [
"plate",
Expand Down
7 changes: 7 additions & 0 deletions packages/browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @platejs/browser

## 54.0.0-beta.2

### Patch Changes

- [#5036](https://github.com/udecode/plate/pull/5036) by [@zbeyens](https://github.com/zbeyens) – Make `@platejs/browser/playwright` the first-party Playwright proof surface, including low-level editable, block, text, and browser-handle helpers.
2 changes: 1 addition & 1 deletion packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platejs/browser",
"version": "54.0.0-beta.0",
"version": "54.0.0-beta.2",
"description": "Browser proof harness for Plite editors.",
"keywords": [
"browser",
Expand Down
2 changes: 2 additions & 0 deletions packages/caption/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @platejs/caption

## 54.0.0-beta.2

## 53.0.0

## 52.3.10
Expand Down
2 changes: 1 addition & 1 deletion packages/caption/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platejs/caption",
"version": "54.0.0-beta.0",
"version": "54.0.0-beta.2",
"description": "Primitive components for caption.",
"keywords": [
"plate",
Expand Down
10 changes: 10 additions & 0 deletions packages/code-block/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @platejs/code-block

## 54.0.0-beta.2

### Major Changes

- [#5036](https://github.com/udecode/plate/pull/5036) by [@zbeyens](https://github.com/zbeyens) – Expose code-block mutations through `insert`, `toggle`, `tab`, `untab`, `resetBlock`, and `selectAll` installed commands.

**Migration:** Replace direct transform helper imports with
`editor.update.code_block.*` commands. Pass node insertion options directly to
`insert(options)`.

## 53.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/code-block/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platejs/code-block",
"version": "54.0.0-beta.0",
"version": "54.0.0-beta.2",
"description": "Code block plugin for Plate",
"keywords": [
"plate",
Expand Down
8 changes: 8 additions & 0 deletions packages/code-drawing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @platejs/code-drawing

## 54.0.0-beta.2

### Major Changes

- [#5036](https://github.com/udecode/plate/pull/5036) by [@zbeyens](https://github.com/zbeyens) – Insert code drawings through `editor.update.code_drawing.insert(props, options)` and append when no block target is available.

**Migration:** Replace direct `insertCodeDrawing` calls with the installed plugin command. Pass `at` to target the block after which the drawing is inserted.

## 53.0.0

## 52.3.10
Expand Down
2 changes: 1 addition & 1 deletion packages/code-drawing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platejs/code-drawing",
"version": "54.0.0-beta.0",
"version": "54.0.0-beta.2",
"description": "Code drawing plugin for Plate (PlantUml, Graphviz, Flowchart, Mermaid)",
"keywords": [
"plate",
Expand Down
47 changes: 47 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,52 @@
# @platejs/core

## 54.0.0-beta.2

### Major Changes

- [#5036](https://github.com/udecode/plate/pull/5036) by [@zbeyens](https://github.com/zbeyens) – Scope `editor.plugin(FooPlugin).api` to the plugin API and expose the composed
editor API through `editor.plugin(FooPlugin).editor.api`.

Replace Slate-era Core exports with Plite and Plate-owned names.

Pass each render wrapper its owning plugin portal context and forward Plite DOM
strategy props through Plate content.

Skip autofocus, input rule, and override work when lifecycle targets are unavailable.

Keep Plate root wiring on direct Plite React imports and infer plugin lookup
and root callback types without local adapter casts.

Prepare v54 beta prerelease versioning and preserve initial selections when
`transformInitialValue` wraps selected text during editor setup.

Install typed plugin-object dependencies recursively with deterministic
overrides, dependency-first ordering, and graph validation.

**Migration:** Replace nested plugin API reads with the scoped portal API:

```tsx
// Before
editor.plugin(FooPlugin).api.foo.method();

// After
editor.plugin(FooPlugin).api.method();
editor.plugin(FooPlugin).editor.api.foo.method();
```

Rename these exports:

- `Slate` to `Plite`
- `PlateSlate` to `PlateRoot`
- `useSlateProps` to `usePlateRootProps`
- `getSlatePlugin` to `getBasePlugin`
- `SlateRenderElementProps` to `PliteRenderElementProps`
- `SlateRenderLeafProps` to `PliteRenderLeafProps`
- `SlateRenderTextProps` to `PliteRenderTextProps`

Replace dependency keys such as `dependencies: ['feature']` with the plugin
object, for example `dependencies: [BaseFeaturePlugin]`.

## 53.2.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platejs/core",
"version": "54.0.0-beta.1",
"version": "54.0.0-beta.2",
"description": "The core Plate plugin runtime for Plite editors",
"keywords": [
"contentEditable",
Expand Down
2 changes: 2 additions & 0 deletions packages/csv/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @udecode/plate-serializer-csv

## 54.0.0-beta.2

## 53.0.9

## 53.0.7
Expand Down
2 changes: 1 addition & 1 deletion packages/csv/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platejs/csv",
"version": "54.0.0-beta.0",
"version": "54.0.0-beta.2",
"description": "CSV serializer plugin for Plate",
"keywords": [
"csv",
Expand Down
2 changes: 2 additions & 0 deletions packages/cursor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @platejs/cursor

## 54.0.0-beta.2

## 53.0.0

## 52.3.10
Expand Down
2 changes: 1 addition & 1 deletion packages/cursor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platejs/cursor",
"version": "54.0.0-beta.0",
"version": "54.0.0-beta.2",
"description": "Cursor for Plate React",
"keywords": [
"plate",
Expand Down
22 changes: 22 additions & 0 deletions packages/diff/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# @platejs/diff

## 54.0.0-beta.2

### Major Changes

- [#5036](https://github.com/udecode/plate/pull/5036) by [@zbeyens](https://github.com/zbeyens) – Fix replacement diffs so inserted and deleted text markers stay on the correct text ranges.

Replace the `withGetFragmentExcludeDiff` editor override with
`createExcludeDiffFragmentExtension` and expose `excludeDiffFromFragment` for
direct fragment cleanup.

**Migration:** Install the extension through a Plate plugin:

```tsx
createBasePlugin({ key: "diff" }).extendExtension(
createExcludeDiffFragmentExtension()
);
```

### Patch Changes

- [#5036](https://github.com/udecode/plate/pull/5036) by [@zbeyens](https://github.com/zbeyens) – Report operation-specific errors when change-tracking replay cannot resolve required points or ranges

## 53.0.0

## 52.3.10
Expand Down
2 changes: 1 addition & 1 deletion packages/diff/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platejs/diff",
"version": "54.0.0-beta.0",
"version": "54.0.0-beta.2",
"description": "Compute a diff of two Plite documents",
"keywords": [
"plate",
Expand Down
16 changes: 16 additions & 0 deletions packages/dnd/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @platejs/dnd

## 54.0.0-beta.2

### Major Changes

- [#5036](https://github.com/udecode/plate/pull/5036) by [@zbeyens](https://github.com/zbeyens) – Fix cross-editor multi-block drops so every selected block is inserted before the source blocks are removed.

Remove the unused `getNewDirection` helper.

### Patch Changes

- [#5036](https://github.com/udecode/plate/pull/5036) by [@zbeyens](https://github.com/zbeyens) – Keep plugin APIs and render-time node context typed through Plate registry
integrations.

Accept arrays in placeholder media insertion, expose DOM-compatible drag refs,
and avoid element-context reads for non-element block-selection injection rows.

## 53.1.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/dnd/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platejs/dnd",
"version": "54.0.0-beta.0",
"version": "54.0.0-beta.2",
"description": "React drag and drop feature for Plate",
"keywords": [
"plate",
Expand Down
16 changes: 16 additions & 0 deletions packages/docx-io/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @platejs/docx-io

## 54.0.0-beta.2

### Major Changes

- [#5036](https://github.com/udecode/plate/pull/5036) by [@zbeyens](https://github.com/zbeyens) – Move `DocxExportPlugin` transactions to `editor.update` and remove the `DocumentMargins` and `HtmlToDocxOptions` aliases

```tsx
// Before
editor.tf.docxExport.exportAndDownload("document");

// After
editor.update.docxExport.exportAndDownload("document");
```

Use `Margins` and `DocumentOptions` for HTML-to-DOCX options.

## 53.1.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/docx-io/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platejs/docx-io",
"version": "54.0.0-beta.0",
"version": "54.0.0-beta.2",
"description": "DOCX import/export for Plate - file-based document conversion",
"keywords": [
"docx",
Expand Down Expand Up @@ -64,8 +64,8 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"@platejs/docx": ">=54.0.0-beta.0",
"platejs": ">=54.0.0-beta.0",
"@platejs/docx": ">=54.0.0-beta.2",
"platejs": ">=54.0.0-beta.2",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
Loading
Loading