@bigbinary/neeto-rules-frontend 2.8.0-beta1 → 2.8.0-beta2

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 (48) hide show
  1. package/README.md +2 -0
  2. package/dist/.ready +1 -1
  3. package/dist/CannedResponsesPane.js +1 -1
  4. package/dist/NeetoRules.js +1 -1
  5. package/dist/NeetoRulesBuilder.js +4 -4
  6. package/dist/NeetoRulesForm.js +4 -4
  7. package/dist/RulePreview.js +14 -19
  8. package/dist/RulePreview.js.map +1 -1
  9. package/dist/cjs/CannedResponsesPane.js +1 -1
  10. package/dist/cjs/NeetoRules.js +1 -1
  11. package/dist/cjs/NeetoRulesBuilder.js +4 -4
  12. package/dist/cjs/NeetoRulesForm.js +4 -4
  13. package/dist/cjs/RulePreview.js +14 -19
  14. package/dist/cjs/RulePreview.js.map +1 -1
  15. package/dist/cjs/index.js +6 -6
  16. package/dist/cjs/v2/CannedResponsesPane.js +1 -1
  17. package/dist/cjs/v2/NeetoRules.js +1 -1
  18. package/dist/cjs/v2/NeetoRulesBuilder.js +4 -4
  19. package/dist/cjs/v2/NeetoRulesForm.js +12 -6
  20. package/dist/cjs/v2/NeetoRulesForm.js.map +1 -1
  21. package/dist/cjs/v2/RulePreview.js +14 -20
  22. package/dist/cjs/v2/RulePreview.js.map +1 -1
  23. package/dist/cjs/v2/index.js +6 -6
  24. package/dist/{index-DnUyU-KI.js → index-BaOdrc0i.js} +4 -4
  25. package/dist/{index-DnUyU-KI.js.map → index-BaOdrc0i.js.map} +1 -1
  26. package/dist/{index-Cr27L32X.js → index-DKzV1N4S.js} +4 -4
  27. package/dist/{index-Cr27L32X.js.map → index-DKzV1N4S.js.map} +1 -1
  28. package/dist/{index-D7DIAuwa.js → index-I0Wx9GGO.js} +4 -4
  29. package/dist/{index-D7DIAuwa.js.map → index-I0Wx9GGO.js.map} +1 -1
  30. package/dist/{index-Omo1J36W.js → index-mKR24WaR.js} +4 -4
  31. package/dist/{index-Omo1J36W.js.map → index-mKR24WaR.js.map} +1 -1
  32. package/dist/index.js +6 -6
  33. package/dist/{utils-B3roKiff.js → utils-CvvJ6wvi.js} +5 -1
  34. package/dist/utils-CvvJ6wvi.js.map +1 -0
  35. package/dist/{utils-CeTB10_T.js → utils-a-9NZPeQ.js} +6 -3
  36. package/dist/utils-a-9NZPeQ.js.map +1 -0
  37. package/dist/v2/CannedResponsesPane.js +1 -1
  38. package/dist/v2/NeetoRules.js +1 -1
  39. package/dist/v2/NeetoRulesBuilder.js +4 -4
  40. package/dist/v2/NeetoRulesForm.js +12 -6
  41. package/dist/v2/NeetoRulesForm.js.map +1 -1
  42. package/dist/v2/RulePreview.js +14 -20
  43. package/dist/v2/RulePreview.js.map +1 -1
  44. package/dist/v2/index.js +6 -6
  45. package/package.json +9 -9
  46. package/types.d.ts +1 -0
  47. package/dist/utils-B3roKiff.js.map +0 -1
  48. package/dist/utils-CeTB10_T.js.map +0 -1
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ import 'react-i18next';
22
22
  import '@babel/runtime/helpers/defineProperty';
23
23
  import 'i18next';
24
24
  import '@babel/runtime/helpers/toConsumableArray';
25
- import '@bigbinary/neeto-editor/Editor';
25
+ import '@bigbinary/neeto-editor-frontend/Editor';
26
26
  import '@bigbinary/neetoui/Input';
27
27
  import '@bigbinary/neetoui/Label';
28
28
  import 'react/jsx-runtime';
