Bot releases are hidden (Show)
Published by ifiokjr about 5 years ago
Published by ifiokjr about 5 years ago
getExtraAttrs
to the Extension
class: dd08f4b19c33413de450d2e9796afd3c6f3e1c9cextraAttrs
to some core-extensions: ca0da7df6b813c8c98b05f684d424574d93a0561TrailingNodeExtension
: f6b1cb831aa359d4dc8628e013dacb1261e5f500Published by ifiokjr about 5 years ago
@remirror/showcase
: Allow the ExampleWysiwygEditor
to use prop suppressHydrationWarning
for SSR rendering.@remirror/showcase
: Revert unintended renaming of ExampleTwitterEditor
to ShowcaseTwitterEditor
.Published by ifiokjr about 5 years ago
This is a large release with a number of breaking changes.
🚀 @remirror/extension-collaboration
: Collaboration library added based on the brilliant example available in tiptap.
🚀 @remirror/extension-mention
: Mentions can now be picked up from pasting data.
🚀 @remirror/extension-code-block
: Add commands toggleCodeBlock
, createCodeBlock
, updateCodeBlock
and formatCodeBlock
, add keymap support for formatting, add backspace support for better navigation and other features.
@remirror/core
: Add CommandNodeTypeParams
, CommandMarkTypeParams
, CommandTypeParams
which is now passed to the commands
method for extensions.
@remirror/react-utils
, @remirror/react
: Add suppressHydrationWarning
prop to Remirror
component. Set to true to ignore the hydration warning for a mismatch between the server and client content.
@remirror/core
: Add new extensionData
method to the ExtensionManager
which allows the extension to provide data on every transaction which will be available for consumption in the renderProp, React Context hooks and HOC's.
@remirror/core
: Add getActions
to the params of all extension manager methods. This will throw an error if called before initialization.
@remirror/core
: Allow extensions to override baseExtension
in the RemirrorManager
component.
@remirror/core
: Add ensureTrailingParagraph
as a configuration option for the paragraph node. In some scenarios, it is difficult to place a cursor after the last element. This ensures there's always space to select the position afterwards and fixes a whole range of issues. It defaults to false otherwise it breaks a lot of tests.
jest-prosemirror
: Enable editorViewOptions for the createEditor
method. For example, now it is possible to intercept transactions with the dispatchTransaction
hook.
@remirror/renderer-react
: Pass extension options through to SSR components as a prop.
Add internal modifier key functions for puppeteer testing.
Add integration editor tests for the Wysiwyg
editor.
@remirror/core
: Change the way commands are configured. The command function on extensions now only accepts an object with the command names being globally unique. For example, the heading extension used to return a function now it returns an object with the following signature.{
toggleHeading(attrs?: Attrs<{level: number}>): CommandFunction;
}
This command can now be accessed via actions.toggleHeading({ level: 2 })
This is a large breaking change and may cause a lot of your existing code to stop working 😢. However, it paves the way for a better development experience, a simpler to manage library and some exciting features using type inference. Please do bear with me as I make these changes. I truly believe they'll be worthwhile.
💥 BREAKING @remirror/core
: Change usage isEnabled
and isActive
which are now methods on the command. e.g. actions.toggleHeading.isEnabled()
would check whether the toggle heading button can be used at this moment.
💥 BREAKING @remirror/core
: Change Extension function signature actions of active
and enabled
.
💥 BREAKING @remirror/core
: Rename getEditorState
to getState
.
💥 BREAKING @remirror/core
: Change method getPortalContainer
to property portalContainer
on the extension manager.
💥 BREAKING @remirror/extension-mention
: Complete rewrite of internals and public API with better tests and more robust editing.
💥 BREAKING @remirror/extension-mention
: Change MentionExtension
from NodeType
to MarkType
. Text is now editable after a mention is created.
💥 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/react
: All RemirrorProviders now require a children
prop. This prevents a bug when rendering in non-dom environments.
💥 BREAKING @remirror/react
: dispatchTransaction
has been renamed to onDispatchTransaction
. It now must return a transaction
and can be used to edit the transaction that will be used to create a new state.
🐛 @remirror/core
: Fix bug with extension manager failing to provide attributes from the extensions.
🐛 @remirror/core
: Fix TypeScript type of SSRComponent. Change from Component
to ComponentType
.
🐛 @remirror/editor-twitter
: Fix bug where text area didn't expand to the full height of editor container.
Published by ifiokjr over 5 years ago
@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.💥 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/editor-twitter
: Rename uiTwitterTheme
to TwitterEditorTheme
.
💥 BREAKING @remirror/core
: Rename HasExtensions
to ExtensionListParams
.
💥 BREAKING @remirror/core
: Rename markActive
to isMarkActive
use a destructured parameters object instead of positional arguments.
💥 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.
@remirror/react
: view.updateState
is now called before Remirror.setState
.
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 and yarn stop:hooks
to yarn start:hooks
yarn husky:stop
and yarn husky:start
.
@remirror/react-utils
@remirror/react
@remirror/editor-markdown
@remirror/editor-wysiwyg
: Remove customRootProp from RemirrorProps
.@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.@remirror/core
: Remove exports GetItemParamsMethod
createFlexibleFunctionMap
hasExtensionProperty
extensionPropertyMapper
transformExtensionMap
ignoreFunctions
.Published by ifiokjr over 5 years ago
remirror/core
: ssrTransformer
added to extension methods as a way of wrapping and transforming the JSX element produced on the server.remirror/core
: SSRComponent: React.ComponentType<any>
option added to MarkExtensionOptions
and NodeExtensionOptions
as a way of overriding the component rendered in an SSR environment.remirror/core
: SSRHelpersExtension
added as a shorthand way of defining SSR transformations via ssrTransformer.remirror/core
: injectBrIntoEmptyParagraphs
added for better SSR rendering.remirror/react-utils
: isReactFragment
added to test if an element is a fragment.v0.1.0
@remirror/ui-*
packages to @remirror/editor-*
for example @remirror/ui-twitter is .now called @remirror/editor-twitter
.remirror/editor-twitter
: Rename UITwitter
and TwitterUI
to TwitterEditor
remirror/editor-markdown
: Rename UIMarkdown
and MarkdownUI
to MarkdownEditor
remirror/editor-wysiwyg
: Rename UIWysiwyg
and WysiwygUI
to WysiwygEditor
tsconfig.lint.json
files).cx
import from emotion
library in from @remirror/core
to reduce the bundle size.@emotion/core
and @emotion/styled
as peer dependencies.@remirror/ui-*
packages.Published by ifiokjr over 5 years ago