@bigbinary/neeto-editor 1.47.56 → 1.47.58
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/dist/Editor.js +1 -0
- package/dist/Editor.js.map +1 -1
- package/dist/EditorContent.js +1 -1
- package/dist/{chunk-jiJmCFSR.js → chunk-DX1vI1Ij.js} +7 -7
- package/dist/{chunk-jiJmCFSR.js.map → chunk-DX1vI1Ij.js.map} +1 -1
- package/dist/cjs/Editor.cjs.js +1 -0
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/EditorContent.cjs.js +1 -1
- package/dist/cjs/{chunk-fDeB4TwF.cjs.js → chunk-Bdnm9fUJ.cjs.js} +7 -7
- package/dist/cjs/{chunk-fDeB4TwF.cjs.js.map → chunk-Bdnm9fUJ.cjs.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/utils.cjs.js +1 -1
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/src/translations/ar.json +3 -1
- package/src/translations/bg.json +3 -1
- package/src/translations/ca.json +3 -1
- package/src/translations/cs.json +3 -1
- package/src/translations/da.json +3 -1
- package/src/translations/de.json +3 -1
- package/src/translations/es-MX.json +3 -1
- package/src/translations/es.json +3 -1
- package/src/translations/et.json +3 -1
- package/src/translations/fi.json +3 -1
- package/src/translations/fil.json +3 -1
- package/src/translations/fr.json +3 -1
- package/src/translations/hi.json +3 -1
- package/src/translations/hr.json +3 -1
- package/src/translations/id.json +3 -1
- package/src/translations/it.json +3 -1
- package/src/translations/ja.json +3 -1
- package/src/translations/ko.json +3 -1
- package/src/translations/nl.json +3 -1
- package/src/translations/pl.json +3 -1
- package/src/translations/pt-BR.json +3 -1
- package/src/translations/pt.json +3 -1
- package/src/translations/ro.json +3 -1
- package/src/translations/ru.json +3 -1
- package/src/translations/sk.json +3 -1
- package/src/translations/sl.json +3 -1
- package/src/translations/sv.json +3 -1
- package/src/translations/th.json +3 -1
- package/src/translations/tr.json +3 -1
- package/src/translations/uk.json +3 -1
- package/src/translations/vi.json +3 -1
- package/src/translations/zh-CN.json +3 -1
- package/src/translations/zh-TW.json +3 -1
package/dist/EditorContent.js
CHANGED
|
@@ -11,7 +11,7 @@ import { a as EDITOR_SIZES } from './chunk-7IwD_Poi.js';
|
|
|
11
11
|
import { n } from './chunk-DmrvuTKK.js';
|
|
12
12
|
import '@bigbinary/neeto-cist';
|
|
13
13
|
import './chunk-BZmNiqsu.js';
|
|
14
|
-
import { c as convertPlainTextToHtml, s as substituteVariables, a as applySyntaxHighlightingAndLineNumbers, b as applyLineHighlighting } from './chunk-
|
|
14
|
+
import { c as convertPlainTextToHtml, s as substituteVariables, a as applySyntaxHighlightingAndLineNumbers, b as applyLineHighlighting } from './chunk-DX1vI1Ij.js';
|
|
15
15
|
import { r as removeEmptyTags, E as EDITOR_CONTENT_CLASS_NAME, S as SANITIZE_OPTIONS, b as EDITOR_CONTENT_DEFAULT_CONFIGURATION } from './chunk-CeRlskgG.js';
|
|
16
16
|
import { useOnClickOutside } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
17
17
|
import Close from '@bigbinary/neeto-icons/Close';
|
|
@@ -12612,19 +12612,19 @@ var applyLineHighlighting = function applyLineHighlighting(editorContent) {
|
|
|
12612
12612
|
});
|
|
12613
12613
|
};
|
|
12614
12614
|
var substituteVariables = function substituteVariables(highlightedContent, variables) {
|
|
12615
|
-
return highlightedContent.replace(VARIABLE_SPAN_REGEX, function (matchedSpan,
|
|
12616
|
-
var
|
|
12617
|
-
if (
|
|
12615
|
+
return highlightedContent.replace(VARIABLE_SPAN_REGEX, function (matchedSpan, _, key) {
|
|
12616
|
+
var keySplitted = key.split(".");
|
|
12617
|
+
if (keySplitted.length > 1) {
|
|
12618
12618
|
var category = findBy({
|
|
12619
|
-
category:
|
|
12619
|
+
category: keySplitted[0]
|
|
12620
12620
|
}, variables);
|
|
12621
12621
|
var _variable = findBy({
|
|
12622
|
-
key:
|
|
12622
|
+
key: keySplitted[1]
|
|
12623
12623
|
}, (category === null || category === void 0 ? void 0 : category.variables) || []);
|
|
12624
12624
|
return _variable !== null && _variable !== void 0 && _variable.value ? _variable.value : matchedSpan;
|
|
12625
12625
|
}
|
|
12626
12626
|
var variable = findBy({
|
|
12627
|
-
key:
|
|
12627
|
+
key: keySplitted[0]
|
|
12628
12628
|
}, variables);
|
|
12629
12629
|
return variable !== null && variable !== void 0 && variable.value ? variable.value : matchedSpan;
|
|
12630
12630
|
});
|
|
@@ -12637,4 +12637,4 @@ var convertPlainTextToHtml = function convertPlainTextToHtml(htmlString) {
|
|
|
12637
12637
|
};
|
|
12638
12638
|
|
|
12639
12639
|
export { applySyntaxHighlightingAndLineNumbers as a, applyLineHighlighting as b, convertPlainTextToHtml as c, substituteVariables as s };
|
|
12640
|
-
//# sourceMappingURL=chunk-
|
|
12640
|
+
//# sourceMappingURL=chunk-DX1vI1Ij.js.map
|