diff --git a/package-lock.json b/package-lock.json index 73dd077..1040223 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "packages/*" ], "devDependencies": { - "@lvce-editor/eslint-config": "^17.5.0", + "@lvce-editor/eslint-config": "^17.6.0", "eslint": "^10.8.0", "prettier": "^3.9.5", "typescript": "^6.0.3" @@ -2932,9 +2932,9 @@ } }, "node_modules/@lvce-editor/eslint-config": { - "version": "17.5.0", - "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-config/-/eslint-config-17.5.0.tgz", - "integrity": "sha512-wjDaVd24PNVZdjbV8EcQYrbEWsKAJ9mak03EUIMTT6+tHVwlg9G1P2eDvqpxyMSmY3ywBKhAPigEjY2pwnCGUQ==", + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-config/-/eslint-config-17.6.0.tgz", + "integrity": "sha512-RsoXrwtogesQApVrpbZ7utR6qGHEetFFxJJu7CCrOXgve5sl6glWS5XRC/rAVUNgmmMRJVpj9ajuE0FPzzK92Q==", "dev": true, "license": "MIT", "workspaces": [ @@ -2947,15 +2947,15 @@ "@eslint/js": "10.0.1", "@eslint/json": "2.0.1", "@eslint/markdown": "8.0.3", - "@lvce-editor/eslint-plugin-devcontainer": "17.5.0", - "@lvce-editor/eslint-plugin-e2e": "17.5.0", - "@lvce-editor/eslint-plugin-extension-json": "17.5.0", - "@lvce-editor/eslint-plugin-github-actions": "17.5.0", - "@lvce-editor/eslint-plugin-nvmrc": "17.5.0", - "@lvce-editor/eslint-plugin-regex": "17.5.0", - "@lvce-editor/eslint-plugin-rpc": "17.5.0", - "@lvce-editor/eslint-plugin-tsconfig": "17.5.0", - "@lvce-editor/eslint-plugin-virtual-dom": "17.5.0", + "@lvce-editor/eslint-plugin-devcontainer": "17.6.0", + "@lvce-editor/eslint-plugin-e2e": "17.6.0", + "@lvce-editor/eslint-plugin-extension-json": "17.6.0", + "@lvce-editor/eslint-plugin-github-actions": "17.6.0", + "@lvce-editor/eslint-plugin-nvmrc": "17.6.0", + "@lvce-editor/eslint-plugin-regex": "17.6.0", + "@lvce-editor/eslint-plugin-rpc": "17.6.0", + "@lvce-editor/eslint-plugin-tsconfig": "17.6.0", + "@lvce-editor/eslint-plugin-virtual-dom": "17.6.0", "eslint-plugin-jest": "29.15.4", "eslint-plugin-n": "18.2.1", "eslint-plugin-package-json": "1.5.0", @@ -2970,9 +2970,9 @@ } }, "node_modules/@lvce-editor/eslint-plugin-devcontainer": { - "version": "17.5.0", - "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-devcontainer/-/eslint-plugin-devcontainer-17.5.0.tgz", - "integrity": "sha512-wNemW3CGngT/bRzB2ldVWW5++V/Xq549Hkbf7ZCc00XGxJhupZKTAYL3qCQvpdT5OJTUFc58Z9ddg42OLVENiQ==", + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-devcontainer/-/eslint-plugin-devcontainer-17.6.0.tgz", + "integrity": "sha512-AmxCDywiOQAjq1HMnCLvVnxYuPwxrgopQ1o0/9VS8y2msNUGQ3/Mi1Mk+JJx+vE7wrCw83xZYbQmtBrdx40Ssg==", "dev": true, "license": "MIT", "dependencies": { @@ -2980,16 +2980,16 @@ } }, "node_modules/@lvce-editor/eslint-plugin-e2e": { - "version": "17.5.0", - "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-e2e/-/eslint-plugin-e2e-17.5.0.tgz", - "integrity": "sha512-xGWeOY+aitgaKgxCVeRSJfEWMLf39u5wnq0uA3ZnZKFWXEHpZO3CaJi+9rw7KgFK7TcqgpxsaAHTENYEoabJHQ==", + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-e2e/-/eslint-plugin-e2e-17.6.0.tgz", + "integrity": "sha512-Xxd7YBrU5TxlpUhc8YMO/IaEeCcLVKNUHMu6O+dvHHr5hF1orxSCfobTHchObDw+uPrcZWYFEk8o+2R1FJUEKQ==", "dev": true, "license": "MIT" }, "node_modules/@lvce-editor/eslint-plugin-extension-json": { - "version": "17.5.0", - "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-extension-json/-/eslint-plugin-extension-json-17.5.0.tgz", - "integrity": "sha512-F7qOAYW1LhFntc2f5Yn1QQqArqgVLi1tW6vRNzgWIptlrZTib0cGFG4jKOL7ZgB5uDl0mZWlZ9q1Q1T055eWhg==", + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-extension-json/-/eslint-plugin-extension-json-17.6.0.tgz", + "integrity": "sha512-tD/whQxE59mN2q3so3xFmvasqQteYCZX3fmbVuGzjQy74P6kFtI6ZWgkP0x3cHyP3JtB0e9Kin0dc1bPk1a9lg==", "dev": true, "license": "MIT", "dependencies": { @@ -2997,9 +2997,9 @@ } }, "node_modules/@lvce-editor/eslint-plugin-github-actions": { - "version": "17.5.0", - "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-github-actions/-/eslint-plugin-github-actions-17.5.0.tgz", - "integrity": "sha512-RhphHPbVQHqRu2yAZ/XnUdpP67BbPrIIrAvdkqSnitCVu65DDTTN1YVZMNdNv8cYue8V3V8eUMIf8WaNFBdJEQ==", + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-github-actions/-/eslint-plugin-github-actions-17.6.0.tgz", + "integrity": "sha512-GAoDHossq4mUrznh9BrAuAONPQMZyN9MND/+eXdZpnRLrn7Ng8KSJKl0Vs8c4a+peJ9uIDSae71lp5Q5t7251w==", "dev": true, "license": "MIT", "dependencies": { @@ -3008,9 +3008,9 @@ } }, "node_modules/@lvce-editor/eslint-plugin-nvmrc": { - "version": "17.5.0", - "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-nvmrc/-/eslint-plugin-nvmrc-17.5.0.tgz", - "integrity": "sha512-mYcLlKt8Y2wKlM13xFXKaYDvKDOj/O5nnfj51oW7UTItROxtlD848eaXcxpLrH5iLTW5wC3G3Oz9ftwoGmqq7A==", + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-nvmrc/-/eslint-plugin-nvmrc-17.6.0.tgz", + "integrity": "sha512-gTSF7iBiCcePmQegfaKAwHE5DA5LBc+yFOOKqA9bWQzKXf+9FdBZ2O6HikW1ms+lpbtG+SIYST5SBu710I1OrA==", "dev": true, "license": "MIT", "dependencies": { @@ -3018,23 +3018,23 @@ } }, "node_modules/@lvce-editor/eslint-plugin-regex": { - "version": "17.5.0", - "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-regex/-/eslint-plugin-regex-17.5.0.tgz", - "integrity": "sha512-PER04Hz35vvDFWXPK9wkSyAXB/H5aGGPE6i8nesbmGUP43fqT+7f9Kf5wzRUbUOdZ8HuFcnVQZALMbaEe1NcSg==", + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-regex/-/eslint-plugin-regex-17.6.0.tgz", + "integrity": "sha512-l7lsqZtQpuabIaw3FEhYCfb8dDwZ0BMCx5jj9ZG03ST5KceOL5WB2DGXGcflRvQKbyHPqngQH88r/bAMvbR2+Q==", "dev": true, "license": "MIT" }, "node_modules/@lvce-editor/eslint-plugin-rpc": { - "version": "17.5.0", - "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-rpc/-/eslint-plugin-rpc-17.5.0.tgz", - "integrity": "sha512-7dfk74/7pFDK2fWnDK1M8OP46ehlMiK2TlOZYvsg3kU0J4dC0m7emnwvWKCgzyd/rNVPsTyqcz8PSM3U+4Lf4Q==", + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-rpc/-/eslint-plugin-rpc-17.6.0.tgz", + "integrity": "sha512-Y+ny8qJUBU2y75JCgxG6Rd+WZ9G1M6+bu7tRGgRSDLxLrkfkk1mIAT3i8XnT+qs9/E6+S4+AiGR3ulPU1OsKOg==", "dev": true, "license": "MIT" }, "node_modules/@lvce-editor/eslint-plugin-tsconfig": { - "version": "17.5.0", - "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-tsconfig/-/eslint-plugin-tsconfig-17.5.0.tgz", - "integrity": "sha512-505lmJeM12Bq5eTZ5FMjB7qmbSu0Xi8bjVCbBSjyMNAVhCAiEUfuWXq0TeiJFeT40GzF88On0GPYHxS+dviWmQ==", + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-tsconfig/-/eslint-plugin-tsconfig-17.6.0.tgz", + "integrity": "sha512-c/W6eplqZKJjKtkpKNF3vKttJImCEvVfOHgOgAW2yDzpC51qmpfwjPCwn7UrYhr58q/lKt7ZfTSAazhoP+T9cQ==", "dev": true, "license": "MIT", "dependencies": { @@ -3042,9 +3042,9 @@ } }, "node_modules/@lvce-editor/eslint-plugin-virtual-dom": { - "version": "17.5.0", - "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-virtual-dom/-/eslint-plugin-virtual-dom-17.5.0.tgz", - "integrity": "sha512-sGiPawCOnR4E/8Bb+NTLlPpmvYS/t2vYrPwoG9/KVUq6gRnj3M34pQw2vsxP9A+PYig5LeL9TX5Wjj//DYVpXA==", + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/@lvce-editor/eslint-plugin-virtual-dom/-/eslint-plugin-virtual-dom-17.6.0.tgz", + "integrity": "sha512-Y3QGtPg62OlfVRtojbKHuv+1iuI9TwTNW9RFjCpvuVP+qcm1tF3CfqKngAZATkvYsQfvqXX4J8GXUdm80oyJ2g==", "dev": true, "license": "MIT" }, diff --git a/package.json b/package.json index c0d99c5..ea50545 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "printWidth": 170 }, "devDependencies": { - "@lvce-editor/eslint-config": "^17.5.0", + "@lvce-editor/eslint-config": "^17.6.0", "eslint": "^10.8.0", "prettier": "^3.9.5", "typescript": "^6.0.3" diff --git a/packages/diff-view/src/parts/GetCursorDom/GetCursorDom.ts b/packages/diff-view/src/parts/GetCursorDom/GetCursorDom.ts index ad4e773..ee76929 100644 --- a/packages/diff-view/src/parts/GetCursorDom/GetCursorDom.ts +++ b/packages/diff-view/src/parts/GetCursorDom/GetCursorDom.ts @@ -8,13 +8,12 @@ const diffEditorSelectionsNode: VirtualDomNode = { type: VirtualDomElements.Div, } +const editorCursorNode: VirtualDomNode = { + childCount: 0, + className: mergeClassNames(ClassNames.EditorCursor, ClassNames.EditorCursorRight), + type: VirtualDomElements.Div, +} + export const getCursorDom = (): readonly VirtualDomNode[] => { - return [ - diffEditorSelectionsNode, - { - childCount: 0, - className: mergeClassNames(ClassNames.EditorCursor, ClassNames.EditorCursorRight), - type: VirtualDomElements.Div, - }, - ] + return [diffEditorSelectionsNode, editorCursorNode] } diff --git a/packages/diff-view/src/parts/GetImageLeftDom/GetImageLeftDom.ts b/packages/diff-view/src/parts/GetImageLeftDom/GetImageLeftDom.ts index c86af93..ee75f09 100644 --- a/packages/diff-view/src/parts/GetImageLeftDom/GetImageLeftDom.ts +++ b/packages/diff-view/src/parts/GetImageLeftDom/GetImageLeftDom.ts @@ -10,14 +10,16 @@ const imageContentNode: VirtualDomNode = { type: VirtualDomElements.Div, } +const diffEditorContentNode: VirtualDomNode = { + childCount: 1, + className: mergeClassNames(ClassNames.DiffEditorContent, ClassNames.DiffEditorContentLeft), + onClick: DomEventListenerFunctions.HandleClickLeftSide, + type: VirtualDomElements.Div, +} + export const getImageLeftDom = (uriLeft: string, imageSrc: string): readonly VirtualDomNode[] => { return [ - { - childCount: 1, - className: mergeClassNames(ClassNames.DiffEditorContent, ClassNames.DiffEditorContentLeft), - onClick: DomEventListenerFunctions.HandleClickLeftSide, - type: VirtualDomElements.Div, - }, + diffEditorContentNode, imageContentNode, { alt: uriLeft, diff --git a/packages/diff-view/src/parts/GetImageRightDom/GetImageRightDom.ts b/packages/diff-view/src/parts/GetImageRightDom/GetImageRightDom.ts index 665bb29..b42b394 100644 --- a/packages/diff-view/src/parts/GetImageRightDom/GetImageRightDom.ts +++ b/packages/diff-view/src/parts/GetImageRightDom/GetImageRightDom.ts @@ -10,14 +10,16 @@ const imageContentNode: VirtualDomNode = { type: VirtualDomElements.Div, } +const diffEditorContentNode: VirtualDomNode = { + childCount: 1, + className: mergeClassNames(ClassNames.DiffEditorContent, ClassNames.DiffEditorContentRight), + onClick: DomEventListenerFunctions.HandleClickRightSide, + type: VirtualDomElements.Div, +} + export const getImageRightDom = (uriRight: string, imageSrc: string): readonly VirtualDomNode[] => { return [ - { - childCount: 1, - className: mergeClassNames(ClassNames.DiffEditorContent, ClassNames.DiffEditorContentRight), - onClick: DomEventListenerFunctions.HandleClickRightSide, - type: VirtualDomElements.Div, - }, + diffEditorContentNode, imageContentNode, { alt: uriRight,