@bigbinary/neeto-rules-frontend 2.5.1 → 2.5.3

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 (45) hide show
  1. package/app/javascript/src/translations/en.json +2 -2
  2. package/dist/NeetoRules.js +3 -3
  3. package/dist/NeetoRulesForm.js +8 -5
  4. package/dist/NeetoRulesForm.js.map +1 -1
  5. package/dist/RulePreview.js +3 -3
  6. package/dist/cjs/CannedResponsesPane.js +21 -36
  7. package/dist/cjs/CannedResponsesPane.js.map +1 -1
  8. package/dist/cjs/NeetoRules.js +59 -83
  9. package/dist/cjs/NeetoRules.js.map +1 -1
  10. package/dist/cjs/NeetoRulesForm.js +398 -438
  11. package/dist/cjs/NeetoRulesForm.js.map +1 -1
  12. package/dist/cjs/RulePreview.js +41 -54
  13. package/dist/cjs/RulePreview.js.map +1 -1
  14. package/dist/cjs/constants.js +1 -3
  15. package/dist/cjs/constants.js.map +1 -1
  16. package/dist/cjs/hooks.js +1 -3
  17. package/dist/cjs/hooks.js.map +1 -1
  18. package/dist/cjs/index.js +5 -7
  19. package/dist/cjs/index.js.map +1 -1
  20. package/dist/{constants-67118957.js → constants-C0OOtVhT.js} +1 -1
  21. package/dist/{constants-67118957.js.map → constants-C0OOtVhT.js.map} +1 -1
  22. package/dist/{constants-7347bfc4.js → constants-CB5HRjxq.js} +1 -1
  23. package/dist/{constants-7347bfc4.js.map → constants-CB5HRjxq.js.map} +1 -1
  24. package/dist/constants.js +1 -1
  25. package/dist/hooks.js +1 -1
  26. package/dist/{constants-12c6ac46.js → index-9h4B7JZZ.js} +1 -1
  27. package/dist/index-9h4B7JZZ.js.map +1 -0
  28. package/dist/{constants-2f1113f8.js → index-DFwPrb81.js} +1 -1
  29. package/dist/index-DFwPrb81.js.map +1 -0
  30. package/dist/index.js +5 -5
  31. package/dist/{useCustomDataStore-51ceac06.js → useCustomDataStore-B1qHMIGJ.js} +1 -1
  32. package/dist/{useCustomDataStore-51ceac06.js.map → useCustomDataStore-B1qHMIGJ.js.map} +1 -1
  33. package/dist/{useCustomDataStore-c57f5581.js → useCustomDataStore-BEG8I__n.js} +1 -1
  34. package/dist/{useCustomDataStore-c57f5581.js.map → useCustomDataStore-BEG8I__n.js.map} +1 -1
  35. package/dist/{useUtilityStore-e4b36ba2.js → useUtilityStore-BGuo9bko.js} +1 -1
  36. package/dist/{useUtilityStore-e4b36ba2.js.map → useUtilityStore-BGuo9bko.js.map} +1 -1
  37. package/dist/{useUtilityStore-ee4f96f8.js → useUtilityStore-KjKihXb0.js} +1 -1
  38. package/dist/{useUtilityStore-ee4f96f8.js.map → useUtilityStore-KjKihXb0.js.map} +1 -1
  39. package/dist/{utils-cd8f199f.js → utils-BngEaPaz.js} +1 -1
  40. package/dist/{utils-cd8f199f.js.map → utils-BngEaPaz.js.map} +1 -1
  41. package/dist/{utils-866e8e3b.js → utils-CvS2p6ZS.js} +1 -1
  42. package/dist/{utils-866e8e3b.js.map → utils-CvS2p6ZS.js.map} +1 -1
  43. package/package.json +19 -18
  44. package/dist/constants-12c6ac46.js.map +0 -1
  45. package/dist/constants-2f1113f8.js.map +0 -1
@@ -223,8 +223,8 @@
223
223
  "invalidPhoneNumber": "Phone number is invalid",
224
224
  "invalidUrlEntity": "{{entity}} must be a valid URL",
225
225
  "maximumEmails": "Only up to {{max}} email addresses are allowed",
226
- "maxDelay": "Delay must be less than {{max}}",
227
- "minDelay": "Delay must be greater than {{min}}"
226
+ "maxDelay": "Delay can't be more than {{max}}",
227
+ "minDelay": "Delay can't be less than {{min}}"
228
228
  },
