@bigbinary/neeto-editor 1.47.99 → 1.47.101
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 +6 -2
- package/dist/Editor.js.map +1 -1
- package/dist/FormikEditor.js +1 -1
- package/dist/Menu.js +1 -1
- package/dist/{chunk-BLudkxXI.js → chunk-D-4C066v.js} +13 -4
- package/dist/{chunk-BLudkxXI.js.map → chunk-D-4C066v.js.map} +1 -1
- package/dist/cjs/Editor.cjs.js +6 -2
- 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-CAXraAbK.cjs.js → chunk-D2lzFp9p.cjs.js} +13 -4
- package/dist/cjs/{chunk-CAXraAbK.cjs.js.map → chunk-D2lzFp9p.cjs.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/editor-stats.html +19 -1
- package/dist/index.js +1 -1
- package/package.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, 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 validateUrl, O as BubbleMenu, Q as getLinkPopoverPosition, S as getMarkType, T as getMarkRange, U as useEditor, V as useEditorState, M as Menu$4, W as MenuDynamicVariables, X as EditorContent, Y as MediaUploader, Z as LinkAddPopOver, _ 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, 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 validateUrl, O as BubbleMenu, Q as getLinkPopoverPosition, S as getMarkType, T as getMarkRange, U as useEditor, V as useEditorState, M as Menu$4, W as MenuDynamicVariables, X as EditorContent, Y as MediaUploader, Z as LinkAddPopOver, _ as EditorView } from './chunk-D-4C066v.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-DNMH2cJJ.js';
|
|
10
10
|
import { isNotPresent, findBy, isNotEmpty, isPresent, noop as noop$1, slugify } from '@bigbinary/neeto-cist';
|
|
@@ -22034,7 +22034,7 @@ var LinkPopOver = function LinkPopOver(_ref) {
|
|
|
22034
22034
|
});
|
|
22035
22035
|
};
|
|
22036
22036
|
|
|
22037
|
-
var _excluded = ["addonCommands", "addons", "attachments", "attachmentsConfig", "autoFocus", "className", "contentClassName", "contentWrapperClassName", "errorWrapperClassName", "contentAttributes", "menuClassName", "attachmentsClassName", "isMenuIndependent", "defaults", "editorSecrets", "error", "extensions", "hideSlashCommands", "initialValue", "isCharacterCountActive", "keyboardShortcuts", "label", "mentions", "menuType", "placeholder", "required", "rows", "tooltips", "variables", "onChange", "onFocus", "onBlur", "onSubmit", "onChangeAttachments", "children", "openImageInNewTab", "openLinkInNewTab", "collaborationProvider", "enableReactNodeViewOptimization", "size", "otherAttachmentProps"];
|
|
22037
|
+
var _excluded = ["addonCommands", "addons", "attachments", "attachmentsConfig", "autoFocus", "className", "contentClassName", "contentWrapperClassName", "errorWrapperClassName", "contentAttributes", "menuClassName", "attachmentsClassName", "isMenuIndependent", "defaults", "editorSecrets", "error", "extensions", "hideSlashCommands", "initialValue", "isCharacterCountActive", "keyboardShortcuts", "label", "mentions", "menuType", "placeholder", "required", "rows", "tooltips", "variables", "onChange", "onFocus", "onBlur", "onSubmit", "onChangeAttachments", "children", "openImageInNewTab", "openLinkInNewTab", "showAssetLibrary", "collaborationProvider", "enableReactNodeViewOptimization", "size", "otherAttachmentProps"];
|
|
22038
22038
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22039
22039
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22040
22040
|
var Editor = function Editor(_ref, ref) {
|
|
@@ -22104,6 +22104,8 @@ var Editor = function Editor(_ref, ref) {
|
|
|
22104
22104
|
openImageInNewTab = _ref$openImageInNewTa === void 0 ? true : _ref$openImageInNewTa,
|
|
22105
22105
|
_ref$openLinkInNewTab = _ref.openLinkInNewTab,
|
|
22106
22106
|
openLinkInNewTab = _ref$openLinkInNewTab === void 0 ? true : _ref$openLinkInNewTab,
|
|
22107
|
+
_ref$showAssetLibrary = _ref.showAssetLibrary,
|
|
22108
|
+
showAssetLibrary = _ref$showAssetLibrary === void 0 ? true : _ref$showAssetLibrary,
|
|
22107
22109
|
_ref$collaborationPro = _ref.collaborationProvider,
|
|
22108
22110
|
collaborationProvider = _ref$collaborationPro === void 0 ? null : _ref$collaborationPro,
|
|
22109
22111
|
_ref$enableReactNodeV = _ref.enableReactNodeViewOptimization,
|
|
@@ -22299,6 +22301,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
22299
22301
|
menuType: menuType,
|
|
22300
22302
|
neetoKbArticleState: neetoKbArticleState,
|
|
22301
22303
|
openLinkInNewTab: openLinkInNewTab,
|
|
22304
|
+
showAssetLibrary: showAssetLibrary,
|
|
22302
22305
|
tooltips: tooltips,
|
|
22303
22306
|
variables: variables,
|
|
22304
22307
|
className: menuClassName,
|
|
@@ -22318,6 +22321,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
22318
22321
|
}, otherProps))), isMediaUploaderActive && /*#__PURE__*/jsx(MediaUploader, {
|
|
22319
22322
|
editor: editor,
|
|
22320
22323
|
mediaUploader: mediaUploader,
|
|
22324
|
+
showAssetLibrary: showAssetLibrary,
|
|
22321
22325
|
onClose: function onClose() {
|
|
22322
22326
|
return setMediaUploader({
|
|
22323
22327
|
image: false,
|