@udecode/plate-ui-dnd
Advanced tools
Comparing version
# @udecode/plate-dnd | ||
## 10.1.1 | ||
### Patch Changes | ||
- [#1388](https://github.com/udecode/plate/pull/1388) by [@zbeyens](https://github.com/zbeyens) – fix for docs only: use `Array.from` instead of destructuring generators | ||
## 10.1.0 | ||
@@ -4,0 +10,0 @@ |
@@ -467,6 +467,8 @@ import { createPluginFactory, findNode, isExpanded, useEditorRef, createNodesWithHOC, getNodes, unhangRange } from '@udecode/plate-core'; | ||
const getBlocksWithId = (editor, options) => { | ||
return [...getNodes(editor, { | ||
const _nodes = getNodes(editor, { | ||
match: n => Editor.isBlock(editor, n) && !!n.id, | ||
...options | ||
})]; | ||
}); | ||
return Array.from(_nodes); | ||
}; | ||
@@ -473,0 +475,0 @@ |
@@ -477,6 +477,8 @@ 'use strict'; | ||
const getBlocksWithId = (editor, options) => { | ||
return [...plateCore.getNodes(editor, { | ||
const _nodes = plateCore.getNodes(editor, { | ||
match: n => slate.Editor.isBlock(editor, n) && !!n.id, | ||
...options | ||
})]; | ||
}); | ||
return Array.from(_nodes); | ||
}; | ||
@@ -483,0 +485,0 @@ |
{ | ||
"name": "@udecode/plate-ui-dnd", | ||
"version": "10.1.0", | ||
"version": "10.1.1", | ||
"description": "Drag & drop feature for Plate", | ||
@@ -39,4 +39,4 @@ "keywords": [ | ||
"@tippyjs/react": "^4.2.0", | ||
"@udecode/plate-core": "10.1.0", | ||
"@udecode/plate-styled-components": "10.1.0", | ||
"@udecode/plate-core": "10.1.1", | ||
"@udecode/plate-styled-components": "10.1.1", | ||
"react-dnd": "^14.0.2", | ||
@@ -43,0 +43,0 @@ "react-dnd-html5-backend": "^14.0.0" |
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
123325
0.35%1170
0.17%+ Added
+ Added
- Removed
- Removed
Updated