@bigbinary/neeto-editor 1.45.15 → 1.45.16

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 +3 -11
  2. package/dist/Editor.js.map +1 -1
  3. package/dist/EditorContent.js +3 -3
  4. package/dist/FormikEditor.js +2 -3
  5. package/dist/FormikEditor.js.map +1 -1
  6. package/dist/{chunk-GwDLPLDQ.js → chunk-B88REGV6.js} +3 -6
  7. package/dist/chunk-B88REGV6.js.map +1 -0
  8. package/dist/{chunk-CGoAVMwz.js → chunk-CDBSVHz6.js} +16 -3
  9. package/dist/chunk-CDBSVHz6.js.map +1 -0
  10. package/dist/{chunk-BeW6s4Si.js → chunk-DBch3tqq.js} +2 -15
  11. package/dist/chunk-DBch3tqq.js.map +1 -0
  12. package/dist/chunk-LjMXcuRe.js +6 -0
  13. package/dist/chunk-LjMXcuRe.js.map +1 -0
  14. package/dist/cjs/Editor.cjs.js +7 -15
  15. package/dist/cjs/Editor.cjs.js.map +1 -1
  16. package/dist/cjs/EditorContent.cjs.js +8 -8
  17. package/dist/cjs/FormikEditor.cjs.js +2 -3
  18. package/dist/cjs/FormikEditor.cjs.js.map +1 -1
  19. package/dist/cjs/{chunk-CjXcHxqY.cjs.js → chunk-BIff7Ppc.cjs.js} +25 -9
  20. package/dist/cjs/chunk-BIff7Ppc.cjs.js.map +1 -0
  21. package/dist/cjs/chunk-DN1S-KLQ.cjs.js +10 -0
  22. package/dist/cjs/chunk-DN1S-KLQ.cjs.js.map +1 -0
  23. package/dist/cjs/{chunk-B0S9scli.cjs.js → chunk-Dh0stJ0O.cjs.js} +1 -20
  24. package/dist/cjs/chunk-Dh0stJ0O.cjs.js.map +1 -0
  25. package/dist/cjs/{chunk-3eBSLfI7.cjs.js → chunk-a-cnTJIr.cjs.js} +5 -9
  26. package/dist/cjs/chunk-a-cnTJIr.cjs.js.map +1 -0
  27. package/dist/cjs/index.cjs.js +5 -4
  28. package/dist/cjs/index.cjs.js.map +1 -1
  29. package/dist/cjs/utils.cjs.js +5 -4
  30. package/dist/cjs/utils.cjs.js.map +1 -1
  31. package/dist/editor-stats.html +1 -1
  32. package/dist/index.js +5 -4
  33. package/dist/index.js.map +1 -1
  34. package/dist/utils.js +5 -4
  35. package/dist/utils.js.map +1 -1
  36. package/package.json +1 -1
  37. package/dist/chunk-BeW6s4Si.js.map +0 -1
  38. package/dist/chunk-CGoAVMwz.js.map +0 -1
  39. package/dist/chunk-GwDLPLDQ.js.map +0 -1
  40. package/dist/cjs/chunk-3eBSLfI7.cjs.js.map +0 -1
  41. package/dist/cjs/chunk-B0S9scli.cjs.js.map +0 -1
  42. package/dist/cjs/chunk-CjXcHxqY.cjs.js.map +0 -1
package/dist/Editor.js CHANGED
@@ -14,9 +14,6 @@ import { is, intersection, difference, union, mergeRight, isEmpty as isEmpty$1,
14
14
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
15
15
  import { n } from './chunk-DmrvuTKK.js';
16
16
  import { P as Plugin, o as PluginKey, b as Slice, F as Fragment$1, T as TextSelection, S as Selection, d as dropPoint, N as NodeSelection, s as Mapping$1, M as Mark$1, e as MarkType, R as ReplaceError, u as SelectionRange, L as LINK_VALIDATION_SCHEMA, v as validateAndFormatUrl, w as getEditorStyles, x as clipboardTextParser, y as transformPastedHTML, z as setInitialPosition, q as DEFAULT_EDITOR_OPTIONS } from './chunk-UtuZMtPZ.js';
17
- import 'react-dom/server';
18
- import { l as lowlight } from './chunk-BeW6s4Si.js';
19
- import { M as MARGIN_HEIGHT, r as removeEmptyTags } from './chunk-GwDLPLDQ.js';
20
17
  import * as Y from 'yjs';
21
18
  import { UndoManager, Item as Item$1, ContentType, Text as Text$2, XmlElement } from 'yjs';
22
19
  import Down from '@bigbinary/neeto-icons/Down';
@@ -27,6 +24,7 @@ import Input from '@bigbinary/neetoui/Input';
27
24
  import Button from '@bigbinary/neetoui/Button';
28
25
  import { useTranslation } from 'react-i18next';
29
26
  import { t } from 'i18next';
27
+ import { l as lowlight } from './chunk-DBch3tqq.js';
30
28
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
31
29
  import _regeneratorRuntime from '@babel/runtime/regenerator';
32
30
  import { flushSync, createPortal } from 'react-dom';
@@ -46,6 +44,7 @@ import Close from '@bigbinary/neeto-icons/Close';
46
44
  import Modal from '@bigbinary/neetoui/Modal';
47
45
  import Avatar from '@bigbinary/neetoui/Avatar';
48
46
  import Typography from '@bigbinary/neetoui/Typography';
47
+ import { M as MARGIN_HEIGHT } from './chunk-LjMXcuRe.js';
49
48
  import Tippy from '@tippyjs/react';
50
49
  import Paragraph$1 from '@bigbinary/neeto-icons/Paragraph';
51
50
  import TextH1 from '@bigbinary/neeto-icons/TextH1';
@@ -19694,13 +19693,6 @@ var Editor = function Editor(_ref, ref) {
19694
19693
  var editor = _ref2.editor;
19695
19694
  return onChange(editor.getHTML());
19696
19695
  }, 100);
19697
- var handleBlur = function handleBlur(props) {
19698
- var editor = props.editor;
19699
- var trimmedContent = removeEmptyTags(editor.getHTML());
19700
- onChange(trimmedContent);
19701
- editor.commands.setContent(trimmedContent);
19702
- onBlur(props);
19703
- };
19704
19696
  var customExtensions = useCustomExtensions({
19705
19697
  placeholder: placeholder,
19706
19698
  extensions: extensions,
@@ -19766,7 +19758,7 @@ var Editor = function Editor(_ref, ref) {
19766
19758
  },
19767
19759
  onUpdate: debouncedOnChangeHandler,
19768
19760
  onFocus: onFocus,
19769
- onBlur: handleBlur
19761
+ onBlur: onBlur
19770
19762
  });
19771
19763
  useEditorState({
19772
19764
  editor: editor,