prosemirror-transform
Advanced tools
Comparing version 1.2.12 to 1.3.0
@@ -0,1 +1,7 @@ | ||
## 1.3.0 (2021-03-31) | ||
### New features | ||
The various properties of subclasses of `Step` (`ReplaceStep`, `ReplaceAroundStep`, `AddMarkStep`, and `RemoveMarkStep`) are now part of the public interface. | ||
## 1.2.12 (2021-02-20) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-transform", | ||
"version": "1.2.12", | ||
"version": "1.3.0", | ||
"description": "ProseMirror document transformations", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -20,4 +20,10 @@ import {Fragment, Slice} from "prosemirror-model" | ||
super() | ||
// :: number | ||
// The start of the marked range. | ||
this.from = from | ||
// :: number | ||
// The end of the marked range. | ||
this.to = to | ||
// :: Mark | ||
// The mark to add. | ||
this.mark = mark | ||
@@ -73,4 +79,10 @@ } | ||
super() | ||
// :: number | ||
// The start of the unmarked range. | ||
this.from = from | ||
// :: number | ||
// The end of the unmarked range. | ||
this.to = to | ||
// :: Mark | ||
// The mark to remove. | ||
this.mark = mark | ||
@@ -77,0 +89,0 @@ } |
@@ -18,4 +18,10 @@ import {Slice} from "prosemirror-model" | ||
super() | ||
// :: number | ||
// The start position of the replaced range. | ||
this.from = from | ||
// :: number | ||
// The end position of the replaced range. | ||
this.to = to | ||
// :: Slice | ||
// The slice to insert. | ||
this.slice = slice | ||
@@ -88,7 +94,20 @@ this.structure = !!structure | ||
super() | ||
// :: number | ||
// The start position of the replaced range. | ||
this.from = from | ||
// :: number | ||
// The end position of the replaced range. | ||
this.to = to | ||
// :: number | ||
// The start of preserved range. | ||
this.gapFrom = gapFrom | ||
// :: number | ||
// The end of preserved range. | ||
this.gapTo = gapTo | ||
// :: Slice | ||
// The slice to insert. | ||
this.slice = slice | ||
// :: number | ||
// The position in the slice where the preserved range should be | ||
// inserted. | ||
this.insert = insert | ||
@@ -95,0 +114,0 @@ this.structure = !!structure |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
492424
4469