@udecode/plate-selection
Advanced tools
Comparing version 39.3.6 to 39.3.7
@@ -1370,2 +1370,12 @@ "use strict"; | ||
key: "blockSelection", | ||
extendEditor: ({ api, editor, getOptions }) => { | ||
const { setSelection } = editor; | ||
editor.setSelection = (...args) => { | ||
if (getOptions().selectedIds.size > 0 && !editor.getOption(BlockMenuPlugin, "openId")) { | ||
api.blockSelection.unselect(); | ||
} | ||
setSelection(...args); | ||
}; | ||
return editor; | ||
}, | ||
options: { | ||
@@ -1410,3 +1420,2 @@ areaOptions: { | ||
if (target.dataset.platePreventUnselect) return; | ||
console.log(editor.getOption(BlockMenuPlugin, "openId"), "fj"); | ||
if (event.button === 0 && getOptions().selectedIds.size > 0 && !editor.getOption(BlockMenuPlugin, "openId")) { | ||
@@ -1413,0 +1422,0 @@ api.blockSelection.unselect(); |
@@ -1399,2 +1399,12 @@ "use strict"; | ||
key: "blockSelection", | ||
extendEditor: ({ api, editor, getOptions }) => { | ||
const { setSelection } = editor; | ||
editor.setSelection = (...args) => { | ||
if (getOptions().selectedIds.size > 0 && !editor.getOption(BlockMenuPlugin, "openId")) { | ||
api.blockSelection.unselect(); | ||
} | ||
setSelection(...args); | ||
}; | ||
return editor; | ||
}, | ||
options: { | ||
@@ -1439,3 +1449,2 @@ areaOptions: { | ||
if (target.dataset.platePreventUnselect) return; | ||
console.log(editor.getOption(BlockMenuPlugin, "openId"), "fj"); | ||
if (event.button === 0 && getOptions().selectedIds.size > 0 && !editor.getOption(BlockMenuPlugin, "openId")) { | ||
@@ -1442,0 +1451,0 @@ api.blockSelection.unselect(); |
{ | ||
"name": "@udecode/plate-selection", | ||
"version": "39.3.6", | ||
"version": "39.3.7", | ||
"description": "Plate React plugin to add a visual way of selecting blocks", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
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
626292
6358