@lvce-editor/rpc-registry 2.17.0 → 2.19.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 +213 -7
- package/dist/index.js +36 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export interface PositionAtCursor {
|
|
|
14
14
|
export interface EditorWorkerApi {
|
|
15
15
|
readonly "Editor.getPositionAtCursor": (uid: number) => Promise<PositionAtCursor>;
|
|
16
16
|
readonly "Editor.getWordAt2": (uid: number, rowIndex: number, columnIndex: number) => Promise<string>;
|
|
17
|
+
readonly "Editor.getWordAtOffset2": (uid: number) => Promise<string>;
|
|
17
18
|
}
|
|
18
19
|
declare const invoke: <T extends keyof EditorWorkerApi>(method: T, ...params: Parameters<EditorWorkerApi[T]>) => ReturnType<EditorWorkerApi[T]>, invokeAndTransfer: <T extends keyof EditorWorkerApi>(method: T, ...params: Parameters<EditorWorkerApi[T]>) => ReturnType<EditorWorkerApi[T]>, set$1: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
19
20
|
export interface EmbedsProcessApi {
|
|
@@ -90,6 +91,20 @@ export interface SearchResult {
|
|
|
90
91
|
readonly text: string;
|
|
91
92
|
}
|
|
92
93
|
export interface RendererWorkerApi {
|
|
94
|
+
readonly "About.focusNext": () => Promise<void>;
|
|
95
|
+
readonly "About.focusPrevious": () => Promise<void>;
|
|
96
|
+
readonly "About.handleClickClose": () => Promise<void>;
|
|
97
|
+
readonly "About.handleClickCopy": () => Promise<void>;
|
|
98
|
+
readonly "About.handleClickOk": () => Promise<void>;
|
|
99
|
+
readonly "About.showAbout": () => Promise<void>;
|
|
100
|
+
readonly "ActivityBar.focus": () => Promise<void>;
|
|
101
|
+
readonly "ActivityBar.focusFirst": () => Promise<void>;
|
|
102
|
+
readonly "ActivityBar.focusLast": () => Promise<void>;
|
|
103
|
+
readonly "ActivityBar.focusNext": () => Promise<void>;
|
|
104
|
+
readonly "ActivityBar.focusPrevious": () => Promise<void>;
|
|
105
|
+
readonly "ActivityBar.handleClick": (index: number) => Promise<void>;
|
|
106
|
+
readonly "ActivityBar.handleContextMenu": () => Promise<void>;
|
|
107
|
+
readonly "ActivityBar.selectCurrent": () => Promise<void>;
|
|
93
108
|
readonly "BulkReplacement.applyBulkReplacement": (edits: readonly BulkReplacementEdit[]) => Promise<void>;
|
|
94
109
|
readonly "ClipBoard.readNativeFiles": () => Promise<readonly string[]>;
|
|
95
110
|
readonly "ClipBoard.writeNativeFiles": (type: string, files: readonly string[]) => Promise<void>;
|
|
@@ -98,14 +113,100 @@ export interface RendererWorkerApi {
|
|
|
98
113
|
readonly "ColorTheme.setColorTheme": (id: string) => Promise<void>;
|
|
99
114
|
readonly "ConfirmPrompt.prompt": (confirmText: string, options: ConfirmPromptOptions) => Promise<boolean>;
|
|
100
115
|
readonly "ContextMenu.show": (x: number, y: number, id: any, ...args: readonly any[]) => Promise<void>;
|
|
116
|
+
readonly "Develop.openCacheFolder": () => Promise<void>;
|
|
117
|
+
readonly "Develop.openConfigFolder": () => Promise<void>;
|
|
118
|
+
readonly "Develop.openIframeInspector": () => Promise<void>;
|
|
119
|
+
readonly "Develop.openLogsFolder": () => Promise<void>;
|
|
120
|
+
readonly "Develop.openProcessExplorer": () => Promise<void>;
|
|
121
|
+
readonly "Develop.reloadColorTheme": () => Promise<void>;
|
|
122
|
+
readonly "Develop.toggleDeveloperTools": () => Promise<void>;
|
|
123
|
+
readonly "Editor.addAllMissingImports": () => Promise<void>;
|
|
124
|
+
readonly "Editor.braceCompletion": (text: string) => Promise<void>;
|
|
125
|
+
readonly "Editor.closeColorPicker": () => Promise<void>;
|
|
126
|
+
readonly "Editor.closeCompletion": () => Promise<void>;
|
|
127
|
+
readonly "Editor.contextMenu": (button: number, x: number, y: number) => Promise<void>;
|
|
128
|
+
readonly "Editor.copy": () => Promise<void>;
|
|
129
|
+
readonly "Editor.copyLineDown": () => Promise<void>;
|
|
130
|
+
readonly "Editor.copyLineUp": () => Promise<void>;
|
|
131
|
+
readonly "Editor.cursorCharacterLeft": () => Promise<void>;
|
|
132
|
+
readonly "Editor.cursorCharacterRight": () => Promise<void>;
|
|
133
|
+
readonly "Editor.cursorDown": () => Promise<void>;
|
|
134
|
+
readonly "Editor.cursorEnd": () => Promise<void>;
|
|
135
|
+
readonly "Editor.cursorHome": () => Promise<void>;
|
|
136
|
+
readonly "Editor.cursorSet": (rowIndex: number, columnIndex: number) => Promise<void>;
|
|
137
|
+
readonly "Editor.cursorUp": () => Promise<void>;
|
|
138
|
+
readonly "Editor.cursorWordLeft": () => Promise<void>;
|
|
139
|
+
readonly "Editor.cursorWordPartLeft": () => Promise<void>;
|
|
140
|
+
readonly "Editor.cursorWordPartRight": () => Promise<void>;
|
|
141
|
+
readonly "Editor.cursorWordRight": () => Promise<void>;
|
|
142
|
+
readonly "Editor.deleteAllLeft": () => Promise<void>;
|
|
143
|
+
readonly "Editor.deleteAllRight": () => Promise<void>;
|
|
144
|
+
readonly "Editor.format": () => Promise<void>;
|
|
145
|
+
readonly "Editor.getText": () => Promise<string>;
|
|
146
|
+
readonly "Editor.goToDefinition": () => Promise<void>;
|
|
147
|
+
readonly "Editor.goToTypeDefinition": () => Promise<void>;
|
|
148
|
+
readonly "Editor.handleContextMenu": (x: number, y: number) => Promise<void>;
|
|
149
|
+
readonly "Editor.insertLineBreak": () => Promise<void>;
|
|
150
|
+
readonly "Editor.openColorPicker": () => Promise<void>;
|
|
151
|
+
readonly "Editor.openCompletion": () => Promise<void>;
|
|
152
|
+
readonly "Editor.openFind": () => Promise<void>;
|
|
153
|
+
readonly "Editor.openRename": () => Promise<void>;
|
|
154
|
+
readonly "Editor.organizeImports": () => Promise<void>;
|
|
155
|
+
readonly "Editor.rename": () => Promise<void>;
|
|
156
|
+
readonly "Editor.setDeltaY": (deltaY: number) => Promise<void>;
|
|
157
|
+
readonly "Editor.setSelections": (selections: any) => Promise<void>;
|
|
158
|
+
readonly "Editor.showHover2": () => Promise<void>;
|
|
159
|
+
readonly "Editor.showSourceActions2": () => Promise<void>;
|
|
160
|
+
readonly "Editor.sortImports": () => Promise<void>;
|
|
161
|
+
readonly "Editor.tabCompletion": () => Promise<void>;
|
|
162
|
+
readonly "Editor.toggleBlockComment": () => Promise<void>;
|
|
163
|
+
readonly "Editor.toggleLineComment": () => Promise<void>;
|
|
164
|
+
readonly "Editor.type": (text: string) => Promise<void>;
|
|
165
|
+
readonly "EditorCompletion.closeDetais": () => Promise<void>;
|
|
166
|
+
readonly "EditorCompletion.openDetails": () => Promise<void>;
|
|
167
|
+
readonly "EditorCompletion.selectCurrentIndex": () => Promise<void>;
|
|
168
|
+
readonly "EditorCompletion.selectIndex": (index: number) => Promise<void>;
|
|
169
|
+
readonly "EditorSourceActions.selectCurrent": () => Promise<void>;
|
|
101
170
|
readonly "ElectronDialog.showMessageBox": (options: any) => Promise<any>;
|
|
102
171
|
readonly "ElectronWindow.close": () => Promise<void>;
|
|
103
172
|
readonly "ElectronWindow.maximize": () => Promise<void>;
|
|
104
173
|
readonly "ElectronWindow.minimize": () => Promise<void>;
|
|
105
174
|
readonly "ElectronWindow.unmaximize": () => Promise<void>;
|
|
106
175
|
readonly "ErrorHandling.showErrorDialog": (errorInfo: any) => Promise<void>;
|
|
176
|
+
readonly "Explorer.acceptEdit": () => Promise<void>;
|
|
177
|
+
readonly "Explorer.cancelEdit": () => Promise<void>;
|
|
107
178
|
readonly "Explorer.cancelTypeAhead": () => Promise<void>;
|
|
179
|
+
readonly "Explorer.expandAll": () => Promise<void>;
|
|
180
|
+
readonly "Explorer.expandRecursively": () => Promise<void>;
|
|
181
|
+
readonly "Explorer.focus": () => Promise<void>;
|
|
182
|
+
readonly "Explorer.focusFirst": () => Promise<void>;
|
|
183
|
+
readonly "Explorer.focusIndex": (index: number) => Promise<void>;
|
|
184
|
+
readonly "Explorer.focusLast": () => Promise<void>;
|
|
185
|
+
readonly "Explorer.handleArrowLeft": () => Promise<void>;
|
|
186
|
+
readonly "Explorer.handleBlur": () => Promise<void>;
|
|
187
|
+
readonly "Explorer.handleClick": (index: number) => Promise<void>;
|
|
188
|
+
readonly "Explorer.handleClickAt": (preventDefault: boolean, button: number, ctrlKey: number, shiftKey: number, x: number, y: number) => Promise<void>;
|
|
189
|
+
readonly "Explorer.handleClickCurrent": () => Promise<void>;
|
|
190
|
+
readonly "Explorer.handleContextMenuKeyboard": () => Promise<void>;
|
|
191
|
+
readonly "Explorer.handleDragLeave": () => Promise<void>;
|
|
192
|
+
readonly "Explorer.handleDragOver": (x: number, y: number) => Promise<void>;
|
|
193
|
+
readonly "Explorer.handleDrop": (x: number, y: number, fileIds: readonly number[], fileList: FileList | readonly File[]) => Promise<void>;
|
|
194
|
+
readonly "Explorer.handleInputBlur": () => Promise<void>;
|
|
108
195
|
readonly "Explorer.handleKeyDown": (key: string) => Promise<void>;
|
|
196
|
+
readonly "Explorer.newFile": () => Promise<void>;
|
|
197
|
+
readonly "Explorer.newFolder": () => Promise<void>;
|
|
198
|
+
readonly "Explorer.refresh": () => Promise<void>;
|
|
199
|
+
readonly "Explorer.removeDirent": () => Promise<void>;
|
|
200
|
+
readonly "Explorer.rename": () => Promise<void>;
|
|
201
|
+
readonly "Explorer.renameDirent": () => Promise<void>;
|
|
202
|
+
readonly "Explorer.selectAll": () => Promise<void>;
|
|
203
|
+
readonly "Explorer.selectDown": () => Promise<void>;
|
|
204
|
+
readonly "Explorer.selectIndices": (indices: readonly number[]) => Promise<void>;
|
|
205
|
+
readonly "Explorer.selectUp": () => Promise<void>;
|
|
206
|
+
readonly "Explorer.updateEditingValue": (value: string) => Promise<void>;
|
|
207
|
+
readonly "ExtensionDetail.open": (eextensionId: string) => Promise<void>;
|
|
208
|
+
readonly "ExtensionDetail.selectFeature": (name: string) => Promise<void>;
|
|
209
|
+
readonly "ExtensionDetail.selectTab": (name: string) => Promise<void>;
|
|
109
210
|
readonly "ExtensionHost.executeCommand": (id: string) => Promise<void>;
|
|
110
211
|
readonly "ExtensionHost.getCommands": () => Promise<readonly any[]>;
|
|
111
212
|
readonly "ExtensionHost.searchFileWithFetch": (uri: string) => Promise<readonly string[]>;
|
|
@@ -120,6 +221,8 @@ export interface RendererWorkerApi {
|
|
|
120
221
|
readonly "ExtensionManagement.getAllExtensions": () => Promise<readonly any[]>;
|
|
121
222
|
readonly "ExtensionManagement.getExtension": (id: string) => Promise<any>;
|
|
122
223
|
readonly "ExtensionManagement.uninstall": (id: string) => Promise<void>;
|
|
224
|
+
readonly "ExtensionMeta.addNodeExtension": (absolutePath: string) => Promise<void>;
|
|
225
|
+
readonly "ExtensionMeta.addWebExtension": (absolutePath: string) => Promise<void>;
|
|
123
226
|
readonly "FileSystem.copy": (oldUri: string, newUri: string) => Promise<void>;
|
|
124
227
|
readonly "FileSystem.createFile": (uri: string) => Promise<void>;
|
|
125
228
|
readonly "FileSystem.getFolderSize": (uri: string) => Promise<number>;
|
|
@@ -134,14 +237,57 @@ export interface RendererWorkerApi {
|
|
|
134
237
|
readonly "FileSystem.writeFile": (uri: string, content: string) => Promise<void>;
|
|
135
238
|
readonly "FileSystemHandle.getFileHandles": (fileIds: readonly number[]) => Promise<readonly FileSystemHandle[]>;
|
|
136
239
|
readonly "FileSystemHandle.getFilePathElectron": (file: File) => Promise<string>;
|
|
240
|
+
readonly "FindWidget.focusNext": () => Promise<void>;
|
|
241
|
+
readonly "FindWidget.handleInput": (value: string) => Promise<void>;
|
|
137
242
|
readonly "Focus.setFocus": (focusId: number) => Promise<void>;
|
|
138
243
|
readonly "GetWindowId.getWindowId": () => Promise<number>;
|
|
139
244
|
readonly "IconTheme.getFileIcon": (options: any) => Promise<string>;
|
|
140
245
|
readonly "IconTheme.getFolderIcon": (options: any) => Promise<string>;
|
|
141
246
|
readonly "IconTheme.getIcons": (request: readonly any[]) => Promise<readonly string[]>;
|
|
247
|
+
readonly "IconTheme.setIconTheme": (id: string) => Promise<readonly string[]>;
|
|
248
|
+
readonly "IframeInspector.focusFirst": () => Promise<void>;
|
|
249
|
+
readonly "IframeInspector.focusLast": () => Promise<void>;
|
|
250
|
+
readonly "IframeInspector.focusNext": () => Promise<void>;
|
|
251
|
+
readonly "IframeInspector.focusPrevious": () => Promise<void>;
|
|
252
|
+
readonly "IframeInspector.selectIndex": (index: number) => Promise<void>;
|
|
253
|
+
readonly "KeyBindings.addKeyBinding": () => Promise<void>;
|
|
254
|
+
readonly "KeyBindings.changeWhenExpression": () => Promise<void>;
|
|
255
|
+
readonly "KeyBindings.clearInput": () => Promise<void>;
|
|
256
|
+
readonly "KeyBindings.copyCommandId": () => Promise<void>;
|
|
257
|
+
readonly "KeyBindings.copyCommandTitle": () => Promise<void>;
|
|
258
|
+
readonly "KeyBindings.focusFirst": () => Promise<void>;
|
|
259
|
+
readonly "KeyBindings.focusLast": () => Promise<void>;
|
|
260
|
+
readonly "KeyBindings.focusNext": () => Promise<void>;
|
|
261
|
+
readonly "KeyBindings.focusPrevious": () => Promise<void>;
|
|
262
|
+
readonly "KeyBindings.handleClick": (x: number, y: number) => Promise<void>;
|
|
263
|
+
readonly "KeyBindings.handleContextMenu": (button: number, x: number, y: number) => Promise<void>;
|
|
264
|
+
readonly "KeyBindings.handleDoubleClick": (x: number, y: number) => Promise<void>;
|
|
265
|
+
readonly "KeyBindings.handleInput": (value: string) => Promise<void>;
|
|
266
|
+
readonly "KeyBindings.handleWheel": (deltaMode: number, deltaY: number) => Promise<void>;
|
|
267
|
+
readonly "KeyBindings.removeKeyBinding": () => Promise<void>;
|
|
268
|
+
readonly "KeyBindings.resetKeyBinding": () => Promise<void>;
|
|
269
|
+
readonly "KeyBindings.showSameKeyBindings": () => Promise<void>;
|
|
270
|
+
readonly "KeyBindings.sortByPrecedence": () => Promise<void>;
|
|
271
|
+
readonly "KeyBindings.startRecordingKeys": () => Promise<void>;
|
|
272
|
+
readonly "KeyBindings.stopRecordingKeys": () => Promise<void>;
|
|
273
|
+
readonly "KeyBindings.toggleRecordingKeys": () => Promise<void>;
|
|
142
274
|
readonly "KeyBindingsInitial.getKeyBindings": () => Promise<readonly any[]>;
|
|
275
|
+
readonly "Layout.hideSideBar": () => Promise<void>;
|
|
276
|
+
readonly "Layout.showPanel": (id: string) => Promise<void>;
|
|
277
|
+
readonly "Main.closeActiveEditor": () => Promise<void>;
|
|
278
|
+
readonly "Main.closeAllEditors": () => Promise<void>;
|
|
279
|
+
readonly "Main.closeOthers": () => Promise<void>;
|
|
280
|
+
readonly "Main.closeTabsLeft": () => Promise<void>;
|
|
281
|
+
readonly "Main.closeTabsRight": () => Promise<void>;
|
|
282
|
+
readonly "Main.focusFirst": () => Promise<void>;
|
|
283
|
+
readonly "Main.focusLast": () => Promise<void>;
|
|
284
|
+
readonly "Main.focusNext": () => Promise<void>;
|
|
285
|
+
readonly "Main.focusPrevious": () => Promise<void>;
|
|
286
|
+
readonly "Main.openKeyBindings": () => Promise<void>;
|
|
143
287
|
readonly "Main.openUri": (uri: string, focus?: boolean, props?: any) => Promise<void>;
|
|
288
|
+
readonly "Main.splitRight": () => Promise<void>;
|
|
144
289
|
readonly "Markdown.renderMarkdown": (markdown: string, options: any) => Promise<string>;
|
|
290
|
+
readonly "Menu.selectItem": (text: string) => Promise<void>;
|
|
145
291
|
readonly "MouseActions.get": (uid: number, button: number, modifiers: any) => Promise<any>;
|
|
146
292
|
readonly "OpenNativeFolder.openNativeFolder": (path: string) => Promise<void>;
|
|
147
293
|
readonly "Preferences.get": (key: string) => Promise<any>;
|
|
@@ -153,11 +299,58 @@ export interface RendererWorkerApi {
|
|
|
153
299
|
readonly "Run And Debug.handlePaused": (params: any) => Promise<void>;
|
|
154
300
|
readonly "Run And Debug.handleResumed": (params: any) => Promise<void>;
|
|
155
301
|
readonly "Run And Debug.handleScriptParsed": (params: any) => Promise<void>;
|
|
302
|
+
readonly "Search.clearSearchResults": () => Promise<void>;
|
|
303
|
+
readonly "Search.collapseDetails": () => Promise<void>;
|
|
304
|
+
readonly "Search.dismissItem": () => Promise<void>;
|
|
305
|
+
readonly "Search.focusFirst": () => Promise<void>;
|
|
306
|
+
readonly "Search.focusIndex": (index: number) => Promise<void>;
|
|
307
|
+
readonly "Search.focusNext": () => Promise<void>;
|
|
308
|
+
readonly "Search.focusNextPage": () => Promise<void>;
|
|
309
|
+
readonly "Search.focusPrevious": () => Promise<void>;
|
|
310
|
+
readonly "Search.focusPreviousPage": () => Promise<void>;
|
|
311
|
+
readonly "Search.handleExcludeInput": (value: string) => Promise<void>;
|
|
312
|
+
readonly "Search.handleInput": (value: string) => Promise<void>;
|
|
313
|
+
readonly "Search.handleReplaceInput": (value: string) => Promise<void>;
|
|
314
|
+
readonly "Search.handleWheel": (deltaMode: number, deltaY: number) => Promise<void>;
|
|
315
|
+
readonly "Search.openDetails": () => Promise<void>;
|
|
316
|
+
readonly "Search.replaceAll": () => Promise<void>;
|
|
317
|
+
readonly "Search.selectIndex": (index: number) => Promise<void>;
|
|
318
|
+
readonly "Search.setIncludeValue": (value: string) => Promise<void>;
|
|
319
|
+
readonly "Search.toggleMatchCase": () => Promise<void>;
|
|
320
|
+
readonly "Search.toggleMatchWholeWord": () => Promise<void>;
|
|
321
|
+
readonly "Search.togglePreserveCase": () => Promise<void>;
|
|
322
|
+
readonly "Search.toggleReplace": () => Promise<void>;
|
|
323
|
+
readonly "Search.toggleSearchDetails": () => Promise<void>;
|
|
324
|
+
readonly "Search.toggleUseRegularExpression": () => Promise<void>;
|
|
156
325
|
readonly "SearchProcess.invoke": (command: string, ...args: readonly any[]) => Promise<any>;
|
|
157
326
|
readonly "SendMessagePortToElectron.sendMessagePortToElectron": (port: MessagePort, command: string) => Promise<void>;
|
|
158
327
|
readonly "SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker": (port: MessagePort, initialCommand: string, rpcId: number) => Promise<void>;
|
|
159
328
|
readonly "SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess": (port: MessagePort, outerCommand: string, rpcId: number) => Promise<void>;
|
|
160
329
|
readonly "SendMessagePortToFileSystemProcess.sendMessagePortToFileSystemProcess": (port: MessagePort, outerCommand: string, rpcId: number) => Promise<void>;
|
|
330
|
+
readonly "SideBar.openViewlet": (id: string) => Promise<void>;
|
|
331
|
+
readonly "SideBar.show": (id: string) => Promise<void>;
|
|
332
|
+
readonly "Source Control.acceptInput": () => Promise<void>;
|
|
333
|
+
readonly "Source Control.handleClickSourceControlButtons": (index: number, name: string) => Promise<void>;
|
|
334
|
+
readonly "Source Control.handleInput": (text: string) => Promise<void>;
|
|
335
|
+
readonly "Source Control.selectIndex": (index: number) => Promise<void>;
|
|
336
|
+
readonly "StatusBar.updateStatusBarItems": () => Promise<void>;
|
|
337
|
+
readonly "TitleBarMenuBar.closeMenu": () => Promise<void>;
|
|
338
|
+
readonly "TitleBarMenuBar.focus": () => Promise<void>;
|
|
339
|
+
readonly "TitleBarMenuBar.focusFirst": () => Promise<void>;
|
|
340
|
+
readonly "TitleBarMenuBar.focusIndex": () => Promise<void>;
|
|
341
|
+
readonly "TitleBarMenuBar.focusLast": () => Promise<void>;
|
|
342
|
+
readonly "TitleBarMenuBar.focusNext": () => Promise<void>;
|
|
343
|
+
readonly "TitleBarMenuBar.focusPrevious": () => Promise<void>;
|
|
344
|
+
readonly "TitleBarMenuBar.handleKeyArrowDown": () => Promise<void>;
|
|
345
|
+
readonly "TitleBarMenuBar.handleKeyArrowLeft": () => Promise<void>;
|
|
346
|
+
readonly "TitleBarMenuBar.handleKeyArrowRight": () => Promise<void>;
|
|
347
|
+
readonly "TitleBarMenuBar.handleKeyArrowUp": () => Promise<void>;
|
|
348
|
+
readonly "TitleBarMenuBar.handleKeyEnd": () => Promise<void>;
|
|
349
|
+
readonly "TitleBarMenuBar.handleKeyEscape": () => Promise<void>;
|
|
350
|
+
readonly "TitleBarMenuBar.handleKeyHome": () => Promise<void>;
|
|
351
|
+
readonly "TitleBarMenuBar.handleKeySpace": () => Promise<void>;
|
|
352
|
+
readonly "TitleBarMenuBar.toggleIndex": (index: number) => Promise<void>;
|
|
353
|
+
readonly "TitleBarMenuBar.toggleMenu": () => Promise<void>;
|
|
161
354
|
readonly "Viewlet.closeWidget": (id: number | string) => Promise<void>;
|
|
162
355
|
readonly "Viewlet.openWidget": (widgetId: string) => Promise<string>;
|
|
163
356
|
readonly "WebView.getWebViewInfo2": (id: string) => Promise<any>;
|
|
@@ -172,6 +365,11 @@ export interface SearchProcessApi {
|
|
|
172
365
|
readonly "TextSearch.search": (options: any) => Promise<readonly SearchResult[]>;
|
|
173
366
|
}
|
|
174
367
|
declare const invoke$5: <T extends "TextSearch.search">(method: T, ...params: Parameters<SearchProcessApi[T]>) => ReturnType<SearchProcessApi[T]>, invokeAndTransfer$5: <T extends "TextSearch.search">(method: T, ...params: Parameters<SearchProcessApi[T]>) => ReturnType<SearchProcessApi[T]>, set$6: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
368
|
+
export interface MarkdownWorkerApi {
|
|
369
|
+
readonly "Markdown.getMarkDownVirtualDom": (html: string) => Promise<any>;
|
|
370
|
+
readonly "Markdown.renderMarkdown": (markdown: string, options: any) => Promise<void>;
|
|
371
|
+
}
|
|
372
|
+
declare const invoke$6: <T extends keyof MarkdownWorkerApi>(method: T, ...params: Parameters<MarkdownWorkerApi[T]>) => ReturnType<MarkdownWorkerApi[T]>, invokeAndTransfer$6: <T extends keyof MarkdownWorkerApi>(method: T, ...params: Parameters<MarkdownWorkerApi[T]>) => ReturnType<MarkdownWorkerApi[T]>, set$7: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
175
373
|
export interface FileSystemProcessApi {
|
|
176
374
|
readonly "FileSystem.copy": (oldUri: string, newUri: string) => Promise<void>;
|
|
177
375
|
readonly "FileSystem.getPathSeparator": () => Promise<string>;
|
|
@@ -184,7 +382,7 @@ export interface FileSystemProcessApi {
|
|
|
184
382
|
readonly "FileSystem.stat": (uri: string) => Promise<any>;
|
|
185
383
|
readonly "FileSystem.writeFile": (uri: string, content: string) => Promise<void>;
|
|
186
384
|
}
|
|
187
|
-
declare const invoke$
|
|
385
|
+
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$8: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
188
386
|
export interface FileSystemWorkerApi {
|
|
189
387
|
readonly "FileSystem.copy": (oldUri: string, newUri: string) => Promise<void>;
|
|
190
388
|
readonly "FileSystem.getPathSeparator": () => Promise<string>;
|
|
@@ -197,7 +395,7 @@ export interface FileSystemWorkerApi {
|
|
|
197
395
|
readonly "FileSystem.stat": (uri: string) => Promise<any>;
|
|
198
396
|
readonly "FileSystem.writeFile": (uri: string, content: string) => Promise<void>;
|
|
199
397
|
}
|
|
200
|
-
declare const invoke$
|
|
398
|
+
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$9: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
201
399
|
export interface SharedProcessApi {
|
|
202
400
|
readonly "ElectronWebContents.callFunction": (webContentsId: any, method: string, ...params: readonly any[]) => Promise<any>;
|
|
203
401
|
readonly "ElectronWebContents.dispose": (id: any) => Promise<void>;
|
|
@@ -212,7 +410,7 @@ export interface SharedProcessApi {
|
|
|
212
410
|
readonly "ElectronWebContentsViewFunctions.setIframeSrcFallback": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
213
411
|
readonly "ElectronWebContentsViewFunctions.show": (id: any, ...args: readonly any[]) => Promise<void>;
|
|
214
412
|
}
|
|
215
|
-
declare const invoke$
|
|
413
|
+
declare const invoke$9: <T extends keyof SharedProcessApi>(method: T, ...params: Parameters<SharedProcessApi[T]>) => ReturnType<SharedProcessApi[T]>, invokeAndTransfer$9: <T extends keyof SharedProcessApi>(method: T, ...params: Parameters<SharedProcessApi[T]>) => ReturnType<SharedProcessApi[T]>, set$10: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
216
414
|
declare const DebugWorker = 55;
|
|
217
415
|
declare const EditorWorker = 99;
|
|
218
416
|
declare const ExtensionHostWorker = 44;
|
|
@@ -226,9 +424,13 @@ declare const EmbedsProcess = 207;
|
|
|
226
424
|
declare const EmbedsWorker = 208;
|
|
227
425
|
declare const FileSystemWorker = 209;
|
|
228
426
|
declare const FileSystemProcess = 210;
|
|
427
|
+
declare const MarkdownWorker = 300;
|
|
428
|
+
declare const CompletionWorker = 301;
|
|
429
|
+
declare const ColorPickerWorker = 302;
|
|
430
|
+
declare const SourceActionWorker = 303;
|
|
229
431
|
|
|
230
432
|
declare namespace RpcId {
|
|
231
|
-
export { DebugWorker, EditorWorker, EmbedsProcess, EmbedsWorker, ExtensionHostWorker, FileSystemProcess, FileSystemWorker, MainProcess, RendererWorker, SearchProcess, SearchProcessElectron, SharedProcess, SourceControlWorker };
|
|
433
|
+
export { ColorPickerWorker, CompletionWorker, DebugWorker, EditorWorker, EmbedsProcess, EmbedsWorker, ExtensionHostWorker, FileSystemProcess, FileSystemWorker, MainProcess, MarkdownWorker, RendererWorker, SearchProcess, SearchProcessElectron, SharedProcess, SourceActionWorker, SourceControlWorker };
|
|
232
434
|
}
|
|
233
435
|
declare namespace EditorWorker$1 {
|
|
234
436
|
export { invoke, invokeAndTransfer, set$1 as set };
|
|
@@ -248,15 +450,18 @@ declare namespace RendererWorker$1 {
|
|
|
248
450
|
declare namespace SearchProcess$1 {
|
|
249
451
|
export { invoke$5 as invoke, invokeAndTransfer$5 as invokeAndTransfer, set$6 as set };
|
|
250
452
|
}
|
|
251
|
-
declare namespace
|
|
453
|
+
declare namespace MarkdownWorker$1 {
|
|
252
454
|
export { invoke$6 as invoke, invokeAndTransfer$6 as invokeAndTransfer, set$7 as set };
|
|
253
455
|
}
|
|
254
|
-
declare namespace
|
|
456
|
+
declare namespace FileSystemProcess$1 {
|
|
255
457
|
export { invoke$7 as invoke, invokeAndTransfer$7 as invokeAndTransfer, set$8 as set };
|
|
256
458
|
}
|
|
257
|
-
declare namespace
|
|
459
|
+
declare namespace FileSystemWorker$1 {
|
|
258
460
|
export { invoke$8 as invoke, invokeAndTransfer$8 as invokeAndTransfer, set$9 as set };
|
|
259
461
|
}
|
|
462
|
+
declare namespace SharedProcess$1 {
|
|
463
|
+
export { invoke$9 as invoke, invokeAndTransfer$9 as invokeAndTransfer, set$10 as set };
|
|
464
|
+
}
|
|
260
465
|
|
|
261
466
|
export {
|
|
262
467
|
EditorWorker$1 as EditorWorker,
|
|
@@ -265,6 +470,7 @@ export {
|
|
|
265
470
|
FileSystemProcess$1 as FileSystemProcess,
|
|
266
471
|
FileSystemWorker$1 as FileSystemWorker,
|
|
267
472
|
MainProcess$1 as MainProcess,
|
|
473
|
+
MarkdownWorker$1 as MarkdownWorker,
|
|
268
474
|
RendererWorker$1 as RendererWorker,
|
|
269
475
|
Rpc,
|
|
270
476
|
RpcId,
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const rpcs = Object.create(null);
|
|
2
|
-
const set$
|
|
2
|
+
const set$a = (id, rpc) => {
|
|
3
3
|
rpcs[id] = rpc;
|
|
4
4
|
};
|
|
5
5
|
const get = id => {
|
|
@@ -26,7 +26,7 @@ const create = rpcId => {
|
|
|
26
26
|
return rpc.invokeAndTransfer(method, ...params);
|
|
27
27
|
},
|
|
28
28
|
set(rpc) {
|
|
29
|
-
set$
|
|
29
|
+
set$a(rpcId, rpc);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
};
|
|
@@ -44,9 +44,15 @@ const EmbedsProcess$1 = 207;
|
|
|
44
44
|
const EmbedsWorker = 208;
|
|
45
45
|
const FileSystemWorker$1 = 209;
|
|
46
46
|
const FileSystemProcess$1 = 210;
|
|
47
|
+
const MarkdownWorker$1 = 300;
|
|
48
|
+
const CompletionWorker = 301;
|
|
49
|
+
const ColorPickerWorker = 302;
|
|
50
|
+
const SourceActionWorker = 303;
|
|
47
51
|
|
|
48
52
|
const RpcId = {
|
|
49
53
|
__proto__: null,
|
|
54
|
+
ColorPickerWorker,
|
|
55
|
+
CompletionWorker,
|
|
50
56
|
DebugWorker,
|
|
51
57
|
EditorWorker: EditorWorker$1,
|
|
52
58
|
EmbedsProcess: EmbedsProcess$1,
|
|
@@ -55,20 +61,35 @@ const RpcId = {
|
|
|
55
61
|
FileSystemProcess: FileSystemProcess$1,
|
|
56
62
|
FileSystemWorker: FileSystemWorker$1,
|
|
57
63
|
MainProcess: MainProcess$1,
|
|
64
|
+
MarkdownWorker: MarkdownWorker$1,
|
|
58
65
|
RendererWorker: RendererWorker$1,
|
|
59
66
|
SearchProcess: SearchProcess$1,
|
|
60
67
|
SearchProcessElectron,
|
|
61
68
|
SharedProcess: SharedProcess$1,
|
|
69
|
+
SourceActionWorker,
|
|
62
70
|
SourceControlWorker
|
|
63
71
|
};
|
|
64
72
|
|
|
73
|
+
const {
|
|
74
|
+
invoke: invoke$9,
|
|
75
|
+
invokeAndTransfer: invokeAndTransfer$9,
|
|
76
|
+
set: set$9
|
|
77
|
+
} = create(EditorWorker$1);
|
|
78
|
+
|
|
79
|
+
const EditorWorker = {
|
|
80
|
+
__proto__: null,
|
|
81
|
+
invoke: invoke$9,
|
|
82
|
+
invokeAndTransfer: invokeAndTransfer$9,
|
|
83
|
+
set: set$9
|
|
84
|
+
};
|
|
85
|
+
|
|
65
86
|
const {
|
|
66
87
|
invoke: invoke$8,
|
|
67
88
|
invokeAndTransfer: invokeAndTransfer$8,
|
|
68
89
|
set: set$8
|
|
69
|
-
} = create(
|
|
90
|
+
} = create(EmbedsProcess$1);
|
|
70
91
|
|
|
71
|
-
const
|
|
92
|
+
const EmbedsProcess = {
|
|
72
93
|
__proto__: null,
|
|
73
94
|
invoke: invoke$8,
|
|
74
95
|
invokeAndTransfer: invokeAndTransfer$8,
|
|
@@ -79,9 +100,9 @@ const {
|
|
|
79
100
|
invoke: invoke$7,
|
|
80
101
|
invokeAndTransfer: invokeAndTransfer$7,
|
|
81
102
|
set: set$7
|
|
82
|
-
} = create(
|
|
103
|
+
} = create(ExtensionHostWorker);
|
|
83
104
|
|
|
84
|
-
const
|
|
105
|
+
const ExtensionHost = {
|
|
85
106
|
__proto__: null,
|
|
86
107
|
invoke: invoke$7,
|
|
87
108
|
invokeAndTransfer: invokeAndTransfer$7,
|
|
@@ -92,9 +113,9 @@ const {
|
|
|
92
113
|
invoke: invoke$6,
|
|
93
114
|
invokeAndTransfer: invokeAndTransfer$6,
|
|
94
115
|
set: set$6
|
|
95
|
-
} = create(
|
|
116
|
+
} = create(MainProcess$1);
|
|
96
117
|
|
|
97
|
-
const
|
|
118
|
+
const MainProcess = {
|
|
98
119
|
__proto__: null,
|
|
99
120
|
invoke: invoke$6,
|
|
100
121
|
invokeAndTransfer: invokeAndTransfer$6,
|
|
@@ -105,9 +126,9 @@ const {
|
|
|
105
126
|
invoke: invoke$5,
|
|
106
127
|
invokeAndTransfer: invokeAndTransfer$5,
|
|
107
128
|
set: set$5
|
|
108
|
-
} = create(
|
|
129
|
+
} = create(RendererWorker$1);
|
|
109
130
|
|
|
110
|
-
const
|
|
131
|
+
const RendererWorker = {
|
|
111
132
|
__proto__: null,
|
|
112
133
|
invoke: invoke$5,
|
|
113
134
|
invokeAndTransfer: invokeAndTransfer$5,
|
|
@@ -118,9 +139,9 @@ const {
|
|
|
118
139
|
invoke: invoke$4,
|
|
119
140
|
invokeAndTransfer: invokeAndTransfer$4,
|
|
120
141
|
set: set$4
|
|
121
|
-
} = create(
|
|
142
|
+
} = create(SearchProcess$1);
|
|
122
143
|
|
|
123
|
-
const
|
|
144
|
+
const SearchProcess = {
|
|
124
145
|
__proto__: null,
|
|
125
146
|
invoke: invoke$4,
|
|
126
147
|
invokeAndTransfer: invokeAndTransfer$4,
|
|
@@ -131,9 +152,9 @@ const {
|
|
|
131
152
|
invoke: invoke$3,
|
|
132
153
|
invokeAndTransfer: invokeAndTransfer$3,
|
|
133
154
|
set: set$3
|
|
134
|
-
} = create(
|
|
155
|
+
} = create(MarkdownWorker$1);
|
|
135
156
|
|
|
136
|
-
const
|
|
157
|
+
const MarkdownWorker = {
|
|
137
158
|
__proto__: null,
|
|
138
159
|
invoke: invoke$3,
|
|
139
160
|
invokeAndTransfer: invokeAndTransfer$3,
|
|
@@ -179,4 +200,4 @@ const SharedProcess = {
|
|
|
179
200
|
set
|
|
180
201
|
};
|
|
181
202
|
|
|
182
|
-
export { EditorWorker, EmbedsProcess, ExtensionHost, FileSystemProcess, FileSystemWorker, MainProcess, RendererWorker, RpcId, SearchProcess, SharedProcess, get, remove, set$
|
|
203
|
+
export { EditorWorker, EmbedsProcess, ExtensionHost, FileSystemProcess, FileSystemWorker, MainProcess, MarkdownWorker, RendererWorker, RpcId, SearchProcess, SharedProcess, get, remove, set$a as set };
|