@bigbinary/neeto-editor 1.47.62 → 1.47.63
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 -17
- package/dist/Editor.js.map +1 -1
- package/dist/cjs/Editor.cjs.js +17 -17
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/editor-stats.html +1 -1
- package/package.json +1 -1
package/dist/cjs/Editor.cjs.js
CHANGED
|
@@ -6,7 +6,7 @@ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
|
6
6
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var Menu$4 = require('./chunk-DNZfIRp3.cjs.js');
|
|
9
|
-
var classnames
|
|
9
|
+
var classnames = require('classnames');
|
|
10
10
|
var constants = require('./chunk-Cd5HlrFr.cjs.js');
|
|
11
11
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
12
12
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
@@ -151,7 +151,7 @@ var ErrorWrapper = function ErrorWrapper(_ref) {
|
|
|
151
151
|
children = _ref.children,
|
|
152
152
|
className = _ref.className;
|
|
153
153
|
var isError = !neetoCist.isNotPresent(error);
|
|
154
|
-
var wrapperClasses = classnames
|
|
154
|
+
var wrapperClasses = classnames(_defineProperty({
|
|
155
155
|
"neeto-editor-error": isError
|
|
156
156
|
}, className, className));
|
|
157
157
|
var getErrorMessage = function getErrorMessage() {
|
|
@@ -10101,7 +10101,7 @@ var EmojiSuggestionMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
10101
10101
|
children: [this.state.isLoading && /*#__PURE__*/jsxRuntime.jsx(Spinner, {}), !this.state.isLoading && (neetoCist.isNotEmpty(this.state.emojiSuggestions) ? this.state.emojiSuggestions.map(function (emoji, index) {
|
|
10102
10102
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
10103
10103
|
"data-cy": "neeto-editor-emoji-suggestion-".concat(emoji.id),
|
|
10104
|
-
className: classnames
|
|
10104
|
+
className: classnames("neeto-editor-emoji-suggestion__item", {
|
|
10105
10105
|
"neeto-editor-emoji-suggestion__item--selected": index === _this2.state.selectedIndex
|
|
10106
10106
|
}),
|
|
10107
10107
|
onClick: function onClick() {
|
|
@@ -11141,7 +11141,7 @@ var ImagePreviewModal = function ImagePreviewModal(_ref) {
|
|
|
11141
11141
|
}), /*#__PURE__*/jsxRuntime.jsx("img", {
|
|
11142
11142
|
alt: "Preview",
|
|
11143
11143
|
src: previewUrl,
|
|
11144
|
-
className: classnames
|
|
11144
|
+
className: classnames({
|
|
11145
11145
|
"display-none": isLoading || ramda.isNil(previewUrl)
|
|
11146
11146
|
}),
|
|
11147
11147
|
onLoad: handleImageLoad
|
|
@@ -11303,7 +11303,7 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
11303
11303
|
if (neetoCist.isNotPresent(src) && neetoCist.isNotPresent(alt)) return null;
|
|
11304
11304
|
return /*#__PURE__*/jsxRuntime.jsxs(Menu$4.NodeViewWrapper, {
|
|
11305
11305
|
"data-cy": "neeto-editor-image-wrapper",
|
|
11306
|
-
className: classnames
|
|
11306
|
+
className: classnames("neeto-editor__image-wrapper", "neeto-editor__image--".concat(align), {
|
|
11307
11307
|
"neeto-editor__image--bordered": border
|
|
11308
11308
|
}),
|
|
11309
11309
|
children: [/*#__PURE__*/jsxRuntime.jsxs("figure", {
|
|
@@ -11341,7 +11341,7 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
11341
11341
|
children: /*#__PURE__*/jsxRuntime.jsx(Spinner, {})
|
|
11342
11342
|
}), /*#__PURE__*/jsxRuntime.jsx(Menu$4.NodeViewContent, {
|
|
11343
11343
|
as: "figcaption",
|
|
11344
|
-
className: classnames
|
|
11344
|
+
className: classnames({
|
|
11345
11345
|
"is-empty": ramda.isEmpty(caption)
|
|
11346
11346
|
}),
|
|
11347
11347
|
style: {
|
|
@@ -14185,7 +14185,7 @@ var MentionList = /*#__PURE__*/function (_React$Component) {
|
|
|
14185
14185
|
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem.Button, {
|
|
14186
14186
|
"data-cy": "neeto-editor-mention-list-".concat(name),
|
|
14187
14187
|
type: "button",
|
|
14188
|
-
className: classnames
|
|
14188
|
+
className: classnames("neeto-editor-mentions__item", {
|
|
14189
14189
|
active: index === selectedIndex
|
|
14190
14190
|
}),
|
|
14191
14191
|
onClick: function onClick() {
|
|
@@ -14670,7 +14670,7 @@ var MenuItem$1 = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
14670
14670
|
return /*#__PURE__*/jsxRuntime.jsxs("button", {
|
|
14671
14671
|
ref: ref,
|
|
14672
14672
|
"data-cy": "neeto-editor-command-list-item-".concat(index),
|
|
14673
|
-
className: classnames
|
|
14673
|
+
className: classnames("neeto-editor-slash-commands__item", {
|
|
14674
14674
|
active: index === selectedIndex
|
|
14675
14675
|
}),
|
|
14676
14676
|
onClick: selectItem,
|
|
@@ -20460,7 +20460,7 @@ var VideoComponent = function VideoComponent(_ref) {
|
|
|
20460
20460
|
};
|
|
20461
20461
|
if (neetoCist.isNotPresent(src)) return null;
|
|
20462
20462
|
return /*#__PURE__*/jsxRuntime.jsx(Menu$4.NodeViewWrapper, {
|
|
20463
|
-
className: classnames
|
|
20463
|
+
className: classnames("neeto-editor__image-wrapper", "neeto-editor__image--".concat(align), {
|
|
20464
20464
|
"neeto-editor__image--bordered": border
|
|
20465
20465
|
}),
|
|
20466
20466
|
children: /*#__PURE__*/jsxRuntime.jsxs("figure", {
|
|
@@ -20493,7 +20493,7 @@ var VideoComponent = function VideoComponent(_ref) {
|
|
|
20493
20493
|
}))
|
|
20494
20494
|
}), /*#__PURE__*/jsxRuntime.jsx(Menu$4.NodeViewContent, {
|
|
20495
20495
|
as: "figcaption",
|
|
20496
|
-
className: classnames
|
|
20496
|
+
className: classnames({
|
|
20497
20497
|
"is-empty": ramda.isEmpty(caption)
|
|
20498
20498
|
}),
|
|
20499
20499
|
style: {
|
|
@@ -20665,11 +20665,11 @@ var renderEmbedHTML = function renderEmbedHTML(node, HTMLAttributes, options) {
|
|
|
20665
20665
|
border = _node$attrs.border,
|
|
20666
20666
|
aspectRatio = _node$attrs.aspectRatio;
|
|
20667
20667
|
return ["div", {
|
|
20668
|
-
"class": classnames
|
|
20668
|
+
"class": classnames("neeto-editor__video-wrapper", "neeto-editor__video--".concat(align), {
|
|
20669
20669
|
"neeto-editor__video--bordered": border
|
|
20670
20670
|
})
|
|
20671
20671
|
}, ["div", {
|
|
20672
|
-
"class": classnames
|
|
20672
|
+
"class": classnames("neeto-editor__video-iframe", {
|
|
20673
20673
|
"neeto-editor-aspect-1-1": aspectRatio === "1/1",
|
|
20674
20674
|
"neeto-editor-aspect-16-9": aspectRatio === "16/9",
|
|
20675
20675
|
"neeto-editor-aspect-9-16": aspectRatio === "9/16",
|
|
@@ -20690,7 +20690,7 @@ var renderUploadHTML = function renderUploadHTML(node, HTMLAttributes, options)
|
|
|
20690
20690
|
vidwidth = _node$attrs2.vidwidth,
|
|
20691
20691
|
border = _node$attrs2.border;
|
|
20692
20692
|
var wrapperDivAttrs = {
|
|
20693
|
-
"class": classnames
|
|
20693
|
+
"class": classnames("neeto-editor__image-wrapper", "neeto-editor__image--".concat(align), {
|
|
20694
20694
|
"neeto-editor__image--bordered": border
|
|
20695
20695
|
})
|
|
20696
20696
|
};
|
|
@@ -21479,7 +21479,7 @@ var KbArticleView = reactUtils.withT(function (_ref) {
|
|
|
21479
21479
|
href: linkAttributes === null || linkAttributes === void 0 ? void 0 : linkAttributes.href,
|
|
21480
21480
|
rel: "noreferrer",
|
|
21481
21481
|
target: "_blank",
|
|
21482
|
-
className: classnames
|
|
21482
|
+
className: classnames("ne-link-popover__kb-article-link", {
|
|
21483
21483
|
"ne-link-popover__kb-article-link--deleted": isDeleted
|
|
21484
21484
|
}),
|
|
21485
21485
|
onClick: function onClick(event) {
|
|
@@ -22063,7 +22063,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
22063
22063
|
useEditorWarnings({
|
|
22064
22064
|
initialValue: initialValue
|
|
22065
22065
|
});
|
|
22066
|
-
var editorClasses = classnames
|
|
22066
|
+
var editorClasses = classnames("neeto-editor", _defineProperty({
|
|
22067
22067
|
"fixed-menu-active": isFixedMenuActive,
|
|
22068
22068
|
"bubble-menu-active": isBubbleMenuActive,
|
|
22069
22069
|
"placeholder-active": isPlaceholderActive,
|
|
@@ -22155,7 +22155,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
22155
22155
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
22156
22156
|
"data-cy": "neeto-editor-wrapper",
|
|
22157
22157
|
ref: wrapperRef,
|
|
22158
|
-
className: classnames
|
|
22158
|
+
className: classnames(_defineProperty(_defineProperty({}, className, className), "ne-attachments__wrapper", isAttachmentsActive)),
|
|
22159
22159
|
children: [label && /*#__PURE__*/jsxRuntime.jsx(Label, {
|
|
22160
22160
|
required: required,
|
|
22161
22161
|
className: "neeto-ui-mb-2",
|
|
@@ -22201,7 +22201,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
22201
22201
|
isIndependent: false,
|
|
22202
22202
|
ref: addAttachmentsRef,
|
|
22203
22203
|
setIsUploading: setIsAttachmentsUploading,
|
|
22204
|
-
className: classnames
|
|
22204
|
+
className: classnames("ne-attachments--integrated", _defineProperty({}, attachmentsClassName, attachmentsClassName)),
|
|
22205
22205
|
onChange: onChangeAttachments
|
|
22206
22206
|
}, otherAttachmentProps)), (editor === null || editor === void 0 ? void 0 : editor.isActive("link")) && /*#__PURE__*/jsxRuntime.jsx(LinkPopOver, {
|
|
22207
22207
|
deletedArticlesHook: deletedArticlesHook,
|