@bigbinary/neeto-editor 1.28.11 → 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 +4 -2
- package/index.cjs.js.map +1 -1
- package/index.js +4 -2
- package/index.js.map +1 -1
- package/package.json +8 -8
package/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import { useFuncDebounce, useOnClickOutside } from '@bigbinary/neeto-commons-fro
|
|
|
12
12
|
import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
13
13
|
import DynamicVariables from '@bigbinary/neeto-molecules/DynamicVariables';
|
|
14
14
|
import { FastField } from 'formik';
|
|
15
|
+
import { createRoot } from 'react-dom/client';
|
|
15
16
|
|
|
16
17
|
// ::- Persistent data structure representing an ordered mapping from
|
|
17
18
|
// strings to values, with some convenient update methods.
|
|
@@ -98677,11 +98678,12 @@ var EditorContent = function EditorContent(_ref) {
|
|
|
98677
98678
|
preTags.forEach(function (preTag) {
|
|
98678
98679
|
var button = document.createElement("div");
|
|
98679
98680
|
button.className = "neeto-editor-codeblock-options";
|
|
98680
|
-
|
|
98681
|
+
var root = createRoot(button);
|
|
98682
|
+
root.render( /*#__PURE__*/React__default.createElement(CopyToClipboardButton, {
|
|
98681
98683
|
size: "small",
|
|
98682
98684
|
style: "text",
|
|
98683
98685
|
value: preTag.textContent
|
|
98684
|
-
})
|
|
98686
|
+
}));
|
|
98685
98687
|
preTag.appendChild(button);
|
|
98686
98688
|
});
|
|
98687
98689
|
};
|