colonel-kurtz
Advanced tools
Comparing version 2.9.0 to 2.10.0
@@ -1,2 +0,2 @@ | ||
module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)};t.__esModule=!0;var u=n(25),i=r(u),s=n(26),l=r(s),c=n(12),f=r(c),d=n(1),p=(r(d),n(23)),h=r(p),v=n(24),m=r(v),y=function(e){function t(n){var r=n.el,a=n.blocks,u=n.blockTypes;o(this,t),e.call(this),this.addStore("blocks",l["default"]),this.addStore("blockTypes",i["default"]),this.addPlugin(h["default"],{blocks:a,blockTypes:u}),this.addPlugin(m["default"],{el:r})}return a(t,e),t.prototype.toJSON=function(){return this.serialize().blocks},t}(f["default"]);t["default"]=y,e.exports=t["default"]},function(e,t,n){e.exports=require("react")},function(e,t,n){e.exports=require("classnames")},function(e,t,n){"use strict";t.__esModule=!0;var r=n(12);t["default"]=r.tag({create:function(e,t,n){return{type:e,position:t,parent:n}},destroy:function(e){return e},update:function(e,t){return{id:e,content:t}},move:function(e,t){return{from:e,to:t}}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n};t.__esModule=!0;var a=n(1),u=r(a),i=n(36),s=r(i);t["default"]=u["default"].createClass({displayName:"Button",getDefaultProps:function(){return{className:"col-btn",hide:!1,tagName:"button",type:"button"}},render:function(){var e=this.props,t=e.children,n=e.hide,r=e.tagName,a=o(e,["children","hide","tagName"]);return n?null:u["default"].createElement(r,a,[u["default"].createElement(s["default"],{key:"__ink__"}),t])}}),e.exports=t["default"]},,,,function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(38),a=r(o),u=n(1),i=r(u);t["default"]=i["default"].createClass({displayName:"Animator",getDefaultProps:function(){return{component:"div",transitionName:"col-editor-block"}},render:function(){return i["default"].createElement(a["default"],this.props,this.props.children)}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(3),a=r(o),u=n(1),i=r(u),s=n(20),l=r(s),c=n(21),f=r(c),d=n(2),p=r(d);t["default"]=i["default"].createClass({displayName:"Switch",propTypes:{app:i["default"].PropTypes.object.isRequired},getInitialState:function(){return{open:!1}},componentWillReceiveProps:function(){this.setState({open:!1})},getTypes:function(){var e=this.props,t=e.app,n=e.parent,r=t.get("blockTypes");if(!n)return r;var o=function(){var e=r.filter(function(e){return e.id===n.type})[0].types;return{v:r.filter(function(t){return e.indexOf(t.id)>-1})}}();return"object"==typeof o?o.v:void 0},render:function(){var e=this.props,t=e.app,n=e.forceOpen,r=e.parent,o=e.position,a=this.getTypes(),u=n||this.state.open;return a.length?i["default"].createElement("div",{className:p["default"]("col-switch",{"col-switch-open":u})},i["default"].createElement(f["default"],{onClick:this._onToggle,secondary:r,hide:u}),i["default"].createElement(l["default"],{app:t,blockTypes:a,parent:r,hide:!u,position:o})):null},_onToggle:function(){var e=this.getTypes();if(1===e.length){var t=this.props,n=t.app,r=t.position,o=t.parent;n.push(a["default"].create,e[0].id,r,o)}this.setState({open:!0})}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};t.__esModule=!0;var a=n(34),u=r(a),i=function(){function e(t){o(this,e),this.id=u["default"](),this.content=t.content,this.parent=t.parent,this.type=t.type}return e.prototype.valueOf=function(){return this.id},e}();t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){return e.filter(t.parent?function(e){return e.parent===t.parent}:function(e){return!e.parent})}t.__esModule=!0,t["default"]=r,e.exports=t["default"]},function(e,t,n){e.exports=require("microcosm")},,function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(8),a=r(o),u=n(16),i=r(u),s=n(1),l=r(s),c=n(9),f=r(c);t["default"]=l["default"].createClass({displayName:"App",propTypes:{app:l["default"].PropTypes.object.isRequired},getBlock:function(e,t){return l["default"].createElement(i["default"],{key:e,app:this.props.app,block:e})},render:function(){var e=this.props.app,t=e.refine("blocks").filter(function(e){return!e.parent});return l["default"].createElement("div",{className:"colonel"},l["default"].createElement(f["default"],{app:e}),l["default"].createElement(a["default"],null,t.map(this.getBlock)))}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(3),a=r(o),u=n(17),i=r(u),s=n(1),l=r(s);t["default"]=l["default"].createClass({displayName:"Block",propTypes:{app:l["default"].PropTypes.object.isRequired,block:l["default"].PropTypes.object.isRequired},render:function(){var e=this.props,t=e.app,n=e.block,r=e.children,o=t.refine("blockTypes").find(function(e){return e.id===n.type}),a=o.component;return l["default"].createElement("div",{className:"col-block col-block-"+n.type},l["default"].createElement(a,{ref:"block",content:n.content,onChange:this._onChange},r),l["default"].createElement(i["default"],{app:t,block:n}))},_onChange:function(e){var t=this.props,n=t.app,r=t.block;n.push(a["default"].update,r,e)}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(8),a=r(o),u=n(15),i=r(u),s=n(9),l=r(s),c=n(1),f=r(c),d=f["default"].createClass({displayName:"EditorBlock",propTypes:{app:f["default"].PropTypes.object.isRequired,block:f["default"].PropTypes.object.isRequired},getBlock:function(e,t){return f["default"].createElement(d,{key:e,app:this.props.app,block:e})},render:function(){var e=this.props,t=e.app,n=e.block,r=t.refine("blocks").filter(function(e){return e.parent===n});return f["default"].createElement("div",{className:"col-editor-block"},f["default"].createElement(i["default"],{app:t,block:n},f["default"].createElement(l["default"],{app:t,parent:n}),f["default"].createElement(a["default"],null,r.map(this.getBlock))),f["default"].createElement(l["default"],{app:t,position:n,parent:n.parent}))}});t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(37),a=r(o),u=n(18),i=r(u),s=n(19),l=r(s),c=n(1),f=r(c),d=n(33),p=r(d),h=n(3);t["default"]=f["default"].createClass({displayName:"Menu",propTypes:{app:f["default"].PropTypes.object.isRequired,block:f["default"].PropTypes.object.isRequired},getInitialState:function(){return{open:!1}},render:function(){var e=this.props,t=e.app,n=e.block,r=t.get("blocks"),o=p["default"](r,n,-1),u=p["default"](r,n,1),s=t.prepare(h.move,n),c=t.prepare(h.destroy,n.id);return f["default"].createElement("div",{className:"col-menu-wrapper"},f["default"].createElement(i["default"],{ref:"handle",onClick:this._onHandleClick}),f["default"].createElement(a["default"],{element:"nav",role:"navigation",className:"col-menu",onExit:this._onExit,active:this.state.open},f["default"].createElement(l["default"],{ref:"moveUp",label:"Move Up",onClick:function(){return s(o)},disabled:!o}),f["default"].createElement(l["default"],{ref:"moveDown",label:"Move Down",onClick:function(){return s(u)},disabled:!u}),f["default"].createElement(l["default"],{ref:"destroy",label:"Remove",onClick:c})))},_onExit:function(){this.setState({open:!1})},_onHandleClick:function(e){e.preventDefault(),this.setState({open:!this.state.open})}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n};t.__esModule=!0;var a=n(4),u=r(a),i=n(1),s=r(i),l=n(35),c=r(l);t["default"]=s["default"].createClass({displayName:"MenuHandle",getDefaultProps:function(){return{className:"col-menu-handle",label:"Open the menu for this block",type:"button"}},render:function(){var e=this.props,t=e.label,n=o(e,["label"]);return s["default"].createElement(u["default"],n,s["default"].createElement("span",{className:"col-hidden"},t),s["default"].createElement("span",{"aria-hidden":"true",dangerouslySetInnerHTML:{__html:c["default"]}}))}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n};t.__esModule=!0;var a=n(4),u=r(a),i=n(1),s=r(i);t["default"]=s["default"].createClass({displayName:"MenuItem",propTypes:{label:s["default"].PropTypes.string.isRequired,onClick:s["default"].PropTypes.func.isRequired},getDefaultProps:function(){return{className:"col-menu-item",type:"button"}},render:function(){var e=this.props,t=e.label,n=o(e,["label"]);return s["default"].createElement(u["default"],n,t)}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(3),a=r(o),u=n(4),i=r(u),s=n(1),l=r(s);t["default"]=l["default"].createClass({displayName:"SwitchNav",propTypes:{app:l["default"].PropTypes.object.isRequired,blockTypes:l["default"].PropTypes.array.isRequired},getButton:function(e){var t=this,n=e.id,r=e.label;return l["default"].createElement(i["default"],{key:n,className:"col-switch-btn",onClick:function(){return t._onAdd(n)}},r)},render:function(){var e=this.props,t=(e.app,e.blockTypes),n=e.hide;return n?null:l["default"].createElement("nav",{className:"col-switch-nav",role:"navigation"},t.map(this.getButton))},_onAdd:function(e){var t=this.props,n=t.app,r=t.position,o=t.parent;n.push(a["default"].create,e,r,o)}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(4),a=r(o),u=n(1),i=r(u),s=n(2),l=r(s);t["default"]=i["default"].createClass({displayName:"SwitchToggle",propTypes:{onClick:i["default"].PropTypes.func.isRequired},getDefaultProps:function(){return{label:"Open block creation menu",hide:!1,secondary:!1,symbol:"+"}},render:function(){var e=this.props,t=e.label,n=e.hide,r=e.onClick,o=e.secondary,u=e.symbol,s=l["default"]("col-btn-fab",{"col-btn-fab-secondary":o});return i["default"].createElement(a["default"],{ref:"toggle",className:s,onClick:r,hide:n},i["default"].createElement("span",{className:"col-hidden"},t),i["default"].createElement("span",{"aria-hidden":"true"},u))}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};t.__esModule=!0;var a=n(1),u=r(a),i=function(){function e(t){var n=t.component,r=t.label,a=t.types,i=t.id;o(this,e),"object"==typeof n&&(n=u["default"].createClass(n)),this.id=i,this.label=r,this.types=a||[],this.component=n}return e.prototype.valueOf=function(){return this.id},e}();t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){var t=[];try{t=JSON.parse(e.value)}catch(n){}return t};t["default"]={register:function(e,t,n){var o=t.blocks,a=t.blockTypes;o instanceof HTMLElement&&(o=r(o)),e.replace({blocks:o,blockTypes:a}),n()}},e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(14),a=r(o),u=n(1),i=r(u);t["default"]={render:function(e,t){i["default"].render(i["default"].createElement(a["default"],{app:e}),t)},register:function(e,t,n){var r=this,o=t.el;this.render(e,o),e.listen(function(t){return r.render(e,o)}),n()}},e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(22),a=r(o);t["default"]={getInitialState:function(){return[]},deserialize:function(){var e=void 0===arguments[0]?[]:arguments[0];return e.map(function(e){return new a["default"](e)})},serialize:function(){return void 0}},e.exports=t["default"]},function(e,t,n){"use strict";var r,o=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;{var a=n(3),u=o(a),i=n(10),s=o(i),l=n(27),c=o(l),f=n(29),d=o(f),p=n(30),h=o(p),v=n(31),m=o(v),y=n(11);o(y)}t["default"]=(r={},r.getInitialState=function(){return[]},r.serialize=n(28),r.deserialize=n(32),r[u["default"].create]=function(e,t){var n=t.type,r=t.parent,o=t.position,a=void 0===o?0:o,u=new s["default"]({parent:r,type:n});return a instanceof s["default"]&&(a=e.indexOf(a)+1),m["default"](e,u,a)},r[u["default"].destroy]=function(e,t){return d["default"](e,t)},r[u["default"].update]=function(e,t){var n=h["default"](e,t.id);return n.content=c["default"](n.content,t.content),e},r[u["default"].move]=function(e,t){var n=t.from,r=t.to,o=e.filter(function(e){return e!==n});return m["default"](o,n,e.indexOf(r))},r),e.exports=t["default"]},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.__esModule=!0,t["default"]=function(e,t){return r({},e,t)},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){function t(n){var r=e.filter(function(e){return e.parent===n});return{content:n.content,type:n.type,blocks:r.map(t)}}e=e||[];var n=e.filter(function(e){return!e.parent});return n.map(t)}t.__esModule=!0,t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e,t){return e.filter(function(e){for(var n=e;n;n=n.parent)if(n.id==t)return!1;return!0})},e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e,t){var n=void 0===arguments[2]?"id":arguments[2],r=e.filter(function(e){return e[n]==t});if(r.length)return r[0];throw new Error("Unable to find record with "+n+" of "+t)},e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e,t,n){return Math.max(t,Math.min(n,e))};t["default"]=function(e,t){var n=void 0===arguments[2]?e.length:arguments[2];return function(){var o=r(n,0,e.length),a=e.slice(0,o),u=e.slice(o);return a.concat(t,u)}()},e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){return e=e||[],e.reduce(function(e,n){var o=new i["default"](a({},n,{parent:t})),u=r(n.blocks,o);return e.concat(o,u)},[])}var o=function(e){return e&&e.__esModule?e:{"default":e}},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.__esModule=!0,t["default"]=r;var u=n(10),i=o(u);e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(11),a=r(o);t["default"]=function(e,t,n){var r=a["default"](e,t),o=r.indexOf(t);return-1!==o?r[o+n]:null},e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=0;t["default"]=function(){return"c"+(r+=1)},e.exports=t["default"]},function(e,t,n){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>\n'},function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(4),a=0,u=n(5),i=n(8),s=n(2),l=n(7),c=i.PropTypes,f=2*Math.PI,d=n(1),p=n(6),h=i.createClass({displayName:"Ink",shouldComponentUpdate:p,propTypes:{background:c.bool,duration:c.number,opacity:c.number,radius:c.number,recenter:c.bool},getDefaultProps:function(){return{background:!0,duration:1e3,opacity:.25,radius:150,recenter:!0}},getInitialState:function(){return{store:l(this.tick),touchEvents:this.touchEvents()}},touchEvents:function(){return o?{onTouchStart:this._onPress,onTouchEnd:this._onRelease,onTouchCancel:this._onRelease,onTouchLeave:this._onRelease}:{onMouseDown:this._onPress,onMouseUp:this._onRelease,onMouseLeave:this._onRelease}},tick:function(){var e=this.state.ctx,t=this.state.color,n=this.state.density,r=this.state.height,o=this.state.width,a=this.state.store;e.save(),e.scale(n,n),e.clearRect(0,0,o,r),e.fillStyle=t,this.props.background&&(e.globalAlpha=a.getTotalOpacity(this.props.opacity),e.fillRect(0,0,o,r)),a.each(this.makeBlot,this),e.restore()},makeBlot:function(e){var t=this.state.ctx,n=this.state.height,r=this.state.width,o=e.x,a=e.y,u=e.radius;if(t.globalAlpha=d.getBlotOpacity(e,this.props.opacity),t.beginPath(),this.props.recenter){var i=Math.max(n,r);o+=d.getBlotShiftX(e,i,r),a+=d.getBlotShiftY(e,i,n)}t.arc(o,a,u*d.getBlotScale(e),0,f),t.closePath(),t.fill()},componentWillUnmount:function(){this.state.store.stop()},pushBlot:function(e,t,n){var r=this,o=this.getDOMNode(),a=o.getBoundingClientRect(),i=a.top,s=a.bottom,l=a.left,c=a.right,f=window.getComputedStyle(o),p=f.color,h=this.state.ctx||o.getContext("2d"),v=this.state.density||u(h),m=s-i,y=c-l,_=d.getMaxRadius(m,y,this.props.radius);this.setState({color:p,ctx:h,density:v,height:m,width:y},function(){r.state.store.add({duration:r.props.duration,mouseDown:e,mouseUp:0,radius:_,x:t-l,y:n-i})})},render:function(){var e=this.state.density,t=this.state.height,n=this.state.width,o=this.state.touchEvents;return i.createElement("canvas",r({className:"ink",style:r({},s,this.props.style),height:t*e,width:n*e,onDragOver:this._onRelease},o))},_onPress:function(e){var t=e.button,n=e.ctrlKey,r=e.clientX,o=e.clientY,u=e.changedTouches,i=Date.now();if(u)for(var s=0;s<u.length;s++){var l=u[s].clientX,c=u[s].clientY;this.pushBlot(i,l,c)}else t!==a||n||this.pushBlot(i,r,o)},_onRelease:function(){this.state.store.release(Date.now())}});e.exports=h},function(e,t,n){"use strict";function r(e){return c(e.duration,Date.now()-e.mouseDown)}function o(e){return e.mouseUp>0?Date.now()-e.mouseUp:0}function a(e){var t=e.duration,n=e.radius,a=.85*u(r(e),0,n,t),i=.15*u(o(e),0,n,t),c=.02*n*s(Date.now()/t);return l(0,a+i+c)}var u=n(3),i=Math.sqrt(2),s=Math.cos,l=Math.max,c=Math.min;e.exports={getMaxRadius:function(e,t,n){return c(.5*l(e,t),n)},getBlotOpacity:function(e,t){return u(o(e),t,-t,e.duration)},getBlotOuterOpacity:function(e,t){return c(this.getBlotOpacity(e,t),u(r(e),0,.3,3*e.duration))},getBlotShiftX:function(e,t,n){return c(1,a(e)/t*2/i)*(n/2-e.x)},getBlotShiftY:function(e,t,n){return c(1,a(e)/t*2/i)*(n/2-e.y)},getBlotScale:function(e){return a(e)/e.radius}}},function(e){"use strict";e.exports={borderRadius:"inherit",height:"100%",left:0,position:"absolute",top:0,width:"100%"}},function(e){"use strict";e.exports=function(e,t,n,r){return n*((e=e/r-1)*e*e*e*e+1)+t}},function(e){"use strict";var t=!1;"undefined"!=typeof window&&(t="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch),e.exports=t},function(e){"use strict";e.exports=function(e){var t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}},function(e){"use strict";function t(e,t){for(var n in e)if(this.props[n]!==e[n])return!0;for(var r in t)if(this.state[r]!==t[r])return!0;return!1}e.exports=t},function(e,t,n){"use strict";var r=n(1),o=function(e){var t=e.mouseUp,n=e.duration;return!t||Date.now()-t<n};e.exports=function(e){var t=[],n=!1,a=void 0,u={each:function(e,n){for(var r=0,o=t.length;o>r;r++)e.call(n,t[r])},play:function(){n||(n=!0,u.update())},stop:function(){n=!1,cancelAnimationFrame(a)},getTotalOpacity:function(e){for(var n=0,o=0,a=t.length;a>o;o++)n+=r.getBlotOuterOpacity(t[o],e);return n},update:function(){t=t.filter(o),t.length?(a=requestAnimationFrame(u.update),e()):u.stop()},add:function(e){t.push(e),u.play()},release:function(e){for(var n=t.length-1;n>=0;n--)if(!t[n].mouseUp)return t[n].mouseUp=e}};return u}},function(e){e.exports=n(1)}])},function(e,t,n){e.exports=require("react-focus-trap")},function(e,t,n){e.exports=require("react/lib/ReactCSSTransitionGroup")}]); | ||
module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)};t.__esModule=!0;var u=n(25),i=r(u),s=n(26),l=r(s),c=n(12),f=r(c),d=n(1),p=(r(d),n(23)),h=r(p),v=n(24),m=r(v),y=function(e){function t(n){var r=n.el,a=n.blocks,u=n.blockTypes;o(this,t),e.call(this),this.addStore("blocks",l["default"]),this.addStore("blockTypes",i["default"]),this.addPlugin(h["default"],{blocks:a,blockTypes:u}),this.addPlugin(m["default"],{el:r})}return a(t,e),t.prototype.toJSON=function(){return this.serialize().blocks},t}(f["default"]);t["default"]=y,e.exports=t["default"]},function(e,t,n){e.exports=require("react")},function(e,t,n){e.exports=require("classnames")},function(e,t,n){"use strict";t.__esModule=!0;var r=n(12);t["default"]=r.tag({create:function(e,t,n){return{type:e,position:t,parent:n}},destroy:function(e){return e},update:function(e,t){return{id:e,content:t}},move:function(e,t){return{from:e,to:t}}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n};t.__esModule=!0;var a=n(1),u=r(a),i=n(36),s=r(i);t["default"]=u["default"].createClass({displayName:"Button",getDefaultProps:function(){return{className:"col-btn",hide:!1,tagName:"button",type:"button"}},render:function(){var e=this.props,t=e.children,n=e.hide,r=e.tagName,a=o(e,["children","hide","tagName"]);return n?null:u["default"].createElement(r,a,[u["default"].createElement(s["default"],{key:"__ink__"}),t])}}),e.exports=t["default"]},,,,function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(38),a=r(o),u=n(1),i=r(u);t["default"]=i["default"].createClass({displayName:"Animator",getDefaultProps:function(){return{component:"div",transitionName:"col-editor-block"}},render:function(){return i["default"].createElement(a["default"],this.props,this.props.children)}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(3),a=r(o),u=n(1),i=r(u),s=n(20),l=r(s),c=n(21),f=r(c),d=n(2),p=r(d);t["default"]=i["default"].createClass({displayName:"Switch",propTypes:{app:i["default"].PropTypes.object.isRequired},getInitialState:function(){return{open:!1}},componentWillReceiveProps:function(){this.setState({open:!1})},getTypes:function(){var e=this.props,t=e.app,n=e.parent,r=t.get("blockTypes");if(!n)return r;var o=function(){var e=r.filter(function(e){return e.id===n.type})[0].types;return{v:r.filter(function(t){return e.indexOf(t.id)>-1})}}();return"object"==typeof o?o.v:void 0},render:function(){var e=this.props,t=e.app,n=e.forceOpen,r=e.parent,o=e.position,a=this.getTypes(),u=n||this.state.open;return a.length?i["default"].createElement("div",{className:p["default"]("col-switch",{"col-switch-open":u})},i["default"].createElement(f["default"],{onClick:this._onToggle,secondary:r,hide:u}),i["default"].createElement(l["default"],{app:t,blockTypes:a,parent:r,hide:!u,position:o})):null},_onToggle:function(){var e=this.getTypes();if(1===e.length){var t=this.props,n=t.app,r=t.position,o=t.parent;n.push(a["default"].create,e[0].id,r,o)}this.setState({open:!0})}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};t.__esModule=!0;var a=n(34),u=r(a),i=function(){function e(t){o(this,e),this.id=u["default"](),this.content=t.content,this.parent=t.parent,this.type=t.type}return e.prototype.valueOf=function(){return this.id},e}();t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){return e.filter(t.parent?function(e){return e.parent===t.parent}:function(e){return!e.parent})}t.__esModule=!0,t["default"]=r,e.exports=t["default"]},function(e,t,n){e.exports=require("microcosm")},,function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(8),a=r(o),u=n(16),i=r(u),s=n(1),l=r(s),c=n(9),f=r(c);t["default"]=l["default"].createClass({displayName:"App",propTypes:{app:l["default"].PropTypes.object.isRequired},getBlock:function(e,t){return l["default"].createElement(i["default"],{key:e,app:this.props.app,block:e})},render:function(){var e=this.props.app,t=e.refine("blocks").filter(function(e){return!e.parent});return l["default"].createElement("div",{className:"colonel"},l["default"].createElement(f["default"],{app:e}),l["default"].createElement(a["default"],null,t.map(this.getBlock)))}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(3),a=r(o),u=n(17),i=r(u),s=n(1),l=r(s);t["default"]=l["default"].createClass({displayName:"Block",propTypes:{app:l["default"].PropTypes.object.isRequired,block:l["default"].PropTypes.object.isRequired},render:function(){var e=this.props,t=e.app,n=e.block,r=e.children,o=t.refine("blockTypes").find(function(e){return e.id===n.type}),a=o.component;return l["default"].createElement("div",{className:"col-block col-block-"+n.type},l["default"].createElement(a,{ref:"block",content:n.content,onChange:this._onChange},r),l["default"].createElement(i["default"],{app:t,block:n}))},_onChange:function(e){var t=this.props,n=t.app,r=t.block;n.push(a["default"].update,r,e)}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(8),a=r(o),u=n(15),i=r(u),s=n(9),l=r(s),c=n(1),f=r(c),d=f["default"].createClass({displayName:"EditorBlock",propTypes:{app:f["default"].PropTypes.object.isRequired,block:f["default"].PropTypes.object.isRequired},getBlock:function(e,t){return f["default"].createElement(d,{key:e,app:this.props.app,block:e})},render:function(){var e=this.props,t=e.app,n=e.block,r=t.refine("blocks").filter(function(e){return e.parent===n});return f["default"].createElement("div",{className:"col-editor-block"},f["default"].createElement(i["default"],{app:t,block:n},f["default"].createElement(l["default"],{app:t,parent:n}),f["default"].createElement(a["default"],null,r.map(this.getBlock))),f["default"].createElement(l["default"],{app:t,position:n,parent:n.parent}))}});t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(37),a=r(o),u=n(18),i=r(u),s=n(19),l=r(s),c=n(1),f=r(c),d=n(33),p=r(d),h=n(3);t["default"]=f["default"].createClass({displayName:"Menu",propTypes:{app:f["default"].PropTypes.object.isRequired,block:f["default"].PropTypes.object.isRequired},getInitialState:function(){return{open:!1}},render:function(){var e=this.props,t=e.app,n=e.block,r=t.get("blocks"),o=p["default"](r,n,-1),u=p["default"](r,n,1),s=t.prepare(h.move,n),c=t.prepare(h.destroy,n.id);return f["default"].createElement("div",{className:"col-menu-wrapper"},f["default"].createElement(i["default"],{ref:"handle",onClick:this._onHandleClick}),f["default"].createElement(a["default"],{element:"nav",role:"navigation",className:"col-menu",onExit:this._onExit,active:this.state.open},f["default"].createElement(l["default"],{ref:"moveUp",label:"Move Up",onClick:function(){return s(o)},disabled:!o}),f["default"].createElement(l["default"],{ref:"moveDown",label:"Move Down",onClick:function(){return s(u)},disabled:!u}),f["default"].createElement(l["default"],{ref:"destroy",label:"Remove",onClick:c})))},_onExit:function(){this.setState({open:!1})},_onHandleClick:function(e){e.preventDefault(),this.setState({open:!this.state.open})}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n};t.__esModule=!0;var a=n(4),u=r(a),i=n(1),s=r(i),l=n(35),c=r(l);t["default"]=s["default"].createClass({displayName:"MenuHandle",getDefaultProps:function(){return{className:"col-menu-handle",label:"Open the menu for this block",type:"button"}},render:function(){var e=this.props,t=e.label,n=o(e,["label"]);return s["default"].createElement(u["default"],n,s["default"].createElement("span",{className:"col-hidden"},t),s["default"].createElement("span",{"aria-hidden":"true",dangerouslySetInnerHTML:{__html:c["default"]}}))}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n};t.__esModule=!0;var a=n(4),u=r(a),i=n(1),s=r(i);t["default"]=s["default"].createClass({displayName:"MenuItem",propTypes:{label:s["default"].PropTypes.string.isRequired,onClick:s["default"].PropTypes.func.isRequired},getDefaultProps:function(){return{className:"col-menu-item",type:"button"}},render:function(){var e=this.props,t=e.label,n=o(e,["label"]);return s["default"].createElement(u["default"],n,t)}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(3),a=r(o),u=n(4),i=r(u),s=n(1),l=r(s);t["default"]=l["default"].createClass({displayName:"SwitchNav",propTypes:{app:l["default"].PropTypes.object.isRequired,blockTypes:l["default"].PropTypes.array.isRequired},getButton:function(e){var t=this,n=e.id,r=e.label;return l["default"].createElement(i["default"],{key:n,className:"col-switch-btn",onClick:function(){return t._onAdd(n)}},r)},render:function(){var e=this.props,t=e.blockTypes,n=e.hide;return n?null:l["default"].createElement("nav",{className:"col-switch-nav",role:"navigation"},t.map(this.getButton))},_onAdd:function(e){var t=this.props,n=t.app,r=t.position,o=t.parent;n.push(a["default"].create,e,r,o)}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(4),a=r(o),u=n(1),i=r(u),s=n(2),l=r(s);t["default"]=i["default"].createClass({displayName:"SwitchToggle",propTypes:{onClick:i["default"].PropTypes.func.isRequired},getDefaultProps:function(){return{label:"Open block creation menu",hide:!1,secondary:!1,symbol:"+"}},render:function(){var e=this.props,t=e.label,n=e.hide,r=e.onClick,o=e.secondary,u=e.symbol,s=l["default"]("col-btn-fab",{"col-btn-fab-secondary":o});return i["default"].createElement(a["default"],{ref:"toggle",className:s,onClick:r,hide:n},i["default"].createElement("span",{className:"col-hidden"},t),i["default"].createElement("span",{"aria-hidden":"true"},u))}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};t.__esModule=!0;var a=n(1),u=r(a),i=function(){function e(t){var n=t.component,r=t.label,a=t.types,i=t.id;o(this,e),"object"==typeof n&&(n=u["default"].createClass(n)),this.id=i,this.label=r,this.types=a||[],this.component=n}return e.prototype.valueOf=function(){return this.id},e}();t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){var t=[];try{t=JSON.parse(e.value)}catch(n){}return t};t["default"]={register:function(e,t,n){var o=t.blocks,a=t.blockTypes;o instanceof HTMLElement&&(o=r(o)),e.replace({blocks:o,blockTypes:a}),n()}},e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(14),a=r(o),u=n(1),i=r(u);t["default"]={render:function(e,t){i["default"].render(i["default"].createElement(a["default"],{app:e}),t)},register:function(e,t,n){var r=this,o=t.el;this.render(e,o),e.listen(function(t){return r.render(e,o)}),n()}},e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(22),a=r(o);t["default"]={getInitialState:function(){return[]},deserialize:function(){var e=void 0===arguments[0]?[]:arguments[0];return e.map(function(e){return new a["default"](e)})},serialize:function(){return void 0}},e.exports=t["default"]},function(e,t,n){"use strict";var r,o=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;{var a=n(3),u=o(a),i=n(10),s=o(i),l=n(27),c=o(l),f=n(29),d=o(f),p=n(30),h=o(p),v=n(31),m=o(v),y=n(11);o(y)}t["default"]=(r={},r.getInitialState=function(){return[]},r.serialize=n(28),r.deserialize=n(32),r[u["default"].create]=function(e,t){var n=t.type,r=t.parent,o=t.position,a=void 0===o?0:o,u=new s["default"]({parent:r,type:n});return a instanceof s["default"]&&(a=e.indexOf(a)+1),m["default"](e,u,a)},r[u["default"].destroy]=function(e,t){return d["default"](e,t)},r[u["default"].update]=function(e,t){var n=h["default"](e,t.id);return n.content=c["default"](n.content,t.content),e},r[u["default"].move]=function(e,t){var n=t.from,r=t.to,o=e.filter(function(e){return e!==n});return m["default"](o,n,e.indexOf(r))},r),e.exports=t["default"]},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.__esModule=!0,t["default"]=function(e,t){return r({},e,t)},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){function t(n){var r=e.filter(function(e){return e.parent===n});return{content:n.content,type:n.type,blocks:r.map(t)}}e=e||[];var n=e.filter(function(e){return!e.parent});return n.map(t)}t.__esModule=!0,t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e,t){return e.filter(function(e){for(var n=e;n;n=n.parent)if(n.id==t)return!1;return!0})},e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e,t){var n=void 0===arguments[2]?"id":arguments[2],r=e.filter(function(e){return e[n]==t});if(r.length)return r[0];throw new Error("Unable to find record with "+n+" of "+t)},e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e,t,n){return Math.max(t,Math.min(n,e))};t["default"]=function(e,t){var n=void 0===arguments[2]?e.length:arguments[2];return function(){var o=r(n,0,e.length),a=e.slice(0,o),u=e.slice(o);return a.concat(t,u)}()},e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){return e=e||[],e.reduce(function(e,n){var o=new i["default"](a({},n,{parent:t})),u=r(n.blocks,o);return e.concat(o,u)},[])}var o=function(e){return e&&e.__esModule?e:{"default":e}},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.__esModule=!0,t["default"]=r;var u=n(10),i=o(u);e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var o=n(11),a=r(o);t["default"]=function(e,t,n){var r=a["default"](e,t),o=r.indexOf(t);return-1!==o?r[o+n]:null},e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=0;t["default"]=function(){return"c"+(r+=1)},e.exports=t["default"]},function(e,t,n){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>\n'},function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(4),a=0,u=n(5),i=n(8),s=n(2),l=n(7),c=i.PropTypes,f=2*Math.PI,d=n(1),p=n(6),h=i.createClass({displayName:"Ink",shouldComponentUpdate:p,propTypes:{background:c.bool,duration:c.number,opacity:c.number,radius:c.number,recenter:c.bool},getDefaultProps:function(){return{background:!0,duration:1e3,opacity:.25,radius:150,recenter:!0}},getInitialState:function(){return{store:l(this.tick),touchEvents:this.touchEvents()}},touchEvents:function(){return o?{onTouchStart:this._onPress,onTouchEnd:this._onRelease,onTouchCancel:this._onRelease,onTouchLeave:this._onRelease}:{onMouseDown:this._onPress,onMouseUp:this._onRelease,onMouseLeave:this._onRelease}},tick:function(){var e=this.state.ctx,t=this.state.color,n=this.state.density,r=this.state.height,o=this.state.width,a=this.state.store;e.save(),e.scale(n,n),e.clearRect(0,0,o,r),e.fillStyle=t,this.props.background&&(e.globalAlpha=a.getTotalOpacity(this.props.opacity),e.fillRect(0,0,o,r)),a.each(this.makeBlot,this),e.restore()},makeBlot:function(e){var t=this.state.ctx,n=this.state.height,r=this.state.width,o=e.x,a=e.y,u=e.radius;if(t.globalAlpha=d.getBlotOpacity(e,this.props.opacity),t.beginPath(),this.props.recenter){var i=Math.max(n,r);o+=d.getBlotShiftX(e,i,r),a+=d.getBlotShiftY(e,i,n)}t.arc(o,a,u*d.getBlotScale(e),0,f),t.closePath(),t.fill()},componentWillUnmount:function(){this.state.store.stop()},pushBlot:function(e,t,n){var r=this,o=this.getDOMNode(),a=o.getBoundingClientRect(),i=a.top,s=a.bottom,l=a.left,c=a.right,f=window.getComputedStyle(o),p=f.color,h=this.state.ctx||o.getContext("2d"),v=this.state.density||u(h),m=s-i,y=c-l,_=d.getMaxRadius(m,y,this.props.radius);this.setState({color:p,ctx:h,density:v,height:m,width:y},function(){r.state.store.add({duration:r.props.duration,mouseDown:e,mouseUp:0,radius:_,x:t-l,y:n-i})})},render:function(){var e=this.state.density,t=this.state.height,n=this.state.width,o=this.state.touchEvents;return i.createElement("canvas",r({className:"ink",style:r({},s,this.props.style),height:t*e,width:n*e,onDragOver:this._onRelease},o))},_onPress:function(e){var t=e.button,n=e.ctrlKey,r=e.clientX,o=e.clientY,u=e.changedTouches,i=Date.now();if(u)for(var s=0;s<u.length;s++){var l=u[s].clientX,c=u[s].clientY;this.pushBlot(i,l,c)}else t!==a||n||this.pushBlot(i,r,o)},_onRelease:function(){this.state.store.release(Date.now())}});e.exports=h},function(e,t,n){"use strict";function r(e){return c(e.duration,Date.now()-e.mouseDown)}function o(e){return e.mouseUp>0?Date.now()-e.mouseUp:0}function a(e){var t=e.duration,n=e.radius,a=.85*u(r(e),0,n,t),i=.15*u(o(e),0,n,t),c=.02*n*s(Date.now()/t);return l(0,a+i+c)}var u=n(3),i=Math.sqrt(2),s=Math.cos,l=Math.max,c=Math.min;e.exports={getMaxRadius:function(e,t,n){return c(.5*l(e,t),n)},getBlotOpacity:function(e,t){return u(o(e),t,-t,e.duration)},getBlotOuterOpacity:function(e,t){return c(this.getBlotOpacity(e,t),u(r(e),0,.3,3*e.duration))},getBlotShiftX:function(e,t,n){return c(1,a(e)/t*2/i)*(n/2-e.x)},getBlotShiftY:function(e,t,n){return c(1,a(e)/t*2/i)*(n/2-e.y)},getBlotScale:function(e){return a(e)/e.radius}}},function(e){"use strict";e.exports={borderRadius:"inherit",height:"100%",left:0,position:"absolute",top:0,width:"100%"}},function(e){"use strict";e.exports=function(e,t,n,r){return n*((e=e/r-1)*e*e*e*e+1)+t}},function(e){"use strict";var t=!1;"undefined"!=typeof window&&(t="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch),e.exports=t},function(e){"use strict";e.exports=function(e){var t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}},function(e){"use strict";function t(e,t){for(var n in e)if(this.props[n]!==e[n])return!0;for(var r in t)if(this.state[r]!==t[r])return!0;return!1}e.exports=t},function(e,t,n){"use strict";var r=n(1),o=function(e){var t=e.mouseUp,n=e.duration;return!t||Date.now()-t<n};e.exports=function(e){var t=[],n=!1,a=void 0,u={each:function(e,n){for(var r=0,o=t.length;o>r;r++)e.call(n,t[r])},play:function(){n||(n=!0,u.update())},stop:function(){n=!1,cancelAnimationFrame(a)},getTotalOpacity:function(e){for(var n=0,o=0,a=t.length;a>o;o++)n+=r.getBlotOuterOpacity(t[o],e);return n},update:function(){t=t.filter(o),t.length?(a=requestAnimationFrame(u.update),e()):u.stop()},add:function(e){t.push(e),u.play()},release:function(e){for(var n=t.length-1;n>=0;n--)if(!t[n].mouseUp)return t[n].mouseUp=e}};return u}},function(e){e.exports=n(1)}])},function(e,t,n){e.exports=require("react-focus-trap")},function(e,t,n){e.exports=require("react/lib/ReactCSSTransitionGroup")}]); | ||
//# sourceMappingURL=colonel-kurtz.js.map |
# Changelog | ||
## 2.10.0 | ||
### Noticeable Changes | ||
- Colonel Kurtz will now inherit theme colors from upcoming | ||
active_material gem. Beyond exposing variables, no visual | ||
differences should be observed. | ||
### Bug fixes | ||
- Fixed some style inconsistencies in Firefox | ||
## 2.9.0 | ||
@@ -4,0 +16,0 @@ |
{ | ||
"name": "colonel-kurtz", | ||
"version": "2.9.0", | ||
"version": "2.10.0", | ||
"description": "A block editor", | ||
@@ -5,0 +5,0 @@ "main": "build/colonel-kurtz.js", |
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
515688