@bigbinary/neeto-rules-frontend 2.7.29 → 2.7.31
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/app/javascript/src/translations/en.json +4 -0
- package/dist/.ready +1 -1
- package/dist/NeetoRules.js +1 -1
- package/dist/NeetoRulesBuilder.js +2 -2
- package/dist/NeetoRulesForm.js +5 -6
- package/dist/NeetoRulesForm.js.map +1 -1
- package/dist/RulePreview.js +1 -1
- package/dist/cjs/NeetoRulesForm.js +3 -4
- package/dist/cjs/NeetoRulesForm.js.map +1 -1
- package/dist/cjs/v2/NeetoRulesBuilder.js +43 -18
- package/dist/cjs/v2/NeetoRulesBuilder.js.map +1 -1
- package/dist/cjs/v2/NeetoRulesForm.js +3 -4
- package/dist/cjs/v2/NeetoRulesForm.js.map +1 -1
- package/dist/{index-DuotbpzE.js → index-Cr27L32X.js} +2 -2
- package/dist/{index-DuotbpzE.js.map → index-Cr27L32X.js.map} +1 -1
- package/dist/{index-B9wfLgdl.js → index-D7DIAuwa.js} +2 -2
- package/dist/{index-B9wfLgdl.js.map → index-D7DIAuwa.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{utils-Cp7CD4kh.js → utils-CeTB10_T.js} +2 -2
- package/dist/{utils-Cp7CD4kh.js.map → utils-CeTB10_T.js.map} +1 -1
- package/dist/v2/NeetoRules.js +1 -1
- package/dist/v2/NeetoRulesBuilder.js +46 -21
- package/dist/v2/NeetoRulesBuilder.js.map +1 -1
- package/dist/v2/NeetoRulesForm.js +5 -6
- package/dist/v2/NeetoRulesForm.js.map +1 -1
- package/dist/v2/RulePreview.js +1 -1
- package/dist/v2/index.js +2 -2
- package/package.json +7 -7
|
@@ -162,6 +162,10 @@
|
|
|
162
162
|
"title": "Canned responses"
|
|
163
163
|
},
|
|
164
164
|
"form": {
|
|
165
|
+
"errors": {
|
|
166
|
+
"ruleHasErrorFields": "The rule has fields with errors.",
|
|
167
|
+
"pendingRuleNameSave": "The rule name is still being saved."
|
|
168
|
+
},
|
|
165
169
|
"noEvents": "A rule without events will run hourly.",
|
|
166
170
|
"addEvent": "Add Event",
|
|
167
171
|
"noCondition": "No tickets matching specified conditions",
|
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-09-
|
|
1
|
+
Built at 2026-09-16T10:27:48.890Z
|
package/dist/NeetoRules.js
CHANGED
|
@@ -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-CfUbVR_5.js';
|
|
10
10
|
import Header$2 from '@bigbinary/neeto-molecules/Header';
|
|
11
11
|
import Button from '@bigbinary/neetoui/Button';
|
|
12
|
-
import { c as createRoutes } from './utils-
|
|
12
|
+
import { c as createRoutes } from './utils-CeTB10_T.js';
|
|
13
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
14
|
import { useShallow } from 'zustand/shallow';
|
|
15
15
|
import FilterBar from '@bigbinary/neeto-filters-frontend/Bar';
|
|
@@ -11,7 +11,7 @@ import Header from '@bigbinary/neeto-molecules/Header';
|
|
|
11
11
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
12
12
|
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
13
13
|
import { useTranslation } from 'react-i18next';
|
|
14
|
-
import { E as EditorAction, o as Panel, r as ErrorCallout, s as SmsFields, M as MIN_DELAY_VALUE, t as MAX_DELAY_VALUE, v 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-
|
|
14
|
+
import { E as EditorAction, o as Panel, r as ErrorCallout, s as SmsFields, M as MIN_DELAY_VALUE, t as MAX_DELAY_VALUE, v 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-Cr27L32X.js';
|
|
15
15
|
import { u as useCustomDataStore } from './useCustomDataStore-BtKYtLVc.js';
|
|
16
16
|
import { u as useUtilityStore } from './useUtilityStore-CCUYS1mS.js';
|
|
17
17
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -34,7 +34,7 @@ import Checkbox from '@bigbinary/neetoui/Checkbox';
|
|
|
34
34
|
import DatePicker from '@bigbinary/neetoui/DatePicker';
|
|
35
35
|
import Radio from '@bigbinary/neetoui/Radio';
|
|
36
36
|
import Textarea from '@bigbinary/neetoui/Textarea';
|
|
37
|
-
import { D as DATE_FORMAT } from './utils-
|
|
37
|
+
import { D as DATE_FORMAT } from './utils-CeTB10_T.js';
|
|
38
38
|
import Input$1 from '@bigbinary/neetoui/formik/Input';
|
|
39
39
|
import Select from '@bigbinary/neetoui/formik/Select';
|
|
40
40
|
import Select$1 from '@bigbinary/neetoui/Select';
|
package/dist/NeetoRulesForm.js
CHANGED
|
@@ -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-Cr27L32X.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';
|
|
@@ -58,7 +58,7 @@ import '@monaco-editor/react';
|
|
|
58
58
|
import '@bigbinary/neeto-molecules/DynamicVariables';
|
|
59
59
|
import '@bigbinary/neetoui/Select';
|
|
60
60
|
import '@bigbinary/neetoui/DatePicker';
|
|
61
|
-
import './utils-
|
|
61
|
+
import './utils-CeTB10_T.js';
|
|
62
62
|
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
63
63
|
import '@bigbinary/neetoui/formik/MultiEmailInput';
|
|
64
64
|
import '@bigbinary/neeto-editor/FormikEditor';
|
|
@@ -1329,16 +1329,15 @@ var Form = function Form(_ref) {
|
|
|
1329
1329
|
}, []);
|
|
1330
1330
|
var submitForm = function submitForm(values, formikBag) {
|
|
1331
1331
|
if (isNotEmpty(errorFields)) {
|
|
1332
|
-
|
|
1333
|
-
return;
|
|
1332
|
+
return Promise.reject(new Error(t("neetoRules.form.errors.ruleHasErrorFields")));
|
|
1334
1333
|
}
|
|
1335
1334
|
if (isCancelledNameGeneration) {
|
|
1336
1335
|
saveRuleName(values);
|
|
1337
|
-
return;
|
|
1336
|
+
return Promise.reject(new Error(t("neetoRules.form.errors.pendingRuleNameSave")));
|
|
1338
1337
|
}
|
|
1339
1338
|
var payload = buildPayload(data, values);
|
|
1340
1339
|
resetPanelState();
|
|
1341
|
-
handleSubmit(payload, formikBag, waitForGeneratedRuleName);
|
|
1340
|
+
return handleSubmit(payload, formikBag, waitForGeneratedRuleName);
|
|
1342
1341
|
};
|
|
1343
1342
|
return /*#__PURE__*/jsx(Formik, {
|
|
1344
1343
|
enableReinitialize: true,
|