@bigbinary/neeto-rules-frontend 2.6.1 → 2.6.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.
- package/app/javascript/src/translations/ar.json +2 -1
- package/app/javascript/src/translations/bg.json +2 -1
- package/app/javascript/src/translations/ca.json +2 -1
- package/app/javascript/src/translations/cs.json +2 -1
- package/app/javascript/src/translations/da.json +2 -1
- package/app/javascript/src/translations/de.json +2 -1
- package/app/javascript/src/translations/en.json +2 -1
- package/app/javascript/src/translations/es-MX.json +2 -1
- package/app/javascript/src/translations/es.json +2 -1
- package/app/javascript/src/translations/et.json +2 -1
- package/app/javascript/src/translations/fi.json +2 -1
- package/app/javascript/src/translations/fil.json +2 -1
- package/app/javascript/src/translations/fr.json +2 -1
- package/app/javascript/src/translations/he.json +2 -1
- package/app/javascript/src/translations/hi.json +2 -1
- package/app/javascript/src/translations/hr.json +2 -1
- package/app/javascript/src/translations/hu.json +2 -1
- package/app/javascript/src/translations/id.json +2 -1
- package/app/javascript/src/translations/it.json +2 -1
- package/app/javascript/src/translations/ja.json +2 -1
- package/app/javascript/src/translations/ko.json +2 -1
- package/app/javascript/src/translations/nl.json +2 -1
- package/app/javascript/src/translations/pl.json +2 -1
- package/app/javascript/src/translations/pt-BR.json +2 -1
- package/app/javascript/src/translations/pt.json +2 -1
- package/app/javascript/src/translations/ro.json +2 -1
- package/app/javascript/src/translations/ru.json +2 -1
- package/app/javascript/src/translations/sk.json +2 -1
- package/app/javascript/src/translations/sl.json +2 -1
- package/app/javascript/src/translations/sv.json +2 -1
- package/app/javascript/src/translations/th.json +2 -1
- package/app/javascript/src/translations/tr.json +2 -1
- package/app/javascript/src/translations/uk.json +2 -1
- package/app/javascript/src/translations/vi.json +2 -1
- package/app/javascript/src/translations/zh-CN.json +2 -1
- package/app/javascript/src/translations/zh-TW.json +2 -1
- package/dist/.ready +1 -1
- package/dist/NeetoRulesBuilder.js +95 -85
- package/dist/NeetoRulesBuilder.js.map +1 -1
- package/dist/NeetoRulesForm.js +1 -1
- package/dist/cjs/NeetoRulesBuilder.js +95 -85
- package/dist/cjs/NeetoRulesBuilder.js.map +1 -1
- package/dist/cjs/NeetoRulesForm.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/{index-CkYo0ca_.js → index-B0FTuUOt.js} +20 -3
- package/dist/index-B0FTuUOt.js.map +1 -0
- package/dist/{index-3f8Yrbst.js → index-C8o4tdnQ.js} +20 -3
- package/dist/index-C8o4tdnQ.js.map +1 -0
- package/dist/index.js +1 -1
- package/package.json +7 -7
- package/dist/index-3f8Yrbst.js.map +0 -1
- package/dist/index-CkYo0ca_.js.map +0 -1
|
@@ -17,7 +17,7 @@ var useUtilityStore = require('../useUtilityStore-C_U20IMX.js');
|
|
|
17
17
|
var classNames = require('classnames');
|
|
18
18
|
var Typography = require('@bigbinary/neetoui/Typography');
|
|
19
19
|
var ramda = require('ramda');
|
|
20
|
-
var index = require('../index-
|
|
20
|
+
var index = require('../index-C8o4tdnQ.js');
|
|
21
21
|
var useCustomDataStore = require('../useCustomDataStore-DxFx8aCf.js');
|
|
22
22
|
var jsxRuntime = require('react/jsx-runtime');
|
|
23
23
|
var utils = require('@bigbinary/neeto-commons-frontend/utils');
|
package/dist/cjs/index.js
CHANGED
|
@@ -56,7 +56,7 @@ require('react-router-dom');
|
|
|
56
56
|
require('@babel/runtime/helpers/objectDestructuringEmpty');
|
|
57
57
|
require('../keyboardShortcuts-NxcrOxzv.js');
|
|
58
58
|
require('classnames');
|
|
59
|
-
require('../index-
|
|
59
|
+
require('../index-C8o4tdnQ.js');
|
|
60
60
|
require('@babel/runtime/helpers/typeof');
|
|
61
61
|
require('yup');
|
|
62
62
|
require('@bigbinary/neeto-icons/Search');
|
|
@@ -1479,13 +1479,30 @@ var SelectField$1 = function SelectField(_ref2) {
|
|
|
1479
1479
|
setValue((_option$value = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value !== void 0 ? _option$value : null);
|
|
1480
1480
|
setTouched(true);
|
|
1481
1481
|
};
|
|
1482
|
+
var formatOptionLabel = function formatOptionLabel(_ref4, _ref5) {
|
|
1483
|
+
var label = _ref4.label,
|
|
1484
|
+
isPrivate = _ref4.isPrivate;
|
|
1485
|
+
var context = _ref5.context;
|
|
1486
|
+
return /*#__PURE__*/jsxs("div", {
|
|
1487
|
+
className: "flex items-center justify-between gap-2",
|
|
1488
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
1489
|
+
children: label
|
|
1490
|
+
}), isPrivate && context === "menu" && /*#__PURE__*/jsx(Typography, {
|
|
1491
|
+
className: "neeto-ui-text-gray-500 italic",
|
|
1492
|
+
style: "body3",
|
|
1493
|
+
children: t("neetoRules.slack.private")
|
|
1494
|
+
})]
|
|
1495
|
+
});
|
|
1496
|
+
};
|
|
1482
1497
|
return /*#__PURE__*/jsxs("div", {
|
|
1483
1498
|
className: "flex items-start gap-2",
|
|
1484
|
-
children: [/*#__PURE__*/jsx(Select$1, _objectSpread$c(_objectSpread$c({}, _objectSpread$c({
|
|
1499
|
+
children: [/*#__PURE__*/jsx(Select$1, _objectSpread$c(_objectSpread$c({}, _objectSpread$c(_objectSpread$c({
|
|
1485
1500
|
className: className,
|
|
1486
1501
|
name: name,
|
|
1487
1502
|
required: required
|
|
1488
|
-
}, otherProps)
|
|
1503
|
+
}, otherProps), {}, {
|
|
1504
|
+
formatOptionLabel: formatOptionLabel
|
|
1505
|
+
})), {}, {
|
|
1489
1506
|
innerRef: ref,
|
|
1490
1507
|
label: defaultLabel,
|
|
1491
1508
|
options: dropdownOptions,
|
|
@@ -5508,4 +5525,4 @@ var formatData = function formatData(data) {
|
|
|
5508
5525
|
};
|
|
5509
5526
|
|
|
5510
5527
|
export { ActionSubItem as A, DEFAULT_RULE_ACTION as D, EditorAction as E, FIELDS_WITH_OPTIONS as F, 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, getActionLabel as c, getLogicalOperatorOptions as d, getFieldDetails as e, getVerbOptions as f, getActionOptions as g, DEFAULT_DELAY as h, getAllEvents as i, STATUS_KEYS as j, formatData as k, buildPayload as l, ScrollToErrorField as m, Panel as n, getValidationSchema as o, DEFAULT_INITIAL_VALUE as p, ErrorCallout as q, SmsFields as r, PhoneNumberField as s, usePollRuleName as u };
|
|
5511
|
-
//# sourceMappingURL=index-
|
|
5528
|
+
//# sourceMappingURL=index-B0FTuUOt.js.map
|