@bigbinary/neeto-editor 1.47.67 → 1.47.69
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 +19 -9
- package/dist/Editor.js.map +1 -1
- package/dist/FormikEditor.js +2 -2
- package/dist/Menu.js +2 -2
- package/dist/{chunk-BYP78yHy.js → chunk-Bb0y1lai.js} +54 -33
- package/dist/chunk-Bb0y1lai.js.map +1 -0
- package/dist/cjs/Editor.cjs.js +19 -9
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/FormikEditor.cjs.js +2 -2
- package/dist/cjs/Menu.cjs.js +2 -2
- package/dist/cjs/{chunk-TLlmBkfB.cjs.js → chunk-BwbMuztF.cjs.js} +54 -32
- package/dist/cjs/chunk-BwbMuztF.cjs.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/editor-stats.html +1 -19
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-BYP78yHy.js.map +0 -1
- package/dist/cjs/chunk-TLlmBkfB.cjs.js.map +0 -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, useState, useEffect, 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, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, e as callOrReturn, f as getExtensionField, i as isNodeSelection, n as nodeInputRule, h as getNodeType, j as getNodeAtPosition, l as isNodeActive, o as isAtStartOfNode, p as isAtEndOfNode, C as CALLOUT_TYPES, q as NodeViewWrapper, r as NodeViewContent, R as ReactNodeViewRenderer, s as findChildren, u as escapeForRegEx, v as ReactRenderer, x as EmojiPickerMenu, y as emojiPickerApi, z as combineTransactionSteps, A as getChangedRanges, B as findChildrenInRange, F as getMarksBetween, G as getAttributes, I as InputRule, H as highlightFocussedNode, J as resetFocussedNode, K as findParentNodeClosestToPos, P as PasteRule, L as BubbleMenu, O as getLinkPopoverPosition, Q as getMarkType, S as getMarkRange, T as useEditor, U as useEditorState, M as Menu$4, V as
|
|
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, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, e as callOrReturn, f as getExtensionField, i as isNodeSelection, n as nodeInputRule, h as getNodeType, j as getNodeAtPosition, l as isNodeActive, o as isAtStartOfNode, p as isAtEndOfNode, C as CALLOUT_TYPES, q as NodeViewWrapper, r as NodeViewContent, R as ReactNodeViewRenderer, s as findChildren, u as escapeForRegEx, v as ReactRenderer, x as EmojiPickerMenu, y as emojiPickerApi, z as combineTransactionSteps, A as getChangedRanges, B as findChildrenInRange, F as getMarksBetween, G as getAttributes, I as InputRule, H as highlightFocussedNode, J as resetFocussedNode, K as findParentNodeClosestToPos, P as PasteRule, L as BubbleMenu, O as getLinkPopoverPosition, Q as getMarkType, S as getMarkRange, T as useEditor, U as useEditorState, M as Menu$4, V as MenuDynamicVariables, W as EditorContent, X as MediaUploader, Y as LinkAddPopOver, Z as EditorView } from './chunk-Bb0y1lai.js';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import { D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, C as COMBINED_REGEX, a as EDITOR_SIZES } from './chunk-faiBDOaS.js';
|
|
10
10
|
import { isNotPresent, findBy, isNotEmpty, isPresent, noop as noop$1, slugify } from '@bigbinary/neeto-cist';
|
|
@@ -106,7 +106,6 @@ import '@bigbinary/neeto-icons/Email';
|
|
|
106
106
|
import '@bigbinary/neeto-icons/Customize';
|
|
107
107
|
import '@bigbinary/neeto-icons/Refresh';
|
|
108
108
|
import 'react-colorful';
|
|
109
|
-
import '@bigbinary/neeto-molecules/DynamicVariables';
|
|
110
109
|
import '@bigbinary/neeto-image-uploader-frontend';
|
|
111
110
|
import '@bigbinary/neetoui/Tab';
|
|
112
111
|
import '@bigbinary/neetoui/formik/ActionBlock';
|
|
@@ -117,6 +116,7 @@ import '@bigbinary/neeto-icons/misc/Info';
|
|
|
117
116
|
import '@bigbinary/neeto-icons/misc/Warning';
|
|
118
117
|
import '@bigbinary/neeto-icons/misc/Danger';
|
|
119
118
|
import '@bigbinary/neeto-icons/misc/Success';
|
|
119
|
+
import '@bigbinary/neeto-molecules/DynamicVariables';
|
|
120
120
|
import './chunk-E-ZsRS8r.js';
|
|
121
121
|
import 'yup';
|
|
122
122
|
import '@bigbinary/neeto-icons/Delete';
|
|
@@ -6329,7 +6329,8 @@ var CalloutComponent = function CalloutComponent(_ref) {
|
|
|
6329
6329
|
className: "callout-emoji",
|
|
6330
6330
|
children: /*#__PURE__*/jsx(Icon, {})
|
|
6331
6331
|
}), /*#__PURE__*/jsx(NodeViewContent, {
|
|
6332
|
-
className: "callout-content"
|
|
6332
|
+
className: "callout-content",
|
|
6333
|
+
"data-cy": "callout-content"
|
|
6333
6334
|
})]
|
|
6334
6335
|
})
|
|
6335
6336
|
});
|
|
@@ -22247,7 +22248,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
22247
22248
|
error: error,
|
|
22248
22249
|
className: errorWrapperClassName,
|
|
22249
22250
|
children: /*#__PURE__*/jsxs(Fragment, {
|
|
22250
|
-
children: [/*#__PURE__*/jsx(Menu$4, {
|
|
22251
|
+
children: [menuType !== "none" && /*#__PURE__*/jsx(Menu$4, {
|
|
22251
22252
|
addonCommands: addonCommands,
|
|
22252
22253
|
addons: addons,
|
|
22253
22254
|
attachmentProps: attachmentProps,
|
|
@@ -22263,11 +22264,20 @@ var Editor = function Editor(_ref, ref) {
|
|
|
22263
22264
|
className: menuClassName,
|
|
22264
22265
|
isIndependant: isMenuIndependent,
|
|
22265
22266
|
setIsNeetoKbArticleActive: setNeetoKbArticleState
|
|
22266
|
-
}), children, /*#__PURE__*/
|
|
22267
|
-
|
|
22268
|
-
|
|
22269
|
-
|
|
22270
|
-
|
|
22267
|
+
}), children, /*#__PURE__*/jsxs("div", {
|
|
22268
|
+
style: {
|
|
22269
|
+
position: "relative"
|
|
22270
|
+
},
|
|
22271
|
+
children: [menuType === "none" && /*#__PURE__*/jsx(MenuDynamicVariables, {
|
|
22272
|
+
editor: editor,
|
|
22273
|
+
variables: variables,
|
|
22274
|
+
standalone: true
|
|
22275
|
+
}), /*#__PURE__*/jsx(EditorContent, _objectSpread({
|
|
22276
|
+
className: contentWrapperClassName
|
|
22277
|
+
}, _objectSpread({
|
|
22278
|
+
editor: editor
|
|
22279
|
+
}, otherProps)))]
|
|
22280
|
+
}), isMediaUploaderActive && /*#__PURE__*/jsx(MediaUploader, {
|
|
22271
22281
|
editor: editor,
|
|
22272
22282
|
mediaUploader: mediaUploader,
|
|
22273
22283
|
onClose: function onClose() {
|