colonel-kurtz
Advanced tools
Comparing version 2.18.0 to 2.19.0
@@ -22,3 +22,3 @@ var Close = require('./close'); | ||
return React.createElement(headingComponent, { | ||
className: 'col-dialog-title' | ||
className: "col-dialog-title" | ||
}, title); | ||
@@ -25,0 +25,0 @@ } |
@@ -17,3 +17,3 @@ /** | ||
return { | ||
baseUrl: 'https://www.youtube.com/embed/', | ||
baseUrl: "https://www.youtube.com/embed/", | ||
content: { | ||
@@ -20,0 +20,0 @@ video_id: '' |
{ | ||
"name": "colonel-kurtz", | ||
"version": "2.18.0", | ||
"version": "2.19.0", | ||
"description": "A block editor", | ||
@@ -47,3 +47,13 @@ "main": "src/Colonel.js", | ||
"react-ink": "~4.1" | ||
}, | ||
"babel": { | ||
"stage": 1, | ||
"sourceMaps": "inline", | ||
"blacklist": [ | ||
"strict" | ||
], | ||
"plugins": [ | ||
"object-assign" | ||
] | ||
} | ||
} |
@@ -0,4 +1,8 @@ | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; desc = parent = getter = undefined; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } }; | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | ||
@@ -27,6 +31,8 @@ /** | ||
var ColonelKurtz = (function (_Microcosm) { | ||
_inherits(ColonelKurtz, _Microcosm); | ||
function ColonelKurtz(options) { | ||
_classCallCheck(this, ColonelKurtz); | ||
_Microcosm.call(this); | ||
_get(Object.getPrototypeOf(ColonelKurtz.prototype), 'constructor', this).call(this); | ||
@@ -56,8 +62,9 @@ /** | ||
_inherits(ColonelKurtz, _Microcosm); | ||
_createClass(ColonelKurtz, [{ | ||
key: 'toJSON', | ||
value: function toJSON() { | ||
return this.serialize().blocks; | ||
} | ||
}]); | ||
ColonelKurtz.prototype.toJSON = function toJSON() { | ||
return this.serialize().blocks; | ||
}; | ||
return ColonelKurtz; | ||
@@ -67,2 +74,2 @@ })(Microcosm); | ||
module.exports = ColonelKurtz; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db2xvbmVsLmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFLQSxJQUFJLFVBQVUsR0FBRyxPQUFPLENBQUMscUJBQXFCLENBQUMsQ0FBQTtBQUMvQyxJQUFJLE1BQU0sR0FBTyxPQUFPLENBQUMsaUJBQWlCLENBQUMsQ0FBQTtBQUMzQyxJQUFJLFNBQVMsR0FBSSxPQUFPLENBQUMs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kYXRpbmcgdGhlIGJyb3dzZXIgdWlcbiAgICAgKi9cbiAgICB0aGlzLmFkZFBsdWdpbihyZW5kZXIsIG9wdGlvbnMpXG4gIH1cblxuICB0b0pTT04oKSB7XG4gICAgcmV0dXJuIHRoaXMuc2VyaWFsaXplKCkuYmxvY2tzXG4gIH1cblxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IENvbG9uZWxLdXJ0elxuIl19 |
@@ -0,1 +1,3 @@ | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } | ||
@@ -15,5 +17,8 @@ | ||
Block.prototype.valueOf = function valueOf() { | ||
return this.id; | ||
}; | ||
_createClass(Block, [{ | ||
key: 'valueOf', | ||
value: function valueOf() { | ||
return this.id; | ||
} | ||
}]); | ||
@@ -24,2 +29,2 @@ return Block; | ||
module.exports = Block; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9tb2RlbHMvQmxvY2suanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxJQUFJLEdBQUcsR0FBRyxPQUFPLENBQUMsY0FBYyxDQUFDLENBQUE7O0lBRTNCLEtBQUs7QUFFRSxXQUZQLEtBQUssQ0FFRyxNQUFNLEVBQUU7MEJBRmhCLEtBQUs7O0FBR1AsUUFBSSxDQUFDLEVBQUUsR0FBUSxHQUFHLEVBQUUsQ0FBQTtBQUNwQixRQUFJLENBQUMsT0FBTyxHQUFHLE1BQU0sQ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sRUFBRSxDQUFBO0FBQ3BCLFFBQUksQ0FBQyxPQUFPLEdBQUcsTUFBTSxDQUFDLE9BQU8sSUFBSSxFQUFFLENBQUE7QUFDbkMsUUFBSSxDQUFDLE1BQU0sR0FBSSxNQUFNLENBQUMsTUFBTSxDQUFBO0FBQzVCLFFBQUksQ0FBQyxJQUFJLEdBQU0sTUFBTSxDQUFDLElBQUksQ0FBQTtHQUMzQjs7ZUFQRyxLQUFLOztXQVNGLG1CQUFHO0FBQ1IsYUFBTyxJQUFJLENBQUMsRUFBRSxDQUFBO0tBQ2Y7OztTQVhHLEtBQUs7OztBQWVYLE1BQU0sQ0FBQyxPQUFPLEdBQUcsS0FBSyxDQUFBIiwiZmlsZSI6IkJsb2NrLmpzIiwic291cmNlc0NvbnRlbnQiOlsibGV0IHVpZCA9IHJlcXVpcmUoJy4uL3V0aWxzL3VpZCcpXG5cbmNsYXNzIEJsb2NrIHtcblxuICBjb25zdHJ1Y3RvcihwYXJhbXMpIHtcbiAgICB0aGlzLmlkICAgICAgPSB1aWQoKVxuICAgIHRoaXMuY29udGVudCA9IHBhcmFtcy5jb250ZW50IHx8IHt9XG4gICAgdGhpcy5wYXJlbnQgID0gcGFyYW1zLnBhcmVudFxuICAgIHRoaXMudHlwZSAgICA9IHBhcmFtcy50eXBlXG4gIH1cblxuICB2YWx1ZU9mKCkge1xuICAgIHJldHVybiB0aGlzLmlkXG4gIH1cblxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IEJsb2NrXG4iXX0= |
@@ -0,1 +1,3 @@ | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
@@ -6,4 +8,6 @@ | ||
var React = require('react'); | ||
var DefaultBlockType = require('../components/DefaultBlockType'); | ||
var defaults = { | ||
component: DefaultBlockType, | ||
maxChildren: Infinity, | ||
@@ -27,5 +31,8 @@ root: true, | ||
BlockType.prototype.valueOf = function valueOf() { | ||
return this.id; | ||
}; | ||
_createClass(BlockType, [{ | ||
key: 'valueOf', | ||
value: function valueOf() { | ||
return this.id; | ||
} | ||
}]); | ||
@@ -36,2 +43,2 @@ return BlockType; | ||
module.exports = BlockType; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9tb2RlbHMvQmxvY2tUeXBlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxJQUFJLEtBQUssR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUE7O0FBRTVCLElBQUksUUFBUSxHQUFHO0FBQ2IsYUFBVyxFQUFHLFFBQVE7QUFDdEIsTUFBSSxFQUFVLElBQUk7QUFDbEIsT0FBSyxFQUFTLEVBQUU7Q0FDakIsQ0FBQTs7SUFFSyxTQUFTO0FBRUYsV0FGUCxTQUFTLENBRUQsTUFBTSxFQUFFOzBCQUZoQixTQUFTOztvQkFHUyxTQUFjLElBQUksRUFBRSxRQUFRLEVBQUUsTUFBTSxDQUFDOztRQUFuRCxTQUFTLGFBQVQsU0FBUzs7QUFFZixRQUFJLE9BQU8sU0FBUyxLQUFLLFFBQVEsRUFBRTtBQUNqQyxVQUFJLENBQUMsU0FBUyxHQUFHLEtBQUssQ0FBQyxXQUFXLENBQUMsU0FBUyxDQUFDLENBQUE7S0FDOUM7R0FDRjs7QUFSRyxXQUFTLFdBVWIsT0FBTyxHQUFBLG1CQUFHO0FBQ1IsV0FBTy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xuICAgICAgdGhpcy5jb21wb25lbnQgPSBSZWFjdC5jcmVhdGVDbGFzcyhjb21wb25lbnQpXG4gICAgfVxuICB9XG5cbiAgdmFsdWVPZigpIHtcbiAgICByZXR1cm4gdGhpcy5pZFxuICB9XG5cbn1cblxubW9kdWxlLmV4cG9ydHMgPSBCbG9ja1R5cGVcbiJdfQ== |
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
/** | ||
@@ -21,3 +23,3 @@ * Block Store | ||
return (_ref = {}, _ref[Actions.create] = this.create, _ref[Actions.destroy] = this.destroy, _ref[Actions.update] = this.update, _ref[Actions.move] = this.move, _ref); | ||
return (_ref = {}, _defineProperty(_ref, Actions.create, this.create), _defineProperty(_ref, Actions.destroy, this.destroy), _defineProperty(_ref, Actions.update, this.update), _defineProperty(_ref, Actions.move, this.move), _ref); | ||
}, | ||
@@ -109,2 +111,2 @@ | ||
module.exports = Blocks; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zdG9yZXMvQmxvY2tzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBU0EsSUFBSSxPQUFPLEdBQU0sT0FBTyxDQUFDLG1CQUFtQixDQUFDLENBQUE7QUFDN0MsSUFBSSxLQUFLLEdBQVEsT0FBTyxDQUFDLGlCQUFpQixDQUFDLENBQUE7QUFDM0MsSUFBSSxRQUFRLEdBQUssT0FBTyxDQUFDLG1CQUFtQixDQUFDLENBQUE7QUFDN0MsSUFBSSxTQUFTLEdBQUksT0FBTyxDQUFDLG9CQUFvQixDQUFDLENBQUE7O0FBRTl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xuICAgICAgZm9yIChsZXQgYiA9IGJsb2NrOyBiOyBiID0gYi5wYXJlbnQpIHtcbiAgICAgICAgaWYgKGIuaWQgPT0gaWQpIHJldHVybiBmYWxzZVxuICAgICAgfVxuICAgICAgcmV0dXJuIHRydWVcbiAgICB9KVxuICB9LFxuXG4gIG1vdmUoc3RhdGUsIHsgYmxvY2ssIGRpc3RhbmNlIH0pIHtcbiAgICBsZXQgd2l0aG91dCA9IHN0YXRlLmZpbHRlcihpID0+IGkgIT09IGJsb2NrKVxuICAgIGxldCBiZWZvcmUgID0gc2libGluZ0F0KHN0YXRlLCBibG9jaywgZGlzdGFuY2UpXG5cbiAgICByZXR1cm4gaW5zZXJ0QXQod2l0aG91dCwgYmxvY2ssIHN0YXRlLmluZGV4T2YoYmVmb3JlKSlcbiAgfVxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IEJsb2Nrc1xuIl19 |
@@ -17,3 +17,3 @@ /** | ||
deserialize: function deserialize() { | ||
var blockTypes = arguments[0] === undefined ? [] : arguments[0]; | ||
var blockTypes = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0]; | ||
@@ -29,2 +29,2 @@ return blockTypes.map(function (options) { | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zdG9yZXMvQmxvY2tUeXBlcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQVFBLElBQUksU0FBUyxHQUFHLE9BQU8sQ0FBQyxxQkFBcUIsQ0FBQyxDQUFBOztBQUU5QyxNQUFNLENBQUMsT0FBTyxHQUFHO0FBQ2YsaUJBQWUsRUFBQSwyQkFBRztBQUNoQixXQUFPLEVBQUUsQ0FBQTtHQUNWOztBQUVELGFBQVcsRUFBQSx1QkFBZ0I7UUFBZixVQUFVLGdDQUFDLEVBQUU7O0FBQ3ZCLFdBQU8sVUFBVSxDQUFDLEdBQUcsQ0FBQ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GUob3B0aW9ucykpXG4gIH0sXG5cbiAgc2VyaWFsaXplKCkge1xuICAgIHJldHVybiB1bmRlZmluZWRcbiAgfVxufVxuIl19 |
@@ -12,3 +12,3 @@ /** | ||
module.exports = function (list, item) { | ||
var position = arguments[2] === undefined ? list.length : arguments[2]; | ||
var position = arguments.length <= 2 || arguments[2] === undefined ? list.length : arguments[2]; | ||
return (function () { | ||
@@ -23,2 +23,2 @@ var corrected = inRange(position, 0, list.length); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlscy9pbnNlcnRBdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFNQSxJQUFJLE9BQU8sR0FBRyxTQUFWLE9BQU8sQ0FBSSxLQUFLLEVBQUUsR0FBRyxFQUFFLEdBQUc7U0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEdBQUcsRUFBRSxJQUFJLENBQUMsR0FBRyxDQUFDLEdBQUcsRUFBRSxLQUFLLENBQUMsQ0FBQztDQUFBLENBQUE7O0FBRXRFLE1BQU0sQ0FBQyxPQUFPLEdBQUcsVUFBVSxJQUFJLEVBQUUsSUFBSTtNQUFFLFFBQVEsZ0NBQUMsSUFBSSxDQUFDLE1BQU07c0JBQUU7QUFDM0QsUUFBSSxTQUFTLEdBQUcsT0FBTyxDQUFDLFFBQVEsRUFBRSxDQUFDLEVBQUUsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFBOztBQUVqRCxRQUFJLElBQUksR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUMsRUFBRSxTQUFTLENBQUMsQ0FBQTtBQUNuQyxRQUFJLElBQUksR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLFNBQVMsQ0FBQyxDQUFBOztBQUVoQyxXQUFPLElBQUksQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxDQUF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