@wailsio/runtime 3.0.0-alpha.65 → 3.0.0-alpha.66
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/{src → dist}/application.js +2 -16
- package/dist/browser.js +20 -0
- package/dist/callable.js +144 -0
- package/dist/calls.js +194 -0
- package/dist/cancellable.js +792 -0
- package/dist/clipboard.js +30 -0
- package/dist/contextmenu.js +80 -0
- package/{src → dist}/create.js +2 -33
- package/dist/dialogs.js +134 -0
- package/dist/drag.js +222 -0
- package/dist/event_types.js +229 -0
- package/dist/events.js +101 -0
- package/dist/flags.js +23 -0
- package/dist/index.js +38 -0
- package/dist/listener.js +44 -0
- package/{src → dist}/nanoid.js +7 -11
- package/dist/runtime.js +63 -0
- package/dist/screens.js +38 -0
- package/dist/system.js +116 -0
- package/{src → dist}/utils.js +29 -20
- package/dist/window.js +438 -0
- package/{src → dist}/wml.js +51 -122
- package/package.json +43 -19
- package/types/application.d.ts +3 -10
- package/types/browser.d.ts +4 -4
- package/types/callable.d.ts +3 -0
- package/types/calls.d.ts +43 -49
- package/types/cancellable.d.ts +434 -0
- package/types/clipboard.d.ts +6 -5
- package/types/contextmenu.d.ts +1 -0
- package/types/create.d.ts +6 -27
- package/types/dialogs.d.ts +99 -143
- package/types/drag.d.ts +1 -0
- package/types/event_types.d.ts +218 -219
- package/types/events.d.ts +45 -250
- package/types/flags.d.ts +3 -3
- package/types/index.d.ts +16 -14
- package/types/listener.d.ts +9 -0
- package/types/nanoid.d.ts +1 -1
- package/types/runtime.d.ts +18 -26
- package/types/screens.d.ts +42 -76
- package/types/system.d.ts +50 -79
- package/types/utils.d.ts +15 -8
- package/types/window.d.ts +110 -225
- package/types/wml.d.ts +2 -6
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -22
- package/docs/assets/icons.js +0 -15
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/main.js +0 -59
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1415
- package/docs/classes/Call.RuntimeError.html +0 -11
- package/docs/classes/Events.WailsEvent.html +0 -4
- package/docs/functions/Application.Hide.html +0 -2
- package/docs/functions/Application.Quit.html +0 -2
- package/docs/functions/Application.Show.html +0 -2
- package/docs/functions/Browser.OpenURL.html +0 -3
- package/docs/functions/Call.ByID.html +0 -8
- package/docs/functions/Call.ByName.html +0 -6
- package/docs/functions/Call.Call.html +0 -11
- package/docs/functions/Clipboard.SetText.html +0 -6
- package/docs/functions/Clipboard.Text.html +0 -3
- package/docs/functions/Create.Any.html +0 -2
- package/docs/functions/Create.Array.html +0 -4
- package/docs/functions/Create.ByteSlice.html +0 -3
- package/docs/functions/Create.Map.html +0 -4
- package/docs/functions/Create.Nullable.html +0 -3
- package/docs/functions/Create.Struct.html +0 -3
- package/docs/functions/Dialogs.Error.html +0 -5
- package/docs/functions/Dialogs.Info.html +0 -5
- package/docs/functions/Dialogs.OpenFile.html +0 -3
- package/docs/functions/Dialogs.Question.html +0 -5
- package/docs/functions/Dialogs.SaveFile.html +0 -3
- package/docs/functions/Dialogs.Warning.html +0 -5
- package/docs/functions/Events.Emit.html +0 -6
- package/docs/functions/Events.Off.html +0 -4
- package/docs/functions/Events.OffAll.html +0 -3
- package/docs/functions/Events.On.html +0 -7
- package/docs/functions/Events.OnMultiple.html +0 -8
- package/docs/functions/Events.Once.html +0 -7
- package/docs/functions/Events.setup.html +0 -1
- package/docs/functions/Flags.GetFlag.html +0 -6
- package/docs/functions/Screens.GetAll.html +0 -3
- package/docs/functions/Screens.GetCurrent.html +0 -3
- package/docs/functions/Screens.GetPrimary.html +0 -3
- package/docs/functions/System.Capabilities.html +0 -4
- package/docs/functions/System.Environment.html +0 -5
- package/docs/functions/System.IsAMD64.html +0 -3
- package/docs/functions/System.IsARM.html +0 -3
- package/docs/functions/System.IsARM64.html +0 -5
- package/docs/functions/System.IsDarkMode.html +0 -5
- package/docs/functions/System.IsDebug.html +0 -1
- package/docs/functions/System.IsLinux.html +0 -3
- package/docs/functions/System.IsMac.html +0 -3
- package/docs/functions/System.IsWindows.html +0 -3
- package/docs/functions/System.invoke.html +0 -1
- package/docs/functions/WML.Enable.html +0 -2
- package/docs/functions/WML.Reload.html +0 -2
- package/docs/functions/init.html +0 -1
- package/docs/index.html +0 -5
- package/docs/interfaces/Call.CallOptions.html +0 -7
- package/docs/interfaces/Dialogs.Button.html +0 -7
- package/docs/interfaces/Dialogs.FileFilter.html +0 -5
- package/docs/interfaces/Dialogs.MessageDialogOptions.html +0 -9
- package/docs/interfaces/Dialogs.OpenFileDialogOptions.html +0 -33
- package/docs/interfaces/Dialogs.SaveFileDialogOptions.html +0 -35
- package/docs/interfaces/Screens.Rect.html +0 -9
- package/docs/interfaces/Screens.Screen.html +0 -25
- package/docs/interfaces/Screens.Size.html +0 -5
- package/docs/interfaces/System.EnvironmentInfo.html +0 -11
- package/docs/interfaces/System.OSInfo.html +0 -9
- package/docs/modules/Application.html +0 -4
- package/docs/modules/Browser.html +0 -2
- package/docs/modules/Call.html +0 -6
- package/docs/modules/Clipboard.html +0 -3
- package/docs/modules/Create.html +0 -7
- package/docs/modules/Dialogs.html +0 -12
- package/docs/modules/Events.html +0 -10
- package/docs/modules/Flags.html +0 -2
- package/docs/modules/Screens.html +0 -7
- package/docs/modules/System.html +0 -14
- package/docs/modules/WML.html +0 -3
- package/docs/modules.html +0 -14
- package/docs/variables/Events.Types.html +0 -1
- package/docs/variables/Window.html +0 -2
- package/src/browser.js +0 -24
- package/src/calls.js +0 -221
- package/src/clipboard.js +0 -35
- package/src/contextmenu.js +0 -97
- package/src/dialogs.js +0 -200
- package/src/drag.js +0 -119
- package/src/event_types.js +0 -219
- package/src/events.js +0 -140
- package/src/flags.js +0 -25
- package/src/index.js +0 -60
- package/src/runtime.js +0 -92
- package/src/screens.js +0 -71
- package/src/system.js +0 -143
- package/src/window.js +0 -638
- package/tsconfig.json +0 -20
package/types/system.d.ts
CHANGED
|
@@ -1,112 +1,83 @@
|
|
|
1
|
-
export function invoke(msg: any):
|
|
1
|
+
export declare function invoke(msg: any): void;
|
|
2
2
|
/**
|
|
3
|
-
* @function
|
|
4
3
|
* Retrieves the system dark mode status.
|
|
5
|
-
*
|
|
4
|
+
*
|
|
5
|
+
* @returns A promise that resolves to a boolean value indicating if the system is in dark mode.
|
|
6
6
|
*/
|
|
7
|
-
export function IsDarkMode(): Promise<boolean>;
|
|
7
|
+
export declare function IsDarkMode(): Promise<boolean>;
|
|
8
8
|
/**
|
|
9
9
|
* Fetches the capabilities of the application from the server.
|
|
10
10
|
*
|
|
11
|
-
* @
|
|
12
|
-
* @function Capabilities
|
|
13
|
-
* @returns {Promise<Object>} A promise that resolves to an object containing the capabilities.
|
|
14
|
-
*/
|
|
15
|
-
export function Capabilities(): Promise<any>;
|
|
16
|
-
/**
|
|
17
|
-
* @typedef {Object} OSInfo
|
|
18
|
-
* @property {string} Branding - The branding of the OS.
|
|
19
|
-
* @property {string} ID - The ID of the OS.
|
|
20
|
-
* @property {string} Name - The name of the OS.
|
|
21
|
-
* @property {string} Version - The version of the OS.
|
|
22
|
-
*/
|
|
23
|
-
/**
|
|
24
|
-
* @typedef {Object} EnvironmentInfo
|
|
25
|
-
* @property {string} Arch - The architecture of the system.
|
|
26
|
-
* @property {boolean} Debug - True if the application is running in debug mode, otherwise false.
|
|
27
|
-
* @property {string} OS - The operating system in use.
|
|
28
|
-
* @property {OSInfo} OSInfo - Details of the operating system.
|
|
29
|
-
* @property {Object} PlatformInfo - Additional platform information.
|
|
11
|
+
* @returns A promise that resolves to an object containing the capabilities.
|
|
30
12
|
*/
|
|
13
|
+
export declare function Capabilities(): Promise<Record<string, any>>;
|
|
14
|
+
export interface OSInfo {
|
|
15
|
+
/** The branding of the OS. */
|
|
16
|
+
Branding: string;
|
|
17
|
+
/** The ID of the OS. */
|
|
18
|
+
ID: string;
|
|
19
|
+
/** The name of the OS. */
|
|
20
|
+
Name: string;
|
|
21
|
+
/** The version of the OS. */
|
|
22
|
+
Version: string;
|
|
23
|
+
}
|
|
24
|
+
export interface EnvironmentInfo {
|
|
25
|
+
/** The architecture of the system. */
|
|
26
|
+
Arch: string;
|
|
27
|
+
/** True if the application is running in debug mode, otherwise false. */
|
|
28
|
+
Debug: boolean;
|
|
29
|
+
/** The operating system in use. */
|
|
30
|
+
OS: string;
|
|
31
|
+
/** Details of the operating system. */
|
|
32
|
+
OSInfo: OSInfo;
|
|
33
|
+
/** Additional platform information. */
|
|
34
|
+
PlatformInfo: Record<string, any>;
|
|
35
|
+
}
|
|
31
36
|
/**
|
|
32
|
-
* @function
|
|
33
37
|
* Retrieves environment details.
|
|
34
|
-
*
|
|
38
|
+
*
|
|
39
|
+
* @returns A promise that resolves to an object containing OS and system architecture.
|
|
35
40
|
*/
|
|
36
|
-
export function Environment(): Promise<EnvironmentInfo>;
|
|
41
|
+
export declare function Environment(): Promise<EnvironmentInfo>;
|
|
37
42
|
/**
|
|
38
43
|
* Checks if the current operating system is Windows.
|
|
39
44
|
*
|
|
40
|
-
* @return
|
|
45
|
+
* @return True if the operating system is Windows, otherwise false.
|
|
41
46
|
*/
|
|
42
|
-
export function IsWindows(): boolean;
|
|
47
|
+
export declare function IsWindows(): boolean;
|
|
43
48
|
/**
|
|
44
49
|
* Checks if the current operating system is Linux.
|
|
45
50
|
*
|
|
46
|
-
* @returns
|
|
51
|
+
* @returns Returns true if the current operating system is Linux, false otherwise.
|
|
47
52
|
*/
|
|
48
|
-
export function IsLinux(): boolean;
|
|
53
|
+
export declare function IsLinux(): boolean;
|
|
49
54
|
/**
|
|
50
55
|
* Checks if the current environment is a macOS operating system.
|
|
51
56
|
*
|
|
52
|
-
* @returns
|
|
57
|
+
* @returns True if the environment is macOS, false otherwise.
|
|
53
58
|
*/
|
|
54
|
-
export function IsMac(): boolean;
|
|
59
|
+
export declare function IsMac(): boolean;
|
|
55
60
|
/**
|
|
56
61
|
* Checks if the current environment architecture is AMD64.
|
|
57
|
-
*
|
|
62
|
+
*
|
|
63
|
+
* @returns True if the current environment architecture is AMD64, false otherwise.
|
|
58
64
|
*/
|
|
59
|
-
export function IsAMD64(): boolean;
|
|
65
|
+
export declare function IsAMD64(): boolean;
|
|
60
66
|
/**
|
|
61
67
|
* Checks if the current architecture is ARM.
|
|
62
68
|
*
|
|
63
|
-
* @returns
|
|
69
|
+
* @returns True if the current architecture is ARM, false otherwise.
|
|
64
70
|
*/
|
|
65
|
-
export function IsARM(): boolean;
|
|
71
|
+
export declare function IsARM(): boolean;
|
|
66
72
|
/**
|
|
67
73
|
* Checks if the current environment is ARM64 architecture.
|
|
68
74
|
*
|
|
69
|
-
* @returns
|
|
75
|
+
* @returns Returns true if the environment is ARM64 architecture, otherwise returns false.
|
|
70
76
|
*/
|
|
71
|
-
export function IsARM64(): boolean;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* - The ID of the OS.
|
|
80
|
-
*/
|
|
81
|
-
ID: string;
|
|
82
|
-
/**
|
|
83
|
-
* - The name of the OS.
|
|
84
|
-
*/
|
|
85
|
-
Name: string;
|
|
86
|
-
/**
|
|
87
|
-
* - The version of the OS.
|
|
88
|
-
*/
|
|
89
|
-
Version: string;
|
|
90
|
-
};
|
|
91
|
-
export type EnvironmentInfo = {
|
|
92
|
-
/**
|
|
93
|
-
* - The architecture of the system.
|
|
94
|
-
*/
|
|
95
|
-
Arch: string;
|
|
96
|
-
/**
|
|
97
|
-
* - True if the application is running in debug mode, otherwise false.
|
|
98
|
-
*/
|
|
99
|
-
Debug: boolean;
|
|
100
|
-
/**
|
|
101
|
-
* - The operating system in use.
|
|
102
|
-
*/
|
|
103
|
-
OS: string;
|
|
104
|
-
/**
|
|
105
|
-
* - Details of the operating system.
|
|
106
|
-
*/
|
|
107
|
-
OSInfo: OSInfo;
|
|
108
|
-
/**
|
|
109
|
-
* - Additional platform information.
|
|
110
|
-
*/
|
|
111
|
-
PlatformInfo: any;
|
|
112
|
-
};
|
|
77
|
+
export declare function IsARM64(): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Reports whether the app is being run in debug mode.
|
|
80
|
+
*
|
|
81
|
+
* @returns True if the app is being run in debug mode.
|
|
82
|
+
*/
|
|
83
|
+
export declare function IsDebug(): boolean;
|
package/types/utils.d.ts
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Logs a message to the console with custom formatting.
|
|
3
|
-
*
|
|
4
|
-
* @
|
|
3
|
+
*
|
|
4
|
+
* @param message - The message to be logged.
|
|
5
|
+
*/
|
|
6
|
+
export declare function debugLog(message: any): void;
|
|
7
|
+
/**
|
|
8
|
+
* Checks whether the webview supports the {@link MouseEvent#buttons} property.
|
|
9
|
+
* Looking at you macOS High Sierra!
|
|
5
10
|
*/
|
|
6
|
-
export function
|
|
11
|
+
export declare function canTrackButtons(): boolean;
|
|
7
12
|
/**
|
|
8
13
|
* Checks whether the browser supports removing listeners by triggering an AbortSignal
|
|
9
|
-
* (see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#signal)
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
* (see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#signal).
|
|
15
|
+
*/
|
|
16
|
+
export declare function canAbortListeners(): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Resolves the closest HTMLElement ancestor of an event's target.
|
|
12
19
|
*/
|
|
13
|
-
export function
|
|
14
|
-
export function whenReady(callback:
|
|
20
|
+
export declare function eventTarget(event: Event): HTMLElement;
|
|
21
|
+
export declare function whenReady(callback: () => void): void;
|