Changelog History
Page 2
-
v1.0.0-next.47 Changes
October 08, 2020Major Changes
๐ง
56349ca5
#744 Thanks @ifiokjr! - Add new options to theYjsExtension
to support full configuration of they-prosemirror
plugins.๐ฅ BREAKING: ๐ฅ Remove
WebrtcProvider
. It was always required via TypeScript but now the default implementation throws an error if you don't install and provide the provider you want to use. Thereadme
has been updated to reflect this change.๐ฅ BREAKING: ๐ฅ
yjs
is now apeerDependency
and you will need to install it in your codebase to consume theYjsExtension
. This change follows from the above breaking change. For example, to configure any provider will need to provide your desiredDoc
from theyjs
package.Minor Changes
Patch Changes
-
v1.0.0-next.46 Changes
October 06, 2020Minor Changes
๐ง
73e81b43
#739 Thanks @ronnyroeller! - Configure blockseparator to concat multi-block contentgetAnnotations()
return all currently set annotations and enriches them with the text of the annotation. This can be used e.g. to show a list of all annotations outside the editor context. Before, text from multiple blocks (in a multi-block annotation) was concatenated without any separated. Now, one can define via the "blockseparator" option which string to use as separator. For example, one could use a newline character to separate text from different blocks.0198b9fc
#740 Thanks @whawker! - Add strike mark to thejest-prosemirror
schema -
v1.0.0-next.45 Changes
October 01, 2020 -
v1.0.0-next.44 Changes
September 30, 2020Minor Changes
- ๐
60776b1f
#734 Thanks @whawker! - Add support formousedown
andmouseup
events inEventsExtension
Patch Changes
โก๏ธ
bcf3b2c4
#731 Thanks @ifiokjr! - Bump dependencies with minor and patch updates.๐
bcf3b2c4
#731 Thanks @ifiokjr! - Fix support forjest-remirror
with versions before the16
release.๐ Deprecate
jsdomExtras
which has been replaced byjsdomPolyfill
.โ
8ce923a4
#733 Thanks @ifiokjr! - Fix incorrect usage ofendsWith
inValidityTest
s.โก๏ธ Updated dependencies [
bcf3b2c4
]:- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- [email protected]
- ๐
-
v1.0.0-next.43 Changes
September 28, 2020Minor Changes
b030cb6e
#728 Thanks @ifiokjr! - Addtext
property to the return value fromgetMarkRange
. It's a common use case when getting the range of the mark to also extract the text content.
Minor Changes
๐
a02dd7d1
#730 Thanks @ronnyroeller! - Support forcefully redrawing annotations๐ Annotations can be styled with a custom
getStyle
function. Yet, changes to outcome of the function (e.g. when the color schema is dynamically updated) won't automatically reflect in the editor.โก๏ธ
commands.redrawAnnotations
can now be called to force an update.Patch Changes
b674f906
#729 Thanks @ifiokjr! - Make annotation commands chainable.bdea98bf
#725 Thanks @ronnyroeller! - Fix: Don't extend annotation when typing at end of annotationAnnotations auto-adjust as users enter content, e.g. an annotation grows if the user types in the middle of the annotation. Incorrectly, the annotation also grew when the user added content directly after the annotation. Now, this leads to new, non-annotated content.
b674f906
#729 Thanks @ifiokjr! - MakeformatCodeBlock
command chainable.โก๏ธ Updated dependencies [
b674f906
,a02dd7d1
,b674f906
,b674f906
,bdea98bf
,b030cb6e
] -
v1.0.0-next.42 Changes
September 26, 2020Minor Changes
9fa07878
#721 Thanks @ifiokjr! - Add new helpersgetChangedRanges
,getChangedNodeRanges
andgetChangedNodes
which take a transaction and return a list of changed ranges, node ranges or nodes with positions.๐ This is useful for increasing the performance and only checking the parts of the document that have changed between updates.
๐
6f2ababd
#721 Thanks @ifiokjr! - Improve performance of theCodeBlockExtension
by only updating syntax highlighting for the changed code block(s).Patch Changes
๐
ef1f57c2
#718 Thanks @ronnyroeller! - Remove annotations when their content is deletedโก๏ธ Users can create annotations on pieces of content. The annotations are automatically updated as the content is moved around, e.g. if a new word is inserted before the annotation. Yet, the extension missed the case that all annotated content is deleted. Before, this would lead to an empty annotation (to and from parameter are equal). With this commit, annotations are automatically removed when the content is completed deleted.
๐
44754a5d
#723 Thanks @ronnyroeller! - Support multi-line annotations in positionerThe annotation positioner placed the bottom on the bottom of the first line. This meant that a popup placed on the bottom would overlay the rest of a multi-line annotation. Now, the positioner returns the bottom of the last line, allowing to place the popup below all content.
802d5f04
#720 Thanks @ronnyroeller! - Gracefully handle annotations with positions outside the contentAnnotations are loaded separately from the content into the editor (helpers.setAnnotations vs setContent). This can lead to situations where annotations are pointing to positions that are outside the content. For example, the editor shows content with annotations. Then, the user requests to change the content to an empty document. At this point, until helpers.setAnnotations() is called, the editor will have an empty document but still a list of annotations.
At that point, helpers.getAnnotations() would throw the following error because it couldn't find the matching text for the from/to positions: TypeError:
Cannot read property 'nodeSize' of 'undefined'
.d33f43bf
#717 Thanks @ifiokjr! - Fix type annotations forcreateCommands
functions. This was causing issues with inferring all the commands available across the extensions since the types were compiling asany
.The following should now work with full type inference.
import React from 'react';import { useRemirror } from 'remirror/react';const EditorButton = () =\> {const { commands, chain } = useRemirror();return (\<\>\<button onClick={() =\> commands.toggleBulletList()}\>Toggle List\</button\>\<buttononClick={() =\> chain.toggleBold().toggleStrike().toggleItalic()}\> Cray! \</button\>\</\>);};
๐
d33f43bf
#717 Thanks @ifiokjr! - Improve type inference for@remirror/styles/emotion
,@remirror/styles/dom
and@remirror/styles/styled-components
.d33f43bf
#717 Thanks @ifiokjr! - Improve inference formultishift
exports.โก๏ธ Updated dependencies [
ef1f57c2
,44754a5d
,802d5f04
,6f2ababd
,9fa07878
,d33f43bf
] -
v1.0.0-next.41 Changes
September 26, 2020Major Changes
๐ฅ
e4701dc4
#712 Thanks @ifiokjr! - BREAKING: ๐ฅ RenameRemirror.All
toRemirror.AllExtensionUnion
.๐ฑ
83217437
#712 Thanks @ifiokjr! - ๐ AddfindPositionerTracker
,findAllPositionTrackers
andisSelectionEmpty
to builtin helpers.Patch Changes
- ๐
6644a391
#705 Thanks @ronnyroeller! - Support custom annotations for custom styling (typing) e4701dc4
#712 Thanks @ifiokjr! - AddRemirror.AllExtensionUnion
to theuseRemirror
hook. Now the commands and helpers for all extensions should automatically discover their API's.- โก๏ธ Updated dependencies [
e4701dc4
,83217437
,e4701dc4
,6644a391
]
- ๐
-
v1.0.0-next.40 Changes
September 24, 2020Major Changes
๐ฑ
7c5778ed
#700 Thanks @ifiokjr! - ๐ Add support for position tracking toCommandsExtension
.- New commands are available.
commands.addPositionTracker
commands.removePositionTracker
.commands.clearPositionTrackers
.
- New exports from
@remirror/core
includingdelayedCommand
which is a building block for creating your own delayed commands. - BREAKING: ๐ฅ Rename
clearRangeSelection
toemptySelection
and fix a bug where it would always select thefrom
rather than theanchor
. - Add store property
this.store.rawCommands
for access to the original command functions which can sometimes come in handy. Also add it to the manager store and export new type namedRawCommandsFromExtensions
- Add
initialState
as a property of theBaseFramework
. - BREAKING ๐ฅ Require the
Framework
to be attached to the manager before any calls togetState
are allowed. If you're usingjest-remirror
this change might break some of your tests that don't recreate the editor between tests. commands.insertText
now support delayed commands.commands.insertText
now supports adding marks to the added text.commands.insertText('Hello', {marks: {// The empty object
{}
represents the attributes being added.bold: {},},});
๐ฅ
227657ae
#700 Thanks @ifiokjr! - BREAKING: ๐ฅ Remove@remirror/position-tracker
extension from the repository and removeremirror/extension/position-tracker
as a potential import.๐ฅ
add65c90
#700 Thanks @ifiokjr! - BREAKING: ๐ฅ Remove exports forflatten
andemptyCommandFunction
which are unused in the codebase and not very practical.โก๏ธ Update API for
findChildrenByAttribute
to only support an object of attributeNames and literal value or predicate value.const mergedCells = findChildrenByAttribute({node: table,attrs: { colspan: 2, id: (\_, exists) =\> exists },});
Minor Changes
89bd1e86
#702 Thanks @ronnyroeller! - Visualize the amount of overlapping annotations๐ The annotation-extension would allow to style individual annotations via a CSS class. This led to issues with overlapping annotations. For example, if an annotation with a red background and another with a green background were overlapping, the editor would show (more or less) randomly one of the two colors. Now, the annotation-extension allows users to style decorations based on all overlapping annotations within a given decoration. The default implementation visualizes overlapping annotations by showing a darker shade the more annotations are overlapping.
๐
07aab2e8
#700 Thanks @ifiokjr! - Improve style output and fix CSS output issues.643555cc
#700 Thanks @ifiokjr! - ExportcreateEditorView
from@remirror/react
.Patch Changes
- โก๏ธ
cbf15ec4
#698 Thanks @ifiokjr! - Fix badsetState()
warning when rendering a controlledRemirrorProvider
with child component. By wrapping the controlled state update withinuseLayoutEffect
hook,updates now synchronously happen during the commit phase.useEffect
caused errors in ProseMirror due to the asynchronous update. cbf15ec4
#698 Thanks @ifiokjr! - CheckEditorView
has been added to framework before removing the focus and blur listeners.- ๐
4b1d99a6
#700 Thanks @ifiokjr! - Fix type ofRemirrorJSON
attrs to support allLiteral
values. 1808a9e9
#700 Thanks @ifiokjr! - Pass command through toonMentionChange
to fix #701 and give users control over when they want to ensure the mention is created.- โก๏ธ Updated dependencies [
7c5778ed
,cbf15ec4
,add65c90
,89bd1e86
,4b1d99a6
,cbf15ec4
,fd694d61
,1808a9e9
,643555cc
]:- @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]
- @remirror/[email protected]
- New commands are available.
-
v1.0.0-next.39 Changes
September 16, 2020