Changelog History
Page 1
-
v1.0.0-next.58 Changes
November 29, 2020 -
v1.0.0-next.57 Changes
November 26, 2020🛠 Fixes
4ae3c9b2
#812 Thanks @whawker! - Fix rendered HTML when selecting or applying marks to part of a link.Behaviour before fix.
\<p\>\<a href="/"\>My partially\</a\>\<a href="/"\>\<span class="selection"\>selected\</span\>\</a\>\<a href="/"\>link\</a\>\</p\>
Behaviour after fix.
\<p\>\<a href="/"\> My partially \<span class="selection"\>selected\</span\> link \</a\>\</p\>
-
v1.0.0-next.56 Changes
November 24, 2020 -
v1.0.0-next.55 Changes
November 20, 2020🆕 New Features
1adea88a
#801 Thanks @ifiokjr! - Add new primitive commands toCommandsExtension
.setBlockNodeType
toggleWrappingNode
toggleBlockNodeItem
wrapInNode
-
removeMark
ee1ab4f3
#805 Thanks @ifiokjr! - AddGetMarkRange
interface to exports from@remirror/core-utils
.1adea88a
#801 Thanks @ifiokjr! - Improve type signatures of command utility functions to also include an optional range.👀
4bdcac77
#805 Thanks @ifiokjr! - Addclick
andclickMark
handlers to theEventsExtension
. These new events are available to hooks created withuseExtension(EventsExtension)
and also exposed via the newcreateEventHandlers
extension method. These methods provides utilities for determining whether the position clicked was within a specific node or mark.👀
b65ea785
#805 Thanks @ifiokjr! - AddonClick
handler toLinkExtension
which is called with theevent: MouseEvent
anddata: LinkClickData
which includes thehref
and all theGetMarkRange
properties.📦 Export extra types from the
@remirror/extension-link
package.LinkAttributes
LinkClickData
-
DefaultProtocol
👀
3ee20d40
#805 Thanks @ifiokjr! - AddonClick
handler toMentionExtension
which is called withevent: MouseEvent
andmarkRange: GetMarkRange
.👀
c2268721
#805 Thanks @ifiokjr! - AddonClick
handler toMentionAtomExtension
which is called with theevent: MouseEvent
andnodeWithPosition: NodeWithPosition
.🛠 Fixes
-
v1.0.0-next.54 Changes
November 19, 2020🔋 Features
📦
b1df359b
#780 Thanks @ocavue! - Add new@remirror/extension-codemirror5
package which can be used as an alternative to the@remirror/extension-codeblock
for representing code blocks with syntax highlighting in your editor.📦
d720bcd4
#791 Thanks @ifiokjr! - Rename codemirror package to include the version number:@remirror/extension-codemirror5
. This is to allow a future seperate version which supportscodemirror@6
.👀 Make
codemirror
and@types/codemirror
peer dependencies of the@remirror/extension-codemirror5
package. Most setups will need to install codemirror in order to add language support to the code editor. To avoid bundling multiple versions of the same codebase a peer dependency architecture seems to work.Minor Changes
e9d95fa4
#786 Thanks @ifiokjr! - ExportPrioritizedKeyBindings
from@remirror/core
andremirror/core
entry points.🔧
1b5bf359
#788 Thanks @ifiokjr! - Makedraggability
configurable forMentionAtomExtension
as mentioned in #777.🛠 Fixes
🛠
8a6d5c34
#781 Thanks @whawker! - The behaviour ofcommands.updateLink.isEnabled()
has been fixed to returnfalse
when thelink
mark can't be applied to the selection. This was fixed by a change in the@remirror/core-utils
package.e9d95fa4
#786 Thanks @ifiokjr! - Fix problems around destroying theYjsExtension
provider and theCMD+SHIFT+Z
keymap not registering as mentioned in #772.🚚
1a0348e7
#789 Thanks @ifiokjr! - FixremoveMark
when called withdispatch = undefined
. This means thatcommand.<NAME>.isEnabled()
checks should all be fixed if they are usingremoveMark
as mentioned in #784. -
v1.0.0-next.53 Changes
November 12, 2020🛠 Fixes
🛠
a1d65df6
#775 Thanks @whawker! - Fixes extensions that were erroneously adding extra attributes to the DOM twice.Attributes were correctly added using their toDOM handler, but also incorrectly in their raw form.
Example
const linkExtension = new LinkExtension({extraAttributes: {custom: {default: 'my default',parseDOM: (dom) =\> dom.getAttribute('data-custom'),toDOM: (attrs) =\> ['data-custom', attrs.custom],},},});
Resulted in
\<a data-custom="my default" custom="my default" \<!-- extra attribute rendered in raw form --\>href="https://remirror.io" rel="noopener noreferrer nofollow"\>\</a\>
🔀
5fd944c6
#770 Thanks @whawker! - Prevent callouts being merged when removing content in between callout nodes. -
v1.0.0-next.52 Changes
November 06, 2020Major Changes
🍱
bdaa6af7
#767 Thanks @whawker! - 🎉 New extension@remirror/extension-callout
👍 This extension adds support for a new callout node.
⚠ These can be used to add
info
,warning
,error
orsuccess
banners to your document.0️⃣ The default callout type is
info
, but this can be changed by using thedefaultType
option ofCalloutExtension
.import { RemirrorManager } from 'remirror/core';import { CalloutExtension } from 'remirror/extension/callout';import { CorePreset } from 'remirror/preset/core';// Create the callout extensionconst calloutExtension = new CalloutExtension();const corePreset = new CorePreset();// Create the Editor Manager with the callout extension passed through.const manager = RemirrorManager.create([calloutExtension, corePreset]);// Pass the dom element to the editor. If you are using `@remirror/react` or// other framework wrappers then this is handled for you.const element = document.createElement('div');document.body.append(element);// Add the view to the editor manager.manager.addView(element);// Wrap with an error callout at the current selectionmanager.store.commands.toggleCallout({ type: 'error' });
caf2588d
#766 Thanks @ronnyroeller! - Allow links to be clickable0️⃣ Anchor tags in contenteditable are not clickable by default. To allow users nonetheless to open them, this commit adds an optional clickhandler to open the link.
Patch Changes
-
v1.0.0-next.51 Changes
October 27, 2020 -
v1.0.0-next.50 Changes
October 15, 2020Minor Changes
- 0️⃣
d27c6e1a
#758 Thanks @ifiokjr! - Pass throughdefaultAppendTextValue
property toonChange
handler ofMentionExtension
. - ⚡️
359486f6
#754 Thanks @whawker! - Add anonUpdatedLink
event handler to the link extension for determining when a link has been added to the document.
- 👍
d27c6e1a
#758 Thanks @ifiokjr! - SupportEditorState | Selection | ResolvedPos
for thefindParentNodeOfType
function.d27c6e1a
#758 Thanks @ifiokjr! - Don't append text touseMention
hook command when content after starts with whitespace.
Patch Changes
- 0️⃣
-
v1.0.0-next.49 Changes
October 10, 2020