@lvce-editor/renderer-process 30.67.1 → 30.68.1
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/rendererProcessMain.js +24 -0
- package/package.json +1 -1
|
@@ -1974,6 +1974,27 @@ const dispose$l = async () => {
|
|
|
1974
1974
|
}
|
|
1975
1975
|
};
|
|
1976
1976
|
|
|
1977
|
+
const isAvailable = () => {
|
|
1978
|
+
const tauriWindow = window;
|
|
1979
|
+
return typeof tauriWindow.__TAURI__?.core?.invoke === 'function';
|
|
1980
|
+
};
|
|
1981
|
+
const toggleDevtools = async () => {
|
|
1982
|
+
const tauriWindow = window;
|
|
1983
|
+
const core = tauriWindow.__TAURI__?.core;
|
|
1984
|
+
if (!core) {
|
|
1985
|
+
throw new Error('Tauri is not available');
|
|
1986
|
+
}
|
|
1987
|
+
await core.invoke('toggle_devtools');
|
|
1988
|
+
};
|
|
1989
|
+
const openNewWindow = async () => {
|
|
1990
|
+
const tauriWindow = window;
|
|
1991
|
+
const core = tauriWindow.__TAURI__?.core;
|
|
1992
|
+
if (!core) {
|
|
1993
|
+
throw new Error('Tauri is not available');
|
|
1994
|
+
}
|
|
1995
|
+
await core.invoke('open_new_window');
|
|
1996
|
+
};
|
|
1997
|
+
|
|
1977
1998
|
const getConfiguredDragAndDropWorkerUrl = () => {
|
|
1978
1999
|
const workerUrls = getConfiguredWorkerUrl('workerUrls');
|
|
1979
2000
|
return workerUrls?.['develop.dragAndDropWorkerPath'] || '';
|
|
@@ -11995,6 +12016,9 @@ const commandMap = {
|
|
|
11995
12016
|
'SessionReplay.getSession': getSession,
|
|
11996
12017
|
'SessionReplay.getStatus': getStatus$1,
|
|
11997
12018
|
'SessionReplay.openLocalFile': openLocalFile,
|
|
12019
|
+
'Tauri.isAvailable': isAvailable,
|
|
12020
|
+
'Tauri.openNewWindow': openNewWindow,
|
|
12021
|
+
'Tauri.toggleDevtools': toggleDevtools,
|
|
11998
12022
|
'TestFrameWork.checkConditionError': checkConditionError,
|
|
11999
12023
|
'TestFrameWork.checkMultiElementCondition': checkMultiElementCondition,
|
|
12000
12024
|
'TestFrameWork.checkSingleElementCondition': checkSingleElementCondition,
|