draft-js-richbuttons-plugin
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -6,6 +6,12 @@ # Change Log | ||
## 2.1.0 - 2017-06-22 | ||
Updated key handling code to use new signature from recent draft-js changes; move to latest release candidate of draft-js-plugins. | ||
## 2.0.0 - 2017-03-03 | ||
Compatibility with draft-js-plugins 2.0 beta / release candidates (note: use 1.x.x release of this plugin if sticking with draft-js-plugins v1.x.x) | ||
## 1.0.1 - 2016-06-17 | ||
### Cleand up npm module | ||
Cleand up npm module | ||
## 1.0.0 - 2016-06-16 | ||
### Released the first working version of DraftJS RichButtons Plugin | ||
Released the first working version of DraftJS RichButtons Plugin |
@@ -132,2 +132,24 @@ 'use strict'; | ||
configured.createBlockButton = function (_ref4) { | ||
var type = _ref4.type, | ||
label = _ref4.label; | ||
return (0, _decorateComponentWithProps2.default)(_BlockButton2.default, { | ||
store: store, | ||
bindToState: store.bindToState.bind(store), | ||
label: label, | ||
blockType: type | ||
}); | ||
}; | ||
configured.createStyleButton = function (_ref5) { | ||
var style = _ref5.style, | ||
label = _ref5.label; | ||
return (0, _decorateComponentWithProps2.default)(_StyleButton2.default, { | ||
store: store, | ||
bindToState: store.bindToState.bind(store), | ||
label: label, | ||
inlineStyle: style | ||
}); | ||
}; | ||
return configured; | ||
@@ -134,0 +156,0 @@ }; |
{ | ||
"name": "draft-js-richbuttons-plugin", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Rich Editing Buttons Plugin for DraftJS Plugins Editor", | ||
@@ -25,5 +25,5 @@ "author": { | ||
"peerDependencies": { | ||
"draft-js-plugins-editor": "2.0.0-rc2", | ||
"react": "^15.5.0", | ||
"react-dom": "^15.5.0" | ||
"draft-js-plugins-editor": "^2.0.0", | ||
"react": "^15.0.0 || ^16.0.0", | ||
"react-dom": "^15.0.0 || ^16.0.0" | ||
}, | ||
@@ -50,3 +50,4 @@ "scripts": { | ||
"chai-enzyme": "^0.7.1", | ||
"draft-js-plugins-editor": "2.0.0-beta9", | ||
"draft-js-plugins-editor": "~2.0.4", | ||
"draft-js": "~0.10.5", | ||
"enzyme": "^2.9.0", | ||
@@ -53,0 +54,0 @@ "jsdom": "^9.8.3", |
130418
413
19