@mdxeditor/editor 3.29.2 → 3.29.3

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 CHANGED
@@ -2522,6 +2522,12 @@ export declare interface SandpackConfig {
2522
2522
  presets: SandpackPreset[];
2523
2523
  }
2524
2524
 
2525
+ export declare const SandpackEditor: ({ nodeKey, code, focusEmitter, preset }: SandpackEditorProps) => default_2.JSX.Element;
2526
+
2527
+ export declare interface SandpackEditorProps extends CodeBlockEditorProps {
2528
+ preset: SandpackPreset;
2529
+ }
2530
+
2525
2531
  /**
2526
2532
  * A plugin that adds support for sandpack code blocks in the editor.
2527
2533
  * @group Sandpack
package/dist/index.js CHANGED
@@ -17,6 +17,7 @@ import { maxLengthPlugin } from "./plugins/maxlength/index.js";
17
17
  import { insertJsx$, isMdastJsxNode, jsxPlugin } from "./plugins/jsx/index.js";
18
18
  import { GenericJsxEditor } from "./jsx-editors/GenericJsxEditor.js";
19
19
  import { insertSandpack$, sandpackConfig$, sandpackPlugin } from "./plugins/sandpack/index.js";
20
+ import { SandpackEditor } from "./plugins/sandpack/SandpackEditor.js";
20
21
  import { codeBlockLanguages$, codeMirrorAutoLoadLanguageSupport$, codeMirrorExtensions$, codeMirrorPlugin, insertCodeMirror$ } from "./plugins/codemirror/index.js";
21
22
  import { COMMON_STATE_CONFIG_EXTENSIONS, CodeMirrorEditor } from "./plugins/codemirror/CodeMirrorEditor.js";
22
23
  import { appendCodeBlockEditorDescriptor$, codeBlockPlugin, defaultCodeBlockLanguage$, insertCodeBlock$ } from "./plugins/codeblock/index.js";
@@ -138,6 +139,7 @@ export {
138
139
  PropertyPopover,
139
140
  RealmWithPlugins,
140
141
  Root,
142
+ SandpackEditor,
141
143
  Select,
142
144
  SelectButtonTrigger,
143
145
  SelectContent,
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "*.css"
12
12
  ],
13
13
  "type": "module",
14
- "version": "3.29.2",
14
+ "version": "3.29.3",
15
15
  "description": "React component for rich text markdown editing",
16
16
  "scripts": {
17
17
  "build": "vite build",