Comparing version 0.4.14 to 0.4.15
@@ -1,1 +0,1 @@ | ||
"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function(_x,_x2,_x3){for(var _again=!0;_again;){var object=_x,property=_x2,receiver=_x3;desc=parent=getter=void 0,_again=!1,null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0!==desc){if("value"in desc)return desc.value;var getter=desc.get;return void 0===getter?void 0:getter.call(receiver)}var parent=Object.getPrototypeOf(object);if(null===parent)return void 0;_x=parent,_x2=property,_x3=receiver,_again=!0}},_react=require("react"),_react2=_interopRequireDefault(_react),options={toolbar:{buttons:["bold","italic","underline","anchor","strikethrough"]},autoLink:!1,imageDragging:!1,placeholder:{text:"Write your story..."},paste:{forcePlainText:!0,cleanPastedHTML:!0,cleanReplacements:[[/<!--[^>]*-->/gi,""]],cleanAttrs:["class","dir","style","name","id"],cleanTags:["label","meta","aside","span"]},disableExtraSpaces:!0,extensions:{imageDragging:{}}},BlockText=function(_React$Component){function BlockText(props){_classCallCheck(this,BlockText),_get(Object.getPrototypeOf(BlockText.prototype),"constructor",this).call(this,props),this.captureReturn=this.captureReturn.bind(this),this.onContentChanged=this.onContentChanged.bind(this),this.splitBlock=this.splitBlock.bind(this)}return _inherits(BlockText,_React$Component),_createClass(BlockText,[{key:"captureReturn",value:function(){this.props.addBlock("text",this.props.position)}},{key:"onContentChanged",value:function(content){this.props.onContentChanged&&this.props.onContentChanged(this.props.position,content)}},{key:"splitBlock",value:function(e){this.props.splitBlock(this.props.position)}},{key:"render",value:function(){var TextComponent=this.props.rteBlock;return _react2["default"].createElement("div",{className:"katap-block katap-text"},_react2["default"].createElement("div",{className:"katap-toolbar-wrapper katap-clearfix"},_react2["default"].createElement("button",{className:"katap-splitter",onClick:this.splitBlock},"</>")),_react2["default"].createElement(TextComponent,{content:this.props.content,options:options,onContentChanged:this.onContentChanged}))}}]),BlockText}(_react2["default"].Component),Text={Name:"text",React:BlockText,Icon:"",Empty:function(){return""},maximumBlocks:0,Description:"Text",isEmpty:function(content){return""===content.replace(/(<([^>]+)>)/gi,"")}};exports["default"]=Text,module.exports=exports["default"]; | ||
"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function(_x,_x2,_x3){for(var _again=!0;_again;){var object=_x,property=_x2,receiver=_x3;desc=parent=getter=void 0,_again=!1,null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0!==desc){if("value"in desc)return desc.value;var getter=desc.get;return void 0===getter?void 0:getter.call(receiver)}var parent=Object.getPrototypeOf(object);if(null===parent)return void 0;_x=parent,_x2=property,_x3=receiver,_again=!0}},_react=require("react"),_react2=_interopRequireDefault(_react),options={toolbar:{buttons:["bold","italic","underline","anchor","strikethrough"]},autoLink:!1,imageDragging:!1,placeholder:{text:"Write your story..."},paste:{forcePlainText:!0,cleanPastedHTML:!0,cleanReplacements:[[/<!--[^>]*-->/gi,""]],cleanAttrs:["class","dir","style","name","id"],cleanTags:["label","meta","aside","span"]},disableExtraSpaces:!1,extensions:{imageDragging:{}}},BlockText=function(_React$Component){function BlockText(props){_classCallCheck(this,BlockText),_get(Object.getPrototypeOf(BlockText.prototype),"constructor",this).call(this,props),this.captureReturn=this.captureReturn.bind(this),this.onContentChanged=this.onContentChanged.bind(this),this.splitBlock=this.splitBlock.bind(this)}return _inherits(BlockText,_React$Component),_createClass(BlockText,[{key:"captureReturn",value:function(){this.props.addBlock("text",this.props.position)}},{key:"onContentChanged",value:function(content){this.props.onContentChanged&&this.props.onContentChanged(this.props.position,content)}},{key:"splitBlock",value:function(e){this.props.splitBlock(this.props.position)}},{key:"render",value:function(){var TextComponent=this.props.rteBlock;return _react2["default"].createElement("div",{className:"katap-block katap-text"},_react2["default"].createElement("div",{className:"katap-toolbar-wrapper katap-clearfix"},_react2["default"].createElement("button",{className:"katap-splitter",onClick:this.splitBlock},"</>")),_react2["default"].createElement(TextComponent,{content:this.props.content,options:options,onContentChanged:this.onContentChanged}))}}]),BlockText}(_react2["default"].Component),Text={Name:"text",React:BlockText,Icon:"",Empty:function(){return""},maximumBlocks:0,Description:"Text",isEmpty:function(content){return""===content.replace(/(<([^>]+)>)/gi,"")}};exports["default"]=Text,module.exports=exports["default"]; |
{ | ||
"name": "kattappa", | ||
"version": "0.4.14", | ||
"version": "0.4.15", | ||
"description": "A block based rich text editor with support of Images, embeds( Youtube, Instagram, Vine, Vimeo etc)", | ||
@@ -5,0 +5,0 @@ "main": "./npm/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1