@lvce-editor/embeds-worker 4.14.1 → 4.15.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/dist/embedsWorkerMain.js +8 -2
- package/package.json +1 -1
package/dist/embedsWorkerMain.js
CHANGED
|
@@ -1083,6 +1083,9 @@ const setIframeSrc = async (id, iframeSrc) => {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
1085
|
};
|
|
1086
|
+
const setAudioMuted = (id, muted) => {
|
|
1087
|
+
return invokeAny$1('ElectronWebContentsView.setAudioMuted', id, muted);
|
|
1088
|
+
};
|
|
1086
1089
|
const focus = id => {
|
|
1087
1090
|
return invoke$1('ElectronWebContentsView.focus', id);
|
|
1088
1091
|
};
|
|
@@ -1110,8 +1113,8 @@ const getDomTree = id => {
|
|
|
1110
1113
|
const insertCss = (id, css) => {
|
|
1111
1114
|
return invoke$1('ElectronWebContentsView.insertCss', id, css);
|
|
1112
1115
|
};
|
|
1113
|
-
const insertJavaScript = (id, code) => {
|
|
1114
|
-
return
|
|
1116
|
+
const insertJavaScript = (id, code, userGesture = false) => {
|
|
1117
|
+
return invokeAny$1('ElectronWebContentsView.insertJavaScript', id, code, userGesture);
|
|
1115
1118
|
};
|
|
1116
1119
|
const cancelNavigation = id => {
|
|
1117
1120
|
return invoke$1('ElectronWebContentsView.cancelNavigation', id);
|
|
@@ -1125,6 +1128,7 @@ const copyImageAt = (id, x, y) => {
|
|
|
1125
1128
|
const getStats = (id, fallthroughKeybindings) => {
|
|
1126
1129
|
return invoke$1('ElectronWebContentsView.getStats', id, fallthroughKeybindings);
|
|
1127
1130
|
};
|
|
1131
|
+
const handleAudioStateChanged = forwardWebContentsViewEvent('ElectronBrowserView.handleAudioStateChanged');
|
|
1128
1132
|
const handleDidNavigate = forwardWebContentsViewEvent('ElectronBrowserView.handleDidNavigate');
|
|
1129
1133
|
const handleKeyBinding = forwardWebContentsViewEvent('ElectronBrowserView.handleKeyBinding');
|
|
1130
1134
|
const handlePageFaviconUpdated = forwardWebContentsViewEvent('ElectronBrowserView.handlePageFaviconUpdated');
|
|
@@ -1203,6 +1207,7 @@ const commandMap = {
|
|
|
1203
1207
|
'ElectronWebContentsView.forward': forward,
|
|
1204
1208
|
'ElectronWebContentsView.getDomTree': getDomTree,
|
|
1205
1209
|
'ElectronWebContentsView.getStats': getStats,
|
|
1210
|
+
'ElectronWebContentsView.handleAudioStateChanged': handleAudioStateChanged,
|
|
1206
1211
|
'ElectronWebContentsView.handleContextMenu': handleContextMenu,
|
|
1207
1212
|
'ElectronWebContentsView.handleDidNavigate': handleDidNavigate,
|
|
1208
1213
|
'ElectronWebContentsView.handleKeyBinding': handleKeyBinding,
|
|
@@ -1218,6 +1223,7 @@ const commandMap = {
|
|
|
1218
1223
|
'ElectronWebContentsView.openDevtools': openDevtools,
|
|
1219
1224
|
'ElectronWebContentsView.reload': reload,
|
|
1220
1225
|
'ElectronWebContentsView.resizeWebContentsView': resizeWebContentsView,
|
|
1226
|
+
'ElectronWebContentsView.setAudioMuted': setAudioMuted,
|
|
1221
1227
|
'ElectronWebContentsView.setFallthroughKeyBindings': setFallthroughKeyBindings,
|
|
1222
1228
|
'ElectronWebContentsView.setIframeSrc': setIframeSrc,
|
|
1223
1229
|
'ElectronWebContentsView.show': show,
|