@lvce-editor/renderer-process 30.32.2 → 30.33.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.
@@ -9485,6 +9485,12 @@ const toggleFullScreen = () => {
9485
9485
  }
9486
9486
  return document.documentElement.requestFullscreen();
9487
9487
  };
9488
+ const handleFullScreenChange = isFullScreen => {
9489
+ send('Layout.handleFullScreenChange', isFullScreen);
9490
+ };
9491
+ const handleDocumentFullScreenChange = () => {
9492
+ handleFullScreenChange(Boolean(document.fullscreenElement));
9493
+ };
9488
9494
  const sendVisibilityChangeHint = () => {
9489
9495
  send(/* SaveState.handleVisibilityChange */'SaveState.handleVisibilityChange', /* visibilityState */'hidden');
9490
9496
  };
@@ -9500,6 +9506,7 @@ const handlePointerLeave = () => {
9500
9506
  // beforeunload event has the same problem, pointerleave event sometimes works
9501
9507
  const onVisibilityChange = () => {
9502
9508
  window.addEventListener('beforeunload', handleBeforeUnload);
9509
+ document.addEventListener('fullscreenchange', handleDocumentFullScreenChange);
9503
9510
  document.addEventListener('pointerleave', handlePointerLeave);
9504
9511
  };
9505
9512
 
@@ -9895,6 +9902,7 @@ const commandMap = {
9895
9902
  'WebView.loadOnly': loadOnly,
9896
9903
  'WebView.setPort': setPort,
9897
9904
  'Window.close': close,
9905
+ 'Window.handleFullScreenChange': handleFullScreenChange,
9898
9906
  'Window.maximize': maximize,
9899
9907
  'Window.minimize': minimize,
9900
9908
  'Window.onVisibilityChange': onVisibilityChange,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.32.2",
3
+ "version": "30.33.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"