@bigbinary/neeto-editor 1.47.68 → 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 +17 -8
- package/dist/Editor.js.map +1 -1
- package/dist/FormikEditor.js +2 -2
- package/dist/Menu.js +2 -2
- package/dist/{chunk-BIK97q64.js → chunk-Bb0y1lai.js} +53 -33
- package/dist/chunk-Bb0y1lai.js.map +1 -0
- package/dist/cjs/Editor.cjs.js +17 -8
- 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-BFpvPDMY.cjs.js → chunk-BwbMuztF.cjs.js} +53 -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 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-BIK97q64.js.map +0 -1
- package/dist/cjs/chunk-BFpvPDMY.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';
|
|
@@ -22248,7 +22248,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
22248
22248
|
error: error,
|
|
22249
22249
|
className: errorWrapperClassName,
|
|
22250
22250
|
children: /*#__PURE__*/jsxs(Fragment, {
|
|
22251
|
-
children: [/*#__PURE__*/jsx(Menu$4, {
|
|
22251
|
+
children: [menuType !== "none" && /*#__PURE__*/jsx(Menu$4, {
|
|
22252
22252
|
addonCommands: addonCommands,
|
|
22253
22253
|
addons: addons,
|
|
22254
22254
|
attachmentProps: attachmentProps,
|
|
@@ -22264,11 +22264,20 @@ var Editor = function Editor(_ref, ref) {
|
|
|
22264
22264
|
className: menuClassName,
|
|
22265
22265
|
isIndependant: isMenuIndependent,
|
|
22266
22266
|
setIsNeetoKbArticleActive: setNeetoKbArticleState
|
|
22267
|
-
}), children, /*#__PURE__*/
|
|
22268
|
-
|
|
22269
|
-
|
|
22270
|
-
|
|
22271
|
-
|
|
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, {
|
|
22272
22281
|
editor: editor,
|
|
22273
22282
|
mediaUploader: mediaUploader,
|
|
22274
22283
|
onClose: function onClose() {
|