@haklex/rich-editor 0.0.36 → 0.0.38
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.
- package/README.md +4 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
## 包定位
|
|
7
7
|
|
|
8
8
|
- `@haklex/rich-editor`:编辑器核心(`RichEditor`)
|
|
9
|
-
- `@haklex/rich-renderer`:只读渲染引擎(`RichRenderer`)
|
|
9
|
+
- `@haklex/rich-static-renderer`:只读渲染引擎(`RichRenderer`)
|
|
10
10
|
- `@haklex/rich-renderers`:静态增强渲染器聚合(codeblock、image、video、mermaid...)
|
|
11
11
|
- `@haklex/rich-renderers-edit`:编辑增强渲染器与扩展插件聚合
|
|
12
12
|
- `@haklex/rich-kit-shiro`:一站式生产组合(编辑 + 渲染 + 常用扩展)
|
|
@@ -51,7 +51,7 @@ export function DemoEditor() {
|
|
|
51
51
|
如果要渲染只读内容:
|
|
52
52
|
|
|
53
53
|
```tsx
|
|
54
|
-
import { RichRenderer } from '@haklex/rich-renderer'
|
|
54
|
+
import { RichRenderer } from '@haklex/rich-static-renderer'
|
|
55
55
|
|
|
56
56
|
<RichRenderer value={value} />
|
|
57
57
|
```
|
|
@@ -67,7 +67,7 @@ import { RichRenderer } from '@haklex/rich-renderer'
|
|
|
67
67
|
| --- | --- |
|
|
68
68
|
| `@haklex/rich-editor` | 完整导出(组件、节点、插件命令、上下文、类型) |
|
|
69
69
|
| `@haklex/rich-editor/editor` | 轻入口:`RichEditor` + 节点配置 |
|
|
70
|
-
| `@haklex/rich-editor/static` | 渲染/SSR 相关静态工具(供 `@haklex/rich-renderer` 与扩展包使用) |
|
|
70
|
+
| `@haklex/rich-editor/static` | 渲染/SSR 相关静态工具(供 `@haklex/rich-static-renderer` 与扩展包使用) |
|
|
71
71
|
| `@haklex/rich-editor/styles` | 仅样式变量/variant class 导出(不含 Lexical theme 对象) |
|
|
72
72
|
| `@haklex/rich-editor/style.css` | 打包后的编辑器样式 |
|
|
73
73
|
|
|
@@ -307,7 +307,7 @@ static slashMenuItems = [
|
|
|
307
307
|
|
|
308
308
|
```tsx
|
|
309
309
|
import { RichEditor } from '@haklex/rich-editor'
|
|
310
|
-
import { RichRenderer } from '@haklex/rich-renderer'
|
|
310
|
+
import { RichRenderer } from '@haklex/rich-static-renderer'
|
|
311
311
|
|
|
312
312
|
<RichEditor extraNodes={[PollEditNode]}>{/* <PollPlugin /> */}</RichEditor>
|
|
313
313
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-editor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.38",
|
|
4
4
|
"description": "Core rich text editor based on Lexical",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"thumbhash": "^0.1.1",
|
|
32
|
-
"@haklex/rich-editor-ui": "0.0.
|
|
33
|
-
"@haklex/rich-headless": "0.0.
|
|
34
|
-
"@haklex/rich-style-token": "0.0.
|
|
32
|
+
"@haklex/rich-editor-ui": "0.0.38",
|
|
33
|
+
"@haklex/rich-headless": "0.0.38",
|
|
34
|
+
"@haklex/rich-style-token": "0.0.38"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@base-ui/react": "^1.2.0",
|