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

react-quill

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-quill - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

.npmignore

5

CHANGELOG.md
Changelog
=========
v0.0.3
------
- Switched from `quilljs` package to `quill`.
- Using the new `destroy()` from Quill.
v0.0.2

@@ -5,0 +10,0 @@ ------

37

dist/react-quill.js
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("quilljs"));
module.exports = factory(require("react"), require("quill"));
else if(typeof define === 'function' && define.amd)
define(["react", "quilljs"], factory);
define(["react", "quill"], factory);
else if(typeof exports === 'object')
exports["ReactQuill"] = factory(require("react"), require("quilljs"));
exports["ReactQuill"] = factory(require("react"), require("quill"));
else

@@ -61,3 +61,3 @@ root["ReactQuill"] = factory(root["React"], root["Quill"]);

/*
React-Quill 0.0.2
React-Quill v0.0.3
https://github.com/zenoamaro/react-quill

@@ -113,2 +113,3 @@ */

className: '',
theme: 'base',
modules: {}

@@ -147,2 +148,4 @@ };

this.destroyEditor(this.state.editor);
// NOTE: Don't set the state to null here
// as it would generate a loop.
},

@@ -269,3 +272,3 @@

var React = __webpack_require__(/*! react */ 4),
Quill = __webpack_require__(/*! quilljs */ 5),
Quill = __webpack_require__(/*! quill */ 5),
T = React.PropTypes;

@@ -295,14 +298,12 @@

updateEditor: function(editor, config) {
// TODO: Unfortunately, while we can add modules and
// stuff, we can't remove them. And there is
// little API to update other parts of the config.
// But if we could tear down the editor, at least
// we could do a re-init with the new config.
throw new Error('Not implemented');
// NOTE: This tears the editor down, and reinitializes
// it with the new config. Ugly but necessary
// as there is no api for updating it.
this.destroyEditor(editor);
this.createEditor(config);
return editor;
},
destroyEditor: function(editor) {
// TODO: How to destroy this?
// editor.destroy();
editor.removeAllListeners();
editor.destroy();
},

@@ -454,5 +455,5 @@

