@lvce-editor/renderer-process 30.67.1 → 30.68.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.
@@ -1974,6 +1974,19 @@ 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
+
1977
1990
  const getConfiguredDragAndDropWorkerUrl = () => {
1978
1991
  const workerUrls = getConfiguredWorkerUrl('workerUrls');
1979
1992
  return workerUrls?.['develop.dragAndDropWorkerPath'] || '';
@@ -11995,6 +12008,8 @@ const commandMap = {
11995
12008
  'SessionReplay.getSession': getSession,
11996
12009
  'SessionReplay.getStatus': getStatus$1,
11997
12010
  'SessionReplay.openLocalFile': openLocalFile,
12011
+ 'Tauri.isAvailable': isAvailable,
12012
+ 'Tauri.toggleDevtools': toggleDevtools,
11998
12013
  'TestFrameWork.checkConditionError': checkConditionError,
11999
12014
  'TestFrameWork.checkMultiElementCondition': checkMultiElementCondition,
12000
12015
  'TestFrameWork.checkSingleElementCondition': checkSingleElementCondition,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.67.1",
3
+ "version": "30.68.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"