@lvce-editor/embeds-worker 4.14.1 → 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.
@@ -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 invoke$1('ElectronWebContentsView.insertJavaScript', id, code);
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);
@@ -1125,6 +1125,7 @@ const copyImageAt = (id, x, y) => {
1125
1125
  const getStats = (id, fallthroughKeybindings) => {
1126
1126
  return invoke$1('ElectronWebContentsView.getStats', id, fallthroughKeybindings);
1127
1127
  };
1128
+ const handleAudioStateChanged = forwardWebContentsViewEvent('ElectronBrowserView.handleAudioStateChanged');
1128
1129
  const handleDidNavigate = forwardWebContentsViewEvent('ElectronBrowserView.handleDidNavigate');
1129
1130
  const handleKeyBinding = forwardWebContentsViewEvent('ElectronBrowserView.handleKeyBinding');
1130
1131
  const handlePageFaviconUpdated = forwardWebContentsViewEvent('ElectronBrowserView.handlePageFaviconUpdated');
@@ -1203,6 +1204,7 @@ const commandMap = {
1203
1204
  'ElectronWebContentsView.forward': forward,
1204
1205
  'ElectronWebContentsView.getDomTree': getDomTree,
1205
1206
  'ElectronWebContentsView.getStats': getStats,
1207
+ 'ElectronWebContentsView.handleAudioStateChanged': handleAudioStateChanged,
1206
1208
  'ElectronWebContentsView.handleContextMenu': handleContextMenu,
1207
1209
  'ElectronWebContentsView.handleDidNavigate': handleDidNavigate,
1208
1210
  'ElectronWebContentsView.handleKeyBinding': handleKeyBinding,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/embeds-worker",
3
- "version": "4.14.1",
3
+ "version": "4.15.0",
4
4
  "description": "Web Worker to manage electron webcontent views in Lvce Editor",
5
5
  "repository": {
6
6
  "type": "git",