boolean-query-editor
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -49,34 +49,38 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
return (_this7 = _this).__onBlur__REACT_HOT_LOADER__.apply(_this7, arguments); | ||
}, _this.onEscape = function () { | ||
}, _this.onFocus = function () { | ||
var _this8; | ||
return (_this8 = _this).__onEscape__REACT_HOT_LOADER__.apply(_this8, arguments); | ||
}, _this.onArrow = function () { | ||
return (_this8 = _this).__onFocus__REACT_HOT_LOADER__.apply(_this8, arguments); | ||
}, _this.onEscape = function () { | ||
var _this9; | ||
return (_this9 = _this).__onArrow__REACT_HOT_LOADER__.apply(_this9, arguments); | ||
}, _this.onUpArrow = function () { | ||
return (_this9 = _this).__onEscape__REACT_HOT_LOADER__.apply(_this9, arguments); | ||
}, _this.onArrow = function () { | ||
var _this10; | ||
return (_this10 = _this).__onUpArrow__REACT_HOT_LOADER__.apply(_this10, arguments); | ||
}, _this.onDownArrow = function () { | ||
return (_this10 = _this).__onArrow__REACT_HOT_LOADER__.apply(_this10, arguments); | ||
}, _this.onUpArrow = function () { | ||
var _this11; | ||
return (_this11 = _this).__onDownArrow__REACT_HOT_LOADER__.apply(_this11, arguments); | ||
}, _this.handleReturn = function () { | ||
return (_this11 = _this).__onUpArrow__REACT_HOT_LOADER__.apply(_this11, arguments); | ||
}, _this.onDownArrow = function () { | ||
var _this12; | ||
return (_this12 = _this).__handleReturn__REACT_HOT_LOADER__.apply(_this12, arguments); | ||
}, _this.handlePastedText = function () { | ||
return (_this12 = _this).__onDownArrow__REACT_HOT_LOADER__.apply(_this12, arguments); | ||
}, _this.handleReturn = function () { | ||
var _this13; | ||
return (_this13 = _this).__handlePastedText__REACT_HOT_LOADER__.apply(_this13, arguments); | ||
}, _this.handleKeyCommand = function () { | ||
return (_this13 = _this).__handleReturn__REACT_HOT_LOADER__.apply(_this13, arguments); | ||
}, _this.handlePastedText = function () { | ||
var _this14; | ||
return (_this14 = _this).__handleKeyCommand__REACT_HOT_LOADER__.apply(_this14, arguments); | ||
}, _this.keyBindingFn = function () { | ||
return (_this14 = _this).__handlePastedText__REACT_HOT_LOADER__.apply(_this14, arguments); | ||
}, _this.handleKeyCommand = function () { | ||
var _this15; | ||
return (_this15 = _this).__keyBindingFn__REACT_HOT_LOADER__.apply(_this15, arguments); | ||
return (_this15 = _this).__handleKeyCommand__REACT_HOT_LOADER__.apply(_this15, arguments); | ||
}, _this.keyBindingFn = function () { | ||
var _this16; | ||
return (_this16 = _this).__keyBindingFn__REACT_HOT_LOADER__.apply(_this16, arguments); | ||
}, _temp), _possibleConstructorReturn(_this, _ret); | ||
@@ -136,3 +140,3 @@ } | ||
BooleanQueryEditor.prototype.__onChange__REACT_HOT_LOADER__ = function __onChange__REACT_HOT_LOADER__(editorState) { | ||
var _this16 = this; | ||
var _this17 = this; | ||
@@ -142,4 +146,4 @@ this.props.onChange(editorState); | ||
window.requestAnimationFrame(function () { | ||
_this16.queryState = _this16.getQueryState(); | ||
_this16.props.onQueryChange(_this16.queryState); | ||
_this17.queryState = _this17.getQueryState(); | ||
_this17.props.onQueryChange(_this17.queryState); | ||
}); | ||
@@ -152,2 +156,6 @@ }; | ||
BooleanQueryEditor.prototype.__onFocus__REACT_HOT_LOADER__ = function __onFocus__REACT_HOT_LOADER__(e) { | ||
this.props.onFocus(e); | ||
}; | ||
BooleanQueryEditor.prototype.__onEscape__REACT_HOT_LOADER__ = function __onEscape__REACT_HOT_LOADER__(e) { | ||
@@ -222,3 +230,3 @@ if (this.queryState === null) { | ||
BooleanQueryEditor.prototype.render = function render() { | ||
var _this17 = this; | ||
var _this18 = this; | ||
@@ -230,3 +238,3 @@ var editorState = this.props.editorState; | ||
ref: function ref(_ref) { | ||
_this17.ref = _ref; | ||
_this18.ref = _ref; | ||
}, | ||
@@ -236,2 +244,3 @@ editorState: editorState, | ||
onBlur: this.onBlur, | ||
onFocus: this.onFocus, | ||
onEscape: this.onEscape, | ||
@@ -254,2 +263,3 @@ onUpArrow: this.onUpArrow, | ||
onBlur: PropTypes.func, | ||
onFocus: PropTypes.func, | ||
onEscape: PropTypes.func, | ||
@@ -268,2 +278,3 @@ onUpArrow: PropTypes.func, | ||
onBlur: noop, | ||
onFocus: noop, | ||
onEscape: noop, | ||
@@ -270,0 +281,0 @@ onUpArrow: noop, |
{ | ||
"name": "boolean-query-editor", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Boolean query editor", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
16433
364