@bigbinary/neeto-editor 1.47.2 → 1.47.4
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 +4 -4
- package/dist/Editor.js.map +1 -1
- package/dist/FormikEditor.js +1 -1
- package/dist/Menu.js +1 -1
- package/dist/{chunk-BQ6gyl4W.js → chunk-DYvDfuW9.js} +2 -2
- package/dist/{chunk-BQ6gyl4W.js.map → chunk-DYvDfuW9.js.map} +1 -1
- package/dist/cjs/Editor.cjs.js +4 -4
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/FormikEditor.cjs.js +1 -1
- package/dist/cjs/Menu.cjs.js +1 -1
- package/dist/cjs/{chunk-BxEO1Xq_.cjs.js → chunk-D2xODr-O.cjs.js} +2 -2
- package/dist/cjs/{chunk-BxEO1Xq_.cjs.js.map → chunk-D2xODr-O.cjs.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/editor-stats.html +1 -19
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +1 -1
package/dist/Editor.js
CHANGED
|
@@ -4,7 +4,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { memo, useEffect, useState, useRef, useCallback, createElement, forwardRef, useImperativeHandle } from 'react';
|
|
7
|
-
import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, D as DecorationSet, d as Decoration, g as getMarkAttributes, N as Node, i as isNodeActive, e as isAtStartOfNode, f as isAtEndOfNode, h as getNodeType, j as getNodeAtPosition, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, l as callOrReturn, n as getExtensionField, o as isNodeSelection, p as nodeInputRule, q as findChildren, r as NodeViewWrapper, s as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, u as escapeForRegEx, x as ReactRenderer, y as EmojiPickerMenu, z as emojiPickerApi, A as combineTransactionSteps, B as getChangedRanges, C as findChildrenInRange, F as getMarksBetween, G as getAttributes, I as InputRule, H as highlightFocussedNode, J as resetFocussedNode, K as findParentNodeClosestToPos, L as BubbleMenu, O as getLinkPopoverPosition, Q as getMarkType, S as getMarkRange, T as useEditor, U as useEditorState, M as Menu$3, V as EditorContent, W as MediaUploader, X as EmbedOption, Y as EditorView } from './chunk-
|
|
7
|
+
import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, D as DecorationSet, d as Decoration, g as getMarkAttributes, N as Node, i as isNodeActive, e as isAtStartOfNode, f as isAtEndOfNode, h as getNodeType, j as getNodeAtPosition, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, l as callOrReturn, n as getExtensionField, o as isNodeSelection, p as nodeInputRule, q as findChildren, r as NodeViewWrapper, s as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, u as escapeForRegEx, x as ReactRenderer, y as EmojiPickerMenu, z as emojiPickerApi, A as combineTransactionSteps, B as getChangedRanges, C as findChildrenInRange, F as getMarksBetween, G as getAttributes, I as InputRule, H as highlightFocussedNode, J as resetFocussedNode, K as findParentNodeClosestToPos, L as BubbleMenu, O as getLinkPopoverPosition, Q as getMarkType, S as getMarkRange, T as useEditor, U as useEditorState, M as Menu$3, V as EditorContent, W as MediaUploader, X as EmbedOption, Y as EditorView } from './chunk-DYvDfuW9.js';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import { C as COMBINED_REGEX, D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, a as EDITOR_SIZES } from './chunk-FWwP48qR.js';
|
|
10
10
|
import { isNotPresent, isNotEmpty, isPresent, noop as noop$1, slugify } from '@bigbinary/neeto-cist';
|
|
@@ -13831,7 +13831,7 @@ var Menu = /*#__PURE__*/function (_React$Component) {
|
|
|
13831
13831
|
var nodeElement = /*#__PURE__*/createElement(MenuItem, {
|
|
13832
13832
|
index: index,
|
|
13833
13833
|
item: item,
|
|
13834
|
-
key: item.
|
|
13834
|
+
key: item.optionName,
|
|
13835
13835
|
selectItem: function selectItem() {
|
|
13836
13836
|
return isLeafNode && _this2.selectItem(index);
|
|
13837
13837
|
},
|
|
@@ -13862,7 +13862,7 @@ var Menu = /*#__PURE__*/function (_React$Component) {
|
|
|
13862
13862
|
_this2.isSubmenuOpened = true;
|
|
13863
13863
|
},
|
|
13864
13864
|
children: nodeElement
|
|
13865
|
-
}, item.
|
|
13865
|
+
}, item.optionName);
|
|
13866
13866
|
})
|
|
13867
13867
|
});
|
|
13868
13868
|
}
|
|
@@ -13876,8 +13876,8 @@ var MenuItem = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
13876
13876
|
onHover = _ref2.onHover;
|
|
13877
13877
|
var Icon = item.Icon;
|
|
13878
13878
|
return /*#__PURE__*/jsxs("div", {
|
|
13879
|
-
"data-cy": "neeto-editor-command-list-item-".concat(index),
|
|
13880
13879
|
ref: ref,
|
|
13880
|
+
"data-cy": "neeto-editor-command-list-item-".concat(index),
|
|
13881
13881
|
className: classnames("neeto-editor-slash-commands__item", {
|
|
13882
13882
|
active: index === selectedIndex
|
|
13883
13883
|
}),
|