@wailsio/runtime 3.0.0-alpha.75 → 3.0.0-alpha.77
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/dist/event_types.js +4 -1
- package/dist/window.js +7 -0
- package/package.json +1 -1
- package/types/event_types.d.ts +4 -1
- package/types/window.d.ts +4 -0
package/dist/event_types.js
CHANGED
|
@@ -198,7 +198,10 @@ export const Types = Object.freeze({
|
|
|
198
198
|
WindowDidResize: "linux:WindowDidResize",
|
|
199
199
|
WindowFocusIn: "linux:WindowFocusIn",
|
|
200
200
|
WindowFocusOut: "linux:WindowFocusOut",
|
|
201
|
-
|
|
201
|
+
WindowLoadStarted: "linux:WindowLoadStarted",
|
|
202
|
+
WindowLoadRedirected: "linux:WindowLoadRedirected",
|
|
203
|
+
WindowLoadCommitted: "linux:WindowLoadCommitted",
|
|
204
|
+
WindowLoadFinished: "linux:WindowLoadFinished",
|
|
202
205
|
}),
|
|
203
206
|
iOS: Object.freeze({
|
|
204
207
|
ApplicationDidBecomeActive: "ios:ApplicationDidBecomeActive",
|
package/dist/window.js
CHANGED
|
@@ -63,6 +63,7 @@ const ZoomOutMethod = 47;
|
|
|
63
63
|
const ZoomResetMethod = 48;
|
|
64
64
|
const SnapAssistMethod = 49;
|
|
65
65
|
const WindowDropZoneDropped = 50;
|
|
66
|
+
const PrintMethod = 51;
|
|
66
67
|
function getDropzoneElement(element) {
|
|
67
68
|
if (!element) {
|
|
68
69
|
return null;
|
|
@@ -491,6 +492,12 @@ class Window {
|
|
|
491
492
|
SnapAssist() {
|
|
492
493
|
return this[callerSym](SnapAssistMethod);
|
|
493
494
|
}
|
|
495
|
+
/**
|
|
496
|
+
* Opens the print dialog for the window.
|
|
497
|
+
*/
|
|
498
|
+
Print() {
|
|
499
|
+
return this[callerSym](PrintMethod);
|
|
500
|
+
}
|
|
494
501
|
}
|
|
495
502
|
/**
|
|
496
503
|
* The window within which the script is running.
|
package/package.json
CHANGED
package/types/event_types.d.ts
CHANGED
|
@@ -187,7 +187,10 @@ export declare const Types: Readonly<{
|
|
|
187
187
|
WindowDidResize: "linux:WindowDidResize";
|
|
188
188
|
WindowFocusIn: "linux:WindowFocusIn";
|
|
189
189
|
WindowFocusOut: "linux:WindowFocusOut";
|
|
190
|
-
|
|
190
|
+
WindowLoadStarted: "linux:WindowLoadStarted";
|
|
191
|
+
WindowLoadRedirected: "linux:WindowLoadRedirected";
|
|
192
|
+
WindowLoadCommitted: "linux:WindowLoadCommitted";
|
|
193
|
+
WindowLoadFinished: "linux:WindowLoadFinished";
|
|
191
194
|
}>;
|
|
192
195
|
iOS: Readonly<{
|
|
193
196
|
ApplicationDidBecomeActive: "ios:ApplicationDidBecomeActive";
|
package/types/window.d.ts
CHANGED
|
@@ -298,6 +298,10 @@ declare class Window {
|
|
|
298
298
|
*/
|
|
299
299
|
HandlePlatformFileDrop(filenames: string[], x: number, y: number): void;
|
|
300
300
|
SnapAssist(): Promise<void>;
|
|
301
|
+
/**
|
|
302
|
+
* Opens the print dialog for the window.
|
|
303
|
+
*/
|
|
304
|
+
Print(): Promise<void>;
|
|
301
305
|
}
|
|
302
306
|
/**
|
|
303
307
|
* The window within which the script is running.
|