@bigbinary/neeto-editor-frontend 2.3.1 → 2.3.3
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/.ready +1 -1
- package/dist/Editor.js +7 -13
- package/dist/Editor.js.map +1 -1
- package/dist/EditorContent.js +4 -4
- package/dist/FormikEditor.js +7 -7
- package/dist/Menu.js +5 -5
- package/dist/{chunk-Bqh1Tsc6.js → chunk-8Y1qxQKJ.js} +4 -4
- package/dist/{chunk-Bqh1Tsc6.js.map → chunk-8Y1qxQKJ.js.map} +1 -1
- package/dist/{chunk-DPx9v04U.js → chunk-B3vcuuGc.js} +3 -3
- package/dist/{chunk-DPx9v04U.js.map → chunk-B3vcuuGc.js.map} +1 -1
- package/dist/{chunk-DcxOAiAp.js → chunk-BEu5qvTE.js} +2 -2
- package/dist/{chunk-DcxOAiAp.js.map → chunk-BEu5qvTE.js.map} +1 -1
- package/dist/{chunk-BE7om7ts.js → chunk-CO5ISBiA.js} +5 -5
- package/dist/{chunk-BE7om7ts.js.map → chunk-CO5ISBiA.js.map} +1 -1
- package/dist/{chunk-LtUevT4I.js → chunk-D-UBA5Ku.js} +2 -2
- package/dist/{chunk-LtUevT4I.js.map → chunk-D-UBA5Ku.js.map} +1 -1
- package/dist/{chunk-C9H9LYpP.js → chunk-D1r5E1QP.js} +2 -2
- package/dist/{chunk-C9H9LYpP.js.map → chunk-D1r5E1QP.js.map} +1 -1
- package/dist/{chunk-CMfrTj8Z.js → chunk-D4YRISfA.js} +3 -3
- package/dist/{chunk-CMfrTj8Z.js.map → chunk-D4YRISfA.js.map} +1 -1
- package/dist/{chunk-B5LsYrmv.js → chunk-D7WJxGfx.js} +6300 -6300
- package/dist/{chunk-B5LsYrmv.js.map → chunk-D7WJxGfx.js.map} +1 -1
- package/dist/{chunk-DqSrbxqC.js → chunk-DNTLyDg4.js} +2 -2
- package/dist/{chunk-DqSrbxqC.js.map → chunk-DNTLyDg4.js.map} +1 -1
- package/dist/{chunk-Bskj5cbo.js → chunk-DOpcw6oQ.js} +3 -3
- package/dist/{chunk-Bskj5cbo.js.map → chunk-DOpcw6oQ.js.map} +1 -1
- package/dist/{chunk-PFB_80PR.js → chunk-Das-Irbp.js} +4 -4
- package/dist/{chunk-PFB_80PR.js.map → chunk-Das-Irbp.js.map} +1 -1
- package/dist/cjs/Editor.cjs.js +3 -9
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/FormikEditor.cjs.js +3 -3
- package/dist/cjs/Menu.cjs.js +2 -2
- package/dist/cjs/{chunk-CVJLunrU.cjs.js → chunk-BXtUbe44.cjs.js} +2 -2
- package/dist/cjs/{chunk-CVJLunrU.cjs.js.map → chunk-BXtUbe44.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-DOiH1lXw.cjs.js → chunk-Bw2Qm2Gs.cjs.js} +2 -2
- package/dist/cjs/{chunk-DOiH1lXw.cjs.js.map → chunk-Bw2Qm2Gs.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-DoDh8RsI.cjs.js → chunk-CgH53wyh.cjs.js} +2 -2
- package/dist/cjs/{chunk-DoDh8RsI.cjs.js.map → chunk-CgH53wyh.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-CxKWZyHq.cjs.js → chunk-Co9YfTVh.cjs.js} +6297 -6298
- package/dist/cjs/chunk-Co9YfTVh.cjs.js.map +1 -0
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/v2/Editor.cjs.js +7 -8
- package/dist/cjs/v2/Editor.cjs.js.map +1 -1
- package/dist/cjs/v2/FormikEditor.cjs.js +3 -3
- package/dist/cjs/v2/Menu.cjs.js +2 -2
- package/dist/cjs/v2/index.cjs.js +3 -3
- package/dist/editor-stats.html +19 -1
- package/dist/index.js +9 -9
- package/dist/utils.js +6 -6
- package/dist/v2/Editor.js +10 -11
- package/dist/v2/Editor.js.map +1 -1
- package/dist/v2/EditorContent.js +4 -4
- package/dist/v2/FormikEditor.js +6 -6
- package/dist/v2/Menu.js +4 -4
- package/dist/v2/index.js +8 -8
- package/dist/v2/utils.js +6 -6
- package/package.json +9 -9
- package/dist/cjs/chunk-CxKWZyHq.cjs.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export { E as EDITOR_OPTIONS } from './chunk-71BzByG6.js';
|
|
2
2
|
export { D as DEFAULT_EDITOR_OPTIONS } from './chunk-Dwn1Kihg.js';
|
|
3
|
-
export { i as isEditorOverlaysActive, a as isEmojiSuggestionsMenuActive, t as transformEditorContent } from './chunk-
|
|
4
|
-
export { s as substituteVariables } from './chunk-
|
|
5
|
-
export { i as isEditorContentWithinLimit, a as isEditorEmpty, r as removeEmptyTags } from './chunk-
|
|
3
|
+
export { i as isEditorOverlaysActive, a as isEmojiSuggestionsMenuActive, t as transformEditorContent } from './chunk-D4YRISfA.js';
|
|
4
|
+
export { s as substituteVariables } from './chunk-B3vcuuGc.js';
|
|
5
|
+
export { i as isEditorContentWithinLimit, a as isEditorEmpty, r as removeEmptyTags } from './chunk-D-UBA5Ku.js';
|
|
6
6
|
export { A as Attachments } from './chunk-BEopbFak.js';
|
|
7
7
|
export { default as Editor } from './Editor.js';
|
|
8
8
|
export { default as FormikEditor } from './FormikEditor.js';
|
|
9
|
-
export { M as Menu } from './chunk-
|
|
9
|
+
export { M as Menu } from './chunk-DOpcw6oQ.js';
|
|
10
10
|
export { default as EditorContent } from './EditorContent.js';
|
|
11
11
|
import { n } from './chunk-C2dztUxs.js';
|
|
12
12
|
import 'ramda';
|
|
13
13
|
import 'i18next';
|
|
14
14
|
import 'yup';
|
|
15
15
|
import '@babel/runtime/helpers/defineProperty';
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
16
|
+
import './chunk-D1r5E1QP.js';
|
|
17
|
+
import './chunk-DNTLyDg4.js';
|
|
18
18
|
import '@bigbinary/neeto-cist';
|
|
19
19
|
import 'react';
|
|
20
|
-
import './chunk-
|
|
20
|
+
import './chunk-BEu5qvTE.js';
|
|
21
21
|
import './chunk-BFTU3MAI.js';
|
|
22
22
|
import 'react-dom/server';
|
|
23
23
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -61,10 +61,10 @@ import '@bigbinary/neetoui/Spinner';
|
|
|
61
61
|
import '@bigbinary/neetoui/Tooltip';
|
|
62
62
|
import '@bigbinary/neetoui/Typography';
|
|
63
63
|
import '@bigbinary/neetoui/Alert';
|
|
64
|
-
import './chunk-
|
|
64
|
+
import './chunk-D7WJxGfx.js';
|
|
65
65
|
import 'react-dom';
|
|
66
66
|
import '@bigbinary/neetoui/Label';
|
|
67
|
-
import './chunk-
|
|
67
|
+
import './chunk-CO5ISBiA.js';
|
|
68
68
|
import '@tanstack/react-query';
|
|
69
69
|
import 'yjs';
|
|
70
70
|
import '@bigbinary/neeto-icons/misc/Megaphone';
|
package/dist/utils.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { i as isEditorOverlaysActive, a as isEmojiSuggestionsMenuActive, t as transformEditorContent } from './chunk-
|
|
2
|
-
export { s as substituteVariables } from './chunk-
|
|
3
|
-
export { i as isEditorContentWithinLimit, a as isEditorEmpty, r as removeEmptyTags } from './chunk-
|
|
1
|
+
export { i as isEditorOverlaysActive, a as isEmojiSuggestionsMenuActive, t as transformEditorContent } from './chunk-D4YRISfA.js';
|
|
2
|
+
export { s as substituteVariables } from './chunk-B3vcuuGc.js';
|
|
3
|
+
export { i as isEditorContentWithinLimit, a as isEditorEmpty, r as removeEmptyTags } from './chunk-D-UBA5Ku.js';
|
|
4
4
|
import '@babel/runtime/helpers/defineProperty';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-D1r5E1QP.js';
|
|
6
6
|
import 'ramda';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-DNTLyDg4.js';
|
|
8
8
|
import '@bigbinary/neeto-cist';
|
|
9
9
|
import './chunk-71BzByG6.js';
|
|
10
10
|
import './chunk-Dwn1Kihg.js';
|
|
11
11
|
import 'i18next';
|
|
12
12
|
import 'yup';
|
|
13
13
|
import 'react';
|
|
14
|
-
import './chunk-
|
|
14
|
+
import './chunk-BEu5qvTE.js';
|
|
15
15
|
import './chunk-BFTU3MAI.js';
|
|
16
16
|
import 'react-dom/server';
|
|
17
17
|
import '@babel/runtime/helpers/toConsumableArray';
|
package/dist/v2/Editor.js
CHANGED
|
@@ -3,23 +3,23 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
3
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
5
|
import React__default, { memo, useState, Suspense, lazy, useRef, useCallback, useEffect, createElement, forwardRef, useImperativeHandle } from 'react';
|
|
6
|
-
import { a as useEditorState, N as NodeViewWrapper, c as Node, R as ReactNodeViewRenderer, E as Extension, b as NodeViewContent, m as mergeAttributes, D as DecorationSet, d as Decoration, f as ReactRenderer, e as emojiPickerApi, h as markInputRule, I as InputRule, r as resetFocussedNode, i as highlightFocussedNode,
|
|
6
|
+
import { a as useEditorState, N as NodeViewWrapper, c as Node, R as ReactNodeViewRenderer, E as Extension, b as NodeViewContent, m as mergeAttributes, D as DecorationSet, d as Decoration, f as ReactRenderer, e as emojiPickerApi, h as markInputRule, I as InputRule, r as resetFocussedNode, i as highlightFocussedNode, ao as isInTable, ap as selectedRect, aq as findTable, ar as TableMap, as as addRow, P as PasteRule, B as BubbleMenu, j as getMarkType, k as getMarkRange, l as useEditor, n as EditorContent } from '../chunk-D7WJxGfx.js';
|
|
7
7
|
import classnames from 'classnames';
|
|
8
8
|
import { Spinner, Tooltip, Button, Toastr, DropdownMenu, Input, Avatar, Typography, Select, Dialog, Checkbox as Checkbox$1, Label } from '@bigbinary/neeto-atoms';
|
|
9
9
|
import { isNotPresent, isPresent, noop, findBy, isNotEmpty, slugify } from '@bigbinary/neeto-cist';
|
|
10
10
|
import { useOnClickOutside, withT, useFuncDebounce } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
11
11
|
import { createPortal } from 'react-dom';
|
|
12
|
-
import { B as BulletList$1, s as src_default, a as src_default$1, R as Resizable, b as src_default$2, L as Link$1, c as scrollHandler, d as src_default$3, O as OrderedList$1, e as src_default$4, f as fuzzySearch, T as Table$2, g as TaskList, h as TaskItem, i as getVariableDisplay, j as getVideoDimension, C as CharacterCount, k as src_default$5, l as src_default$6, m as safeSplitBlock, n as safeListKeymap, o as TextStyle, p as src_default$7, F as Focus, q as src_default$8, r as TableRow, t as TableHeader, u as TableCell, v as Color, w as ListItem, x as src_default$9, y as src_default$a, z as useFetchKbArticles, K as useEditorWarnings, N as useDeletedArticles } from '../chunk-
|
|
12
|
+
import { B as BulletList$1, s as src_default, a as src_default$1, R as Resizable, b as src_default$2, L as Link$1, c as scrollHandler, d as src_default$3, O as OrderedList$1, e as src_default$4, f as fuzzySearch, T as Table$2, g as TaskList, h as TaskItem, i as getVariableDisplay, j as getVideoDimension, C as CharacterCount, k as src_default$5, l as src_default$6, m as safeSplitBlock, n as safeListKeymap, o as TextStyle, p as src_default$7, F as Focus, q as src_default$8, r as TableRow, t as TableHeader, u as TableCell, v as Color, w as ListItem, x as src_default$9, y as src_default$a, z as useFetchKbArticles, K as useEditorWarnings, N as useDeletedArticles } from '../chunk-CO5ISBiA.js';
|
|
13
13
|
import { D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, C as COMBINED_REGEX, a as EDITOR_SIZES } from '../chunk-71BzByG6.js';
|
|
14
|
-
import { S as Slice, F as Fragment$1 } from '../chunk-
|
|
14
|
+
import { S as Slice, F as Fragment$1 } from '../chunk-D1r5E1QP.js';
|
|
15
15
|
import '../chunk-Dwn1Kihg.js';
|
|
16
16
|
import { is, isEmpty, intersection, difference, union, isNil, mergeRight, assoc, equals } from 'ramda';
|
|
17
17
|
import ReactDOM from 'react-dom/server';
|
|
18
|
-
import { l as lowlight, d as decodeHtmlEntities, r as removeEmptyTags } from '../chunk-
|
|
18
|
+
import { l as lowlight, d as decodeHtmlEntities, r as removeEmptyTags } from '../chunk-D-UBA5Ku.js';
|
|
19
19
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
20
|
-
import { C as CALLOUT_TYPES, E as EmojiPickerMenu, g as getSuggestionAppendTo, v as validateUrl, b as buildLevelsFromOptions, c as getLinkPopoverPosition, L as LINK_VALIDATION_SCHEMA, d as validateAndFormatUrl, D as DEFAULT_EDITOR_OPTIONS, e as getEditorStyles, M as Menu$3, f as MenuDynamicVariables, h as MediaUploader, j as LinkAddPopOver, k as transformPastedHTML, l as handlePaste, m as clipboardTextParser, s as setInitialPosition } from '../chunk-
|
|
20
|
+
import { C as CALLOUT_TYPES, E as EmojiPickerMenu, g as getSuggestionAppendTo, v as validateUrl, b as buildLevelsFromOptions, c as getLinkPopoverPosition, L as LINK_VALIDATION_SCHEMA, d as validateAndFormatUrl, D as DEFAULT_EDITOR_OPTIONS, e as getEditorStyles, M as Menu$3, f as MenuDynamicVariables, h as MediaUploader, j as LinkAddPopOver, k as transformPastedHTML, l as handlePaste, m as clipboardTextParser, s as setInitialPosition } from '../chunk-Das-Irbp.js';
|
|
21
21
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
22
|
-
import { P as Plugin, g as PluginKey, S as Selection, T as TextSelection } from '../chunk-
|
|
22
|
+
import { P as Plugin, g as PluginKey, S as Selection, T as TextSelection } from '../chunk-DNTLyDg4.js';
|
|
23
23
|
import { t } from 'i18next';
|
|
24
24
|
import { D as DirectUpload, g as getRandomString } from '../chunk-Verd5n0p.js';
|
|
25
25
|
import { c as checkPreviewAvailability, d as downloadFile, b as buildFileUploadConfig, A as Attachments } from '../chunk-BlvmXrHo.js';
|
|
@@ -612,7 +612,10 @@ var AttachmentExtension = Node.create({
|
|
|
612
612
|
return {
|
|
613
613
|
uploadAttachments: function uploadAttachments(files, position) {
|
|
614
614
|
return function (_ref4) {
|
|
615
|
-
var editor = _ref4.editor
|
|
615
|
+
var editor = _ref4.editor,
|
|
616
|
+
tr = _ref4.tr;
|
|
617
|
+
// uploadFiles dispatches its own transaction, so this command's tr is stale.
|
|
618
|
+
tr.setMeta("preventDispatch", true);
|
|
616
619
|
_this.storage.uploadFiles(editor, Array.from(files), position);
|
|
617
620
|
return true;
|
|
618
621
|
};
|
|
@@ -6854,10 +6857,6 @@ var Editor = function Editor(_ref, ref) {
|
|
|
6854
6857
|
editor === null || editor === void 0 || editor.commands.uploadAttachments(event.target.files);
|
|
6855
6858
|
event.target.value = null;
|
|
6856
6859
|
};
|
|
6857
|
-
EditorView.prototype.updateState = function updateState(state) {
|
|
6858
|
-
if (!this.docView) return;
|
|
6859
|
-
this.updateStateInner(state, this.state.plugins !== state.plugins);
|
|
6860
|
-
};
|
|
6861
6860
|
return /*#__PURE__*/jsxs("div", {
|
|
6862
6861
|
"data-testid": "neeto-editor-wrapper",
|
|
6863
6862
|
ref: wrapperRef,
|