prosemirror-schema-list
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -0,1 +1,7 @@ | ||
## 1.1.4 (2020-08-11) | ||
### Bug fixes | ||
Fix a regression where `liftListItem` couldn't lift a paragraph from the end of a composite list item. | ||
## 1.1.3 (2020-08-04) | ||
@@ -2,0 +8,0 @@ |
@@ -128,3 +128,3 @@ import { findWrapping, ReplaceAroundStep, canSplit, liftTarget } from 'prosemirror-transform'; | ||
if (grandParent.type != itemType) { return false } | ||
if ($from.parent.content.size == 0 && $from.node(-1).childCount == 1) { | ||
if ($from.parent.content.size == 0 && $from.node(-1).childCount == $from.indexAfter(-1)) { | ||
// In an empty block. If this is a nested list, the wrapping | ||
@@ -131,0 +131,0 @@ // list item should be split. Otherwise, bail out and let next |
@@ -132,3 +132,3 @@ 'use strict'; | ||
if (grandParent.type != itemType) { return false } | ||
if ($from.parent.content.size == 0 && $from.node(-1).childCount == 1) { | ||
if ($from.parent.content.size == 0 && $from.node(-1).childCount == $from.indexAfter(-1)) { | ||
// In an empty block. If this is a nested list, the wrapping | ||
@@ -135,0 +135,0 @@ // list item should be split. Otherwise, bail out and let next |
{ | ||
"name": "prosemirror-schema-list", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "List-related schema elements and commands for ProseMirror", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -123,3 +123,3 @@ import {findWrapping, liftTarget, canSplit, ReplaceAroundStep} from "prosemirror-transform" | ||
if (grandParent.type != itemType) return false | ||
if ($from.parent.content.size == 0 && $from.node(-1).childCount == 1) { | ||
if ($from.parent.content.size == 0 && $from.node(-1).childCount == $from.indexAfter(-1)) { | ||
// In an empty block. If this is a nested list, the wrapping | ||
@@ -126,0 +126,0 @@ // list item should be split. Otherwise, bail out and let next |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
86337