@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.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
|
|
|
@@ -98707,11 +98708,12 @@ var EditorContent = function EditorContent(_ref) {
|
|
|
98707
98708
|
preTags.forEach(function (preTag) {
|
|
98708
98709
|
var button = document.createElement("div");
|
|
98709
98710
|
button.className = "neeto-editor-codeblock-options";
|
|
98710
|
-
|
|
98711
|
+
var root = client.createRoot(button);
|
|
98712
|
+
root.render( /*#__PURE__*/React__default["default"].createElement(CopyToClipboardButton__default["default"], {
|
|
98711
98713
|
size: "small",
|
|
98712
98714
|
style: "text",
|
|
98713
98715
|
value: preTag.textContent
|
|
98714
|
-
})
|
|
98716
|
+
}));
|
|
98715
98717
|
preTag.appendChild(button);
|
|
98716
98718
|
});
|
|
98717
98719
|
};
|