@lobehub/editor 1.5.4 → 1.5.6
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
CHANGED
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
A modern, extensible rich text editor built on Meta's Lexical framework with dual-architecture design, featuring both a powerful kernel and React integration. Optimized for AI applications and chat interfaces.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
[Changelog](./CHANGELOG.md) ·
|
|
11
|
+
[![][npm-release-shield]][npm-release-link]
|
|
12
|
+
[![][github-releasedate-shield]][github-releasedate-link]
|
|
13
|
+
[![][github-action-test-shield]][github-action-test-link]
|
|
14
|
+
[![][github-action-release-shield]][github-action-release-link]<br/>
|
|
15
|
+
[![][github-contributors-shield]][github-contributors-link]
|
|
16
|
+
[![][github-forks-shield]][github-forks-link]
|
|
17
|
+
[![][github-stars-shield]][github-stars-link]
|
|
18
|
+
[![][github-issues-shield]][github-issues-link]
|
|
19
|
+
[![][github-license-shield]][github-license-link]
|
|
20
|
+
|
|
21
|
+
[Changelog](./CHANGELOG.md) · [Report Bug][github-issues-link] · [Request Feature][github-issues-link]
|
|
22
22
|
|
|
23
23
|

|
|
24
24
|
|
|
@@ -70,7 +70,7 @@ A modern, extensible rich text editor built on Meta's Lexical framework with dua
|
|
|
70
70
|
|
|
71
71
|
To install `@lobehub/editor`, run the following command:
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
[![][bun-shield]][bun-link]
|
|
74
74
|
|
|
75
75
|
```bash
|
|
76
76
|
$ bun add @lobehub/editor
|
|
@@ -82,7 +82,7 @@ $ pnpm add @lobehub/editor
|
|
|
82
82
|
|
|
83
83
|
<div align="right">
|
|
84
84
|
|
|
85
|
-
[
|
|
85
|
+
[![\][back-to-top\]](#readme-top)
|
|
86
86
|
|
|
87
87
|
</div>
|
|
88
88
|
|
|
@@ -231,7 +231,7 @@ editor.dispatchCommand(INSERT_HEADING_COMMAND, { tag: 'h2' });
|
|
|
231
231
|
|
|
232
232
|
<div align="right">
|
|
233
233
|
|
|
234
|
-
[
|
|
234
|
+
[![\][back-to-top\]](#readme-top)
|
|
235
235
|
|
|
236
236
|
</div>
|
|
237
237
|
|
|
@@ -390,7 +390,7 @@ CLEAR_FORMAT_COMMAND;
|
|
|
390
390
|
|
|
391
391
|
<div align="right">
|
|
392
392
|
|
|
393
|
-
[
|
|
393
|
+
[![\][back-to-top\]](#readme-top)
|
|
394
394
|
|
|
395
395
|
</div>
|
|
396
396
|
|
|
@@ -400,11 +400,11 @@ CLEAR_FORMAT_COMMAND;
|
|
|
400
400
|
|
|
401
401
|
You can use Github Codespaces for online development:
|
|
402
402
|
|
|
403
|
-
|
|
403
|
+
[![][github-codespace-shield]][github-codespace-link]
|
|
404
404
|
|
|
405
405
|
Or clone it for local development:
|
|
406
406
|
|
|
407
|
-
|
|
407
|
+
[![][bun-shield]][bun-link]
|
|
408
408
|
|
|
409
409
|
```bash
|
|
410
410
|
$ git clone https://github.com/lobehub/lobe-editor.git
|
|
@@ -471,7 +471,7 @@ DEBUG=lobe-editor:kernel,lobe-editor:plugin:*
|
|
|
471
471
|
|
|
472
472
|
#### Development Usage
|
|
473
473
|
|
|
474
|
-
|
|
474
|
+
```bash
|
|
475
475
|
# Full debug during development
|
|
476
476
|
DEBUG=lobe-editor:*
|
|
477
477
|
|
|
@@ -685,4 +685,4 @@ This project is [MIT](./LICENSE) licensed.
|
|
|
685
685
|
[pr-welcome-link]: https://github.com/lobehub/lobe-editor/pulls
|
|
686
686
|
[pr-welcome-shield]: https://img.shields.io/badge/%F0%9F%A4%AF%20PR%20WELCOME-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
|
|
687
687
|
[profile-link]: https://github.com/lobehub
|
|
688
|
-
|
|
688
|
+
|
|
@@ -37,8 +37,9 @@ var HRNode = /*#__PURE__*/memo(function (_ref) {
|
|
|
37
37
|
return false;
|
|
38
38
|
}, COMMAND_PRIORITY_LOW));
|
|
39
39
|
}, [clearSelection, editor, isSelected, node, setSelected]);
|
|
40
|
-
return /*#__PURE__*/_jsx("
|
|
41
|
-
className: cx(styles, isSelected && 'selected', className)
|
|
40
|
+
return /*#__PURE__*/_jsx("div", {
|
|
41
|
+
className: cx(styles, isSelected && 'selected', className),
|
|
42
|
+
children: /*#__PURE__*/_jsx("hr", {})
|
|
42
43
|
});
|
|
43
44
|
});
|
|
44
45
|
HRNode.displayName = 'HRNode';
|
|
@@ -4,5 +4,5 @@ import { createStyles } from 'antd-style';
|
|
|
4
4
|
export var useStyles = createStyles(function (_ref) {
|
|
5
5
|
var css = _ref.css,
|
|
6
6
|
token = _ref.token;
|
|
7
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n\n width: 100%;\n height:
|
|
7
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n\n display: flex;\n align-items: center;\n\n width: 100%;\n height: calc(var(--lobe-markdown-margin-multiple) * 1em);\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n\n hr {\n width: 100%;\n border-color: ", ";\n border-style: dashed;\n border-width: 1px;\n border-block-start: none;\n border-inline-start: none;\n border-inline-end: none;\n }\n\n &.selected {\n background: ", ";\n\n hr {\n border-color: #000;\n }\n }\n "])), token.colorBorder, token.yellow);
|
|
8
8
|
});
|
package/package.json
CHANGED