229
229
  "conditionVerbs": {
230
230
  "is": "Is",
@@ -8,11 +8,11 @@ import Container from '@bigbinary/neeto-molecules/Container';
8
8
  import { useQuery, keepPreviousData } from '@tanstack/react-query';
9
9
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
10
10
  import axios from 'axios';
11
- import { A as AUTOMATION_RULES, S as STALE_TIME } from './constants-12c6ac46.js';
11
+ import { A as AUTOMATION_RULES, S as STALE_TIME } from './index-9h4B7JZZ.js';
12
12
  import NeetoHeader from '@bigbinary/neeto-molecules/Header';
13
13
  import HelpPopover from '@bigbinary/neeto-molecules/HelpPopover';
14
14
  import Button from '@bigbinary/neetoui/Button';
15
- import { c as createRoutes } from './utils-866e8e3b.js';
15
+ import { c as createRoutes } from './utils-CvS2p6ZS.js';
16
16
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
17
17
  import { Draggable, DragDropContext, Droppable } from '@hello-pangea/dnd';
18
18
  import Reorder from '@bigbinary/neeto-icons/Reorder';
@@ -28,7 +28,7 @@ import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
28
28
  import Alert from '@bigbinary/neetoui/Alert';
29
29
  import Table from '@bigbinary/neetoui/Table';
30
30
  import NoData from '@bigbinary/neetoui/NoData';
31
- import { u as useUtilityStore } from './useUtilityStore-ee4f96f8.js';
31
+ import { u as useUtilityStore } from './useUtilityStore-KjKihXb0.js';
32
32
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
33
33
  import { t } from 'i18next';
34
34
  import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
@@ -27,7 +27,7 @@ import { withT, useStateWithDependency, useDebounce } from '@bigbinary/neeto-com
27
27
  import Label from '@bigbinary/neetoui/Label';
28
28
  import Select from '@bigbinary/neetoui/Select';
29
29
  import DatePicker from '@bigbinary/neetoui/DatePicker';
30
- import { g as getSeparator } from './utils-866e8e3b.js';
30
+ import { g as getSeparator } from './utils-CvS2p6ZS.js';
31
31
  import { t as t$1 } from 'i18next';
32
32
  import FormikEditor from '@bigbinary/neeto-editor/FormikEditor';
33
33
  import MultiEmailInput from '@bigbinary/neetoui/formik/MultiEmailInput';
@@ -42,7 +42,7 @@ import Tag from '@bigbinary/neetoui/Tag';
42
42
  import { components } from 'react-select';
43
43
  import * as yup from 'yup';
44
44
  import { isEditorEmpty } from '@bigbinary/neeto-editor/utils';
45
- import { C as CONDITION_VALUE_TYPES, V as VERB_LABELS, M as MAXIMUM_OPTION_LENGTH$3, I as INPUT_FIELD_TYPES, O as OPERATOR_LABELS, a as OPERATORS$1 } from './constants-7347bfc4.js';
45
+ import { C as CONDITION_VALUE_TYPES, V as VERB_LABELS, M as MAXIMUM_OPTION_LENGTH$3, I as INPUT_FIELD_TYPES, O as OPERATOR_LABELS, a as OPERATORS$1 } from './constants-CB5HRjxq.js';
46
46
  import Eye from '@bigbinary/neeto-icons/Eye';
47
47
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
48
48
  import _regeneratorRuntime from '@babel/runtime/regenerator';
@@ -53,7 +53,7 @@ import Radio from '@bigbinary/neetoui/formik/Radio';
53
53
  import { shallow } from 'zustand/shallow';
54
54
  import Help from '@bigbinary/neeto-icons/Help';
55
55
  import Switch from '@bigbinary/neetoui/Switch';
56
- import { u as useCustomDataStore } from './useCustomDataStore-51ceac06.js';
56
+ import { u as useCustomDataStore } from './useCustomDataStore-B1qHMIGJ.js';
57
57
  import _typeof from '@babel/runtime/helpers/typeof';
58
58
  import 'zustand';
59
59
 
@@ -2330,8 +2330,8 @@ var getSchemaForExecutionDelay = function getSchemaForExecutionDelay(_) {
2330
2330
  return true;
2331
2331
  }
2332
2332
  var schema = yup.object().shape({
2333
- value: yup.number().nullable().typeError(t$1("neetoRules.validations.number")).min(1, t$1("neetoRules.validations.minDelay", {
2334
- min: 0
2333
+ value: yup.number().nullable().integer().typeError(t$1("neetoRules.validations.number")).min(1, t$1("neetoRules.validations.minDelay", {
2334
+ min: 1
2335
2335
  })).max(15, t$1("neetoRules.validations.maxDelay", {
2336
2336
  max: 15
2337
2337
  })).required(t$1("neetoRules.validations.required.value")),
@@ -3674,6 +3674,9 @@ var AddDelay = function AddDelay(_ref) {
3674
3674
  style: "body2",
3675
3675
  children: t("neetoRules.form.delayExecutionBy")
3676
3676
  }), /*#__PURE__*/jsx(Input$2, {
3677
+ className: "w-44",
3678
+ max: 15,
3679
+ min: 1,
3677
3680
  name: "".concat(name, ".value.value"),
3678
3681
  placeholder: t("neetoRules.placeholders.enterDelay"),
3679
3682
  type: "number"