@lvce-editor/main-process 2.29.0 → 2.31.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.
@@ -11,8 +11,8 @@ import { dirname } from 'node:path';
11
11
  import require$$1 from 'tty';
12
12
  import require$$1$1 from 'util';
13
13
  import require$$0 from 'os';
14
- import { Console } from 'node:console';
15
14
  import { tmpdir, homedir } from 'node:os';
15
+ import { Console } from 'node:console';
16
16
 
17
17
  function escapeStringRegexp(string) {
18
18
  if (typeof string !== 'string') {
@@ -3287,11 +3287,11 @@ const mark = key => {
3287
3287
  };
3288
3288
  const toUiEntry = performanceEntry => {
3289
3289
  return {
3290
- name: performanceEntry.name,
3291
- entryType: performanceEntry.entryType,
3292
- startTime: performanceEntry.startTime,
3290
+ detail: performanceEntry.detail,
3293
3291
  duration: performanceEntry.duration,
3294
- detail: performanceEntry.detail
3292
+ entryType: performanceEntry.entryType,
3293
+ name: performanceEntry.name,
3294
+ startTime: performanceEntry.startTime
3295
3295
  };
3296
3296
  };
3297
3297
  const getEntries = () => {
@@ -3367,8 +3367,8 @@ const handleChildDisconnect = () => {
3367
3367
  info('[main process] shared process disconnected');
3368
3368
  };
3369
3369
  const launchSharedProcess = async ({
3370
- method,
3371
- env = {}
3370
+ env = {},
3371
+ method
3372
3372
  }) => {
3373
3373
  mark(WillStartSharedProcess);
3374
3374
  const sharedProcessPath = getSharedProcessPath();
@@ -3378,12 +3378,12 @@ const launchSharedProcess = async ({
3378
3378
  ...env
3379
3379
  };
3380
3380
  const sharedProcessRpc = await ElectronUtilityProcessRpcParent.create({
3381
- env: fullEnv,
3382
3381
  argv: [],
3382
+ commandMap: commandMapRef,
3383
+ env: fullEnv,
3383
3384
  execArgv,
3384
- path: sharedProcessPath,
3385
3385
  name: 'shared-process',
3386
- commandMap: commandMapRef,
3386
+ path: sharedProcessPath,
3387
3387
  // @ts-ignore
3388
3388
  requiresSocket: requiresSocket
3389
3389
  });
@@ -3408,8 +3408,8 @@ const launchSharedProcess = async ({
3408
3408
  await sharedProcessRpc.invokeAndTransfer('HandleElectronMessagePort.handleElectronMessagePort', port2, MainProcess);
3409
3409
  await ElectronMessagePortRpcClient.create({
3410
3410
  commandMap: commandMapRef,
3411
- requiresSocket: requiresSocket,
3412
- messagePort: port1
3411
+ messagePort: port1,
3412
+ requiresSocket: requiresSocket
3413
3413
  });
3414
3414
  mark(DidStartSharedProcess);
3415
3415
  return sharedProcessRpc;
@@ -3423,14 +3423,14 @@ const state$6 = {
3423
3423
  };
3424
3424
 
3425
3425
  const getOrCreate = async ({
3426
- method,
3427
- env = {}
3426
+ env = {},
3427
+ method
3428
3428
  }) => {
3429
3429
  if (!state$6.promise) {
3430
3430
  // @ts-ignore
3431
3431
  state$6.promise = launchSharedProcess({
3432
- method,
3433
- env
3432
+ env,
3433
+ method
3434
3434
  });
3435
3435
  }
3436
3436
  return state$6.promise;
@@ -4811,10 +4811,10 @@ const minimist = /*@__PURE__*/getDefaultExportFromCjs(minimistExports);
4811
4811
 
4812
4812
  const parseCliArgs = argv => {
4813
4813
  const CLI_OPTIONS = {
4814
- boolean: [Version, Help, Wait, BuiltinSelfTest, Web, SandBox],
4815
4814
  alias: {
4816
4815
  version: 'v'
4817
4816
  },
4817
+ boolean: [Version, Help, Wait, BuiltinSelfTest, Web, SandBox],
4818
4818
  default: {
4819
4819
  sandbox: false
4820
4820
  }
@@ -4869,9 +4869,9 @@ const Allow = 'allow';
4869
4869
  const Deny = 'deny';
4870
4870
 
4871
4871
  const state$4 = {
4872
- views: Object.create(null),
4872
+ canceled: Object.create(null),
4873
4873
  fallThroughKeyBindings: [],
4874
- canceled: Object.create(null)
4874
+ views: Object.create(null)
4875
4875
  };
4876
4876
  const add$1 = (id, browserWindow, view) => {
4877
4877
  // state
@@ -4959,23 +4959,23 @@ const isProtocolHandleApiSupported = protocol => {
4959
4959
  const WebView = 'lvce-oss-webview';
4960
4960
 
4961
4961
  const privilegedSchems = [{
4962
- scheme: scheme,
4963
4962
  privileges: {
4964
- standard: true,
4963
+ codeCache: true,
4965
4964
  secure: true,
4966
- supportFetchAPI: true,
4965
+ standard: true,
4967
4966
  stream: true,
4968
- codeCache: true
4969
- }
4967
+ supportFetchAPI: true
4968
+ },
4969
+ scheme: scheme
4970
4970
  }, {
4971
- scheme: WebView,
4972
4971
  privileges: {
4973
- standard: true,
4972
+ codeCache: true,
4974
4973
  secure: true,
4975
- supportFetchAPI: true,
4974
+ standard: true,
4976
4975
  stream: true,
4977
- codeCache: true
4978
- }
4976
+ supportFetchAPI: true
4977
+ },
4978
+ scheme: WebView
4979
4979
  }];
4980
4980
 
4981
4981
  const handle = (protocol, name, handleRequest) => {
@@ -5001,8 +5001,9 @@ const requestSingleInstanceLock = argv => {
5001
5001
  const hydrate = async () => {
5002
5002
  setMenu(null); // performance
5003
5003
  unhandled({
5004
- showDialog: true,
5005
- logger() {} // already exists in mainProcessMain.js
5004
+ logger() {},
5005
+ // already exists in mainProcessMain.js
5006
+ showDialog: true
5006
5007
  });
5007
5008
 
5008
5009
  // TODO electron error ERROR:sandbox_linux.cc(364)] InitializeSandbox() called with multiple threads in process gpu-process
@@ -5115,83 +5116,83 @@ const getPrefix = commandId => {
5115
5116
  const getModuleId = commandId => {
5116
5117
  const prefix = getPrefix(commandId);
5117
5118
  switch (prefix) {
5118
- case 'Crash':
5119
- return Crash;
5120
- case 'ElectronApp':
5121
5119
  case 'App':
5120
+ case 'ElectronApp':
5122
5121
  return App;
5123
- case 'Beep':
5124
- return Beep;
5125
- case 'ElectronWindow':
5126
- return Window;
5127
- case 'ElectronDeveloper':
5128
- return Developer;
5129
5122
  case 'AppWindow':
5130
5123
  return AppWindow;
5131
- case 'ElectronWindowProcessExplorer':
5132
- return ElectronWindowProcessExplorer;
5133
- case 'ElectronDialog':
5134
- return Dialog;
5124
+ case 'Beep':
5125
+ return Beep;
5126
+ case 'Crash':
5127
+ return Crash;
5128
+ case 'CreateMessagePort':
5129
+ return CreateMessagePort;
5130
+ case 'CreatePidMap':
5131
+ return CreatePidMap;
5132
+ case 'DesktopCapturer':
5133
+ return DesktopCapturer;
5134
+ case 'ElectronApplicationMenu':
5135
+ return ElectronApplicationMenu;
5135
5136
  case 'ElectronBeep':
5136
5137
  return Beep;
5137
- case 'ElectronShell':
5138
- return ElectronShell;
5139
- case 'ElectronPowerSaveBlocker':
5140
- return ElectronPowerSaveBlocker;
5141
- case 'ElectronSafeStorage':
5142
- return ElectronSafeStorage;
5143
- case 'ElectronContentTracing':
5144
- return ElectronContentTracing;
5145
- case 'ElectronNetLog':
5146
- return ElectronNetLog;
5147
5138
  case 'ElectronBrowserView':
5148
5139
  return ElectronBrowserView;
5149
5140
  case 'ElectronBrowserViewQuickPick':
5150
5141
  return ElectronBrowserViewQuickPick;
5151
- case 'ElectronContextMenu':
5152
- return ElectronContextMenu;
5142
+ case 'ElectronBrowserViewSuggestions':
5143
+ return ElectronBrowserViewSuggestions;
5153
5144
  case 'ElectronClipBoard':
5154
5145
  return ElectronClipBoard;
5155
- case 'ElectronApplicationMenu':
5156
- return ElectronApplicationMenu;
5157
- case 'Process':
5158
- return Process;
5146
+ case 'ElectronContentTracing':
5147
+ return ElectronContentTracing;
5148
+ case 'ElectronContextMenu':
5149
+ return ElectronContextMenu;
5150
+ case 'ElectronDeveloper':
5151
+ return Developer;
5152
+ case 'ElectronDialog':
5153
+ return Dialog;
5159
5154
  case 'ElectronNet':
5160
5155
  return ElectronNet;
5161
- case 'ElectronBrowserViewSuggestions':
5162
- return ElectronBrowserViewSuggestions;
5163
- case 'CreatePidMap':
5164
- return CreatePidMap;
5165
- case 'OpenExternal':
5166
- return OpenExternal$1;
5167
- case 'Platform':
5168
- return Platform;
5169
- case 'GetWindowId':
5170
- return GetWindowId;
5171
- case 'DesktopCapturer':
5172
- return DesktopCapturer;
5173
- case 'Trash':
5174
- return Trash;
5175
- case 'IpcParent':
5176
- return IpcParent;
5177
- case 'Exit':
5178
- return Exit;
5156
+ case 'ElectronNetLog':
5157
+ return ElectronNetLog;
5158
+ case 'ElectronPowerSaveBlocker':
5159
+ return ElectronPowerSaveBlocker;
5160
+ case 'ElectronSafeStorage':
5161
+ return ElectronSafeStorage;
5179
5162
  case 'ElectronScreen':
5180
5163
  return ElectronScreen;
5181
- case 'TemporaryMessagePort':
5182
- return TemporaryMessagePort;
5164
+ case 'ElectronSession':
5165
+ return ElectronSession;
5166
+ case 'ElectronShell':
5167
+ return ElectronShell;
5183
5168
  case 'ElectronWebContents':
5184
5169
  return ElectronWebContents;
5185
5170
  case 'ElectronWebContentsView':
5186
5171
  return ElectronWebContentsView;
5187
5172
  case 'ElectronWebContentsViewFunctions':
5188
5173
  return ElectronWebContentsViewFunctions;
5189
- case 'CreateMessagePort':
5190
- return CreateMessagePort;
5174
+ case 'ElectronWindow':
5175
+ return Window;
5176
+ case 'ElectronWindowProcessExplorer':
5177
+ return ElectronWindowProcessExplorer;
5178
+ case 'Exit':
5179
+ return Exit;
5180
+ case 'GetWindowId':
5181
+ return GetWindowId;
5191
5182
  case 'HandleElectronMessagePort':
5192
5183
  return HandleElectronMessagePort;
5193
- case 'ElectronSession':
5194
- return ElectronSession;
5184
+ case 'IpcParent':
5185
+ return IpcParent;
5186
+ case 'OpenExternal':
5187
+ return OpenExternal$1;
5188
+ case 'Platform':
5189
+ return Platform;
5190
+ case 'Process':
5191
+ return Process;
5192
+ case 'TemporaryMessagePort':
5193
+ return TemporaryMessagePort;
5194
+ case 'Trash':
5195
+ return Trash;
5195
5196
  default:
5196
5197
  throw new CommandNotFoundError(commandId);
5197
5198
  }
@@ -5199,8 +5200,8 @@ const getModuleId = commandId => {
5199
5200
 
5200
5201
  const state$3 = {
5201
5202
  commands: Object.create(null),
5202
- pendingModules: Object.create(null),
5203
- async load(moduleId) {}
5203
+ async load(moduleId) {},
5204
+ pendingModules: Object.create(null)
5204
5205
  };
5205
5206
  const initializeModule = module => {
5206
5207
  if (module.Commands) {
@@ -5263,9 +5264,9 @@ const isAllowedPermission$1 = permission => {
5263
5264
  case ClipBoardRead:
5264
5265
  case ClipBoardSanitizedWrite:
5265
5266
  case FullScreen:
5266
- case WindowPlacement:
5267
5267
  case Media:
5268
5268
  case OpenExternal:
5269
+ case WindowPlacement:
5269
5270
  return true;
5270
5271
  default:
5271
5272
  return false;
@@ -5311,8 +5312,8 @@ const serializeRequestHeaders = headers => {
5311
5312
  */
5312
5313
  const serializeRequest = request => {
5313
5314
  return {
5314
- url: request.url,
5315
- headers: serializeRequestHeaders(request.headers)
5315
+ headers: serializeRequestHeaders(request.headers),
5316
+ url: request.url
5316
5317
  };
5317
5318
  };
5318
5319
 
@@ -5461,8 +5462,8 @@ const createAppWindow = async (windowOptions, parsedArgs, workingDirectory, titl
5461
5462
  };
5462
5463
  window.on('close', handleWindowClose);
5463
5464
  await ElectronWebContentsRpcClient.create({
5464
- webContents: window.webContents,
5465
- commandMap: commandMapRef
5465
+ commandMap: commandMapRef,
5466
+ webContents: window.webContents
5466
5467
  });
5467
5468
  await loadUrl(window, url);
5468
5469
  };
@@ -5523,10 +5524,10 @@ const ElectronMessagePort = 4;
5523
5524
 
5524
5525
  const getModule$2 = method => {
5525
5526
  switch (method) {
5526
- case NodeWorker:
5527
- return connectIpc$1;
5528
5527
  case ElectronUtilityProcess:
5529
5528
  return connectIpc$2;
5529
+ case NodeWorker:
5530
+ return connectIpc$1;
5530
5531
  default:
5531
5532
  throw new Error('unexpected ipc type');
5532
5533
  }
@@ -5551,10 +5552,10 @@ const connectIpc = async (method, rpc, browserWindowPort, ipcId) => {
5551
5552
  const handlePort = async (browserWindowPort, ipcId) => {
5552
5553
  const method = ElectronUtilityProcess;
5553
5554
  const sharedProcess = await getOrCreate({
5554
- method,
5555
5555
  env: {
5556
5556
  FOLDER: ''
5557
- }
5557
+ },
5558
+ method
5558
5559
  });
5559
5560
  await connectIpc(method, sharedProcess, browserWindowPort, ipcId);
5560
5561
  };
@@ -5576,8 +5577,8 @@ const add = (pid, process, name) => {
5576
5577
  object(process);
5577
5578
  string(name);
5578
5579
  state$1.all[pid] = {
5579
- process,
5580
- name
5580
+ name,
5581
+ process
5581
5582
  };
5582
5583
  };
5583
5584
  const remove = pid => {
@@ -5794,14 +5795,14 @@ const showOpenDialog = async (title, properties) => {
5794
5795
  * @returns
5795
5796
  */
5796
5797
  const showMessageBox = async ({
5797
- message,
5798
5798
  buttons,
5799
- type = Error$1,
5799
+ defaultId,
5800
5800
  detail,
5801
- title,
5802
- windowId = -1,
5801
+ message,
5803
5802
  productName,
5804
- defaultId
5803
+ title,
5804
+ type = Error$1,
5805
+ windowId = -1
5805
5806
  }) => {
5806
5807
  string(message);
5807
5808
  array(buttons);
@@ -5816,15 +5817,15 @@ const showMessageBox = async ({
5816
5817
  message = message.message;
5817
5818
  }
5818
5819
  const result = await Electron.dialog.showMessageBox(window, {
5819
- // @ts-ignore
5820
- type,
5821
- message,
5822
- title: title || productName,
5823
5820
  buttons,
5824
5821
  cancelId: 1,
5822
+ defaultId,
5825
5823
  detail,
5824
+ message,
5826
5825
  noLink: true,
5827
- defaultId
5826
+ title: title || productName,
5827
+ // @ts-ignore
5828
+ type
5828
5829
  });
5829
5830
  const selectedButtonIndex = result.response;
5830
5831
  return selectedButtonIndex;
@@ -5899,8 +5900,8 @@ const getHeight = () => {
5899
5900
  const getBounds = () => {
5900
5901
  const primaryDisplay = screen.getPrimaryDisplay();
5901
5902
  return {
5902
- width: primaryDisplay.bounds.width,
5903
- height: primaryDisplay.bounds.height
5903
+ height: primaryDisplay.bounds.height,
5904
+ width: primaryDisplay.bounds.width
5904
5905
  };
5905
5906
  };
5906
5907
 
@@ -5929,8 +5930,8 @@ const getStats$1 = webContentsId => {
5929
5930
  return {
5930
5931
  canGoBack,
5931
5932
  canGoForward,
5932
- url,
5933
- title
5933
+ title,
5934
+ url
5934
5935
  };
5935
5936
  };
5936
5937
  const dispose$1 = webContentsId => {
@@ -6134,34 +6135,18 @@ const Plus = 132;
6134
6135
 
6135
6136
  const getKeyCode = key => {
6136
6137
  switch (key) {
6138
+ case Backquote$1:
6139
+ return Backquote;
6140
+ case Backslash$1:
6141
+ return Backslash;
6137
6142
  case Backspace$1:
6138
6143
  return Backspace;
6139
- case Tab$1:
6140
- return Tab;
6141
- case Escape$1:
6142
- return Escape;
6143
- case Enter$1:
6144
- return Enter;
6145
- case Space$2:
6146
- return Space$1;
6147
- case PageUp$1:
6148
- return PageUp;
6149
- case PageDown$1:
6150
- return PageDown;
6151
- case End$1:
6152
- return End;
6153
- case Home$1:
6154
- return Home;
6155
- case LeftArrow$1:
6156
- return LeftArrow;
6157
- case UpArrow$1:
6158
- return UpArrow;
6159
- case RightArrow$1:
6160
- return RightArrow;
6161
- case DownArrow$1:
6162
- return DownArrow;
6163
- case Insert$1:
6164
- return Insert;
6144
+ case BracketLeft$1:
6145
+ return BracketLeft;
6146
+ case BracketRight$1:
6147
+ return BracketRight;
6148
+ case Comma$1:
6149
+ return Comma;
6165
6150
  case Delete$1:
6166
6151
  return Delete;
6167
6152
  case Digit0$1:
@@ -6184,6 +6169,68 @@ const getKeyCode = key => {
6184
6169
  return Digit8;
6185
6170
  case Digit9$1:
6186
6171
  return Digit9;
6172
+ case DownArrow$1:
6173
+ return DownArrow;
6174
+ case End$1:
6175
+ return End;
6176
+ case Enter$1:
6177
+ return Enter;
6178
+ case Equal$1:
6179
+ return Equal;
6180
+ case Escape$1:
6181
+ return Escape;
6182
+ case F1$1:
6183
+ return F1;
6184
+ case F10$1:
6185
+ return F10;
6186
+ case F11$1:
6187
+ return F11;
6188
+ case F12$1:
6189
+ return F12;
6190
+ case F13$1:
6191
+ return F13;
6192
+ case F14$1:
6193
+ return F14;
6194
+ case F15$1:
6195
+ return F15;
6196
+ case F16$1:
6197
+ return F16;
6198
+ case F17$1:
6199
+ return F17;
6200
+ case F18$1:
6201
+ return F18;
6202
+ case F19$1:
6203
+ return F19;
6204
+ case F2$1:
6205
+ return F2;
6206
+ case F20$1:
6207
+ return F20;
6208
+ case F21$1:
6209
+ return F21;
6210
+ case F22$1:
6211
+ return F22;
6212
+ case F23$1:
6213
+ return F23;
6214
+ case F24$1:
6215
+ return F24;
6216
+ case F3$1:
6217
+ return F3;
6218
+ case F4$1:
6219
+ return F4;
6220
+ case F5$1:
6221
+ return F5;
6222
+ case F6$1:
6223
+ return F6;
6224
+ case F7$1:
6225
+ return F7;
6226
+ case F8$1:
6227
+ return F8;
6228
+ case F9$1:
6229
+ return F9;
6230
+ case Home$1:
6231
+ return Home;
6232
+ case Insert$1:
6233
+ return Insert;
6187
6234
  case KeyA$1:
6188
6235
  return KeyA;
6189
6236
  case KeyB$1:
@@ -6236,80 +6283,34 @@ const getKeyCode = key => {
6236
6283
  return KeyY;
6237
6284
  case KeyZ$1:
6238
6285
  return KeyZ;
6239
- case F1$1:
6240
- return F1;
6241
- case F2$1:
6242
- return F2;
6243
- case F3$1:
6244
- return F3;
6245
- case F4$1:
6246
- return F4;
6247
- case F5$1:
6248
- return F5;
6249
- case F6$1:
6250
- return F6;
6251
- case F7$1:
6252
- return F7;
6253
- case F8$1:
6254
- return F8;
6255
- case F9$1:
6256
- return F9;
6257
- case F10$1:
6258
- return F10;
6259
- case F11$1:
6260
- return F11;
6261
- case F12$1:
6262
- return F12;
6263
- case F13$1:
6264
- return F13;
6265
- case F14$1:
6266
- return F14;
6267
- case F15$1:
6268
- return F15;
6269
- case F16$1:
6270
- return F16;
6271
- case F17$1:
6272
- return F17;
6273
- case F18$1:
6274
- return F18;
6275
- case F19$1:
6276
- return F19;
6277
- case F20$1:
6278
- return F20;
6279
- case F21$1:
6280
- return F21;
6281
- case F22$1:
6282
- return F22;
6283
- case F23$1:
6284
- return F23;
6285
- case F24$1:
6286
- return F24;
6287
- case SemiColon$1:
6288
- return SemiColon;
6289
- case Equal$1:
6290
- return Equal;
6291
- case Comma$1:
6292
- return Comma;
6286
+ case LeftArrow$1:
6287
+ return LeftArrow;
6293
6288
  case Minus$1:
6294
6289
  return Minus;
6290
+ case PageDown$1:
6291
+ return PageDown;
6292
+ case PageUp$1:
6293
+ return PageUp;
6295
6294
  case Period$1:
6296
6295
  return Period;
6297
- case Slash$1:
6298
- return Slash;
6299
- case Backquote$1:
6300
- return Backquote;
6301
- case BracketLeft$1:
6302
- return BracketLeft;
6303
- case Backslash$1:
6304
- return Backslash;
6305
- case BracketRight$1:
6306
- return BracketRight;
6296
+ case Plus$1:
6297
+ return Plus;
6307
6298
  case Quote$1:
6308
6299
  return Quote;
6300
+ case RightArrow$1:
6301
+ return RightArrow;
6302
+ case SemiColon$1:
6303
+ return SemiColon;
6304
+ case Slash$1:
6305
+ return Slash;
6306
+ case Space$2:
6307
+ return Space$1;
6309
6308
  case Star$1:
6310
6309
  return Star;
6311
- case Plus$1:
6312
- return Plus;
6310
+ case Tab$1:
6311
+ return Tab;
6312
+ case UpArrow$1:
6313
+ return UpArrow;
6313
6314
  default:
6314
6315
  return Unknown;
6315
6316
  }
@@ -6328,10 +6329,10 @@ const normalizeKey = key => {
6328
6329
 
6329
6330
  const getKeyBindingIdentifier = input => {
6330
6331
  const {
6331
- control,
6332
- shift,
6333
6332
  alt,
6334
- key
6333
+ control,
6334
+ key,
6335
+ shift
6335
6336
  } = input;
6336
6337
  const modifierControl = control ? CtrlCmd : 0;
6337
6338
  const modifierShift = shift ? Shift : 0;
@@ -6352,8 +6353,8 @@ const detach$6 = (webContents, listener) => {
6352
6353
  const handler$6 = (event, input) => {
6353
6354
  if (input.type !== KeyDown) {
6354
6355
  return {
6355
- result: undefined,
6356
- messages: []
6356
+ messages: [],
6357
+ result: undefined
6357
6358
  };
6358
6359
  }
6359
6360
  const falltroughKeyBindings = getFallthroughKeyBindings();
@@ -6363,13 +6364,13 @@ const handler$6 = (event, input) => {
6363
6364
  if (matches) {
6364
6365
  event.preventDefault();
6365
6366
  return {
6366
- result: undefined,
6367
- messages: [['handleKeyBinding', identifier]]
6367
+ messages: [['handleKeyBinding', identifier]],
6368
+ result: undefined
6368
6369
  };
6369
6370
  }
6370
6371
  return {
6371
- result: undefined,
6372
- messages: []
6372
+ messages: [],
6373
+ result: undefined
6373
6374
  };
6374
6375
  };
6375
6376
 
@@ -6390,8 +6391,8 @@ const detach$5 = (webContents, listener) => {
6390
6391
  };
6391
6392
  const handler$5 = (event, params) => {
6392
6393
  return {
6393
- result: undefined,
6394
- messages: [['handleContextMenu', params]]
6394
+ messages: [['handleContextMenu', params]],
6395
+ result: undefined
6395
6396
  };
6396
6397
  };
6397
6398
 
@@ -6412,8 +6413,8 @@ const detach$4 = (webContents, listener) => {
6412
6413
  };
6413
6414
  const handler$4 = () => {
6414
6415
  return {
6415
- result: undefined,
6416
- messages: [['handleBrowserViewDestroyed']]
6416
+ messages: [['handleBrowserViewDestroyed']],
6417
+ result: undefined
6417
6418
  };
6418
6419
  };
6419
6420
 
@@ -6434,8 +6435,8 @@ const detach$3 = (webContents, listener) => {
6434
6435
  };
6435
6436
  const handler$3 = (event, url) => {
6436
6437
  return {
6437
- result: undefined,
6438
- messages: [['handleDidNavigate', url]]
6438
+ messages: [['handleDidNavigate', url]],
6439
+ result: undefined
6439
6440
  };
6440
6441
  };
6441
6442
 
@@ -6456,8 +6457,8 @@ const detach$2 = (webContents, listener) => {
6456
6457
  };
6457
6458
  const handler$2 = (event, title) => {
6458
6459
  return {
6459
- result: undefined,
6460
- messages: [['handleTitleUpdated', title]]
6460
+ messages: [['handleTitleUpdated', title]],
6461
+ result: undefined
6461
6462
  };
6462
6463
  };
6463
6464
 
@@ -6478,8 +6479,8 @@ const detach$1 = (webContents, listener) => {
6478
6479
  };
6479
6480
  const handler$1 = (event, url) => {
6480
6481
  return {
6481
- result: undefined,
6482
- messages: [['handleWillNavigate', url]]
6482
+ messages: [['handleWillNavigate', url]],
6483
+ result: undefined
6483
6484
  };
6484
6485
  };
6485
6486
 
@@ -6502,43 +6503,43 @@ const detach = (webContents, listener) => {
6502
6503
  webContents.setWindowOpenHandler(null);
6503
6504
  };
6504
6505
  const handler = ({
6505
- url,
6506
6506
  disposition,
6507
6507
  features,
6508
6508
  frameName,
6509
+ postBody,
6509
6510
  referrer,
6510
- postBody
6511
+ url
6511
6512
  }) => {
6512
6513
  if (url === 'about:blank') {
6513
6514
  return {
6515
+ messages: [],
6514
6516
  result: {
6515
6517
  action: Allow
6516
- },
6517
- messages: []
6518
+ }
6518
6519
  };
6519
6520
  }
6520
6521
  if (disposition === BackgroundTab) {
6521
6522
  return {
6523
+ messages: [['handleWindowOpen', url]],
6522
6524
  result: {
6523
6525
  action: Deny
6524
- },
6525
- messages: [['handleWindowOpen', url]]
6526
+ }
6526
6527
  };
6527
6528
  }
6528
6529
  if (disposition === NewWindow) {
6529
6530
  return {
6531
+ messages: [],
6530
6532
  result: {
6531
6533
  action: Allow
6532
- },
6533
- messages: []
6534
+ }
6534
6535
  };
6535
6536
  }
6536
6537
  info(`[main-process] blocked popup for ${url}`);
6537
6538
  return {
6539
+ messages: [],
6538
6540
  result: {
6539
6541
  action: Deny
6540
- },
6541
- messages: []
6542
+ }
6542
6543
  };
6543
6544
  };
6544
6545
 
@@ -6603,14 +6604,14 @@ const getBeforeRequestResponseXhrHead = url => {
6603
6604
  };
6604
6605
  const getBeforeRequestResponseXhr = (method, url) => {
6605
6606
  switch (method) {
6606
- case Post:
6607
- return getBeforeRequestResponseXhrPost(url);
6608
6607
  case Get:
6609
6608
  return getBeforeRequestResponseXhrGet(url);
6610
6609
  case Head:
6611
6610
  return getBeforeRequestResponseXhrHead(url);
6612
6611
  case Options:
6613
6612
  return getBeforeRequestResponseXhrOptions(url);
6613
+ case Post:
6614
+ return getBeforeRequestResponseXhrPost(url);
6614
6615
  default:
6615
6616
  return {};
6616
6617
  }
@@ -6661,9 +6662,9 @@ const isAllowedPermission = permission => {
6661
6662
  switch (permission) {
6662
6663
  case ClipBoardRead:
6663
6664
  case ClipBoardSanitizedWrite:
6664
- case WindowPlacement:
6665
6665
  case FullScreen:
6666
6666
  case GeoLocation:
6667
+ case WindowPlacement:
6667
6668
  return true;
6668
6669
  default:
6669
6670
  return false;
@@ -6728,8 +6729,8 @@ const attachEventListeners = webContentsId => {
6728
6729
  const wrappedListener = (...args) => {
6729
6730
  // @ts-ignore
6730
6731
  const {
6731
- result,
6732
- messages
6732
+ messages,
6733
+ result
6733
6734
  } = value.handler(...args);
6734
6735
  for (const message of messages) {
6735
6736
  const [key, ...rest] = message;
@@ -6749,8 +6750,8 @@ const disposeWebContentsView = browserViewId => {
6749
6750
  return;
6750
6751
  }
6751
6752
  const {
6752
- view,
6753
- browserWindow
6753
+ browserWindow,
6754
+ view
6754
6755
  } = instance;
6755
6756
  remove$1(browserViewId);
6756
6757
  browserWindow.contentView.removeChildView(view);
@@ -6781,10 +6782,10 @@ const resizeBrowserView = (view, x, y, width, height) => {
6781
6782
  number(width);
6782
6783
  number(height);
6783
6784
  view.setBounds({
6784
- x,
6785
- y,
6785
+ height,
6786
6786
  width,
6787
- height
6787
+ x,
6788
+ y
6788
6789
  });
6789
6790
  };
6790
6791
  const setIframeSrcFallback = async (view, code, message) => {
@@ -6890,8 +6891,8 @@ const show = id => {
6890
6891
  return;
6891
6892
  }
6892
6893
  const {
6893
- view,
6894
- browserWindow
6894
+ browserWindow,
6895
+ view
6895
6896
  } = state;
6896
6897
  browserWindow.contentView.addChildView(view);
6897
6898
  };
@@ -6913,8 +6914,8 @@ const hide = id => {
6913
6914
  return;
6914
6915
  }
6915
6916
  const {
6916
- view,
6917
- browserWindow
6917
+ browserWindow,
6918
+ view
6918
6919
  } = state;
6919
6920
  browserWindow.contentView.removeChildView(view);
6920
6921
  };
@@ -6977,8 +6978,8 @@ const getStats = view => {
6977
6978
  return {
6978
6979
  canGoBack,
6979
6980
  canGoForward,
6980
- url,
6981
- title
6981
+ title,
6982
+ url
6982
6983
  };
6983
6984
  };
6984
6985
 
@@ -7013,14 +7014,14 @@ const unhandleIpc = ipc => {
7013
7014
 
7014
7015
  const getModule$1 = method => {
7015
7016
  switch (method) {
7017
+ case ElectronMessagePort$1:
7018
+ return IpcChildWithElectronMessagePort$1;
7019
+ case ElectronUtilityProcess$1:
7020
+ return IpcChildWithElectronUtilityProcess$1;
7016
7021
  case NodeForkedProcess$1:
7017
7022
  return IpcChildWithNodeForkedProcess$1;
7018
7023
  case NodeWorker$1:
7019
7024
  return IpcChildWithNodeWorker$1;
7020
- case ElectronUtilityProcess$1:
7021
- return IpcChildWithElectronUtilityProcess$1;
7022
- case ElectronMessagePort$1:
7023
- return IpcChildWithElectronMessagePort$1;
7024
7025
  case RendererProcess2:
7025
7026
  return IpcChildWithRendererProcess2$1;
7026
7027
  default:
@@ -7102,8 +7103,8 @@ const getWindowId = webContentsId => {
7102
7103
  const handleElectronMessagePort = async (messagePort, rpcId) => {
7103
7104
  object(messagePort);
7104
7105
  const rpc = await ElectronMessagePortRpcClient.create({
7105
- messagePort: messagePort,
7106
7106
  commandMap: commandMapRef,
7107
+ messagePort: messagePort,
7107
7108
  requiresSocket: requiresSocket
7108
7109
  });
7109
7110
  if (rpcId) {
@@ -7113,14 +7114,14 @@ const handleElectronMessagePort = async (messagePort, rpcId) => {
7113
7114
 
7114
7115
  const getModule = method => {
7115
7116
  switch (method) {
7116
- case NodeWorker:
7117
- return IpcParentWithNodeWorker$1;
7118
- case NodeForkedProcess:
7119
- return IpcParentWithNodeForkedProcess$1;
7120
- case ElectronUtilityProcess:
7121
- return Promise.resolve().then(function () { return IpcParentWithElectronUtilityProcess; });
7122
7117
  case ElectronMessagePort:
7123
7118
  return IpcParentWithElectronMessagePort$1;
7119
+ case ElectronUtilityProcess:
7120
+ return Promise.resolve().then(function () { return IpcParentWithElectronUtilityProcess; });
7121
+ case NodeForkedProcess:
7122
+ return IpcParentWithNodeForkedProcess$1;
7123
+ case NodeWorker:
7124
+ return IpcParentWithNodeWorker$1;
7124
7125
  default:
7125
7126
  throw new Error(`unexpected ipc type ${method}`);
7126
7127
  }
@@ -7192,8 +7193,8 @@ const {
7192
7193
  wrap
7193
7194
  } = IpcParentWithElectronUtilityProcess$1$1;
7194
7195
  const effects = ({
7195
- rawIpc,
7196
- name
7196
+ name,
7197
+ rawIpc
7197
7198
  }) => {
7198
7199
  if (!rawIpc.pid) {
7199
7200
  return;
@@ -7320,17 +7321,17 @@ const commandMap = {
7320
7321
  'ElectronWebContentsView.createWebContentsView': createWebContentsView,
7321
7322
  'ElectronWebContentsView.disposeWebContentsView': disposeWebContentsView,
7322
7323
  'ElectronWebContentsViewFunctions.addToWindow': addToWindow,
7323
- 'ElectronWebContentsViewFunctions.getDomTree': wrapBrowserViewCommand(getDomTree),
7324
7324
  'ElectronWebContentsViewFunctions.backward': wrapBrowserViewCommand(backward),
7325
7325
  'ElectronWebContentsViewFunctions.cancelNavigation': wrapBrowserViewCommand(cancelNavigation),
7326
7326
  'ElectronWebContentsViewFunctions.copyImageAt': wrapBrowserViewCommand(copyImageAt),
7327
- 'ElectronWebContentsViewFunctions.focus': wrapBrowserViewCommand(focus),
7328
- 'ElectronWebContentsViewFunctions.insertCss': wrapBrowserViewCommand(insertCss),
7329
7327
  'ElectronWebContentsViewFunctions.executeJavaScript': wrapBrowserViewCommand(executeJavaScript),
7330
- 'ElectronWebContentsViewFunctions.insertJavaScript': wrapBrowserViewCommand(executeJavaScript),
7328
+ 'ElectronWebContentsViewFunctions.focus': wrapBrowserViewCommand(focus),
7331
7329
  'ElectronWebContentsViewFunctions.forward': wrapBrowserViewCommand(forward),
7330
+ 'ElectronWebContentsViewFunctions.getDomTree': wrapBrowserViewCommand(getDomTree),
7332
7331
  'ElectronWebContentsViewFunctions.getStats': wrapBrowserViewCommand(getStats),
7333
7332
  'ElectronWebContentsViewFunctions.hide': hide,
7333
+ 'ElectronWebContentsViewFunctions.insertCss': wrapBrowserViewCommand(insertCss),
7334
+ 'ElectronWebContentsViewFunctions.insertJavaScript': wrapBrowserViewCommand(executeJavaScript),
7334
7335
  'ElectronWebContentsViewFunctions.inspectElement': wrapBrowserViewCommand(inspectElement),
7335
7336
  'ElectronWebContentsViewFunctions.openDevtools': wrapBrowserViewCommand(openDevtools),
7336
7337
  'ElectronWebContentsViewFunctions.reload': wrapBrowserViewCommand(wrapBrowserViewCommand(reload)),
@@ -7388,6 +7389,10 @@ const load = async moduleId => {
7388
7389
  return Promise.resolve().then(function () { return CreatePidMap_ipc; });
7389
7390
  case DesktopCapturer:
7390
7391
  return Promise.resolve().then(function () { return DesktopCapturer_ipc; });
7392
+ case Developer:
7393
+ return Promise.resolve().then(function () { return ElectronDeveloper_ipc; });
7394
+ case Dialog:
7395
+ return Promise.resolve().then(function () { return ElectronDialog_ipc; });
7391
7396
  case ElectronApplicationMenu:
7392
7397
  return Promise.resolve().then(function () { return ElectronApplicationMenu_ipc; });
7393
7398
  case ElectronClipBoard:
@@ -7396,10 +7401,6 @@ const load = async moduleId => {
7396
7401
  return Promise.resolve().then(function () { return ElectronContentTracing_ipc; });
7397
7402
  case ElectronContextMenu:
7398
7403
  return Promise.resolve().then(function () { return ElectronContextMenu_ipc; });
7399
- case Developer:
7400
- return Promise.resolve().then(function () { return ElectronDeveloper_ipc; });
7401
- case Dialog:
7402
- return Promise.resolve().then(function () { return ElectronDialog_ipc; });
7403
7404
  case ElectronNet:
7404
7405
  return Promise.resolve().then(function () { return ElectronNet_ipc; });
7405
7406
  case ElectronNetLog:
@@ -7408,38 +7409,38 @@ const load = async moduleId => {
7408
7409
  return Promise.resolve().then(function () { return ElectronPowerSaveBlocker_ipc; });
7409
7410
  case ElectronSafeStorage:
7410
7411
  return Promise.resolve().then(function () { return ElectronSafeStorage_ipc; });
7412
+ case ElectronScreen:
7413
+ return Promise.resolve().then(function () { return ElectronScreen_ipc; });
7414
+ case ElectronSession:
7415
+ return Promise.resolve().then(function () { return ElectronSession_ipc; });
7411
7416
  case ElectronShell:
7412
7417
  return Promise.resolve().then(function () { return ElectronShell_ipc; });
7413
- case Window:
7414
- return Promise.resolve().then(function () { return ElectronWindow_ipc; });
7418
+ case ElectronWebContents:
7419
+ return Promise.resolve().then(function () { return ElectronWebContents_ipc; });
7420
+ case ElectronWebContentsView:
7421
+ return Promise.resolve().then(function () { return ElectronWebContentsView_ipc; });
7422
+ case ElectronWebContentsViewFunctions:
7423
+ return Promise.resolve().then(function () { return ElectronWebContentsViewFunctions_ipc; });
7415
7424
  case ElectronWindowProcessExplorer:
7416
7425
  return Promise.resolve().then(function () { return ElectronWindowProcessExplorer_ipc; });
7426
+ case Exit:
7427
+ return Promise.resolve().then(function () { return Exit_ipc; });
7428
+ case GetWindowId:
7429
+ return Promise.resolve().then(function () { return GetWindowId_ipc; });
7430
+ case HandleElectronMessagePort:
7431
+ return Promise.resolve().then(function () { return HandleElectronMessagePort_ipc; });
7417
7432
  case IpcParent:
7418
7433
  return Promise.resolve().then(function () { return IpcParent_ipc; });
7419
7434
  case OpenExternal$1:
7420
7435
  return Promise.resolve().then(function () { return OpenExternal_ipc; });
7421
7436
  case Process:
7422
7437
  return Promise.resolve().then(function () { return Process_ipc; });
7423
- case Exit:
7424
- return Promise.resolve().then(function () { return Exit_ipc; });
7425
- case ElectronScreen:
7426
- return Promise.resolve().then(function () { return ElectronScreen_ipc; });
7427
7438
  case TemporaryMessagePort:
7428
7439
  return Promise.resolve().then(function () { return TemporaryMessagePort_ipc; });
7429
- case ElectronWebContents:
7430
- return Promise.resolve().then(function () { return ElectronWebContents_ipc; });
7431
- case ElectronWebContentsView:
7432
- return Promise.resolve().then(function () { return ElectronWebContentsView_ipc; });
7433
- case ElectronWebContentsViewFunctions:
7434
- return Promise.resolve().then(function () { return ElectronWebContentsViewFunctions_ipc; });
7435
- case HandleElectronMessagePort:
7436
- return Promise.resolve().then(function () { return HandleElectronMessagePort_ipc; });
7437
- case GetWindowId:
7438
- return Promise.resolve().then(function () { return GetWindowId_ipc; });
7439
- case ElectronSession:
7440
- return Promise.resolve().then(function () { return ElectronSession_ipc; });
7441
7440
  case Trash:
7442
7441
  return Promise.resolve().then(function () { return Trash_ipc; });
7442
+ case Window:
7443
+ return Promise.resolve().then(function () { return ElectronWindow_ipc; });
7443
7444
  default:
7444
7445
  throw new ModuleNotFoundError(moduleId);
7445
7446
  }
@@ -7540,42 +7541,66 @@ const DesktopCapturer_ipc = {
7540
7541
  name: name$q
7541
7542
  };
7542
7543
 
7543
- const name$p = 'ElectronApplicationMenu';
7544
+ const name$p = 'ElectronDeveloper';
7544
7545
  const Commands$p = {
7545
- setItems: setItems
7546
+ crashMainProcess: crashMainProcess,
7547
+ getPerformanceEntries: getPerformanceEntries
7546
7548
  };
7547
7549
 
7548
- const ElectronApplicationMenu_ipc = {
7550
+ const ElectronDeveloper_ipc = {
7549
7551
  __proto__: null,
7550
7552
  Commands: Commands$p,
7551
7553
  name: name$p
7552
7554
  };
7553
7555
 
7556
+ const name$o = 'ElectronDialog';
7557
+ const Commands$o = {
7558
+ showMessageBox: showMessageBox,
7559
+ showOpenDialog: showOpenDialog
7560
+ };
7561
+
7562
+ const ElectronDialog_ipc = {
7563
+ __proto__: null,
7564
+ Commands: Commands$o,
7565
+ name: name$o
7566
+ };
7567
+
7568
+ const name$n = 'ElectronApplicationMenu';
7569
+ const Commands$n = {
7570
+ setItems: setItems
7571
+ };
7572
+
7573
+ const ElectronApplicationMenu_ipc = {
7574
+ __proto__: null,
7575
+ Commands: Commands$n,
7576
+ name: name$n
7577
+ };
7578
+
7554
7579
  const writeText = text => {
7555
7580
  clipboard.writeText(text);
7556
7581
  };
7557
7582
 
7558
- const name$o = 'ElectronClipBoard';
7559
- const Commands$o = {
7583
+ const name$m = 'ElectronClipBoard';
7584
+ const Commands$m = {
7560
7585
  writeText: writeText
7561
7586
  };
7562
7587
 
7563
7588
  const ElectronClipBoard_ipc = {
7564
7589
  __proto__: null,
7565
- Commands: Commands$o,
7566
- name: name$o
7590
+ Commands: Commands$m,
7591
+ name: name$m
7567
7592
  };
7568
7593
 
7569
- const name$n = 'ElectronContentTracing';
7570
- const Commands$n = {
7594
+ const name$l = 'ElectronContentTracing';
7595
+ const Commands$l = {
7571
7596
  startRecording: startRecording,
7572
7597
  stopRecording: stopRecording
7573
7598
  };
7574
7599
 
7575
7600
  const ElectronContentTracing_ipc = {
7576
7601
  __proto__: null,
7577
- Commands: Commands$n,
7578
- name: name$n
7602
+ Commands: Commands$l,
7603
+ name: name$l
7579
7604
  };
7580
7605
 
7581
7606
  const withResolvers = () => {
@@ -7592,27 +7617,27 @@ const withResolvers = () => {
7592
7617
  _reject = reject;
7593
7618
  });
7594
7619
  return {
7595
- resolve: _resolve,
7620
+ promise,
7596
7621
  reject: _reject,
7597
- promise
7622
+ resolve: _resolve
7598
7623
  };
7599
7624
  };
7600
7625
 
7601
7626
  const getElectronCallbacks = () => {
7602
7627
  const {
7603
- resolve,
7604
- promise
7628
+ promise,
7629
+ resolve
7605
7630
  } = withResolvers();
7606
7631
  const handleClick = menuItem => {
7607
7632
  resolve({
7608
- type: 'click',
7609
- data: menuItem
7633
+ data: menuItem,
7634
+ type: 'click'
7610
7635
  });
7611
7636
  };
7612
7637
  const handleClose = () => {
7613
7638
  resolve({
7614
- type: 'close',
7615
- data: undefined
7639
+ data: undefined,
7640
+ type: 'close'
7616
7641
  });
7617
7642
  };
7618
7643
  return {
@@ -7640,73 +7665,49 @@ const openContextMenu = async (menuItems, x, y) => {
7640
7665
  number(x);
7641
7666
  number(y);
7642
7667
  const {
7643
- promise,
7644
7668
  handleClick,
7645
- handleClose
7669
+ handleClose,
7670
+ promise
7646
7671
  } = getElectronCallbacks();
7647
7672
  const template = getElectronMenuItems(menuItems, handleClick);
7648
7673
  const menu = Menu.buildFromTemplate(template);
7649
7674
  const window = BrowserWindow.getFocusedWindow();
7650
7675
  if (!window) {
7651
7676
  return {
7652
- type: 'close',
7653
- data: undefined
7677
+ data: undefined,
7678
+ type: 'close'
7654
7679
  };
7655
7680
  }
7656
7681
  menu.popup({
7682
+ callback: handleClose,
7657
7683
  window,
7658
7684
  x,
7659
- y,
7660
- callback: handleClose
7685
+ y
7661
7686
  });
7662
7687
  const event = await promise;
7663
7688
  // @ts-ignore
7664
7689
  if (event.type === 'click') {
7665
7690
  return {
7666
- type: 'click',
7667
7691
  // @ts-ignore
7668
- data: event.data.label
7692
+ data: event.data.label,
7693
+ type: 'click'
7669
7694
  };
7670
7695
  }
7671
7696
  // @ts-ignore
7672
7697
  if (event.type === 'close') {
7673
7698
  return {
7674
- type: 'close',
7675
- data: undefined
7699
+ data: undefined,
7700
+ type: 'close'
7676
7701
  };
7677
7702
  }
7678
7703
  };
7679
7704
 
7680
- const name$m = 'ElectronContextMenu';
7681
- const Commands$m = {
7705
+ const name$k = 'ElectronContextMenu';
7706
+ const Commands$k = {
7682
7707
  openContextMenu: openContextMenu
7683
7708
  };
7684
7709
 
7685
7710
  const ElectronContextMenu_ipc = {
7686
- __proto__: null,
7687
- Commands: Commands$m,
7688
- name: name$m
7689
- };
7690
-
7691
- const name$l = 'ElectronDeveloper';
7692
- const Commands$l = {
7693
- crashMainProcess: crashMainProcess,
7694
- getPerformanceEntries: getPerformanceEntries
7695
- };
7696
-
7697
- const ElectronDeveloper_ipc = {
7698
- __proto__: null,
7699
- Commands: Commands$l,
7700
- name: name$l
7701
- };
7702
-
7703
- const name$k = 'ElectronDialog';
7704
- const Commands$k = {
7705
- showMessageBox: showMessageBox,
7706
- showOpenDialog: showOpenDialog
7707
- };
7708
-
7709
- const ElectronDialog_ipc = {
7710
7711
  __proto__: null,
7711
7712
  Commands: Commands$k,
7712
7713
  name: name$k
@@ -7760,216 +7761,216 @@ const ElectronSafeStorage_ipc = {
7760
7761
  name: name$g
7761
7762
  };
7762
7763
 
7763
- const name$f = 'ElectronShell';
7764
+ const name$f = 'ElectronScreen';
7764
7765
  const Commands$f = {
7765
- beep: beep$1,
7766
- openExternal: openExternal,
7767
- openPath: showItemInFolder,
7768
- showItemInFolder: showItemInFolder
7766
+ getBounds: getBounds,
7767
+ getHeight: getHeight,
7768
+ getWidth: getWidth
7769
7769
  };
7770
7770
 
7771
- const ElectronShell_ipc = {
7771
+ const ElectronScreen_ipc = {
7772
7772
  __proto__: null,
7773
7773
  Commands: Commands$f,
7774
7774
  name: name$f
7775
7775
  };
7776
7776
 
7777
- const name$e = 'ElectronWindow';
7777
+ const name$e = 'ElectronSession';
7778
7778
  const Commands$e = {
7779
- executeWindowFunction: executeWindowFunction,
7780
- executeWebContentsFunction: executeWebContentsFunction,
7781
- getFocusedWindowId: getFocusedWindowId,
7782
- getZoom: getZoom
7779
+ registerWebviewProtocol: registerWebviewProtocol
7783
7780
  };
7784
7781
 
7785
- const ElectronWindow_ipc = {
7782
+ const ElectronSession_ipc = {
7786
7783
  __proto__: null,
7787
7784
  Commands: Commands$e,
7788
7785
  name: name$e
7789
7786
  };
7790
7787
 
7791
- const name$d = 'ElectronWindowProcessExplorer';
7788
+ const name$d = 'ElectronShell';
7792
7789
  const Commands$d = {
7793
- open2: open2
7790
+ beep: beep$1,
7791
+ openExternal: openExternal,
7792
+ openPath: showItemInFolder,
7793
+ showItemInFolder: showItemInFolder
7794
7794
  };
7795
7795
 
7796
- const ElectronWindowProcessExplorer_ipc = {
7796
+ const ElectronShell_ipc = {
7797
7797
  __proto__: null,
7798
7798
  Commands: Commands$d,
7799
7799
  name: name$d
7800
7800
  };
7801
7801
 
7802
- const name$c = 'IpcParent';
7802
+ const name$c = 'ElectronWebContents';
7803
7803
  const Commands$c = {
7804
- create: create$1
7804
+ callFunction: callFunction,
7805
+ dispose: dispose$1,
7806
+ getStats: getStats$1
7805
7807
  };
7806
7808
 
7807
- const IpcParent_ipc = {
7809
+ const ElectronWebContents_ipc = {
7808
7810
  __proto__: null,
7809
7811
  Commands: Commands$c,
7810
7812
  name: name$c
7811
7813
  };
7812
7814
 
7813
- const name$b = 'OpenExternal';
7815
+ const name$b = 'ElectronWebContentsView';
7814
7816
  const Commands$b = {
7815
- openExternal: openExternal
7817
+ attachEventListeners: attachEventListeners,
7818
+ createWebContentsView: createWebContentsView,
7819
+ disposeWebContentsView: disposeWebContentsView
7816
7820
  };
7817
7821
 
7818
- const OpenExternal_ipc = {
7822
+ const ElectronWebContentsView_ipc = {
7819
7823
  __proto__: null,
7820
7824
  Commands: Commands$b,
7821
7825
  name: name$b
7822
7826
  };
7823
7827
 
7824
- const name$a = 'Process';
7828
+ const name$a = 'ElectronWebContentsViewFunctions';
7825
7829
  const Commands$a = {
7826
- getArgv: getArgv,
7827
- getChromeVersion: getChromeVersion,
7828
- getElectronVersion: getElectronVersion,
7829
- getNodeVersion: getNodeVersion,
7830
- getPid: getPid,
7831
- getV8Version: getV8Version
7830
+ addToWindow: addToWindow,
7831
+ backward: wrapBrowserViewCommand(backward),
7832
+ cancelNavigation: wrapBrowserViewCommand(cancelNavigation),
7833
+ copyImageAt: wrapBrowserViewCommand(copyImageAt),
7834
+ executeJavaScript: wrapBrowserViewCommand(executeJavaScript),
7835
+ focus: wrapBrowserViewCommand(focus),
7836
+ forward: wrapBrowserViewCommand(forward),
7837
+ getDomTree: wrapBrowserViewCommand(getDomTree),
7838
+ getStats: wrapBrowserViewCommand(getStats),
7839
+ hide: hide,
7840
+ insertCss: wrapBrowserViewCommand(insertCss),
7841
+ insertJavaScript: wrapBrowserViewCommand(executeJavaScript),
7842
+ inspectElement: wrapBrowserViewCommand(inspectElement),
7843
+ openDevtools: wrapBrowserViewCommand(openDevtools),
7844
+ reload: wrapBrowserViewCommand(reload),
7845
+ resizeBrowserView: wrapBrowserViewCommand(resizeBrowserView),
7846
+ setBackgroundColor: wrapBrowserViewCommand(setBackgroundColor),
7847
+ setFallthroughKeyBindings: setFallThroughKeyBindings,
7848
+ setIframeSrc: wrapBrowserViewCommand(setIframeSrc),
7849
+ setIframeSrcFallback: wrapBrowserViewCommand(setIframeSrcFallback),
7850
+ show: show
7832
7851
  };
7833
7852
 
7834
- const Process_ipc = {
7853
+ const ElectronWebContentsViewFunctions_ipc = {
7835
7854
  __proto__: null,
7836
7855
  Commands: Commands$a,
7837
7856
  name: name$a
7838
7857
  };
7839
7858
 
7840
- const name$9 = 'Exit';
7859
+ const name$9 = 'ElectronWindowProcessExplorer';
7841
7860
  const Commands$9 = {
7842
- exit: exit
7861
+ open2: open2
7843
7862
  };
7844
7863
 
7845
- const Exit_ipc = {
7864
+ const ElectronWindowProcessExplorer_ipc = {
7846
7865
  __proto__: null,
7847
7866
  Commands: Commands$9,
7848
7867
  name: name$9
7849
7868
  };
7850
7869
 
7851
- const name$8 = 'ElectronScreen';
7870
+ const name$8 = 'Exit';
7852
7871
  const Commands$8 = {
7853
- getBounds: getBounds,
7854
- getWidth: getWidth,
7855
- getHeight: getHeight
7872
+ exit: exit
7856
7873
  };
7857
7874
 
7858
- const ElectronScreen_ipc = {
7875
+ const Exit_ipc = {
7859
7876
  __proto__: null,
7860
7877
  Commands: Commands$8,
7861
7878
  name: name$8
7862
7879
  };
7863
7880
 
7864
- const name$7 = 'TemporaryMessagePort';
7881
+ const name$7 = 'GetWindowId';
7865
7882
  const Commands$7 = {
7866
- createPortTuple: createPortTuple,
7867
- dispose: dispose,
7868
- sendTo: sendTo
7883
+ getWindowId: getWindowId
7869
7884
  };
7870
7885
 
7871
- const TemporaryMessagePort_ipc = {
7886
+ const GetWindowId_ipc = {
7872
7887
  __proto__: null,
7873
7888
  Commands: Commands$7,
7874
7889
  name: name$7
7875
7890
  };
7876
7891
 
7877
- const name$6 = 'ElectronWebContents';
7892
+ const name$6 = 'HandleElectronMessagePort';
7878
7893
  const Commands$6 = {
7879
- dispose: dispose$1,
7880
- getStats: getStats$1,
7881
- callFunction: callFunction
7894
+ handleElectronMessagePort: handleElectronMessagePort
7882
7895
  };
7883
7896
 
7884
- const ElectronWebContents_ipc = {
7897
+ const HandleElectronMessagePort_ipc = {
7885
7898
  __proto__: null,
7886
7899
  Commands: Commands$6,
7887
7900
  name: name$6
7888
7901
  };
7889
7902
 
7890
- const name$5 = 'ElectronWebContentsView';
7903
+ const name$5 = 'IpcParent';
7891
7904
  const Commands$5 = {
7892
- createWebContentsView: createWebContentsView,
7893
- attachEventListeners: attachEventListeners,
7894
- disposeWebContentsView: disposeWebContentsView
7905
+ create: create$1
7895
7906
  };
7896
7907
 
7897
- const ElectronWebContentsView_ipc = {
7908
+ const IpcParent_ipc = {
7898
7909
  __proto__: null,
7899
7910
  Commands: Commands$5,
7900
7911
  name: name$5
7901
7912
  };
7902
7913
 
7903
- const name$4 = 'ElectronWebContentsViewFunctions';
7914
+ const name$4 = 'OpenExternal';
7904
7915
  const Commands$4 = {
7905
- addToWindow: addToWindow,
7906
- backward: wrapBrowserViewCommand(backward),
7907
- cancelNavigation: wrapBrowserViewCommand(cancelNavigation),
7908
- copyImageAt: wrapBrowserViewCommand(copyImageAt),
7909
- focus: wrapBrowserViewCommand(focus),
7910
- forward: wrapBrowserViewCommand(forward),
7911
- getStats: wrapBrowserViewCommand(getStats),
7912
- hide: hide,
7913
- inspectElement: wrapBrowserViewCommand(inspectElement),
7914
- openDevtools: wrapBrowserViewCommand(openDevtools),
7915
- reload: wrapBrowserViewCommand(reload),
7916
- resizeBrowserView: wrapBrowserViewCommand(resizeBrowserView),
7917
- setBackgroundColor: wrapBrowserViewCommand(setBackgroundColor),
7918
- setFallthroughKeyBindings: setFallThroughKeyBindings,
7919
- setIframeSrc: wrapBrowserViewCommand(setIframeSrc),
7920
- setIframeSrcFallback: wrapBrowserViewCommand(setIframeSrcFallback),
7921
- show: show,
7922
- getDomTree: wrapBrowserViewCommand(getDomTree),
7923
- insertCss: wrapBrowserViewCommand(insertCss),
7924
- executeJavaScript: wrapBrowserViewCommand(executeJavaScript),
7925
- insertJavaScript: wrapBrowserViewCommand(executeJavaScript)
7916
+ openExternal: openExternal
7926
7917
  };
7927
7918
 
7928
- const ElectronWebContentsViewFunctions_ipc = {
7919
+ const OpenExternal_ipc = {
7929
7920
  __proto__: null,
7930
7921
  Commands: Commands$4,
7931
7922
  name: name$4
7932
7923
  };
7933
7924
 
7934
- const name$3 = 'HandleElectronMessagePort';
7925
+ const name$3 = 'Process';
7935
7926
  const Commands$3 = {
7936
- handleElectronMessagePort: handleElectronMessagePort
7927
+ getArgv: getArgv,
7928
+ getChromeVersion: getChromeVersion,
7929
+ getElectronVersion: getElectronVersion,
7930
+ getNodeVersion: getNodeVersion,
7931
+ getPid: getPid,
7932
+ getV8Version: getV8Version
7937
7933
  };
7938
7934
 
7939
- const HandleElectronMessagePort_ipc = {
7935
+ const Process_ipc = {
7940
7936
  __proto__: null,
7941
7937
  Commands: Commands$3,
7942
7938
  name: name$3
7943
7939
  };
7944
7940
 
7945
- const name$2 = 'GetWindowId';
7941
+ const name$2 = 'TemporaryMessagePort';
7946
7942
  const Commands$2 = {
7947
- getWindowId: getWindowId
7943
+ createPortTuple: createPortTuple,
7944
+ dispose: dispose,
7945
+ sendTo: sendTo
7948
7946
  };
7949
7947
 
7950
- const GetWindowId_ipc = {
7948
+ const TemporaryMessagePort_ipc = {
7951
7949
  __proto__: null,
7952
7950
  Commands: Commands$2,
7953
7951
  name: name$2
7954
7952
  };
7955
7953
 
7956
- const name$1 = 'ElectronSession';
7954
+ const name$1 = 'Trash';
7957
7955
  const Commands$1 = {
7958
- registerWebviewProtocol: registerWebviewProtocol
7956
+ trash: trash
7959
7957
  };
7960
7958
 
7961
- const ElectronSession_ipc = {
7959
+ const Trash_ipc = {
7962
7960
  __proto__: null,
7963
7961
  Commands: Commands$1,
7964
7962
  name: name$1
7965
7963
  };
7966
7964
 
7967
- const name = 'Trash';
7965
+ const name = 'ElectronWindow';
7968
7966
  const Commands = {
7969
- trash: trash
7967
+ executeWebContentsFunction: executeWebContentsFunction,
7968
+ executeWindowFunction: executeWindowFunction,
7969
+ getFocusedWindowId: getFocusedWindowId,
7970
+ getZoom: getZoom
7970
7971
  };
7971
7972
 
7972
- const Trash_ipc = {
7973
+ const ElectronWindow_ipc = {
7973
7974
  __proto__: null,
7974
7975
  Commands,
7975
7976
  name