colonel-kurtz
Advanced tools
Comparing version 4.2.1 to 4.3.0
@@ -13,4 +13,8 @@ /** | ||
var React = require('react'); | ||
var uid = require('uid'); | ||
function uid(len) { | ||
len = len || 7; | ||
return Math.random().toString(35).substr(2, len); | ||
} | ||
var Field = React.createClass({ | ||
@@ -71,2 +75,2 @@ displayName: 'Field', | ||
module.exports = Field; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2FkZG9ucy9jb21tb24vZmllbGQuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBS0EsSUFBSSxLQUFLLEdBQUcsT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFBO0FBQzVCLElBQUksR0FBRyxHQUFLLE9BQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQTs7QUFFMUIsSUFBSSxLQUFLLEdBQUcsS0FBSyxDQUFDLFdBQVcsQ0FBQzs7O0FBRTVCLGlCQUFlLEVBQUEsMkJBQUc7QUFDaEIsV0FBTztBQUNMLFVBQUksRUFBTSxJQUFJO0FBQ2QsYUFBTyxFQUFHLE9BQU87QUFDakIsVUFBSSxFQUFNLE1BQU07S0FDakIsQ0FBQTtHQUNGOztBQUVELGlCQUFlLEVBQUEsMkJBQUc7QUFDaEIsV0FBTztBQUNMLFlBQU0sc0JBQW9CLEdBQUcsRUFBRSxBQUFFO0tBQ2xDLENBQUE7R0FDRjs7QUFFRCxTQUFPLEVBQUEsaUJBQUMsSUFBSSxFQUFFO0FBQ1osV0FBTyxJQUFJLEdBQUk7O1FBQU0sRUFBRSxFQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxBQUFFLEVBQUMsU0FBUyxFQUFDLGdCQUFnQjtNQUFHLElBQUk7S0FBUyxHQUFJLElBQUksQ0FBQTtHQUNqRzs7QUFFRCxRQUFNLEVBQUEsa0JBQUc7OztpQkFDMEMsSUFBSSx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AgICByZXR1cm4ge1xuICAgICAgaGludElkOiBgaGludC1jb2wtZmllbGQtJHt1aWQoKX1gXG4gICAgfVxuICB9LFxuXG4gIGdldEhpbnQoaGludCkge1xuICAgIHJldHVybiBoaW50ID8gKDxzcGFuIGlkPXsgdGhpcy5zdGF0ZS5oaW50SWQgfSBjbGFzc05hbWU9XCJjb2wtZmllbGQtaGludFwiPnsgaGludCB9PC9zcGFuPikgOiBudWxsXG4gIH0sXG5cbiAgcmVuZGVyKCkge1xuICAgIGxldCB7IGhpbnQsIGVsZW1lbnQ6RWxlbWVudCwgbGFiZWwsIC4uLnByb3BzIH0gPSB0aGlzLnByb3BzXG4gICAgbGV0IHsgaGludElkIH0gPSB0aGlzLnN0YXRlXG5cbiAgICByZXR1cm4gKFxuICAgICAgPGxhYmVsIGNsYXNzTmFtZT1cImNvbC1maWVsZFwiPlxuICAgICAgICA8c3BhbiBjbGFzc05hbWU9XCJjb2wtZmllbGQtbGFiZWxcIj57IGxhYmVsIH08L3NwYW4+XG5cbiAgICAgICAgPEVsZW1lbnQgcmVmPXsgKGVsKSA9PiB0aGlzLmlucHV0ID0gZWwgfSBjbGFzc05hbWU9XCJjb2wtZmllbGQtaW5wdXRcIiBhcmlhLWRlc2NyaWJlZGJ5PXsgaGludCA/IGhpbnRJZCA6IG51bGwgfSB7IC4uLnByb3BzIH0gLz5cbiAgICAgICAgeyB0aGlzLmdldEhpbnQoaGludCkgfVxuICAgICAgPC9sYWJlbD5cbiAgICApXG4gIH1cblxufSlcblxubW9kdWxlLmV4cG9ydHMgPSBGaWVsZFxuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2FkZG9ucy9jb21tb24vZmllbGQuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBS0EsSUFBSSxLQUFLLEdBQUcsT0FBTyxDQUFDLE9BQU8sQ0FBQ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c05hbWU9XCJjb2wtZmllbGQtaGludFwiPnsgaGludCB9PC9zcGFuPikgOiBudWxsXG4gIH0sXG5cbiAgcmVuZGVyKCkge1xuICAgIGxldCB7IGhpbnQsIGVsZW1lbnQ6RWxlbWVudCwgbGFiZWwsIC4uLnByb3BzIH0gPSB0aGlzLnByb3BzXG4gICAgbGV0IHsgaGludElkIH0gPSB0aGlzLnN0YXRlXG5cbiAgICByZXR1cm4gKFxuICAgICAgPGxhYmVsIGNsYXNzTmFtZT1cImNvbC1maWVsZFwiPlxuICAgICAgICA8c3BhbiBjbGFzc05hbWU9XCJjb2wtZmllbGQtbGFiZWxcIj57IGxhYmVsIH08L3NwYW4+XG5cbiAgICAgICAgPEVsZW1lbnQgcmVmPXsgKGVsKSA9PiB0aGlzLmlucHV0ID0gZWwgfSBjbGFzc05hbWU9XCJjb2wtZmllbGQtaW5wdXRcIiBhcmlhLWRlc2NyaWJlZGJ5PXsgaGludCA/IGhpbnRJZCA6IG51bGwgfSB7IC4uLnByb3BzIH0gLz5cbiAgICAgICAgeyB0aGlzLmdldEhpbnQoaGludCkgfVxuICAgICAgPC9sYWJlbD5cbiAgICApXG4gIH1cblxufSlcblxubW9kdWxlLmV4cG9ydHMgPSBGaWVsZFxuIl19 |
{ | ||
"name": "colonel-kurtz", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"description": "A block editor", | ||
@@ -45,4 +45,3 @@ "main": "src/Colonel.js", | ||
"react-focus-trap": "~2.3", | ||
"react-ink": "~5.1", | ||
"uid": "0.0.2" | ||
"react-ink": "~5.1" | ||
}, | ||
@@ -49,0 +48,0 @@ "babel": { |
1367879
6
3478