@lvce-editor/rpc-registry 3.13.0 → 4.1.0
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/dist/index.d.ts +35 -444
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -3,31 +3,21 @@
|
|
|
3
3
|
import { RpcId } from '@lvce-editor/constants';
|
|
4
4
|
import { Rpc, MockRpc } from '@lvce-editor/rpc';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
readonly "ClipBoard.readNativeFiles": () => Promise<any>;
|
|
9
|
-
readonly "ClipBoard.writeNativeFiles": (type: string, files: readonly string[]) => Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
declare const invoke: <T extends keyof ClipBoardProcessApi>(method: T, ...params: Parameters<ClipBoardProcessApi[T]>) => ReturnType<ClipBoardProcessApi[T]>, invokeAndTransfer: <T extends keyof ClipBoardProcessApi>(method: T, ...params: Parameters<ClipBoardProcessApi[T]>) => ReturnType<ClipBoardProcessApi[T]>, set: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose: () => Promise<void>;
|
|
12
|
-
export interface ClipBoardWorkerApi {
|
|
13
|
-
readonly "ClipBoard.writeText": (text: string) => Promise<void>;
|
|
14
|
-
readonly "ClipBoard.readNativeFiles": () => Promise<any>;
|
|
15
|
-
readonly "ClipBoard.writeNativeFiles": (type: string, files: readonly string[]) => Promise<void>;
|
|
16
|
-
}
|
|
17
|
-
declare const invoke$1: <T extends keyof ClipBoardWorkerApi>(method: T, ...params: Parameters<ClipBoardWorkerApi[T]>) => ReturnType<ClipBoardWorkerApi[T]>, invokeAndTransfer$1: <T extends keyof ClipBoardWorkerApi>(method: T, ...params: Parameters<ClipBoardWorkerApi[T]>) => ReturnType<ClipBoardWorkerApi[T]>, set$1: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$1: () => Promise<void>;
|
|
6
|
+
declare const invoke: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer: (method: string, ...params: readonly unknown[]) => Promise<any>, set: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose: () => Promise<void>;
|
|
7
|
+
declare const invoke$1: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$1: (method: string, ...params: readonly unknown[]) => Promise<any>, set$1: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$1: () => Promise<void>;
|
|
18
8
|
declare const writeText: (text: string) => Promise<void>;
|
|
19
9
|
declare const readText: () => Promise<string>;
|
|
20
10
|
declare const writeImage: (image: any) => Promise<void>;
|
|
21
11
|
declare const readNativeFiles: () => Promise<readonly any[]>;
|
|
22
|
-
|
|
23
|
-
readonly "Debug.pause": () => Promise<void>;
|
|
24
|
-
readonly "Debug.resume": () => Promise<void>;
|
|
25
|
-
}
|
|
26
|
-
declare const invoke$2: <T extends keyof DebugWorkerApi>(method: T, ...params: Parameters<DebugWorkerApi[T]>) => ReturnType<DebugWorkerApi[T]>, invokeAndTransfer$2: <T extends keyof DebugWorkerApi>(method: T, ...params: Parameters<DebugWorkerApi[T]>) => ReturnType<DebugWorkerApi[T]>, set$2: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$2: () => Promise<void>;
|
|
12
|
+
declare const invoke$2: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$2: (method: string, ...params: readonly unknown[]) => Promise<any>, set$2: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$2: () => Promise<void>;
|
|
27
13
|
export interface Range {
|
|
28
14
|
readonly rowIndex: number;
|
|
29
15
|
readonly columnIndex: number;
|
|
30
16
|
}
|
|
17
|
+
export interface Selection {
|
|
18
|
+
readonly start: Range;
|
|
19
|
+
readonly end: Range;
|
|
20
|
+
}
|
|
31
21
|
export interface Change {
|
|
32
22
|
readonly start: Range;
|
|
33
23
|
readonly end: Range;
|
|
@@ -41,16 +31,7 @@ export interface PositionAtCursor {
|
|
|
41
31
|
readonly rowIndex: number;
|
|
42
32
|
readonly columnIndex: number;
|
|
43
33
|
}
|
|
44
|
-
|
|
45
|
-
readonly "Editor.getPositionAtCursor": (uid: number) => Promise<PositionAtCursor>;
|
|
46
|
-
readonly "Editor.getWordAt2": (uid: number, rowIndex: number, columnIndex: number) => Promise<string>;
|
|
47
|
-
readonly "Editor.getWordAtOffset2": (uid: number) => Promise<string>;
|
|
48
|
-
readonly "Editor.getWordBefore2": (editorUid: number, rowIndex: number, columnIndex: number) => Promise<string>;
|
|
49
|
-
readonly "Editor.getLines2": (editorUid: number) => Promise<readonly string[]>;
|
|
50
|
-
readonly "Editor.getSelections2": (editorUid: number) => Promise<readonly number[]>;
|
|
51
|
-
readonly "Editor.updateDebugInfo": (key: string) => Promise<void>;
|
|
52
|
-
}
|
|
53
|
-
declare const invoke$3: <T extends keyof EditorWorkerApi>(method: T, ...params: Parameters<EditorWorkerApi[T]>) => ReturnType<EditorWorkerApi[T]>, invokeAndTransfer$3: <T extends keyof EditorWorkerApi>(method: T, ...params: Parameters<EditorWorkerApi[T]>) => ReturnType<EditorWorkerApi[T]>, set$3: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$3: () => Promise<void>;
|
|
34
|
+
declare const invoke$3: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$3: (method: string, ...params: readonly unknown[]) => Promise<any>, set$3: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$3: () => Promise<void>;
|
|
54
35
|
declare const sendMessagePortToExtensionHostWorker: (port: MessagePort) => Promise<void>;
|
|
55
36
|
declare const activateByEvent: (event: string) => Promise<void>;
|
|
56
37
|
declare const applyEdit: (editorUid: number, changes: readonly Change[]) => Promise<void>;
|
|
@@ -68,44 +49,8 @@ declare const getUri: (editorUid: number) => Promise<string>;
|
|
|
68
49
|
declare const getLanguageId: (editorUid: number) => Promise<string>;
|
|
69
50
|
declare const getProblems: () => Promise<readonly any[]>;
|
|
70
51
|
declare const registerMockRpc: (commandMap: Record<string, any>) => MockRpc;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
readonly "ElectronWebContentsView.attachEventListeners": (webContentsId: any) => Promise<void>;
|
|
74
|
-
readonly "ElectronWebContentsView.backward": (id: any) => Promise<void>;
|
|
75
|
-
readonly "ElectronWebContentsView.cancelNavigation": (id: any) => Promise<any>;
|
|
76
|
-
readonly "ElectronWebContentsView.copyImageAt": (id: any, x: number, y: number) => Promise<void>;
|
|
77
|
-
readonly "ElectronWebContentsView.createWebContentsView": (webContentsId: any) => Promise<any>;
|
|
78
|
-
readonly "ElectronWebContentsView.disposeWebContentsView": (webContentsId: any) => Promise<void>;
|
|
79
|
-
readonly "ElectronWebContentsView.focus": (id: any) => Promise<void>;
|
|
80
|
-
readonly "ElectronWebContentsView.forward": (id: any) => Promise<void>;
|
|
81
|
-
readonly "ElectronWebContentsView.getDomTree": (id: any) => Promise<string>;
|
|
82
|
-
readonly "ElectronWebContentsView.getStats": (id: any, keyBindings: any) => Promise<any>;
|
|
83
|
-
readonly "ElectronWebContentsView.hide": (id: any) => Promise<void>;
|
|
84
|
-
readonly "ElectronWebContentsView.insertCss": (id: any, css: string) => Promise<void>;
|
|
85
|
-
readonly "ElectronWebContentsView.insertJavaScript": (id: any, code: string) => Promise<any>;
|
|
86
|
-
readonly "ElectronWebContentsView.inspectElement": (id: any, x: number, y: number) => Promise<void>;
|
|
87
|
-
readonly "ElectronWebContentsView.openDevtools": (id: any) => Promise<void>;
|
|
88
|
-
readonly "ElectronWebContentsView.reload": (id: any) => Promise<void>;
|
|
89
|
-
readonly "ElectronWebContentsView.resizeBrowserView": (id: any, x: number, y: number, width: number, height: number) => Promise<void>;
|
|
90
|
-
readonly "ElectronWebContentsView.setIframeSrc": (id: any, iframeSrc: string) => Promise<void>;
|
|
91
|
-
readonly "ElectronWebContentsView.setIframeSrcFallback": (id: any, code: any, error: any) => Promise<void>;
|
|
92
|
-
readonly "ElectronWebContentsView.show": (id: any) => Promise<void>;
|
|
93
|
-
readonly "ElectronWebContentsViewFunctions.getStats": (id: any, ...args: readonly any[]) => Promise<any>;
|
|
94
|
-
readonly "ElectronWebContentsViewFunctions.resizeBrowserView": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
95
|
-
readonly "ElectronWebContentsViewFunctions.setBackgroundColor": (webContentsId: any, backgroundColor: string) => Promise<void>;
|
|
96
|
-
readonly "ElectronWebContentsViewFunctions.setFallthroughKeyBindings": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
97
|
-
readonly "ElectronWebContentsViewFunctions.setIframeSrc": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
98
|
-
readonly "ElectronWebContentsViewFunctions.setIframeSrcFallback": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
99
|
-
readonly "ElectronWebContentsViewFunctions.show": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
100
|
-
}
|
|
101
|
-
declare const invoke$4: <T extends keyof EmbedsProcessApi>(method: T, ...params: Parameters<EmbedsProcessApi[T]>) => ReturnType<EmbedsProcessApi[T]>, invokeAndTransfer$4: <T extends keyof EmbedsProcessApi>(method: T, ...params: Parameters<EmbedsProcessApi[T]>) => ReturnType<EmbedsProcessApi[T]>, set$4: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$4: () => Promise<void>;
|
|
102
|
-
export interface ErrorWorkerApi {
|
|
103
|
-
readonly "Errors.prepare": (error: any) => Promise<any>;
|
|
104
|
-
}
|
|
105
|
-
declare const invoke$5: <T extends "Errors.prepare">(method: T, ...params: Parameters<ErrorWorkerApi[T]>) => ReturnType<ErrorWorkerApi[T]>, invokeAndTransfer$5: <T extends "Errors.prepare">(method: T, ...params: Parameters<ErrorWorkerApi[T]>) => ReturnType<ErrorWorkerApi[T]>, set$5: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$5: () => Promise<void>;
|
|
106
|
-
export interface ExtensionHostWorkerApi {
|
|
107
|
-
readonly "Extensions.getExtensions": () => Promise<readonly any[]>;
|
|
108
|
-
}
|
|
52
|
+
declare const invoke$4: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$4: (method: string, ...params: readonly unknown[]) => Promise<any>, set$4: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$4: () => Promise<void>;
|
|
53
|
+
declare const invoke$5: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$5: (method: string, ...params: readonly unknown[]) => Promise<any>, set$5: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$5: () => Promise<void>;
|
|
109
54
|
export interface RuntimeStatus {
|
|
110
55
|
readonly id: string;
|
|
111
56
|
readonly activationEvent: string;
|
|
@@ -113,24 +58,12 @@ export interface RuntimeStatus {
|
|
|
113
58
|
readonly activationTime: number;
|
|
114
59
|
readonly importTime: number;
|
|
115
60
|
}
|
|
116
|
-
declare const invoke$6:
|
|
61
|
+
declare const invoke$6: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$6: (method: string, ...params: readonly unknown[]) => Promise<any>, set$6: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$6: () => Promise<void>;
|
|
117
62
|
declare const executeReferenceProvider: (id: number, offset: number) => Promise<readonly any[]>;
|
|
118
63
|
declare const executeFileReferenceProvider: (id: number) => Promise<readonly any[]>;
|
|
119
64
|
declare const getRuntimeStatus: (extensionId: string) => Promise<RuntimeStatus>;
|
|
120
65
|
declare const registerMockRpc$1: (commandMap: Record<string, any>) => MockRpc;
|
|
121
|
-
|
|
122
|
-
readonly "FileSystem.copy": (oldUri: string, newUri: string) => Promise<void>;
|
|
123
|
-
readonly "FileSystem.getPathSeparator": () => Promise<string>;
|
|
124
|
-
readonly "FileSystem.getRealPath": (uri: string) => Promise<string>;
|
|
125
|
-
readonly "FileSystem.mkdir": (uri: string) => Promise<void>;
|
|
126
|
-
readonly "FileSystem.readDirWithFileTypes": (uri: string) => Promise<readonly any[]>;
|
|
127
|
-
readonly "FileSystem.readFile": (uri: string) => Promise<string>;
|
|
128
|
-
readonly "FileSystem.remove": (uri: string) => Promise<void>;
|
|
129
|
-
readonly "FileSystem.rename": (oldUri: string, newUri: string) => Promise<void>;
|
|
130
|
-
readonly "FileSystem.stat": (uri: string) => Promise<any>;
|
|
131
|
-
readonly "FileSystem.writeFile": (uri: string, content: string) => Promise<void>;
|
|
132
|
-
}
|
|
133
|
-
declare const invoke$7: <T extends keyof FileSystemProcessApi>(method: T, ...params: Parameters<FileSystemProcessApi[T]>) => ReturnType<FileSystemProcessApi[T]>, invokeAndTransfer$7: <T extends keyof FileSystemProcessApi>(method: T, ...params: Parameters<FileSystemProcessApi[T]>) => ReturnType<FileSystemProcessApi[T]>, set$7: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$7: () => Promise<void>;
|
|
66
|
+
declare const invoke$7: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$7: (method: string, ...params: readonly unknown[]) => Promise<any>, set$7: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$7: () => Promise<void>;
|
|
134
67
|
declare const remove: (uri: string) => Promise<void>;
|
|
135
68
|
declare const readFile: (uri: string) => Promise<string>;
|
|
136
69
|
declare const appendFile: (uri: string, text: string) => Promise<string>;
|
|
@@ -146,19 +79,7 @@ declare const copy: (oldUri: string, newUri: string) => Promise<void>;
|
|
|
146
79
|
declare const getFolderSize: (uri: string) => Promise<void>;
|
|
147
80
|
declare const exists: (uri: string) => Promise<boolean>;
|
|
148
81
|
declare const registerMockRpc$2: (commandMap: Record<string, any>) => MockRpc;
|
|
149
|
-
|
|
150
|
-
readonly "FileSystem.copy": (oldUri: string, newUri: string) => Promise<void>;
|
|
151
|
-
readonly "FileSystem.getPathSeparator": () => Promise<string>;
|
|
152
|
-
readonly "FileSystem.getRealPath": (uri: string) => Promise<string>;
|
|
153
|
-
readonly "FileSystem.mkdir": (uri: string) => Promise<void>;
|
|
154
|
-
readonly "FileSystem.readDirWithFileTypes": (uri: string) => Promise<readonly any[]>;
|
|
155
|
-
readonly "FileSystem.readFile": (uri: string) => Promise<string>;
|
|
156
|
-
readonly "FileSystem.remove": (uri: string) => Promise<void>;
|
|
157
|
-
readonly "FileSystem.rename": (oldUri: string, newUri: string) => Promise<void>;
|
|
158
|
-
readonly "FileSystem.stat": (uri: string) => Promise<any>;
|
|
159
|
-
readonly "FileSystem.writeFile": (uri: string, content: string) => Promise<void>;
|
|
160
|
-
}
|
|
161
|
-
declare const invoke$8: <T extends keyof FileSystemWorkerApi>(method: T, ...params: Parameters<FileSystemWorkerApi[T]>) => ReturnType<FileSystemWorkerApi[T]>, invokeAndTransfer$8: <T extends keyof FileSystemWorkerApi>(method: T, ...params: Parameters<FileSystemWorkerApi[T]>) => ReturnType<FileSystemWorkerApi[T]>, set$8: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$8: () => Promise<void>;
|
|
82
|
+
declare const invoke$8: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$8: (method: string, ...params: readonly unknown[]) => Promise<any>, set$8: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$8: () => Promise<void>;
|
|
162
83
|
declare const remove$1: (dirent: string) => Promise<void>;
|
|
163
84
|
declare const readDirWithFileTypes$1: (uri: string) => Promise<readonly any[]>;
|
|
164
85
|
declare const getPathSeparator$1: (root: string) => Promise<string>;
|
|
@@ -175,7 +96,7 @@ declare const getFolderSize$1: (uri: string) => Promise<number>;
|
|
|
175
96
|
declare const readFileAsBlob: (uri: string) => Promise<Blob>;
|
|
176
97
|
declare const appendFile$1: (uri: string, text: string) => Promise<string>;
|
|
177
98
|
declare const registerMockRpc$3: (commandMap: Record<string, any>) => MockRpc;
|
|
178
|
-
declare const invoke$9:
|
|
99
|
+
declare const invoke$9: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$9: (method: string, ...params: readonly unknown[]) => Promise<any>, set$9: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$9: () => Promise<void>;
|
|
179
100
|
declare const getIcons: (iconRequests: readonly any[]) => Promise<readonly any[]>;
|
|
180
101
|
declare const registerMockRpc$4: (commandMap: Record<string, any>) => MockRpc;
|
|
181
102
|
declare const NodeWorker = 1;
|
|
@@ -183,335 +104,16 @@ declare const NodeForkedProcess = 2;
|
|
|
183
104
|
declare const ElectronUtilityProcess = 3;
|
|
184
105
|
declare const ElectronMessagePort = 4;
|
|
185
106
|
declare const WebSocket$1 = 6;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
readonly "ElectronWebContents.dispose": (id: any) => Promise<void>;
|
|
189
|
-
readonly "ElectronWebContentsView.attachEventListeners": (webContentsId: any) => Promise<void>;
|
|
190
|
-
readonly "ElectronWebContentsView.createWebContentsView": (webContentsId: any) => Promise<any>;
|
|
191
|
-
readonly "ElectronWebContentsView.disposeWebContentsView": (webContentsId: any) => Promise<void>;
|
|
192
|
-
readonly "ElectronWebContentsViewFunctions.getStats": (id: any, ...args: readonly any[]) => Promise<any>;
|
|
193
|
-
readonly "ElectronWebContentsViewFunctions.resizeBrowserView": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
194
|
-
readonly "ElectronWebContentsViewFunctions.setBackgroundColor": (webContentsId: any, backgroundColor: string) => Promise<void>;
|
|
195
|
-
readonly "ElectronWebContentsViewFunctions.setFallthroughKeyBindings": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
196
|
-
readonly "ElectronWebContentsViewFunctions.setIframeSrc": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
197
|
-
readonly "ElectronWebContentsViewFunctions.setIframeSrcFallback": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
198
|
-
readonly "ElectronWebContentsViewFunctions.show": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
199
|
-
readonly "Trash.trash": (path: string) => Promise<void>;
|
|
200
|
-
}
|
|
201
|
-
declare const invoke$10: <T extends keyof MainProcessApi>(method: T, ...params: Parameters<MainProcessApi[T]>) => ReturnType<MainProcessApi[T]>, invokeAndTransfer$10: <T extends keyof MainProcessApi>(method: T, ...params: Parameters<MainProcessApi[T]>) => ReturnType<MainProcessApi[T]>, set$10: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$10: () => Promise<void>;
|
|
202
|
-
export interface MarkdownWorkerApi {
|
|
203
|
-
readonly "Markdown.getMarkDownVirtualDom": (html: string) => Promise<any>;
|
|
204
|
-
readonly "Markdown.renderMarkdown": (markdown: string, options: any) => Promise<void>;
|
|
205
|
-
}
|
|
206
|
-
declare const invoke$11: <T extends keyof MarkdownWorkerApi>(method: T, ...params: Parameters<MarkdownWorkerApi[T]>) => ReturnType<MarkdownWorkerApi[T]>, invokeAndTransfer$11: <T extends keyof MarkdownWorkerApi>(method: T, ...params: Parameters<MarkdownWorkerApi[T]>) => ReturnType<MarkdownWorkerApi[T]>, set$11: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$11: () => Promise<void>;
|
|
107
|
+
declare const invoke$10: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$10: (method: string, ...params: readonly unknown[]) => Promise<any>, set$10: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$10: () => Promise<void>;
|
|
108
|
+
declare const invoke$11: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$11: (method: string, ...params: readonly unknown[]) => Promise<any>, set$11: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$11: () => Promise<void>;
|
|
207
109
|
declare const getVirtualDom: (html: string) => Promise<readonly any[]>;
|
|
208
110
|
declare const render: (markdown: string, options?: any) => Promise<string>;
|
|
209
111
|
declare const registerMockRpc$5: (commandMap: Record<string, any>) => MockRpc;
|
|
210
|
-
|
|
211
|
-
readonly "Debug.pause": () => Promise<void>;
|
|
212
|
-
readonly "Debug.resume": () => Promise<void>;
|
|
213
|
-
}
|
|
214
|
-
declare const invoke$12: <T extends keyof RendererProcessApi>(method: T, ...params: Parameters<RendererProcessApi[T]>) => ReturnType<RendererProcessApi[T]>, invokeAndTransfer$12: <T extends keyof RendererProcessApi>(method: T, ...params: Parameters<RendererProcessApi[T]>) => ReturnType<RendererProcessApi[T]>, set$12: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$12: () => Promise<void>;
|
|
112
|
+
declare const invoke$12: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$12: (method: string, ...params: readonly unknown[]) => Promise<any>, set$12: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$12: () => Promise<void>;
|
|
215
113
|
declare const readClipBoardText: () => Promise<any>;
|
|
216
114
|
declare const readClipBoard: () => Promise<any>;
|
|
217
115
|
declare const writeClipBoard: (options: any) => Promise<void>;
|
|
218
|
-
|
|
219
|
-
readonly text: string;
|
|
220
|
-
readonly startRowIndex: number;
|
|
221
|
-
readonly startColumnIndex: number;
|
|
222
|
-
readonly endColumnIndex: number;
|
|
223
|
-
readonly endRowIndex: number;
|
|
224
|
-
}
|
|
225
|
-
export interface BulkReplacementEdit {
|
|
226
|
-
readonly uri: string;
|
|
227
|
-
readonly changes: readonly TextEdit[];
|
|
228
|
-
}
|
|
229
|
-
export interface ConfirmPromptOptions {
|
|
230
|
-
readonly title: string;
|
|
231
|
-
readonly confirmMessage: string;
|
|
232
|
-
}
|
|
233
|
-
export interface SearchResult {
|
|
234
|
-
readonly type: number;
|
|
235
|
-
readonly start: number;
|
|
236
|
-
readonly end: number;
|
|
237
|
-
readonly lineNumber: number;
|
|
238
|
-
readonly text: string;
|
|
239
|
-
}
|
|
240
|
-
export interface RendererWorkerApi {
|
|
241
|
-
readonly "About.focusNext": () => Promise<void>;
|
|
242
|
-
readonly "About.focusPrevious": () => Promise<void>;
|
|
243
|
-
readonly "About.handleClickClose": () => Promise<void>;
|
|
244
|
-
readonly "About.handleClickCopy": () => Promise<void>;
|
|
245
|
-
readonly "About.handleClickOk": () => Promise<void>;
|
|
246
|
-
readonly "About.showAbout": () => Promise<void>;
|
|
247
|
-
readonly "ActivityBar.focus": () => Promise<void>;
|
|
248
|
-
readonly "ActivityBar.focusFirst": () => Promise<void>;
|
|
249
|
-
readonly "ActivityBar.focusLast": () => Promise<void>;
|
|
250
|
-
readonly "ActivityBar.focusNext": () => Promise<void>;
|
|
251
|
-
readonly "ActivityBar.focusPrevious": () => Promise<void>;
|
|
252
|
-
readonly "ActivityBar.handleClick": (index: number) => Promise<void>;
|
|
253
|
-
readonly "ActivityBar.handleContextMenu": () => Promise<void>;
|
|
254
|
-
readonly "ActivityBar.selectCurrent": () => Promise<void>;
|
|
255
|
-
readonly "BulkReplacement.applyBulkReplacement": (edits: readonly BulkReplacementEdit[]) => Promise<void>;
|
|
256
|
-
readonly "ClipBoard.readNativeFiles": () => Promise<readonly string[]>;
|
|
257
|
-
readonly "ClipBoard.readText": () => Promise<string>;
|
|
258
|
-
readonly "ClipBoard.writeNativeFiles": (type: string, files: readonly string[]) => Promise<void>;
|
|
259
|
-
readonly "ClipBoard.writeText": (text: string) => Promise<void>;
|
|
260
|
-
readonly "ColorTheme.getColorThemeNames": () => Promise<readonly string[]>;
|
|
261
|
-
readonly "ColorTheme.setColorTheme": (id: string) => Promise<void>;
|
|
262
|
-
readonly "ConfirmPrompt.prompt": (confirmText: string, options: ConfirmPromptOptions) => Promise<boolean>;
|
|
263
|
-
readonly "ContextMenu.show": (x: number, y: number, id: any, ...args: readonly any[]) => Promise<void>;
|
|
264
|
-
readonly "Develop.openCacheFolder": () => Promise<void>;
|
|
265
|
-
readonly "Develop.openConfigFolder": () => Promise<void>;
|
|
266
|
-
readonly "Develop.openIframeInspector": () => Promise<void>;
|
|
267
|
-
readonly "Develop.openLogsFolder": () => Promise<void>;
|
|
268
|
-
readonly "Develop.openProcessExplorer": () => Promise<void>;
|
|
269
|
-
readonly "Develop.reloadColorTheme": () => Promise<void>;
|
|
270
|
-
readonly "Develop.toggleDeveloperTools": () => Promise<void>;
|
|
271
|
-
readonly "Editor.addAllMissingImports": () => Promise<void>;
|
|
272
|
-
readonly "Editor.braceCompletion": (text: string) => Promise<void>;
|
|
273
|
-
readonly "Editor.closeColorPicker": () => Promise<void>;
|
|
274
|
-
readonly "Editor.closeCompletion": () => Promise<void>;
|
|
275
|
-
readonly "Editor.contextMenu": (button: number, x: number, y: number) => Promise<void>;
|
|
276
|
-
readonly "Editor.copy": () => Promise<void>;
|
|
277
|
-
readonly "Editor.copyLineDown": () => Promise<void>;
|
|
278
|
-
readonly "Editor.copyLineUp": () => Promise<void>;
|
|
279
|
-
readonly "Editor.cursorCharacterLeft": () => Promise<void>;
|
|
280
|
-
readonly "Editor.cursorCharacterRight": () => Promise<void>;
|
|
281
|
-
readonly "Editor.cursorDown": () => Promise<void>;
|
|
282
|
-
readonly "Editor.cursorEnd": () => Promise<void>;
|
|
283
|
-
readonly "Editor.cursorHome": () => Promise<void>;
|
|
284
|
-
readonly "Editor.cursorSet": (rowIndex: number, columnIndex: number) => Promise<void>;
|
|
285
|
-
readonly "Editor.cursorUp": () => Promise<void>;
|
|
286
|
-
readonly "Editor.cursorWordLeft": () => Promise<void>;
|
|
287
|
-
readonly "Editor.cursorWordPartLeft": () => Promise<void>;
|
|
288
|
-
readonly "Editor.cursorWordPartRight": () => Promise<void>;
|
|
289
|
-
readonly "Editor.cursorWordRight": () => Promise<void>;
|
|
290
|
-
readonly "Editor.deleteAllLeft": () => Promise<void>;
|
|
291
|
-
readonly "Editor.deleteAllRight": () => Promise<void>;
|
|
292
|
-
readonly "Editor.format": () => Promise<void>;
|
|
293
|
-
readonly "Editor.getText": () => Promise<string>;
|
|
294
|
-
readonly "Editor.goToDefinition": () => Promise<void>;
|
|
295
|
-
readonly "Editor.goToTypeDefinition": () => Promise<void>;
|
|
296
|
-
readonly "Editor.handleContextMenu": (x: number, y: number) => Promise<void>;
|
|
297
|
-
readonly "Editor.insertLineBreak": () => Promise<void>;
|
|
298
|
-
readonly "Editor.openColorPicker": () => Promise<void>;
|
|
299
|
-
readonly "Editor.openCompletion": () => Promise<void>;
|
|
300
|
-
readonly "Editor.openFind": () => Promise<void>;
|
|
301
|
-
readonly "Editor.openRename": () => Promise<void>;
|
|
302
|
-
readonly "Editor.organizeImports": () => Promise<void>;
|
|
303
|
-
readonly "Editor.rename": () => Promise<void>;
|
|
304
|
-
readonly "Editor.setDeltaY": (deltaY: number) => Promise<void>;
|
|
305
|
-
readonly "Editor.setSelections": (selections: any) => Promise<void>;
|
|
306
|
-
readonly "Editor.showHover2": () => Promise<void>;
|
|
307
|
-
readonly "Editor.showSourceActions2": () => Promise<void>;
|
|
308
|
-
readonly "Editor.sortImports": () => Promise<void>;
|
|
309
|
-
readonly "Editor.tabCompletion": () => Promise<void>;
|
|
310
|
-
readonly "Editor.toggleBlockComment": () => Promise<void>;
|
|
311
|
-
readonly "Editor.toggleLineComment": () => Promise<void>;
|
|
312
|
-
readonly "Editor.type": (text: string) => Promise<void>;
|
|
313
|
-
readonly "EditorCompletion.closeDetais": () => Promise<void>;
|
|
314
|
-
readonly "EditorCompletion.openDetails": () => Promise<void>;
|
|
315
|
-
readonly "EditorCompletion.selectCurrentIndex": () => Promise<void>;
|
|
316
|
-
readonly "EditorCompletion.selectIndex": (index: number) => Promise<void>;
|
|
317
|
-
readonly "EditorSourceActions.selectCurrent": () => Promise<void>;
|
|
318
|
-
readonly "ElectronDialog.showMessageBox": (options: any) => Promise<any>;
|
|
319
|
-
readonly "ElectronWindow.close": () => Promise<void>;
|
|
320
|
-
readonly "ElectronWindow.maximize": () => Promise<void>;
|
|
321
|
-
readonly "ElectronWindow.minimize": () => Promise<void>;
|
|
322
|
-
readonly "ElectronWindow.unmaximize": () => Promise<void>;
|
|
323
|
-
readonly "ErrorHandling.showErrorDialog": (errorInfo: any) => Promise<void>;
|
|
324
|
-
readonly "Explorer.acceptEdit": () => Promise<void>;
|
|
325
|
-
readonly "Explorer.cancelEdit": () => Promise<void>;
|
|
326
|
-
readonly "Explorer.cancelTypeAhead": () => Promise<void>;
|
|
327
|
-
readonly "Explorer.expandAll": () => Promise<void>;
|
|
328
|
-
readonly "Explorer.expandRecursively": () => Promise<void>;
|
|
329
|
-
readonly "Explorer.focus": () => Promise<void>;
|
|
330
|
-
readonly "Explorer.focusFirst": () => Promise<void>;
|
|
331
|
-
readonly "Explorer.focusIndex": (index: number) => Promise<void>;
|
|
332
|
-
readonly "Explorer.focusLast": () => Promise<void>;
|
|
333
|
-
readonly "Explorer.handleArrowLeft": () => Promise<void>;
|
|
334
|
-
readonly "Explorer.handleBlur": () => Promise<void>;
|
|
335
|
-
readonly "Explorer.handleClick": (index: number) => Promise<void>;
|
|
336
|
-
readonly "Explorer.handleClickAt": (preventDefault: boolean, button: number, ctrlKey: number, shiftKey: number, x: number, y: number) => Promise<void>;
|
|
337
|
-
readonly "Explorer.handleClickCurrent": () => Promise<void>;
|
|
338
|
-
readonly "Explorer.handleContextMenuKeyboard": () => Promise<void>;
|
|
339
|
-
readonly "Explorer.handleDragLeave": () => Promise<void>;
|
|
340
|
-
readonly "Explorer.handleDragOver": (x: number, y: number) => Promise<void>;
|
|
341
|
-
readonly "Explorer.handleDrop": (x: number, y: number, fileIds: readonly number[], fileList: FileList | readonly File[]) => Promise<void>;
|
|
342
|
-
readonly "Explorer.handleInputBlur": () => Promise<void>;
|
|
343
|
-
readonly "Explorer.handleKeyDown": (key: string) => Promise<void>;
|
|
344
|
-
readonly "Explorer.newFile": () => Promise<void>;
|
|
345
|
-
readonly "Explorer.newFolder": () => Promise<void>;
|
|
346
|
-
readonly "Explorer.refresh": () => Promise<void>;
|
|
347
|
-
readonly "Explorer.removeDirent": () => Promise<void>;
|
|
348
|
-
readonly "Explorer.rename": () => Promise<void>;
|
|
349
|
-
readonly "Explorer.renameDirent": () => Promise<void>;
|
|
350
|
-
readonly "Explorer.selectAll": () => Promise<void>;
|
|
351
|
-
readonly "Explorer.selectDown": () => Promise<void>;
|
|
352
|
-
readonly "Explorer.selectIndices": (indices: readonly number[]) => Promise<void>;
|
|
353
|
-
readonly "Explorer.selectUp": () => Promise<void>;
|
|
354
|
-
readonly "Explorer.updateEditingValue": (value: string) => Promise<void>;
|
|
355
|
-
readonly "ExtensionDetail.open": (eextensionId: string) => Promise<void>;
|
|
356
|
-
readonly "ExtensionDetail.selectFeature": (name: string) => Promise<void>;
|
|
357
|
-
readonly "ExtensionDetail.selectTab": (name: string) => Promise<void>;
|
|
358
|
-
readonly "ExtensionHost.executeCommand": (id: string) => Promise<void>;
|
|
359
|
-
readonly "ExtensionHost.getCommands": () => Promise<readonly any[]>;
|
|
360
|
-
readonly "ExtensionHost.searchFileWithFetch": (uri: string) => Promise<readonly string[]>;
|
|
361
|
-
readonly "ExtensionHost.searchFileWithHtml": (uri: string) => Promise<readonly string[]>;
|
|
362
|
-
readonly "ExtensionHost.searchFileWithMemory": (uri: string) => Promise<readonly string[]>;
|
|
363
|
-
readonly "ExtensionHostManagement.activateByEvent": (event: string) => Promise<void>;
|
|
364
|
-
readonly "ExtensionHostTextSearch.executeTextSearchProvider": (scheme: string, query: string) => Promise<readonly SearchResult[]>;
|
|
365
|
-
readonly "ExtensionHostTextSearch.textSearchFetch": (scheme: string, root: string, query: string, options: any, assetDir: string) => Promise<readonly SearchResult[]>;
|
|
366
|
-
readonly "ExtensionHostTextSearch.textSearchHtml": (scheme: string, root: string, query: string) => Promise<readonly SearchResult[]>;
|
|
367
|
-
readonly "ExtensionHostTextSearch.textSearchMemory": (scheme: string, root: string, query: string, options: any, assetDir: string) => Promise<readonly SearchResult[]>;
|
|
368
|
-
readonly "ExtensionManagement.disable": (id: string) => Promise<void>;
|
|
369
|
-
readonly "ExtensionManagement.getAllExtensions": () => Promise<readonly any[]>;
|
|
370
|
-
readonly "ExtensionManagement.getExtension": (id: string) => Promise<any>;
|
|
371
|
-
readonly "ExtensionManagement.uninstall": (id: string) => Promise<void>;
|
|
372
|
-
readonly "ExtensionMeta.addNodeExtension": (absolutePath: string) => Promise<void>;
|
|
373
|
-
readonly "ExtensionMeta.addWebExtension": (absolutePath: string) => Promise<void>;
|
|
374
|
-
readonly "FileSystem.copy": (oldUri: string, newUri: string) => Promise<void>;
|
|
375
|
-
readonly "FileSystem.createFile": (uri: string) => Promise<void>;
|
|
376
|
-
readonly "FileSystem.getFolderSize": (uri: string) => Promise<number>;
|
|
377
|
-
readonly "FileSystem.getPathSeparator": (root: string) => Promise<string>;
|
|
378
|
-
readonly "FileSystem.getRealPath": (root: string) => Promise<string>;
|
|
379
|
-
readonly "FileSystem.mkdir": (uri: string) => Promise<void>;
|
|
380
|
-
readonly "FileSystem.readDirWithFileTypes": (uri: string) => Promise<readonly any[]>;
|
|
381
|
-
readonly "FileSystem.readFile": (uri: string) => Promise<string>;
|
|
382
|
-
readonly "FileSystem.remove": (uri: string) => Promise<void>;
|
|
383
|
-
readonly "FileSystem.rename": (oldUri: string, newUri: string) => Promise<void>;
|
|
384
|
-
readonly "FileSystem.stat": (root: string) => Promise<any>;
|
|
385
|
-
readonly "FileSystem.writeFile": (uri: string, content: string) => Promise<void>;
|
|
386
|
-
readonly "FileSystemHandle.getFileHandles": (fileIds: readonly number[]) => Promise<readonly FileSystemHandle[]>;
|
|
387
|
-
readonly "FileSystemHandle.getFilePathElectron": (file: File) => Promise<string>;
|
|
388
|
-
readonly "FindWidget.focusNext": () => Promise<void>;
|
|
389
|
-
readonly "FindWidget.handleInput": (value: string) => Promise<void>;
|
|
390
|
-
readonly "Focus.setFocus": (focusId: number) => Promise<void>;
|
|
391
|
-
readonly "Format.format": (editor: any) => Promise<any>;
|
|
392
|
-
readonly "GetEditorSourceActions.getEditorSourceActions": () => Promise<any>;
|
|
393
|
-
readonly "GetWindowId.getWindowId": () => Promise<number>;
|
|
394
|
-
readonly "IconTheme.getFileIcon": (options: any) => Promise<string>;
|
|
395
|
-
readonly "IconTheme.getFolderIcon": (options: any) => Promise<string>;
|
|
396
|
-
readonly "IconTheme.getIcons": (request: readonly any[]) => Promise<readonly string[]>;
|
|
397
|
-
readonly "IconTheme.setIconTheme": (id: string) => Promise<readonly string[]>;
|
|
398
|
-
readonly "IframeInspector.focusFirst": () => Promise<void>;
|
|
399
|
-
readonly "IframeInspector.focusLast": () => Promise<void>;
|
|
400
|
-
readonly "IframeInspector.focusNext": () => Promise<void>;
|
|
401
|
-
readonly "IframeInspector.focusPrevious": () => Promise<void>;
|
|
402
|
-
readonly "IframeInspector.selectIndex": (index: number) => Promise<void>;
|
|
403
|
-
readonly "IpcParent.create": (options: any) => Promise<void>;
|
|
404
|
-
readonly "KeyBindings.addKeyBinding": () => Promise<void>;
|
|
405
|
-
readonly "KeyBindings.changeWhenExpression": () => Promise<void>;
|
|
406
|
-
readonly "KeyBindings.clearInput": () => Promise<void>;
|
|
407
|
-
readonly "KeyBindings.copyCommandId": () => Promise<void>;
|
|
408
|
-
readonly "KeyBindings.copyCommandTitle": () => Promise<void>;
|
|
409
|
-
readonly "KeyBindings.focusFirst": () => Promise<void>;
|
|
410
|
-
readonly "KeyBindings.focusLast": () => Promise<void>;
|
|
411
|
-
readonly "KeyBindings.focusNext": () => Promise<void>;
|
|
412
|
-
readonly "KeyBindings.focusPrevious": () => Promise<void>;
|
|
413
|
-
readonly "KeyBindings.handleClick": (x: number, y: number) => Promise<void>;
|
|
414
|
-
readonly "KeyBindings.handleContextMenu": (button: number, x: number, y: number) => Promise<void>;
|
|
415
|
-
readonly "KeyBindings.handleDoubleClick": (x: number, y: number) => Promise<void>;
|
|
416
|
-
readonly "KeyBindings.handleInput": (value: string) => Promise<void>;
|
|
417
|
-
readonly "KeyBindings.handleWheel": (deltaMode: number, deltaY: number) => Promise<void>;
|
|
418
|
-
readonly "KeyBindings.removeKeyBinding": () => Promise<void>;
|
|
419
|
-
readonly "KeyBindings.resetKeyBinding": () => Promise<void>;
|
|
420
|
-
readonly "KeyBindings.showSameKeyBindings": () => Promise<void>;
|
|
421
|
-
readonly "KeyBindings.sortByPrecedence": () => Promise<void>;
|
|
422
|
-
readonly "KeyBindings.startRecordingKeys": () => Promise<void>;
|
|
423
|
-
readonly "KeyBindings.stopRecordingKeys": () => Promise<void>;
|
|
424
|
-
readonly "KeyBindings.toggleRecordingKeys": () => Promise<void>;
|
|
425
|
-
readonly "KeyBindingsInitial.getKeyBindings": () => Promise<readonly any[]>;
|
|
426
|
-
readonly "Layout.hideSideBar": () => Promise<void>;
|
|
427
|
-
readonly "Layout.showPanel": (id: string) => Promise<void>;
|
|
428
|
-
readonly "Main.closeActiveEditor": () => Promise<void>;
|
|
429
|
-
readonly "Main.closeAllEditors": () => Promise<void>;
|
|
430
|
-
readonly "Main.closeOthers": () => Promise<void>;
|
|
431
|
-
readonly "Main.closeTabsLeft": () => Promise<void>;
|
|
432
|
-
readonly "Main.closeTabsRight": () => Promise<void>;
|
|
433
|
-
readonly "Main.focusFirst": () => Promise<void>;
|
|
434
|
-
readonly "Main.focusLast": () => Promise<void>;
|
|
435
|
-
readonly "Main.focusNext": () => Promise<void>;
|
|
436
|
-
readonly "Main.focusPrevious": () => Promise<void>;
|
|
437
|
-
readonly "Main.openKeyBindings": () => Promise<void>;
|
|
438
|
-
readonly "Main.openUri": (uri: string, focus?: boolean, props?: any) => Promise<void>;
|
|
439
|
-
readonly "Main.splitRight": () => Promise<void>;
|
|
440
|
-
readonly "Markdown.renderMarkdown": (markdown: string, options: any) => Promise<string>;
|
|
441
|
-
readonly "Menu.selectItem": (text: string) => Promise<void>;
|
|
442
|
-
readonly "MouseActions.get": (uid: number, button: number, modifiers: any) => Promise<any>;
|
|
443
|
-
readonly "OpenNativeFolder.openNativeFolder": (path: string) => Promise<void>;
|
|
444
|
-
readonly "Preferences.get": (key: string) => Promise<any>;
|
|
445
|
-
readonly "Process.getChromeVersion": () => Promise<string>;
|
|
446
|
-
readonly "Process.getElectronVersion": () => Promise<string>;
|
|
447
|
-
readonly "Process.getNodeVersion": () => Promise<string>;
|
|
448
|
-
readonly "Process.getV8Version": () => Promise<string>;
|
|
449
|
-
readonly "RecentlyOpened.getRecentlyOpened": () => Promise<readonly string[]>;
|
|
450
|
-
readonly "Run And Debug.handlePaused": (params: any) => Promise<void>;
|
|
451
|
-
readonly "Run And Debug.handleResumed": (params: any) => Promise<void>;
|
|
452
|
-
readonly "Run And Debug.handleScriptParsed": (params: any) => Promise<void>;
|
|
453
|
-
readonly "Search.clearSearchResults": () => Promise<void>;
|
|
454
|
-
readonly "Search.collapseDetails": () => Promise<void>;
|
|
455
|
-
readonly "Search.dismissItem": () => Promise<void>;
|
|
456
|
-
readonly "Search.focusFirst": () => Promise<void>;
|
|
457
|
-
readonly "Search.focusIndex": (index: number) => Promise<void>;
|
|
458
|
-
readonly "Search.focusNext": () => Promise<void>;
|
|
459
|
-
readonly "Search.focusNextPage": () => Promise<void>;
|
|
460
|
-
readonly "Search.focusPrevious": () => Promise<void>;
|
|
461
|
-
readonly "Search.focusPreviousPage": () => Promise<void>;
|
|
462
|
-
readonly "Search.handleExcludeInput": (value: string) => Promise<void>;
|
|
463
|
-
readonly "Search.handleInput": (value: string) => Promise<void>;
|
|
464
|
-
readonly "Search.handleReplaceInput": (value: string) => Promise<void>;
|
|
465
|
-
readonly "Search.handleWheel": (deltaMode: number, deltaY: number) => Promise<void>;
|
|
466
|
-
readonly "Search.openDetails": () => Promise<void>;
|
|
467
|
-
readonly "Search.replaceAll": () => Promise<void>;
|
|
468
|
-
readonly "Search.selectIndex": (index: number) => Promise<void>;
|
|
469
|
-
readonly "Search.setIncludeValue": (value: string) => Promise<void>;
|
|
470
|
-
readonly "Search.toggleMatchCase": () => Promise<void>;
|
|
471
|
-
readonly "Search.toggleMatchWholeWord": () => Promise<void>;
|
|
472
|
-
readonly "Search.togglePreserveCase": () => Promise<void>;
|
|
473
|
-
readonly "Search.toggleReplace": () => Promise<void>;
|
|
474
|
-
readonly "Search.toggleSearchDetails": () => Promise<void>;
|
|
475
|
-
readonly "Search.toggleUseRegularExpression": () => Promise<void>;
|
|
476
|
-
readonly "SearchProcess.invoke": (command: string, ...args: readonly any[]) => Promise<any>;
|
|
477
|
-
readonly "SendMessagePortToElectron.sendMessagePortToElectron": (port: MessagePort, command: string) => Promise<void>;
|
|
478
|
-
readonly "SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker": (port: MessagePort, initialCommand: string, rpcId: number) => Promise<void>;
|
|
479
|
-
readonly "SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess": (port: MessagePort, outerCommand: string, rpcId: number) => Promise<void>;
|
|
480
|
-
readonly "SendMessagePortToFileSystemProcess.sendMessagePortToFileSystemProcess": (port: MessagePort, outerCommand: string, rpcId: number) => Promise<void>;
|
|
481
|
-
readonly "SideBar.openViewlet": (id: string) => Promise<void>;
|
|
482
|
-
readonly "SideBar.show": (id: string, focus?: boolean) => Promise<void>;
|
|
483
|
-
readonly "Source Control.acceptInput": () => Promise<void>;
|
|
484
|
-
readonly "Source Control.handleClickSourceControlButtons": (index: number, name: string) => Promise<void>;
|
|
485
|
-
readonly "Source Control.handleInput": (text: string) => Promise<void>;
|
|
486
|
-
readonly "Source Control.selectIndex": (index: number) => Promise<void>;
|
|
487
|
-
readonly "StatusBar.updateStatusBarItems": () => Promise<void>;
|
|
488
|
-
readonly "TitleBarMenuBar.closeMenu": () => Promise<void>;
|
|
489
|
-
readonly "TitleBarMenuBar.focus": () => Promise<void>;
|
|
490
|
-
readonly "TitleBarMenuBar.focusFirst": () => Promise<void>;
|
|
491
|
-
readonly "TitleBarMenuBar.focusIndex": () => Promise<void>;
|
|
492
|
-
readonly "TitleBarMenuBar.focusLast": () => Promise<void>;
|
|
493
|
-
readonly "TitleBarMenuBar.focusNext": () => Promise<void>;
|
|
494
|
-
readonly "TitleBarMenuBar.focusPrevious": () => Promise<void>;
|
|
495
|
-
readonly "TitleBarMenuBar.handleKeyArrowDown": () => Promise<void>;
|
|
496
|
-
readonly "TitleBarMenuBar.handleKeyArrowLeft": () => Promise<void>;
|
|
497
|
-
readonly "TitleBarMenuBar.handleKeyArrowRight": () => Promise<void>;
|
|
498
|
-
readonly "TitleBarMenuBar.handleKeyArrowUp": () => Promise<void>;
|
|
499
|
-
readonly "TitleBarMenuBar.handleKeyEnd": () => Promise<void>;
|
|
500
|
-
readonly "TitleBarMenuBar.handleKeyEscape": () => Promise<void>;
|
|
501
|
-
readonly "TitleBarMenuBar.handleKeyHome": () => Promise<void>;
|
|
502
|
-
readonly "TitleBarMenuBar.handleKeySpace": () => Promise<void>;
|
|
503
|
-
readonly "TitleBarMenuBar.toggleIndex": (index: number) => Promise<void>;
|
|
504
|
-
readonly "TitleBarMenuBar.toggleMenu": () => Promise<void>;
|
|
505
|
-
readonly "Viewlet.closeWidget": (id: number | string) => Promise<void>;
|
|
506
|
-
readonly "Viewlet.openWidget": (widgetId: string) => Promise<string>;
|
|
507
|
-
readonly "WebView.getWebViewInfo2": (id: string) => Promise<any>;
|
|
508
|
-
readonly "WebView.registerInterceptor": (id: number, port: MessagePort) => Promise<void>;
|
|
509
|
-
readonly "WebView.setPort": (id: number, port: MessagePort, origin: string, portType: string) => Promise<void>;
|
|
510
|
-
readonly "WebView.unregisterInterceptor": (id: number) => Promise<void>;
|
|
511
|
-
readonly "Workspace.getPath": () => Promise<string>;
|
|
512
|
-
readonly "Workspace.setPath": (uri: string) => Promise<void>;
|
|
513
|
-
}
|
|
514
|
-
declare const invoke$13: <T extends keyof RendererWorkerApi>(method: T, ...params: Parameters<RendererWorkerApi[T]>) => ReturnType<RendererWorkerApi[T]>, invokeAndTransfer$13: <T extends keyof RendererWorkerApi>(method: T, ...params: Parameters<RendererWorkerApi[T]>) => ReturnType<RendererWorkerApi[T]>, set$13: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$13: () => Promise<void>;
|
|
116
|
+
declare const invoke$13: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$13: (method: string, ...params: readonly unknown[]) => Promise<any>, set$13: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$13: () => Promise<void>;
|
|
515
117
|
declare const searchFileHtml: (uri: string) => Promise<readonly string[]>;
|
|
516
118
|
declare const getFilePathElectron: (file: File) => Promise<string>;
|
|
517
119
|
declare const showContextMenu: (x: number, y: number, id: number, ...args: readonly any[]) => Promise<void>;
|
|
@@ -586,37 +188,12 @@ declare const getAllPreferences: () => Promise<any>;
|
|
|
586
188
|
declare const showSaveFilePicker: () => Promise<string>;
|
|
587
189
|
declare const getLogsDir: () => Promise<string>;
|
|
588
190
|
declare const registerMockRpc$6: (commandMap: Record<string, any>) => MockRpc;
|
|
589
|
-
|
|
590
|
-
readonly "TextSearch.search": (options: any) => Promise<readonly SearchResult[]>;
|
|
591
|
-
}
|
|
592
|
-
declare const invoke$14: <T extends "TextSearch.search">(method: T, ...params: Parameters<SearchProcessApi[T]>) => ReturnType<SearchProcessApi[T]>, invokeAndTransfer$14: <T extends "TextSearch.search">(method: T, ...params: Parameters<SearchProcessApi[T]>) => ReturnType<SearchProcessApi[T]>, set$14: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$14: () => Promise<void>;
|
|
191
|
+
declare const invoke$14: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$14: (method: string, ...params: readonly unknown[]) => Promise<any>, set$14: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$14: () => Promise<void>;
|
|
593
192
|
declare const search: (options: any) => Promise<any>;
|
|
594
193
|
declare const searchIncremental: (options: any) => Promise<any>;
|
|
595
194
|
declare const getIncrementalResults: (searchId: string, minLineY: number, maxLineY: number) => Promise<any>;
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
readonly "ElectronWebContents.dispose": (id: any) => Promise<void>;
|
|
599
|
-
readonly "ElectronWebContentsView.attachEventListeners": (webContentsId: any) => Promise<void>;
|
|
600
|
-
readonly "ElectronWebContentsView.createWebContentsView": (webContentsId: any) => Promise<any>;
|
|
601
|
-
readonly "ElectronWebContentsView.disposeWebContentsView": (webContentsId: any) => Promise<void>;
|
|
602
|
-
readonly "ElectronWebContentsViewFunctions.getStats": (id: any, ...args: readonly any[]) => Promise<any>;
|
|
603
|
-
readonly "ElectronWebContentsViewFunctions.resizeBrowserView": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
604
|
-
readonly "ElectronWebContentsViewFunctions.setBackgroundColor": (webContentsId: any, backgroundColor: string) => Promise<void>;
|
|
605
|
-
readonly "ElectronWebContentsViewFunctions.setFallthroughKeyBindings": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
606
|
-
readonly "ElectronWebContentsViewFunctions.setIframeSrc": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
607
|
-
readonly "ElectronWebContentsViewFunctions.setIframeSrcFallback": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
608
|
-
readonly "ElectronWebContentsViewFunctions.show": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
609
|
-
}
|
|
610
|
-
declare const invoke$15: <T extends keyof SharedProcessApi>(method: T, ...params: Parameters<SharedProcessApi[T]>) => ReturnType<SharedProcessApi[T]>, invokeAndTransfer$15: <T extends keyof SharedProcessApi>(method: T, ...params: Parameters<SharedProcessApi[T]>) => ReturnType<SharedProcessApi[T]>, set$15: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$15: () => Promise<void>;
|
|
611
|
-
export interface SyntaxHighlightingWorkerApi {
|
|
612
|
-
readonly "GetTokensViewport.getTokensViewport": (editor: any, startLineIndex: number, endLineIndex: number, hasLinesToSend: boolean, id: number, linesToSend: readonly any[]) => Promise<any>;
|
|
613
|
-
readonly "HandleMessagePort.handleMessagePort": (port: MessagePort) => Promise<void>;
|
|
614
|
-
readonly "TextDocument.setLines": (documentId: string, lines: readonly string[]) => Promise<void>;
|
|
615
|
-
readonly "Tokenizer.load": (languageId: string, tokenizePath: string) => Promise<void>;
|
|
616
|
-
readonly "Tokenizer.tokenizeCodeBlock": (codeBlock: string, languageId: string, tokenizerPath: string) => Promise<any>;
|
|
617
|
-
readonly "Tokenizer.tokenizeIncremental": (id: any, languageId: string, oldLine: string, newLine: string, rowIndex: number, minLineY: number) => any[] | undefined;
|
|
618
|
-
}
|
|
619
|
-
declare const invoke$16: <T extends keyof SyntaxHighlightingWorkerApi>(method: T, ...params: Parameters<SyntaxHighlightingWorkerApi[T]>) => ReturnType<SyntaxHighlightingWorkerApi[T]>, invokeAndTransfer$16: <T extends keyof SyntaxHighlightingWorkerApi>(method: T, ...params: Parameters<SyntaxHighlightingWorkerApi[T]>) => ReturnType<SyntaxHighlightingWorkerApi[T]>, set$16: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$16: () => Promise<void>;
|
|
195
|
+
declare const invoke$15: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$15: (method: string, ...params: readonly unknown[]) => Promise<any>, set$15: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$15: () => Promise<void>;
|
|
196
|
+
declare const invoke$16: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$16: (method: string, ...params: readonly unknown[]) => Promise<any>, set$16: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$16: () => Promise<void>;
|
|
620
197
|
export interface LazyRpc {
|
|
621
198
|
readonly setFactory: (value: () => Promise<Rpc>) => void;
|
|
622
199
|
readonly invoke: (method: string, ...params: readonly any[]) => Promise<any>;
|
|
@@ -627,6 +204,20 @@ declare const registerMockRpc$7: (rpcId: number, commandMap: Record<string, any>
|
|
|
627
204
|
declare const set$17: (id: number, rpc: Rpc) => void;
|
|
628
205
|
export declare const get: (id: number) => Rpc;
|
|
629
206
|
declare const remove$2: (id: number) => void;
|
|
207
|
+
export interface SearchResult {
|
|
208
|
+
readonly type: number;
|
|
209
|
+
readonly start: number;
|
|
210
|
+
readonly end: number;
|
|
211
|
+
readonly lineNumber: number;
|
|
212
|
+
readonly text: string;
|
|
213
|
+
}
|
|
214
|
+
export interface TextEdit {
|
|
215
|
+
readonly text: string;
|
|
216
|
+
readonly startRowIndex: number;
|
|
217
|
+
readonly startColumnIndex: number;
|
|
218
|
+
readonly endColumnIndex: number;
|
|
219
|
+
readonly endRowIndex: number;
|
|
220
|
+
}
|
|
630
221
|
|
|
631
222
|
declare namespace SyntaxHighlightingWorker {
|
|
632
223
|
export { dispose$16 as dispose, invoke$16 as invoke, invokeAndTransfer$16 as invokeAndTransfer, set$16 as set };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/rpc-registry",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Rpc Registry",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@lvce-editor/constants": "^1.
|
|
16
|
-
"@lvce-editor/rpc": "^4.
|
|
15
|
+
"@lvce-editor/constants": "^1.31.0",
|
|
16
|
+
"@lvce-editor/rpc": "^4.20.0"
|
|
17
17
|
},
|
|
18
18
|
"types": "dist/index.d.ts"
|
|
19
19
|
}
|