@lobehub/editor 4.29.2 → 5.0.0-beta.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.
Files changed (105) hide show
  1. package/es/codemirror/components/CopyButton.js +1 -1
  2. package/es/codemirror/components/LanguageSelect.js +1 -3
  3. package/es/codemirror/components/MoreOptions.js +1 -2
  4. package/es/codemirror/components/Toolbar.js +1 -2
  5. package/es/codemirror/components/style.js +1 -1
  6. package/es/codemirror/style.js +1 -1
  7. package/es/codemirror/theme.js +1 -1
  8. package/es/editor-kernel/react/useAnchor.js +1 -1
  9. package/es/plugins/auto-complete/react/ReactAutoCompletePlugin.js +1 -1
  10. package/es/plugins/auto-complete/react/style.js +1 -1
  11. package/es/plugins/block/react/ReactBlockPlugin.js +2 -4
  12. package/es/plugins/block/react/style.js +1 -1
  13. package/es/plugins/code/react/CodeReactPlugin.js +1 -1
  14. package/es/plugins/code/react/style.js +1 -1
  15. package/es/plugins/codeblock/react/ReactCodeblockPlugin.js +1 -1
  16. package/es/plugins/codeblock/react/style.js +1 -1
  17. package/es/plugins/codemirror-block/react/CodemirrorNode.js +1 -3
  18. package/es/plugins/codemirror-block/react/MermaidPreview.js +1 -2
  19. package/es/plugins/collapsible/react/ReactCollapsiblePlugin.js +1 -1
  20. package/es/plugins/collapsible/react/style.js +74 -64
  21. package/es/plugins/common/react/Placeholder/style.js +1 -1
  22. package/es/plugins/common/react/ReactPlainText.js +1 -1
  23. package/es/plugins/common/react/style.js +1 -1
  24. package/es/plugins/file/react/components/ReactFile.js +1 -1
  25. package/es/plugins/file/react/style.js +1 -1
  26. package/es/plugins/hr/react/components/HRNode.js +1 -1
  27. package/es/plugins/hr/react/style.js +1 -1
  28. package/es/plugins/image/react/components/Image.js +1 -3
  29. package/es/plugins/image/react/components/ImageEditPopover.js +1 -3
  30. package/es/plugins/image/react/components/LazyImage.js +1 -1
  31. package/es/plugins/image/react/components/ResizeHandle.js +1 -1
  32. package/es/plugins/image/react/components/style.js +1 -1
  33. package/es/plugins/image/react/style.js +1 -1
  34. package/es/plugins/link/react/ReactLinkPlugin.js +1 -1
  35. package/es/plugins/link/react/components/LinkEdit.js +1 -3
  36. package/es/plugins/link/react/components/LinkToolbar.js +1 -1
  37. package/es/plugins/link/react/style.js +1 -1
  38. package/es/plugins/link-highlight/react/ReactLinkHighlightPlugin.js +1 -1
  39. package/es/plugins/link-highlight/react/style.js +1 -1
  40. package/es/plugins/list/react/style.js +1 -1
  41. package/es/plugins/litexml/react/DiffNodeToolbar/index.js +1 -3
  42. package/es/plugins/litexml/react/DiffNodeToolbar/style.js +1 -1
  43. package/es/plugins/litexml/react/TableRowDiffToolbar.js +1 -3
  44. package/es/plugins/litexml/react/style.js +1 -1
  45. package/es/plugins/markdown/react/index.js +1 -1
  46. package/es/plugins/math/react/components/MathEditorContainer.js +1 -1
  47. package/es/plugins/math/react/components/MathEditorContent.js +1 -2
  48. package/es/plugins/math/react/components/Placeholder.js +1 -3
  49. package/es/plugins/math/react/style.js +1 -1
  50. package/es/plugins/mention/react/components/Mention.js +1 -1
  51. package/es/plugins/mention/react/style.js +1 -1
  52. package/es/plugins/slash/react/components/DefaultSlashMenu.js +1 -2
  53. package/es/plugins/slash/service/i-slash-service.d.ts +1 -1
  54. package/es/plugins/table/react/TableActionMenu/ActionMenu.js +1 -1
  55. package/es/plugins/table/react/TableActionMenu/index.js +1 -1
  56. package/es/plugins/table/react/TableActionMenu/style.js +1 -1
  57. package/es/plugins/table/react/TableColController.js +1 -1
  58. package/es/plugins/table/react/TableController/style.js +1 -1
  59. package/es/plugins/table/react/TableControllerButton.js +2 -2
  60. package/es/plugins/table/react/TableControllerMenu.js +2 -2
  61. package/es/plugins/table/react/TableHoverActions/index.js +1 -2
  62. package/es/plugins/table/react/TableHoverActions/style.js +1 -1
  63. package/es/plugins/table/react/TableResize/index.js +2 -2
  64. package/es/plugins/table/react/TableResize/style.js +1 -1
  65. package/es/plugins/table/react/TableRowController.js +1 -1
  66. package/es/plugins/table/react/index.js +1 -1
  67. package/es/plugins/table/react/style.js +1 -1
  68. package/es/plugins/toolbar/react/index.js +1 -2
  69. package/es/plugins/toolbar/react/style.js +1 -1
  70. package/es/react/ChatInput/ChatInput.js +1 -2
  71. package/es/react/ChatInput/style.js +1 -1
  72. package/es/react/ChatInput/type.d.ts +1 -1
  73. package/es/react/ChatInputActionBar/ChatInputActionBar.js +1 -2
  74. package/es/react/ChatInputActionBar/style.js +1 -1
  75. package/es/react/ChatInputActionBar/type.d.ts +1 -1
  76. package/es/react/ChatInputActions/ChatInputActions.js +1 -2
  77. package/es/react/ChatInputActions/components/ActionItem.js +1 -1
  78. package/es/react/ChatInputActions/components/ActionRender.js +1 -1
  79. package/es/react/ChatInputActions/components/CollapsedActions.js +1 -2
  80. package/es/react/ChatInputActions/style.js +1 -1
  81. package/es/react/ChatInputActions/type.d.ts +4 -4
  82. package/es/react/CodeLanguageSelect/CodeLanguageSelect.js +1 -3
  83. package/es/react/CodeLanguageSelect/style.js +1 -1
  84. package/es/react/CodeLanguageSelect/type.d.ts +1 -1
  85. package/es/react/FloatActions/FloatActions.js +1 -2
  86. package/es/react/FloatActions/components/ActionItem.js +1 -1
  87. package/es/react/FloatActions/components/ActionRender.js +1 -1
  88. package/es/react/FloatActions/components/CollapsedActions.js +1 -2
  89. package/es/react/FloatActions/style.js +1 -1
  90. package/es/react/FloatActions/type.d.ts +4 -4
  91. package/es/react/SendButton/SendButton.js +1 -2
  92. package/es/react/SendButton/components/SendIcon.js +1 -1
  93. package/es/react/SendButton/components/StopIcon.js +1 -1
  94. package/es/react/SendButton/style.js +1 -1
  95. package/es/react/SendButton/type.d.ts +1 -1
  96. package/es/renderer/LexicalDiff.js +1 -1
  97. package/es/renderer/LexicalRenderer.js +1 -1
  98. package/es/renderer/diff/compute.js +2 -2
  99. package/es/renderer/diff/style.js +1 -1
  100. package/es/renderer/engine/render-builtin-node.js +2 -2
  101. package/es/renderer/renderers/codeblock.js +1 -1
  102. package/es/renderer/renderers/horizontalrule.js +1 -1
  103. package/es/renderer/renderers/mermaid.js +1 -1
  104. package/es/renderer/style.js +1 -1
  105. package/package.json +3 -5
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { renderMermaidBlock } from "./mermaid.js";
3
- import { jsx } from "react/jsx-runtime";
4
3
  import { Highlighter } from "@lobehub/ui";
