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

draft-js-checkable-list-item

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draft-js-checkable-list-item - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

14

lib/CheckableListItemUtils.js

@@ -13,10 +13,4 @@ 'use strict';

var _adjustBlockDepthForContentState = require('draft-js/lib/adjustBlockDepthForContentState');
var _draftJsModifiers = require('draft-js-modifiers');
var _adjustBlockDepthForContentState2 = _interopRequireDefault(_adjustBlockDepthForContentState);
var _updateBlockMetadata = require('./utils/updateBlockMetadata');
var _updateBlockMetadata2 = _interopRequireDefault(_updateBlockMetadata);
var _constants = require('./constants');

@@ -40,3 +34,3 @@

value: function toggleChecked(editorState, block) {
return (0, _updateBlockMetadata2.default)(editorState, block.getKey(), { checked: !block.getData().get('checked') });
return (0, _draftJsModifiers.mergeBlockDataByKey)(editorState, block.getKey(), { checked: !block.getData().get('checked') });
}

@@ -83,5 +77,3 @@

var withAdjustment = (0, _adjustBlockDepthForContentState2.default)(content, selection, event.shiftKey ? -1 : 1, maxDepth);
return _EditorState2.default.push(editorState, withAdjustment, 'adjust-depth');
return (0, _draftJsModifiers.adjustBlockDepth)(editorState, event.shiftKey ? -1 : 1, maxDepth);
}

@@ -88,0 +80,0 @@ }]);

@@ -52,11 +52,2 @@ 'use strict';

var _updateBlockMetadata = require('./utils/updateBlockMetadata');
Object.defineProperty(exports, 'updateBlockMetadata', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_updateBlockMetadata).default;
}
});
var _constants = require('./constants');

@@ -63,0 +54,0 @@

{
"name": "draft-js-checkable-list-item",
"version": "2.0.4",
"version": "2.0.5",
"description": "Checkable list item for Draft.js",

@@ -49,8 +49,11 @@ "main": "lib/index.js",

},
"dependencies": {
"draft-js-modifiers": "^0.1.2"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-core": "^6.24.1",
"babel-eslint": "^7.2.2",
"babel-jest": "^19.0.0",
"babel-loader": "^6.4.1",
"babel-eslint": "^7.2.3",
"babel-jest": "^20.0.3",
"babel-loader": "^7.0.0",
"babel-plugin-transform-class-properties": "^6.24.1",

@@ -61,4 +64,4 @@ "babel-plugin-transform-flow-strip-types": "^6.22.0",

"babel-preset-react": "^6.24.1",
"coveralls": "^2.13.0",
"css-loader": "^0.28.0",
"coveralls": "^2.13.1",
"css-loader": "^0.28.2",
"draft-js": "~0.10.0",

@@ -68,19 +71,19 @@ "enzyme": "^2.8.2",

"eslint-plugin-babel": "^4.1.1",
"eslint-plugin-flowtype": "^2.30.4",
"eslint-plugin-react": "^6.10.3",
"eslint-plugin-flowtype": "^2.33.0",
"eslint-plugin-react": "^7.0.1",
"flow-bin": "~0.32.0",
"gh-pages": "^0.12.0",
"gh-pages": "^1.0.0",
"html-webpack-plugin": "^2.28.0",
"immutable": "^3.8.1",
"jest": "^19.0.2",
"immutable": "~3.7.4",
"jest": "^20.0.3",
"react": "^15.5.4",
"react-addons-test-utils": "^15.5.1",
"react-dom": "^15.5.4",
"react-ghfork": "^0.3.5",
"react-hot-loader": "3.0.0-beta.6",
"style-loader": "^0.16.1",
"react-hot-loader": "3.0.0-beta.7",
"react-test-renderer": "^15.5.4",
"style-loader": "^0.18.0",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.1",
"webpack": "^2.3.3",
"webpack-dev-server": "^2.4.2"
"webpack": "^2.6.0",
"webpack-dev-server": "^2.4.5"
},

@@ -87,0 +90,0 @@ "jest": {

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