Socket
Socket
Sign inDemoInstall

@djsp/editor

Package Overview
Dependencies
5
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

14

dist/index.es.js

@@ -139,3 +139,3 @@ import React, { Component, createContext } from 'react';

var withConsumer = function withConsumer(Comp) {
return function (props) {
return function WithConsumer(props) {
return React.createElement(

@@ -187,3 +187,5 @@ Context.Consumer,

return _this.setState({
editorState: EditorState.set(_this.state.editorState, { decorator: _this.resolveDecorator() })
editorState: EditorState.set(_this.state.editorState, {
decorator: _this.resolveDecorator()
})
});

@@ -467,3 +469,5 @@ };

setEditorProps: function setEditorProps(editorProps) {
return _this2.setState({ editorProps: _extends({}, _this2.state.editorProps, editorProps) });
return _this2.setState({
editorProps: _extends({}, _this2.state.editorProps, editorProps)
});
}

@@ -505,3 +509,5 @@ };

return _extends({}, state, {
editorState: editorState != null ? EditorState.set(editorState, { decorator: resolveDecorator(state.plugins) }) : editorState,
editorState: editorState != null ? EditorState.set(editorState, {
decorator: resolveDecorator(state.plugins)
}) : editorState,
editorProps: {

@@ -508,0 +514,0 @@ autoCapitalize: autoCapitalize,

@@ -146,3 +146,3 @@ 'use strict';

var withConsumer = function withConsumer(Comp) {
return function (props) {
return function WithConsumer(props) {
return React__default.createElement(

@@ -194,3 +194,5 @@ Context.Consumer,

return _this.setState({
editorState: EditorState.set(_this.state.editorState, { decorator: _this.resolveDecorator() })
editorState: EditorState.set(_this.state.editorState, {
decorator: _this.resolveDecorator()
})
});

@@ -474,3 +476,5 @@ };

setEditorProps: function setEditorProps(editorProps) {
return _this2.setState({ editorProps: _extends({}, _this2.state.editorProps, editorProps) });
return _this2.setState({
editorProps: _extends({}, _this2.state.editorProps, editorProps)
});
}

@@ -512,3 +516,5 @@ };

return _extends({}, state, {
editorState: editorState != null ? EditorState.set(editorState, { decorator: resolveDecorator(state.plugins) }) : editorState,
editorState: editorState != null ? EditorState.set(editorState, {
decorator: resolveDecorator(state.plugins)
}) : editorState,
editorProps: {

@@ -515,0 +521,0 @@ autoCapitalize: autoCapitalize,

{
"name": "@djsp/editor",
"version": "0.0.1",
"version": "0.0.2",
"description": "Draft Js Plugins Editor",

@@ -32,3 +32,2 @@ "author": "juliankrispel",

"babel-core": "^6.26.0",
"babel-eslint": "^8.2.1",
"babel-plugin-external-helpers": "^6.22.0",

@@ -39,10 +38,2 @@ "babel-preset-env": "^1.6.0",

"cross-env": "^5.1.4",
"eslint": "^4.19.1",
"eslint-config-standard": "^11.0.0",
"eslint-config-standard-react": "^6.0.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-node": "^6.0.1",
"eslint-plugin-promise": "^3.7.0",
"eslint-plugin-react": "^7.7.0",
"eslint-plugin-standard": "^3.0.1",
"gh-pages": "^1.1.0",

@@ -49,0 +40,0 @@ "react": "^16.2.0",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc