remirror v0.3.0 Release Notes

Release Date: 2019-07-06 // almost 5 years ago
  • โž• Added

    • ๐Ÿšš @remirror/react: Add withoutEmotion which, when set to true, removes emotion (css-in-js) from the Remirror component. This is for those who don't like css-in-js and would like to work directly with the raw editor without random styles injected. Consuming the @remirror/react-components or any of the @remirror/editor-* packages will require the use of emotion.
    • @remirror/react-utils: Add oneChildOnly export which throws readable errors for invalid children props.

    ๐Ÿ”„ Changed

    • ๐Ÿ’ฅ ๐Ÿ’ฅ BREAKING @remirror/react-utils: Rename childIsFunction to propIsFunction and make it a pseudo predicate function (returns true when it doesn't throw an error).
    • ๐Ÿ’ฅ ๐Ÿ’ฅ BREAKING @remirror/react: Rename setChildAsRoot to childAsRoot on RemirrorContextProviderProps and all it consumers. This affects the RemirrorContextProvider, RemirrorProvider and ManagedRemirrorProvider exports. The prop now can take a boolean or the object with props to inject into the root.
    • ๐Ÿ’ฅ ๐Ÿ’ฅ BREAKING @remirror/editor-twitter: Rename uiTwitterTheme to TwitterEditorTheme.
    • ๐Ÿ’ฅ ๐Ÿ’ฅ BREAKING @remirror/core: Rename HasExtensions to ExtensionListParams.
    • ๐Ÿ’ฅ ๐Ÿ’ฅ BREAKING @remirror/core: It is now up to extensions to decide whether commands should be active when the editor is editable. isEditable method is now passed into the commands method as a means of checking.
    • ๐Ÿ’ฅ ๐Ÿ’ฅ BREAKING @remirror/react: All RemirrorProviders now require a children prop. This prevents a bug when rendering in non-dom environments.

    • โž• Add support for Git Large File Storage (LFS)

    • โœ… @remirror/editor-twitter, @remirror/editor-wysiwyg : Use image-snapshot testing to ensure SSR and DOM rendered editors are identical.

    • โšก๏ธ Update husky command from yarn stop:hooks and yarn start:hooks to yarn husky:stop and yarn husky:start.

    โœ‚ Removed

    • ๐Ÿ’ฅ BREAKING @remirror/react-utils @remirror/react @remirror/editor-markdown @remirror/editor-wysiwyg: Remove customRootProp from RemirrorProps.
    • ๐Ÿ’ฅ ๐Ÿ’ฅ BREAKING @remirror/core: Remove isEditable guard from command functions. It is now up to the command or the caller to decide if it should run when the editor is not editable. To help with this command params with the method isEditable are passed to the commands method of the extension.
    • ๐Ÿ’ฅ ๐Ÿ’ฅ BREAKING @remirror/core: Remove exports GetItemParamsMethod createFlexibleFunctionMap hasExtensionProperty extensionPropertyMapper transformExtensionMap ignoreFunctions.