New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

boolean-query-editor

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boolean-query-editor - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

57

dist/BooleanQueryEditor.js

@@ -45,34 +45,38 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

return (_this6 = _this).__onChange__REACT_HOT_LOADER__.apply(_this6, arguments);
}, _this.onEscape = function () {
}, _this.onBlur = function () {
var _this7;
return (_this7 = _this).__onEscape__REACT_HOT_LOADER__.apply(_this7, arguments);
}, _this.onArrow = function () {
return (_this7 = _this).__onBlur__REACT_HOT_LOADER__.apply(_this7, arguments);
}, _this.onEscape = function () {
var _this8;
return (_this8 = _this).__onArrow__REACT_HOT_LOADER__.apply(_this8, arguments);
}, _this.onUpArrow = function () {
return (_this8 = _this).__onEscape__REACT_HOT_LOADER__.apply(_this8, arguments);
}, _this.onArrow = function () {
var _this9;
return (_this9 = _this).__onUpArrow__REACT_HOT_LOADER__.apply(_this9, arguments);
}, _this.onDownArrow = function () {
return (_this9 = _this).__onArrow__REACT_HOT_LOADER__.apply(_this9, arguments);
}, _this.onUpArrow = function () {
var _this10;
return (_this10 = _this).__onDownArrow__REACT_HOT_LOADER__.apply(_this10, arguments);
}, _this.handleReturn = function () {
return (_this10 = _this).__onUpArrow__REACT_HOT_LOADER__.apply(_this10, arguments);
}, _this.onDownArrow = function () {
var _this11;
return (_this11 = _this).__handleReturn__REACT_HOT_LOADER__.apply(_this11, arguments);
}, _this.handlePastedText = function () {
return (_this11 = _this).__onDownArrow__REACT_HOT_LOADER__.apply(_this11, arguments);
}, _this.handleReturn = function () {
var _this12;
return (_this12 = _this).__handlePastedText__REACT_HOT_LOADER__.apply(_this12, arguments);
}, _this.handleKeyCommand = function () {
return (_this12 = _this).__handleReturn__REACT_HOT_LOADER__.apply(_this12, arguments);
}, _this.handlePastedText = function () {
var _this13;
return (_this13 = _this).__handleKeyCommand__REACT_HOT_LOADER__.apply(_this13, arguments);
}, _this.keyBindingFn = function () {
return (_this13 = _this).__handlePastedText__REACT_HOT_LOADER__.apply(_this13, arguments);
}, _this.handleKeyCommand = function () {
var _this14;
return (_this14 = _this).__keyBindingFn__REACT_HOT_LOADER__.apply(_this14, arguments);
return (_this14 = _this).__handleKeyCommand__REACT_HOT_LOADER__.apply(_this14, arguments);
}, _this.keyBindingFn = function () {
var _this15;
return (_this15 = _this).__keyBindingFn__REACT_HOT_LOADER__.apply(_this15, arguments);
}, _temp), _possibleConstructorReturn(_this, _ret);

@@ -107,3 +111,3 @@ }

if (textRange === null) {
if (textRange === null || textRange !== null && textRange.start < 0) {
return null;

@@ -133,3 +137,3 @@ }

BooleanQueryEditor.prototype.__onChange__REACT_HOT_LOADER__ = function __onChange__REACT_HOT_LOADER__(editorState) {
var _this15 = this;
var _this16 = this;

@@ -139,6 +143,11 @@ this.props.onChange(editorState);

window.requestAnimationFrame(function () {
_this15.props.onQueryChange(_this15.getQueryState());
_this16.queryState = _this16.getQueryState();
_this16.props.onQueryChange(_this16.queryState);
});
};
BooleanQueryEditor.prototype.__onBlur__REACT_HOT_LOADER__ = function __onBlur__REACT_HOT_LOADER__(e) {
this.props.onBlur(e);
};
BooleanQueryEditor.prototype.__onEscape__REACT_HOT_LOADER__ = function __onEscape__REACT_HOT_LOADER__(e) {

@@ -192,6 +201,5 @@ if (this.queryState === null) {

this.props.handleQueryReturn(text, selectedIndex, entitySelection);
this.queryState = null;
this.props.onQueryChange(this.queryState);
this.props.handleQueryReturn(text, selectedIndex, entitySelection);
}

@@ -215,3 +223,3 @@

BooleanQueryEditor.prototype.render = function render() {
var _this16 = this;
var _this17 = this;

@@ -223,6 +231,7 @@ var editorState = this.props.editorState;

ref: function ref(_ref) {
_this16.ref = _ref;
_this17.ref = _ref;
},
editorState: editorState,
onChange: this.onChange,
onBlur: this.onBlur,
onEscape: this.onEscape,

@@ -244,2 +253,3 @@ onUpArrow: this.onUpArrow,

onChange: PropTypes.func,
onBlur: PropTypes.func,
onEscape: PropTypes.func,

@@ -257,2 +267,3 @@ onUpArrow: PropTypes.func,

onChange: noop,
onBlur: noop,
onEscape: noop,

@@ -259,0 +270,0 @@ onUpArrow: noop,

{
"name": "boolean-query-editor",
"version": "1.2.0",
"version": "1.3.0",
"description": "Boolean query editor",

@@ -40,3 +40,3 @@ "module": "dist/index.js",

"deploy": "gh-pages -d build",
"prepublish": "npm run build"
"prepublishOnly": "npm run build"
},

@@ -43,0 +43,0 @@ "license": "MIT",

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