Skip to content
Merged
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
25 changes: 0 additions & 25 deletions .changeset/funny-eyes-begin.md

This file was deleted.

26 changes: 0 additions & 26 deletions .changeset/platejs-core-minor.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/autoformat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/basic-nodes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/basic-styles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/callout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/caption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/code-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/combobox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/comment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
52 changes: 52 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,57 @@
# @platejs/core

## 49.0.16

### Patch Changes

- [#4441](https://github.com/udecode/plate/pull/4441) by [@delijah](https://github.com/delijah) – Expose mimeType to plugin parser functions

Added comprehensive copy functionality and view editor support for static rendering.

**New Components:**

- Added `PlateView` component for static editor rendering with copy support
- Added `usePlateViewEditor` hook for creating memoized static editors

**Static Editor Enhancements:**

- Added `withStatic` HOC to enhance editors with static rendering capabilities
- Added `ViewPlugin` that enables copy operations in static editors
- Added `getStaticPlugins` to configure plugins for static rendering
- Added `onCopy` handler that properly serializes content with `x-slate-fragment` format

**New Utilities:**

- Added `getSelectedDomBlocks` to extract selected DOM elements with Slate metadata
- Added `getSelectedDomNode` to get DOM nodes from browser selection
- Added `isSelectOutside` to check if selection is outside editor bounds
- Added `getPlainText` to recursively extract plain text from DOM nodes

This enables seamless copy operations from static Plate editors, allowing content to be pasted into other Slate editors while preserving rich formatting and structure.

- [`a6c3e52`](https://github.com/udecode/plate/commit/a6c3e521c2cd8410d151f0b99a9080bba171b276) by [@felixfeng33](https://github.com/felixfeng33) – Added comprehensive copy functionality and view editor support for static rendering.

**New Components:**

- Added `PlateView` component for static editor rendering with copy support
- Added `usePlateViewEditor` hook for creating memoized static editors

**Static Editor Enhancements:**

- Added `withStatic` HOC to enhance editors with static rendering capabilities
- Added `ViewPlugin` that enables copy operations in static editors
- Added `getStaticPlugins` to configure plugins for static rendering
- Added `onCopy` handler that properly serializes content with `x-slate-fragment` format

**New Utilities:**

- Added `getSelectedDomBlocks` to extract selected DOM elements with Slate metadata
- Added `getSelectedDomNode` to get DOM nodes from browser selection
- Added `isSelectOutside` to check if selection is outside editor bounds
- Added `getPlainText` to recursively extract plain text from DOM nodes

This enables seamless copy operations from static Plate editors, allowing content to be pasted into other Slate editors while preserving rich formatting and structure.

## 49.0.15

### 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": "49.0.15",
"version": "49.0.16",
"description": "The core of Plate – a plugin system for slate",
"keywords": [
"contentEditable",
Expand Down
2 changes: 1 addition & 1 deletion packages/csv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cursor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/date/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/dnd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dnd": ">=14.0.0",
"react-dnd-html5-backend": ">=14.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/docx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/emoji/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
"peerDependencies": {
"@emoji-mart/data": ">=1.2.0",
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/excalidraw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/find-replace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/floating/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/indent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/juice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/list-classic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/math/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/media/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/mention/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"platejs": "workspace:^"
},
"peerDependencies": {
"platejs": ">=49.0.15",
"platejs": ">=49.0.16",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/plate/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# platejs

## 49.0.16

## 49.0.15

## 49.0.14
Expand Down
6 changes: 3 additions & 3 deletions packages/plate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "platejs",
"version": "49.0.15",
"version": "49.0.16",
"description": "Plate – a framework for building rich text editors on the web",
"keywords": [
"contentEditable",
Expand Down Expand Up @@ -56,9 +56,9 @@
"typecheck": "yarn p:typecheck"
},
"dependencies": {
"@platejs/core": "49.0.15",
"@platejs/core": "49.0.16",
"@platejs/slate": "49.0.2",
"@platejs/utils": "49.0.15",
"@platejs/utils": "49.0.16",
"@udecode/react-hotkeys": "37.0.0",
"@udecode/react-utils": "49.0.15",
"@udecode/utils": "47.2.7"
Expand Down
Loading