@lvce-editor/renderer-process 30.34.0 → 30.34.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.
@@ -5480,9 +5480,26 @@ const ViewletActivityBar = {
5480
5480
  Events: Events$6
5481
5481
  };
5482
5482
 
5483
- const executeViewletCommand$1 = (uid, command, ...args) => {
5483
+ const executeViewletCommand$1 = 'Viewlet.executeViewletCommand';
5484
+ const send = (method, uid, ...args) => {
5485
+ if (method === executeViewletCommand$1) {
5486
+ const rpc = get(uid);
5487
+ if (rpc) {
5488
+ rpc.send(method, uid, ...args);
5489
+ return;
5490
+ }
5491
+ }
5492
+ send$1(method, uid, ...args);
5493
+ };
5494
+
5495
+ const ViewletEventRouter = {
5496
+ __proto__: null,
5497
+ send
5498
+ };
5499
+
5500
+ const executeViewletCommand = (uid, command, ...args) => {
5484
5501
  number(uid);
5485
- send$1('Viewlet.executeViewletCommand', uid, command, ...args);
5502
+ send('Viewlet.executeViewletCommand', uid, command, ...args);
5486
5503
  };
5487
5504
 
5488
5505
  const nameAnonymousFunction = (fn, name) => {
@@ -5493,7 +5510,7 @@ const nameAnonymousFunction = (fn, name) => {
5493
5510
 
5494
5511
  const forwardViewletCommand = name => {
5495
5512
  const fn = (uid, ...args) => {
5496
- executeViewletCommand$1(uid, name, ...args);
5513
+ executeViewletCommand(uid, name, ...args);
5497
5514
  };
5498
5515
  nameAnonymousFunction(fn, name);
5499
5516
  return fn;
@@ -6309,7 +6326,7 @@ const handleWheel$1 = event => {
6309
6326
  deltaY
6310
6327
  } = event;
6311
6328
  const uid = fromEvent(event);
6312
- executeViewletCommand$1(uid, 'EditorCompletion.handleWheel', deltaMode, deltaY);
6329
+ executeViewletCommand(uid, 'EditorCompletion.handleWheel', deltaMode, deltaY);
6313
6330
  };
6314
6331
 
6315
6332
  const Small$1 = 1;
@@ -9555,9 +9572,13 @@ const getFilePathElectron = async file => {
9555
9572
  return filePath;
9556
9573
  };
9557
9574
 
9575
+ const forwardRendererWorkerCommand = (method, ...params) => {
9576
+ send$1(method, ...params);
9577
+ };
9558
9578
  const handleMessagePort = async (port, rpcId) => {
9559
9579
  const rpc = await create$x({
9560
9580
  commandMap: {
9581
+ 'Viewlet.forwardRendererWorkerCommand': forwardRendererWorkerCommand,
9561
9582
  'Viewlet.queueCommands': queueCommands
9562
9583
  },
9563
9584
  messagePort: port
@@ -10293,7 +10314,7 @@ const handleFocusIn = event => {
10293
10314
  };
10294
10315
  const handleBlur = event => {
10295
10316
  const uid = fromEvent(event);
10296
- executeViewletCommand$1(uid, 'EditorRename.handleBlur');
10317
+ executeViewletCommand(uid, 'EditorRename.handleBlur');
10297
10318
  };
10298
10319
  const handleInput = event => {
10299
10320
  const {
@@ -10303,7 +10324,7 @@ const handleInput = event => {
10303
10324
  value
10304
10325
  } = target;
10305
10326
  const uid = fromEvent(event);
10306
- executeViewletCommand$1(uid, 'EditorRename.handleInput', value);
10327
+ executeViewletCommand(uid, 'EditorRename.handleInput', value);
10307
10328
  };
10308
10329
 
10309
10330
  const ViewletEditorRenameEvents = {
@@ -10338,23 +10359,6 @@ const ViewletEditorRename = {
10338
10359
  setBounds
10339
10360
  };
10340
10361
 
10341
- const executeViewletCommand = 'Viewlet.executeViewletCommand';
10342
- const send = (method, uid, ...args) => {
10343
- if (method === executeViewletCommand) {
10344
- const rpc = get(uid);
10345
- if (rpc) {
10346
- rpc.send(method, uid, ...args);
10347
- return;
10348
- }
10349
- }
10350
- send$1(method, uid, ...args);
10351
- };
10352
-
10353
- const ViewletEventRouter = {
10354
- __proto__: null,
10355
- send
10356
- };
10357
-
10358
10362
  const handleContentSecurityPolicyViolation = event => {
10359
10363
  };
10360
10364
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.34.0",
3
+ "version": "30.34.2",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"