mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 17:53:59 +02:00
Version Packages (#5304)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
11adbf966c
commit
942fbd7ceb
@@ -1,5 +0,0 @@
|
||||
---
|
||||
'slate-react': patch
|
||||
---
|
||||
|
||||
Allow pasting plain text into editable voids
|
@@ -1,21 +0,0 @@
|
||||
---
|
||||
'slate': patch
|
||||
---
|
||||
|
||||
New `editor` method that can be overridden to control when the normalization should stop. Default behavior (unchanged) is to throw an error when it iterates over 42 times the dirty paths length.
|
||||
|
||||
```ts
|
||||
shouldNormalize: ({
|
||||
iteration,
|
||||
dirtyPaths,
|
||||
operation,
|
||||
}: {
|
||||
iteration: number
|
||||
dirtyPaths: Path[]
|
||||
operation?: Operation
|
||||
}) => boolean
|
||||
```
|
||||
|
||||
- `editor.onChange` signature change: `(options?: { operation?: Operation }) => void` where `operation` is triggering the function.
|
||||
- `editor.normalizeNode` signature change: `(entry: NodeEntry, options?: { operation?: Operation }) => void` where `operation` is triggering the function.
|
||||
- `EditorNormalizeOptions` new option `operation?: Operation` where `operation` is triggering the function.
|
@@ -1,5 +1,11 @@
|
||||
# slate-react
|
||||
|
||||
## 0.91.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#5305](https://github.com/ianstormtaylor/slate/pull/5305) [`11adbf96`](https://github.com/ianstormtaylor/slate/commit/11adbf966c764ffde866be38ada2d32e00105e48) Thanks [@alex-vladut](https://github.com/alex-vladut)! - Allow pasting plain text into editable voids
|
||||
|
||||
## 0.91.2
|
||||
|
||||
### Patch Changes
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "slate-react",
|
||||
"description": "Tools for building completely customizable richtext editors with React.",
|
||||
"version": "0.91.2",
|
||||
"version": "0.91.3",
|
||||
"license": "MIT",
|
||||
"repository": "git://github.com/ianstormtaylor/slate.git",
|
||||
"main": "dist/index.js",
|
||||
@@ -35,7 +35,7 @@
|
||||
"react": ">=16.8.0",
|
||||
"react-dom": ">=16.8.0",
|
||||
"react-test-renderer": ">=16.8.0",
|
||||
"slate": "^0.91.1",
|
||||
"slate": "^0.91.3",
|
||||
"slate-hyperscript": "^0.81.3",
|
||||
"source-map-loader": "^4.0.0"
|
||||
},
|
||||
|
@@ -1,5 +1,27 @@
|
||||
# slate
|
||||
|
||||
## 0.91.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#5295](https://github.com/ianstormtaylor/slate/pull/5295) [`84f811a7`](https://github.com/ianstormtaylor/slate/commit/84f811a79c9b76050cb3dbe424efca3192cc44c6) Thanks [@zbeyens](https://github.com/zbeyens)! - New `editor` method that can be overridden to control when the normalization should stop. Default behavior (unchanged) is to throw an error when it iterates over 42 times the dirty paths length.
|
||||
|
||||
```ts
|
||||
shouldNormalize: ({
|
||||
iteration,
|
||||
dirtyPaths,
|
||||
operation,
|
||||
}: {
|
||||
iteration: number
|
||||
dirtyPaths: Path[]
|
||||
operation?: Operation
|
||||
}) => boolean
|
||||
```
|
||||
|
||||
- `editor.onChange` signature change: `(options?: { operation?: Operation }) => void` where `operation` is triggering the function.
|
||||
- `editor.normalizeNode` signature change: `(entry: NodeEntry, options?: { operation?: Operation }) => void` where `operation` is triggering the function.
|
||||
- `EditorNormalizeOptions` new option `operation?: Operation` where `operation` is triggering the function.
|
||||
|
||||
## 0.91.1
|
||||
|
||||
### Patch Changes
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "slate",
|
||||
"description": "A completely customizable framework for building rich text editors.",
|
||||
"version": "0.91.1",
|
||||
"version": "0.91.3",
|
||||
"license": "MIT",
|
||||
"repository": "git://github.com/ianstormtaylor/slate.git",
|
||||
"main": "dist/index.js",
|
||||
|
@@ -13936,7 +13936,7 @@ resolve@^2.0.0-next.3:
|
||||
react-dom: ">=16.8.0"
|
||||
react-test-renderer: ">=16.8.0"
|
||||
scroll-into-view-if-needed: ^2.2.20
|
||||
slate: ^0.91.1
|
||||
slate: ^0.91.3
|
||||
slate-hyperscript: ^0.81.3
|
||||
source-map-loader: ^4.0.0
|
||||
tiny-invariant: 1.0.6
|
||||
@@ -13947,7 +13947,7 @@ resolve@^2.0.0-next.3:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"slate@^0.91.1, slate@workspace:*, slate@workspace:packages/slate":
|
||||
"slate@^0.91.1, slate@^0.91.3, slate@workspace:*, slate@workspace:packages/slate":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "slate@workspace:packages/slate"
|
||||
dependencies:
|
||||
|
Reference in New Issue
Block a user