@lvce-editor/embeds-worker 4.7.0 → 4.8.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.
@@ -1380,6 +1380,15 @@ const {
1380
1380
  invoke: invoke$1,
1381
1381
  set: set$1
1382
1382
  } = EmbedsProcess;
1383
+ const invokeAny$1 = invoke$1;
1384
+
1385
+ const acceptLogin = (requestId, username, password) => {
1386
+ return invokeAny$1('ElectronWebContentsView.acceptLogin', requestId, username, password);
1387
+ };
1388
+
1389
+ const cancelLogin = requestId => {
1390
+ return invokeAny$1('ElectronWebContentsView.cancelLogin', requestId);
1391
+ };
1383
1392
 
1384
1393
  const ERR_ABORTED = 'ERR_ABORTED';
1385
1394
  const ERR_FAILED = 'ERR_FAILED';
@@ -1389,6 +1398,7 @@ const {
1389
1398
  invokeAndTransfer,
1390
1399
  set
1391
1400
  } = RendererWorker;
1401
+ const invokeAny = invoke;
1392
1402
 
1393
1403
  const createWebContentsView = async (restoreId, fallThroughKeyBindings) => {
1394
1404
  // @ts-ignore
@@ -1495,6 +1505,10 @@ const exit = () => {
1495
1505
  globalThis.close();
1496
1506
  };
1497
1507
 
1508
+ const handleLogin = (id, challenge) => {
1509
+ return invokeAny('ElectronBrowserView.handleLogin', id, challenge);
1510
+ };
1511
+
1498
1512
  const getPortTuple = () => {
1499
1513
  const {
1500
1514
  port1,
@@ -1541,7 +1555,9 @@ const initialize = async () => {
1541
1555
  };
1542
1556
 
1543
1557
  const commandMap = {
1558
+ 'ElectronWebContentsView.acceptLogin': acceptLogin,
1544
1559
  'ElectronWebContentsView.backward': backward,
1560
+ 'ElectronWebContentsView.cancelLogin': cancelLogin,
1545
1561
  'ElectronWebContentsView.cancelNavigation': cancelNavigation,
1546
1562
  'ElectronWebContentsView.copyImageAt': copyImageAt,
1547
1563
  'ElectronWebContentsView.createWebContentsView': createWebContentsView,
@@ -1552,6 +1568,7 @@ const commandMap = {
1552
1568
  'ElectronWebContentsView.getStats': getStats,
1553
1569
  'ElectronWebContentsView.handleContextMenu': handleContextMenu,
1554
1570
  'ElectronWebContentsView.handleDidNavigate': handleDidNavigate,
1571
+ 'ElectronWebContentsView.handleLogin': handleLogin,
1555
1572
  'ElectronWebContentsView.handleTitleUpdated': handleTitleUpdated,
1556
1573
  'ElectronWebContentsView.handleWillNavigate': handleWillNavigate,
1557
1574
  'ElectronWebContentsView.hide': hide,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/embeds-worker",
3
- "version": "4.7.0",
3
+ "version": "4.8.0",
4
4
  "description": "Web Worker to manage electron webcontent views in Lvce Editor",
5
5
  "repository": {
6
6
  "type": "git",