@mdxeditor/editor 1.3.2 → 1.4.0
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/MDXEditor.js
CHANGED
|
@@ -77,7 +77,7 @@ const EditorRootElement = ({ children, className }) => {
|
|
|
77
77
|
editorRootElementRef.current = popupContainer;
|
|
78
78
|
setEditorRootElementRef(editorRootElementRef);
|
|
79
79
|
return () => {
|
|
80
|
-
|
|
80
|
+
popupContainer.remove();
|
|
81
81
|
};
|
|
82
82
|
}, [className, editorRootElementRef, setEditorRootElementRef]);
|
|
83
83
|
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(styles.editorRoot, styles.editorWrapper, className, "mdxeditor") }, children);
|
|
@@ -24,7 +24,7 @@ export interface SandpackPreset {
|
|
|
24
24
|
/**
|
|
25
25
|
* The label of the preset, displayed in the sandpack button dropdown.
|
|
26
26
|
*/
|
|
27
|
-
label: string;
|
|
27
|
+
label: string | JSX.Element;
|
|
28
28
|
/**
|
|
29
29
|
* The meta string that will be used to identify the preset from the fenced code block. e.g. "live react"
|
|
30
30
|
*/
|