Bot releases are visible (Hide)
Published by github-actions[bot] over 2 years ago
2022-05-27
false
when list indent and dedent commands won't work.Make sure NodeFormattingExtension works well with list extensions for Tab
and Shift-Tab
shortcuts.
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-05-24
Add a built in extension allowing external code to subscribe to document changes.
manager.getExtension(DocChangedExtension).addHandler('docChanged', mock);
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-05-24
Add a built in extension allowing external code to subscribe to document changes.
manager.getExtension(DocChangedExtension).addHandler('docChanged', mock);
Add a hook, and 2 React components to simplify subscribing to document changes.
Adds a useDocChanged
hook, which when given a handler function, calls it with the transactions and state when document is changed.
import { useCallback } from 'react';
import { useDocChanged } from '@remirror/react';
useDocChanged(
useCallback(({ tr, transactions, state }) => {
console.log('Transaction', tr);
console.log('Transactions', transactions);
console.log('EditorState', state);
}, []),
);
Also adds two React components, OnChangeJSON
and OnChangeHTML
which accept a handler function, which is called with the JSON or HTML serialisation of doc state, whenever the document is changed.
import { useCallback } from 'react';
import { OnChangeJSON, OnChangeHTML } from '@remirror/react';
const handleChangeJSON = useCallback((json) => {
console.log('JSON serialised state', json);
}, []);
const handleChangeHTML = useCallback((html) => {
console.log('HTML serialised state', html);
}, []);
return (
<Remirror manager={manager} autoRender>
<OnChangeJSON onChange={handleChangeJSON} />
<OnChangeHTML onChange={handleChangeHTML} />
</Remirror>
);
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-05-18
min
, max
or clamp
. Avoid error if value cannot be parsed.min,
maxand
clamp) to
extractPixelSize`.Fix paste of tables in React Tables extension
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-05-18
min,
maxand
clamp) to
extractPixelSize`.Fix paste of tables in React Tables extension
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
2022-05-11
Remove annotation support from yjs-extension
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-05-05
Add support for autoLinkAllowedTLDs
which enables the restriction of auto links to a set of Top Level Domains (TLDs). Defaults to the top 50 TLDs (as of May 2022).
For a more complete list, you could replace this with the tlds
or global-list-tlds
packages.
Or to extend the default list you could
import { LinkExtension, TOP_50_TLDS } from 'remirror/extensions';
const extensions = () => [
new LinkExtension({ autoLinkAllowedTLDs: [...TOP_50_TLDS, 'london', 'tech'] }),
];
Tweak auto link regex to prevent match of single digit domains (i.e. 1.com) and remove support for hostnames ending with "." i.e. "remirror.io."
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-05-05
Allow transformMatch
to invalidate a paste rule by explicitly returning false
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-05-03
Simplify the paste rule regex.
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-05-03
Paste multiple block nodes correctly.
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-05-03
Insert emoticons when hitting the Enter key (rather than requiring a space)
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-04-26
Add a new hook useExtensionEvent
. You can use it to add event handlers to your extension. It's simpler and easier to use than the existed useExtension
hook.
It accepts an extension class, an event name and a memoized handler. It's important to make sure that the handler is memoized to avoid needless updates.
Here is an example of using useExtensionEvent
:
import { useCallback } from 'react';
import { HistoryExtension } from 'remirror/extensions';
import { useExtensionEvent } from '@remirror/react';
const RedoLogger = () => {
useExtensionEvent(
HistoryExtension,
'onRedo',
useCallback(() => log('a redo just happened'), []),
);
return null;
};
Fix a crash with React v18 in development mode.
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-04-25
Fixes iframe dimensions not being preserved on content restored - https://github.com/remirror/remirror/issues/1615
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-04-25
Fix a potential out of range error.
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-04-21
Avoid adding pluginState
to the constructor, as it leading to sharing between multiple instances
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-04-21
Avoid adding pluginState
to the constructor, as it leading to sharing between multiple instances
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-04-20
Reorder the external plugins of the tables extensions, to avoid highlighting cells while resizing.
Proposed by Pierre_ on Discord
Create a "stepping stone" for future standardisation of useEvent types
Add a second parameter to handlers for hover
and contextmenu
types, so we can eventually standarise the hook to pass event as the first argument.
const handleHover = useCallback(({ event: MouseEvent }, props: HoverEventHandlerState) => {
const { getNode, hovering, ...rest } = props;
console.log('node', getNode(), 'is hovering', hovering, 'rest', rest);
return false;
}, []);
useEvent('hover', handleHover);
Prevent onUpdateLink from being called in nodes that disallow marks
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-04-20
Reorder the external plugins of the tables extensions, to avoid highlighting cells while resizing.
Proposed by Pierre_ on Discord
Create a "stepping stone" for future standardisation of useEvent types
Add a second parameter to handlers for hover
and contextmenu
types, so we can eventually standarise the hook to pass event as the first argument.
const handleHover = useCallback(({ event: MouseEvent }, props: HoverEventHandlerState) => {
const { getNode, hovering, ...rest } = props;
console.log('node', getNode(), 'is hovering', hovering, 'rest', rest);
return false;
}, []);
useEvent('hover', handleHover);
Updated dependencies []:
Published by github-actions[bot] over 2 years ago
2022-04-06
Fix a RangeError when the document is updated during the resizing.
Updated dependencies []: