2020-10-10
-
Forced update in pre-release mode.
-
Updated dependencies []:
- @remirror/core-constants@1.0.0-next.49
- @remirror/pm@1.0.0-next.49
2020-10-08
-
Updated dependencies [
4658d45c
]:- @remirror/pm@1.0.0-next.47
2020-09-30
- Updated dependencies [
bcf3b2c4
]:- @remirror/pm@1.0.0-next.44
2020-09-24
-
4b1d99a6
#700 Thanks @ifiokjr! - Fix type ofRemirrorJSON
attrs to support allLiteral
values. -
Updated dependencies [
fd694d61
]:- @remirror/pm@1.0.0-next.40
2020-09-16
- Updated dependencies [
61894188
]:- @remirror/pm@1.0.0-next.39
2020-09-16
- Updated dependencies [
14e48698
]:- @remirror/pm@1.0.0-next.38
2020-09-14
- Updated dependencies [
5a3dd95f
]:- @remirror/pm@1.0.0-next.37
2020-09-13
4fee3e94
#676 Thanks @ifiokjr! - AddchainableEditorState
which makes theEditorState
chainable with a shared transaction. Also set the@remirror/pm
entry point to export types and utility methods. This is now used in the core libraries.
-
725df02b
#672 Thanks @ifiokjr! - Reduce bundle size by updating babel configuration thanks to help from preconstruct/preconstruct/297. Fixes #358. -
Updated dependencies [
725df02b
,4fee3e94
]:- @remirror/core-constants@1.0.0-next.35
- @remirror/pm@1.0.0-next.35
2020-09-10
- Updated dependencies [
27b358e4
]:- @remirror/core-constants@1.0.0-next.34
- @remirror/pm@1.0.0-next.34
2020-09-07
- 525ac3d8: Add
AcceptUndefined
annotation which allows options to accept undefined as their default value. - 92ed4135: Add new
AnchorHeadParameter
export and make it a part ofPrimitiveSelection
type.
- Updated dependencies [7a34e15d]
- @remirror/core-constants@1.0.0-next.33
2020-09-05
- Updated dependencies [
a830c70f
]:- @remirror/core-constants@1.0.0-next.32
- @remirror/pm@1.0.0-next.32
2020-08-27
- Updated dependencies [
d5bbeb4e
]:- @remirror/pm@1.0.0-next.28
2020-08-24
- Updated dependencies [a2bc3bfb]
- @remirror/core-constants@1.0.0-next.26
- @remirror/pm@1.0.0-next.26
2020-08-17
-
45d82746: π₯ Remove
AttributesWithClass
.π Add
NodeAttributes
andMarkAttributes
exports which can be extended in theRemirror.ExtraNodeAttributes
andRemirror.ExtraMarkAttributes
.π Add
isAllSelection
which checks if the user has selected everything in the active editor.
- Updated dependencies [9ab1d0f3]
- @remirror/core-constants@1.0.0-next.22
- @remirror/pm@1.0.0-next.22
2020-08-15
-
3673a0f0: Fix #518 caused by the way the
EditorWrapper
was setting up listeners to events from theRemirrorManager
. Previously the failure became apparent when used in an uncontrolled editor inStrictMode
.Set the default
CommandFunction
type parameter to beEditorSchema
for better code completion when creating an extension.- @remirror/pm@1.0.0-next.21
2020-08-14
-
8f9eb16c: Enable
all
selection when setting initial content and focusing on the editor.import React from 'react'; import { useRemirror } from 'remirror/react'; const EditorButton = () => { const { focus } = useRemirror(); return <button onClick={() => focus('all')} />; };
- Updated dependencies [770e3d4a]
- Updated dependencies [92653907]
- @remirror/pm@1.0.0-next.20
2020-08-01
-
6c6d524e: Breaking Changes π₯
Rename
contains
tocontainsNodesOfType
.Make
isValidPresetConstructor
internal only.Remove
EMPTY_CSS_VALUE
,CSS_ROTATE_PATTERN
from@remirror/core-constants
.Remove method:
clean() | coerce() | fragment() | markFactory() | nodeFactory() | offsetTags() | sequence() | slice() | text() | isTaggedNode() | replaceSelection()
and type:BaseFactoryParameter | MarkWithAttributes | MarkWithoutAttributes | NodeWithAttributes | NodeWithoutAttributes | TagTracker | TaggedContent | TaggedContentItem | TaggedContentWithText | Tags
exports fromjest-remirror
.Remove
SPECIAL_INPUT_KEYS | SPECIAL_KEYS | SPECIAL_MENU_KEYS | SPECIAL_TOGGLE_BUTTON_KEYS
frommultishift
.
-
6528323e: Breaking:
@remirror/preset-core
-CreateCoreManagerOptions
now extendsRemirror.ManagerSettings
.Breaking:
@remirror/preset-wysiwyg
- RenameCreateWysiwygPresetListParameter
toCreateWysiwygPresetListOptions
. Also it now extendsRemirror.ManagerSettings
. Breaking:@remirror/react
-CreateReactManagerOptions
now extendsRemirror.ManagerSettings
. Breaking:@remirror/react-social
-CreateSocialManagerOptions
now extendsRemirror.ManagerSettings
.Breaking:
@remirror/react
,@remirror/react-social
,@remirror/react-wysiwyg
now uses asettings
property for manager settings.@remirror/core-types
- AddGetStaticAndDynamic<Options>
helper for extracting options from extension. Apply it to the packages mentioned above.@remirror/react-wysiwyg
- Update imports from@remirror/preset-wysiwyg
.
-
a7037832: Use exact versions for
@remirror
packagedependencies
andpeerDepedencies
.Closes #435
-
dcccc5fc: Add browser entrypoint to packages and shrink bundle size.
-
231f664b: Upgrade dependencies.
-
6c6d524e: Remove use of
export *
for better tree shaking.Closes #406
-
Updated dependencies [a7037832]
-
Updated dependencies [dcccc5fc]
-
Updated dependencies [231f664b]
-
Updated dependencies [6c6d524e]
-
Updated dependencies [6c6d524e]
- @remirror/core-constants@1.0.0-next.16
- @remirror/pm@1.0.0-next.16
2020-07-29
-
e45706e5: Add new
extensionDecorator
function which augments the static properties of anExtension
constructor when used as a decorator.The following code will add a decorator to the extension.
import { extensionDecorator, ExtensionPriority, PlainExtension } from 'remirror/core'; interface ExampleOptions { color?: string; /** * This option is annotated as a handler and needs a static property. **/ onChange?: Handler<() => void>; } @extensionDecorator<ExampleOptions>({ defaultOptions: { color: 'red' }, defaultPriority: ExtensionPriority.Lowest, handlerKeys: ['onChange'], }) class ExampleExtension extends PlainExtension<ExampleOptions> { get name() { return 'example' as const; } }
The extension decorator updates the static properties of the extension. If you prefer not to use decorators it can also be called as a function. The
Extension
constructor is mutated by the function call and does not need to be returned.extensionDecorator({ defaultSettings: { color: 'red' } })(ExampleExtension);
-
Updated dependencies [92342ab0]
- @remirror/core-constants@1.0.0-next.13
2020-07-20
- e06a3623: Upgrade package dependencies.
- Updated dependencies [e06a3623]
- @remirror/core-constants@1.0.0-next.6
2020-07-16
- 5d5970ae: Update repository and website field to point to HEAD rather than a specific branch.
- Updated dependencies [5d5970ae]
- @remirror/core-constants@1.0.0-next.4
- @remirror/pm@1.0.0-next.4
2020-07-11
- Updated dependencies [e90bc748]
- @remirror/pm@1.0.0-next.3
2020-07-05
- Fix missing dist files from previous publish.
- Updated dependencies [undefined]
- @remirror/core-constants@1.0.0-next.1
- @remirror/pm@1.0.0-next.1
2020-07-05
-
The whole API for remirror has completely changed. These pre-release versions are a breaking change across all packages. The best way to know what's changed is to read the documentaion on the new documentation site
https://remirror.io
. -
28bd8bea: This is a breaking change to the structure of published npm packages.
- Move build directory from
lib
todist
- Remove option for multiple entry points. It is no longer possible to import module from '@remirror/core/lib/custom'
- Only use one entry file.
- Remove declaration source mapping for declaration files
- Remove the src directory from being published.
- Move build directory from
-
7b817ac2: Rename all types and interfaces postfixed with
Params
to use the postfixParameter
. If your code was importing any matching interface you will need to update the name.
- Updated dependencies [undefined]
- Updated dependencies [28bd8bea]
- Updated dependencies [7b817ac2]
- @remirror/core-constants@1.0.0-next.0
- @remirror/pm@1.0.0-next.0
- 0300d01c: - Auto defined
isEnabled
via commands withdispatch=undefined
.HistoryExtension
now checks that whetherdispatch=undefined
.- Remove
CommandStatusCheck
. - Add new type
ExtensionIsActiveFunction
which doesn't take the command name. - Remove
isEnabled
fromExtension
interface.
-
24f83413: - Change the signature of
CommandFunction
to only accept one parameter which containsdispatch
,view
,state
.- Create a new exported
ProsemirrorCommandFunction
type to describe the prosemirror commands which are still used in the codebase. - Rename
KeyboardBindings
toKeyBindings
. AllowCommandFunctionParams
to provide extra parameters likenext
in the newly namedKeyBindings
. - Create a new
KeyBindingCommandFunction
to describe theExtension.keys()
return type. Update the name of theExcludeOptions.keymaps
->ExcludeOptions.keys
.
BREAKING CHANGE
- Create a new exported
- 7380e18f: Update repository url from ifiokjr/remirror to remirror/remirror to reflect new GitHub organisation.
- Updated dependencies [7380e18f]
- @remirror/core-constants@0.7.4
- @remirror/react-portals@0.7.4
- 5f85c0de: Bump a new version to test out the changeset API.
- Updated dependencies [5f85c0de]
- @remirror/core-constants@0.7.3
- @remirror/react-portals@0.7.3