@bigbinary/neeto-editor 1.45.14 → 1.45.15

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 (42) hide show
  1. package/dist/Editor.js +11 -3
  2. package/dist/Editor.js.map +1 -1
  3. package/dist/EditorContent.js +3 -3
  4. package/dist/FormikEditor.js +3 -2
  5. package/dist/FormikEditor.js.map +1 -1
  6. package/dist/{chunk-DBch3tqq.js → chunk-BeW6s4Si.js} +15 -2
  7. package/dist/chunk-BeW6s4Si.js.map +1 -0
  8. package/dist/{chunk-CDBSVHz6.js → chunk-CGoAVMwz.js} +3 -16
  9. package/dist/chunk-CGoAVMwz.js.map +1 -0
  10. package/dist/{chunk-B88REGV6.js → chunk-GwDLPLDQ.js} +6 -3
  11. package/dist/chunk-GwDLPLDQ.js.map +1 -0
  12. package/dist/cjs/Editor.cjs.js +15 -7
  13. package/dist/cjs/Editor.cjs.js.map +1 -1
  14. package/dist/cjs/EditorContent.cjs.js +8 -8
  15. package/dist/cjs/FormikEditor.cjs.js +3 -2
  16. package/dist/cjs/FormikEditor.cjs.js.map +1 -1
  17. package/dist/cjs/{chunk-a-cnTJIr.cjs.js → chunk-3eBSLfI7.cjs.js} +9 -5
  18. package/dist/cjs/chunk-3eBSLfI7.cjs.js.map +1 -0
  19. package/dist/cjs/{chunk-Dh0stJ0O.cjs.js → chunk-B0S9scli.cjs.js} +20 -1
  20. package/dist/cjs/chunk-B0S9scli.cjs.js.map +1 -0
  21. package/dist/cjs/{chunk-BIff7Ppc.cjs.js → chunk-CjXcHxqY.cjs.js} +9 -25
  22. package/dist/cjs/chunk-CjXcHxqY.cjs.js.map +1 -0
  23. package/dist/cjs/index.cjs.js +4 -5
  24. package/dist/cjs/index.cjs.js.map +1 -1
  25. package/dist/cjs/utils.cjs.js +4 -5
  26. package/dist/cjs/utils.cjs.js.map +1 -1
  27. package/dist/editor-stats.html +1 -1
  28. package/dist/index.js +4 -5
  29. package/dist/index.js.map +1 -1
  30. package/dist/utils.js +4 -5
  31. package/dist/utils.js.map +1 -1
  32. package/package.json +1 -1
  33. package/dist/chunk-B88REGV6.js.map +0 -1
  34. package/dist/chunk-CDBSVHz6.js.map +0 -1
  35. package/dist/chunk-DBch3tqq.js.map +0 -1
  36. package/dist/chunk-LjMXcuRe.js +0 -6
  37. package/dist/chunk-LjMXcuRe.js.map +0 -1
  38. package/dist/cjs/chunk-BIff7Ppc.cjs.js.map +0 -1
  39. package/dist/cjs/chunk-DN1S-KLQ.cjs.js +0 -10
  40. package/dist/cjs/chunk-DN1S-KLQ.cjs.js.map +0 -1
  41. package/dist/cjs/chunk-Dh0stJ0O.cjs.js.map +0 -1
  42. package/dist/cjs/chunk-a-cnTJIr.cjs.js.map +0 -1
@@ -1,10 +1,9 @@
1
1
  import { createElement } from 'react';
2
2
  import { g as getDefaultExportFromCjs } from './chunk-D86RZ044.js';
3
- import { c as core, l as lowlight } from './chunk-DBch3tqq.js';
3
+ import { c as core, V as VARIABLE_SPAN_REGEX, l as lowlight, C as CODE_BLOCK_REGEX, L as LANGUAGE_LIST } from './chunk-BeW6s4Si.js';
4
4
  import { findBy } from '@bigbinary/neeto-cist';
5
5
  import { isEmpty } from 'ramda';
6
6
  import { renderToString } from 'react-dom/server';
7
- import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
8
7
 
9
8
  /*
10
9
  Language: HTML, XML
@@ -12511,18 +12510,6 @@ var common = hljs;
12511
12510
 
12512
12511
  var HighlightJS = /*@__PURE__*/getDefaultExportFromCjs(common);
12513
12512
 
12514
- var EDITOR_CONTENT_CLASS_NAME = "neeto-editor-content";
12515
- var SANITIZE_OPTIONS = {
12516
- ADD_TAGS: ["iframe"],
12517
- ADD_ATTR: ["target", "allow", "allowfullscreen", "frameborder"]
12518
- };
12519
- var CODE_BLOCK_REGEX = /<pre(?:\s+[^>]+)?><code(?:\s+class="language-([^"]*)")?>([\S\s]*?)<\/code><\/pre>/gim;
12520
- var VARIABLE_SPAN_REGEX = /<span data-variable="" [^>]*data-label="([^"]+)">{{([^}]+)}}<\/span>/g;
12521
- var LANGUAGE_LIST = [].concat(_toConsumableArray(lowlight.listLanguages()), ["html"]);
12522
- var EDITOR_CONTENT_DEFAULT_CONFIGURATION = {
12523
- enableHeaderLinks: false
12524
- };
12525
-
12526
12513
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike) { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
12527
12514
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12528
12515
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
@@ -12642,5 +12629,5 @@ var substituteVariables = function substituteVariables(highlightedContent, varia
12642
12629
  });
12643
12630
  };
12644
12631
 
12645
- export { EDITOR_CONTENT_CLASS_NAME as E, SANITIZE_OPTIONS as S, applySyntaxHighlightingAndLineNumbers as a, applyLineHighlighting as b, EDITOR_CONTENT_DEFAULT_CONFIGURATION as c, substituteVariables as s };
12646
- //# sourceMappingURL=chunk-CDBSVHz6.js.map
12632
+ export { applySyntaxHighlightingAndLineNumbers as a, applyLineHighlighting as b, substituteVariables as s };
12633
+ //# sourceMappingURL=chunk-CGoAVMwz.js.map