@lvce-editor/embeds-worker 4.13.1 → 4.13.2

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.
@@ -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
- createWebContentsView
1050
- } = CreateWebContentsView;
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/embeds-worker",
3
- "version": "4.13.1",
3
+ "version": "4.13.2",
4
4
  "description": "Web Worker to manage electron webcontent views in Lvce Editor",
5
5
  "repository": {
6
6
  "type": "git",