@remirror/core
Advanced tools
Comparing version 1.0.0-next.3 to 1.0.0-next.4
# @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 @@ |
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. |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
965995
22412
2