@bigbinary/neeto-editor 1.45.13 → 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.
- package/dist/Editor.js +12 -4
- package/dist/Editor.js.map +1 -1
- package/dist/EditorContent.js +4 -4
- package/dist/FormikEditor.js +3 -2
- package/dist/FormikEditor.js.map +1 -1
- package/dist/{chunk-DBch3tqq.js → chunk-BeW6s4Si.js} +15 -2
- package/dist/chunk-BeW6s4Si.js.map +1 -0
- package/dist/{chunk-CDBSVHz6.js → chunk-CGoAVMwz.js} +3 -16
- package/dist/chunk-CGoAVMwz.js.map +1 -0
- package/dist/{chunk-B88REGV6.js → chunk-GwDLPLDQ.js} +6 -3
- package/dist/chunk-GwDLPLDQ.js.map +1 -0
- package/dist/cjs/Editor.cjs.js +16 -8
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/EditorContent.cjs.js +9 -9
- package/dist/cjs/FormikEditor.cjs.js +3 -2
- package/dist/cjs/FormikEditor.cjs.js.map +1 -1
- package/dist/cjs/{chunk-a-cnTJIr.cjs.js → chunk-3eBSLfI7.cjs.js} +9 -5
- package/dist/cjs/chunk-3eBSLfI7.cjs.js.map +1 -0
- package/dist/cjs/{chunk-Dh0stJ0O.cjs.js → chunk-B0S9scli.cjs.js} +20 -1
- package/dist/cjs/chunk-B0S9scli.cjs.js.map +1 -0
- package/dist/cjs/{chunk-BIff7Ppc.cjs.js → chunk-CjXcHxqY.cjs.js} +9 -25
- package/dist/cjs/chunk-CjXcHxqY.cjs.js.map +1 -0
- package/dist/cjs/index.cjs.js +5 -6
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/utils.cjs.js +4 -5
- package/dist/cjs/utils.cjs.js.map +1 -1
- package/dist/editor-content.min.css +1 -1
- package/dist/editor-output-pdf-email.css +1 -1
- package/dist/editor-output.js +1 -1
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/dist/utils.js +4 -5
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-B88REGV6.js.map +0 -1
- package/dist/chunk-CDBSVHz6.js.map +0 -1
- package/dist/chunk-DBch3tqq.js.map +0 -1
- package/dist/chunk-LjMXcuRe.js +0 -6
- package/dist/chunk-LjMXcuRe.js.map +0 -1
- package/dist/cjs/chunk-BIff7Ppc.cjs.js.map +0 -1
- package/dist/cjs/chunk-DN1S-KLQ.cjs.js +0 -10
- package/dist/cjs/chunk-DN1S-KLQ.cjs.js.map +0 -1
- package/dist/cjs/chunk-Dh0stJ0O.cjs.js.map +0 -1
- 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-
|
|
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 {
|
|
12646
|
-
//# sourceMappingURL=chunk-
|
|
12632
|
+
export { applySyntaxHighlightingAndLineNumbers as a, applyLineHighlighting as b, substituteVariables as s };
|
|
12633
|
+
//# sourceMappingURL=chunk-CGoAVMwz.js.map
|