@lvce-editor/rpc-registry 2.55.0 → 2.56.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 +4 -3
- package/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ declare const mkdir$1: (uri: string) => Promise<void>;
|
|
|
156
156
|
declare const rename$1: (oldUri: string, newUri: string) => Promise<void>;
|
|
157
157
|
declare const copy$1: (oldUri: string, newUri: string) => Promise<void>;
|
|
158
158
|
declare const exists$1: (uri: string) => Promise<boolean>;
|
|
159
|
+
declare const getFolderSize$1: (uri: string) => Promise<number>;
|
|
159
160
|
declare const NodeWorker = 1;
|
|
160
161
|
declare const NodeForkedProcess = 2;
|
|
161
162
|
declare const ElectronUtilityProcess = 3;
|
|
@@ -544,7 +545,7 @@ declare const getWindowId: () => Promise<number>;
|
|
|
544
545
|
declare const getBlob: (uri: string) => Promise<Blob>;
|
|
545
546
|
declare const getExtensionCommands: () => Promise<readonly any[]>;
|
|
546
547
|
declare const showErrorDialog: (errorInfo: any) => Promise<void>;
|
|
547
|
-
declare const getFolderSize$
|
|
548
|
+
declare const getFolderSize$2: (uri: string) => Promise<number>;
|
|
548
549
|
declare const getExtension: (id: string) => Promise<any>;
|
|
549
550
|
declare const getMarkdownDom: (html: string) => Promise<any>;
|
|
550
551
|
declare const renderMarkdown: (markdown: string, options: any) => Promise<any>;
|
|
@@ -644,7 +645,7 @@ declare namespace FileSystemProcess$1 {
|
|
|
644
645
|
export { copy, dispose$7 as dispose, exists, getFolderSize, getPathSeparator, getRealPath, invoke$7 as invoke, invokeAndTransfer$7 as invokeAndTransfer, mkdir, readDirWithFileTypes, readFile, readJson, remove, rename, set$7 as set, stat, writeFile };
|
|
645
646
|
}
|
|
646
647
|
declare namespace FileSystemWorker$1 {
|
|
647
|
-
export { copy$1 as copy, createFile, dispose$8 as dispose, exists$1 as exists, getPathSeparator$1 as getPathSeparator, getRealPath$1 as getRealPath, invoke$8 as invoke, invokeAndTransfer$8 as invokeAndTransfer, mkdir$1 as mkdir, readDirWithFileTypes$1 as readDirWithFileTypes, readFile$1 as readFile, remove$1 as remove, rename$1 as rename, set$8 as set, stat$1 as stat, writeFile$1 as writeFile };
|
|
648
|
+
export { copy$1 as copy, createFile, dispose$8 as dispose, exists$1 as exists, getFolderSize$1 as getFolderSize, getPathSeparator$1 as getPathSeparator, getRealPath$1 as getRealPath, invoke$8 as invoke, invokeAndTransfer$8 as invokeAndTransfer, mkdir$1 as mkdir, readDirWithFileTypes$1 as readDirWithFileTypes, readFile$1 as readFile, remove$1 as remove, rename$1 as rename, set$8 as set, stat$1 as stat, writeFile$1 as writeFile };
|
|
648
649
|
}
|
|
649
650
|
declare namespace IpcType {
|
|
650
651
|
export { ElectronMessagePort, ElectronUtilityProcess, NodeForkedProcess, NodeWorker, WebSocket$1 as WebSocket };
|
|
@@ -659,7 +660,7 @@ declare namespace RendererProcess$1 {
|
|
|
659
660
|
export { dispose$11 as dispose, invoke$11 as invoke, invokeAndTransfer$11 as invokeAndTransfer, readClipBoard, readClipBoardText, set$11 as set, writeClipBoard };
|
|
660
661
|
}
|
|
661
662
|
declare namespace RendererWorker$1 {
|
|
662
|
-
export { activateByEvent$1 as activateByEvent, applyBulkReplacement, closeWidget$1 as closeWidget, confirm, disableExtension, dispose$12 as dispose, getActiveEditorId, getAllExtensions, getBlob, getChromeVersion, getColorThemeNames, getElectronVersion, getExtension, getExtensionCommands, getFileHandles, getFileIcon, getFilePathElectron, getFolderIcon, getFolderSize$
|
|
663
|
+
export { activateByEvent$1 as activateByEvent, applyBulkReplacement, closeWidget$1 as closeWidget, confirm, disableExtension, dispose$12 as dispose, getActiveEditorId, getAllExtensions, getBlob, getChromeVersion, getColorThemeNames, getElectronVersion, getExtension, getExtensionCommands, getFileHandles, getFileIcon, getFilePathElectron, getFolderIcon, getFolderSize$2 as getFolderSize, getIcons, getKeyBindings, getMarkdownDom, getNodeVersion, getPreference, getRecentlyOpened, getV8Version, getWebViewSecret, getWindowId, getWorkspacePath, handleDebugChange, handleDebugPaused, handleDebugResumed, handleDebugScriptParsed, installExtension, invoke$12 as invoke, invokeAndTransfer$12 as invokeAndTransfer, openNativeFolder, openUri, openWidget, readFile$2 as readFile, registerWebViewInterceptor, renderMarkdown, rerenderEditor, searchFileFetch, searchFileHtml, searchFileMemory, sendMessagePortToEditorWorker, sendMessagePortToExtensionHostWorker$1 as sendMessagePortToExtensionHostWorker, sendMessagePortToFileSystemWorker, sendMessagePortToMarkdownWorker, sendMessagePortToRendererProcess, sendMessagePortToSearchProcess, sendMessagePortToSyntaxHighlightingWorker, set$12 as set, setAdditionalFocus, setColorTheme, setFocus, setWebViewPort, setWorkspacePath, showContextMenu, showErrorDialog, showMessageBox, uninstallExtension, unregisterWebViewInterceptor, writeClipBoardImage, writeClipBoardText };
|
|
663
664
|
}
|
|
664
665
|
declare namespace RpcId {
|
|
665
666
|
export { ClipBoardProcess, ClipBoardWorker, ColorPickerWorker, CompletionWorker, DebugWorker, EditorWorker, EmbedsProcess, EmbedsWorker, ErrorWorker, ExtensionDetailWorker, ExtensionHostWorker, FileSystemProcess, FileSystemWorker, MainProcess, MarkdownWorker, ProblemsWorker, RendererProcess, RendererWorker, SearchProcess, SearchProcessElectron, SharedProcess, SourceActionWorker, SourceControlWorker, SyntaxHighlightingWorker };
|
package/dist/index.js
CHANGED
|
@@ -343,7 +343,7 @@ const copy$1 = async (oldUri, newUri) => {
|
|
|
343
343
|
// @ts-ignore
|
|
344
344
|
return invoke$8('FileSystem.copy', oldUri, newUri);
|
|
345
345
|
};
|
|
346
|
-
const getFolderSize$
|
|
346
|
+
const getFolderSize$2 = async uri => {
|
|
347
347
|
// @ts-ignore
|
|
348
348
|
return invoke$8('FileSystem.getFolderSize', uri);
|
|
349
349
|
};
|
|
@@ -357,7 +357,7 @@ const FileSystemProcess = {
|
|
|
357
357
|
copy: copy$1,
|
|
358
358
|
dispose: dispose$8,
|
|
359
359
|
exists: exists$1,
|
|
360
|
-
getFolderSize: getFolderSize$
|
|
360
|
+
getFolderSize: getFolderSize$2,
|
|
361
361
|
getPathSeparator: getPathSeparator$1,
|
|
362
362
|
getRealPath: getRealPath$1,
|
|
363
363
|
invoke: invoke$8,
|
|
@@ -417,6 +417,10 @@ const exists = async uri => {
|
|
|
417
417
|
// @ts-ignore
|
|
418
418
|
return invoke$7('FileSystem.exists', uri);
|
|
419
419
|
};
|
|
420
|
+
const getFolderSize$1 = async uri => {
|
|
421
|
+
// @ts-ignore
|
|
422
|
+
return invoke$7('FileSystem.getFolderSize', uri);
|
|
423
|
+
};
|
|
420
424
|
|
|
421
425
|
const FileSystemWorker = {
|
|
422
426
|
__proto__: null,
|
|
@@ -424,6 +428,7 @@ const FileSystemWorker = {
|
|
|
424
428
|
createFile,
|
|
425
429
|
dispose: dispose$7,
|
|
426
430
|
exists,
|
|
431
|
+
getFolderSize: getFolderSize$1,
|
|
427
432
|
getPathSeparator,
|
|
428
433
|
getRealPath,
|
|
429
434
|
invoke: invoke$7,
|