@udecode/plate-alignment
Advanced tools
Comparing version
@@ -43,3 +43,5 @@ import { createPluginFactory, getPluginType, ELEMENT_DEFAULT, mapInjectPropsToPlugin, getPluginInjectProps, unsetNodes, setElements, isBlock } from '@udecode/plate-core'; | ||
const match = n => isBlock(editor, n) && !!validTypes && validTypes.includes(n.type); | ||
const match = n => { | ||
return isBlock(editor, n) && !!validTypes && validTypes.includes(n.type); | ||
}; | ||
@@ -46,0 +48,0 @@ if (value === defaultNodeValue) { |
@@ -47,3 +47,5 @@ 'use strict'; | ||
const match = n => plateCore.isBlock(editor, n) && !!validTypes && validTypes.includes(n.type); | ||
const match = n => { | ||
return plateCore.isBlock(editor, n) && !!validTypes && validTypes.includes(n.type); | ||
}; | ||
@@ -50,0 +52,0 @@ if (value === defaultNodeValue) { |
{ | ||
"name": "@udecode/plate-alignment", | ||
"version": "19.4.4", | ||
"version": "19.5.0", | ||
"description": "Text alignment plugin for Plate", | ||
@@ -22,3 +22,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@udecode/plate-core": "19.4.4" | ||
"@udecode/plate-core": "19.5.0" | ||
}, | ||
@@ -25,0 +25,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
14919
1.28%142
2.9%+ Added
- Removed
Updated