@mdxeditor/editor 2.9.0 → 2.9.1

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
@@ -1,14 +1,14 @@
1
+ import { useCellValues, usePublisher, useRealm } from "@mdxeditor/gurx";
1
2
  import React__default from "react";
2
- import { corePlugin, initialRootEditorState$, usedLexicalNodes$, readOnly$, contentEditableClassName$, composerChildren$, topAreaChildren$, editorWrappers$, placeholder$, editorRootElementRef$, viewMode$, markdownSourceEditorValue$, markdown$, setMarkdown$, insertMarkdown$, rootEditor$ } from "./plugins/core/index.js";
3
3
  import { RealmWithPlugins } from "./RealmWithPlugins.js";
4
- import { useCellValues, usePublisher, useRealm } from "@mdxeditor/gurx";
5
- import { lexicalTheme } from "./styles/lexicalTheme.js";
4
+ import { corePlugin, initialRootEditorState$, usedLexicalNodes$, readOnly$, contentEditableClassName$, composerChildren$, topAreaChildren$, editorWrappers$, placeholder$, editorRootElementRef$, viewMode$, markdownSourceEditorValue$, markdown$, setMarkdown$, insertMarkdown$, rootEditor$ } from "./plugins/core/index.js";
6
5
  import { LexicalComposer } from "@lexical/react/LexicalComposer.js";
7
- import styles from "./styles/ui.module.css.js";
8
- import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin.js";
9
6
  import { ContentEditable } from "@lexical/react/LexicalContentEditable.js";
10
7
  import LexicalErrorBoundary from "@lexical/react/LexicalErrorBoundary.js";
8
+ import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin.js";
11
9
  import classNames from "classnames";
10
+ import { lexicalTheme } from "./styles/lexicalTheme.js";
11
+ import styles from "./styles/ui.module.css.js";
12
12
  import { noop } from "./utils/fp.js";
13
13
  const LexicalProvider = ({ children }) => {
14
14
  const [initialRootEditorState, nodes, readOnly] = useCellValues(initialRootEditorState$, usedLexicalNodes$, readOnly$);
@@ -56,10 +56,7 @@ const IconFallback = () => {
56
56
  const defaultIconComponentFor = (name) => {
57
57
  return /* @__PURE__ */ React__default.createElement(React__default.Suspense, { fallback: /* @__PURE__ */ React__default.createElement(IconFallback, null) }, /* @__PURE__ */ React__default.createElement(DefaultIcon, { name }));
58
58
  };
59
- const RenderRecursiveWrappers = ({
60
- wrappers,
61
- children
62
- }) => {
59
+ const RenderRecursiveWrappers = ({ wrappers, children }) => {
63
60
  if (wrappers.length === 0) {
64
61
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children);
65
62
  }
package/dist/index.d.ts CHANGED
@@ -2536,7 +2536,7 @@ export declare function thrush<I, K>(arg: I, proc: (arg: I) => K): K;
2536
2536
 
2537
2537
  /* Excluded from this release type: ToggleSingleGroupWithItem */
2538
2538
 
2539
- /* Excluded from this release type: ToMarkdownExtension */
2539
+ export declare type ToMarkdownExtension = NonNullable<ToMarkdownOptions['extensions']>[number];
2540
2540
 
2541
2541
  /* Excluded from this release type: toMarkdownExtensions$ */
2542
2542
 
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "*.css"
12
12
  ],
13
13
  "type": "module",
14
- "version": "2.9.0",
14
+ "version": "2.9.1",
15
15
  "description": "React component for rich text markdown editing",
16
16
  "scripts": {
17
17
  "build": "vite build",