Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@remirror/core

Package Overview
Dependencies
Maintainers
1
Versions
335
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remirror/core - npm Package Compare versions

Comparing version 1.0.0-next.3 to 1.0.0-next.4

21

CHANGELOG.md
# @remirror/core
## 1.0.0-next.4
> 2020-07-16
### Minor Changes
- 64edeec2: Add blur method to the editor context which is used in the `@remirror/react` and
`@remirror/dom` libraries.
- 9f495078: Move `suppressHydrationWarning` prop from core to to react editor. It makes no sense for
it to be in core since it only impacts the react editor.
### Patch Changes
- 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/core-helpers@1.0.0-next.4
- @remirror/core-types@1.0.0-next.4
- @remirror/core-utils@1.0.0-next.4
- @remirror/pm@1.0.0-next.4
## 1.0.0-next.3

@@ -4,0 +25,0 @@

6

dist/declarations/src/builtins/commands-extension.d.ts
import { ExtensionPriority } from '@remirror/core-constants';
import { AnyFunction, CommandFunction, EmptyShape, ProsemirrorAttributes, Transaction } from '@remirror/core-types';
import { AnyFunction, CommandFunction, EmptyShape, FromToParameter, ProsemirrorAttributes, Transaction } from '@remirror/core-types';
import { AnyExtension, ChainedFromExtensions, CommandsFromExtensions, CreateLifecycleMethod, PlainExtension, ViewLifecycleMethod } from '../extension';

@@ -51,2 +51,6 @@ import { AnyCombinedUnion, ChainedFromCombined, CommandsFromCombined } from '../preset';

/**
* Delete the provided range or current selection.
*/
delete(range?: FromToParameter): CommandFunction;
/**
* Fire an empty update to trigger an update to all decorations, and state

@@ -53,0 +57,0 @@ * that may not yet have run.

13

dist/declarations/src/builtins/helpers-extension.d.ts

@@ -23,9 +23,12 @@ import { ExtensionPriority } from '@remirror/core-constants';

/**
* Provide a method with access to the helpers for use in commands and helpers.
* Provide a method with access to the helpers for use in commands and
* helpers.
*/
onCreate: CreateLifecycleMethod;
/**
* Helpers are only available once the view has been added to `RemirrorManager`.
* Helpers are only available once the view has been added to
* `RemirrorManager`.
*/
onView: ViewLifecycleMethod;
createHelpers: () => {};
}

@@ -40,3 +43,4 @@ declare global {

/**
* Check which nodes and marks are active under the current user selection.
* Check which nodes and marks are active under the current user
* selection.
*

@@ -93,3 +97,4 @@ * ```ts

*
* This pseudo property makes it easier to infer Generic types of this class.
* This pseudo property makes it easier to infer Generic types of this
* class.
* @private

@@ -96,0 +101,0 @@ */

@@ -17,3 +17,3 @@ import { ExtensionPriority } from '@remirror/core-constants';

export declare class NodeViewsExtension extends PlainExtension {
static readonly defaultPriority = ExtensionPriority.High;
static readonly defaultPriority = ExtensionPriority.Default;
get name(): "nodeView";

@@ -20,0 +20,0 @@ /**

@@ -12,3 +12,3 @@ import { ExtensionPriority } from '@remirror/core-constants';

export declare class PasteRulesExtension extends PlainExtension {
static readonly defaultPriority = ExtensionPriority.High;
static readonly defaultPriority = ExtensionPriority.Default;
get name(): "pasteRules";

@@ -15,0 +15,0 @@ /**

@@ -16,3 +16,3 @@ import { ExtensionPriority } from '@remirror/core-constants';

export declare class SuggestionsExtension extends PlainExtension {
static readonly defaultPriority = ExtensionPriority.High;
static readonly defaultPriority = ExtensionPriority.Default;
get name(): "suggestions";

@@ -19,0 +19,0 @@ /**

@@ -129,4 +129,4 @@ import { Unsubscribe } from 'nanoevents';

/**
* Creates the parameters passed into all event listener handlers.
* e.g. `onChange`
* Creates the parameters passed into all event listener handlers. e.g.
* `onChange`
*/

@@ -139,2 +139,7 @@ protected eventListenerParameter(parameter?: ListenerParameter<Combined>): RemirrorEventListenerParameter<Combined>;

/**
* Remove the focus from the editor. If the editor is not focused it will do
* nothing.
*/
protected readonly blur: () => void;
/**
* Dispatch the text selection

@@ -265,32 +270,8 @@ */

/**
* Set to true to ignore the hydration warning for a mismatch between the
* rendered server and client content.
* The value to use for empty content, or content with an error.
*
* @remarks
*
* This is a potential solution for those who require server side rendering.
*
* While on the server the prosemirror document is transformed into a react
* component so that it can be rendered. The moment it enters the DOM
* environment prosemirror takes over control of the root element. The problem
* is that this will always see this hydration warning on the client:
*
* `Warning: Did not expect server HTML to contain a <div> in <div>.`
*
* Setting this to true removes the warning at the cost of a slightly slower
* start up time. It uses the two pass solution mentioned in the react docs.
* See {@link https://reactjs.org/docs/react-dom.html#hydrate}.
*
* For ease of use this prop copies the name used by react for DOM Elements.
* See {@link
* https://reactjs.org/docs/dom-elements.html#suppresshydrationwarning.
*/
suppressHydrationWarning?: boolean;
/**
* The value to use for empty content, or content with an error..
*
* This is the value used for an empty editor or when `resetContent` is
* called.
*
* @defaultValue EMPTY_PARAGRAPH_NODE
* @defaultValue `EMPTY_PARAGRAPH_NODE`
*/

@@ -340,2 +321,6 @@ onError?: Fallback | CreateDocumentErrorHandler;

/**
* Blur the editor.
*/
blur: () => void;
/**
* A getter function for the current editor state. It's a wrapper around

@@ -342,0 +327,0 @@ * `view.state`.

{
"name": "@remirror/core",
"version": "1.0.0-next.3",
"version": "1.0.0-next.4",
"description": "Where your quest to create a world class editing experience begins.",
"homepage": "https://github.com/remirror/remirror/tree/next/packages/@remirror/core",
"repository": "https://github.com/remirror/remirror/tree/master/packages/@remirror/core",
"homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/@remirror/core",
"repository": "https://github.com/remirror/remirror/tree/HEAD/packages/@remirror/core",
"license": "MIT",

@@ -25,6 +25,6 @@ "contributors": [

"@babel/runtime": "^7.10.4",
"@remirror/core-constants": "^1.0.0-next.1",
"@remirror/core-helpers": "^1.0.0-next.1",
"@remirror/core-types": "^1.0.0-next.3",
"@remirror/core-utils": "^1.0.0-next.3",
"@remirror/core-constants": "^1.0.0-next.4",
"@remirror/core-helpers": "^1.0.0-next.4",
"@remirror/core-types": "^1.0.0-next.4",
"@remirror/core-utils": "^1.0.0-next.4",
"linaria": "^2.0.0-alpha.5",

@@ -35,6 +35,6 @@ "nanoevents": "^5.1.8",

"devDependencies": {
"@remirror/pm": "^1.0.0-next.3"
"@remirror/pm": "^1.0.0-next.4"
},
"peerDependencies": {
"@remirror/pm": "^1.0.0-next.3"
"@remirror/pm": "^1.0.0-next.4"
},

@@ -41,0 +41,0 @@ "publishConfig": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc