@lvce-editor/embeds-worker 4.13.2 → 4.14.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.
@@ -1122,17 +1122,15 @@ 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
  };
1132
1128
  const handleDidNavigate = forwardWebContentsViewEvent('ElectronBrowserView.handleDidNavigate');
1129
+ const handleKeyBinding = forwardWebContentsViewEvent('ElectronBrowserView.handleKeyBinding');
1133
1130
  const handlePageFaviconUpdated = forwardWebContentsViewEvent('ElectronBrowserView.handlePageFaviconUpdated');
1134
1131
  const handleTitleUpdated = forwardWebContentsViewEvent('ElectronBrowserView.handleTitleUpdated');
1135
1132
  const handleWillNavigate = forwardWebContentsViewEvent('ElectronBrowserView.handleWillNavigate');
1133
+ const handleWindowOpen = forwardWebContentsViewEvent('ElectronBrowserView.handleWindowOpen');
1136
1134
  const handleContextMenu = forwardWebContentsViewEvent('ElectronBrowserView.handleContextMenu', false);
1137
1135
 
1138
1136
  const exit = () => {
@@ -1188,6 +1186,10 @@ const initialize = async () => {
1188
1186
  set$1(rpc);
1189
1187
  };
1190
1188
 
1189
+ const setFallthroughKeyBindings = (id, fallthroughKeybindings) => {
1190
+ return invokeAny$1('ElectronWebContentsView.setFallthroughKeyBindings', id, fallthroughKeybindings);
1191
+ };
1192
+
1191
1193
  const commandMap = {
1192
1194
  'ElectronWebContentsView.acceptLogin': acceptLogin,
1193
1195
  'ElectronWebContentsView.backward': backward,
@@ -1203,10 +1205,12 @@ const commandMap = {
1203
1205
  'ElectronWebContentsView.getStats': getStats,
1204
1206
  'ElectronWebContentsView.handleContextMenu': handleContextMenu,
1205
1207
  'ElectronWebContentsView.handleDidNavigate': handleDidNavigate,
1208
+ 'ElectronWebContentsView.handleKeyBinding': handleKeyBinding,
1206
1209
  'ElectronWebContentsView.handleLogin': handleLogin,
1207
1210
  'ElectronWebContentsView.handlePageFaviconUpdated': handlePageFaviconUpdated,
1208
1211
  'ElectronWebContentsView.handleTitleUpdated': handleTitleUpdated,
1209
1212
  'ElectronWebContentsView.handleWillNavigate': handleWillNavigate,
1213
+ 'ElectronWebContentsView.handleWindowOpen': handleWindowOpen,
1210
1214
  'ElectronWebContentsView.hide': hide,
1211
1215
  'ElectronWebContentsView.insertCss': insertCss,
1212
1216
  'ElectronWebContentsView.insertJavaScript': insertJavaScript,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/embeds-worker",
3
- "version": "4.13.2",
3
+ "version": "4.14.1",
4
4
  "description": "Web Worker to manage electron webcontent views in Lvce Editor",
5
5
  "repository": {
6
6
  "type": "git",