remirror v1.0.0-next.31 Release Notes
Release Date: 2020-09-03 // over 3 years ago-
Major Changes
โก๏ธ
1a7da61a
#608 Thanks @ifiokjr! - ๐ Update theonError
handler with a new improved type signature for better management of errors. See the following example.import React from 'react';import { RemirrorProvider, InvalidContentHandler } from 'remirror/core';import { RemirrorProvider, useManager } from 'remirror/react';import { WysiwygPreset } from 'remirror/preset/wysiwyg';const EditorWrapper = () =\> {const onError: InvalidContentHandler = useCallback(({ json, invalidContent, transformers }) =\> {// Automatically remove all invalid nodes and marks.return transformers.remove(json, invalidContent);},[],);const manager = useManager([new WysiwygPreset()]);return (\<RemirrorProvider manager={manager} onError={onError}\>\<div /\>\</RemirrorProvider\>);};
- ๐ Add
set
andunset
methods to@remirror/core-helpers
. - ๐ Add
getInvalidContent
export from@remirror/core-utils
. - ๐ Add logging support for
RemirrorError
for better readability. - ๐ Add new
ErrorConstant.INVALID_CONTENT
constant for content related errors. - ๐ Add
Manager.createEmptyDoc()
instance method for creating any empty doc (with default content) for the current schema. - ๐ฅ Remove
Fallback
,CreateDocumentErrorHandler
,getLineHeight
,getPluginMeta
,getPluginState
,nodeNameMatchesList
andsetPluginMeta
exports from@remirror/core-utils
. - ๐ฅ Rename
getNearestNonTextNode
function togetNearestNonTextElement
. - ๐ฅ Rename
getNearestNonTextNode
function togetNearestNonTextElement
. - ๐ฅ Rename
StateOrTransactionParameter
interface toTrStateParameter
.
๐จ General refactor of types to use the
EditorSchema
rather thanany
. If you notice any downstream issues please open an issue.โก๏ธ
e8458bc5
#623 Thanks @ifiokjr! - Remove keybindings fromcreateSuggesters
and update packages to match the newprosemirror-suggest
API.๐ฆ
e8458bc5
#623 Thanks @ifiokjr! - Add support for creating mentions as uneditable nodes with a new package@remirror/extension-mention-atom
.๐ฆ
e8458bc5
#623 Thanks @ifiokjr! - New package@remirror/react-hooks
with support for all core hooks`.Minor Changes
e8458bc5
#623 Thanks @ifiokjr! - AddselectText
command toCommandsExtension
. Also adddispatchCommand
for running custom commands toCommandsExtension
.๐ Fix broken command text selection in
jest-remirror
and improvejest-remirror
type inference for therenderEditor().view
property.๐
e8458bc5
#623 Thanks @ifiokjr! - Add support for using a custom schema when creating the editor.- Also add support for additional
plugins
andnodeView
's via the manager settings.0๏ธโฃ
e8458bc5
#623 Thanks @ifiokjr! - Add manager settingschema
for creating a remirror manager with a customEditorSchema
. When provided this is used to bypass the default schema creation. Be aware that when this is usedextraAttributes
will no longer work.Patch Changes
- โก๏ธ Updated dependencies [
e8458bc5
,e8458bc5
,1a7da61a
,e8458bc5
,e8458bc5
,e8458bc5
,e8458bc5
]:- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- ๐ Add