@@ -34,7 +34,7 @@ import '@babel/runtime/helpers/objectWithoutProperties';
34
34
  import 'axios';
35
35
  import '@bigbinary/neeto-molecules/Header';
36
36
  import '@bigbinary/neetoui/Button';
37
- import './utils-CeTB10_T.js';
37
+ import './utils-a-9NZPeQ.js';
38
38
  import '@bigbinary/neeto-commons-frontend/initializers';
39
39
  import '@bigbinary/neeto-commons-frontend/utils';
40
40
  import 'zustand/shallow';
@@ -54,7 +54,7 @@ import 'react-router-dom';
54
54
  import '@babel/runtime/helpers/objectDestructuringEmpty';
55
55
  import './keyboardShortcuts-CsMwT9YF.js';
56
56
  import 'classnames';
57
- import './index-Cr27L32X.js';
57
+ import './index-DKzV1N4S.js';
58
58
  import '@babel/runtime/helpers/typeof';
59
59
  import 'yup';
60
60
  import '@bigbinary/neeto-icons/Search';
@@ -74,7 +74,7 @@ import '@bigbinary/neeto-molecules/DynamicVariables';
74
74
  import '@bigbinary/neetoui/Select';
75
75
  import '@bigbinary/neetoui/DatePicker';
76
76
  import '@bigbinary/neetoui/formik/MultiEmailInput';
77
- import '@bigbinary/neeto-editor/FormikEditor';
77
+ import '@bigbinary/neeto-editor-frontend/FormikEditor';
78
78
  import '@bigbinary/neeto-icons/Refresh';
79
79
  import '@bigbinary/neeto-icons/Plus';
80
80
  import '@bigbinary/neeto-hotkeys';
@@ -88,7 +88,7 @@ import 'react-select';
88
88
  import './constants-C_bfl8XZ.js';
89
89
  import '@bigbinary/neetoui/Radio';
90
90
  import '@bigbinary/neetoui/TimePicker';
91
- import '@bigbinary/neeto-editor/utils';
91
+ import '@bigbinary/neeto-editor-frontend/utils';
92
92
  import '@bigbinary/neetoui/Textarea';
93
93
  import '@bigbinary/neeto-icons/Up';
94
94
  import '@bigbinary/neeto-icons/Down';
@@ -97,5 +97,5 @@ import '@bigbinary/neetoui/MultiEmailInput';
97
97
  import '@bigbinary/neeto-icons/Eye';
98
98
  import '@bigbinary/neetoui/Dropdown';
99
99
  import './useDebouncedUpdate-CroNcSyb.js';
100
- import '@bigbinary/neeto-editor/EditorContent';
100
+ import '@bigbinary/neeto-editor-frontend/EditorContent';
101
101
  //# sourceMappingURL=index.js.map
@@ -15,6 +15,9 @@ var TIME_FORMAT = "HH:mm";
15
15
  var LOCALIZED_TIME_FORMAT = "LT";
16
16
  var LOCALIZED_DATE_TIME_FORMAT = "ll LT";
17
17
 
