@haklex/rich-renderer-codeblock 0.60.0 → 0.61.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeBlockEditRenderer.d.ts","sourceRoot":"","sources":["../src/CodeBlockEditRenderer.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAc3C,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"CodeBlockEditRenderer.d.ts","sourceRoot":"","sources":["../src/CodeBlockEditRenderer.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAc3C,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,sBAAsB,CAgQvE,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -302,6 +302,7 @@ var CodeBlockEditRenderer = ({ code, language, showLineNumbers: showLineNumbersP
|
|
|
302
302
|
const editor = editorRef.current;
|
|
303
303
|
if (!editor) return;
|
|
304
304
|
const raf = requestAnimationFrame(() => {
|
|
305
|
+
if (editor.hasFocus) return;
|
|
305
306
|
const nextCursor = cursorPlacement === "end" ? editor.state.doc.length : 0;
|
|
306
307
|
editor.focus();
|
|
307
308
|
editor.dispatch({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-renderer-codeblock",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.61.1",
|
|
4
4
|
"description": "Code block renderer with Shiki syntax highlighting",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,26 +35,28 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@codemirror/commands": "^6.11.1",
|
|
37
37
|
"@codemirror/state": "^6.7.6",
|
|
38
|
-
"@codemirror/view": "^6.43.
|
|
39
|
-
"@haklex/cm-editor": "0.
|
|
40
|
-
"@iconify-json/material-icon-theme": "^1.2.
|
|
38
|
+
"@codemirror/view": "^6.43.15",
|
|
39
|
+
"@haklex/cm-editor": "0.61.1",
|
|
40
|
+
"@iconify-json/material-icon-theme": "^1.2.75",
|
|
41
41
|
"@iconify/utils": "^3.1.7"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
+
"@lexical/react": "^0.53.0",
|
|
44
45
|
"@types/react": "^19.3.0",
|
|
45
46
|
"@types/react-dom": "^19.3.0",
|
|
46
47
|
"@vanilla-extract/css": "^1.21.3",
|
|
47
48
|
"@vanilla-extract/vite-plugin": "^5.2.6",
|
|
49
|
+
"lexical": "^0.53.0",
|
|
48
50
|
"react": "^19.3.1",
|
|
49
51
|
"react-dom": "^19.3.1",
|
|
50
52
|
"typescript": "^7.0.2",
|
|
51
53
|
"unplugin-dts": "^1.1.2",
|
|
52
|
-
"vite": "^8.3.
|
|
54
|
+
"vite": "^8.3.5"
|
|
53
55
|
},
|
|
54
56
|
"peerDependencies": {
|
|
55
|
-
"@haklex/rich-editor": "^0.
|
|
56
|
-
"@haklex/rich-editor-ui": "^0.
|
|
57
|
-
"@haklex/rich-style-token": "^0.
|
|
57
|
+
"@haklex/rich-editor": "^0.61.1",
|
|
58
|
+
"@haklex/rich-editor-ui": "^0.61.1",
|
|
59
|
+
"@haklex/rich-style-token": "^0.61.1",
|
|
58
60
|
"lucide-react": "^1.0.0",
|
|
59
61
|
"react": ">=19",
|
|
60
62
|
"react-dom": ">=19"
|