@lvce-editor/renderer-process 30.50.0 → 30.51.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.
@@ -3,6 +3,15 @@ const play = async src => {
3
3
  await audio.play();
4
4
  };
5
5
 
6
+ const fileSaved = (applicationId, uri) => {
7
+ window.dispatchEvent(new CustomEvent('lvce-file-saved', {
8
+ detail: {
9
+ applicationId,
10
+ uri
11
+ }
12
+ }));
13
+ };
14
+
6
15
  class AssertionError extends Error {
7
16
  constructor(message) {
8
17
  super(message);
@@ -7915,6 +7924,9 @@ const handleSashDoubleClick = event => {
7915
7924
  handleSashDoubleClick$1(id);
7916
7925
  };
7917
7926
  const handleResize = () => {
7927
+ if (new URL(location.href).searchParams.has('applicationHost')) {
7928
+ return;
7929
+ }
7918
7930
  const {
7919
7931
  innerHeight,
7920
7932
  innerWidth
@@ -10500,6 +10512,7 @@ const readMicLevels = options => {
10500
10512
  };
10501
10513
 
10502
10514
  const commandMap = {
10515
+ 'ApplicationHost.fileSaved': fileSaved,
10503
10516
  'Audio.play': play,
10504
10517
  'ClipBoard.execCopy': execCopy,
10505
10518
  'ClipBoard.read': read,
@@ -11089,7 +11102,7 @@ const main = async () => {
11089
11102
  setIpc(ViewletEventRouter);
11090
11103
  };
11091
11104
 
11092
- main();
11105
+ const ready = main();
11093
11106
 
11094
11107
  const defaultColumns = 80;
11095
11108
  const defaultRows = 24;
@@ -11339,3 +11352,5 @@ const AriaAlert = {
11339
11352
  __proto__: null,
11340
11353
  alert: alert$1
11341
11354
  };
11355
+
11356
+ export { invoke$1 as executeCommand, ready };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.50.0",
3
+ "version": "30.51.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"