remirror v0.5.0 Release Notes
Release Date: 2019-09-23 // over 4 years ago-
โ Added
- ๐ ๐
@remirror/react-hooks
: New package for shared react hooks. - ๐ ๐
@remirror/react-portals
: New package for the remirror / react portals. - ๐ ๐
@remirror/react-node-view
: New package for prosemirror node views built with react components. - ๐ ๐
@remirror/dev
: New package developing extensions and components. - ๐ ๐
prosemirror-suggest
: New package for managing prosemirror suggestions. - ๐ ๐
test-keyboard
: New package for dispatching keyboard events. - ๐ป ๐
@remirror/ui
,@remirror/ui-buttons
,@remirror/ui-dropdown
,@remirror/ui-icons
,@remirror/ui-menus
,@remirror/ui-modal
,@remirror/ui-text
: New packages and several utilities for managing the ui of a remirror editor. - ๐
@remirror/core
: Introduce the concept of meta tags for extensions. These allow an extension to tag itself and these tags are made available through the tag object which is passed to all extension methods. - ๐
@remirror/core
: Add ahelpers
method to extensions. These are similar to commands except they don't have access to the view and shouldn't directly affect the editor. They can also return data and receive custom parameters. They can be accessed withmanager.data.helpers.myHelper()
. - ๐
@remirror/core-extensions
: AddTrailingNodeExtension
to always append a specified node to the end of the dom. @remirror/core
: AddgetExtraAttrs
method to the extension which can be used in the(Mark/Node)Extension
.- ๐
@remirror/core
: AddDropCursorExtension
for a cursor to show up at the exact location an item will be dropped. ๐ ๐
@remirror/core
: AddGapCursorExtension
for support of tricky to select locations.0๏ธโฃ Introduce new
@builtin
annotation to show when an extension is included by default.Introduce new
@schema
annotation for extension options to indicated that an option should not be updated after creating or it will change the schema.๐ New command
yarn generate:json
which auto generates json files forsupport/rollup/rollup.config.js
,support/storybook/.babelrc.js
,support/tsconfig.paths.json
and.size-limit.json
. Previously these were maintained manually.
๐ Changed
- ๐ฅ ๐ฅ BREAKING
@remirror/react-renderer
: Updated the name of@remirror/renderer-react
for consistency. - ๐ฅ ๐ฅ BREAKING
@remirror/core
:@emotion/core
is now apeerDependency
. When adding this library to your project you will need toyarn add @emotion/core
as well. This is required to prevent bugs with version conflicts within the EmotionThemeProvider. - ๐ฅ ๐ฅ BREAKING
@remirror/core
:deepMerge
now takes multiple parameters instead of one array of objects to merge. - ๐ฅ ๐ฅ BREAKING
@remirror/core
@remirror/core-extensions
and all extensions: Refactor ExtensionTypes with a whole set of helpers for better type checking and self documenting types. Now the remirror component can receive the List of Extensions and from this infer the nodes, marks and actions available on any editor. Currently this inference has only been added to the Wysiwyg editor but will be added to the Twitter editor and all future editors. - ๐ฅ ๐ฅ BREAKING
@remirror/core
@remirror/core-extensions
: MoveParagraphExtension
from core to core-extensions. The reason is to not pollute the core library with formatting methods which are primarily just for extensions. - ๐ฅ ๐ฅ BREAKING
@remirror/core
: RenameExtensionType.EXTENSION = 'extension'
toExtensionType.Plain = 'plain'
. - ๐ฅ ๐ฅ BREAKING
@remirror/ui
: Rename@remirror/react-components
to@remirror/ui
. It is now the base component that will be used for all ui related functionality. - ๐ฅ ๐ฅ BREAKING
@remirror/react-utils
: Refactor the type signature of node views and improve their design. Now node view takes attrs and options. - ๐ฅ ๐ฅ BREAKING
@remirror/react
: RenameNodeViewPortalComponent
toRemirrorPortals
since it now supports decorations. - ๐ฅ ๐ฅ BREAKING
@remirror/react
: Change the name ofuseRemirror
touseRemirrorContext
. - ๐ฅ ๐ฅ BREAKING
@remirror/editor-social
: Rename@remirror/editor-twitter
to@remirror/editor-social
for branding reasons. - ๐ฅ ๐ฅ BREAKING
@remirror/core
: RenameNodeViewPortalContainer
toPortalContainer
. - ๐ฅ ๐ฅ BREAKING
@remirror/core
: Refactor the type signature of SSRComponents to only take a node and optionsextraAttrs
configuration to enable parsing the dom. ๐ฅ ๐ฅ BREAKING
jest-prosemirror
: Names of matchers have been changed.transformsPMNode
is nowtoTransformNode
andtoEqualPMNode
is nowtoEqualProsemirrorNode
.โก๏ธ
@remirror/core
: UpdateextraAttrs
configuration to enable parsing the dom.0๏ธโฃ
@remirror/core
: Make default priority level for extensions3
instead of2
. A lower number means the extension is deemed more important and ordered earlier in lists.@remirror/core-extensions
: AddextraAttrs
to the following extensions:LinkExtension
,ParagraphExtension
,HeadingExtension
.
โ Removed
- ๐ฅ ๐ฅ BREAKING
@remirror/renderer-react
: Removed package. - ๐ฅ ๐ฅ BREAKING
@remirror/react-utils
: Remove placeholder prop from theRemirrorManager
. - ๐ฅ ๐ฅ BREAKING
@remirror/react
: Remove higher order components. - ๐ฅ ๐ฅ BREAKING
@remirror/react
: RemovewithoutEmotion
prop. This should now be configured via theRemirrorThemeProvider
component.
- ๐ ๐