@lobehub/editor 1.36.0 → 2.0.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.
@@ -13,5 +13,5 @@ export declare const INodeHelper: {
13
13
  createTypeNode(type: string, attrs?: Record<string, unknown>): INode;
14
14
  isParagraphNode(node: INode): node is IParagraphNode;
15
15
  isRootNode(node: INode): node is IRootNode;
16
- isTextNode(node: INode): node is import("lexical").SerializedTextNode;
16
+ isTextNode(node: INode): node is import("lexical/nodes/LexicalTextNode").SerializedTextNode;
17
17
  };
@@ -2,8 +2,8 @@
2
2
 
3
3
  import { ActionIcon } from '@lobehub/ui';
4
4
  import { Popover } from 'antd';
5
- import { motion } from 'framer-motion';
6
5
  import { CircleChevronLeftIcon, CircleChevronRightIcon, CircleChevronUpIcon } from 'lucide-react';
6
+ import { motion } from 'motion/react';
7
7
  import { memo } from 'react';
8
8
  import { Flexbox } from 'react-layout-kit';
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -25,7 +25,7 @@ var CollapsedActions = /*#__PURE__*/memo(function (_ref) {
25
25
  children: children
26
26
  }),
27
27
  styles: {
28
- body: {
28
+ content: {
29
29
  padding: 4
30
30
  }
31
31
  },
@@ -2,8 +2,8 @@
2
2
 
3
3
  import { ActionIcon } from '@lobehub/ui';
4
4
  import { Popover } from 'antd';
5
- import { motion } from 'framer-motion';
6
5
  import { CircleChevronLeftIcon, CircleChevronRightIcon, CircleChevronUpIcon } from 'lucide-react';
6
+ import { motion } from 'motion/react';
7
7
  import { memo } from 'react';
8
8
  import { Flexbox } from 'react-layout-kit';
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -25,7 +25,7 @@ var CollapsedActions = /*#__PURE__*/memo(function (_ref) {
25
25
  children: children
26
26
  }),
27
27
  styles: {
28
- body: {
28
+ content: {
29
29
  padding: 4
30
30
  }
31
31
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/editor",
3
- "version": "1.36.0",
3
+ "version": "2.0.1",
4
4
  "description": "A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -29,29 +29,29 @@
29
29
  "dependencies": {
30
30
  "@floating-ui/dom": "^1.7.4",
31
31
  "@floating-ui/react": "^0.27.16",
32
- "@lexical/code": "^0.38.2",
33
- "@lexical/code-shiki": "^0.38.2",
34
- "@lexical/dragon": "^0.38.2",
35
- "@lexical/history": "^0.38.2",
36
- "@lexical/link": "^0.38.2",
37
- "@lexical/list": "^0.38.2",
38
- "@lexical/rich-text": "^0.38.2",
39
- "@lexical/selection": "^0.38.2",
40
- "@lexical/table": "^0.38.2",
41
- "@lexical/utils": "^0.38.2",
42
- "@shikijs/core": "^3.19.0",
43
- "@shikijs/engine-javascript": "^3.19.0",
32
+ "@lexical/code": "^0.39.0",
33
+ "@lexical/code-shiki": "^0.39.0",
34
+ "@lexical/dragon": "^0.39.0",
35
+ "@lexical/history": "^0.39.0",
36
+ "@lexical/link": "^0.39.0",
37
+ "@lexical/list": "^0.39.0",
38
+ "@lexical/rich-text": "^0.39.0",
39
+ "@lexical/selection": "^0.39.0",
40
+ "@lexical/table": "^0.39.0",
41
+ "@lexical/utils": "^0.39.0",
42
+ "@shikijs/core": "^3.20.0",
43
+ "@shikijs/engine-javascript": "^3.20.0",
44
44
  "@xmldom/xmldom": "^0.8.11",
45
45
  "ahooks": "^3.9.6",
46
46
  "antd-style": "^3.7.1",
47
47
  "debug": "^4.4.3",
48
48
  "eventemitter3": "^5.0.1",
49
- "framer-motion": "^12.23.25",
50
49
  "fuse.js": "^7.1.0",
51
- "katex": "^0.16.25",
52
- "lexical": "^0.38.2",
53
- "lodash-es": "^4.17.21",
54
- "lucide-react": "^0.553.0",
50
+ "katex": "^0.16.27",
51
+ "lexical": "^0.39.0",
52
+ "lodash-es": "^4.17.22",
53
+ "lucide-react": "^0.562.0",
54
+ "motion": "^12.23.26",
55
55
  "polished": "^4.3.1",
56
56
  "re-resizable": "^6.11.2",
57
57
  "react-error-boundary": "^6.0.0",
@@ -59,13 +59,13 @@
59
59
  "react-merge-refs": "^3.0.2",
60
60
  "remark-cjk-friendly": "^1.2.3",
61
61
  "remark-supersub": "^1.0.0",
62
- "shiki": "^3.19.0",
62
+ "shiki": "^3.20.0",
63
63
  "ts-key-enum": "^3.0.13",
64
64
  "use-merge-value": "^1.2.0"
65
65
  },
66
66
  "peerDependencies": {
67
- "@lobehub/ui": "^2.0.0",
68
- "antd": "^5.25.0",
67
+ "@lobehub/ui": "^3.0.0",
68
+ "antd": "^6.1.1",
69
69
  "react": "^19.0.0",
70
70
  "react-dom": "^19.0.0"
71
71
  }