@bigbinary/neeto-rules-frontend 2.9.6-beta1 → 2.9.7-beta1
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/.ready +1 -1
- package/dist/NeetoRulesBuilder.js +3 -11
- package/dist/NeetoRulesBuilder.js.map +1 -1
- package/dist/NeetoRulesForm.js +3 -3
- package/dist/cjs/NeetoRulesBuilder.js +5 -13
- package/dist/cjs/NeetoRulesBuilder.js.map +1 -1
- package/dist/cjs/NeetoRulesForm.js +3 -3
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/v2/NeetoRulesBuilder.js +5 -12
- package/dist/cjs/v2/NeetoRulesBuilder.js.map +1 -1
- package/dist/cjs/v2/NeetoRulesForm.js +3 -3
- package/dist/cjs/v2/index.js +3 -3
- package/dist/{index-DlfJmU4e.js → index-BGZD-0XM.js} +11 -3
- package/dist/index-BGZD-0XM.js.map +1 -0
- package/dist/{index-B_8d4J93.js → index-Bvbn9OV7.js} +18 -10
- package/dist/index-Bvbn9OV7.js.map +1 -0
- package/dist/{index-Di9n5OiL.js → index-CwN3158d.js} +11 -3
- package/dist/index-CwN3158d.js.map +1 -0
- package/dist/{index-B4lveJbi.js → index-Cz4VWnCl.js} +18 -10
- package/dist/index-Cz4VWnCl.js.map +1 -0
- package/dist/index.js +3 -3
- package/dist/{keyboardShortcuts-CMYWaUJh.js → useOnClickOutside-D7ssipvp.js} +17 -17
- package/dist/useOnClickOutside-D7ssipvp.js.map +1 -0
- package/dist/{keyboardShortcuts-cmT662QR.js → useOnClickOutside-DJ9Pi2GX.js} +17 -17
- package/dist/useOnClickOutside-DJ9Pi2GX.js.map +1 -0
- package/dist/v2/NeetoRulesBuilder.js +3 -10
- package/dist/v2/NeetoRulesBuilder.js.map +1 -1
- package/dist/v2/NeetoRulesForm.js +3 -3
- package/dist/v2/index.js +3 -3
- package/package.json +11 -11
- package/dist/index-B4lveJbi.js.map +0 -1
- package/dist/index-B_8d4J93.js.map +0 -1
- package/dist/index-Di9n5OiL.js.map +0 -1
- package/dist/index-DlfJmU4e.js.map +0 -1
- package/dist/keyboardShortcuts-CMYWaUJh.js.map +0 -1
- package/dist/keyboardShortcuts-cmT662QR.js.map +0 -1
package/dist/NeetoRulesForm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
3
|
-
import './
|
|
3
|
+
import './useOnClickOutside-DJ9Pi2GX.js';
|
|
4
4
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
5
5
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
6
6
|
import { useShallow } from 'zustand/shallow';
|
|
@@ -15,7 +15,7 @@ import { u as useUtilityStore } from './useUtilityStore-CCUYS1mS.js';
|
|
|
15
15
|
import classNames from 'classnames';
|
|
16
16
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
17
17
|
import { isNotNil, isEmpty, pluck } from 'ramda';
|
|
18
|
-
import { g as getActionOptions, a as getFieldDetails, b as getSlackChannelErrors, c as getOptionsKey, d as getActionLabel, A as ActionSubItem, F as FIELDS_WITH_OPTIONS, P as PANEL_TYPES, D as DEFAULT_RULE_ACTION, e as getLogicalOperatorOptions, f as getFieldDetails$1, h as getVerbOptions, R as RadioField$1, S as SelectField$1, V as ValueField, i as DEFAULT_DELAY, j as getAllEvents, O as OPERATORS$1, k as STATUS_KEYS, l as formatData, u as usePollRuleName, T as TouchErrors, m as buildPayload, n as ScrollToErrorField, o as Panel, p as getValidationSchema, q as DEFAULT_INITIAL_VALUE } from './index-
|
|
18
|
+
import { g as getActionOptions, a as getFieldDetails, b as getSlackChannelErrors, c as getOptionsKey, d as getActionLabel, A as ActionSubItem, F as FIELDS_WITH_OPTIONS, P as PANEL_TYPES, D as DEFAULT_RULE_ACTION, e as getLogicalOperatorOptions, f as getFieldDetails$1, h as getVerbOptions, R as RadioField$1, S as SelectField$1, V as ValueField, i as DEFAULT_DELAY, j as getAllEvents, O as OPERATORS$1, k as STATUS_KEYS, l as formatData, u as usePollRuleName, T as TouchErrors, m as buildPayload, n as ScrollToErrorField, o as Panel, p as getValidationSchema, q as DEFAULT_INITIAL_VALUE } from './index-BGZD-0XM.js';
|
|
19
19
|
import { a as useActiveField, u as useCustomDataStore } from './useCustomDataStore-BtKYtLVc.js';
|
|
20
20
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
21
21
|
import { joinHyphenCase } from '@bigbinary/neeto-commons-frontend/utils';
|
|
@@ -50,6 +50,7 @@ import 'yup';
|
|
|
50
50
|
import '@bigbinary/neeto-icons/Search';
|
|
51
51
|
import '@bigbinary/neetoui/Input';
|
|
52
52
|
import '@bigbinary/neetoui/managers';
|
|
53
|
+
import '@bigbinary/neeto-hotkeys';
|
|
53
54
|
import '@bigbinary/neeto-icons/Collapse';
|
|
54
55
|
import '@bigbinary/neetoui/Callout';
|
|
55
56
|
import '@bigbinary/neeto-icons/Left';
|
|
@@ -63,7 +64,6 @@ import '@bigbinary/neeto-commons-frontend/initializers';
|
|
|
63
64
|
import '@bigbinary/neetoui/formik/MultiEmailInput';
|
|
64
65
|
import '@bigbinary/neeto-editor-frontend/FormikEditor';
|
|
65
66
|
import '@bigbinary/neeto-icons/Refresh';
|
|
66
|
-
import '@bigbinary/neeto-hotkeys';
|
|
67
67
|
import '@bigbinary/neeto-icons/Check';
|
|
68
68
|
import '@bigbinary/neetoui/Checkbox';
|
|
69
69
|
import 'react-select/creatable';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
4
|
var _objectDestructuringEmpty = require('@babel/runtime/helpers/objectDestructuringEmpty');
|
|
5
|
-
var
|
|
5
|
+
var useOnClickOutside = require('../useOnClickOutside-D7ssipvp.js');
|
|
6
6
|
var shallow = require('zustand/shallow');
|
|
7
7
|
var react = require('react');
|
|
8
8
|
var classNames = require('classnames');
|
|
@@ -13,7 +13,7 @@ var Header = require('@bigbinary/neeto-molecules/Header');
|
|
|
13
13
|
var Spinner = require('@bigbinary/neetoui/Spinner');
|
|
14
14
|
var ActionBlock = require('@bigbinary/neetoui/formik/ActionBlock');
|
|
15
15
|
var reactI18next = require('react-i18next');
|
|
16
|
-
var index = require('../index-
|
|
16
|
+
var index = require('../index-Cz4VWnCl.js');
|
|
17
17
|
var useCustomDataStore = require('../useCustomDataStore-DxFx8aCf.js');
|
|
18
18
|
var useUtilityStore = require('../useUtilityStore-C_U20IMX.js');
|
|
19
19
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
@@ -27,7 +27,6 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
27
27
|
var i18next = require('i18next');
|
|
28
28
|
var yup = require('yup');
|
|
29
29
|
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
30
|
-
var useHotkeys = require('@bigbinary/neeto-hotkeys');
|
|
31
30
|
var Search = require('@bigbinary/neeto-icons/Search');
|
|
32
31
|
var Input = require('@bigbinary/neetoui/Input');
|
|
33
32
|
var Typography = require('@bigbinary/neetoui/Typography');
|
|
@@ -52,6 +51,7 @@ require('axios');
|
|
|
52
51
|
require('../index-DFwPrb81.js');
|
|
53
52
|
require('@bigbinary/neetoui/formik/Radio');
|
|
54
53
|
require('@bigbinary/neetoui/managers');
|
|
54
|
+
require('@bigbinary/neeto-hotkeys');
|
|
55
55
|
require('@bigbinary/neeto-icons/Close');
|
|
56
56
|
require('@bigbinary/neeto-icons/Collapse');
|
|
57
57
|
require('@bigbinary/neetoui/Callout');
|
|
@@ -2858,7 +2858,7 @@ var Canvas = function Canvas(_ref) {
|
|
|
2858
2858
|
};
|
|
2859
2859
|
var addingAction = !!(panelState !== null && panelState !== void 0 && panelState.type) && activeToken.anchor === BUILDER_ANCHORS.ACTION_ADD && activeToken.index === rule.actions.length && !builderPreview;
|
|
2860
2860
|
var flatErrors = react.useMemo(function () {
|
|
2861
|
-
return
|
|
2861
|
+
return useOnClickOutside.flatten(errors || {});
|
|
2862
2862
|
}, [errors]);
|
|
2863
2863
|
var _useState = react.useState(0),
|
|
2864
2864
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -3438,7 +3438,7 @@ var keysUnder = function keysUnder(_ref) {
|
|
|
3438
3438
|
prefix = _ref.prefix,
|
|
3439
3439
|
_ref$exclude = _ref.exclude,
|
|
3440
3440
|
exclude = _ref$exclude === void 0 ? [] : _ref$exclude;
|
|
3441
|
-
return Object.keys(
|
|
3441
|
+
return Object.keys(useOnClickOutside.flatten(obj || {})).filter(function (key) {
|
|
3442
3442
|
return (key === prefix || key.startsWith("".concat(prefix, "."))) && !exclude.some(function (sub) {
|
|
3443
3443
|
return key === "".concat(prefix, ".").concat(sub) || key.startsWith("".concat(prefix, ".").concat(sub, "."));
|
|
3444
3444
|
});
|
|
@@ -3614,10 +3614,6 @@ var ConfigPane = function ConfigPane(_ref) {
|
|
|
3614
3614
|
return _ref2.apply(this, arguments);
|
|
3615
3615
|
};
|
|
3616
3616
|
}();
|
|
3617
|
-
useHotkeys(keyboardShortcuts.SHORTCUTS["continue"].sequence, handleContinue, {
|
|
3618
|
-
enabled: shouldAdvanceToRecipient,
|
|
3619
|
-
mode: "global"
|
|
3620
|
-
});
|
|
3621
3617
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
3622
3618
|
children: [/*#__PURE__*/jsxRuntime.jsx(index.Panel.Header, {
|
|
3623
3619
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
@@ -4132,10 +4128,6 @@ var OptionsPane = function OptionsPane(_ref) {
|
|
|
4132
4128
|
});else closePane();
|
|
4133
4129
|
};
|
|
4134
4130
|
var canContinue = cascade && selectedValues.some(Boolean);
|
|
4135
|
-
useHotkeys(keyboardShortcuts.SHORTCUTS["continue"].sequence, handleContinue, {
|
|
4136
|
-
enabled: canContinue,
|
|
4137
|
-
mode: "global"
|
|
4138
|
-
});
|
|
4139
4131
|
var optionLabel = function optionLabel(option) {
|
|
4140
4132
|
var Icon = option.icon;
|
|
4141
4133
|
if (!Icon && !option.disabledReason) return option.label;
|