2022-02-08
Patch Changes
-
Add support for attribute filtering for
useActive
anduseAttrs
hooks when used with marks.This provides consistent behaviour for the hook, aligning with functionality provided for node types.
const active = useActive(); // Previously this ignored passed attributes and only checked the mark's type // // Now this will only return true if mark type is active AND its color attribute is red const isActive = active.textColor({ color: 'red' });
-
Updated dependencies []:
- @remirror/extension-placeholder@1.0.17
- @remirror/extension-positioner@1.1.16
- @remirror/extension-react-component@1.1.6
- @remirror/extension-react-ssr@1.0.17
- @remirror/extension-react-tables@1.0.23
- @remirror/preset-react@1.0.18
- @remirror/react-components@1.0.22
- @remirror/react-core@1.0.21
- @remirror/react-hooks@1.0.22
- @remirror/react-renderer@1.0.17
- @remirror/react-ssr@1.0.17