@lvce-editor/renderer-process 11.5.0 → 12.0.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.
@@ -18,6 +18,7 @@ const Developer = 4;
18
18
  const Download = 5;
19
19
  const EditorController = 6;
20
20
  const EditorError$1 = 7;
21
+ const FileHandles = 423;
21
22
  const EditorHover$1 = 8;
22
23
  const ImagePreview$2 = 10;
23
24
  const InitData = 11;
@@ -62,6 +63,8 @@ const getModuleId = commandId => {
62
63
  case 'ClipBoard.writeImage':
63
64
  case 'ClipBoard.writeText':
64
65
  return ClipBoard;
66
+ case 'FileHandles.get':
67
+ return FileHandles;
65
68
  case 'ConfirmPrompt.prompt':
66
69
  return ConfirmPrompt;
67
70
  case 'Css.addCssStyleSheet':
@@ -191,7 +194,7 @@ const getModuleId = commandId => {
191
194
  case 'Window.reload':
192
195
  case 'Window.unmaximize':
193
196
  return Window;
194
- case 33111:
197
+ case 33_111:
195
198
  return Workbench;
196
199
  case 'WindowTitle.set':
197
200
  return WindowTitle;
@@ -337,7 +340,7 @@ const execute = (command, ...args) => {
337
340
  if (command in state$a.commands) {
338
341
  const fn = state$a.commands[command];
339
342
  if (typeof fn !== 'function') {
340
- throw new Error(`[renderer-worker] Command ${command} is not a function`);
343
+ throw new TypeError(`[renderer-worker] Command ${command} is not a function`);
341
344
  }
342
345
  return fn(...args);
343
346
  }
@@ -351,7 +354,7 @@ const ipcs = Object.create(null);
351
354
  const set$9 = (name, ipc) => {
352
355
  ipcs[name] = ipc;
353
356
  };
354
- const get$9 = name => {
357
+ const get$a = name => {
355
358
  return ipcs[name];
356
359
  };
357
360
  const remove$4 = name => {
@@ -447,8 +450,6 @@ const getModule$1 = method => {
447
450
  }
448
451
  };
449
452
 
450
- const shouldLaunchMultipleWorkers = true;
451
-
452
453
  const Two = '2.0';
453
454
  const create$4$1 = (method, params) => {
454
455
  return {
@@ -461,15 +462,15 @@ const callbacks = Object.create(null);
461
462
  const set$8 = (id, fn) => {
462
463
  callbacks[id] = fn;
463
464
  };
464
- const get$8 = id => {
465
+ const get$9 = id => {
465
466
  return callbacks[id];
466
467
  };
467
468
  const remove$3 = id => {
468
469
  delete callbacks[id];
469
470
  };
470
- let id = 0;
471
+ let id$1 = 0;
471
472
  const create$3$1 = () => {
472
- return ++id;
473
+ return ++id$1;
473
474
  };
474
475
  const registerPromise = () => {
475
476
  const id = create$3$1();
@@ -634,7 +635,7 @@ const warn$1 = (...args) => {
634
635
  console.warn(...args);
635
636
  };
636
637
  const resolve = (id, response) => {
637
- const fn = get$8(id);
638
+ const fn = get$9(id);
638
639
  if (!fn) {
639
640
  console.log(response);
640
641
  warn$1(`callback ${id} may already be disposed`);
@@ -686,7 +687,7 @@ const getErrorResponse = (message, error, preparePrettyError, logError) => {
686
687
  const errorProperty = getErrorProperty(error, prettyError);
687
688
  return create$1$1(message, errorProperty);
688
689
  };
689
- const create$I = (message, result) => {
690
+ const create$J = (message, result) => {
690
691
  return {
691
692
  jsonrpc: Two,
692
693
  id: message.id,
@@ -695,7 +696,7 @@ const create$I = (message, result) => {
695
696
  };
696
697
  const getSuccessResponse = (message, result) => {
697
698
  const resultProperty = result ?? null;
698
- return create$I(message, resultProperty);
699
+ return create$J(message, resultProperty);
699
700
  };
700
701
  const getResponse = async (message, ipc, execute, preparePrettyError, logError, requiresSocket) => {
701
702
  try {
@@ -879,7 +880,7 @@ const launchWorker = async ({
879
880
  name,
880
881
  url
881
882
  }) => {
882
- const worker = await create$H({
883
+ const worker = await create$I({
883
884
  method: Auto,
884
885
  url,
885
886
  name
@@ -986,7 +987,9 @@ const RendererWorker = {
986
987
  state: state$9
987
988
  };
988
989
 
989
- const create$H = async ({
990
+ const shouldLaunchMultipleWorkers = true;
991
+
992
+ const create$I = async ({
990
993
  method,
991
994
  ...options
992
995
  }) => {
@@ -996,7 +999,7 @@ const create$H = async ({
996
999
  }
997
1000
  // TODO rename method
998
1001
  // TODO avoid cyclic dependency
999
- const port = get$9(options.name);
1002
+ const port = get$a(options.name);
1000
1003
  remove$4(options.name);
1001
1004
  await invokeAndTransfer('Transferrable.transfer', options.id, port);
1002
1005
  return;
@@ -1007,7 +1010,7 @@ const create$H = async ({
1007
1010
  };
1008
1011
 
1009
1012
  const launchEditorWorker = async port => {
1010
- const ipc = await create$H({
1013
+ const ipc = await create$I({
1011
1014
  name: 'Editor Worker',
1012
1015
  url: editorWorkerUrl,
1013
1016
  method: ModuleWorkerWithMessagePort,
@@ -1037,7 +1040,7 @@ const extensionHostWorkerUrl = getConfiguredExtensionHostWorkerUrl() || `${asset
1037
1040
 
1038
1041
  const launchExtensionHostWorker = async port => {
1039
1042
  const name = isElectron ? 'Extension Host (Electron)' : 'Extension Host';
1040
- const ipc = await create$H({
1043
+ const ipc = await create$I({
1041
1044
  name,
1042
1045
  url: extensionHostWorkerUrl,
1043
1046
  method: ModuleWorkerWithMessagePort,
@@ -1061,7 +1064,7 @@ const hydrate$2 = async () => {
1061
1064
  const syntaxHighlightingWorkerUrl = `${assetDir}/packages/renderer-worker/node_modules/@lvce-editor/syntax-highlighting-worker/dist/syntaxHighlightingWorkerMain.js`;
1062
1065
 
1063
1066
  const launchSyntaxHighlightingWorker = async port => {
1064
- const ipc = await create$H({
1067
+ const ipc = await create$I({
1065
1068
  name: 'Syntax Highlighting Worker',
1066
1069
  url: syntaxHighlightingWorkerUrl,
1067
1070
  method: ModuleWorkerWithMessagePort,
@@ -1081,9 +1084,13 @@ const hydrate$1 = async () => {
1081
1084
  await promise;
1082
1085
  };
1083
1086
 
1087
+ const workerFns = [hydrate$4, hydrate$3, hydrate$1, hydrate$2];
1088
+ const call = fn => {
1089
+ return fn();
1090
+ };
1084
1091
  const launchWorkers = () => {
1085
1092
  {
1086
- return Promise.all([hydrate$4(), hydrate$3(), hydrate$1(), hydrate$2()]);
1093
+ return Promise.all(workerFns.map(call));
1087
1094
  }
1088
1095
  };
1089
1096
 
@@ -1095,6 +1102,8 @@ const load$2 = moduleId => {
1095
1102
  return Promise.resolve().then(function () { return ClipBoard_ipc; });
1096
1103
  case ConfirmPrompt:
1097
1104
  return Promise.resolve().then(function () { return ConfirmPrompt_ipc; });
1105
+ case FileHandles:
1106
+ return Promise.resolve().then(function () { return FileHandles_ipc; });
1098
1107
  case Css:
1099
1108
  return Promise.resolve().then(function () { return Css_ipc; });
1100
1109
  case Developer:
@@ -1421,14 +1430,14 @@ const getComponentUidFromEvent = event => {
1421
1430
  } = event;
1422
1431
  return getComponentUid(currentTarget || target);
1423
1432
  };
1424
- const state$8 = {
1433
+ const state$1$1 = {
1425
1434
  ipc: undefined
1426
1435
  };
1427
1436
  const getIpc = () => {
1428
- return state$8.ipc;
1437
+ return state$1$1.ipc;
1429
1438
  };
1430
1439
  const setIpc = value => {
1431
- state$8.ipc = value;
1440
+ state$1$1.ipc = value;
1432
1441
  };
1433
1442
  const cache$1 = new Map();
1434
1443
  const has = listener => {
@@ -1437,7 +1446,7 @@ const has = listener => {
1437
1446
  const set$7 = (listener, value) => {
1438
1447
  cache$1.set(listener, value);
1439
1448
  };
1440
- const get$7 = listener => {
1449
+ const get$1$1 = listener => {
1441
1450
  return cache$1.get(listener);
1442
1451
  };
1443
1452
  const nameAnonymousFunction$1 = (fn, name) => {
@@ -1463,7 +1472,7 @@ const getWrappedListener$1 = (listener, returnValue) => {
1463
1472
  nameAnonymousFunction$1(wrapped, listener.name);
1464
1473
  set$7(listener, wrapped);
1465
1474
  }
1466
- return get$7(listener);
1475
+ return get$1$1(listener);
1467
1476
  };
1468
1477
  const getOptions = fn => {
1469
1478
  if (fn.passive) {
@@ -1638,7 +1647,7 @@ const removeChild = ($Element, index) => {
1638
1647
  const $Child = $Element.children[index];
1639
1648
  $Child.remove();
1640
1649
  };
1641
- const add = ($Element, nodes) => {
1650
+ const add$1 = ($Element, nodes) => {
1642
1651
  renderInternal($Element, nodes, {}, {});
1643
1652
  };
1644
1653
  const SetText = 1;
@@ -1666,7 +1675,7 @@ const applyPatch = ($Element, patches) => {
1666
1675
  removeChild($Current, patch.index);
1667
1676
  break;
1668
1677
  case Add:
1669
- add($Current, patch.nodes);
1678
+ add$1($Current, patch.nodes);
1670
1679
  break;
1671
1680
  case NavigateSibling:
1672
1681
  $Current = $Current.parentNode.childNodes[patch.index];
@@ -1680,8 +1689,34 @@ const applyPatch = ($Element, patches) => {
1680
1689
  }
1681
1690
  }
1682
1691
  };
1692
+ let id = 0;
1693
+ const create$H = () => {
1694
+ return ++id;
1695
+ };
1696
+ const state$8 = Object.create(null);
1697
+ const get$8 = id => {
1698
+ return state$8[id];
1699
+ };
1700
+ const getFileHandles = async ids => {
1701
+ const promises = ids.map(id => get$8(id));
1702
+ const handles = await Promise.all(promises);
1703
+ return handles;
1704
+ };
1705
+ const add = promise => {
1706
+ const id = create$H();
1707
+ state$8[id] = promise;
1708
+ return id;
1709
+ };
1710
+ const handleDataTransferFiles = async event => {
1711
+ const items = [...event.dataTransfer.items];
1712
+ const promises = items.map(item => item.getAsFileSystemHandle());
1713
+ const ids = promises.map(promise => add(promise));
1714
+ return ids;
1715
+ };
1683
1716
  const getEventListenerArg = (param, event) => {
1684
1717
  switch (param) {
1718
+ case 'event.dataTransfer.files2':
1719
+ return handleDataTransferFiles(event);
1685
1720
  case 'event.clientX':
1686
1721
  return event.clientX;
1687
1722
  case 'event.x':
@@ -1859,7 +1894,7 @@ const rememberFocus$1 = ($Viewlet, dom, eventMap, uid = 0) => {
1859
1894
  };
1860
1895
 
1861
1896
  const set$6 = setComponentUid;
1862
- const get$6 = getComponentUid;
1897
+ const get$7 = getComponentUid;
1863
1898
  const fromEvent = getComponentUidFromEvent;
1864
1899
 
1865
1900
  const applyUidWorkaround = element => {
@@ -1869,7 +1904,7 @@ const applyUidWorkaround = element => {
1869
1904
  if (!editor) {
1870
1905
  throw new Error('no editor found');
1871
1906
  }
1872
- const editorUid = get$6(editor);
1907
+ const editorUid = get$7(editor);
1873
1908
  set$6(element, editorUid);
1874
1909
  };
1875
1910
 
@@ -2951,11 +2986,11 @@ const setBounds$3 = (state, x, y, width, height) => {
2951
2986
  const dispose$f = state => {
2952
2987
  remove$2(state.$Viewlet);
2953
2988
  };
2954
- const Events$9 = ViewletFindWidgetEvents;
2989
+ const Events$5 = ViewletFindWidgetEvents;
2955
2990
 
2956
2991
  const ViewletFindWidget = {
2957
2992
  __proto__: null,
2958
- Events: Events$9,
2993
+ Events: Events$5,
2959
2994
  appendWidget,
2960
2995
  create: create$D,
2961
2996
  dispose: dispose$f,
@@ -4152,15 +4187,15 @@ const play = async src => {
4152
4187
  await audio.play();
4153
4188
  };
4154
4189
 
4155
- const name$y = 'Audio';
4156
- const Commands$z = {
4190
+ const name$z = 'Audio';
4191
+ const Commands$A = {
4157
4192
  play: play
4158
4193
  };
4159
4194
 
4160
4195
  const Audio_ipc = {
4161
4196
  __proto__: null,
4162
- Commands: Commands$z,
4163
- name: name$y
4197
+ Commands: Commands$A,
4198
+ name: name$z
4164
4199
  };
4165
4200
 
4166
4201
  const readText = async () => {
@@ -4181,8 +4216,8 @@ const execCopy = async () => {
4181
4216
  await writeText(text);
4182
4217
  };
4183
4218
 
4184
- const name$x = 'ClipBoard';
4185
- const Commands$y = {
4219
+ const name$y = 'ClipBoard';
4220
+ const Commands$z = {
4186
4221
  execCopy: execCopy,
4187
4222
  readText: readText,
4188
4223
  writeImage: writeImage,
@@ -4191,20 +4226,36 @@ const Commands$y = {
4191
4226
 
4192
4227
  const ClipBoard_ipc = {
4193
4228
  __proto__: null,
4194
- Commands: Commands$y,
4195
- name: name$x
4229
+ Commands: Commands$z,
4230
+ name: name$y
4196
4231
  };
4197
4232
 
4198
4233
  const prompt$1 = message => {
4199
4234
  return confirm(message);
4200
4235
  };
4201
4236
 
4202
- const name$w = 'ConfirmPrompt';
4203
- const Commands$x = {
4237
+ const name$x = 'ConfirmPrompt';
4238
+ const Commands$y = {
4204
4239
  prompt: prompt$1
4205
4240
  };
4206
4241
 
4207
4242
  const ConfirmPrompt_ipc = {
4243
+ __proto__: null,
4244
+ Commands: Commands$y,
4245
+ name: name$x
4246
+ };
4247
+
4248
+ const get$6 = ids => {
4249
+ // @ts-ignore
4250
+ return getFileHandles(ids);
4251
+ };
4252
+
4253
+ const name$w = 'FileHandles';
4254
+ const Commands$x = {
4255
+ get: get$6
4256
+ };
4257
+
4258
+ const FileHandles_ipc = {
4208
4259
  __proto__: null,
4209
4260
  Commands: Commands$x,
4210
4261
  name: name$w
@@ -4590,7 +4641,7 @@ const InitData_ipc = {
4590
4641
 
4591
4642
  const name$n = 'IpcParent';
4592
4643
  const Commands$o = {
4593
- create: create$H
4644
+ create: create$I
4594
4645
  };
4595
4646
 
4596
4647
  const IpcParent_ipc = {
@@ -4807,6 +4858,12 @@ const OffscreenCanvas_ipc = {
4807
4858
  name: name$g
4808
4859
  };
4809
4860
 
4861
+ const create$BackDrop = () => {
4862
+ const $BackDrop = document.createElement('div');
4863
+ $BackDrop.className = 'BackDrop';
4864
+ return $BackDrop;
4865
+ };
4866
+
4810
4867
  // TODO this module should be called dom or dom utils
4811
4868
 
4812
4869
  // TODO this module makes for weird code splitting chunks,
@@ -4827,12 +4884,6 @@ const findIndex = ($Container, $Target) => {
4827
4884
  return -1;
4828
4885
  };
4829
4886
 
4830
- const create$BackDrop = () => {
4831
- const $BackDrop = document.createElement('div');
4832
- $BackDrop.className = 'BackDrop';
4833
- return $BackDrop;
4834
- };
4835
-
4836
4887
  const state$2 = {
4837
4888
  /**
4838
4889
  * @type {HTMLElement|undefined}
@@ -5278,42 +5329,6 @@ const ScreenCapture_ipc = {
5278
5329
  name: name$b
5279
5330
  };
5280
5331
 
5281
- const getTimeStamp = () => {
5282
- return performance.now();
5283
- };
5284
-
5285
- const waitForMutation = async maxDelay => {
5286
- const disposables = [];
5287
- await Promise.race([new Promise(resolve => {
5288
- const timeout = setTimeout(resolve, maxDelay);
5289
- // @ts-expect-error
5290
- disposables.push(() => {
5291
- clearTimeout(timeout);
5292
- });
5293
- }), new Promise(resolve => {
5294
- const callback = mutations => {
5295
- resolve(undefined);
5296
- };
5297
- const observer = new MutationObserver(callback);
5298
- observer.observe(document.body, {
5299
- childList: true,
5300
- attributes: true,
5301
- characterData: true,
5302
- subtree: true,
5303
- attributeOldValue: true,
5304
- characterDataOldValue: true
5305
- });
5306
- // @ts-expect-error
5307
- disposables.push(() => {
5308
- observer.disconnect();
5309
- });
5310
- })]);
5311
- for (const disposable of disposables) {
5312
- // @ts-expect-error
5313
- disposable();
5314
- }
5315
- };
5316
-
5317
5332
  const getEventClass = eventType => {
5318
5333
  switch (eventType) {
5319
5334
  case Wheel:
@@ -5460,6 +5475,42 @@ const querySelectorWithOptions = (selector, {
5460
5475
  return element;
5461
5476
  };
5462
5477
 
5478
+ const getTimeStamp = () => {
5479
+ return performance.now();
5480
+ };
5481
+
5482
+ const waitForMutation = async maxDelay => {
5483
+ const disposables = [];
5484
+ await Promise.race([new Promise(resolve => {
5485
+ const timeout = setTimeout(resolve, maxDelay);
5486
+ // @ts-expect-error
5487
+ disposables.push(() => {
5488
+ clearTimeout(timeout);
5489
+ });
5490
+ }), new Promise(resolve => {
5491
+ const callback = mutations => {
5492
+ resolve(undefined);
5493
+ };
5494
+ const observer = new MutationObserver(callback);
5495
+ observer.observe(document.body, {
5496
+ childList: true,
5497
+ attributes: true,
5498
+ characterData: true,
5499
+ subtree: true,
5500
+ attributeOldValue: true,
5501
+ characterDataOldValue: true
5502
+ });
5503
+ // @ts-expect-error
5504
+ disposables.push(() => {
5505
+ observer.disconnect();
5506
+ });
5507
+ })]);
5508
+ for (const disposable of disposables) {
5509
+ // @ts-expect-error
5510
+ disposable();
5511
+ }
5512
+ };
5513
+
5463
5514
  // TODO this should also come in via options
5464
5515
  const maxTimeout$1 = 2000;
5465
5516
  const performAction2 = async (locator, fnName, options) => {
@@ -5967,11 +6018,11 @@ const ViewletActivityBarEvents = {
5967
6018
  returnValue: returnValue$5
5968
6019
  };
5969
6020
 
5970
- const Events$8 = ViewletActivityBarEvents;
6021
+ const Events$4 = ViewletActivityBarEvents;
5971
6022
 
5972
6023
  const ViewletActivityBar = {
5973
6024
  __proto__: null,
5974
- Events: Events$8
6025
+ Events: Events$4
5975
6026
  };
5976
6027
 
5977
6028
  const handleAudioError = event => {
@@ -5994,11 +6045,11 @@ const ViewletAudioEvents = {
5994
6045
  handleAudioError
5995
6046
  };
5996
6047
 
5997
- const Events$7 = ViewletAudioEvents;
6048
+ const Events$3 = ViewletAudioEvents;
5998
6049
 
5999
6050
  const ViewletAudio = {
6000
6051
  __proto__: null,
6001
- Events: Events$7
6052
+ Events: Events$3
6002
6053
  };
6003
6054
 
6004
6055
  const create$t = () => {
@@ -7651,7 +7702,6 @@ const ViewletLocationsEvents = {
7651
7702
  handleLocationsMouseDown
7652
7703
  };
7653
7704
 
7654
- const Events$6 = ViewletLocationsEvents;
7655
7705
  const setFocusedIndex$2 = (state, oldFocusedIndex, newFocusedIndex) => {
7656
7706
  const {
7657
7707
  $Viewlet
@@ -7686,7 +7736,7 @@ const focus$a = state => {
7686
7736
 
7687
7737
  const ViewletImplementations = {
7688
7738
  __proto__: null,
7689
- Events: Events$6,
7739
+ Events: ViewletLocationsEvents,
7690
7740
  focus: focus$a,
7691
7741
  handleError: handleError$2,
7692
7742
  setFocusedIndex: setFocusedIndex$2
@@ -7780,11 +7830,11 @@ const setColumnWidths = (state, columnWidth1, columnWidth2, columnWidth3) => {
7780
7830
  $Resizer1.style.left = `${paddingLeft + columnWidth1}px`;
7781
7831
  $Resizer2.style.left = `${paddingLeft + columnWidth1 + columnWidth2}px`;
7782
7832
  };
7783
- const Events$5 = ViewletkeyBindingsEvents;
7833
+ const Events$2 = ViewletkeyBindingsEvents;
7784
7834
 
7785
7835
  const ViewletKeyBindings = {
7786
7836
  __proto__: null,
7787
- Events: Events$5,
7837
+ Events: Events$2,
7788
7838
  setColumnWidths,
7789
7839
  setScrollBar: setScrollBar$2,
7790
7840
  setSize,
@@ -8548,7 +8598,7 @@ const getUid = () => {
8548
8598
  if (!$Main) {
8549
8599
  return 0;
8550
8600
  }
8551
- return get$6($Main);
8601
+ return get$7($Main);
8552
8602
  };
8553
8603
  const handleTabsWheel = event => {
8554
8604
  const uid = getUid();
@@ -8955,7 +9005,7 @@ const ViewletProblems = {
8955
9005
 
8956
9006
  const ViewletReferences = {
8957
9007
  __proto__: null,
8958
- Events: Events$6,
9008
+ Events: ViewletLocationsEvents,
8959
9009
  focus: focus$a,
8960
9010
  handleError: handleError$2,
8961
9011
  setFocusedIndex: setFocusedIndex$2
@@ -9458,11 +9508,11 @@ const ViewletStorageEvents = {
9458
9508
  handleClick: handleClick$1
9459
9509
  };
9460
9510
 
9461
- const Events$4 = ViewletStorageEvents;
9511
+ const Events$1 = ViewletStorageEvents;
9462
9512
 
9463
9513
  const ViewletStorage = {
9464
9514
  __proto__: null,
9465
- Events: Events$4
9515
+ Events: Events$1
9466
9516
  };
9467
9517
 
9468
9518
  const handleClickTab = event => {
@@ -9567,24 +9617,22 @@ const handleTitleBarButtonsClick = event => {
9567
9617
  };
9568
9618
  const returnValue$1 = true;
9569
9619
 
9570
- const ViewletTitleBarButtonEvents = {
9620
+ const ViewletTitleBarButtonsEvents = {
9571
9621
  __proto__: null,
9572
9622
  handleTitleBarButtonsClick,
9573
9623
  returnValue: returnValue$1
9574
9624
  };
9575
9625
 
9576
- const Events$3 = ViewletTitleBarButtonEvents;
9577
-
9578
9626
  const ViewletTitleBarButtons = {
9579
9627
  __proto__: null,
9580
- Events: Events$3
9628
+ Events: ViewletTitleBarButtonsEvents
9581
9629
  };
9582
9630
 
9583
- const Events$2 = {};
9631
+ const Events = {};
9584
9632
 
9585
9633
  const ViewletTitleBarIcon = {
9586
9634
  __proto__: null,
9587
- Events: Events$2
9635
+ Events
9588
9636
  };
9589
9637
 
9590
9638
  const isInsideTitleBarMenu = $Element => {
@@ -9916,11 +9964,10 @@ const setMenus = (state, changes, uid) => {
9916
9964
  }
9917
9965
  }
9918
9966
  };
9919
- const Events$1 = ViewletTitleBarMenuBarEvents;
9920
9967
 
9921
9968
  const ViewletTitleBarMenuBar = {
9922
9969
  __proto__: null,
9923
- Events: Events$1,
9970
+ Events: ViewletTitleBarMenuBarEvents,
9924
9971
  closeMenu,
9925
9972
  dispose: dispose$3,
9926
9973
  focus: focus$2,
@@ -9972,11 +10019,9 @@ const ViewletVideoEvents = {
9972
10019
  handleVideoError
9973
10020
  };
9974
10021
 
9975
- const Events = ViewletVideoEvents;
9976
-
9977
10022
  const ViewletVideo = {
9978
10023
  __proto__: null,
9979
- Events
10024
+ Events: ViewletVideoEvents
9980
10025
  };
9981
10026
 
9982
10027
  const handleClickAt = event => {
@@ -10393,7 +10438,7 @@ const setDom2 = (viewletId, dom) => {
10393
10438
  let uid;
10394
10439
  if ($Viewlet) {
10395
10440
  try {
10396
- uid = get$6($Viewlet);
10441
+ uid = get$7($Viewlet);
10397
10442
  } catch {}
10398
10443
  }
10399
10444
  // TODO optimize rendering with virtual dom diffing
package/package.json CHANGED
@@ -1,27 +1,17 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "11.5.0",
3
+ "version": "12.0.0",
4
4
  "description": "",
5
- "main": "dist/rendererProcessMain.js",
6
- "type": "module",
7
- "directories": {
8
- "test": "test"
9
- },
10
5
  "keywords": [
11
6
  "lvce-editor",
12
7
  "renderer-process"
13
8
  ],
14
- "author": "Lvce Editor",
15
- "license": "MIT",
16
9
  "repository": {
17
10
  "type": "git",
18
11
  "url": "https://github.com/lvce-editor/renderer-process.git"
19
12
  },
20
- "nodemonConfig": {
21
- "watch": [
22
- "src"
23
- ],
24
- "ext": "ts,js",
25
- "exec": "node scripts/build.js"
26
- }
13
+ "license": "MIT",
14
+ "author": "Lvce Editor",
15
+ "type": "module",
16
+ "main": "dist/rendererProcessMain.js"
27
17
  }