@lvce-editor/embeds-process 1.1.0 → 1.3.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/embeds-process",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/embedsProcessMain.js",
|
|
6
6
|
"type": "module",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@lvce-editor/ipc": "^9.
|
|
54
|
+
"@lvce-editor/ipc": "^9.1.0",
|
|
55
55
|
"@lvce-editor/json-rpc": "^1.3.0"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as HandleElectronMessagePort from '../HandleElectronMessagePort/HandleElectronMessagePort.js'
|
|
2
|
-
import * as ElectronWebContentsView from '../ElectronWebContentsView/ElectronWebContentsView.js'
|
|
3
1
|
import * as ElectronWebContents from '../ElectronWebContents/ElectronWebContents.js'
|
|
2
|
+
import * as ElectronWebContentsView from '../ElectronWebContentsView/ElectronWebContentsView.js'
|
|
3
|
+
import * as HandleElectronMessagePort from '../HandleElectronMessagePort/HandleElectronMessagePort.js'
|
|
4
4
|
|
|
5
5
|
export const commandMap = {
|
|
6
6
|
'ElectronWebContentsView.backward': ElectronWebContents.backward,
|
|
@@ -14,6 +14,8 @@ export const commandMap = {
|
|
|
14
14
|
'ElectronWebContentsView.reload': ElectronWebContents.reload,
|
|
15
15
|
'ElectronWebContentsView.resizeBrowserView': ElectronWebContentsView.resizeWebContentsView,
|
|
16
16
|
'ElectronWebContentsView.setIframeSrc': ElectronWebContentsView.setIframeSrc,
|
|
17
|
+
'ElectronWebContentsView.setIframeSrcFallback': ElectronWebContentsView.setIframeSrcFallback,
|
|
18
|
+
'ElectronWebContentsView.setFallthroughKeyBindings': ElectronWebContentsView.setFallthroughKeyBindings,
|
|
17
19
|
'ElectronWebContentsView.show': ElectronWebContentsView.show,
|
|
18
20
|
'ElectronWebContents.handleDidNavigate': ElectronWebContentsView.handleDidNavigate,
|
|
19
21
|
'ElectronWebContents.handleTitleUpdated': ElectronWebContentsView.handleTitleUpdated,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as Assert from '../Assert/Assert.js'
|
|
2
2
|
import * as ElectronWebContents from '../ElectronWebContents/ElectronWebContents.js'
|
|
3
3
|
import * as ElectronWebContentsViewIpcState from '../ElectronWebContentsViewIpcState/ElectronWebContentsViewIpcState.js'
|
|
4
|
-
import * as ParentIpc from '../ParentIpc/ParentIpc.js'
|
|
5
4
|
import * as JsonRpc from '../JsonRpc/JsonRpc.js'
|
|
5
|
+
import * as ParentIpc from '../ParentIpc/ParentIpc.js'
|
|
6
6
|
|
|
7
7
|
export const createWebContentsView = async (ipc, restoreId, fallthroughKeyBindings) => {
|
|
8
8
|
Assert.number(restoreId)
|
|
@@ -27,6 +27,14 @@ export const setIframeSrc = async (id, ...args) => {
|
|
|
27
27
|
return ParentIpc.invoke('ElectronWebContentsViewFunctions.setIframeSrc', id, ...args)
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
export const setIframeSrcFallback = async (id, ...args) => {
|
|
31
|
+
return ParentIpc.invoke('ElectronWebContentsViewFunctions.setIframeSrcFallback', id, ...args)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const setFallthroughKeyBindings = async (id, ...args) => {
|
|
35
|
+
return ParentIpc.invoke('ElectronWebContentsViewFunctions.setFallthroughKeyBindings', id, ...args)
|
|
36
|
+
}
|
|
37
|
+
|
|
30
38
|
export const getStats = async (id, ...args) => {
|
|
31
39
|
return ParentIpc.invoke('ElectronWebContentsViewFunctions.getStats', id, ...args)
|
|
32
40
|
}
|
|
@@ -53,6 +61,8 @@ export const handleWillNavigate = forwardIpcEvent('ElectronWebContentsView.handl
|
|
|
53
61
|
|
|
54
62
|
export const handleContextMenu = forwardIpcEvent('ElectronWebContentsView.handleContextMenu')
|
|
55
63
|
|
|
64
|
+
export const handleKeyBinding = forwardIpcEvent('ElectronWebContentsView.handleKeyBinding')
|
|
65
|
+
|
|
56
66
|
export const handleBrowserViewDestroyed = (id, ...args) => {
|
|
57
67
|
// TODO send to embeds worker?
|
|
58
68
|
}
|