@mdxeditor/editor 1.2.1 → 1.3.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/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/plugins/image/ImageEditor.js +1 -0
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './plugins/jsx';
|
|
|
18
18
|
export * from './jsx-editors/GenericJsxEditor';
|
|
19
19
|
export * from './plugins/sandpack';
|
|
20
20
|
export * from './plugins/codemirror';
|
|
21
|
+
export * from './plugins/codemirror/CodeMirrorEditor';
|
|
21
22
|
export * from './plugins/codeblock';
|
|
22
23
|
export * from './plugins/directives';
|
|
23
24
|
export * from './directive-editors/AdmonitionDirectiveDescriptor';
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ import { jsxPlugin, jsxPluginHooks, jsxSystem } from "./plugins/jsx/index.js";
|
|
|
15
15
|
import { GenericJsxEditor } from "./jsx-editors/GenericJsxEditor.js";
|
|
16
16
|
import { sandpackPlugin, sandpackPluginHooks, sandpackSystem } from "./plugins/sandpack/index.js";
|
|
17
17
|
import { codeMirrorHooks, codeMirrorPlugin, codeMirrorSystem } from "./plugins/codemirror/index.js";
|
|
18
|
+
import { CodeMirrorEditor } from "./plugins/codemirror/CodeMirrorEditor.js";
|
|
18
19
|
import { codeBlockPlugin, codeBlockPluginHooks, codeBlockSystem } from "./plugins/codeblock/index.js";
|
|
19
20
|
import { directivesPlugin, directivesPluginHooks, directivesSystem } from "./plugins/directives/index.js";
|
|
20
21
|
import { ADMONITION_TYPES, AdmonitionDirectiveDescriptor } from "./directive-editors/AdmonitionDirectiveDescriptor.js";
|
|
@@ -64,6 +65,7 @@ export {
|
|
|
64
65
|
ButtonWithTooltip,
|
|
65
66
|
ChangeAdmonitionType,
|
|
66
67
|
ChangeCodeMirrorLanguage,
|
|
68
|
+
CodeMirrorEditor,
|
|
67
69
|
CodeToggle,
|
|
68
70
|
ConditionalContents,
|
|
69
71
|
CreateLink,
|
|
@@ -204,6 +204,7 @@ function ImageEditor({ src, title, alt, nodeKey, width, height }) {
|
|
|
204
204
|
)), draggable && isFocused && !disableImageResize && /* @__PURE__ */ React__default.createElement(ImageResizer, { editor, imageRef, onResizeStart, onResizeEnd }), /* @__PURE__ */ React__default.createElement(
|
|
205
205
|
"button",
|
|
206
206
|
{
|
|
207
|
+
type: "button",
|
|
207
208
|
className: classNames(styles.iconButton, styles.editImageButton),
|
|
208
209
|
title: "Edit image",
|
|
209
210
|
onClick: () => {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"private": false,
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"type": "module",
|
|
12
|
-
"version": "1.
|
|
12
|
+
"version": "1.3.0",
|
|
13
13
|
"description": "React component for rich text markdown editing",
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "vite build",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"@codemirror/view": "^6.21.0",
|
|
42
42
|
"@codesandbox/sandpack-react": "^2.6.7",
|
|
43
43
|
"@lexical/clipboard": "^0.12.2",
|
|
44
|
-
"@lexical/code": "^0.12.2",
|
|
45
44
|
"@lexical/link": "^0.12.2",
|
|
46
45
|
"@lexical/list": "^0.12.2",
|
|
47
46
|
"@lexical/markdown": "^0.12.2",
|