@bigbinary/neeto-editor 1.47.56 → 1.47.57

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.
Files changed (45) hide show
  1. package/dist/EditorContent.js +1 -1
  2. package/dist/{chunk-jiJmCFSR.js → chunk-DX1vI1Ij.js} +7 -7
  3. package/dist/{chunk-jiJmCFSR.js.map → chunk-DX1vI1Ij.js.map} +1 -1
  4. package/dist/cjs/EditorContent.cjs.js +1 -1
  5. package/dist/cjs/{chunk-fDeB4TwF.cjs.js → chunk-Bdnm9fUJ.cjs.js} +7 -7
  6. package/dist/cjs/{chunk-fDeB4TwF.cjs.js.map → chunk-Bdnm9fUJ.cjs.js.map} +1 -1
  7. package/dist/cjs/index.cjs.js +1 -1
  8. package/dist/cjs/utils.cjs.js +1 -1
  9. package/dist/editor-stats.html +1 -1
  10. package/dist/index.js +1 -1
  11. package/dist/utils.js +1 -1
  12. package/package.json +1 -1
  13. package/src/translations/ar.json +3 -1
  14. package/src/translations/bg.json +3 -1
  15. package/src/translations/ca.json +3 -1
  16. package/src/translations/cs.json +3 -1
  17. package/src/translations/da.json +3 -1
  18. package/src/translations/de.json +3 -1
  19. package/src/translations/es-MX.json +3 -1
  20. package/src/translations/es.json +3 -1
  21. package/src/translations/et.json +3 -1
  22. package/src/translations/fi.json +3 -1
  23. package/src/translations/fil.json +3 -1
  24. package/src/translations/fr.json +3 -1
  25. package/src/translations/hi.json +3 -1
  26. package/src/translations/hr.json +3 -1
  27. package/src/translations/id.json +3 -1
  28. package/src/translations/it.json +3 -1
  29. package/src/translations/ja.json +3 -1
  30. package/src/translations/ko.json +3 -1
  31. package/src/translations/nl.json +3 -1
  32. package/src/translations/pl.json +3 -1
  33. package/src/translations/pt-BR.json +3 -1
  34. package/src/translations/pt.json +3 -1
  35. package/src/translations/ro.json +3 -1
  36. package/src/translations/ru.json +3 -1
  37. package/src/translations/sk.json +3 -1
  38. package/src/translations/sl.json +3 -1
  39. package/src/translations/sv.json +3 -1
  40. package/src/translations/th.json +3 -1
  41. package/src/translations/tr.json +3 -1
  42. package/src/translations/uk.json +3 -1
  43. package/src/translations/vi.json +3 -1
  44. package/src/translations/zh-CN.json +3 -1
  45. package/src/translations/zh-TW.json +3 -1
@@ -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-jiJmCFSR.js';
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, dataLabel) {
12616
- var dataLabelSplitted = dataLabel.split(".");
12617
- if (dataLabelSplitted.length > 1) {
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: dataLabelSplitted[0]
12619
+ category: keySplitted[0]
12620
12620
  }, variables);
12621
12621
  var _variable = findBy({
12622
- key: dataLabelSplitted[1]
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: dataLabelSplitted[0]
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-jiJmCFSR.js.map
12640
+ //# sourceMappingURL=chunk-DX1vI1Ij.js.map