@bigbinary/neeto-filters-frontend 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -12,6 +12,7 @@ var neetoui = require('@bigbinary/neetoui');
12
12
  var ramda = require('ramda');
13
13
  var reactI18next = require('react-i18next');
14
14
  var reactRouterDom = require('react-router-dom');
15
+ var useHotkeys = require('@bigbinary/neeto-hotkeys');
15
16
  var neetoIcons = require('@bigbinary/neeto-icons');
16
17
  var formik = require('@bigbinary/neetoui/formik');
17
18
  var reactQuery = require('react-query');
@@ -45,6 +46,7 @@ function _interopNamespace(e) {
45
46
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
46
47
  var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
47
48
  var i18next__default = /*#__PURE__*/_interopDefaultLegacy(i18next);
49
+ var useHotkeys__default = /*#__PURE__*/_interopDefaultLegacy(useHotkeys);
48
50
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
49
51
  var yup__namespace = /*#__PURE__*/_interopNamespace(yup);
50
52
  var Search__default = /*#__PURE__*/_interopDefaultLegacy(Search);
@@ -1068,12 +1070,12 @@ var Block = function Block(_ref) {
1068
1070
  var blockLength = label.length + ruleContent.length + filterValue.length;
1069
1071
  var toolTipDisabled = blockLength <= 50;
1070
1072
  var blockContent = !toolTipDisabled ? "".concat(filterValue.slice(0, 50 - blockLength), "...") : filterValue;
1071
- var deleteBlockHotKeyRef = reactUtils.useHotKeys(SHORTCUTS.deleteBlock.sequence, function () {
1073
+ var deleteBlockHotKeyRef = useHotkeys__default["default"](SHORTCUTS.deleteBlock.sequence, function () {
1072
1074
  return handleDelete(key);
1073
1075
  }, {
1074
1076
  mode: "scoped"
1075
1077
  });
1076
- var openFilterPaneHotKeyRef = reactUtils.useHotKeys(SHORTCUTS.openFilterPane.sequence, function () {
1078
+ var openFilterPaneHotKeyRef = useHotkeys__default["default"](SHORTCUTS.openFilterPane.sequence, function () {
1077
1079
  return setIsPaneOpen(key);
1078
1080
  }, {
1079
1081
  mode: "scoped"
@@ -1118,12 +1120,12 @@ var ChildBlock = function ChildBlock(_ref) {
1118
1120
  var childKey = _ref.childKey,
1119
1121
  setIsPaneOpen = _ref.setIsPaneOpen,
1120
1122
  handleDelete = _ref.handleDelete;
1121
- var deleteBlockHotKeyRef = reactUtils.useHotKeys(SHORTCUTS.deleteBlock.sequence, function () {
1123
+ var deleteBlockHotKeyRef = useHotkeys__default["default"](SHORTCUTS.deleteBlock.sequence, function () {
1122
1124
  return handleDelete(childKey);
1123
1125
  }, {
1124
1126
  mode: "scoped"
1125
1127
  });
1126
- var openFilterPaneHotKeyRef = reactUtils.useHotKeys(SHORTCUTS.openFilterPane.sequence, function () {
1128
+ var openFilterPaneHotKeyRef = useHotkeys__default["default"](SHORTCUTS.openFilterPane.sequence, function () {
1127
1129
  return setIsPaneOpen(childKey);
1128
1130
  }, {
1129
1131
  mode: "scoped"
@@ -2447,7 +2449,7 @@ var Slider = function Slider(_ref) {
2447
2449
  className = _ref$className === void 0 ? "" : _ref$className,
2448
2450
  children = _ref.children,
2449
2451
  otherProps = _objectWithoutProperties(_ref, _excluded$1);
2450
- reactUtils.useHotKeys(SHORTCUTS.closePane.sequence, onClose, {
2452
+ useHotkeys__default["default"](SHORTCUTS.closePane.sequence, onClose, {
2451
2453
  mode: "global"
2452
2454
  });
2453
2455
  return /*#__PURE__*/React__default["default"].createElement(Portal, {