@wailsio/runtime 3.0.0-alpha.18 → 3.0.0-alpha.20

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wailsio/runtime",
3
- "version": "3.0.0-alpha.18",
3
+ "version": "3.0.0-alpha.20",
4
4
  "description": "Wails Runtime",
5
5
  "main": "src/index.js",
6
6
  "types": "types/index.d.ts",
package/src/drag.js CHANGED
@@ -21,6 +21,7 @@ window.addEventListener('mousedown', onMouseDown);
21
21
  window.addEventListener('mousemove', onMouseMove);
22
22
  window.addEventListener('mouseup', onMouseUp);
23
23
 
24
+
24
25
  let shouldDrag = false;
25
26
  let resizeEdge = null;
26
27
  let resizable = false;
package/src/index.js CHANGED
@@ -15,6 +15,7 @@ window._wails = window._wails || {};
15
15
  import * as Application from "./application";
16
16
  import * as Browser from "./browser";
17
17
  import * as Clipboard from "./clipboard";
18
+ import * as ContextMenu from "./contextmenu";
18
19
  import * as Flags from "./flags";
19
20
  import * as Screens from "./screens";
20
21
  import * as System from "./system";
@@ -23,6 +24,7 @@ import * as WML from './wml';
23
24
  import * as Events from "./events";
24
25
  import * as Dialogs from "./dialogs";
25
26
  import * as Call from "./calls";
27
+ import * as Drag from "./drag";
26
28
  import {invoke} from "./system";
27
29
 
28
30
 
package/src/wml.js CHANGED
@@ -3,7 +3,6 @@ import {Emit, WailsEvent} from "./events";
3
3
  import {Question} from "./dialogs";
4
4
  import {Get} from "./window";
5
5
  import {OpenURL} from "./browser";
6
- import {debugLog} from "./log";
7
6
 
8
7
  /**
9
8
  * Sends an event with the given name and optional data.
@@ -145,9 +144,6 @@ function addWMLOpenBrowserListener() {
145
144
  * @return {void}
146
145
  */
147
146
  export function Reload() {
148
- if(DEBUG) {
149
- debugLog("Reloading WML");
150
- }
151
147
  addWMLEventListeners();
152
148
  addWMLWindowListeners();
153
149
  addWMLOpenBrowserListener();
package/types/events.d.ts CHANGED
@@ -51,9 +51,6 @@ export const Types: {
51
51
  SystemThemeChanged: string;
52
52
  APMPowerStatusChange: string;
53
53
  APMSuspend: string;
54
- /**
55
- * @typedef {import("./types").WailsEvent} WailsEvent
56
- */
57
54
  APMResumeAutomatic: string;
58
55
  APMResumeSuspend: string;
59
56
  APMPowerSettingChange: string;
@@ -110,12 +107,7 @@ export const Types: {
110
107
  WindowDidChangeEffectiveAppearance: string;
111
108
  WindowDidChangeOcclusionState: string;
112
109
  WindowDidChangeOrderingMode: string;
113
- WindowDidChangeScreen: string; /**
114
- * Removes the specified listener from the event listeners collection.
115
- * If all listeners for the event are removed, the event key is deleted from the collection.
116
- *
117
- * @param {Object} listener - The listener to be removed.
118
- */
110
+ WindowDidChangeScreen: string;
119
111
  WindowDidChangeScreenParameters: string;
120
112
  WindowDidChangeScreenProfile: string;
121
113
  WindowDidChangeScreenSpace: string;