github remirror/remirror @remirror/react@1.0.32

2 years ago

2022-04-20

Patch Changes

  • Reorder the external plugins of the tables extensions, to avoid highlighting cells while resizing.

    Proposed by Pierre_ on Discord

  • Prevent marks in MentionAtom, to prevent input rules being triggered within the node
  • Fix an error with auto link preventing input rules at the end of a document
  • Create a "stepping stone" for future standardisation of useEvent types

    Add a second parameter to handlers for hover and contextmenu types, so we can eventually standarise the hook to pass event as the first argument.

    const handleHover = useCallback(({ event: MouseEvent }, props: HoverEventHandlerState) => {
      const { getNode, hovering, ...rest } = props;
      console.log('node', getNode(), 'is hovering', hovering, 'rest', rest);
    
      return false;
    }, []);
    
    useEvent('hover', handleHover);
  • Updated dependencies []:

    • @remirror/extension-react-tables@1.0.32
    • @remirror/react-components@1.0.29
    • @remirror/react-hooks@1.0.29
    • @remirror/extension-placeholder@1.0.22
    • @remirror/extension-positioner@1.2.3
    • @remirror/extension-react-component@1.1.10
    • @remirror/extension-react-ssr@1.0.21
    • @remirror/preset-react@1.0.23
    • @remirror/react-core@1.1.2
    • @remirror/react-renderer@1.0.21
    • @remirror/react-ssr@1.0.21

Don't miss a new remirror release

NewReleases is sending notifications on new releases.