prosemirror-schema-list
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -0,1 +1,7 @@ | ||
## 1.1.6 (2021-09-21) | ||
### Bug fixes | ||
Fix a crash in `liftListItem` that happens when list items that can't be merged are lifted together. | ||
## 1.1.5 (2021-07-06) | ||
@@ -2,0 +8,0 @@ |
@@ -205,2 +205,3 @@ import { findWrapping, ReplaceAroundStep, canSplit, liftTarget } from 'prosemirror-transform'; | ||
var $start = tr.doc.resolve(range.start), item = $start.nodeAfter; | ||
if (tr.mapping.map(range.end) != range.start + $start.nodeAfter.nodeSize) { return false } | ||
var atStart = range.startIndex == 0, atEnd = range.endIndex == list.childCount; | ||
@@ -207,0 +208,0 @@ var parent = $start.node(-1), indexBefore = $start.index(-1); |
@@ -209,2 +209,3 @@ 'use strict'; | ||
var $start = tr.doc.resolve(range.start), item = $start.nodeAfter; | ||
if (tr.mapping.map(range.end) != range.start + $start.nodeAfter.nodeSize) { return false } | ||
var atStart = range.startIndex == 0, atEnd = range.endIndex == list.childCount; | ||
@@ -211,0 +212,0 @@ var parent = $start.node(-1), indexBefore = $start.index(-1); |
{ | ||
"name": "prosemirror-schema-list", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "List-related schema elements and commands for ProseMirror", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -198,2 +198,3 @@ import {findWrapping, liftTarget, canSplit, ReplaceAroundStep} from "prosemirror-transform" | ||
let $start = tr.doc.resolve(range.start), item = $start.nodeAfter | ||
if (tr.mapping.map(range.end) != range.start + $start.nodeAfter.nodeSize) return false | ||
let atStart = range.startIndex == 0, atEnd = range.endIndex == list.childCount | ||
@@ -200,0 +201,0 @@ let parent = $start.node(-1), indexBefore = $start.index(-1) |
Sorry, the diff of this file is not supported yet
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
92729
717