@mdxeditor/editor 2.2.0 → 2.2.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.
@@ -46,7 +46,7 @@ const insertJsx$ = Signal((r) => {
46
46
  );
47
47
  });
48
48
  const jsxPlugin = realmPlugin({
49
- init: (realm) => {
49
+ init: (realm, params) => {
50
50
  realm.pubIn({
51
51
  // import
52
52
  [jsxIsAvailable$]: true,
@@ -56,7 +56,8 @@ const jsxPlugin = realmPlugin({
56
56
  // export
57
57
  [addLexicalNode$]: LexicalJsxNode,
58
58
  [addExportVisitor$]: LexicalJsxVisitor,
59
- [addToMarkdownExtension$]: mdxToMarkdown()
59
+ [addToMarkdownExtension$]: mdxToMarkdown(),
60
+ [jsxComponentDescriptors$]: (params == null ? void 0 : params.jsxComponentDescriptors) || []
60
61
  });
61
62
  },
62
63
  update(realm, params) {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "*.css"
12
12
  ],
13
13
  "type": "module",
14
- "version": "2.2.0",
14
+ "version": "2.2.1",
15
15
  "description": "React component for rich text markdown editing",
16
16
  "scripts": {
17
17
  "build": "vite build",
@@ -124,6 +124,7 @@
124
124
  "eslint-plugin-react-hooks": "^4.6.0",
125
125
  "express": "^4.18.2",
126
126
  "jsdom": "^23.0.1",
127
+ "mermaid": "^10.6.1",
127
128
  "micromark-util-types": "^2.0.0",
128
129
  "multer": "1.4.5-lts.1",
129
130
  "postcss": "^8.4.24",