/* 5 */
/*!********************************************************************************************!*\
!*** external {"commonjs":"quilljs","commonjs2":"quilljs","amd":"quilljs","root":"Quill"} ***!
\********************************************************************************************/
/*!**************************************************************************************!*\
!*** external {"commonjs":"quill","commonjs2":"quill","amd":"quill","root":"Quill"} ***!
\**************************************************************************************/
/***/ function(module, exports, __webpack_require__) {

@@ -466,2 +467,2 @@

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vd2VicGFjay91bml2ZXJzYWxNb2R1bGVEZWZpbml0aW9uIiwid2VicGFjazovLy93ZWJwYWNrL2Jvb3RzdHJhcCA0MTlkZTQ4NzI5MjE3MzUwMzdiOSIsIndlYnBhY2s6Ly8vLi9zcmMvaW5kZXguanMiLCJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudC5qcyIsIndlYnBhY2s6Ly8vLi9zcmMvbWl4aW4uanMiLCJ3ZWJwYWNrOi8vLy4vc3JjL3Rvb2xiYXIuanMiLCJ3ZWJwYWNrOi8vL2V4dGVybmFsIHtcImNvbW1vbmpzXCI6XCJyZWFjdFwiLFwiY29tbW9uanMyXCI6XCJyZWFjdFwiLFwiYW1kXCI6XCJyZWFjdFwiLFwicm9vdFwiOlwiUmVhY3RcIn0iLCJ3ZWJwYWNrOi8vL2V4dGVybmFsIHtcImNvbW1vbmpzXCI6XCJxdWlsbGpzXCIsXCJjb21tb25qczJcIjpcInF1aWxsanNcIixcImFtZFwiOlwicXVpbGxqc1wiLFwicm9vdFwiOlwiUXVpbGxcIn0iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsQ0FBQztBQUNELE87QUNWQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQSx1QkFB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sZS5leHBvcnRzID0gUXVpbGxUb29sYmFyO1xuXG5cbi8qKioqKioqKioqKioqKioqKlxuICoqIFdFQlBBQ0sgRk9PVEVSXG4gKiogLi9zcmMvdG9vbGJhci5qc1xuICoqIG1vZHVsZSBpZCA9IDNcbiAqKiBtb2R1bGUgY2h1bmtzID0gMFxuICoqLyIsIm1vZHVsZS5leHBvcnRzID0gX19XRUJQQUNLX0VYVEVSTkFMX01PRFVMRV80X187XG5cblxuLyoqKioqKioqKioqKioqKioqXG4gKiogV0VCUEFDSyBGT09URVJcbiAqKiBleHRlcm5hbCB7XCJjb21tb25qc1wiOlwicmVhY3RcIixcImNvbW1vbmpzMlwiOlwicmVhY3RcIixcImFtZFwiOlwicmVhY3RcIixcInJvb3RcIjpcIlJlYWN0XCJ9XG4gKiogbW9kdWxlIGlkID0gNFxuICoqIG1vZHVsZSBjaHVua3MgPSAwXG4gKiovIiwibW9kdWxlLmV4cG9ydHMgPSBfX1dFQlBBQ0tfRVhURVJOQUxfTU9EVUxFXzVfXztcblxuXG4vKioqKioqKioqKioqKioqKipcbiAqKiBXRUJQQUNLIEZPT1RFUlxuICoqIGV4dGVybmFsIHtcImNvbW1vbmpzXCI6XCJxdWlsbFwiLFwiY29tbW9uanMyXCI6XCJxdWlsbFwiLFwiYW1kXCI6XCJxdWlsbFwiLFwicm9vdFwiOlwiUXVpbGxcIn1cbiAqKiBtb2R1bGUgaWQgPSA1XG4gKiogbW9kdWxlIGNodW5rcyA9IDBcbiAqKi8iXSwic291cmNlUm9vdCI6IiIsImZpbGUiOiIuL2Rpc3QvcmVhY3QtcXVpbGwuanMifQ==

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("quilljs")):"function"==typeof define&&define.amd?define(["react","quilljs"],t):"object"==typeof exports?exports.ReactQuill=t(require("react"),require("quilljs")):e.ReactQuill=t(e.React,e.Quill)}(this,function(e,t){return function(e){function t(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return e[o].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(4),e.exports.Mixin=r(2),e.exports.Toolbar=r(3)},function(t){t.exports=e},function(e,t,r){"use strict";var o=r(1),n=r(5),i=(o.PropTypes,{createEditor:function(e,t){var r=new n(e,t);return this.hookEditor(r),r},hookEditor:function(e){var t=this;e.on("text-change",function(r,o){t.onEditorChange&&t.onEditorChange(e.getHTML(),r,o)})},updateEditor:function(){throw new Error("Not implemented")},destroyEditor:function(e){e.removeAllListeners()},setEditorContents:function(e,t){var r=e.getSelection();e.setHTML(t),e.setSelection(r)}});e.exports=i},function(e,t,r){"use strict";var o=r(1),n=o.PropTypes,i=[{label:"Formats",type:"group",items:[{label:"Size",type:"size",items:[{label:"Normal",value:""},{label:"Smaller",value:"0.8em"},{label:"Larger",value:"1.4em"},{label:"Huge",value:"2em"}]},{label:"Alignment",type:"align",items:[{label:"Center",value:"center"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Justify",value:"justify"}]}]},{label:"Text",type:"group",items:[{type:"bold",label:"Bold"},{type:"italic",label:"Italic"},{type:"strike",label:"Strike"},{type:"underline",label:"Underline"},{type:"link",label:"Link"}]},{label:"Blocks",type:"group",items:[{type:"bullet",label:"Bullet"},{type:"list",label:"List"}]}],l=o.createClass({displayName:"Quill Toolbar",propTypes:{id:n.string,className:n.string,items:n.array},getDefaultProps:function(){return{items:i}},renderGroup:function(e){return o.DOM.span({key:e.label,className:"ql-format-group"},e.items.map(this.renderItem))},renderChoiceItem:function(e){return o.DOM.option({key:e.label||e.value,value:e.value},e.label)},renderChoices:function(e){return o.DOM.select({key:e.label,className:"ql-"+e.type},e.items.map(this.renderChoiceItem))},renderAction:function(e){return o.DOM.span({key:e.label||e.value,className:"ql-format-button ql-"+e.type,title:e.label})},renderItem:function(e){var t={group:this.renderGroup,align:this.renderChoices,size:this.renderChoices,action:this.renderAction},r=t[e.type]||t.action;return r(e)},getClassName:function(){return"quill-toolbar "+(this.props.className||"")},render:function(){return o.DOM.div({className:this.getClassName()},this.props.items.map(this.renderItem))}});e.exports=l},function(e,t,r){"use strict";var o=r(1),n=r(3),i=r(2),l=o.PropTypes;o.createFactory&&(n=o.createFactory(n));var s=o.createClass({displayName:"Quill",mixins:[i],propTypes:{id:l.string,className:l.string,value:l.string,defaultValue:l.string,readOnly:l.bool,toolbar:l.object,formats:l.array,styles:l.object,theme:l.string,pollInterval:l.number,onChange:l.func},getDefaultProps:function(){return{className:"",modules:{}}},getInitialState:function(){return{}},componentWillReceiveProps:function(e){"value"in e&&e.value!==this.props.value&&this.setEditorContents(this.state.editor,e.value)},componentDidMount:function(){var e=this.createEditor(this.getEditorElement(),this.getEditorConfig());this.setState({editor:e})},componentWillUnmount:function(){this.destroyEditor(this.state.editor)},shouldComponentUpdate:function(){return!1},componentWillUpdate:function(){this.componentWillUnmount()},componentDidUpdate:function(){this.componentDidMount()},getEditorConfig:function(){var e={readOnly:this.props.readOnly,theme:this.props.theme,formats:this.props.formats,styles:this.props.styles,modules:this.props.modules,pollInterval:this.props.pollInterval};return e.modules.toolbar||(e.modules=JSON.parse(JSON.stringify(e.modules)),e.modules.toolbar={container:this.refs.toolbar.getDOMNode()}),e},getEditorElement:function(){return this.refs.editor.getDOMNode()},getEditorContents:function(){return this.props.value||this.props.defaultValue},getClassName:function(){return["quill",this.props.className].join(" ")},renderContents:function(){return o.Children.count(this.props.children)>0?o.Children.only(this.props.children):[n({key:"toolbar",ref:"toolbar",items:this.props.toolbar}),o.DOM.div({key:"editor",ref:"editor",className:"quill-contents",dangerouslySetInnerHTML:{__html:this.getEditorContents()}})]},render:function(){return o.DOM.div({className:this.getClassName(),onChange:this.preventDefault},this.renderContents())},onEditorChange:function(e){e!==this.state.value&&this.props.onChange&&this.props.onChange(e)},preventDefault:function(e){e.preventDefault(),e.stopPropagation()}});e.exports=s},function(e){e.exports=t}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("quill")):"function"==typeof define&&define.amd?define(["react","quill"],t):"object"==typeof exports?exports.ReactQuill=t(require("react"),require("quill")):e.ReactQuill=t(e.React,e.Quill)}(this,function(e,t){return function(e){function t(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return e[o].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(4),e.exports.Mixin=r(2),e.exports.Toolbar=r(3)},function(t){t.exports=e},function(e,t,r){"use strict";var o=r(1),n=r(5),i=(o.PropTypes,{createEditor:function(e,t){var r=new n(e,t);return this.hookEditor(r),r},hookEditor:function(e){var t=this;e.on("text-change",function(r,o){t.onEditorChange&&t.onEditorChange(e.getHTML(),r,o)})},updateEditor:function(e,t){return this.destroyEditor(e),this.createEditor(t),e},destroyEditor:function(e){e.destroy()},setEditorContents:function(e,t){var r=e.getSelection();e.setHTML(t),e.setSelection(r)}});e.exports=i},function(e,t,r){"use strict";var o=r(1),n=o.PropTypes,i=[{label:"Formats",type:"group",items:[{label:"Size",type:"size",items:[{label:"Normal",value:""},{label:"Smaller",value:"0.8em"},{label:"Larger",value:"1.4em"},{label:"Huge",value:"2em"}]},{label:"Alignment",type:"align",items:[{label:"Center",value:"center"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Justify",value:"justify"}]}]},{label:"Text",type:"group",items:[{type:"bold",label:"Bold"},{type:"italic",label:"Italic"},{type:"strike",label:"Strike"},{type:"underline",label:"Underline"},{type:"link",label:"Link"}]},{label:"Blocks",type:"group",items:[{type:"bullet",label:"Bullet"},{type:"list",label:"List"}]}],s=o.createClass({displayName:"Quill Toolbar",propTypes:{id:n.string,className:n.string,items:n.array},getDefaultProps:function(){return{items:i}},renderGroup:function(e){return o.DOM.span({key:e.label,className:"ql-format-group"},e.items.map(this.renderItem))},renderChoiceItem:function(e){return o.DOM.option({key:e.label||e.value,value:e.value},e.label)},renderChoices:function(e){return o.DOM.select({key:e.label,className:"ql-"+e.type},e.items.map(this.renderChoiceItem))},renderAction:function(e){return o.DOM.span({key:e.label||e.value,className:"ql-format-button ql-"+e.type,title:e.label})},renderItem:function(e){var t={group:this.renderGroup,align:this.renderChoices,size:this.renderChoices,action:this.renderAction},r=t[e.type]||t.action;return r(e)},getClassName:function(){return"quill-toolbar "+(this.props.className||"")},render:function(){return o.DOM.div({className:this.getClassName()},this.props.items.map(this.renderItem))}});e.exports=s},function(e,t,r){"use strict";var o=r(1),n=r(3),i=r(2),s=o.PropTypes;o.createFactory&&(n=o.createFactory(n));var l=o.createClass({displayName:"Quill",mixins:[i],propTypes:{id:s.string,className:s.string,value:s.string,defaultValue:s.string,readOnly:s.bool,toolbar:s.object,formats:s.array,styles:s.object,theme:s.string,pollInterval:s.number,onChange:s.func},getDefaultProps:function(){return{className:"",theme:"base",modules:{}}},getInitialState:function(){return{}},componentWillReceiveProps:function(e){"value"in e&&e.value!==this.props.value&&this.setEditorContents(this.state.editor,e.value)},componentDidMount:function(){var e=this.createEditor(this.getEditorElement(),this.getEditorConfig());this.setState({editor:e})},componentWillUnmount:function(){this.destroyEditor(this.state.editor)},shouldComponentUpdate:function(){return!1},componentWillUpdate:function(){this.componentWillUnmount()},componentDidUpdate:function(){this.componentDidMount()},getEditorConfig:function(){var e={readOnly:this.props.readOnly,theme:this.props.theme,formats:this.props.formats,styles:this.props.styles,modules:this.props.modules,pollInterval:this.props.pollInterval};return e.modules.toolbar||(e.modules=JSON.parse(JSON.stringify(e.modules)),e.modules.toolbar={container:this.refs.toolbar.getDOMNode()}),e},getEditorElement:function(){return this.refs.editor.getDOMNode()},getEditorContents:function(){return this.props.value||this.props.defaultValue},getClassName:function(){return["quill",this.props.className].join(" ")},renderContents:function(){return o.Children.count(this.props.children)>0?o.Children.only(this.props.children):[n({key:"toolbar",ref:"toolbar",items:this.props.toolbar}),o.DOM.div({key:"editor",ref:"editor",className:"quill-contents",dangerouslySetInnerHTML:{__html:this.getEditorContents()}})]},render:function(){return o.DOM.div({className:this.getClassName(),onChange:this.preventDefault},this.renderContents())},onEditorChange:function(e){e!==this.state.value&&this.props.onChange&&this.props.onChange(e)},preventDefault:function(e){e.preventDefault(),e.stopPropagation()}});e.exports=l},function(e){e.exports=t}])});
{
"name": "react-quill",
"version": "0.0.2",
"version": "0.0.3",
"description": "The Quill rich-text editor as a React component.",

@@ -8,3 +8,2 @@ "author": "zenoamaro <zenoamaro@gmail.com>",

"license": "MIT",
"bugs": {

@@ -14,3 +13,2 @@ "url": "https://github.com/zenoamaro/react-quill/issues",

},
"repository": {

@@ -20,5 +18,3 @@ "type": "git",

},
"main": "dist/react-quill.js",
"scripts": {

@@ -28,7 +24,5 @@ "test": "make test",

},
"engines": {
"node": ">= 0.8.x"
},
"keywords": [

@@ -40,3 +34,2 @@ "rich",

],
"files": [

@@ -49,11 +42,8 @@ "src/",

],
"dependencies": {
"quilljs": "^0.18.1"
"quill": "^0.19.4"
},
"peerDependencies": {
"react": ">=0.11.0"
},
"devDependencies": {

@@ -60,0 +50,0 @@ "blanket": "^1.1.6",

@@ -57,2 +57,6 @@ React-Quill ![](https://travis-ci.org/zenoamaro/react-quill.svg?branch=master)

---------
#### v0.0.3
- Switched from `quilljs` package to `quill`.
- Using the new `destroy()` from Quill.
#### v0.0.2

@@ -59,0 +63,0 @@ - Compatible with React 0.12.

@@ -37,2 +37,3 @@ 'use strict';

className: '',
theme: 'base',
modules: {}

@@ -71,2 +72,4 @@ };

this.destroyEditor(this.state.editor);
// NOTE: Don't set the state to null here
// as it would generate a loop.
},

@@ -73,0 +76,0 @@

/*
React-Quill 0.0.2
React-Quill v0.0.3
https://github.com/zenoamaro/react-quill

@@ -4,0 +4,0 @@ */

'use strict';
var React = require('react'),
Quill = require('quilljs'),
Quill = require('quill'),
T = React.PropTypes;

@@ -29,14 +29,12 @@

updateEditor: function(editor, config) {
// TODO: Unfortunately, while we can add modules and
// stuff, we can't remove them. And there is
// little API to update other parts of the config.
// But if we could tear down the editor, at least
// we could do a re-init with the new config.
throw new Error('Not implemented');
// NOTE: This tears the editor down, and reinitializes
// it with the new config. Ugly but necessary
// as there is no api for updating it.
this.destroyEditor(editor);
this.createEditor(config);
return editor;
},
destroyEditor: function(editor) {
// TODO: How to destroy this?
// editor.destroy();
editor.removeAllListeners();
editor.destroy();
},

@@ -43,0 +41,0 @@

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