18
+ var toLowerCaseValue = function toLowerCaseValue(value) {
19
+ return ramda.isNil(value) ? value : String(value).toLowerCase();
20
+ };
18
21
  var createRoutes = function createRoutes(basePath) {
19
22
  return {
20
23
  index: basePath,
@@ -79,4 +82,5 @@ exports.dotPath = dotPath;
79
82
  exports.getDateTimeFormattedValue = getDateTimeFormattedValue;
80
83
  exports.getDateTimeValue = getDateTimeValue;
81
84
  exports.getSeparator = getSeparator;
82
- //# sourceMappingURL=utils-B3roKiff.js.map
85
+ exports.toLowerCaseValue = toLowerCaseValue;
86
+ //# sourceMappingURL=utils-CvvJ6wvi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils-CvvJ6wvi.js","sources":["../app/javascript/src/constants/dateTime.js","../app/javascript/src/utils.js"],"sourcesContent":["export const DATE_TIME_TYPES = {\n datetime: \"datetime\",\n date: \"date\",\n time: \"time\",\n};\n\nexport const DATE_FORMAT = \"YYYY-MM-DD\";\nexport const DATE_TIME_FORMAT = \"YYYY-MM-DD HH:mm\";\nexport const TIME_FORMAT = \"HH:mm\";\n\nexport const LOCALIZED_TIME_FORMAT = \"LT\";\nexport const LOCALIZED_DATE_TIME_FORMAT = \"ll LT\";\n","import { globalProps } from \"neetocommons/initializers\";\nimport { dayjs, dateFormat } from \"neetocommons/utils\";\nimport { isNil, path, split, useWith } from \"ramda\";\n\nimport {\n DATE_TIME_TYPES,\n LOCALIZED_TIME_FORMAT,\n LOCALIZED_DATE_TIME_FORMAT,\n} from \"./constants/dateTime\";\n\nexport const toLowerCaseValue = value =>\n isNil(value) ? value : String(value).toLowerCase();\n\nexport const createRoutes = basePath => ({\n index: basePath,\n new: `${basePath}/new`,\n edit: `${basePath}/:ruleId/edit`,\n});\n\nexport const getSeparator = ({\n defaultSeparator,\n index = 0,\n selectedField,\n}) => {\n if (!selectedField || !selectedField.separator) return defaultSeparator;\n\n if (!Array.isArray(selectedField.separator)) {\n return selectedField.separator?.toLowerCase();\n }\n\n return selectedField.separator[index]?.toLowerCase() ?? defaultSeparator;\n};\n\nexport const getDateTimeValue = ({ date, format, type, timezone }) => {\n if (!date) return \"\";\n\n if (type === DATE_TIME_TYPES.date) return dayjs(date);\n\n return dayjs.tz(date, format, timezone).tz(globalProps.user?.timeZone);\n};\n\nexport const getDateTimeFormattedValue = ({ date, format, type, timezone }) => {\n if (!date) return \"\";\n\n if (type === DATE_TIME_TYPES.date) return dateFormat.date(date);\n\n const parsedDate = getDateTimeValue({ date, format, type, timezone });\n\n if (type === DATE_TIME_TYPES.time) {\n return parsedDate.format(LOCALIZED_TIME_FORMAT);\n }\n\n if (type === DATE_TIME_TYPES.datetime) {\n return parsedDate.format(LOCALIZED_DATE_TIME_FORMAT);\n }\n\n return date;\n};\n\n// eslint-disable-next-line react-hooks/rules-of-hooks\nexport const dotPath = useWith(path, [split(\".\")]);\n"],"names":["DATE_TIME_TYPES","datetime","date","time","DATE_FORMAT","DATE_TIME_FORMAT","TIME_FORMAT","LOCALIZED_TIME_FORMAT","LOCALIZED_DATE_TIME_FORMAT","toLowerCaseValue","value","isNil","String","toLowerCase","createRoutes","basePath","index","concat","edit","getSeparator","_ref","_selectedField$separa2","_selectedField$separa3","defaultSeparator","_ref$index","selectedField","separator","Array","isArray","_selectedField$separa","getDateTimeValue","_ref2","_globalProps$user","format","type","timezone","dayjs","tz","globalProps","user","timeZone","getDateTimeFormattedValue","_ref3","dateFormat","parsedDate","dotPath","useWith","path","split"],"mappings":";;;;;;AAAO,IAAMA,eAAe,GAAG;AAC7BC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,IAAI,EAAE;AACR;AAEO,IAAMC,WAAW,GAAG;AACpB,IAAMC,gBAAgB,GAAG;AACzB,IAAMC,WAAW,GAAG;AAEpB,IAAMC,qBAAqB,GAAG,IAAI;AAClC,IAAMC,0BAA0B,GAAG,OAAO;;ICDpCC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAGC,KAAK,EAAA;AAAA,EAAA,OACnCC,WAAK,CAACD,KAAK,CAAC,GAAGA,KAAK,GAAGE,MAAM,CAACF,KAAK,CAAC,CAACG,WAAW,EAAE;AAAA;IAEvCC,YAAY,GAAG,SAAfA,YAAYA,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,eAAe,CAACC,QAAQ,EAAE;AACrC,IAAA,OAAO2C,UAAU,CAACX,MAAM,CAACzB,0BAA0B,CAAC;AACtD,EAAA;AAEA,EAAA,OAAON,IAAI;AACb;;AAEA;AACO,IAAM2C,OAAO,GAAGC,aAAO,CAACC,UAAI,EAAE,CAACC,WAAK,CAAC,GAAG,CAAC,CAAC;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
2
2
  import { dayjs, dateFormat } from '@bigbinary/neeto-commons-frontend/utils';
3
- import { useWith, path, split } from 'ramda';
3
+ import { useWith, path, split, isNil } from 'ramda';
4
4
 
5
5
  var DATE_TIME_TYPES = {
6
6
  datetime: "datetime",
@@ -13,6 +13,9 @@ var TIME_FORMAT = "HH:mm";
13
13
  var LOCALIZED_TIME_FORMAT = "LT";
14
14
  var LOCALIZED_DATE_TIME_FORMAT = "ll LT";
15
15
 
16
+ var toLowerCaseValue = function toLowerCaseValue(value) {
17
+ return isNil(value) ? value : String(value).toLowerCase();
18
+ };
16
19
  var createRoutes = function createRoutes(basePath) {
17
20
  return {
18
21
  index: basePath,
@@ -68,5 +71,5 @@ var getDateTimeFormattedValue = function getDateTimeFormattedValue(_ref3) {
68
71
  // eslint-disable-next-line react-hooks/rules-of-hooks
69
72
  var dotPath = useWith(path, [split(".")]);
70
73
 
71
- export { DATE_FORMAT as D, TIME_FORMAT as T, getDateTimeFormattedValue as a, getDateTimeValue as b, createRoutes as c, DATE_TIME_TYPES as d, DATE_TIME_FORMAT as e, dotPath as f, getSeparator as g };
72
- //# sourceMappingURL=utils-CeTB10_T.js.map
74
+ export { DATE_FORMAT as D, TIME_FORMAT as T, getDateTimeFormattedValue as a, getDateTimeValue as b, createRoutes as c, DATE_TIME_TYPES as d, DATE_TIME_FORMAT as e, dotPath as f, getSeparator as g, toLowerCaseValue as t };
75
+ //# sourceMappingURL=utils-a-9NZPeQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils-a-9NZPeQ.js","sources":["../app/javascript/src/constants/dateTime.js","../app/javascript/src/utils.js"],"sourcesContent":["export const DATE_TIME_TYPES = {\n datetime: \"datetime\",\n date: \"date\",\n time: \"time\",\n};\n\nexport const DATE_FORMAT = \"YYYY-MM-DD\";\nexport const DATE_TIME_FORMAT = \"YYYY-MM-DD HH:mm\";\nexport const TIME_FORMAT = \"HH:mm\";\n\nexport const LOCALIZED_TIME_FORMAT = \"LT\";\nexport const LOCALIZED_DATE_TIME_FORMAT = \"ll LT\";\n","import { globalProps } from \"neetocommons/initializers\";\nimport { dayjs, dateFormat } from \"neetocommons/utils\";\nimport { isNil, path, split, useWith } from \"ramda\";\n\nimport {\n DATE_TIME_TYPES,\n LOCALIZED_TIME_FORMAT,\n LOCALIZED_DATE_TIME_FORMAT,\n} from \"./constants/dateTime\";\n\nexport const toLowerCaseValue = value =>\n isNil(value) ? value : String(value).toLowerCase();\n\nexport const createRoutes = basePath => ({\n index: basePath,\n new: `${basePath}/new`,\n edit: `${basePath}/:ruleId/edit`,\n});\n\nexport const getSeparator = ({\n defaultSeparator,\n index = 0,\n selectedField,\n}) => {\n if (!selectedField || !selectedField.separator) return defaultSeparator;\n\n if (!Array.isArray(selectedField.separator)) {\n return selectedField.separator?.toLowerCase();\n }\n\n return selectedField.separator[index]?.toLowerCase() ?? defaultSeparator;\n};\n\nexport const getDateTimeValue = ({ date, format, type, timezone }) => {\n if (!date) return \"\";\n\n if (type === DATE_TIME_TYPES.date) return dayjs(date);\n\n return dayjs.tz(date, format, timezone).tz(globalProps.user?.timeZone);\n};\n\nexport const getDateTimeFormattedValue = ({ date, format, type, timezone }) => {\n if (!date) return \"\";\n\n if (type === DATE_TIME_TYPES.date) return dateFormat.date(date);\n\n const parsedDate = getDateTimeValue({ date, format, type, timezone });\n\n if (type === DATE_TIME_TYPES.time) {\n return parsedDate.format(LOCALIZED_TIME_FORMAT);\n }\n\n if (type === DATE_TIME_TYPES.datetime) {\n return parsedDate.format(LOCALIZED_DATE_TIME_FORMAT);\n }\n\n return date;\n};\n\n// eslint-disable-next-line react-hooks/rules-of-hooks\nexport const dotPath = useWith(path, [split(\".\")]);\n"],"names":["DATE_TIME_TYPES","datetime","date","time","DATE_FORMAT","DATE_TIME_FORMAT","TIME_FORMAT","LOCALIZED_TIME_FORMAT","LOCALIZED_DATE_TIME_FORMAT","toLowerCaseValue","value","isNil","String","toLowerCase","createRoutes","basePath","index","concat","edit","getSeparator","_ref","_selectedField$separa2","_selectedField$separa3","defaultSeparator","_ref$index","selectedField","separator","Array","isArray","_selectedField$separa","getDateTimeValue","_ref2","_globalProps$user","format","type","timezone","dayjs","tz","globalProps","user","timeZone","getDateTimeFormattedValue","_ref3","dateFormat","parsedDate","dotPath","useWith","path","split"],"mappings":";;;;AAAO,IAAMA,eAAe,GAAG;AAC7BC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,IAAI,EAAE;AACR;AAEO,IAAMC,WAAW,GAAG;AACpB,IAAMC,gBAAgB,GAAG;AACzB,IAAMC,WAAW,GAAG;AAEpB,IAAMC,qBAAqB,GAAG,IAAI;AAClC,IAAMC,0BAA0B,GAAG,OAAO;;ICDpCC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAGC,KAAK,EAAA;AAAA,EAAA,OACnCC,KAAK,CAACD,KAAK,CAAC,GAAGA,KAAK,GAAGE,MAAM,CAACF,KAAK,CAAC,CAACG,WAAW,EAAE;AAAA;IAEvCC,YAAY,GAAG,SAAfA,YAAYA,CAAGC,QAAQ,EAAA;EAAA,OAAK;AACvCC,IAAAA,KAAK,EAAED,QAAQ;IACf,KAAA,EAAA,EAAA,CAAAE,MAAA,CAAQF,QAAQ,EAAA,MAAA,CAAM;IACtBG,IAAI,EAAA,EAAA,CAAAD,MAAA,CAAKF,QAAQ,EAAA,eAAA;GAClB;AAAA;IAEYI,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAInB;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';
11
11
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
12
12
  import { t } from 'i18next';
13
13
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
14
- import Editor from '@bigbinary/neeto-editor/v2/Editor';
14
+ import Editor from '@bigbinary/neeto-editor-frontend/v2/Editor';
15
15
  import { jsxs, jsx } from 'react/jsx-runtime';
16
16
 
17
17
  function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -9,7 +9,7 @@ import { b as useUpdateAutomationRule, c as useCloneAutomationRule, d as useDele
9
9
  import { I as INITIAL_RULES_DATA, R as RulesReorder } from '../index-DA8DSoSK.js';
10
10
  import { Button, Typography, Switch, Spinner, DataTable, Alert, Empty } from '@bigbinary/neeto-atoms';
11
11
  import Header$2 from '@bigbinary/neeto-molecules/v2/Header';
12
- import { c as createRoutes } from '../utils-CeTB10_T.js';
12
+ import { c as createRoutes } from '../utils-a-9NZPeQ.js';
13
13
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
14
14
  import { useShallow } from 'zustand/shallow';
15
15
  import { Workflow } from 'lucide-react';
@@ -11,7 +11,7 @@ import { isNotEmpty, toLabelAndValue, removeBy, findBy, isPresent, isNot, noop }
11
11
  import Container from '@bigbinary/neeto-molecules/v2/Container';
12
12
  import Header from '@bigbinary/neeto-molecules/v2/Header';
13
13
  import { useTranslation } from 'react-i18next';
14
- import { r as useHasFieldChanged, s as areValuesEqual, t as useResetSaveAsTemplateOnHide, v as SelectTemplateField, E as EditorAction, w as SaveAsTemplate, x as setEditorContent, y as ApiFields, L as ListField, o as Panel, z as ErrorCallout, B as SmsFields, M as MIN_DELAY_VALUE, C as MAX_DELAY_VALUE, G as PhoneNumberField, l as formatData, u as usePollRuleName, T as TouchErrors, n as ScrollToErrorField, p as getValidationSchema, q as DEFAULT_INITIAL_VALUE, m as buildPayload } from '../index-D7DIAuwa.js';
14
+ import { r as useHasFieldChanged, s as areValuesEqual, t as useResetSaveAsTemplateOnHide, v as SelectTemplateField, E as EditorAction, w as SaveAsTemplate, x as setEditorContent, y as ApiFields, L as ListField, o as Panel, z as ErrorCallout, B as SmsFields, M as MIN_DELAY_VALUE, C as MAX_DELAY_VALUE, G as PhoneNumberField, l as formatData, u as usePollRuleName, T as TouchErrors, n as ScrollToErrorField, p as getValidationSchema, q as DEFAULT_INITIAL_VALUE, m as buildPayload } from '../index-I0Wx9GGO.js';
15
15
  import { u as useCustomDataStore } from '../useCustomDataStore-CEbhXugO.js';
16
16
  import { u as useUtilityStore } from '../useUtilityStore-BVCulMEC.js';
17
17
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
@@ -28,7 +28,7 @@ import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
28
28
  import useHotkeys from '@bigbinary/neeto-hotkeys';
29
29
  import Search from '@bigbinary/neeto-icons/Search';
30
30
  import { dayjs } from '@bigbinary/neeto-commons-frontend/v2/utils';
31
- import { D as DATE_FORMAT, b as getDateTimeValue, d as DATE_TIME_TYPES, T as TIME_FORMAT, e as DATE_TIME_FORMAT } from '../utils-CeTB10_T.js';
31
+ import { D as DATE_FORMAT, b as getDateTimeValue, d as DATE_TIME_TYPES, T as TIME_FORMAT, e as DATE_TIME_FORMAT } from '../utils-a-9NZPeQ.js';
32
32
  import Up from '@bigbinary/neeto-icons/Up';
33
33
  import Down from '@bigbinary/neeto-icons/Down';
34
34
  import Info from '@bigbinary/neeto-icons/Info';
@@ -42,13 +42,13 @@ import 'lucide-react';
42
42
  import '@bigbinary/neeto-commons-frontend/v2/react-utils';
43
43
  import '@monaco-editor/react';
44
44
  import '@bigbinary/neeto-molecules/v2/DynamicVariables';
45
- import '@bigbinary/neeto-editor/v2/FormikEditor';
45
+ import '@bigbinary/neeto-editor-frontend/v2/FormikEditor';
46
46
  import 'react-select/creatable';
47
47
  import '@babel/runtime/helpers/toArray';
48
48
  import '@bigbinary/neeto-molecules/v2/PhoneNumber';
49
49
  import 'react-select';
50
50
  import '../constants-CYdcft3h.js';
51
- import '@bigbinary/neeto-editor/v2/utils';
51
+ import '@bigbinary/neeto-editor-frontend/v2/utils';
52
52
  import 'zustand';
53
53
  import '@bigbinary/neeto-commons-frontend/initializers';
54
54
  import '@bigbinary/neeto-commons-frontend/utils';
@@ -13,7 +13,7 @@ import { useTranslation } from 'react-i18next';
13
13
  import { u as useUtilityStore } from '../useUtilityStore-BVCulMEC.js';
14
14
  import classNames from 'classnames';
15
15
  import { isNotNil, isEmpty, pluck } from 'ramda';
16
- 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-D7DIAuwa.js';
16
+ 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-I0Wx9GGO.js';
17
17
  import { a as useActiveField, u as useCustomDataStore } from '../useCustomDataStore-CEbhXugO.js';
18
18
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
19
19
  import { joinHyphenCase } from '@bigbinary/neeto-commons-frontend/v2/utils';
@@ -35,10 +35,10 @@ import '../index-9h4B7JZZ.js';
35
35
  import 'yup';
36
36
  import '@monaco-editor/react';
37
37
  import '@bigbinary/neeto-molecules/v2/DynamicVariables';
38
- import '../utils-CeTB10_T.js';
38
+ import '../utils-a-9NZPeQ.js';
39
39
  import '@bigbinary/neeto-commons-frontend/initializers';
40
40
  import '@bigbinary/neeto-commons-frontend/utils';
41
- import '@bigbinary/neeto-editor/v2/FormikEditor';
41
+ import '@bigbinary/neeto-editor-frontend/v2/FormikEditor';
42
42
  import '@bigbinary/neeto-hotkeys';
43
43
  import 'react-select/creatable';
44
44
  import '@babel/runtime/helpers/toArray';
@@ -46,7 +46,7 @@ import '@bigbinary/neeto-molecules/v2/PhoneNumber';
46
46
  import 'react-select';
47
47
  import '@bigbinary/neeto-commons-frontend/v2/initializers';
48
48
  import '@babel/runtime/helpers/asyncToGenerator';
49
- import '@bigbinary/neeto-editor/v2/utils';
49
+ import '@bigbinary/neeto-editor-frontend/v2/utils';
50
50
 
51
51
  function ownKeys$c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
52
52
  function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1199,7 +1199,10 @@ var TextareaField = function TextareaField(_ref) {
1199
1199
  var ENABLED = STATUS_KEYS.ENABLED,
1200
1200
  DISABLED = STATUS_KEYS.DISABLED;
1201
1201
  var Status = function Status(_ref) {
1202
- var label = _ref.label;
1202
+ var _helpText$active, _helpText$inactive;
1203
+ var label = _ref.label,
1204
+ _ref$helpText = _ref.helpText,
1205
+ helpText = _ref$helpText === void 0 ? {} : _ref$helpText;
1203
1206
  var _useFormikContext = useFormikContext(),
1204
1207
  status = _useFormikContext.values.status,
1205
1208
  setFieldValue = _useFormikContext.setFieldValue;
@@ -1217,7 +1220,7 @@ var Status = function Status(_ref) {
1217
1220
  helpIconProps: {
1218
1221
  icon: CircleHelp,
1219
1222
  tooltipProps: {
1220
- content: status.value === ENABLED ? t("neetoRules.tooltips.rule.active") : t("neetoRules.tooltips.rule.inactive")
1223
+ content: defaultValue === ENABLED ? (_helpText$active = helpText === null || helpText === void 0 ? void 0 : helpText.active) !== null && _helpText$active !== void 0 ? _helpText$active : t("neetoRules.tooltips.rule.active") : (_helpText$inactive = helpText === null || helpText === void 0 ? void 0 : helpText.inactive) !== null && _helpText$inactive !== void 0 ? _helpText$inactive : t("neetoRules.tooltips.rule.inactive")
1221
1224
  }
1222
1225
  }
1223
1226
  },
@@ -1246,6 +1249,8 @@ var Form = function Form(_ref) {
1246
1249
  _ref$showStatusSwitch = _ref.showStatusSwitch,
1247
1250
  showStatusSwitch = _ref$showStatusSwitch === void 0 ? true : _ref$showStatusSwitch,
1248
1251
  statusSwitchLabel = _ref.statusSwitchLabel,
1252
+ _ref$statusHelpText = _ref.statusHelpText,
1253
+ statusHelpText = _ref$statusHelpText === void 0 ? {} : _ref$statusHelpText,
1249
1254
  _ref$payloadKey = _ref.payloadKey,
1250
1255
  payloadKey = _ref$payloadKey === void 0 ? "rule" : _ref$payloadKey,
1251
1256
  _ref$isNameGeneration = _ref.isNameGenerationDisabled,
@@ -1357,6 +1362,7 @@ var Form = function Form(_ref) {
1357
1362
  })]
1358
1363
  })]
1359
1364
  }), showStatusSwitch && /*#__PURE__*/jsx(Status, {
1365
+ helpText: statusHelpText,
1360
1366
  label: statusSwitchLabel
1361
1367
  })]
1362
1368
  }), typeof _children === "function" ? _children === null || _children === void 0 ? void 0 : _children(_objectSpread$1({