@bigbinary/neeto-editor 1.39.4 → 1.39.5
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/Attachments.js +1 -1
- package/dist/Editor.js +11 -8
- package/dist/Editor.js.map +1 -1
- package/dist/FormikEditor.js +6 -5
- package/dist/FormikEditor.js.map +1 -1
- package/dist/{chunk-8b1f773d.js → chunk-6693eb0a.js} +2 -2
- package/dist/{chunk-8b1f773d.js.map → chunk-6693eb0a.js.map} +1 -1
- package/dist/{chunk-b66ef3a3.js → chunk-e038b63a.js} +5 -4
- package/dist/chunk-e038b63a.js.map +1 -0
- package/dist/cjs/Attachments.cjs.js +1 -1
- package/dist/cjs/Editor.cjs.js +10 -7
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/FormikEditor.cjs.js +5 -4
- package/dist/cjs/FormikEditor.cjs.js.map +1 -1
- package/dist/cjs/{chunk-eb6c9e4e.cjs.js → chunk-79b8b8a3.cjs.js} +2 -2
- package/dist/cjs/{chunk-eb6c9e4e.cjs.js.map → chunk-79b8b8a3.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-b5a7673a.cjs.js → chunk-cc6d7c58.cjs.js} +4 -3
- package/dist/cjs/chunk-cc6d7c58.cjs.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-b66ef3a3.js.map +0 -1
- package/dist/cjs/chunk-b5a7673a.cjs.js.map +0 -1
package/dist/Attachments.js
CHANGED
|
@@ -10,7 +10,7 @@ import '@bigbinary/neetoui';
|
|
|
10
10
|
import 'ramda';
|
|
11
11
|
import 'react-i18next';
|
|
12
12
|
import './chunk-32e353fe.js';
|
|
13
|
-
export { A as default } from './chunk-
|
|
13
|
+
export { A as default } from './chunk-e038b63a.js';
|
|
14
14
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
15
15
|
import 'zustand/shallow';
|
|
16
16
|
import 'axios';
|
package/dist/Editor.js
CHANGED
|
@@ -3,7 +3,7 @@ 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 * as React from 'react';
|
|
6
|
-
import React__default, { useEffect, useState, useRef, forwardRef, useCallback, useImperativeHandle } from 'react';
|
|
6
|
+
import React__default, { memo, useEffect, useState, useRef, forwardRef, useCallback, useImperativeHandle } from 'react';
|
|
7
7
|
import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, g as getMarkAttributes, N as Node, D as DecorationSet, d as Decoration, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, e as callOrReturn, f as getExtensionField, n as nodeInputRule, h as findChildren, i as NodeViewWrapper, j as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, l as escapeForRegEx, o as ReactRenderer, p as EmojiPickerMenu, q as emojiPickerApi, r as combineTransactionSteps, s as getChangedRanges, u as findChildrenInRange, x as getMarksBetween, y as getAttributes, I as InputRule, z as highlightFocussedNode, A as resetFocussedNode, B as findParentNodeClosestToPos, C as BubbleMenu, F as getLinkPopoverPosition, G as getMarkType, H as getMarkRange, J as useEditor, M as Menu$3, K as EditorContent, L as MediaUploader, O as EmbedOption, Q as EditorView } from './chunk-1888361f.js';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import { C as COMBINED_REGEX, D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS } from './chunk-edd8b9fe.js';
|
|
@@ -34,7 +34,7 @@ import _extends from '@babel/runtime/helpers/extends';
|
|
|
34
34
|
import { M as MARGIN_HEIGHT } from './chunk-5bc5e361.js';
|
|
35
35
|
import Tippy from '@tippyjs/react';
|
|
36
36
|
import { Form, Input as Input$1 } from '@bigbinary/neetoui/formik';
|
|
37
|
-
import { A as Attachments } from './chunk-
|
|
37
|
+
import { A as Attachments } from './chunk-e038b63a.js';
|
|
38
38
|
import 'tippy.js/dist/svg-arrow.css';
|
|
39
39
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
40
40
|
import 'axios';
|
|
@@ -73,6 +73,7 @@ var ErrorWrapper = function ErrorWrapper(_ref) {
|
|
|
73
73
|
"data-cy": "neeto-editor-error-text"
|
|
74
74
|
}, getErrorMessage()));
|
|
75
75
|
};
|
|
76
|
+
var ErrorWrapper$1 = /*#__PURE__*/memo(ErrorWrapper);
|
|
76
77
|
|
|
77
78
|
var useEditorWarnings = function useEditorWarnings(_ref) {
|
|
78
79
|
var initialValue = _ref.initialValue;
|
|
@@ -98,6 +99,7 @@ var CharacterCountWrapper = function CharacterCountWrapper(_ref) {
|
|
|
98
99
|
"data-cy": "neeto-editor-character-count"
|
|
99
100
|
}, editor.storage.characterCount.characters(), " characters"));
|
|
100
101
|
};
|
|
102
|
+
var CharacterCountWrapper$1 = /*#__PURE__*/memo(CharacterCountWrapper);
|
|
101
103
|
|
|
102
104
|
/**
|
|
103
105
|
* This extension allows you to count the characters and words of your document.
|
|
@@ -14791,13 +14793,10 @@ var Editor = function Editor(_ref, ref) {
|
|
|
14791
14793
|
required: required,
|
|
14792
14794
|
className: "neeto-ui-mb-2",
|
|
14793
14795
|
"data-cy": "".concat(slugify(label), "-editor-label")
|
|
14794
|
-
}, label), /*#__PURE__*/React__default.createElement(ErrorWrapper, {
|
|
14796
|
+
}, label), /*#__PURE__*/React__default.createElement(ErrorWrapper$1, {
|
|
14795
14797
|
error: error,
|
|
14796
14798
|
className: errorWrapperClassName
|
|
14797
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
14798
|
-
editor: editor,
|
|
14799
|
-
isActive: isCharacterCountActive
|
|
14800
|
-
}, /*#__PURE__*/React__default.createElement(Menu$3, {
|
|
14799
|
+
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Menu$3, {
|
|
14801
14800
|
addonCommands: addonCommands,
|
|
14802
14801
|
addons: addons,
|
|
14803
14802
|
attachmentProps: attachmentProps,
|
|
@@ -14841,9 +14840,13 @@ var Editor = function Editor(_ref, ref) {
|
|
|
14841
14840
|
}), /*#__PURE__*/React__default.createElement(TableActionMenu, {
|
|
14842
14841
|
editor: editor,
|
|
14843
14842
|
appendTo: wrapperRef
|
|
14843
|
+
}), /*#__PURE__*/React__default.createElement(CharacterCountWrapper$1, {
|
|
14844
|
+
editor: editor,
|
|
14845
|
+
isActive: isCharacterCountActive
|
|
14844
14846
|
}))));
|
|
14845
14847
|
};
|
|
14846
|
-
|
|
14848
|
+
Editor.displayName = "NeetoEditor";
|
|
14849
|
+
var Editor$1 = /*#__PURE__*/memo( /*#__PURE__*/React__default.forwardRef(Editor));
|
|
14847
14850
|
|
|
14848
14851
|
export { Editor$1 as default };
|
|
14849
14852
|
//# sourceMappingURL=Editor.js.map
|