@lvce-editor/embeds-process 4.9.0 → 4.9.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.
@@ -1430,6 +1430,9 @@ const disposeWebContentsView = async id => {
1430
1430
  const resizeWebContentsView = async (id, ...args) => {
1431
1431
  return invoke('ElectronWebContentsViewFunctions.resizeBrowserView', id, ...args);
1432
1432
  };
1433
+ const capturePage = async id => {
1434
+ return invoke('ElectronWebContentsViewFunctions.capturePage', id);
1435
+ };
1433
1436
  const setIframeSrc = async (id, ...args) => {
1434
1437
  return invoke('ElectronWebContentsViewFunctions.setIframeSrc', id, ...args);
1435
1438
  };
@@ -1457,6 +1460,9 @@ const insertJavaScript = async (id, css) => {
1457
1460
  const show = async (id, ...args) => {
1458
1461
  return invoke('ElectronWebContentsViewFunctions.show', id, ...args);
1459
1462
  };
1463
+ const hide = async (id, ...args) => {
1464
+ return invoke('ElectronWebContentsViewFunctions.hide', id, ...args);
1465
+ };
1460
1466
  const forwardIpcEvent = key => (id, ...args) => {
1461
1467
  const ipc = get$2(id);
1462
1468
  if (!ipc) {
@@ -1695,6 +1701,7 @@ const commandMap = {
1695
1701
  'ElectronWebContents.handleTitleUpdated': handleTitleUpdated,
1696
1702
  'ElectronWebContents.handleWillNavigate': handleWillNavigate,
1697
1703
  'ElectronWebContentsView.backward': backward,
1704
+ 'ElectronWebContentsView.capturePage': capturePage,
1698
1705
  'ElectronWebContentsView.createWebContentsView': createWebContentsView,
1699
1706
  'ElectronWebContentsView.disposeWebContentsView': disposeWebContentsView,
1700
1707
  'ElectronWebContentsView.focus': focus,
@@ -1702,6 +1709,7 @@ const commandMap = {
1702
1709
  'ElectronWebContentsView.getDomTree': getDomTree,
1703
1710
  'ElectronWebContentsView.getStats': getStats,
1704
1711
  'ElectronWebContentsView.handleKeyBinding': handleKeyBinding,
1712
+ 'ElectronWebContentsView.hide': hide,
1705
1713
  'ElectronWebContentsView.insertCss': insertCss,
1706
1714
  'ElectronWebContentsView.insertJavaScript': insertJavaScript,
1707
1715
  'ElectronWebContentsView.inspectElement': inspectElement,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/embeds-process",
3
- "version": "4.9.0",
3
+ "version": "4.9.1",
4
4
  "description": "Embeds Process",
5
5
  "keywords": [
6
6
  "Lvce Editor"