@bigbinary/neeto-rules-frontend 2.5.63 → 2.5.65
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 +1 -1
- package/app/javascript/src/translations/bg.json +1 -1
- package/app/javascript/src/translations/ca.json +1 -1
- package/app/javascript/src/translations/cs.json +1 -1
- package/app/javascript/src/translations/da.json +1 -1
- package/app/javascript/src/translations/de.json +1 -1
- package/app/javascript/src/translations/en.json +1 -1
- package/app/javascript/src/translations/es-MX.json +1 -1
- package/app/javascript/src/translations/es.json +1 -1
- package/app/javascript/src/translations/et.json +1 -1
- package/app/javascript/src/translations/fi.json +1 -1
- package/app/javascript/src/translations/fil.json +1 -1
- package/app/javascript/src/translations/fr.json +1 -1
- package/app/javascript/src/translations/he.json +1 -1
- package/app/javascript/src/translations/hi.json +1 -1
- package/app/javascript/src/translations/hr.json +1 -1
- package/app/javascript/src/translations/hu.json +1 -1
- package/app/javascript/src/translations/id.json +1 -1
- package/app/javascript/src/translations/it.json +1 -1
- package/app/javascript/src/translations/ja.json +1 -1
- package/app/javascript/src/translations/ko.json +1 -1
- package/app/javascript/src/translations/nl.json +1 -1
- package/app/javascript/src/translations/pl.json +1 -1
- package/app/javascript/src/translations/pt-BR.json +1 -1
- package/app/javascript/src/translations/pt.json +1 -1
- package/app/javascript/src/translations/ro.json +1 -1
- package/app/javascript/src/translations/ru.json +1 -1
- package/app/javascript/src/translations/sk.json +1 -1
- package/app/javascript/src/translations/sl.json +1 -1
- package/app/javascript/src/translations/sv.json +1 -1
- package/app/javascript/src/translations/th.json +1 -1
- package/app/javascript/src/translations/tr.json +1 -1
- package/app/javascript/src/translations/uk.json +1 -1
- package/app/javascript/src/translations/vi.json +1 -1
- package/app/javascript/src/translations/zh-CN.json +1 -1
- package/app/javascript/src/translations/zh-TW.json +1 -1
- package/dist/.ready +1 -1
- package/dist/NeetoRulesForm.js +6 -2
- package/dist/NeetoRulesForm.js.map +1 -1
- package/dist/cjs/NeetoRulesForm.js +5 -1
- package/dist/cjs/NeetoRulesForm.js.map +1 -1
- package/dist/cjs/v2/CannedResponsesPane.js +1 -1
- package/dist/cjs/v2/CannedResponsesPane.js.map +1 -1
- package/dist/cjs/v2/NeetoRulesForm.js +2 -2
- package/dist/cjs/v2/NeetoRulesForm.js.map +1 -1
- package/dist/cjs/v2/RulePreview.js +1 -1
- package/dist/cjs/v2/RulePreview.js.map +1 -1
- package/dist/cjs/v2/index.js +4 -4
- package/dist/v2/CannedResponsesPane.js +1 -1
- package/dist/v2/CannedResponsesPane.js.map +1 -1
- package/dist/v2/NeetoRulesForm.js +2 -2
- package/dist/v2/NeetoRulesForm.js.map +1 -1
- package/dist/v2/RulePreview.js +1 -1
- package/dist/v2/RulePreview.js.map +1 -1
- package/dist/v2/index.js +4 -4
- package/package.json +25 -25
|
@@ -343,6 +343,10 @@ var getPanelSize = function getPanelSize(selectedField) {
|
|
|
343
343
|
var isLargeType = [ACTION_TYPES.sendToApi, ACTION_TYPES.smsToNumbers, ACTION_TYPES.sms, ACTION_TYPES.smsTo, ACTION_TYPES.emailToIds, ACTION_TYPES.email, ACTION_TYPES.emailTo, ACTION_TYPES.note, ACTION_TYPES.longText, ACTION_TYPES.textarea, ACTION_TYPES.list].includes(selectedField === null || selectedField === void 0 ? void 0 : selectedField.type) || !!(selectedField !== null && selectedField !== void 0 && selectedField.component);
|
|
344
344
|
return isLargeType ? "large" : "small";
|
|
345
345
|
};
|
|
346
|
+
var getActionLabel = function getActionLabel(action) {
|
|
347
|
+
var modifiedActionLabel = action.toLowerCase();
|
|
348
|
+
return ramda.replace(/slack/g, "Slack", modifiedActionLabel);
|
|
349
|
+
};
|
|
346
350
|
|
|
347
351
|
var ActionPanel = function ActionPanel() {
|
|
348
352
|
var _useTranslation = reactI18next.useTranslation(),
|
|
@@ -5461,7 +5465,7 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
5461
5465
|
children: label
|
|
5462
5466
|
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
5463
5467
|
"data-testid": "action-dropdown-button",
|
|
5464
|
-
label: selectedLabel
|
|
5468
|
+
label: getActionLabel(selectedLabel),
|
|
5465
5469
|
style: "link",
|
|
5466
5470
|
className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
|
|
5467
5471
|
"neeto-ui-text-accent-800": isFieldActive,
|