@draft-js-plugins/editor
Advanced tools
Comparing version 4.0.0-beta5 to 4.0.0
@@ -8,2 +8,4 @@ # Change Log | ||
## 4.0.0 | ||
- Change UNSAFE_componentWillReceiveProps to componentDidUpdate; fix https://reactjs.org/blog/2020/02/26/react-v16.13.0.html#warnings-for-some-updates-during-render | ||
@@ -10,0 +12,0 @@ - Replace legacy lifecycle hooks with UNSAFE aliases; the required react version is 16.3 |
@@ -5,3 +5,3 @@ import { CompositeDecorator, ContentBlock, ContentState } from 'draft-js'; | ||
decorators: Immutable.List<CompositeDecorator>; | ||
constructor(decorators: Immutable.List<CompositeDecorator>); | ||
constructor(decorators: Immutable.List<CompositeDecorator> | CompositeDecorator[]); | ||
/** | ||
@@ -8,0 +8,0 @@ * Return list of decoration IDs per character |
@@ -602,4 +602,5 @@ 'use strict'; | ||
_plugins.forEach(function (plugin) { | ||
if (typeof plugin.initialize !== 'function') return; | ||
plugin.initialize(_this.getPluginMethods()); | ||
if (plugin && typeof plugin.initialize === 'function') { | ||
plugin.initialize(_this.getPluginMethods()); | ||
} | ||
}); | ||
@@ -606,0 +607,0 @@ |
@@ -592,4 +592,5 @@ import { EditorState, ContentState, SelectionState, CompositeDecorator, getDefaultKeyBinding, RichUtils, Editor, DefaultDraftBlockRenderMap } from 'draft-js'; | ||
_plugins.forEach(function (plugin) { | ||
if (typeof plugin.initialize !== 'function') return; | ||
plugin.initialize(_this.getPluginMethods()); | ||
if (plugin && typeof plugin.initialize === 'function') { | ||
plugin.initialize(_this.getPluginMethods()); | ||
} | ||
}); | ||
@@ -596,0 +597,0 @@ |
{ | ||
"name": "@draft-js-plugins/editor", | ||
"version": "4.0.0-beta5", | ||
"version": "4.0.0", | ||
"description": "Editor for DraftJS Plugins", | ||
@@ -5,0 +5,0 @@ "author": { |
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
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 v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
57914
19
1356
1