Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prosemirror-schema-list

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-schema-list - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

16

CHANGELOG.md

@@ -0,1 +1,7 @@

## 1.1.3 (2020-08-04)
### Bug fixes
Fix an issue where `splitListItem` could delete other content in the item when pressing enter in an empty paragraph that had other content below it in a list item.
## 1.1.2 (2019-11-20)

@@ -47,3 +53,3 @@

The [`splitListItem` command](http://prosemirror.net/docs/ref/version/0.23.0.html#schema-list.splitListItem) now splits the parent list item when executed in a (trailing) empty list item in a nested list.
The [`splitListItem` command](https://prosemirror.net/docs/ref/version/0.23.0.html#schema-list.splitListItem) now splits the parent list item when executed in a (trailing) empty list item in a nested list.

@@ -54,3 +60,3 @@ ## 0.20.0 (2017-04-03)

The [`liftListItem`](http://prosemirror.net/docs/ref/version/0.20.0.html#schema-list.liftListItem) command can now lift items out of a list entirely, when the parent node isn't another list.
The [`liftListItem`](https://prosemirror.net/docs/ref/version/0.20.0.html#schema-list.liftListItem) command can now lift items out of a list entirely, when the parent node isn't another list.

@@ -61,5 +67,5 @@ ## 0.11.0 (2016-09-21)

New module combining the node [specs](http://prosemirror.net/docs/ref/version/0.11.0.html#model.NodeSpec) from
[schema-basic](http://prosemirror.net/docs/ref/version/0.11.0.html#schema-basic), and the list-related
[commands](http://prosemirror.net/docs/ref/version/0.11.0.html#commands) from the commands module.
New module combining the node [specs](https://prosemirror.net/docs/ref/version/0.11.0.html#model.NodeSpec) from
[schema-basic](https://prosemirror.net/docs/ref/version/0.11.0.html#schema-basic), and the list-related
[commands](https://prosemirror.net/docs/ref/version/0.11.0.html#commands) from the commands module.

@@ -128,3 +128,3 @@ import { findWrapping, ReplaceAroundStep, canSplit, liftTarget } from 'prosemirror-transform';

if (grandParent.type != itemType) { return false }
if ($from.parent.content.size == 0) {
if ($from.parent.content.size == 0 && $from.node(-1).childCount == 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) {
if ($from.parent.content.size == 0 && $from.node(-1).childCount == 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.2",
"version": "1.1.3",
"description": "List-related schema elements and commands for ProseMirror",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

# prosemirror-schema-list
[ [**WEBSITE**](http://prosemirror.net) | [**ISSUES**](https://github.com/prosemirror/prosemirror/issues) | [**FORUM**](https://discuss.prosemirror.net) | [**GITTER**](https://gitter.im/ProseMirror/prosemirror) | [**CHANGELOG**](https://github.com/ProseMirror/prosemirror-schema-list/blob/master/CHANGELOG.md) ]
[ [**WEBSITE**](https://prosemirror.net) | [**ISSUES**](https://github.com/prosemirror/prosemirror/issues) | [**FORUM**](https://discuss.prosemirror.net) | [**GITTER**](https://gitter.im/ProseMirror/prosemirror) | [**CHANGELOG**](https://github.com/ProseMirror/prosemirror-schema-list/blob/master/CHANGELOG.md) ]
This is a [schema module](http://prosemirror.net/docs/ref/#schema-list) for [ProseMirror](http://prosemirror.net).
This is a [schema module](https://prosemirror.net/docs/ref/#schema-list) for [ProseMirror](https://prosemirror.net).
ProseMirror is a well-behaved rich semantic content editor based on

@@ -10,9 +10,9 @@ contentEditable, with support for collaborative editing and custom

This [module](http://prosemirror.net/docs/ref/#schema-list) exports
This [module](https://prosemirror.net/docs/ref/#schema-list) exports
schema elements and commands for including lists in a ProseMirror
editor.
The [project page](http://prosemirror.net) has more information, a
number of [examples](http://prosemirror.net/examples/) and the
[documentation](http://prosemirror.net/docs/).
The [project page](https://prosemirror.net) has more information, a
number of [examples](https://prosemirror.net/examples/) and the
[documentation](https://prosemirror.net/docs/).

@@ -19,0 +19,0 @@ This code is released under an

@@ -123,3 +123,3 @@ import {findWrapping, liftTarget, canSplit, ReplaceAroundStep} from "prosemirror-transform"

if (grandParent.type != itemType) return false
if ($from.parent.content.size == 0) {
if ($from.parent.content.size == 0 && $from.node(-1).childCount == 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc