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

@draft-js-plugins/editor

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@draft-js-plugins/editor - npm Package Compare versions

Comparing version 4.0.0-beta5 to 4.0.0

lib/Editor/__test__/index.test.d.ts

2

CHANGELOG.md

@@ -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

2

lib/Editor/MultiDecorator.d.ts

@@ -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": {

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