@bigbinary/neeto-rules-frontend 2.7.11 → 2.7.13
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 -2
- package/app/javascript/src/translations/bg.json +2 -2
- package/app/javascript/src/translations/ca.json +2 -2
- package/app/javascript/src/translations/cs.json +2 -2
- package/app/javascript/src/translations/da.json +2 -2
- package/app/javascript/src/translations/de.json +2 -2
- package/app/javascript/src/translations/en.json +2 -4
- package/app/javascript/src/translations/es-MX.json +2 -2
- package/app/javascript/src/translations/es.json +2 -2
- package/app/javascript/src/translations/et.json +2 -2
- package/app/javascript/src/translations/fi.json +2 -2
- package/app/javascript/src/translations/fil.json +2 -2
- package/app/javascript/src/translations/fr.json +2 -2
- package/app/javascript/src/translations/he.json +2 -2
- package/app/javascript/src/translations/hi.json +2 -2
- package/app/javascript/src/translations/hr.json +2 -2
- package/app/javascript/src/translations/hu.json +2 -2
- package/app/javascript/src/translations/id.json +2 -2
- package/app/javascript/src/translations/it.json +2 -2
- package/app/javascript/src/translations/ja.json +2 -2
- package/app/javascript/src/translations/ko.json +2 -2
- package/app/javascript/src/translations/nl.json +2 -2
- package/app/javascript/src/translations/pl.json +2 -2
- package/app/javascript/src/translations/pt-BR.json +2 -2
- package/app/javascript/src/translations/pt.json +2 -2
- package/app/javascript/src/translations/ro.json +2 -2
- package/app/javascript/src/translations/ru.json +2 -2
- package/app/javascript/src/translations/sk.json +2 -2
- package/app/javascript/src/translations/sl.json +2 -2
- package/app/javascript/src/translations/sv.json +2 -2
- package/app/javascript/src/translations/th.json +2 -2
- package/app/javascript/src/translations/tr.json +2 -2
- package/app/javascript/src/translations/uk.json +2 -2
- package/app/javascript/src/translations/vi.json +2 -2
- package/app/javascript/src/translations/zh-CN.json +2 -2
- package/app/javascript/src/translations/zh-TW.json +2 -2
- package/dist/.ready +1 -1
- package/dist/NeetoRulesBuilder.js +63 -12
- package/dist/NeetoRulesBuilder.js.map +1 -1
- package/dist/NeetoRulesForm.js +2 -2
- package/dist/cjs/NeetoRulesBuilder.js +63 -12
- package/dist/cjs/NeetoRulesBuilder.js.map +1 -1
- package/dist/cjs/NeetoRulesForm.js +2 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/v2/NeetoRulesBuilder.js +2 -2
- package/dist/cjs/v2/NeetoRulesForm.js +2 -2
- package/dist/cjs/v2/index.js +2 -2
- package/dist/{index-DZzMQVUu.js → index-Bfe1tRHq.js} +6 -31
- package/dist/index-Bfe1tRHq.js.map +1 -0
- package/dist/{index-CqiiEJkf.js → index-C0gKo-ED.js} +6 -31
- package/dist/index-C0gKo-ED.js.map +1 -0
- package/dist/{index-CqnO-IZF.js → index-D7dZ7WdP.js} +2 -2
- package/dist/{index-CqnO-IZF.js.map → index-D7dZ7WdP.js.map} +1 -1
- package/dist/{index-DOW_ZlOp.js → index-DnM1MWRr.js} +2 -2
- package/dist/{index-DOW_ZlOp.js.map → index-DnM1MWRr.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/keyboardShortcuts-DNOhEY8h.js +88 -0
- package/dist/{keyboardShortcuts-Ow9vI9My.js.map → keyboardShortcuts-DNOhEY8h.js.map} +1 -1
- package/dist/keyboardShortcuts-SAk712q8.js +92 -0
- package/dist/{keyboardShortcuts-5radhjgX.js.map → keyboardShortcuts-SAk712q8.js.map} +1 -1
- package/dist/v2/NeetoRulesBuilder.js +2 -2
- package/dist/v2/NeetoRulesForm.js +2 -2
- package/dist/v2/index.js +2 -2
- package/package.json +7 -7
- package/dist/index-CqiiEJkf.js.map +0 -1
- package/dist/index-DZzMQVUu.js.map +0 -1
- package/dist/keyboardShortcuts-5radhjgX.js +0 -92
- package/dist/keyboardShortcuts-Ow9vI9My.js +0 -88
|
@@ -8,7 +8,7 @@ var _typeof = require('@babel/runtime/helpers/typeof');
|
|
|
8
8
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
9
9
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
10
10
|
var useAutomationRulesApi = require('./useAutomationRulesApi-C1T2E1AN.js');
|
|
11
|
-
var keyboardShortcuts = require('./keyboardShortcuts-
|
|
11
|
+
var keyboardShortcuts = require('./keyboardShortcuts-SAk712q8.js');
|
|
12
12
|
var ramda = require('ramda');
|
|
13
13
|
var i18next = require('i18next');
|
|
14
14
|
var yup = require('yup');
|
|
@@ -2735,16 +2735,6 @@ var Target$8 = function Target(_ref) {
|
|
|
2735
2735
|
})]
|
|
2736
2736
|
});
|
|
2737
2737
|
};
|
|
2738
|
-
|
|
2739
|
-
// Counts what the user sees in the editor, like a plain textarea would:
|
|
2740
|
-
// every visible character including typed line breaks (<br> and paragraph
|
|
2741
|
-
// ends), excluding only the structural newline after the final paragraph.
|
|
2742
|
-
var plainTextLength = function plainTextLength(html) {
|
|
2743
|
-
if (!html) return 0;
|
|
2744
|
-
var withLineBreaks = html.replace(/<br\s*\/?>/gi, "\n").replace(/<\/p>/gi, "\n");
|
|
2745
|
-
var doc = new DOMParser().parseFromString(withLineBreaks, HTML_MIME_TYPE);
|
|
2746
|
-
return (doc.body.textContent || "").replace(/\n$/, "").length;
|
|
2747
|
-
};
|
|
2748
2738
|
var SmsFields = function SmsFields(_ref2) {
|
|
2749
2739
|
var _action$metadata;
|
|
2750
2740
|
var _ref2$showFieldSelect = _ref2.showFieldSelection,
|
|
@@ -2767,9 +2757,6 @@ var SmsFields = function SmsFields(_ref2) {
|
|
|
2767
2757
|
_useField4 = _slicedToArray(_useField3, 1),
|
|
2768
2758
|
_useField4$0$value = _useField4[0].value,
|
|
2769
2759
|
phoneNumbers = _useField4$0$value === void 0 ? [] : _useField4$0$value;
|
|
2770
|
-
var _useField5 = formik.useField("".concat(name, ".body")),
|
|
2771
|
-
_useField6 = _slicedToArray(_useField5, 1),
|
|
2772
|
-
body = _useField6[0].value;
|
|
2773
2760
|
var _useActiveField2 = useCustomDataStore.useActiveField(name, {
|
|
2774
2761
|
shouldAutoFocus: showFieldSelection ? false : shouldAutoFocus
|
|
2775
2762
|
}),
|
|
@@ -2838,21 +2825,10 @@ var SmsFields = function SmsFields(_ref2) {
|
|
|
2838
2825
|
variables: selectedField === null || selectedField === void 0 ? void 0 : selectedField.variables,
|
|
2839
2826
|
editorRef: isFirstFieldInForm("body") ? mergeRefs(editorRef, initialFocusRef) : editorRef,
|
|
2840
2827
|
onFocus: setFieldActive
|
|
2841
|
-
}), /*#__PURE__*/jsxRuntime.
|
|
2842
|
-
"
|
|
2843
|
-
|
|
2844
|
-
children:
|
|
2845
|
-
className: "neeto-ui-text-gray-500",
|
|
2846
|
-
style: "body3",
|
|
2847
|
-
children: hint
|
|
2848
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
2849
|
-
className: "neeto-ui-text-gray-500 shrink-0",
|
|
2850
|
-
"data-testid": "sms-body-character-count",
|
|
2851
|
-
style: "body3",
|
|
2852
|
-
children: t("neetoRules.labels.characterCount", {
|
|
2853
|
-
count: plainTextLength(body)
|
|
2854
|
-
})
|
|
2855
|
-
})]
|
|
2828
|
+
}), hint && /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
2829
|
+
className: "mt-1 neeto-ui-text-gray-500",
|
|
2830
|
+
style: "body3",
|
|
2831
|
+
children: hint
|
|
2856
2832
|
}), isSaveAsTemplateVisible && /*#__PURE__*/jsxRuntime.jsx(SaveAsTemplate, {
|
|
2857
2833
|
name: name,
|
|
2858
2834
|
className: "mt-4"
|
|
@@ -5373,7 +5349,6 @@ var FIELD_TYPES = {
|
|
|
5373
5349
|
multiSelect: "multi-select",
|
|
5374
5350
|
executionDelay: "execution-delay"
|
|
5375
5351
|
};
|
|
5376
|
-
var HTML_MIME_TYPE = "text/html";
|
|
5377
5352
|
var MIN_DELAY_VALUE = 1;
|
|
5378
5353
|
var MAX_DELAY_VALUE = 999;
|
|
5379
5354
|
var VALIDATION_SCHEMA = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, FIELD_TYPES.text, getSchemaForStrings), FIELD_TYPES.longText, getSchemaForStrings), FIELD_TYPES.dropdown, getSchemaForStrings), FIELD_TYPES.radio, getSchemaForStrings), FIELD_TYPES.events, getEventsSchema), FIELD_TYPES.condition, getConditionsSchema), FIELD_TYPES.actions, getActionsSchema), FIELD_TYPES.multiSelect, getSchemaForArray), FIELD_TYPES.executionDelay, getSchemaForExecutionDelay);
|
|
@@ -5619,4 +5594,4 @@ exports.getSlackChannelErrors = getSlackChannelErrors;
|
|
|
5619
5594
|
exports.getValidationSchema = getValidationSchema;
|
|
5620
5595
|
exports.getVerbOptions = getVerbOptions;
|
|
5621
5596
|
exports.usePollRuleName = usePollRuleName;
|
|
5622
|
-
//# sourceMappingURL=index-
|
|
5597
|
+
//# sourceMappingURL=index-C0gKo-ED.js.map
|