@bigbinary/neeto-editor 1.47.48 → 1.47.50
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 +91 -26
- package/dist/Editor.js.map +1 -1
- package/dist/EditorContent.js +2 -2
- package/dist/FormikEditor.js +1 -1
- package/dist/{chunk-BCoBS5ED.js → chunk-CeRlskgG.js} +13 -2
- package/dist/{chunk-BCoBS5ED.js.map → chunk-CeRlskgG.js.map} +1 -1
- package/dist/{chunk-CBY2h1zh.js → chunk-jiJmCFSR.js} +2 -2
- package/dist/{chunk-CBY2h1zh.js.map → chunk-jiJmCFSR.js.map} +1 -1
- package/dist/cjs/Editor.cjs.js +90 -25
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/EditorContent.cjs.js +2 -2
- package/dist/cjs/FormikEditor.cjs.js +1 -1
- package/dist/cjs/{chunk-Bi1rI-2R.cjs.js → chunk-OZAH-T0Z.cjs.js} +14 -1
- package/dist/cjs/{chunk-Bi1rI-2R.cjs.js.map → chunk-OZAH-T0Z.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-D4o7xzO7.cjs.js → chunk-fDeB4TwF.cjs.js} +2 -2
- package/dist/cjs/{chunk-D4o7xzO7.cjs.js.map → chunk-fDeB4TwF.cjs.js.map} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/utils.cjs.js +2 -2
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +2 -2
- package/dist/utils.js +2 -2
- package/package.json +1 -1
package/dist/EditorContent.js
CHANGED
|
@@ -11,8 +11,8 @@ 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-
|
|
15
|
-
import { r as removeEmptyTags, E as EDITOR_CONTENT_CLASS_NAME, S as SANITIZE_OPTIONS, b as EDITOR_CONTENT_DEFAULT_CONFIGURATION } from './chunk-
|
|
14
|
+
import { c as convertPlainTextToHtml, s as substituteVariables, a as applySyntaxHighlightingAndLineNumbers, b as applyLineHighlighting } from './chunk-jiJmCFSR.js';
|
|
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';
|
|
18
18
|
import Button from '@bigbinary/neetoui/Button';
|
package/dist/FormikEditor.js
CHANGED
|
@@ -98,7 +98,7 @@ import '@bigbinary/neeto-icons/MenuHorizontal';
|
|
|
98
98
|
import '@tippyjs/react';
|
|
99
99
|
import '@bigbinary/neeto-icons/File';
|
|
100
100
|
import 'react-dom/server';
|
|
101
|
-
import './chunk-
|
|
101
|
+
import './chunk-CeRlskgG.js';
|
|
102
102
|
import 'yjs';
|
|
103
103
|
import '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
104
104
|
import '@bigbinary/neetoui/Spinner';
|
|
@@ -16160,6 +16160,17 @@ var EDITOR_CONTENT_DEFAULT_CONFIGURATION = {
|
|
|
16160
16160
|
var NON_EMPTY_TAGS = ["img", "iframe"];
|
|
16161
16161
|
var MARGIN_HEIGHT = 8;
|
|
16162
16162
|
var EMPTY_TAGS_TO_REMOVE = ["p", "h1", "h2", "h3", "h4", "h5", "h6", "br"];
|
|
16163
|
+
var DEFAULT_SEARCH_KEYS = [{
|
|
16164
|
+
name: "title",
|
|
16165
|
+
weight: 0.7
|
|
16166
|
+
}, {
|
|
16167
|
+
name: "optionName",
|
|
16168
|
+
weight: 0.6
|
|
16169
|
+
}, {
|
|
16170
|
+
name: "description",
|
|
16171
|
+
weight: 0.1
|
|
16172
|
+
}];
|
|
16173
|
+
var FUZZY_SEARCH_DEFAULT_LIMIT = 4;
|
|
16163
16174
|
|
|
16164
16175
|
var removeTagsStart = function removeTagsStart(node) {
|
|
16165
16176
|
while (node.firstChild && EMPTY_TAGS_TO_REMOVE.includes((_node$firstChild$tagN = node.firstChild.tagName) === null || _node$firstChild$tagN === void 0 ? void 0 : _node$firstChild$tagN.toLowerCase())) {
|
|
@@ -16215,5 +16226,5 @@ var isEditorContentWithinLimit = function isEditorContentWithinLimit(htmlContent
|
|
|
16215
16226
|
return isLengthWithinLimit;
|
|
16216
16227
|
};
|
|
16217
16228
|
|
|
16218
|
-
export { CODE_BLOCK_REGEX as C, EDITOR_CONTENT_CLASS_NAME as E, LANGUAGE_LIST as L, MARGIN_HEIGHT as M, SANITIZE_OPTIONS as S, VARIABLE_SPAN_REGEX as V, isEditorContentWithinLimit as a, EDITOR_CONTENT_DEFAULT_CONFIGURATION as b, core as c, isEditorEmpty as i, lowlight as l, removeEmptyTags as r };
|
|
16219
|
-
//# sourceMappingURL=chunk-
|
|
16229
|
+
export { CODE_BLOCK_REGEX as C, DEFAULT_SEARCH_KEYS as D, EDITOR_CONTENT_CLASS_NAME as E, FUZZY_SEARCH_DEFAULT_LIMIT as F, LANGUAGE_LIST as L, MARGIN_HEIGHT as M, SANITIZE_OPTIONS as S, VARIABLE_SPAN_REGEX as V, isEditorContentWithinLimit as a, EDITOR_CONTENT_DEFAULT_CONFIGURATION as b, core as c, isEditorEmpty as i, lowlight as l, removeEmptyTags as r };
|
|
16230
|
+
//# sourceMappingURL=chunk-CeRlskgG.js.map
|