{"size": 8327, "ext": "js", "max_stars_repo_path": "dist/react-quill.min.js", "max_stars_repo_name": "ShannonStoner/react-quill-ss", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dist/react-quill.min.js", "max_issues_repo_name": "ShannonStoner/react-quill-ss", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dist/react-quill.min.js", "max_forks_repo_name": "ShannonStoner/react-quill-ss", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 4163.5, "max_line_length": 8283, "alphanum_fraction": 0.7265521797}
!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(1),e.exports.Toolbar=r(2)},function(e,t,r){"use strict";var o=r(5),n={createEditor:function(e,t){var r=new o(e,t);return this.hookEditor(r),r},hookEditor:function(e){e.on("text-change",function(t,r){this.onEditorChange&&this.onEditorChange(e.getHTML(),t,r)}.bind(this)),e.on("selection-change",function(e,t){this.onEditorChangeSelection&&this.onEditorChangeSelection(e,t)}.bind(this))},destroyEditor:function(e){e.destroy()},setEditorReadOnly:function(e,t){t?e.editor.disable():e.editor.enable()},setEditorContents:function(e,t){var r=e.getSelection();e.setHTML(t||""),r&&this.setEditorSelection(e,r)},setEditorSelection:function(e,t){if(t){var r=e.getLength();t.start=Math.max(0,Math.min(t.start,r-1)),t.end=Math.max(t.start,Math.min(t.end,r-1))}e.setSelection(t)}};e.exports=n},function(e,t,r){"use strict";var o=r(3),n=o.PropTypes,s=["rgb(  0,   0,   0)","rgb(230,   0,   0)","rgb(255, 153,   0)","rgb(255, 255,   0)","rgb(  0, 138,   0)","rgb(  0, 102, 204)","rgb(153,  51, 255)","rgb(255, 255, 255)","rgb(250, 204, 204)","rgb(255, 235, 204)","rgb(255, 255, 204)","rgb(204, 232, 204)","rgb(204, 224, 245)","rgb(235, 214, 255)","rgb(187, 187, 187)","rgb(240, 102, 102)","rgb(255, 194, 102)","rgb(255, 255, 102)","rgb(102, 185, 102)","rgb(102, 163, 224)","rgb(194, 133, 255)","rgb(136, 136, 136)","rgb(161,   0,   0)","rgb(178, 107,   0)","rgb(178, 178,   0)","rgb(  0,  97,   0)","rgb(  0,  71, 178)","rgb(107,  36, 178)","rgb( 68,  68,  68)","rgb( 92,   0,   0)","rgb(102,  61,   0)","rgb(102, 102,   0)","rgb(  0,  55,   0)","rgb(  0,  41, 102)","rgb( 61,  20,  10)"].map(function(e){return{value:e}}),i=[{label:"Formats",type:"group",items:[{label:"Font",type:"font",items:[{label:"Sans Serif",value:"sans-serif"},{label:"Serif",value:"serif"},{label:"Monospace",value:"monospace"}]},{type:"separator"},{label:"Size",type:"size",items:[{label:"Normal",value:"10px"},{label:"Smaller",value:"13px"},{label:"Larger",value:"18px"},{label:"Huge",value:"32px"}]},{type:"separator"},{label:"Alignment",type:"align",items:[{label:"",value:"center"},{label:"",value:"left"},{label:"",value:"right"},{label:"",value:"justify"}]}]},{label:"Text",type:"group",items:[{type:"bold",label:"Bold"},{type:"italic",label:"Italic"},{type:"strike",label:"Strike"},{type:"underline",label:"Underline"},{type:"separator"},{type:"color",label:"Color",items:s},{type:"background",label:"Background color",items:s},{type:"separator"},{type:"link",label:"Link"}]},{label:"Blocks",type:"group",items:[{type:"bullet",label:"Bullet"},{type:"separator"},{type:"list",label:"List"}]}],a=o.createClass({displayName:"Quill Toolbar",propTypes:{id:n.string,className:n.string,items:n.array},getDefaultProps:function(){return{items:i}},renderSeparator:function(e){return o.DOM.span({key:e,className:"ql-format-separator"})},renderGroup:function(e,t){return o.DOM.span({key:e.label||t,className:"ql-format-group"},e.items.map(this.renderItem))},renderChoiceItem:function(e,t){return o.DOM.option({key:e.label||e.value||t,value:e.value},e.label)},renderChoices:function(e,t){return o.DOM.select({key:e.label||t,title:e.label,className:"ql-"+e.type},e.items.map(this.renderChoiceItem))},renderAction:function(e,t){return o.DOM.span({key:e.label||e.value||t,className:"ql-format-button ql-"+e.type,title:e.label},e.children)},renderItem:function(e,t){switch(e.type){case"separator":return this.renderSeparator(t);case"group":return this.renderGroup(e,t);case"font":case"align":case"size":case"color":case"background":return this.renderChoices(e,t);default:return this.renderAction(e,t)}},getClassName:function(){return"quill-toolbar "+(this.props.className||"")},render:function(){var e=this.props.items.map(this.renderItem),t=e.map(o.renderToStaticMarkup).join("");return o.DOM.div({className:this.getClassName(),dangerouslySetInnerHTML:{__html:t}})}});e.exports=a,a.defaultItems=i,a.defaultColors=s},function(t,r,o){t.exports=e},function(e,t,r){"use strict";var o=r(3),n=r(2),s=r(1),i=o.PropTypes;if(o.createFactory&&(n=o.createFactory(n)),o.cloneElement)var a=o.cloneElement;else{if(!o.addons||!o.addons.cloneWithProps)throw new Error("React addons are required when using React 0.12 or less.");var a=o.addons.cloneWithProps}var l=o.createClass({displayName:"Quill",mixins:[s],propTypes:{id:i.string,className:i.string,style:i.object,value:i.string,defaultValue:i.string,readOnly:i.bool,modules:i.object,toolbar:i.oneOfType([i.array,i.oneOf([!1])]),formats:i.array,styles:i.oneOfType([i.object,i.oneOf([!1])]),theme:i.string,pollInterval:i.number,onKeyPress:i.func,onKeyDown:i.func,onKeyUp:i.func,onChange:i.func,onChangeSelection:i.func},dirtyProps:["id","className","modules","toolbar","formats","styles","theme","pollInterval"],getDefaultProps:function(){return{className:"",theme:"base",modules:{"link-tooltip":!0}}},isControlled:function(){return"value"in this.props},getInitialState:function(){return{value:this.isControlled()?this.props.value:this.props.defaultValue}},componentWillReceiveProps:function(e){var t=this.state.editor;t&&("value"in e&&e.value!==this.getEditorContents()&&this.setEditorContents(t,e.value),"readOnly"in e&&e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(t,e.readOnly))},componentDidMount:function(){var e=this.createEditor(this.getEditorElement(),this.getEditorConfig());this.setCustomFormats(e),this.setState({editor:e},function(){this.setEditorContents(e,this.state.value)}.bind(this))},componentWillUnmount:function(){this.destroyEditor(this.state.editor)},shouldComponentUpdate:function(e,t){for(var r=0;r<this.dirtyProps.length;r++){var o=this.dirtyProps[r];if(e[o]!==this.props[o])return!0}return!1},componentWillUpdate:function(){this.componentWillUnmount()},componentDidUpdate:function(){this.componentDidMount()},setCustomFormats:function(e){if(this.props.formats)for(var t=0;t<this.props.formats.length;t++){var r=this.props.formats[t];e.addFormat(r.name||r,r)}},getEditorConfig:function(){var e={readOnly:this.props.readOnly,theme:this.props.theme,formats:this.props.formats?[]:void 0,styles:this.props.styles,modules:this.props.modules,pollInterval:this.props.pollInterval};return this.props.toolbar===!1||e.modules.toolbar||(e.modules=JSON.parse(JSON.stringify(e.modules)),e.modules.toolbar={container:this.refs.toolbar.getDOMNode()}),e},getEditor:function(){return this.state.editor},getEditorElement:function(){return this.refs.editor.getDOMNode()},getEditorContents:function(){return this.state.value},getEditorSelection:function(){return this.state.selection},renderContents:function(){return o.Children.count(this.props.children)?o.Children.map(this.props.children,function(e){return a(e,{ref:e.ref})}):[this.props.toolbar!==!1?n({key:"toolbar-"+Math.random(),ref:"toolbar",items:this.props.toolbar}):!1,o.DOM.div({key:"editor-"+Math.random(),ref:"editor",className:"quill-contents",dangerouslySetInnerHTML:{__html:this.getEditorContents()}})]},render:function(){return o.DOM.div({id:this.props.id,style:this.props.style,className:"quill "+this.props.className,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp,onChange:this.preventDefault},this.renderContents())},onEditorChange:function(e,t,r){e!==this.getEditorContents()&&(this.setState({value:e}),this.props.onChange&&this.props.onChange(e,t,r))},onEditorChangeSelection:function(e,t){var r=this.getEditorSelection()||{},o=e||{};(o.start!==r.start||o.end!==r.end)&&(this.setState({selection:e}),this.props.onChangeSelection&&this.props.onChangeSelection(e,t))},focus:function(){this.state.editor.focus()},blur:function(){this.setEditorSelection(this.state.editor,null)},preventDefault:function(e){e.preventDefault(),e.stopPropagation()}});e.exports=l},function(e,r,o){e.exports=t}])});
//# sourceMappingURL=react-quill.min.js.map