@mdxeditor/editor 3.11.2 → 3.11.4

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.
@@ -6,7 +6,11 @@ const LexicalListItemVisitor = {
6
6
  const firstChild = children[0];
7
7
  if (children.length === 1 && $isListNode(firstChild)) {
8
8
  const prevListItemNode = mdastParent.children.at(-1);
9
- actions.visitChildren(lexicalNode, prevListItemNode);
9
+ if (!prevListItemNode) {
10
+ actions.visitChildren(firstChild, mdastParent);
11
+ } else {
12
+ actions.visitChildren(lexicalNode, prevListItemNode);
13
+ }
10
14
  } else {
11
15
  const parentList = lexicalNode.getParent();
12
16
  const listItem = actions.appendToParent(mdastParent, {
@@ -315,7 +315,7 @@ const CellEditor = ({ focus, setActiveCell, parentEditor, lexicalTable, contents
315
315
  saveAndFocus(null);
316
316
  return true;
317
317
  },
318
- COMMAND_PRIORITY_CRITICAL
318
+ COMMAND_PRIORITY_EDITOR
319
319
  )
320
320
  );
321
321
  }, [colIndex, editor, rootEditor, rowIndex, saveAndFocus, setActiveCell]);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "*.css"
12
12
  ],
13
13
  "type": "module",
14
- "version": "3.11.2",
14
+ "version": "3.11.4",
15
15
  "description": "React component for rich text markdown editing",
16
16
  "scripts": {
17
17
  "build": "vite build",
@@ -43,16 +43,16 @@
43
43
  "@codemirror/state": "^6.4.0",
44
44
  "@codemirror/view": "^6.23.0",
45
45
  "@codesandbox/sandpack-react": "^2.10.0",
46
- "@lexical/clipboard": "^0.17.0",
47
- "@lexical/link": "^0.17.0",
48
- "@lexical/list": "^0.17.0",
49
- "@lexical/markdown": "^0.17.0",
50
- "@lexical/plain-text": "^0.17.0",
51
- "@lexical/react": "^0.17.0",
52
- "@lexical/rich-text": "^0.17.0",
53
- "@lexical/selection": "^0.17.0",
54
- "@lexical/utils": "^0.17.0",
55
- "@mdxeditor/gurx": "^1.1.1",
46
+ "@lexical/clipboard": "^0.17.1",
47
+ "@lexical/link": "^0.17.1",
48
+ "@lexical/list": "^0.17.1",
49
+ "@lexical/markdown": "^0.17.1",
50
+ "@lexical/plain-text": "^0.17.1",
51
+ "@lexical/react": "^0.17.1",
52
+ "@lexical/rich-text": "^0.17.1",
53
+ "@lexical/selection": "^0.17.1",
54
+ "@lexical/utils": "^0.17.1",
55
+ "@mdxeditor/gurx": "^1.1.4",
56
56
  "@radix-ui/colors": "^3.0.0",
57
57
  "@radix-ui/react-dialog": "^1.0.5",
58
58
  "@radix-ui/react-icons": "^1.3.0",
@@ -66,7 +66,7 @@
66
66
  "codemirror": "^6.0.1",
67
67
  "downshift": "^7.6.0",
68
68
  "js-yaml": "4.1.0",
69
- "lexical": "^0.17.0",
69
+ "lexical": "^0.17.1",
70
70
  "mdast-util-directive": "^3.0.0",
71
71
  "mdast-util-from-markdown": "^2.0.0",
72
72
  "mdast-util-frontmatter": "^2.0.1",
@@ -91,8 +91,8 @@
91
91
  "unidiff": "^1.0.2"
92
92
  },
93
93
  "peerDependencies": {
94
- "react": "^18.2.0",
95
- "react-dom": "^18.2.0"
94
+ "react": ">= 18 || >= 19",
95
+ "react-dom": ">= 18 || >= 19"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@babel/core": "^7.23.7",
@@ -103,7 +103,7 @@
103
103
  "@ladle/react": "^4.0.2",
104
104
  "@ngneat/falso": "^6.4.0",
105
105
  "@testing-library/jest-dom": "^6.1.6",
106
- "@testing-library/react": "^14.1.2",
106
+ "@testing-library/react": "^16.0.1",
107
107
  "@types/express": "^4.17.17",
108
108
  "@types/js-yaml": "4.0.5",
109
109
  "@types/mdast": "^4.0.3",
@@ -139,8 +139,8 @@
139
139
  "postcss-mixins": "^9.0.4",
140
140
  "postcss-nesting": "^11.2.2",
141
141
  "prettier": "^3.1.1",
142
- "react": "^18.2.0",
143
- "react-dom": "^18.2.0",
142
+ "react": "^18.3.1",
143
+ "react-dom": "^18.3.1",
144
144
  "semantic-release": "^21.0.5",
145
145
  "svgo": "^3.3.2",
146
146
  "terser": "^5.26.0",