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

colonel-kurtz

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colonel-kurtz - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

build/colonel-kurtz.css

2

build/colonel-kurtz.js

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

module.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(t,e,n){e&&Object.defineProperties(t,e),n&&Object.defineProperties(t.prototype,n)},o=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},a=n(37),s=n(8),c=n(19),u=n(25),l=n(1),p=n(51),f=n(27);n(61);var d=function(){function t(e){var n=this;o(this,t),this.id=f(),this.el=e.el,this._callbacks=[],c(r({id:this.id,block:p(void 0,e.seed||[])},e)),s.subscribe(function(){return n.simulateChange()}),setTimeout(this.simulateChange.bind(this),10)}return i(t,null,{render:{value:function(){return l.render(this._rootComponent(),this._getDomElement()),this},writable:!0,configurable:!0},simulateChange:{value:function(){this._runCallbacks()},writable:!0,configurable:!0},addCallback:{value:function(t){this._callbacks=this._callbacks.concat(t)},writable:!0,configurable:!0},removeCallback:{value:function(t){this._callbacks=this._callbacks.filter(function(e){return e!==t})},writable:!0,configurable:!0},toJSON:{value:function(){return u.find(this.id).block.toJSON().blocks},writable:!0,configurable:!0},toHtml:{value:function(){return l.renderToStaticMarkup(this._rootComponent())},writable:!0,configurable:!0},_rootComponent:{value:function(){return l.createElement(a,{editorId:this.id})},writable:!0,configurable:!0},_getDomElement:{value:function(){return this.el},writable:!0,configurable:!0},_runCallbacks:{value:function(){var t=this.toJSON();this._callbacks.forEach(function(e){e(t)})},writable:!0,configurable:!0}}),t}();d.createBlock=n(26),d.addBlockType=n(49),t.exports=d},function(t){t.exports=require("react")},function(t,e,n){"use strict";var r=n(52).Dispatcher;t.exports=new r},function(t,e,n){"use strict";var r=n(56);t.exports=r({EDIT_MODE:null,PREVIEW_MODE:null})},function(t){"use strict";var e=function(t,e,n,r,i,o,a,s){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],l=0;c=new Error("Invariant Violation: "+e.replace(/%s/g,function(){return u[l++]}))}throw c.framesToPop=1,c}};t.exports=e},function(t,e,n){"use strict";var r=n(6),i=n(1),o=n(9);t.exports={mixins:[o],propTypes:{block:i.PropTypes.any.isRequired},getState:function(){return{blocks:r.childrenFor(this.props.block)}}}},function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(8),o=n(48),a=n(2),s=n(4),c=[],u={childrenFor:function(t){return c.filter(function(e){return e.parent===t})},all:function(){return c},last:function(){return c[c.length-1]},find:function(t){var e=c.filter(function(e){return e.id===t})[0];return s(e,"Unable to find block with id of %s",t),e},_create:function(t,e){var n=t.content,r=t.type,a=t.parent,s=new o({content:n,type:r,parent:a});return e instanceof o?e=u._indexOf(e.id)+1:void 0==e&&(e=c.length),c.splice(e,0,s),i.publish(),s},_destroy:function(t){c=c.filter(function(e){for(var n=e;n;n=n.parent)if(n.id==t)return!1;return!0}),i.publish()},_update:function(t,e){var n=u.find(t);n.content=r({},n.content,e),i.publish()},_indexOf:function(t){return c.indexOf(u.find(t))},_move:function(t,e){var n=u._indexOf(t),r=u._indexOf(e);c.splice(r,0,c.splice(n,1)[0]),i.publish()},_seed:function(){for(var t,e=void 0===arguments[0]?u._create({}):arguments[0],n=void 0===arguments[1]?[]:arguments[1],r=n[Symbol.iterator]();!(t=r.next()).done;){var i=t.value,o=i.blocks,a=i.content,s=i.type;u._seed(u._create({content:a,parent:e,type:s}),o)}return e},dispatchToken:a.register(function(t){switch(t.type){case n(14):u._create(t.params,t.position);break;case n(15):u._destroy(t.id);break;case n(17):u._update(t.id,t.content);break;case n(16):u._move(t.fromId,t.toId)}})};t.exports=u},function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(2),o=(n(1),n(4)),a=[],s={icon:null,types:null},c={keys:function(){return a.map(function(t){return t.id})},find:function(t){var e=a.filter(function(e){return e.id===t})[0];return o(e,"Unable to find block type with an id of %s"),e},_create:function(t){var e=r({},s,t);o(e.id,"BlockType must have an identifier"),a=a.concat(e)},_remove:function(t){a=a.filter(function(e){return e.id!==t})},dispatchToken:i.register(function(t){switch(t.type){case n(18):c._create(t.params)}})};t.exports=c},function(t){var e=[],n=null,r=function(){for(var t=0;t<e.length;t++)e[t]()},i={unsubscribe:function(t){e=e.filter(function(e){return e!==t})},subscribe:function(t){e=e.concat(t)},publish:function(){e.length>0&&(cancelAnimationFrame(n),n=requestAnimationFrame(r))}};t.exports=i},function(t,e,n){var r=n(8),i={getInitialState:function(){if(!this.getState)throw new Error("Stateful mixin requires `getState` implementation.");return this.getState()},_updateState:function(){this.setState(this.getState())},componentDidMount:function(){r.subscribe(this._updateState)},componentWillUnmount:function(){r.unsubscribe(this._updateState)},componentWillReceiveProps:function(){this._updateState()}};t.exports=i},,function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t["default"]:t},i=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},o=r(n(1)),a=r(n(62)),s=o.createClass({displayName:"Button",getDefaultProps:function(){return{tagName:"button"}},render:function(){var t=this.props,e=t.children,n=t.tagName,r=i(t,["children","tagName"]);return o.createElement(n,r,[o.createElement(a,{key:"__ink"}),e])}});t.exports=s},,,function(t,e,n){"use strict";var r=n(2);t.exports=function i(t,e){r.dispatch({type:i,params:t,position:e})}},function(t,e,n){"use strict";var r=n(2);t.exports=function i(t){r.dispatch({type:i,id:t})}},function(t,e,n){"use strict";var r=n(2);t.exports=function i(t,e){r.dispatch({type:i,fromId:t,toId:e})}},function(t,e,n){"use strict";var r=n(2);t.exports=function i(t,e){r.dispatch({type:i,id:t,content:e})}},function(t,e,n){"use strict";var r=n(2);t.exports=function i(t){r.dispatch({type:i,params:t})}},function(t,e,n){"use strict";var r=n(2);t.exports=function i(t){r.dispatch({type:i,params:t})}},function(t,e,n){"use strict";var r=n(2);t.exports=function i(t,e){r.dispatch({type:i,id:t,params:e})}},function(t,e,n){"use strict";var r=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=n(7),a=n(24),s=n(9),c=n(1),u=n(17),l=c.createClass({displayName:"Block",mixins:[s,a],propTypes:{block:c.PropTypes.any.isRequired},getState:function(){return o.find(this.props.block.type)},render:function(){var t=this.props,e=t.block,n=r(t,["block"]),o=this.state.component;return c.createElement(o,i({initialContent:e.content,updateContent:this._onUpdateContent},n))},_onUpdateContent:function(t){u(this.props.block.id,t)}});t.exports=l},function(t,e,n){"use strict";var r=n(36),i=n(7),o=n(1),a=n(9),s=o.createClass({displayName:"BlockMenu",mixins:[a],propTypes:{editor:o.PropTypes.any.isRequired},getDefaultProps:function(){return{position:0}},getState:function(){var t=this.props,e=t.editor,n=t.block;return{types:n.type?i.find(n.type).types:e.types}},getButton:function(t){var e=this.props,n=e.block,i=e.position;return o.createElement(r,{key:t,type:t,block:n,position:i})},getNavigation:function(){return o.createElement("nav",{className:"col-menu",role:"navigation"},this.state.types.map(this.getButton))},render:function(){return this.state.types?this.getNavigation():null}});t.exports=s},function(t){"use strict";t.exports={remove:"Remove this block",fullscreen:"Toggle fullscreen mode"}},function(t,e,n){"use strict";var r=n(57),i={shouldComponentUpdate:function(t,e){return!r(this.props,t)||!r(this.state,e)}};t.exports=i},function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(7),o=n(8),a=n(2),s=n(3),c=n(4),u=[],l=function(){return{mode:s.EDIT_MODE,types:i.keys(),preview:!0}},p={find:function(t,e){var n=u.filter(function(e){return e.id===t})[0];return e||c(n,"Unable to find editor with an id of %s",t),n},_create:function(t){var e=r({},l(),t);c(s[e.mode],"Unacceptable mode for editor: "+e.mode),c(!p.find(e.id,!0),"Editors must have a unique identifier"),u=u.concat(e),o.publish()},_update:function(t,e){var n=p.find(t),i=u.indexOf(n);u=u.concat(),u[i]=r({},l(),n,e),o.publish()},dispatchToken:a.register(function(t){switch(t.type){case n(19):p._create(t.params);break;case n(20):p._update(t.id,t.params)}})};t.exports=p},function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(1),o=n(47);t.exports=function(t){var e=t.mixins||[];return e.indexOf(o)<0&&(e=e.concat(o)),i.createClass(r({},t,{React:i,mixins:e}))}},function(t){"use strict";var e=0,n=function(){return e+=1};t.exports=n},function(t){t.exports=require("react/lib/ReactCSSTransitionGroup")},,,,,,,,function(t,e,n){"use strict";var r=n(7),i=n(11),o=n(14),a=n(1),s=a.createClass({displayName:"AddBlock",getInitialState:function(){return r.find(this.props.type)},render:function(){var t=this.state,e=t.icon,n=t.id,r=t.label;return a.createElement(i,{"aria-label":r,className:"col-btn-icon",onClick:this._onClick},a.createElement("img",{src:e,alt:n,"aria-hidden":"true"}))},_onClick:function(t){var e=this.props,n=e.block,r=e.position,i=e.type;o({content:null,parent:n,type:i},r),t.preventDefault()}});t.exports=s},function(t,e,n){"use strict";var r=n(38),i=n(25),o=(n(3),n(41)),a=n(1),s=n(9),c=n(23),u=n(50),l=a.createClass({displayName:"App",mixins:[s],getState:function(){return{editor:i.find(this.props.editorId)}},fullscreen:function(t){var e=function(){return t.apply(this,arguments)};return e.toString=function(){return t.toString()},e}(function(){u(this.getDOMNode())}),render:function(){var t=this.state.editor;return a.createElement("div",{className:"colonel"},a.createElement(o,{editor:t}),a.createElement(r,{editor:t}),a.createElement("button",{type:"button","aria-label":c.fullscreen,className:"col-fullscreen",onClick:this._onFullscreenClick},"Fullscreen"))},_onFullscreenClick:function(t){t.preventDefault(),this.fullscreen()}});t.exports=l},function(t,e,n){"use strict";var r=function(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0})},i=n(1),o=n(3),a=function(){var t={};return r(t,o.EDIT_MODE,n(39)),r(t,o.PREVIEW_MODE,n(43)),t}(),s=i.createClass({displayName:"ContentSection",render:function(){var t=this.props.editor,e=t.block;return i.createElement(a[t.mode],{block:e,editor:t})}});t.exports=s},function(t,e,n){"use strict";var r=n(28),i=n(22),o=n(40),a=n(5),s=n(1),c=s.createClass({displayName:"Editor",mixins:[a],getBlock:function(t){return s.createElement(o,{key:t.id,block:t,editor:this.props.editor})},render:function(){var t=this.props,e=t.block,n=t.editor;return s.createElement(r,{component:"div",className:"col-content",transitionName:"col-block"},s.createElement(i,{key:"block_menu",block:e,editor:n}),this.state.blocks.map(this.getBlock))}});t.exports=c},function(t,e,n){"use strict";var r=n(28),i=n(21),o=n(22),a=n(5),s=n(42),c=n(1),u=n(46),l=c.createClass({displayName:"EditorBlock",mixins:[a],getBlock:function(t){return c.createElement(l,{key:t.id,block:t,editor:this.props.editor})},render:function(){var t=this.props,e=t.block,n=t.editor;return c.createElement("div",null,c.createElement(s,{block:e},c.createElement(o,{ref:"prepend",block:e,editor:n,position:e.parent}),c.createElement(i,{block:e,mode:n.mode}),c.createElement(r,{component:"div",className:"col-blocks",transitionName:"col-block"},this.state.blocks.map(this.getBlock)),c.createElement(u,{block:e})),c.createElement(o,{ref:"append",block:e.parent,editor:n,position:e}))}});t.exports=l},function(t,e,n){"use strict";var r=n(11),i=n(1),o=i.PropTypes,a=n(20),s=n(3),c=n(24),u=i.createClass({displayName:"ModeSelection",mixins:[c],propType:{editor:o.object.isRequired,modes:o.object},getDefaultProps:function(){return{modes:s}},getTab:function(t){var e=this,n=this.props,o=n.editor,a=n.modes,s={className:"col-tabs-btn",disabled:o.mode===a[t],onClick:function(n){return e._onModeClick(n,a[t])}};return i.createElement("li",{key:t,className:"col-tabs-list-item",role:"tab"},i.createElement(r,s,t.replace("_"," ")))},getTabs:function(){return Object.keys(this.props.modes).map(this.getTab)},render:function(){return this.props.editor.preview?i.createElement("nav",{role:"navigation",className:"col-tabs"},i.createElement("ul",{className:"col-tabs-list",role:"tablist"},this.getTabs())):null},_onModeClick:function(t,e){t.preventDefault(),a(this.props.editor.id,{mode:e})}});t.exports=u},function(t,e,n){"use strict";var r=n(55),i=n(16),o=n(1),a=o.createClass({displayName:"Orderable",render:function(){var t=this.props,e=t.block,n=t.children;return o.createElement(r,{className:"col-block",message:e.id,onDrop:this._onDrop},n)},_onDrop:function(t){i(t,this.props.block.id)}});t.exports=a},function(t,e,n){"use strict";var r=(n(6),n(5)),i=n(44),o=n(1),a=o.createClass({displayName:"Previewer",mixins:[r],getBlock:function(t){return o.createElement(i,{key:t.id,block:t,editor:this.props.editor})},render:function(){return o.createElement("div",{className:"col-blocks"},this.state.blocks.map(this.getBlock))}});t.exports=a},function(t,e,n){"use strict";var r=n(21),i=n(5),o=n(1),a=o.createClass({displayName:"PreviewerBlock",mixins:[i],getBlock:function(t){return o.createElement(a,{key:t.id,block:t,editor:this.props.editor})},render:function(){var t=this.props,e=t.block,n=t.editor;return o.createElement("div",null,o.createElement(r,{block:e,mode:n.mode}),this.state.blocks.map(this.getBlock))}});t.exports=a},function(t,e,n){"use strict";var r=n(11),i=n(15),o=n(23),a=n(1),s=a.createClass({displayName:"RemoveBlock",render:function(){return a.createElement(r,{"aria-label":o.remove,className:"col-btn-remove",onClick:this._onClick},"×")},_onClick:function(t){t.preventDefault(),i(this.props.block.id)}});t.exports=s},function(t,e,n){"use strict";var r=n(1),i=n(45),o=r.createClass({displayName:"Toolbar",render:function(){return r.createElement("div",{className:"col-toolbar"},r.createElement(i,{block:this.props.block}))}});t.exports=o},function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=(n(1),n(3)),o=n(4),a={getDefaultProps:function(){return{mode:i.EDIT_MODE}},getInitialState:function(){return o(this.defaultContent,"BlockType mixin requires `defaultContent` implementation."),{content:this.props.initialContent||this.defaultContent()}},setContent:function(t){var e=r({},this.state.content,t);this.setState({content:e},function(){this.props.updateContent(this.state.content)})},editMode:function(){return this.props.mode===i.EDIT_MODE},render:function(){return o(this.renderEditor,"BlockType mixin requires `renderEditor` implementation."),o(this.renderPreviewer,"BlockType mixin requires `renderPreviewer` implementation."),this.editMode()?this.renderEditor():this.renderPreviewer()}};t.exports=a},function(t,e,n){"use strict";var r=function(t,e,n){e&&Object.defineProperties(t,e),n&&Object.defineProperties(t.prototype,n)},i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},o=n(27),a=function(){function t(e){i(this,t),this.id=o(),this.content=e.content||null,this.parent=e.parent,this.type=e.type}return r(t,null,{toJSON:{value:function(){var t=n(6);return{blocks:t.childrenFor(this).map(function(t){return t.toJSON()}),content:this.content,type:this.type}},writable:!0,configurable:!0}}),t}();t.exports=a},function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(18),o=n(1),a=n(26);t.exports=function(t){var e=t.component;o.isValidElement(e)===!1&&(e=a(e)),i(r({},t,{component:e}))}},function(t){"use strict";t.exports=function(t){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}},function(t,e,n){"use strict";var r=n(6);t.exports=function(t,e){return r._seed(t,e)}},function(t,e,n){t.exports.Dispatcher=n(53)},function(t,e,n){"use strict";function r(){this.$Dispatcher_callbacks={},this.$Dispatcher_isPending={},this.$Dispatcher_isHandled={},this.$Dispatcher_isDispatching=!1,this.$Dispatcher_pendingPayload=null}var i=n(54),o=1,a="ID_";r.prototype.register=function(t){var e=a+o++;return this.$Dispatcher_callbacks[e]=t,e},r.prototype.unregister=function(t){i(this.$Dispatcher_callbacks[t],"Dispatcher.unregister(...): `%s` does not map to a registered callback.",t),delete this.$Dispatcher_callbacks[t]},r.prototype.waitFor=function(t){i(this.$Dispatcher_isDispatching,"Dispatcher.waitFor(...): Must be invoked while dispatching.");for(var e=0;e<t.length;e++){var n=t[e];this.$Dispatcher_isPending[n]?i(this.$Dispatcher_isHandled[n],"Dispatcher.waitFor(...): Circular dependency detected while waiting for `%s`.",n):(i(this.$Dispatcher_callbacks[n],"Dispatcher.waitFor(...): `%s` does not map to a registered callback.",n),this.$Dispatcher_invokeCallback(n))}},r.prototype.dispatch=function(t){i(!this.$Dispatcher_isDispatching,"Dispatch.dispatch(...): Cannot dispatch in the middle of a dispatch."),this.$Dispatcher_startDispatching(t);try{for(var e in this.$Dispatcher_callbacks)this.$Dispatcher_isPending[e]||this.$Dispatcher_invokeCallback(e)}finally{this.$Dispatcher_stopDispatching()}},r.prototype.isDispatching=function(){return this.$Dispatcher_isDispatching},r.prototype.$Dispatcher_invokeCallback=function(t){this.$Dispatcher_isPending[t]=!0,this.$Dispatcher_callbacks[t](this.$Dispatcher_pendingPayload),this.$Dispatcher_isHandled[t]=!0},r.prototype.$Dispatcher_startDispatching=function(t){for(var e in this.$Dispatcher_callbacks)this.$Dispatcher_isPending[e]=!1,this.$Dispatcher_isHandled[e]=!1;this.$Dispatcher_pendingPayload=t,this.$Dispatcher_isDispatching=!0},r.prototype.$Dispatcher_stopDispatching=function(){this.$Dispatcher_pendingPayload=null,this.$Dispatcher_isDispatching=!1},t.exports=r},function(t){"use strict";var e=function(t,e,n,r,i,o,a,s){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],l=0;c=new Error("Invariant Violation: "+e.replace(/%s/g,function(){return u[l++]}))}throw c.framesToPop=1,c}};t.exports=e},function(t,e,n){!function(e,r){t.exports=r(n(1))}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){(function(e){"use strict";var r=e.interopRequire(n(1)),i=e.interopRequire(n(2)),o=e.interopRequire(n(3)),a=r.PropTypes,s=r.createClass({displayName:"Draggable",propTypes:{draggableChildren:a.bool,message:a.any.isRequired,onDrop:a.func.isRequired},getDefaultProps:function(){return{draggableChildren:!1,dropEffect:"copy",effectAllowed:"all"}},getInitialState:function(){return{draggable:!0,dragging:!1,droppable:!1}},render:function(){var t=i(this.props.className,i({dragon:!0,"dragon-dragging":this.state.dragging,"dragon-droppable":this.state.droppable}));return r.createElement("div",{className:t,draggable:this.state.draggable,onDragOver:this._onDragOver,onDragLeave:this._onDragLeave,onDrop:this._onDrop,onDragStart:this._onDragStart,onDragEnd:this._onDragEnd},r.createElement("div",{ref:"children",className:"dragon-children",onFocus:this._onFocus,onBlur:this._onBlur},this.props.children))},_isDraggableAt:function(t,e){if(this.props.draggableChildren)return!0;var n=document.elementFromPoint(t,e),r=this.refs.children.getDOMNode();return n==r||o(n,r)},_onFocus:function(){this.setState({draggable:!1})},_onBlur:function(){this.setState({draggable:!0})},_onDragStart:function(t){return this._isDraggableAt(t.pageX,t.pageY)?t.preventDefault():(t.dataTransfer.setData("text/plain",JSON.stringify(this.props.message)),t.dataTransfer.dropEffect=this.props.dropEffect,t.dataTransfer.effectAllowed=this.props.effectAllowed,void this.setState({dragging:!0}))},_onDragEnd:function(t){t.preventDefault(),this.setState({droppable:!1,dragging:!1})},_onDragOver:function(t){t.preventDefault(),this.setState({droppable:!0})},_onDragLeave:function(t){t.preventDefault(),this.setState({droppable:!1})},_onDrop:function(t){t.preventDefault();var e=JSON.parse(t.dataTransfer.getData("text/plain")),n=this.props.message;this.props.onDrop(e,n),this.setState({droppable:!1,dragging:!1})}});t.exports=s}).call(e,n(4))},function(e){e.exports=t},function(t){"use strict";function e(t){return"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).join(" "):Array.prototype.join.call(arguments," ")}t.exports=e},function(t){"use strict";function e(t,e){for(var n=t;n;){if(n==e)return!0;n=n.parentNode}return!1}t.exports=e},function(t){var e={};!function(t){var e=t.to5Runtime={};e.inherits=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.__proto__=e)},e.defaults=function(t,e){for(var n in e)void 0===t[n]&&(t[n]=e[n]);return t},e.prototypeProperties=function(t,e,n){e&&Object.defineProperties(t,e),n&&Object.defineProperties(t.prototype,n)},e.applyConstructor=function(t,e){var n=Object.create(t.prototype),r=t.apply(n,e);return null==r||"object"!=typeof r&&"function"!=typeof r?n:r},e.taggedTemplateLiteral=function(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},e.interopRequire=function(t){return t&&(t["default"]||t)},e.toArray=function(t){return Array.isArray(t)?t:Array.from(t)},e.slicedToArray=function(t,e){if(Array.isArray(t))return t;for(var n,r=[],i=t[Symbol.iterator]();!(n=i.next()).done&&(r.push(n.value),!e||r.length!==e););return r},e.objectWithoutProperties=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},e.hasOwn=Object.prototype.hasOwnProperty,e.slice=Array.prototype.slice,e.bind=Function.prototype.bind,e.defineProperty=function(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0})},e.interopRequireWildcard=function(t){return t&&t.constructor===Object?t:{"default":t}},e._extends=function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t},e.get=function n(t,n,e){var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:n(i,n,e)}if("value"in r&&r.writable)return r.value;var o=r.get;return void 0===o?void 0:o.call(e)}}("undefined"==typeof e?self:e),t.exports=e.to5Runtime}])})},function(t,e,n){"use strict";var r=n(4),i=function(t){var e,n={};r(t instanceof Object&&!Array.isArray(t));for(e in t)t.hasOwnProperty(e)&&(n[e]=e);return n};t.exports=i},function(t){"use strict";function e(t,e){if(t===e)return!0;var n;for(n in t)if(t.hasOwnProperty(n)&&(!e.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(n in e)if(e.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;return!0}t.exports=e},,,,function(){},function(t){t.exports=require("react-ink")}]);
module.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(t,e,n){e&&Object.defineProperties(t,e),n&&Object.defineProperties(t.prototype,n)},o=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},a=n(37),s=n(8),c=n(19),u=n(25),l=n(1),p=n(51),f=n(27);n(61);var d=function(){function t(e){var n=this;o(this,t),this.id=f(),this.el=e.el,this._callbacks=[],c(r({id:this.id,block:p(void 0,e.seed||[])},e)),s.subscribe(function(){return n.simulateChange()}),setTimeout(this.simulateChange.bind(this),10)}return i(t,null,{render:{value:function(){return l.render(this._rootComponent(),this._getDomElement()),this},writable:!0,configurable:!0},simulateChange:{value:function(){this._runCallbacks()},writable:!0,configurable:!0},addCallback:{value:function(t){this._callbacks=this._callbacks.concat(t)},writable:!0,configurable:!0},removeCallback:{value:function(t){this._callbacks=this._callbacks.filter(function(e){return e!==t})},writable:!0,configurable:!0},toJSON:{value:function(){return u.find(this.id).block.toJSON().blocks},writable:!0,configurable:!0},toHtml:{value:function(){return l.renderToStaticMarkup(this._rootComponent())},writable:!0,configurable:!0},_rootComponent:{value:function(){return l.createElement(a,{editorId:this.id})},writable:!0,configurable:!0},_getDomElement:{value:function(){return this.el},writable:!0,configurable:!0},_runCallbacks:{value:function(){var t=this.toJSON();this._callbacks.forEach(function(e){e(t)})},writable:!0,configurable:!0}}),t}();d.createBlock=n(26),d.addBlockType=n(49),t.exports=d},function(t){t.exports=require("react")},function(t,e,n){"use strict";var r=n(52).Dispatcher;t.exports=new r},function(t,e,n){"use strict";var r=n(56);t.exports=r({EDIT_MODE:null,PREVIEW_MODE:null})},function(t){"use strict";var e=function(t,e,n,r,i,o,a,s){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],l=0;c=new Error("Invariant Violation: "+e.replace(/%s/g,function(){return u[l++]}))}throw c.framesToPop=1,c}};t.exports=e},function(t,e,n){"use strict";var r=n(6),i=n(1),o=n(9);t.exports={mixins:[o],propTypes:{block:i.PropTypes.any.isRequired},getState:function(){return{blocks:r.childrenFor(this.props.block)}}}},function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(8),o=n(48),a=n(2),s=n(4),c=[],u={childrenFor:function(t){return c.filter(function(e){return e.parent===t})},all:function(){return c},last:function(){return c[c.length-1]},find:function(t){var e=c.filter(function(e){return e.id===t})[0];return s(e,"Unable to find block with id of %s",t),e},_create:function(t,e){var n=t.content,r=t.type,a=t.parent,s=new o({content:n,type:r,parent:a});return e instanceof o?e=u._indexOf(e.id)+1:void 0==e&&(e=c.length),c.splice(e,0,s),i.publish(),s},_destroy:function(t){c=c.filter(function(e){for(var n=e;n;n=n.parent)if(n.id==t)return!1;return!0}),i.publish()},_update:function(t,e){var n=u.find(t);n.content=r({},n.content,e),i.publish()},_indexOf:function(t){return c.indexOf(u.find(t))},_move:function(t,e){var n=u._indexOf(t),r=u._indexOf(e);c.splice(r,0,c.splice(n,1)[0]),i.publish()},_seed:function(){for(var t,e=void 0===arguments[0]?u._create({}):arguments[0],n=void 0===arguments[1]?[]:arguments[1],r=n[Symbol.iterator]();!(t=r.next()).done;){var i=t.value,o=i.blocks,a=i.content,s=i.type;u._seed(u._create({content:a,parent:e,type:s}),o)}return e},dispatchToken:a.register(function(t){switch(t.type){case n(14):u._create(t.params,t.position);break;case n(15):u._destroy(t.id);break;case n(17):u._update(t.id,t.content);break;case n(16):u._move(t.fromId,t.toId)}})};t.exports=u},function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(2),o=(n(1),n(4)),a=[],s={icon:null,types:null},c={keys:function(){return a.map(function(t){return t.id})},find:function(t){var e=a.filter(function(e){return e.id===t})[0];return o(e,"Unable to find block type with an id of %s"),e},_create:function(t){var e=r({},s,t);o(e.id,"BlockType must have an identifier"),a=a.concat(e)},_remove:function(t){a=a.filter(function(e){return e.id!==t})},dispatchToken:i.register(function(t){switch(t.type){case n(18):c._create(t.params)}})};t.exports=c},function(t){var e=[],n=null,r=function(){for(var t=0;t<e.length;t++)e[t]()},i={unsubscribe:function(t){e=e.filter(function(e){return e!==t})},subscribe:function(t){e=e.concat(t)},publish:function(){e.length>0&&(cancelAnimationFrame(n),n=requestAnimationFrame(r))}};t.exports=i},function(t,e,n){var r=n(8),i={getInitialState:function(){if(!this.getState)throw new Error("Stateful mixin requires `getState` implementation.");return this.getState()},_updateState:function(){this.setState(this.getState())},componentDidMount:function(){r.subscribe(this._updateState)},componentWillUnmount:function(){r.unsubscribe(this._updateState)},componentWillReceiveProps:function(){this._updateState()}};t.exports=i},,function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t["default"]:t},i=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},o=r(n(1)),a=o.createClass({displayName:"Button",getDefaultProps:function(){return{tagName:"button",type:"button"}},render:function(){var t=this.props,e=t.children,n=t.tagName,r=i(t,["children","tagName"]);return o.createElement(n,r,[e])}});t.exports=a},,,function(t,e,n){"use strict";var r=n(2);t.exports=function i(t,e){r.dispatch({type:i,params:t,position:e})}},function(t,e,n){"use strict";var r=n(2);t.exports=function i(t){r.dispatch({type:i,id:t})}},function(t,e,n){"use strict";var r=n(2);t.exports=function i(t,e){r.dispatch({type:i,fromId:t,toId:e})}},function(t,e,n){"use strict";var r=n(2);t.exports=function i(t,e){r.dispatch({type:i,id:t,content:e})}},function(t,e,n){"use strict";var r=n(2);t.exports=function i(t){r.dispatch({type:i,params:t})}},function(t,e,n){"use strict";var r=n(2);t.exports=function i(t){r.dispatch({type:i,params:t})}},function(t,e,n){"use strict";var r=n(2);t.exports=function i(t,e){r.dispatch({type:i,id:t,params:e})}},function(t,e,n){"use strict";var r=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=n(7),a=n(24),s=n(9),c=n(1),u=n(17),l=c.createClass({displayName:"Block",mixins:[s,a],propTypes:{block:c.PropTypes.any.isRequired},getState:function(){return o.find(this.props.block.type)},render:function(){var t=this.props,e=t.block,n=r(t,["block"]),o=this.state.component;return c.createElement(o,i({initialContent:e.content,updateContent:this._onUpdateContent},n))},_onUpdateContent:function(t){u(this.props.block.id,t)}});t.exports=l},function(t,e,n){"use strict";var r=n(36),i=n(7),o=n(1),a=n(9),s=o.createClass({displayName:"BlockMenu",mixins:[a],propTypes:{editor:o.PropTypes.any.isRequired},getDefaultProps:function(){return{position:0}},getState:function(){var t=this.props,e=t.editor,n=t.block;return{types:n.type?i.find(n.type).types:e.types}},getButton:function(t){var e=this.props,n=e.block,i=e.position;return o.createElement(r,{key:t,type:t,block:n,position:i})},getNavigation:function(){return o.createElement("nav",{className:"col-menu",role:"navigation"},this.state.types.map(this.getButton))},render:function(){return this.state.types?this.getNavigation():null}});t.exports=s},function(t){"use strict";t.exports={remove:"Remove this block",fullscreen:"Toggle fullscreen mode"}},function(t,e,n){"use strict";var r=n(57),i={shouldComponentUpdate:function(t,e){return!r(this.props,t)||!r(this.state,e)}};t.exports=i},function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(7),o=n(8),a=n(2),s=n(3),c=n(4),u=[],l=function(){return{mode:s.EDIT_MODE,types:i.keys(),preview:!0}},p={find:function(t,e){var n=u.filter(function(e){return e.id===t})[0];return e||c(n,"Unable to find editor with an id of %s",t),n},_create:function(t){var e=r({},l(),t);c(s[e.mode],"Unacceptable mode for editor: "+e.mode),c(!p.find(e.id,!0),"Editors must have a unique identifier"),u=u.concat(e),o.publish()},_update:function(t,e){var n=p.find(t),i=u.indexOf(n);u=u.concat(),u[i]=r({},l(),n,e),o.publish()},dispatchToken:a.register(function(t){switch(t.type){case n(19):p._create(t.params);break;case n(20):p._update(t.id,t.params)}})};t.exports=p},function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(1),o=n(47);t.exports=function(t){var e=t.mixins||[];return e.indexOf(o)<0&&(e=e.concat(o)),i.createClass(r({},t,{React:i,mixins:e}))}},function(t){"use strict";var e=0,n=function(){return e+=1};t.exports=n},function(t){t.exports=require("react/lib/ReactCSSTransitionGroup")},,,,,,,,function(t,e,n){"use strict";var r=n(7),i=n(11),o=n(14),a=n(1),s=a.createClass({displayName:"AddBlock",getInitialState:function(){return r.find(this.props.type)},render:function(){var t=this.state,e=t.icon,n=t.id,r=t.label;return a.createElement(i,{"aria-label":r,className:"col-btn-icon",onClick:this._onClick},a.createElement("img",{src:e,alt:n,"aria-hidden":"true"}))},_onClick:function(t){var e=this.props,n=e.block,r=e.position,i=e.type;o({content:null,parent:n,type:i},r),t.preventDefault()}});t.exports=s},function(t,e,n){"use strict";var r=n(38),i=n(25),o=(n(3),n(41)),a=n(1),s=n(9),c=n(23),u=n(50),l=a.createClass({displayName:"App",mixins:[s],getState:function(){return{editor:i.find(this.props.editorId)}},fullscreen:function(t){var e=function(){return t.apply(this,arguments)};return e.toString=function(){return t.toString()},e}(function(){u(this.getDOMNode())}),render:function(){var t=this.state.editor;return a.createElement("div",{className:"colonel"},a.createElement(o,{editor:t}),a.createElement(r,{editor:t}),a.createElement("button",{type:"button","aria-label":c.fullscreen,className:"col-fullscreen",onClick:this._onFullscreenClick},"Fullscreen"))},_onFullscreenClick:function(t){t.preventDefault(),this.fullscreen()}});t.exports=l},function(t,e,n){"use strict";var r=function(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0})},i=n(1),o=n(3),a=function(){var t={};return r(t,o.EDIT_MODE,n(39)),r(t,o.PREVIEW_MODE,n(43)),t}(),s=i.createClass({displayName:"ContentSection",render:function(){var t=this.props.editor,e=t.block;return i.createElement(a[t.mode],{block:e,editor:t})}});t.exports=s},function(t,e,n){"use strict";var r=n(28),i=n(22),o=n(40),a=n(5),s=n(1),c=s.createClass({displayName:"Editor",mixins:[a],getBlock:function(t){return s.createElement(o,{key:t.id,block:t,editor:this.props.editor})},render:function(){var t=this.props,e=t.block,n=t.editor;return s.createElement(r,{component:"div",className:"col-content",transitionName:"col-block"},s.createElement(i,{key:"block_menu",block:e,editor:n}),this.state.blocks.map(this.getBlock))}});t.exports=c},function(t,e,n){"use strict";var r=n(28),i=n(21),o=n(22),a=n(5),s=n(42),c=n(1),u=n(46),l=c.createClass({displayName:"EditorBlock",mixins:[a],getBlock:function(t){return c.createElement(l,{key:t.id,block:t,editor:this.props.editor})},render:function(){var t=this.props,e=t.block,n=t.editor;return c.createElement("div",null,c.createElement(s,{block:e},c.createElement(o,{ref:"prepend",block:e,editor:n,position:e.parent}),c.createElement(i,{block:e,mode:n.mode}),c.createElement(r,{component:"div",className:"col-blocks",transitionName:"col-block"},this.state.blocks.map(this.getBlock)),c.createElement(u,{block:e})),c.createElement(o,{ref:"append",block:e.parent,editor:n,position:e}))}});t.exports=l},function(t,e,n){"use strict";var r=n(11),i=n(1),o=i.PropTypes,a=n(20),s=n(3),c=n(24),u=i.createClass({displayName:"ModeSelection",mixins:[c],propType:{editor:o.object.isRequired,modes:o.object},getDefaultProps:function(){return{modes:s}},getTab:function(t){var e=this,n=this.props,o=n.editor,a=n.modes,s={className:"col-tabs-btn",disabled:o.mode===a[t],onClick:function(n){return e._onModeClick(n,a[t])}};return i.createElement("li",{key:t,className:"col-tabs-list-item",role:"tab"},i.createElement(r,s,t.replace("_"," ")))},getTabs:function(){return Object.keys(this.props.modes).map(this.getTab)},render:function(){return this.props.editor.preview?i.createElement("nav",{role:"navigation",className:"col-tabs"},i.createElement("ul",{className:"col-tabs-list",role:"tablist"},this.getTabs())):null},_onModeClick:function(t,e){t.preventDefault(),a(this.props.editor.id,{mode:e})}});t.exports=u},function(t,e,n){"use strict";var r=n(55),i=n(16),o=n(1),a=o.createClass({displayName:"Orderable",render:function(){var t=this.props,e=t.block,n=t.children;return o.createElement(r,{className:"col-block",message:e.id,onDrop:this._onDrop},n)},_onDrop:function(t){i(t,this.props.block.id)}});t.exports=a},function(t,e,n){"use strict";var r=(n(6),n(5)),i=n(44),o=n(1),a=o.createClass({displayName:"Previewer",mixins:[r],getBlock:function(t){return o.createElement(i,{key:t.id,block:t,editor:this.props.editor})},render:function(){return o.createElement("div",{className:"col-blocks"},this.state.blocks.map(this.getBlock))}});t.exports=a},function(t,e,n){"use strict";var r=n(21),i=n(5),o=n(1),a=o.createClass({displayName:"PreviewerBlock",mixins:[i],getBlock:function(t){return o.createElement(a,{key:t.id,block:t,editor:this.props.editor})},render:function(){var t=this.props,e=t.block,n=t.editor;return o.createElement("div",null,o.createElement(r,{block:e,mode:n.mode}),this.state.blocks.map(this.getBlock))}});t.exports=a},function(t,e,n){"use strict";var r=n(11),i=n(15),o=n(23),a=n(1),s=a.createClass({displayName:"RemoveBlock",render:function(){return a.createElement(r,{"aria-label":o.remove,className:"col-btn-remove",onClick:this._onClick},"×")},_onClick:function(t){t.preventDefault(),i(this.props.block.id)}});t.exports=s},function(t,e,n){"use strict";var r=n(1),i=n(45),o=r.createClass({displayName:"Toolbar",render:function(){return r.createElement("div",{className:"col-toolbar"},r.createElement(i,{block:this.props.block}))}});t.exports=o},function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=(n(1),n(3)),o=n(4),a={getDefaultProps:function(){return{mode:i.EDIT_MODE}},getInitialState:function(){return o(this.defaultContent,"BlockType mixin requires `defaultContent` implementation."),{content:this.props.initialContent||this.defaultContent()}},setContent:function(t){var e=r({},this.state.content,t);this.setState({content:e},function(){this.props.updateContent(this.state.content)})},editMode:function(){return this.props.mode===i.EDIT_MODE},render:function(){return o(this.renderEditor,"BlockType mixin requires `renderEditor` implementation."),o(this.renderPreviewer,"BlockType mixin requires `renderPreviewer` implementation."),this.editMode()?this.renderEditor():this.renderPreviewer()}};t.exports=a},function(t,e,n){"use strict";var r=function(t,e,n){e&&Object.defineProperties(t,e),n&&Object.defineProperties(t.prototype,n)},i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},o=n(27),a=function(){function t(e){i(this,t),this.id=o(),this.content=e.content||null,this.parent=e.parent,this.type=e.type}return r(t,null,{toJSON:{value:function(){var t=n(6);return{blocks:t.childrenFor(this).map(function(t){return t.toJSON()}),content:this.content,type:this.type}},writable:!0,configurable:!0}}),t}();t.exports=a},function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(18),o=n(1),a=n(26);t.exports=function(t){var e=t.component;o.isValidElement(e)===!1&&(e=a(e)),i(r({},t,{component:e}))}},function(t){"use strict";t.exports=function(t){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}},function(t,e,n){"use strict";var r=n(6);t.exports=function(t,e){return r._seed(t,e)}},function(t,e,n){t.exports.Dispatcher=n(53)},function(t,e,n){"use strict";function r(){this.$Dispatcher_callbacks={},this.$Dispatcher_isPending={},this.$Dispatcher_isHandled={},this.$Dispatcher_isDispatching=!1,this.$Dispatcher_pendingPayload=null}var i=n(54),o=1,a="ID_";r.prototype.register=function(t){var e=a+o++;return this.$Dispatcher_callbacks[e]=t,e},r.prototype.unregister=function(t){i(this.$Dispatcher_callbacks[t],"Dispatcher.unregister(...): `%s` does not map to a registered callback.",t),delete this.$Dispatcher_callbacks[t]},r.prototype.waitFor=function(t){i(this.$Dispatcher_isDispatching,"Dispatcher.waitFor(...): Must be invoked while dispatching.");for(var e=0;e<t.length;e++){var n=t[e];this.$Dispatcher_isPending[n]?i(this.$Dispatcher_isHandled[n],"Dispatcher.waitFor(...): Circular dependency detected while waiting for `%s`.",n):(i(this.$Dispatcher_callbacks[n],"Dispatcher.waitFor(...): `%s` does not map to a registered callback.",n),this.$Dispatcher_invokeCallback(n))}},r.prototype.dispatch=function(t){i(!this.$Dispatcher_isDispatching,"Dispatch.dispatch(...): Cannot dispatch in the middle of a dispatch."),this.$Dispatcher_startDispatching(t);try{for(var e in this.$Dispatcher_callbacks)this.$Dispatcher_isPending[e]||this.$Dispatcher_invokeCallback(e)}finally{this.$Dispatcher_stopDispatching()}},r.prototype.isDispatching=function(){return this.$Dispatcher_isDispatching},r.prototype.$Dispatcher_invokeCallback=function(t){this.$Dispatcher_isPending[t]=!0,this.$Dispatcher_callbacks[t](this.$Dispatcher_pendingPayload),this.$Dispatcher_isHandled[t]=!0},r.prototype.$Dispatcher_startDispatching=function(t){for(var e in this.$Dispatcher_callbacks)this.$Dispatcher_isPending[e]=!1,this.$Dispatcher_isHandled[e]=!1;this.$Dispatcher_pendingPayload=t,this.$Dispatcher_isDispatching=!0},r.prototype.$Dispatcher_stopDispatching=function(){this.$Dispatcher_pendingPayload=null,this.$Dispatcher_isDispatching=!1},t.exports=r},function(t){"use strict";var e=function(t,e,n,r,i,o,a,s){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],l=0;c=new Error("Invariant Violation: "+e.replace(/%s/g,function(){return u[l++]}))}throw c.framesToPop=1,c}};t.exports=e},function(t,e,n){!function(e,r){t.exports=r(n(1))}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){(function(e){"use strict";var r=e.interopRequire(n(1)),i=e.interopRequire(n(2)),o=e.interopRequire(n(3)),a=r.PropTypes,s=r.createClass({displayName:"Draggable",propTypes:{draggableChildren:a.bool,message:a.any.isRequired,onDrop:a.func.isRequired},getDefaultProps:function(){return{draggableChildren:!1,dropEffect:"copy",effectAllowed:"all"}},getInitialState:function(){return{draggable:!0,dragging:!1,droppable:!1}},render:function(){var t=i(this.props.className,i({dragon:!0,"dragon-dragging":this.state.dragging,"dragon-droppable":this.state.droppable}));return r.createElement("div",{className:t,draggable:this.state.draggable,onDragOver:this._onDragOver,onDragLeave:this._onDragLeave,onDrop:this._onDrop,onDragStart:this._onDragStart,onDragEnd:this._onDragEnd},r.createElement("div",{ref:"children",className:"dragon-children",onFocus:this._onFocus,onBlur:this._onBlur},this.props.children))},_isDraggableAt:function(t,e){if(this.props.draggableChildren)return!0;var n=document.elementFromPoint(t,e),r=this.refs.children.getDOMNode();return n==r||o(n,r)},_onFocus:function(){this.setState({draggable:!1})},_onBlur:function(){this.setState({draggable:!0})},_onDragStart:function(t){return this._isDraggableAt(t.pageX,t.pageY)?t.preventDefault():(t.dataTransfer.setData("text/plain",JSON.stringify(this.props.message)),t.dataTransfer.dropEffect=this.props.dropEffect,t.dataTransfer.effectAllowed=this.props.effectAllowed,void this.setState({dragging:!0}))},_onDragEnd:function(t){t.preventDefault(),this.setState({droppable:!1,dragging:!1})},_onDragOver:function(t){t.preventDefault(),this.setState({droppable:!0})},_onDragLeave:function(t){t.preventDefault(),this.setState({droppable:!1})},_onDrop:function(t){t.preventDefault();var e=JSON.parse(t.dataTransfer.getData("text/plain")),n=this.props.message;this.props.onDrop(e,n),this.setState({droppable:!1,dragging:!1})}});t.exports=s}).call(e,n(4))},function(e){e.exports=t},function(t){"use strict";function e(t){return"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).join(" "):Array.prototype.join.call(arguments," ")}t.exports=e},function(t){"use strict";function e(t,e){for(var n=t;n;){if(n==e)return!0;n=n.parentNode}return!1}t.exports=e},function(t){var e={};!function(t){var e=t.to5Runtime={};e.inherits=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.__proto__=e)},e.defaults=function(t,e){for(var n in e)void 0===t[n]&&(t[n]=e[n]);return t},e.prototypeProperties=function(t,e,n){e&&Object.defineProperties(t,e),n&&Object.defineProperties(t.prototype,n)},e.applyConstructor=function(t,e){var n=Object.create(t.prototype),r=t.apply(n,e);return null==r||"object"!=typeof r&&"function"!=typeof r?n:r},e.taggedTemplateLiteral=function(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},e.interopRequire=function(t){return t&&(t["default"]||t)},e.toArray=function(t){return Array.isArray(t)?t:Array.from(t)},e.slicedToArray=function(t,e){if(Array.isArray(t))return t;for(var n,r=[],i=t[Symbol.iterator]();!(n=i.next()).done&&(r.push(n.value),!e||r.length!==e););return r},e.objectWithoutProperties=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},e.hasOwn=Object.prototype.hasOwnProperty,e.slice=Array.prototype.slice,e.bind=Function.prototype.bind,e.defineProperty=function(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0})},e.interopRequireWildcard=function(t){return t&&t.constructor===Object?t:{"default":t}},e._extends=function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t},e.get=function n(t,n,e){var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:n(i,n,e)}if("value"in r&&r.writable)return r.value;var o=r.get;return void 0===o?void 0:o.call(e)}}("undefined"==typeof e?self:e),t.exports=e.to5Runtime}])})},function(t,e,n){"use strict";var r=n(4),i=function(t){var e,n={};r(t instanceof Object&&!Array.isArray(t));for(e in t)t.hasOwnProperty(e)&&(n[e]=e);return n};t.exports=i},function(t){"use strict";function e(t,e){if(t===e)return!0;var n;for(n in t)if(t.hasOwnProperty(n)&&(!e.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(n in e)if(e.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;return!0}t.exports=e},,,,function(){}]);
//# sourceMappingURL=colonel-kurtz.js.map
{
"name": "colonel-kurtz",
"version": "0.1.0",
"version": "0.2.0",
"description": "A block editor",

@@ -8,3 +8,3 @@ "main": "build/colonel-kurtz.js",

"start": "NODE_ENV=development webpack-dev-server --inline --content-base ./example --config webpack.example.config.js",
"prepublish": "NODE_ENV=production webpack -p --optimize-occurence-order --optimize-dedupe --json > stats.json",
"prepublish": "NODE_ENV=production webpack -p --optimize-occurence-order --optimize-dedupe",
"test": "karma start",

@@ -72,3 +72,2 @@ "coveralls": "CONTINUOUS_INTEGRATION=true npm test && coveralls < coverage/report-lcov/lcov.info"

"peerDependencies": {
"react-ink": ">= 3.0.0",
"flux": "*",

@@ -75,0 +74,0 @@ "react": ">= 0.12.1"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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