@bigbinary/neeto-editor 1.28.10 → 1.28.12
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 +8 -4
- package/index.cjs.js.map +1 -1
- package/index.js +9 -5
- package/index.js.map +1 -1
- package/package.json +8 -8
package/index.cjs.js
CHANGED
|
@@ -15,6 +15,7 @@ var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
|
15
15
|
var CopyToClipboardButton = require('@bigbinary/neeto-molecules/CopyToClipboardButton');
|
|
16
16
|
var DynamicVariables = require('@bigbinary/neeto-molecules/DynamicVariables');
|
|
17
17
|
var formik = require('formik');
|
|
18
|
+
var client = require('react-dom/client');
|
|
18
19
|
|
|
19
20
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
20
21
|
|
|
@@ -94909,7 +94910,9 @@ var MediaUploader = function MediaUploader(_ref) {
|
|
|
94909
94910
|
return /*#__PURE__*/React__default["default"].createElement(neetoui.Modal, {
|
|
94910
94911
|
closeButton: false,
|
|
94911
94912
|
isOpen: isOpen,
|
|
94912
|
-
|
|
94913
|
+
closeOnEsc: ramda.not(isUploading),
|
|
94914
|
+
closeOnOutsideClick: ramda.not(isUploading),
|
|
94915
|
+
onClose: handleClose
|
|
94913
94916
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
94914
94917
|
className: "ne-media-uploader"
|
|
94915
94918
|
}, !isNilOrEmpty(tabs) && /*#__PURE__*/React__default["default"].createElement(neetoui.Tab, null, tabs.map(function (_ref3) {
|
|
@@ -94926,8 +94929,8 @@ var MediaUploader = function MediaUploader(_ref) {
|
|
|
94926
94929
|
className: "ne-media-uploader__content"
|
|
94927
94930
|
}, activeTab === "local" && /*#__PURE__*/React__default["default"].createElement(LocalUploader, {
|
|
94928
94931
|
insertMediaToEditor: insertMediaToEditor,
|
|
94929
|
-
isImage: mediaUploader.image,
|
|
94930
94932
|
setIsUploading: setIsUploading,
|
|
94933
|
+
isImage: mediaUploader.image,
|
|
94931
94934
|
onClose: handleClose
|
|
94932
94935
|
}), activeTab === "link" && /*#__PURE__*/React__default["default"].createElement(URLForm, {
|
|
94933
94936
|
placeholder: t("placeholders.pasteLink"),
|
|
@@ -98705,11 +98708,12 @@ var EditorContent = function EditorContent(_ref) {
|
|
|
98705
98708
|
preTags.forEach(function (preTag) {
|
|
98706
98709
|
var button = document.createElement("div");
|
|
98707
98710
|
button.className = "neeto-editor-codeblock-options";
|
|
98708
|
-
|
|
98711
|
+
var root = client.createRoot(button);
|
|
98712
|
+
root.render( /*#__PURE__*/React__default["default"].createElement(CopyToClipboardButton__default["default"], {
|
|
98709
98713
|
size: "small",
|
|
98710
98714
|
style: "text",
|
|
98711
98715
|
value: preTag.textContent
|
|
98712
|
-
})
|
|
98716
|
+
}));
|
|
98713
98717
|
preTag.appendChild(button);
|
|
98714
98718
|
});
|
|
98715
98719
|
};
|