@mdxeditor/editor 3.40.0 → 3.40.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.
@@ -95,6 +95,7 @@ function pickTransformersForActivePlugins(pluginIds, allowedHeadingLevels) {
95
95
  dependencies: [CodeBlockNode],
96
96
  replace: (parentNode, _children, match) => {
97
97
  const codeBlockNode = $createCodeBlockNode({ code: "", language: match[1] ?? "", meta: "" });
98
+ parentNode.selectPrevious();
98
99
  parentNode.replace(codeBlockNode);
99
100
  setTimeout(() => {
100
101
  codeBlockNode.select();
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "*.css"
12
12
  ],
13
13
  "type": "module",
14
- "version": "3.40.0",
14
+ "version": "3.40.1",
15
15
  "description": "React component for rich text markdown editing",
16
16
  "scripts": {
17
17
  "build": "vite build",
@@ -44,15 +44,15 @@
44
44
  "@codemirror/state": "^6.4.0",
45
45
  "@codemirror/view": "^6.23.0",
46
46
  "@codesandbox/sandpack-react": "^2.20.0",
47
- "@lexical/clipboard": "^0.32.1",
48
- "@lexical/link": "^0.32.1",
49
- "@lexical/list": "^0.32.1",
50
- "@lexical/markdown": "^0.32.1",
51
- "@lexical/plain-text": "^0.32.1",
52
- "@lexical/react": "^0.32.1",
53
- "@lexical/rich-text": "^0.32.1",
54
- "@lexical/selection": "^0.32.1",
55
- "@lexical/utils": "^0.32.1",
47
+ "@lexical/clipboard": "^0.33.1",
48
+ "@lexical/link": "^0.33.1",
49
+ "@lexical/list": "^0.33.1",
50
+ "@lexical/markdown": "^0.33.1",
51
+ "@lexical/plain-text": "^0.33.1",
52
+ "@lexical/react": "^0.33.1",
53
+ "@lexical/rich-text": "^0.33.1",
54
+ "@lexical/selection": "^0.33.1",
55
+ "@lexical/utils": "^0.33.1",
56
56
  "@mdxeditor/gurx": "^1.1.4",
57
57
  "@radix-ui/colors": "^3.0.0",
58
58
  "@radix-ui/react-dialog": "^1.1.11",
@@ -68,7 +68,7 @@
68
68
  "codemirror": "^6.0.1",
69
69
  "downshift": "^7.6.0",
70
70
  "js-yaml": "4.1.0",
71
- "lexical": "^0.32.1",
71
+ "lexical": "^0.33.1",
72
72
  "mdast-util-directive": "^3.0.0",
73
73
  "mdast-util-from-markdown": "^2.0.0",
74
74
  "mdast-util-frontmatter": "^2.0.1",