@udecode/plate-indent
Advanced tools
Comparing version 39.0.0 to 40.0.0
@@ -55,5 +55,3 @@ "use strict"; | ||
getOptions, | ||
plugin: { | ||
inject: { targetPlugins } | ||
} | ||
plugin | ||
}) => { | ||
@@ -65,4 +63,5 @@ const { normalizeNode } = editor; | ||
const { type } = element; | ||
const match = (0, import_plate_common.getInjectMatch)(editor, plugin); | ||
if (type) { | ||
if (targetPlugins.includes((0, import_plate_common.getKeyByType)(editor, type))) { | ||
if (match(element, path)) { | ||
if (indentMax && element.indent && element.indent > indentMax) { | ||
@@ -87,2 +86,3 @@ (0, import_plate_common2.setElements)(editor, { indent: indentMax }, { at: path }); | ||
inject: { | ||
isBlock: true, | ||
nodeProps: { | ||
@@ -109,2 +109,3 @@ nodeKey: "indent", | ||
inject: { | ||
isBlock: true, | ||
nodeProps: { | ||
@@ -111,0 +112,0 @@ nodeKey: "textIndent", |
@@ -57,5 +57,3 @@ "use strict"; | ||
getOptions, | ||
plugin: { | ||
inject: { targetPlugins } | ||
} | ||
plugin | ||
}) => { | ||
@@ -67,4 +65,5 @@ const { normalizeNode } = editor; | ||
const { type } = element; | ||
const match = (0, import_plate_common.getInjectMatch)(editor, plugin); | ||
if (type) { | ||
if (targetPlugins.includes((0, import_plate_common.getKeyByType)(editor, type))) { | ||
if (match(element, path)) { | ||
if (indentMax && element.indent && element.indent > indentMax) { | ||
@@ -89,2 +88,3 @@ (0, import_plate_common2.setElements)(editor, { indent: indentMax }, { at: path }); | ||
inject: { | ||
isBlock: true, | ||
nodeProps: { | ||
@@ -181,2 +181,3 @@ nodeKey: "indent", | ||
inject: { | ||
isBlock: true, | ||
nodeProps: { | ||
@@ -183,0 +184,0 @@ nodeKey: "textIndent", |
{ | ||
"name": "@udecode/plate-indent", | ||
"version": "39.0.0", | ||
"version": "40.0.0", | ||
"description": "Indent plugin for Plate", | ||
@@ -56,9 +56,10 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@udecode/plate-common": ">=39.0.0", | ||
"@udecode/plate-common": ">=40.0.0", | ||
"react": ">=16.8.0", | ||
"react-dom": ">=16.8.0", | ||
"slate": ">=0.103.0", | ||
"slate-dom": ">=0.111.0", | ||
"slate-history": ">=0.93.0", | ||
"slate-hyperscript": ">=0.66.0", | ||
"slate-react": ">=0.108.0" | ||
"slate-react": ">=0.111.0" | ||
}, | ||
@@ -65,0 +66,0 @@ "publishConfig": { |
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
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
70661
825
8