@lvce-editor/embeds-worker 4.13.1 → 4.14.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 +7 -12
- package/package.json +1 -1
package/dist/embedsWorkerMain.js
CHANGED
|
@@ -1024,15 +1024,6 @@ const capturePage = id => {
|
|
|
1024
1024
|
return invokeAny$1('ElectronWebContentsView.capturePage', id);
|
|
1025
1025
|
};
|
|
1026
1026
|
|
|
1027
|
-
const createWebContentsView$1 = async (restoreId, ipcId) => {
|
|
1028
|
-
return invokeAny$1('ElectronWebContentsView.createWebContentsView', ipcId, restoreId);
|
|
1029
|
-
};
|
|
1030
|
-
|
|
1031
|
-
const CreateWebContentsView = {
|
|
1032
|
-
__proto__: null,
|
|
1033
|
-
createWebContentsView: createWebContentsView$1
|
|
1034
|
-
};
|
|
1035
|
-
|
|
1036
1027
|
const invoke = (method, ...params) => invoke$2(method, ...params);
|
|
1037
1028
|
const invokeAndTransfer = (method, ...params) => invokeAndTransfer$1(method, ...params);
|
|
1038
1029
|
const set = (...args) => set$2(...args);
|
|
@@ -1045,9 +1036,11 @@ const forwardWebContentsViewEvent = (key, includeId = true) => (id, ...args) =>
|
|
|
1045
1036
|
const ERR_ABORTED = 'ERR_ABORTED';
|
|
1046
1037
|
const ERR_FAILED = 'ERR_FAILED';
|
|
1047
1038
|
|
|
1048
|
-
const {
|
|
1049
|
-
|
|
1050
|
-
|
|
1039
|
+
const createWebContentsView = async (restoreId, fallThroughKeyBindings) => {
|
|
1040
|
+
// @ts-ignore
|
|
1041
|
+
const id = await invoke$1('ElectronWebContentsView.createWebContentsView', restoreId, fallThroughKeyBindings);
|
|
1042
|
+
return id;
|
|
1043
|
+
};
|
|
1051
1044
|
const disposeWebContentsView = id => {
|
|
1052
1045
|
return invoke$1('ElectronWebContentsView.disposeWebContentsView', id);
|
|
1053
1046
|
};
|
|
@@ -1140,6 +1133,7 @@ const handleDidNavigate = forwardWebContentsViewEvent('ElectronBrowserView.handl
|
|
|
1140
1133
|
const handlePageFaviconUpdated = forwardWebContentsViewEvent('ElectronBrowserView.handlePageFaviconUpdated');
|
|
1141
1134
|
const handleTitleUpdated = forwardWebContentsViewEvent('ElectronBrowserView.handleTitleUpdated');
|
|
1142
1135
|
const handleWillNavigate = forwardWebContentsViewEvent('ElectronBrowserView.handleWillNavigate');
|
|
1136
|
+
const handleWindowOpen = forwardWebContentsViewEvent('ElectronBrowserView.handleWindowOpen');
|
|
1143
1137
|
const handleContextMenu = forwardWebContentsViewEvent('ElectronBrowserView.handleContextMenu', false);
|
|
1144
1138
|
|
|
1145
1139
|
const exit = () => {
|
|
@@ -1214,6 +1208,7 @@ const commandMap = {
|
|
|
1214
1208
|
'ElectronWebContentsView.handlePageFaviconUpdated': handlePageFaviconUpdated,
|
|
1215
1209
|
'ElectronWebContentsView.handleTitleUpdated': handleTitleUpdated,
|
|
1216
1210
|
'ElectronWebContentsView.handleWillNavigate': handleWillNavigate,
|
|
1211
|
+
'ElectronWebContentsView.handleWindowOpen': handleWindowOpen,
|
|
1217
1212
|
'ElectronWebContentsView.hide': hide,
|
|
1218
1213
|
'ElectronWebContentsView.insertCss': insertCss,
|
|
1219
1214
|
'ElectronWebContentsView.insertJavaScript': insertJavaScript,
|