@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
|
@@ -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
|
-
require('../../
|
|
5
|
+
require('../../useOnClickOutside-D7ssipvp.js');
|
|
6
6
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
7
7
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
8
8
|
var shallow = require('zustand/shallow');
|
|
@@ -15,7 +15,7 @@ var reactI18next = require('react-i18next');
|
|
|
15
15
|
var useUtilityStore = require('../../useUtilityStore-gtPhFvpI.js');
|
|
16
16
|
var classNames = require('classnames');
|
|
17
17
|
var ramda = require('ramda');
|
|
18
|
-
var index = require('../../index-
|
|
18
|
+
var index = require('../../index-Bvbn9OV7.js');
|
|
19
19
|
var useCustomDataStore = require('../../useCustomDataStore-DPmWkEhs.js');
|
|
20
20
|
var jsxRuntime = require('react/jsx-runtime');
|
|
21
21
|
var utils = require('@bigbinary/neeto-commons-frontend/v2/utils');
|
|
@@ -35,13 +35,13 @@ require('@tanstack/react-query');
|
|
|
35
35
|
require('axios');
|
|
36
36
|
require('../../index-DFwPrb81.js');
|
|
37
37
|
require('yup');
|
|
38
|
+
require('@bigbinary/neeto-hotkeys');
|
|
38
39
|
require('@monaco-editor/react');
|
|
39
40
|
require('@bigbinary/neeto-molecules/v2/DynamicVariables');
|
|
40
41
|
require('../../utils-CvvJ6wvi.js');
|
|
41
42
|
require('@bigbinary/neeto-commons-frontend/initializers');
|
|
42
43
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
43
44
|
require('@bigbinary/neeto-editor-frontend/v2/FormikEditor');
|
|
44
|
-
require('@bigbinary/neeto-hotkeys');
|
|
45
45
|
require('react-select/creatable');
|
|
46
46
|
require('@babel/runtime/helpers/toArray');
|
|
47
47
|
require('@bigbinary/neeto-molecules/v2/PhoneNumber');
|
package/dist/cjs/v2/index.js
CHANGED
|
@@ -43,15 +43,15 @@ require('zustand');
|
|
|
43
43
|
require('@bigbinary/neeto-commons-frontend/v2/utils');
|
|
44
44
|
require('@bigbinary/neeto-molecules/v2/MoreDropdown');
|
|
45
45
|
require('@babel/runtime/helpers/objectDestructuringEmpty');
|
|
46
|
-
require('../../
|
|
46
|
+
require('../../useOnClickOutside-D7ssipvp.js');
|
|
47
47
|
require('classnames');
|
|
48
|
-
require('../../index-
|
|
48
|
+
require('../../index-Bvbn9OV7.js');
|
|
49
49
|
require('@babel/runtime/helpers/typeof');
|
|
50
50
|
require('yup');
|
|
51
|
+
require('@bigbinary/neeto-hotkeys');
|
|
51
52
|
require('@monaco-editor/react');
|
|
52
53
|
require('@bigbinary/neeto-molecules/v2/DynamicVariables');
|
|
53
54
|
require('@bigbinary/neeto-editor-frontend/v2/FormikEditor');
|
|
54
|
-
require('@bigbinary/neeto-hotkeys');
|
|
55
55
|
require('react-select/creatable');
|
|
56
56
|
require('@babel/runtime/helpers/toArray');
|
|
57
57
|
require('@bigbinary/neeto-molecules/v2/PhoneNumber');
|
|
@@ -6,7 +6,7 @@ import _typeof from '@babel/runtime/helpers/typeof';
|
|
|
6
6
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
7
7
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
8
8
|
import { b as useUpdateAutomationRule, e as useFetchNameGenerationStatus } from './useAutomationRulesApi-C9I3wUZ8.js';
|
|
9
|
-
import {
|
|
9
|
+
import { S as SHORTCUTS, u as useOnClickOutside, f as flatten } from './useOnClickOutside-DJ9Pi2GX.js';
|
|
10
10
|
import { toLower, identity, pluck, isEmpty, replace, mergeDeepLeft, isNotNil, whereAny, reject, equals, unless, path, omit, useWith, split, when, is, trim, eqBy, F, values, isNil, without, append, pipe, filter, uniq, join, map, assoc, mergeLeft, includes, test } from 'ramda';
|
|
11
11
|
import { t } from 'i18next';
|
|
12
12
|
import * as yup from 'yup';
|
|
@@ -23,6 +23,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
23
23
|
import { manager } from '@bigbinary/neetoui/managers';
|
|
24
24
|
import { u as useUtilityStore } from './useUtilityStore-CCUYS1mS.js';
|
|
25
25
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
26
|
+
import useHotkeys from '@bigbinary/neeto-hotkeys';
|
|
26
27
|
import Close from '@bigbinary/neeto-icons/Close';
|
|
27
28
|
import Collapse from '@bigbinary/neeto-icons/Collapse';
|
|
28
29
|
import Callout from '@bigbinary/neetoui/Callout';
|
|
@@ -45,7 +46,6 @@ import FormikEditor from '@bigbinary/neeto-editor-frontend/FormikEditor';
|
|
|
45
46
|
import Refresh from '@bigbinary/neeto-icons/Refresh';
|
|
46
47
|
import Select$1 from '@bigbinary/neetoui/formik/Select';
|
|
47
48
|
import Plus from '@bigbinary/neeto-icons/Plus';
|
|
48
|
-
import useHotkeys from '@bigbinary/neeto-hotkeys';
|
|
49
49
|
import Check from '@bigbinary/neeto-icons/Check';
|
|
50
50
|
import Checkbox from '@bigbinary/neetoui/Checkbox';
|
|
51
51
|
import CreatableSelect from 'react-select/creatable';
|
|
@@ -123,8 +123,16 @@ var Body = function Body(_ref) {
|
|
|
123
123
|
var Footer = function Footer(_ref) {
|
|
124
124
|
var children = _ref.children,
|
|
125
125
|
className = _ref.className;
|
|
126
|
+
var footerRef = useRef(null);
|
|
127
|
+
useHotkeys(SHORTCUTS["continue"].sequence, function () {
|
|
128
|
+
var _footerRef$current;
|
|
129
|
+
return (_footerRef$current = footerRef.current) === null || _footerRef$current === void 0 || (_footerRef$current = _footerRef$current.querySelector("button")) === null || _footerRef$current === void 0 ? void 0 : _footerRef$current.click();
|
|
130
|
+
}, {
|
|
131
|
+
mode: "global"
|
|
132
|
+
});
|
|
126
133
|
return /*#__PURE__*/jsx("div", {
|
|
127
134
|
"data-testid": "pane-footer",
|
|
135
|
+
ref: footerRef,
|
|
128
136
|
className: classNames("neeto-rules-side-panel__footer neeto-ui-border-gray-200 flex items-center justify-between border-t p-6", className),
|
|
129
137
|
children: children
|
|
130
138
|
});
|
|
@@ -5553,4 +5561,4 @@ var formatData = function formatData(data) {
|
|
|
5553
5561
|
};
|
|
5554
5562
|
|
|
5555
5563
|
export { ActionSubItem as A, DEFAULT_RULE_ACTION as D, EditorAction as E, FIELDS_WITH_OPTIONS as F, MIN_DELAY_VALUE as M, OPERATORS as O, PANEL_TYPES as P, RadioField as R, SelectField as S, TouchErrors as T, ValueField as V, getFieldDetails$1 as a, getSlackChannelErrors as b, getOptionsKey as c, getActionLabel as d, getLogicalOperatorOptions as e, getFieldDetails as f, getActionOptions as g, getVerbOptions as h, DEFAULT_DELAY as i, getAllEvents as j, STATUS_KEYS as k, formatData as l, buildPayload as m, ScrollToErrorField as n, Panel as o, getValidationSchema as p, DEFAULT_INITIAL_VALUE as q, ErrorCallout as r, SmsFields as s, MAX_DELAY_VALUE as t, usePollRuleName as u, PhoneNumberField as v };
|
|
5556
|
-
//# sourceMappingURL=index-
|
|
5564
|
+
//# sourceMappingURL=index-BGZD-0XM.js.map
|