@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.
@@ -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-CBY2h1zh.js';
15
- import { r as removeEmptyTags, E as EDITOR_CONTENT_CLASS_NAME, S as SANITIZE_OPTIONS, b as EDITOR_CONTENT_DEFAULT_CONFIGURATION } from './chunk-BCoBS5ED.js';
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';
@@ -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-BCoBS5ED.js';
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-BCoBS5ED.js.map
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