@lvce-editor/embeds-worker 4.14.0 → 4.15.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/dist/embedsWorkerMain.js +10 -6
- package/package.json +1 -1
package/dist/embedsWorkerMain.js
CHANGED
|
@@ -1110,8 +1110,8 @@ const getDomTree = id => {
|
|
|
1110
1110
|
const insertCss = (id, css) => {
|
|
1111
1111
|
return invoke$1('ElectronWebContentsView.insertCss', id, css);
|
|
1112
1112
|
};
|
|
1113
|
-
const insertJavaScript = (id, code) => {
|
|
1114
|
-
return
|
|
1113
|
+
const insertJavaScript = (id, code, userGesture = false) => {
|
|
1114
|
+
return invokeAny$1('ElectronWebContentsView.insertJavaScript', id, code, userGesture);
|
|
1115
1115
|
};
|
|
1116
1116
|
const cancelNavigation = id => {
|
|
1117
1117
|
return invoke$1('ElectronWebContentsView.cancelNavigation', id);
|
|
@@ -1122,14 +1122,12 @@ const inspectElement = (id, x, y) => {
|
|
|
1122
1122
|
const copyImageAt = (id, x, y) => {
|
|
1123
1123
|
return invoke$1('ElectronWebContentsView.copyImageAt', id, x, y);
|
|
1124
1124
|
};
|
|
1125
|
-
const setFallthroughKeyBindings = async (id, fallthroughKeybindings) => {
|
|
1126
|
-
// TODO
|
|
1127
|
-
// return EmbedsProcess.invoke('ElectronWebContentsView.setFallthroughKeyBindings', id, fallthroughKeybindings)
|
|
1128
|
-
};
|
|
1129
1125
|
const getStats = (id, fallthroughKeybindings) => {
|
|
1130
1126
|
return invoke$1('ElectronWebContentsView.getStats', id, fallthroughKeybindings);
|
|
1131
1127
|
};
|
|
1128
|
+
const handleAudioStateChanged = forwardWebContentsViewEvent('ElectronBrowserView.handleAudioStateChanged');
|
|
1132
1129
|
const handleDidNavigate = forwardWebContentsViewEvent('ElectronBrowserView.handleDidNavigate');
|
|
1130
|
+
const handleKeyBinding = forwardWebContentsViewEvent('ElectronBrowserView.handleKeyBinding');
|
|
1133
1131
|
const handlePageFaviconUpdated = forwardWebContentsViewEvent('ElectronBrowserView.handlePageFaviconUpdated');
|
|
1134
1132
|
const handleTitleUpdated = forwardWebContentsViewEvent('ElectronBrowserView.handleTitleUpdated');
|
|
1135
1133
|
const handleWillNavigate = forwardWebContentsViewEvent('ElectronBrowserView.handleWillNavigate');
|
|
@@ -1189,6 +1187,10 @@ const initialize = async () => {
|
|
|
1189
1187
|
set$1(rpc);
|
|
1190
1188
|
};
|
|
1191
1189
|
|
|
1190
|
+
const setFallthroughKeyBindings = (id, fallthroughKeybindings) => {
|
|
1191
|
+
return invokeAny$1('ElectronWebContentsView.setFallthroughKeyBindings', id, fallthroughKeybindings);
|
|
1192
|
+
};
|
|
1193
|
+
|
|
1192
1194
|
const commandMap = {
|
|
1193
1195
|
'ElectronWebContentsView.acceptLogin': acceptLogin,
|
|
1194
1196
|
'ElectronWebContentsView.backward': backward,
|
|
@@ -1202,8 +1204,10 @@ const commandMap = {
|
|
|
1202
1204
|
'ElectronWebContentsView.forward': forward,
|
|
1203
1205
|
'ElectronWebContentsView.getDomTree': getDomTree,
|
|
1204
1206
|
'ElectronWebContentsView.getStats': getStats,
|
|
1207
|
+
'ElectronWebContentsView.handleAudioStateChanged': handleAudioStateChanged,
|
|
1205
1208
|
'ElectronWebContentsView.handleContextMenu': handleContextMenu,
|
|
1206
1209
|
'ElectronWebContentsView.handleDidNavigate': handleDidNavigate,
|
|
1210
|
+
'ElectronWebContentsView.handleKeyBinding': handleKeyBinding,
|
|
1207
1211
|
'ElectronWebContentsView.handleLogin': handleLogin,
|
|
1208
1212
|
'ElectronWebContentsView.handlePageFaviconUpdated': handlePageFaviconUpdated,
|
|
1209
1213
|
'ElectronWebContentsView.handleTitleUpdated': handleTitleUpdated,
|