@lvce-editor/renderer-process 30.34.0 → 30.34.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.
@@ -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;
@@ -10293,7 +10310,7 @@ const handleFocusIn = event => {
10293
10310
  };
10294
10311
  const handleBlur = event => {
10295
10312
  const uid = fromEvent(event);
10296
- executeViewletCommand$1(uid, 'EditorRename.handleBlur');
10313
+ executeViewletCommand(uid, 'EditorRename.handleBlur');
10297
10314
  };
10298
10315
  const handleInput = event => {
10299
10316
  const {
@@ -10303,7 +10320,7 @@ const handleInput = event => {
10303
10320
  value
10304
10321
  } = target;
10305
10322
  const uid = fromEvent(event);
10306
- executeViewletCommand$1(uid, 'EditorRename.handleInput', value);
10323
+ executeViewletCommand(uid, 'EditorRename.handleInput', value);
10307
10324
  };
10308
10325
 
10309
10326
  const ViewletEditorRenameEvents = {
@@ -10338,23 +10355,6 @@ const ViewletEditorRename = {
10338
10355
  setBounds
10339
10356
  };
10340
10357
 
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
10358
  const handleContentSecurityPolicyViolation = event => {
10359
10359
  };
10360
10360
 
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.1",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"