@udecode/plate-list
Advanced tools
Comparing version 4.4.0 to 5.1.0
# @udecode/plate-list | ||
## 5.1.0 | ||
### Minor Changes | ||
- [#1105](https://github.com/udecode/plate/pull/1105) [`503956fd`](https://github.com/udecode/plate/commit/503956fd9f71253249b3ad699b81c1c465351b0a) Thanks [@aj-foster](https://github.com/aj-foster)! - Unwrap list item only if selection is at start of list item, not any block | ||
### Patch Changes | ||
- Updated dependencies [[`503956fd`](https://github.com/udecode/plate/commit/503956fd9f71253249b3ad699b81c1c465351b0a)]: | ||
- @udecode/plate-common@5.1.0 | ||
- @udecode/plate-reset-node@5.1.0 | ||
## 4.4.0 | ||
@@ -4,0 +16,0 @@ |
@@ -1314,3 +1314,5 @@ import { getPlatePluginOptions, getPlatePluginType, getPlatePluginTypes, mapPlatePluginKeysToOptions, isElement, getRenderElement, getSlateClass } from '@udecode/plate-core'; | ||
if (isSelectionAtBlockStart(editor)) { | ||
if (isSelectionAtBlockStart(editor, { | ||
match: node => node.type === ELEMENT_LI | ||
})) { | ||
Editor.withoutNormalizing(editor, () => { | ||
@@ -1317,0 +1319,0 @@ moved = removeFirstListItem(editor, { |
@@ -1318,3 +1318,5 @@ 'use strict'; | ||
if (plateCommon.isSelectionAtBlockStart(editor)) { | ||
if (plateCommon.isSelectionAtBlockStart(editor, { | ||
match: node => node.type === ELEMENT_LI | ||
})) { | ||
slate.Editor.withoutNormalizing(editor, () => { | ||
@@ -1321,0 +1323,0 @@ moved = removeFirstListItem(editor, { |
{ | ||
"name": "@udecode/plate-list", | ||
"version": "4.4.0", | ||
"version": "5.1.0", | ||
"description": "List plugin for Plate", | ||
@@ -35,5 +35,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@udecode/plate-common": "4.4.0", | ||
"@udecode/plate-common": "5.1.0", | ||
"@udecode/plate-core": "4.3.7", | ||
"@udecode/plate-reset-node": "4.4.0" | ||
"@udecode/plate-reset-node": "5.1.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
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
393255
3788
+ Added@udecode/plate-common@5.1.0(transitive)
+ Added@udecode/plate-reset-node@5.1.0(transitive)
- Removed@udecode/plate-common@4.4.0(transitive)
- Removed@udecode/plate-reset-node@4.4.0(transitive)
Updated@udecode/plate-common@5.1.0