@lvce-editor/shared-process 0.113.17 → 0.113.20

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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/shared-process",
3
- "version": "0.113.17",
3
+ "version": "0.113.20",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -20,7 +20,7 @@
20
20
  "@lvce-editor/assert": "1.9.0",
21
21
  "@lvce-editor/file-watcher-explorer": "0.1.1",
22
22
  "@lvce-editor/ipc": "16.12.1",
23
- "@lvce-editor/json-rpc": "8.7.0",
23
+ "@lvce-editor/json-rpc": "8.8.0",
24
24
  "@lvce-editor/jsonc-parser": "1.5.2",
25
25
  "@lvce-editor/pretty-error": "2.0.0",
26
26
  "@lvce-editor/process-explorer": "3.27.1",
@@ -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', 'b3b2cad', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '044fd22', 'extensions')
7
7
  return builtinExtensionsPath
8
8
  }
@@ -0,0 +1,7 @@
1
+ import * as ElectronClipBoard from './ElectronClipBoard.js'
2
+
3
+ export const name = 'ElectronClipBoard'
4
+
5
+ export const Commands = {
6
+ writeText: ElectronClipBoard.writeText,
7
+ }
@@ -0,0 +1,7 @@
1
+ import * as Assert from '../Assert/Assert.js'
2
+ import * as MainProcess from '../MainProcess/MainProcess.js'
3
+
4
+ export const writeText = (text) => {
5
+ Assert.string(text)
6
+ return MainProcess.invoke('ElectronClipBoard.writeText', text)
7
+ }
@@ -3,5 +3,6 @@ import * as ElectronContextMenu from './ElectronContextMenu.js'
3
3
  export const name = 'ElectronContextMenu'
4
4
 
5
5
  export const Commands = {
6
+ copyImage: ElectronContextMenu.copyImage,
6
7
  openContextMenu: ElectronContextMenu.openContextMenu,
7
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.17'
59
+ export const version = '0.113.20'
60
60
 
61
- export const commit = 'b3b2cad'
61
+ export const commit = '044fd22'
62
62
 
63
- export const date = '2026-09-06T22:29:51.000Z'
63
+ export const date = '2026-09-07T13:10:56.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', 'b3b2cad', 'packages', 'preload', 'dist', 'index.js')
5
+ return join(Root.root, 'static', '044fd22', 'packages', 'preload', 'dist', 'index.js')
6
6
  }