@bigbinary/neeto-editor 1.28.10 → 1.28.11
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/index.cjs.js +4 -2
- package/index.cjs.js.map +1 -1
- package/index.js +5 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isNotEmpty, findBy, noop as noop$2, removeBy, findIndexBy, removeById, slugify } from '@bigbinary/neeto-commons-frontend/pure';
|
|
2
|
-
import { pluck, isEmpty as isEmpty$1, isNil, mergeDeepLeft, assoc, mergeRight, concat as concat$3, is,
|
|
2
|
+
import { pluck, isEmpty as isEmpty$1, isNil, mergeDeepLeft, assoc, mergeRight, concat as concat$3, is, not, prop, fromPairs, last, min as min$1 } from 'ramda';
|
|
3
3
|
import * as React$6 from 'react';
|
|
4
4
|
import React__default, { useContext, useState, useRef as useRef$1, useEffect as useEffect$1, useImperativeHandle, createContext, forwardRef as forwardRef$1, cloneElement, useLayoutEffect, useMemo, useCallback } from 'react';
|
|
5
5
|
import { renderToString } from 'react-dom/server';
|
|
@@ -94879,7 +94879,9 @@ var MediaUploader = function MediaUploader(_ref) {
|
|
|
94879
94879
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
94880
94880
|
closeButton: false,
|
|
94881
94881
|
isOpen: isOpen,
|
|
94882
|
-
|
|
94882
|
+
closeOnEsc: not(isUploading),
|
|
94883
|
+
closeOnOutsideClick: not(isUploading),
|
|
94884
|
+
onClose: handleClose
|
|
94883
94885
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
94884
94886
|
className: "ne-media-uploader"
|
|
94885
94887
|
}, !isNilOrEmpty(tabs) && /*#__PURE__*/React__default.createElement(Tab, null, tabs.map(function (_ref3) {
|
|
@@ -94896,8 +94898,8 @@ var MediaUploader = function MediaUploader(_ref) {
|
|
|
94896
94898
|
className: "ne-media-uploader__content"
|
|
94897
94899
|
}, activeTab === "local" && /*#__PURE__*/React__default.createElement(LocalUploader, {
|
|
94898
94900
|
insertMediaToEditor: insertMediaToEditor,
|
|
94899
|
-
isImage: mediaUploader.image,
|
|
94900
94901
|
setIsUploading: setIsUploading,
|
|
94902
|
+
isImage: mediaUploader.image,
|
|
94901
94903
|
onClose: handleClose
|
|
94902
94904
|
}), activeTab === "link" && /*#__PURE__*/React__default.createElement(URLForm, {
|
|
94903
94905
|
placeholder: t("placeholders.pasteLink"),
|