@net-vim/core 0.5.0 → 0.5.2
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 +2 -0
- package/dist/index.js +1093 -1068
- package/dist/src/WebGLRenderer.d.ts +1 -0
- package/dist/src/types.d.ts +1 -0
- package/dist/src/vim-engine.d.ts +3 -1
- package/package.json +10 -9
package/dist/src/types.d.ts
CHANGED
|
@@ -130,6 +130,7 @@ export interface VimAPI {
|
|
|
130
130
|
registerCommand: (name: string, callback: (args: string[]) => void) => void;
|
|
131
131
|
getBuffer: () => string[];
|
|
132
132
|
setBuffer: (buffer: string[]) => void;
|
|
133
|
+
requestFocus: () => void;
|
|
133
134
|
getCursor: () => {
|
|
134
135
|
x: number;
|
|
135
136
|
y: number;
|
package/dist/src/vim-engine.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare class VimEngine {
|
|
|
19
19
|
private contextMenuItems;
|
|
20
20
|
private commands;
|
|
21
21
|
private onUpdate;
|
|
22
|
+
private requestFocus;
|
|
22
23
|
private eventListeners;
|
|
23
24
|
private pluginManager;
|
|
24
25
|
private fs;
|
|
@@ -45,9 +46,10 @@ export declare class VimEngine {
|
|
|
45
46
|
private pickerDebounceTimeout;
|
|
46
47
|
private lastSearchPattern;
|
|
47
48
|
private lastSearchForward;
|
|
48
|
-
constructor(onUpdate: () => void);
|
|
49
|
+
constructor(onUpdate: () => void, requestFocus: () => void);
|
|
49
50
|
init(): Promise<void>;
|
|
50
51
|
setUpdateCallback(onUpdate: () => void): void;
|
|
52
|
+
setRequestFocus(requestFocus: () => void): void;
|
|
51
53
|
private registerBuiltinCommands;
|
|
52
54
|
private openDirectory;
|
|
53
55
|
private openFile;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@net-vim/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Vim-compatible editor engine and component library for the web.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -44,9 +44,15 @@
|
|
|
44
44
|
"types": "./dist/index.d.ts"
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"sync-wasm": "cp -r ../../crates/tui-engine/pkg/* ./src/wasm/",
|
|
49
|
+
"build": "npm run sync-wasm && vite build",
|
|
50
|
+
"prepublishOnly": "npm run build",
|
|
51
|
+
"test": "vitest run"
|
|
52
|
+
},
|
|
47
53
|
"dependencies": {
|
|
48
|
-
"
|
|
49
|
-
"
|
|
54
|
+
"@net-vim/virtual-keyboard": "workspace:*",
|
|
55
|
+
"solid-js": "^1.9.11"
|
|
50
56
|
},
|
|
51
57
|
"devDependencies": {
|
|
52
58
|
"typescript": "~5.9.3",
|
|
@@ -55,10 +61,5 @@
|
|
|
55
61
|
"vite-plugin-solid": "^2.11.10",
|
|
56
62
|
"vite-plugin-top-level-await": "^1.6.0",
|
|
57
63
|
"vite-plugin-wasm": "^3.5.0"
|
|
58
|
-
},
|
|
59
|
-
"scripts": {
|
|
60
|
-
"sync-wasm": "cp -r ../../crates/tui-engine/pkg/* ./src/wasm/",
|
|
61
|
-
"build": "npm run sync-wasm && vite build",
|
|
62
|
-
"test": "vitest run"
|
|
63
64
|
}
|
|
64
|
-
}
|
|
65
|
+
}
|