4
+ import { jsx } from "react/jsx-runtime";
5
5
  //#region src/renderer/renderers/codeblock.tsx
6
6
  function CodeBlockRenderer({ node }) {
7
7
  const language = node.language || "";
@@ -1,5 +1,5 @@
1
+ import { createStaticStyles } from "@lobehub/ui";
1
2
  import { createElement } from "react";
2
- import { createStaticStyles } from "antd-style";
3
3
  //#region src/renderer/renderers/horizontalrule.tsx
4
4
  const useStyles = createStaticStyles(({ css, cssVar }) => css`
5
5
  display: flex;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import { Mermaid } from "@lobehub/ui";
3
+ import { jsx } from "react/jsx-runtime";
4
4
  //#region src/renderer/renderers/mermaid.tsx
5
5
  function renderMermaidBlock(node, key) {
6
6
  const code = node.code || "";
@@ -4,7 +4,7 @@ import { styles as styles$2 } from "../plugins/list/react/style.js";
4
4
  import { styles as styles$3 } from "../plugins/math/react/style.js";
5
5
  import { styles as styles$4 } from "../plugins/mention/react/style.js";
6
6
  import { styles as styles$5 } from "../plugins/table/react/style.js";
7
- import { createStaticStyles, cx } from "antd-style";
7
+ import { createStaticStyles, cx } from "@lobehub/ui";
8
8
  //#region src/renderer/style.ts
9
9
  const tableHeaderFix = createStaticStyles(({ css, cssVar }) => css`
10
10
  .editor_table > tbody > tr:first-of-type {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/editor",
3
- "version": "4.29.2",
3
+ "version": "5.0.0-beta.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",
@@ -108,7 +108,6 @@
108
108
  "@shikijs/engine-javascript": "^4.3.1",
109
109
  "@xmldom/xmldom": "^0.9.10",
110
110
  "ahooks": "^3.9.6",
111
- "antd-style": "^4.1.0",
112
111
  "debug": "^4.4.3",
113
112
  "es-toolkit": "^1.50.0",
114
113
  "eventemitter3": "^5.0.1",
@@ -132,9 +131,8 @@
132
131
  "yjs": "^13.6.31"
133
132
  },
134
133
  "peerDependencies": {
135
- "@lobehub/ui": "^5.55.0",
136
- "antd": "^6.1.1",
137
- "motion": "^12.0.0",
134
+ "@lobehub/ui": "^6.0.0-beta.1",
135
+ "motion": "^13.0.0",
138
136
  "react": "^19.0.0",
139
137
  "react-dom": "^19.0.0"
140
138
  },