@lvce-editor/shared-process 0.116.28 → 0.117.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/shared-process",
3
- "version": "0.116.28",
3
+ "version": "0.117.1",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -3,6 +3,6 @@ import { fileURLToPath } from 'url'
3
3
 
4
4
  export const getBuiltinExtensionsPath = () => {
5
5
  const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'))
6
- const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '44a5785', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '88e6277', 'extensions')
7
7
  return builtinExtensionsPath
8
8
  }
@@ -14,6 +14,7 @@ export const Commands = {
14
14
  setBrowserFullWidthGestureEnabled: ElectronWindow.setBrowserFullWidthGestureEnabled,
15
15
  toggleDevtools: ElectronWindow.toggleDevtools,
16
16
  toggleFullScreen: ElectronWindow.toggleFullScreen,
17
+ toggleMaximize: ElectronWindow.toggleMaximize,
17
18
  unmaximize: ElectronWindow.unmaximize,
18
19
  zoomIn: ElectronWindow.zoomIn,
19
20
  zoomOut: ElectronWindow.zoomOut,
@@ -32,6 +32,11 @@ export const maximize = (windowId) => {
32
32
  return ParentIpc.invoke('ElectronWindow.executeWindowFunction', windowId, 'maximize')
33
33
  }
34
34
 
35
+ export const toggleMaximize = (windowId) => {
36
+ Assert.number(windowId)
37
+ return ParentIpc.invoke('ElectronWindow.executeWindowFunction', windowId, 'toggleMaximize')
38
+ }
39
+
35
40
  export const unmaximize = (windowId) => {
36
41
  Assert.number(windowId)
37
42
  return ParentIpc.invoke('ElectronWindow.executeWindowFunction', windowId, 'unmaximize')
@@ -37,12 +37,13 @@ export const getAppWindowOptions = async ({ preferences, preloadUrl, screenHeigh
37
37
  fallbackSymbolColor,
38
38
  )
39
39
  const titleBarPreference = preferences['window.titleBarStyle']
40
- const frame = titleBarPreference !== 'custom'
41
- const titleBarStyle = titleBarPreference === 'custom' ? 'hidden' : undefined
40
+ const titleBarless = preferences['window.titleBarless.enabled'] === true && Platform.isLinux
41
+ const frame = titleBarless ? false : titleBarPreference !== 'custom'
42
+ const titleBarStyle = titleBarless || titleBarPreference === 'custom' ? 'hidden' : undefined
42
43
  const zoomLevelPreference = preferences['window.zoomLevel']
43
44
  const zoomLevel = zoomLevelPreference
44
45
  const windowControlsOverlayPreference =
45
- (Platform.isWindows || Platform.isMacOs || Platform.isLinux) && preferences['window.controlsOverlay.enabled']
46
+ (Platform.isWindows || Platform.isMacOs || Platform.isLinux) && preferences['window.controlsOverlay.enabled'] && !titleBarless
46
47
 
47
48
  const titleBarOverlay = windowControlsOverlayPreference
48
49
  ? {
@@ -93,6 +93,7 @@ export const getModuleId = (commandId) => {
93
93
  case 'ElectronWindow.setBrowserFullWidthGestureEnabled':
94
94
  case 'ElectronWindow.toggleDevtools':
95
95
  case 'ElectronWindow.toggleFullScreen':
96
+ case 'ElectronWindow.toggleMaximize':
96
97
  case 'ElectronWindow.unmaximize':
97
98
  case 'ElectronWindow.zoomIn':
98
99
  case 'ElectronWindow.zoomOut':
@@ -56,11 +56,11 @@ export const getSetupName = () => {
56
56
  return 'Lvce-Setup'
57
57
  }
58
58
 
59
- export const version = '0.116.28'
59
+ export const version = '0.117.1'
60
60
 
61
- export const commit = '44a5785'
61
+ export const commit = '88e6277'
62
62
 
63
- export const date = '2026-09-23T05:46:56.000Z'
63
+ export const date = '2026-09-23T19:37:11.000Z'
64
64
 
65
65
  export const getVersion = () => {
66
66
  return version
@@ -3,12 +3,14 @@ import * as IsEnoentError from '../IsEnoentError/IsEnoentError.js'
3
3
  import * as JsoncFile from '../JsoncFile/JsoncFile.js'
4
4
  import * as LinkedWorkerPreferences from '../LinkedWorkerPreferences/LinkedWorkerPreferences.js'
5
5
  import * as Logger from '../Logger/Logger.js'
6
+ import * as Platform from '../Platform/Platform.js'
6
7
  import * as PlatformPaths from '../PlatformPaths/PlatformPaths.js'
7
8
  import * as Process from '../Process/Process.js'
8
9
  import { VError } from '../VError/VError.js'
9
10
  // TODO need jsonc parser for settings with comments
10
11
 
11
12
  const builtinPreferences = {
13
+ 'window.titleBarless.enabled': false,
12
14
  'window.titleBarStyle': 'custom',
13
15
  }
14
16
 
@@ -74,6 +76,8 @@ export const getAll = async () => {
74
76
  ...userPreferences,
75
77
  ...overrides,
76
78
  }
79
+ // Keep the Linux-only window layout inert on other platforms.
80
+ preferences['window.titleBarless.enabled'] = Platform.isLinux && preferences['window.titleBarless.enabled'] === true
77
81
  // try {
78
82
  // await mkdir(dirname(CACHED_SETTINGS_PATH), { recursive: true })
79
83
  // await writeFile(
@@ -2,5 +2,5 @@ import { join } from 'node:path'
2
2
  import * as Root from '../Root/Root.js'
3
3
 
4
4
  export const getPreloadUrl = () => {
5
- return join(Root.root, 'static', '44a5785', 'packages', 'preload', 'dist', 'index.js')
5
+ return join(Root.root, 'static', '88e6277', 'packages', 'preload', 'dist', 'index.js')
6
6
  }