@bigbinary/neeto-rules-frontend 2.9.6 → 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.
Files changed (36) hide show
  1. package/dist/.ready +1 -1
  2. package/dist/NeetoRulesBuilder.js +3 -11
  3. package/dist/NeetoRulesBuilder.js.map +1 -1
  4. package/dist/NeetoRulesForm.js +3 -3
  5. package/dist/cjs/NeetoRulesBuilder.js +5 -13
  6. package/dist/cjs/NeetoRulesBuilder.js.map +1 -1
  7. package/dist/cjs/NeetoRulesForm.js +3 -3
  8. package/dist/cjs/index.js +3 -3
  9. package/dist/cjs/v2/NeetoRulesBuilder.js +5 -12
  10. package/dist/cjs/v2/NeetoRulesBuilder.js.map +1 -1
  11. package/dist/cjs/v2/NeetoRulesForm.js +3 -3
  12. package/dist/cjs/v2/index.js +3 -3
  13. package/dist/{index-DlfJmU4e.js → index-BGZD-0XM.js} +11 -3
  14. package/dist/index-BGZD-0XM.js.map +1 -0
  15. package/dist/{index-B_8d4J93.js → index-Bvbn9OV7.js} +18 -10
  16. package/dist/index-Bvbn9OV7.js.map +1 -0
  17. package/dist/{index-Di9n5OiL.js → index-CwN3158d.js} +11 -3
  18. package/dist/index-CwN3158d.js.map +1 -0
  19. package/dist/{index-B4lveJbi.js → index-Cz4VWnCl.js} +18 -10
  20. package/dist/index-Cz4VWnCl.js.map +1 -0
  21. package/dist/index.js +3 -3
  22. package/dist/{keyboardShortcuts-CMYWaUJh.js → useOnClickOutside-D7ssipvp.js} +17 -17
  23. package/dist/useOnClickOutside-D7ssipvp.js.map +1 -0
  24. package/dist/{keyboardShortcuts-cmT662QR.js → useOnClickOutside-DJ9Pi2GX.js} +17 -17
  25. package/dist/useOnClickOutside-DJ9Pi2GX.js.map +1 -0
  26. package/dist/v2/NeetoRulesBuilder.js +3 -10
  27. package/dist/v2/NeetoRulesBuilder.js.map +1 -1
  28. package/dist/v2/NeetoRulesForm.js +3 -3
  29. package/dist/v2/index.js +3 -3
  30. package/package.json +11 -11
  31. package/dist/index-B4lveJbi.js.map +0 -1
  32. package/dist/index-B_8d4J93.js.map +0 -1
  33. package/dist/index-Di9n5OiL.js.map +0 -1
  34. package/dist/index-DlfJmU4e.js.map +0 -1
  35. package/dist/keyboardShortcuts-CMYWaUJh.js.map +0 -1
  36. package/dist/keyboardShortcuts-cmT662QR.js.map +0 -1
@@ -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 { u as useOnClickOutside, S as SHORTCUTS, f as flatten } from './keyboardShortcuts-cmT662QR.js';
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';
@@ -20,13 +20,13 @@ import { a as useActiveField } from './useCustomDataStore-CEbhXugO.js';
20
20
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
21
21
  import { u as useUtilityStore } from './useUtilityStore-BVCulMEC.js';
22
22
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
23
+ import useHotkeys from '@bigbinary/neeto-hotkeys';
23
24
  import { withT, useStateWithDependency, useDebounce } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
24
25
  import Editor from '@monaco-editor/react';
25
26
  import DynamicVariables from '@bigbinary/neeto-molecules/v2/DynamicVariables';
26
27
  import { dayjs, joinHyphenCase, hyphenize } from '@bigbinary/neeto-commons-frontend/v2/utils';
27
28
  import { g as getSeparator, f as dotPath$1, b as getDateTimeValue, d as DATE_TIME_TYPES, e as DATE_TIME_FORMAT, D as DATE_FORMAT, a as getDateTimeFormattedValue, T as TIME_FORMAT } from './utils-a-9NZPeQ.js';
28
29
  import FormikEditor from '@bigbinary/neeto-editor-frontend/v2/FormikEditor';
29
- import useHotkeys from '@bigbinary/neeto-hotkeys';
30
30
  import CreatableSelect from 'react-select/creatable';
31
31
  import _toArray from '@babel/runtime/helpers/toArray';
32
32
  import { isPhoneNumberValid } from '@bigbinary/neeto-molecules/v2/PhoneNumber';
@@ -110,8 +110,16 @@ var Body = function Body(_ref) {
110
110
  var Footer = function Footer(_ref) {
111
111
  var children = _ref.children,
112
112
  className = _ref.className;
113
+ var footerRef = useRef(null);
114
+ useHotkeys(SHORTCUTS["continue"].sequence, function () {
115
+ var _footerRef$current;
116
+ 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();
117
+ }, {
118
+ mode: "global"
119
+ });
113
120
  return /*#__PURE__*/jsx("div", {
114
121
  "data-testid": "pane-footer",
122
+ ref: footerRef,
115
123
  className: classNames("neeto-rules-side-panel__footer border-border flex items-center justify-between border-t p-6", className),
116
124
  children: children
117
125
  });
@@ -5488,4 +5496,4 @@ var formatData = function formatData(data) {
5488
5496
  };
5489
5497
 
5490
5498
  export { ActionSubItem as A, SmsFields as B, MAX_DELAY_VALUE as C, DEFAULT_RULE_ACTION as D, EditorAction as E, FIELDS_WITH_OPTIONS as F, PhoneNumberField as G, ListField as L, 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, useHasFieldChanged as r, areValuesEqual as s, useResetSaveAsTemplateOnHide as t, usePollRuleName as u, SelectTemplateField as v, SaveAsTemplate as w, setEditorContent as x, ApiFields as y, ErrorCallout as z };
5491
- //# sourceMappingURL=index-Di9n5OiL.js.map
5499
+ //# sourceMappingURL=index-CwN3158d.js.map