@haklex/rich-editor 0.0.50 → 0.0.51
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.
|
@@ -2218,7 +2218,7 @@ const CODE_BLOCK_MULTILINE_TRANSFORMER = {
|
|
|
2218
2218
|
if (linesInBetween) {
|
|
2219
2219
|
const lines = [...linesInBetween];
|
|
2220
2220
|
while (lines.length > 0 && !lines[0].length) lines.shift();
|
|
2221
|
-
while (lines.length > 0 && !lines.at(-1)
|
|
2221
|
+
while (lines.length > 0 && !lines.at(-1)?.length) lines.pop();
|
|
2222
2222
|
code = lines.join("\n");
|
|
2223
2223
|
}
|
|
2224
2224
|
const Klass = findCodeBlockKlass(getResolvedEditNodes());
|
package/dist/editor.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as blockIdState } from "./RichEditor-
|
|
2
|
-
import { A, F, d, I, e, f, h, i, N, R, a, c, j, g, s, u } from "./RichEditor-
|
|
1
|
+
import { b as blockIdState } from "./RichEditor-B6qbaX5f.js";
|
|
2
|
+
import { A, F, d, I, e, f, h, i, N, R, a, c, j, g, s, u } from "./RichEditor-B6qbaX5f.js";
|
|
3
3
|
import { h as useFootnoteContent, j as useFootnoteDisplayNumber } from "./favicon-Di7XTTqC.js";
|
|
4
4
|
import { $, q, r, s as s2, t, v, w, x, y, z, A as A2, B, D, E, G, H, I as I2, J, K, L, C, F as F2, M, O, P, Q, S, T, U, V, W, X, Y, N as N2, Z, _, a as a2, b, a0, e as e2, c as c2, a1, f as f2, g as g2, u as u2, i as i2, k, l, m, n } from "./favicon-Di7XTTqC.js";
|
|
5
5
|
import { a as a3, c as c3, g as g3, n as n2 } from "./utils-fpeaZV1R.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-editor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.51",
|
|
4
4
|
"description": "Core rich text editor based on Lexical",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"nanoid": "^5.1.6",
|
|
32
32
|
"thumbhash": "^0.1.1",
|
|
33
|
-
"@haklex/rich-
|
|
34
|
-
"@haklex/rich-
|
|
35
|
-
"@haklex/rich-style-token": "0.0.
|
|
33
|
+
"@haklex/rich-headless": "0.0.51",
|
|
34
|
+
"@haklex/rich-editor-ui": "0.0.51",
|
|
35
|
+
"@haklex/rich-style-token": "0.0.51"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@base-ui/react": "^1.2.0",
|