@lvce-editor/shared-process 0.113.17 → 0.113.19
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/config/defaultSettings.json +2 -0
- package/package.json +1 -1
- package/src/parts/BuiltinExtensionsPath/BuiltinExtensionsPath.js +1 -1
- package/src/parts/ElectronClipBoard/ElectronClipBoard.ipc.js +7 -0
- package/src/parts/ElectronClipBoard/ElectronClipBoard.js +7 -0
- package/src/parts/ElectronContextMenu/ElectronContextMenu.ipc.js +1 -0
- package/src/parts/ElectronContextMenu/ElectronContextMenu.js +9 -2
- package/src/parts/ElectronWindow/ElectronWindow.ipc.js +1 -0
- package/src/parts/ElectronWindow/ElectronWindow.js +8 -0
- package/src/parts/Module/Module.js +2 -0
- package/src/parts/ModuleMap/ModuleMap.js +2 -0
- package/src/parts/Platform/Platform.js +3 -3
- package/src/parts/PreloadUrl/PreloadUrl.js +1 -1
|
@@ -52,6 +52,8 @@
|
|
|
52
52
|
"sessionReplay.enabled": false,
|
|
53
53
|
|
|
54
54
|
"simpleBrowser.audioIndicator.enabled": true,
|
|
55
|
+
"simpleBrowser.chromeTheme": "light",
|
|
56
|
+
"simpleBrowser.fullWidth.doubleControlEnabled": true,
|
|
55
57
|
"simpleBrowser.suggestions": false,
|
|
56
58
|
"simpleBrowser.shortcuts": [],
|
|
57
59
|
"simpleBrowser.tabHover.enabled": false,
|
package/package.json
CHANGED
|
@@ -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', '
|
|
6
|
+
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '5f364e1', 'extensions')
|
|
7
7
|
return builtinExtensionsPath
|
|
8
8
|
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import * as Assert from '../Assert/Assert.js'
|
|
2
2
|
import * as ParentIpc from '../MainProcess/MainProcess.js'
|
|
3
3
|
|
|
4
|
-
export const openContextMenu = (menuItems, x, y) => {
|
|
4
|
+
export const openContextMenu = (menuItems, x, y, browserViewId) => {
|
|
5
5
|
Assert.array(menuItems)
|
|
6
6
|
Assert.number(x)
|
|
7
7
|
Assert.number(y)
|
|
8
|
-
return ParentIpc.invoke('ElectronContextMenu.openContextMenu', menuItems, x, y)
|
|
8
|
+
return ParentIpc.invoke('ElectronContextMenu.openContextMenu', menuItems, x, y, browserViewId)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const copyImage = (browserViewId, x, y) => {
|
|
12
|
+
Assert.number(browserViewId)
|
|
13
|
+
Assert.number(x)
|
|
14
|
+
Assert.number(y)
|
|
15
|
+
return ParentIpc.invoke('ElectronWebContents.callFunction', browserViewId, 'copyImageAt', x, y)
|
|
9
16
|
}
|
|
@@ -11,6 +11,7 @@ export const Commands = {
|
|
|
11
11
|
openNew: ElectronWindow.openNew,
|
|
12
12
|
openNewWithUri: ElectronWindow.openNewWithUri,
|
|
13
13
|
reload: ElectronWindow.reload,
|
|
14
|
+
setBrowserFullWidthGestureEnabled: ElectronWindow.setBrowserFullWidthGestureEnabled,
|
|
14
15
|
toggleDevtools: ElectronWindow.toggleDevtools,
|
|
15
16
|
toggleFullScreen: ElectronWindow.toggleFullScreen,
|
|
16
17
|
unmaximize: ElectronWindow.unmaximize,
|
|
@@ -118,3 +118,11 @@ export const handleClose = (windowId) => {
|
|
|
118
118
|
export const getFocusedWindowId = () => {
|
|
119
119
|
return ParentIpc.invoke('ElectronWindow.getFocusedWindowId')
|
|
120
120
|
}
|
|
121
|
+
|
|
122
|
+
export const setBrowserFullWidthGestureEnabled = (windowId, enabled) => {
|
|
123
|
+
return ParentIpc.invoke(
|
|
124
|
+
'ElectronWindow.executeWindowFunction',
|
|
125
|
+
windowId,
|
|
126
|
+
enabled ? 'enableBrowserFullWidthGesture' : 'disableBrowserFullWidthGesture',
|
|
127
|
+
)
|
|
128
|
+
}
|
|
@@ -26,6 +26,8 @@ export const load = (moduleId) => {
|
|
|
26
26
|
return import('../Download/Download.ipc.js')
|
|
27
27
|
case ModuleId.ElectronApplicationMenu:
|
|
28
28
|
return import('../ElectronApplicationMenu/ElectronApplicationMenu.ipc.js')
|
|
29
|
+
case ModuleId.ElectronClipBoard:
|
|
30
|
+
return import('../ElectronClipBoard/ElectronClipBoard.ipc.js')
|
|
29
31
|
case ModuleId.ElectronContentTracing:
|
|
30
32
|
return import('../ElectronContentTracing/ElectronContentTracing.ipc.js')
|
|
31
33
|
case ModuleId.ElectronContextMenu:
|
|
@@ -49,6 +49,7 @@ export const getModuleId = (commandId) => {
|
|
|
49
49
|
case 'ElectronContentTracing.startRecording':
|
|
50
50
|
case 'ElectronContentTracing.stopRecording':
|
|
51
51
|
return ModuleId.ElectronContentTracing
|
|
52
|
+
case 'ElectronContextMenu.copyImage':
|
|
52
53
|
case 'ElectronContextMenu.openContextMenu':
|
|
53
54
|
return ModuleId.ElectronContextMenu
|
|
54
55
|
case 'ElectronDeveloper.getPerformanceEntries':
|
|
@@ -81,6 +82,7 @@ export const getModuleId = (commandId) => {
|
|
|
81
82
|
case 'ElectronWindow.openNew':
|
|
82
83
|
case 'ElectronWindow.openNewWithUri':
|
|
83
84
|
case 'ElectronWindow.reload':
|
|
85
|
+
case 'ElectronWindow.setBrowserFullWidthGestureEnabled':
|
|
84
86
|
case 'ElectronWindow.toggleDevtools':
|
|
85
87
|
case 'ElectronWindow.toggleFullScreen':
|
|
86
88
|
case 'ElectronWindow.unmaximize':
|
|
@@ -56,11 +56,11 @@ export const getSetupName = () => {
|
|
|
56
56
|
return 'Lvce-Setup'
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
export const version = '0.113.
|
|
59
|
+
export const version = '0.113.19'
|
|
60
60
|
|
|
61
|
-
export const commit = '
|
|
61
|
+
export const commit = '5f364e1'
|
|
62
62
|
|
|
63
|
-
export const date = '2026-09-
|
|
63
|
+
export const date = '2026-09-07T11:36:12.000Z'
|
|
64
64
|
|
|
65
65
|
export const getVersion = () => {
|
|
66
66
|
return version
|
|
@@ -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', '
|
|
5
|
+
return join(Root.root, 'static', '5f364e1', 'packages', 'preload', 'dist', 'index.js')
|
|
6
6
|
}
|