@udecode/plate-utils
Advanced tools
Comparing version 27.0.3 to 28.0.0
@@ -261,4 +261,6 @@ "use strict"; | ||
}) => { | ||
const editor = (0, import_plate_core.useEditorState)(); | ||
const pressed = !!(editor == null ? void 0 : editor.selection) && (0, import_slate_utils.isMarkActive)(editor, nodeType); | ||
const pressed = (0, import_plate_core.useEditorSelector)( | ||
(editor) => (0, import_slate_utils.isMarkActive)(editor, nodeType), | ||
[nodeType] | ||
); | ||
return { | ||
@@ -265,0 +267,0 @@ pressed, |
{ | ||
"name": "@udecode/plate-utils", | ||
"version": "27.0.3", | ||
"version": "28.0.0", | ||
"description": "Plate utils", | ||
@@ -43,3 +43,3 @@ "license": "MIT", | ||
"@radix-ui/react-slot": "^1.0.2", | ||
"@udecode/plate-core": "27.0.3", | ||
"@udecode/plate-core": "28.0.0", | ||
"@udecode/slate": "25.0.0", | ||
@@ -46,0 +46,0 @@ "@udecode/slate-react": "25.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
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
1444
137932
+ Added@udecode/plate-core@28.0.0(transitive)
- Removed@udecode/plate-core@27.0.3(transitive)
Updated@udecode/plate-core@28.0.0