@bigbinary/neeto-rules-frontend 2.2.0 → 2.3.1
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/README.md +10 -0
- package/app/javascript/src/translations/en.json +2 -1
- package/dist/NeetoRules.js +2 -10
- package/dist/NeetoRules.js.map +1 -1
- package/dist/NeetoRulesForm.js +38 -13
- package/dist/NeetoRulesForm.js.map +1 -1
- package/dist/RulePreview.js +7 -4
- package/dist/RulePreview.js.map +1 -1
- package/dist/cjs/NeetoRules.js +19 -27
- package/dist/cjs/NeetoRules.js.map +1 -1
- package/dist/cjs/NeetoRulesForm.js +146 -122
- package/dist/cjs/NeetoRulesForm.js.map +1 -1
- package/dist/cjs/RulePreview.js +10 -7
- package/dist/cjs/RulePreview.js.map +1 -1
- package/dist/cjs/index.js +2 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/{toConsumableArray-9f1f441a.js → toConsumableArray-71e2b184.js} +4 -4
- package/dist/{toConsumableArray-9f1f441a.js.map → toConsumableArray-71e2b184.js.map} +1 -1
- package/dist/{toConsumableArray-1215bc07.js → toConsumableArray-ee25f277.js} +2 -2
- package/dist/{toConsumableArray-1215bc07.js.map → toConsumableArray-ee25f277.js.map} +1 -1
- package/dist/{slicedToArray-2af6bc03.js → utils-249a1c9a.js} +23 -2
- package/dist/utils-249a1c9a.js.map +1 -0
- package/dist/{slicedToArray-cc928132.js → utils-ca50bfc9.js} +24 -1
- package/dist/utils-ca50bfc9.js.map +1 -0
- package/package.json +15 -15
- package/dist/slicedToArray-2af6bc03.js.map +0 -1
- package/dist/slicedToArray-cc928132.js.map +0 -1
package/README.md
CHANGED
|
@@ -598,12 +598,20 @@ const initialProps = {
|
|
|
598
598
|
{ label: "Hold", value: "hold" },
|
|
599
599
|
],
|
|
600
600
|
},
|
|
601
|
+
{
|
|
602
|
+
value: "email_to_agent",
|
|
603
|
+
label: "Email To Agent",
|
|
604
|
+
type: "emailTo",
|
|
605
|
+
separator: ["with the name", "with the content"],
|
|
606
|
+
hideSubject: true,
|
|
607
|
+
},
|
|
601
608
|
{
|
|
602
609
|
value: "email_to",
|
|
603
610
|
label: "Email To",
|
|
604
611
|
type: "emailToIds",
|
|
605
612
|
separator: "as",
|
|
606
613
|
hideSubject: true, // Hide subject field if this prop is true
|
|
614
|
+
maxLimit: 5, // Adds validation to limit up to specified number of email addresses
|
|
607
615
|
},
|
|
608
616
|
{
|
|
609
617
|
value: "send_sms",
|
|
@@ -636,6 +644,8 @@ const initialProps = {
|
|
|
636
644
|
3. `label`: Label for the field.
|
|
637
645
|
4. `onSelectAction`: `(name, selectedOption) => void`. This method will trigger when we select an action option. The name is to refer the action in the formik context.
|
|
638
646
|
5. `selectedActionOptions`: `(selectedAction)=> [{label, value}]`. To provide options for the selected action if the type of selected action is `dropdown` or `multi-select`.
|
|
647
|
+
6. `separator`: Separator to be shown between action sub items. If there is only one sub item, provide a string value. If there are multiple sub items, provide an array of separators.
|
|
648
|
+
|
|
639
649
|
|
|
640
650
|
Refer to the [Actions section](./docs/actions.md) for more information.
|
|
641
651
|
|
|
@@ -205,7 +205,8 @@
|
|
|
205
205
|
"errorInIntegration": "Could not connect to Slack! Please verify the integration settings or remove this action to ensure the automation rule functions correctly.<br/><br/>Go to <button>Slack Integration</button>."
|
|
206
206
|
},
|
|
207
207
|
"invalidPhoneNumber": "Phone number is invalid",
|
|
208
|
-
"invalidUrlEntity": "{{entity}} must be a valid URL"
|
|
208
|
+
"invalidUrlEntity": "{{entity}} must be a valid URL",
|
|
209
|
+
"maximumEmails": "Only up to {{max}} email addresses are allowed"
|
|
209
210
|
},
|
|
210
211
|
"conditionVerbs": {
|
|
211
212
|
"is": "Is",
|
package/dist/NeetoRules.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty$1, a as _slicedToArray } from './
|
|
1
|
+
import { _ as _defineProperty$1, c as createRoutes, a as _slicedToArray } from './utils-249a1c9a.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { memo, useState, useRef, useEffect, useContext, useLayoutEffect as useLayoutEffect$1, createElement } from 'react';
|
|
4
4
|
import { isPresent, removeBy, isNotEmpty } from '@bigbinary/neeto-cist';
|
|
@@ -6,7 +6,7 @@ import { DEFAULT_PAGE_SIZE } from '@bigbinary/neeto-commons-frontend/constants';
|
|
|
6
6
|
import { useMutationWithInvalidation, withT, useQueryParams } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
7
7
|
import Container from '@bigbinary/neeto-molecules/Container';
|
|
8
8
|
import { useQuery, keepPreviousData } from '@tanstack/react-query';
|
|
9
|
-
import { _ as _objectWithoutProperties, g as getDefaultExportFromCjs, a as _toConsumableArray } from './toConsumableArray-
|
|
9
|
+
import { _ as _objectWithoutProperties, g as getDefaultExportFromCjs, a as _toConsumableArray } from './toConsumableArray-ee25f277.js';
|
|
10
10
|
import axios from 'axios';
|
|
11
11
|
import { A as AUTOMATION_RULES, S as STALE_TIME } from './constants-12c6ac46.js';
|
|
12
12
|
import NeetoHeader from '@bigbinary/neeto-molecules/Header';
|
|
@@ -114,14 +114,6 @@ var INITIAL_RULES_DATA = {
|
|
|
114
114
|
totalCount: 0
|
|
115
115
|
};
|
|
116
116
|
|
|
117
|
-
var createRoutes = function createRoutes(basePath) {
|
|
118
|
-
return {
|
|
119
|
-
index: basePath,
|
|
120
|
-
"new": "".concat(basePath, "/new"),
|
|
121
|
-
edit: "".concat(basePath, "/:ruleId/edit")
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
|
|
125
117
|
function ownKeys$7(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; }
|
|
126
118
|
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
127
119
|
var Header = withT(function (_ref) {
|