@wailsio/runtime 3.0.0-alpha.40 → 3.0.0-alpha.42

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.
Files changed (84) hide show
  1. package/docs/assets/navigation.js +1 -1
  2. package/docs/assets/search.js +1 -1
  3. package/docs/classes/Events.WailsEvent.html +2 -2
  4. package/docs/functions/Application.Hide.html +1 -1
  5. package/docs/functions/Application.Quit.html +1 -1
  6. package/docs/functions/Application.Show.html +1 -1
  7. package/docs/functions/Browser.OpenURL.html +1 -1
  8. package/docs/functions/Call.ByID.html +1 -1
  9. package/docs/functions/Call.ByName.html +3 -3
  10. package/docs/functions/Call.Call.html +1 -1
  11. package/docs/functions/Call.Plugin.html +1 -1
  12. package/docs/functions/Clipboard.SetText.html +1 -1
  13. package/docs/functions/Clipboard.Text.html +1 -1
  14. package/docs/functions/Create.Any.html +2 -0
  15. package/docs/functions/Create.Array.html +4 -0
  16. package/docs/functions/Create.ByteSlice.html +3 -0
  17. package/docs/functions/Create.Map.html +4 -0
  18. package/docs/functions/Create.Nullable.html +3 -0
  19. package/docs/functions/Create.Struct.html +3 -0
  20. package/docs/functions/Dialogs.Error.html +1 -1
  21. package/docs/functions/Dialogs.Info.html +1 -1
  22. package/docs/functions/Dialogs.OpenFile.html +1 -1
  23. package/docs/functions/Dialogs.Question.html +1 -1
  24. package/docs/functions/Dialogs.SaveFile.html +1 -1
  25. package/docs/functions/Dialogs.Warning.html +1 -1
  26. package/docs/functions/Events.Emit.html +1 -1
  27. package/docs/functions/Events.Off.html +1 -1
  28. package/docs/functions/Events.OffAll.html +1 -1
  29. package/docs/functions/Events.On.html +1 -1
  30. package/docs/functions/Events.OnMultiple.html +1 -1
  31. package/docs/functions/Events.Once.html +1 -1
  32. package/docs/functions/Events.setup.html +1 -1
  33. package/docs/functions/Flags.GetFlag.html +1 -1
  34. package/docs/functions/Screens.GetAll.html +1 -1
  35. package/docs/functions/Screens.GetCurrent.html +1 -1
  36. package/docs/functions/Screens.GetPrimary.html +1 -1
  37. package/docs/functions/System.Capabilities.html +1 -1
  38. package/docs/functions/System.Environment.html +1 -1
  39. package/docs/functions/System.IsAMD64.html +1 -1
  40. package/docs/functions/System.IsARM.html +1 -1
  41. package/docs/functions/System.IsARM64.html +1 -1
  42. package/docs/functions/System.IsDarkMode.html +1 -1
  43. package/docs/functions/System.IsDebug.html +1 -1
  44. package/docs/functions/System.IsLinux.html +1 -1
  45. package/docs/functions/System.IsMac.html +1 -1
  46. package/docs/functions/System.IsWindows.html +1 -1
  47. package/docs/functions/System.invoke.html +1 -1
  48. package/docs/functions/WML.Enable.html +1 -1
  49. package/docs/functions/WML.Reload.html +1 -1
  50. package/docs/functions/init.html +1 -0
  51. package/docs/interfaces/Dialogs.Button.html +4 -4
  52. package/docs/interfaces/Dialogs.FileFilter.html +3 -3
  53. package/docs/interfaces/Dialogs.MessageDialogOptions.html +5 -5
  54. package/docs/interfaces/Dialogs.OpenFileDialogOptions.html +17 -17
  55. package/docs/interfaces/Dialogs.SaveFileDialogOptions.html +18 -18
  56. package/docs/interfaces/Screens.Rect.html +5 -5
  57. package/docs/interfaces/Screens.Screen.html +19 -13
  58. package/docs/interfaces/Screens.Size.html +5 -5
  59. package/docs/interfaces/System.EnvironmentInfo.html +6 -6
  60. package/docs/interfaces/System.OSInfo.html +5 -5
  61. package/docs/modules/Application.html +1 -1
  62. package/docs/modules/Browser.html +1 -1
  63. package/docs/modules/Call.html +1 -1
  64. package/docs/modules/Clipboard.html +1 -1
  65. package/docs/modules/Create.html +7 -0
  66. package/docs/modules/Dialogs.html +1 -1
  67. package/docs/modules/Events.html +1 -1
  68. package/docs/modules/Flags.html +1 -1
  69. package/docs/modules/Screens.html +1 -2
  70. package/docs/modules/System.html +1 -1
  71. package/docs/modules/WML.html +1 -1
  72. package/docs/modules.html +2 -0
  73. package/docs/variables/Events.Types.html +1 -1
  74. package/docs/variables/Window.html +1 -1
  75. package/package.json +3 -3
  76. package/src/event_types.js +83 -83
  77. package/types/calls.d.ts +2 -2
  78. package/types/create.d.ts +21 -14
  79. package/types/event_types.d.ts +83 -83
  80. package/types/events.d.ts +93 -63
  81. package/types/index.d.ts +1 -0
  82. package/types/nanoid.d.ts +1 -0
  83. package/types/window.d.ts +35 -35
  84. package/docs/interfaces/Screens.Position.html +0 -5
@@ -1,2 +1,2 @@
1
1
  <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Window | @wailsio/runtime</title><meta name="description" content="Documentation for @wailsio/runtime"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@wailsio/runtime</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@wailsio/runtime</a></li><li><a href="Window.html">Window</a></li></ul><h1>Variable Window<code class="tsd-tag ts-flagConst">Const</code> </h1></div><div class="tsd-signature"><span class="tsd-kind-variable">Window</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Window</span><span class="tsd-signature-symbol"> = ...</span></div><div class="tsd-comment tsd-typography"><p>The window within which the script is running.</p>
2
- </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/wailsapp/wails/blob/67c493f1/v3/internal/runtime/desktop/@wailsio/runtime/src/window.js#L636">window.js:636</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@wailsio/runtime</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><div class="tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div></body></html>
2
+ </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/wailsapp/wails/blob/0f566c5b/v3/internal/runtime/desktop/@wailsio/runtime/src/window.js#L636">window.js:636</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@wailsio/runtime</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><div class="tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div></body></html>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wailsio/runtime",
3
3
  "type": "module",
4
- "version": "3.0.0-alpha.40",
4
+ "version": "3.0.0-alpha.42",
5
5
  "description": "Wails Runtime",
6
6
  "types": "types/index.d.ts",
7
7
  "exports": {
@@ -18,9 +18,9 @@
18
18
  "scripts": {
19
19
  "prebuild:types": "rimraf ./types",
20
20
  "build:types": "npx -p typescript tsc src/index.js --declaration --allowJs --emitDeclarationOnly --outDir types",
21
- "postbuild:types": "wails3 task generate:events",
21
+ "postbuild:types": "task generate:events",
22
22
  "build:docs": "npx typedoc ./src/index.js",
23
- "build:docs:md": "npx typedoc --plugin typedoc-plugin-markdown --namedAnchors true --hideBreadcrumbs true --out ../../../../../../old_mkdocs/docs/en/api/js ./src/index.js"
23
+ "build:docs:md": "npx typedoc ./src/index.js"
24
24
  },
25
25
  "author": "The Wails Team",
26
26
  "license": "MIT",
@@ -1,50 +1,50 @@
1
1
 
2
2
  export const EventTypes = {
3
3
  Windows: {
4
- SystemThemeChanged: "windows:SystemThemeChanged",
4
+ APMPowerSettingChange: "windows:APMPowerSettingChange",
5
5
  APMPowerStatusChange: "windows:APMPowerStatusChange",
6
- APMSuspend: "windows:APMSuspend",
7
6
  APMResumeAutomatic: "windows:APMResumeAutomatic",
8
7
  APMResumeSuspend: "windows:APMResumeSuspend",
9
- APMPowerSettingChange: "windows:APMPowerSettingChange",
8
+ APMSuspend: "windows:APMSuspend",
10
9
  ApplicationStarted: "windows:ApplicationStarted",
10
+ SystemThemeChanged: "windows:SystemThemeChanged",
11
11
  WebViewNavigationCompleted: "windows:WebViewNavigationCompleted",
12
- WindowInactive: "windows:WindowInactive",
13
12
  WindowActive: "windows:WindowActive",
13
+ WindowBackgroundErase: "windows:WindowBackgroundErase",
14
14
  WindowClickActive: "windows:WindowClickActive",
15
- WindowMaximise: "windows:WindowMaximise",
16
- WindowUnMaximise: "windows:WindowUnMaximise",
17
- WindowFullscreen: "windows:WindowFullscreen",
18
- WindowUnFullscreen: "windows:WindowUnFullscreen",
19
- WindowRestore: "windows:WindowRestore",
20
- WindowMinimise: "windows:WindowMinimise",
21
- WindowUnMinimise: "windows:WindowUnMinimise",
22
15
  WindowClosing: "windows:WindowClosing",
23
- WindowSetFocus: "windows:WindowSetFocus",
24
- WindowKillFocus: "windows:WindowKillFocus",
16
+ WindowDidMove: "windows:WindowDidMove",
17
+ WindowDidResize: "windows:WindowDidResize",
18
+ WindowDPIChanged: "windows:WindowDPIChanged",
25
19
  WindowDragDrop: "windows:WindowDragDrop",
26
20
  WindowDragEnter: "windows:WindowDragEnter",
27
21
  WindowDragLeave: "windows:WindowDragLeave",
28
22
  WindowDragOver: "windows:WindowDragOver",
29
- WindowDidMove: "windows:WindowDidMove",
30
- WindowDidResize: "windows:WindowDidResize",
31
- WindowShow: "windows:WindowShow",
32
- WindowHide: "windows:WindowHide",
33
- WindowStartMove: "windows:WindowStartMove",
34
23
  WindowEndMove: "windows:WindowEndMove",
35
- WindowStartResize: "windows:WindowStartResize",
36
24
  WindowEndResize: "windows:WindowEndResize",
25
+ WindowFullscreen: "windows:WindowFullscreen",
26
+ WindowHide: "windows:WindowHide",
27
+ WindowInactive: "windows:WindowInactive",
37
28
  WindowKeyDown: "windows:WindowKeyDown",
38
29
  WindowKeyUp: "windows:WindowKeyUp",
39
- WindowZOrderChanged: "windows:WindowZOrderChanged",
40
- WindowPaint: "windows:WindowPaint",
41
- WindowBackgroundErase: "windows:WindowBackgroundErase",
30
+ WindowKillFocus: "windows:WindowKillFocus",
31
+ WindowMaximise: "windows:WindowMaximise",
32
+ WindowMinimise: "windows:WindowMinimise",
42
33
  WindowNonClientHit: "windows:WindowNonClientHit",
43
34
  WindowNonClientMouseDown: "windows:WindowNonClientMouseDown",
44
- WindowNonClientMouseUp: "windows:WindowNonClientMouseUp",
45
- WindowNonClientMouseMove: "windows:WindowNonClientMouseMove",
46
35
  WindowNonClientMouseLeave: "windows:WindowNonClientMouseLeave",
47
- WindowDPIChanged: "windows:WindowDPIChanged",
36
+ WindowNonClientMouseMove: "windows:WindowNonClientMouseMove",
37
+ WindowNonClientMouseUp: "windows:WindowNonClientMouseUp",
38
+ WindowPaint: "windows:WindowPaint",
39
+ WindowRestore: "windows:WindowRestore",
40
+ WindowSetFocus: "windows:WindowSetFocus",
41
+ WindowShow: "windows:WindowShow",
42
+ WindowStartMove: "windows:WindowStartMove",
43
+ WindowStartResize: "windows:WindowStartResize",
44
+ WindowUnFullscreen: "windows:WindowUnFullscreen",
45
+ WindowUnMaximise: "windows:WindowUnMaximise",
46
+ WindowUnMinimise: "windows:WindowUnMinimise",
47
+ WindowZOrderChanged: "windows:WindowZOrderChanged",
48
48
  },
49
49
  Mac: {
50
50
  ApplicationDidBecomeActive: "mac:ApplicationDidBecomeActive",
@@ -55,11 +55,13 @@ export const EventTypes = {
55
55
  ApplicationDidChangeScreenParameters: "mac:ApplicationDidChangeScreenParameters",
56
56
  ApplicationDidChangeStatusBarFrame: "mac:ApplicationDidChangeStatusBarFrame",
57
57
  ApplicationDidChangeStatusBarOrientation: "mac:ApplicationDidChangeStatusBarOrientation",
58
+ ApplicationDidChangeTheme: "mac:ApplicationDidChangeTheme!",
58
59
  ApplicationDidFinishLaunching: "mac:ApplicationDidFinishLaunching",
59
60
  ApplicationDidHide: "mac:ApplicationDidHide",
60
61
  ApplicationDidResignActiveNotification: "mac:ApplicationDidResignActiveNotification",
61
62
  ApplicationDidUnhide: "mac:ApplicationDidUnhide",
62
63
  ApplicationDidUpdate: "mac:ApplicationDidUpdate",
64
+ ApplicationShouldHandleReopen: "mac:ApplicationShouldHandleReopen!",
63
65
  ApplicationWillBecomeActive: "mac:ApplicationWillBecomeActive",
64
66
  ApplicationWillFinishLaunching: "mac:ApplicationWillFinishLaunching",
65
67
  ApplicationWillHide: "mac:ApplicationWillHide",
@@ -67,8 +69,33 @@ export const EventTypes = {
67
69
  ApplicationWillTerminate: "mac:ApplicationWillTerminate",
68
70
  ApplicationWillUnhide: "mac:ApplicationWillUnhide",
69
71
  ApplicationWillUpdate: "mac:ApplicationWillUpdate",
70
- ApplicationDidChangeTheme: "mac:ApplicationDidChangeTheme!",
71
- ApplicationShouldHandleReopen: "mac:ApplicationShouldHandleReopen!",
72
+ MenuDidAddItem: "mac:MenuDidAddItem",
73
+ MenuDidBeginTracking: "mac:MenuDidBeginTracking",
74
+ MenuDidClose: "mac:MenuDidClose",
75
+ MenuDidDisplayItem: "mac:MenuDidDisplayItem",
76
+ MenuDidEndTracking: "mac:MenuDidEndTracking",
77
+ MenuDidHighlightItem: "mac:MenuDidHighlightItem",
78
+ MenuDidOpen: "mac:MenuDidOpen",
79
+ MenuDidPopUp: "mac:MenuDidPopUp",
80
+ MenuDidRemoveItem: "mac:MenuDidRemoveItem",
81
+ MenuDidSendAction: "mac:MenuDidSendAction",
82
+ MenuDidSendActionToItem: "mac:MenuDidSendActionToItem",
83
+ MenuDidUpdate: "mac:MenuDidUpdate",
84
+ MenuWillAddItem: "mac:MenuWillAddItem",
85
+ MenuWillBeginTracking: "mac:MenuWillBeginTracking",
86
+ MenuWillDisplayItem: "mac:MenuWillDisplayItem",
87
+ MenuWillEndTracking: "mac:MenuWillEndTracking",
88
+ MenuWillHighlightItem: "mac:MenuWillHighlightItem",
89
+ MenuWillOpen: "mac:MenuWillOpen",
90
+ MenuWillPopUp: "mac:MenuWillPopUp",
91
+ MenuWillRemoveItem: "mac:MenuWillRemoveItem",
92
+ MenuWillSendAction: "mac:MenuWillSendAction",
93
+ MenuWillSendActionToItem: "mac:MenuWillSendActionToItem",
94
+ MenuWillUpdate: "mac:MenuWillUpdate",
95
+ WebViewDidCommitNavigation: "mac:WebViewDidCommitNavigation",
96
+ WebViewDidFinishNavigation: "mac:WebViewDidFinishNavigation",
97
+ WebViewDidReceiveServerRedirectForProvisionalNavigation: "mac:WebViewDidReceiveServerRedirectForProvisionalNavigation",
98
+ WebViewDidStartProvisionalNavigation: "mac:WebViewDidStartProvisionalNavigation",
72
99
  WindowDidBecomeKey: "mac:WindowDidBecomeKey",
73
100
  WindowDidBecomeMain: "mac:WindowDidBecomeMain",
74
101
  WindowDidBeginSheet: "mac:WindowDidBeginSheet",
@@ -92,12 +119,6 @@ export const EventTypes = {
92
119
  WindowDidDeminiaturize: "mac:WindowDidDeminiaturize",
93
120
  WindowDidEndSheet: "mac:WindowDidEndSheet",
94
121
  WindowDidEnterFullScreen: "mac:WindowDidEnterFullScreen",
95
- WindowMaximise: "mac:WindowMaximise",
96
- WindowUnMaximise: "mac:WindowUnMaximise",
97
- WindowDidZoom: "mac:WindowDidZoom!",
98
- WindowZoomIn: "mac:WindowZoomIn!",
99
- WindowZoomOut: "mac:WindowZoomOut!",
100
- WindowZoomReset: "mac:WindowZoomReset!",
101
122
  WindowDidEnterVersionBrowser: "mac:WindowDidEnterVersionBrowser",
102
123
  WindowDidExitFullScreen: "mac:WindowDidExitFullScreen",
103
124
  WindowDidExitVersionBrowser: "mac:WindowDidExitVersionBrowser",
@@ -117,7 +138,15 @@ export const EventTypes = {
117
138
  WindowDidUpdateShadow: "mac:WindowDidUpdateShadow",
118
139
  WindowDidUpdateTitle: "mac:WindowDidUpdateTitle",
119
140
  WindowDidUpdateToolbar: "mac:WindowDidUpdateToolbar",
141
+ WindowDidZoom: "mac:WindowDidZoom!",
142
+ WindowFileDraggingEntered: "mac:WindowFileDraggingEntered",
143
+ WindowFileDraggingExited: "mac:WindowFileDraggingExited",
144
+ WindowFileDraggingPerformed: "mac:WindowFileDraggingPerformed",
145
+ WindowHide: "mac:WindowHide",
146
+ WindowMaximize: "mac:WindowMaximize",
120
147
  WindowShouldClose: "mac:WindowShouldClose!",
148
+ WindowShow: "mac:WindowShow",
149
+ WindowUnMaximise: "mac:WindowUnMaximise",
121
150
  WindowWillBecomeKey: "mac:WindowWillBecomeKey",
122
151
  WindowWillBecomeMain: "mac:WindowWillBecomeMain",
123
152
  WindowWillBeginSheet: "mac:WindowWillBeginSheet",
@@ -145,73 +174,44 @@ export const EventTypes = {
145
174
  WindowWillUpdateToolbar: "mac:WindowWillUpdateToolbar",
146
175
  WindowWillUpdateVisibility: "mac:WindowWillUpdateVisibility",
147
176
  WindowWillUseStandardFrame: "mac:WindowWillUseStandardFrame",
148
- MenuWillOpen: "mac:MenuWillOpen",
149
- MenuDidOpen: "mac:MenuDidOpen",
150
- MenuDidClose: "mac:MenuDidClose",
151
- MenuWillSendAction: "mac:MenuWillSendAction",
152
- MenuDidSendAction: "mac:MenuDidSendAction",
153
- MenuWillHighlightItem: "mac:MenuWillHighlightItem",
154
- MenuDidHighlightItem: "mac:MenuDidHighlightItem",
155
- MenuWillDisplayItem: "mac:MenuWillDisplayItem",
156
- MenuDidDisplayItem: "mac:MenuDidDisplayItem",
157
- MenuWillAddItem: "mac:MenuWillAddItem",
158
- MenuDidAddItem: "mac:MenuDidAddItem",
159
- MenuWillRemoveItem: "mac:MenuWillRemoveItem",
160
- MenuDidRemoveItem: "mac:MenuDidRemoveItem",
161
- MenuWillBeginTracking: "mac:MenuWillBeginTracking",
162
- MenuDidBeginTracking: "mac:MenuDidBeginTracking",
163
- MenuWillEndTracking: "mac:MenuWillEndTracking",
164
- MenuDidEndTracking: "mac:MenuDidEndTracking",
165
- MenuWillUpdate: "mac:MenuWillUpdate",
166
- MenuDidUpdate: "mac:MenuDidUpdate",
167
- MenuWillPopUp: "mac:MenuWillPopUp",
168
- MenuDidPopUp: "mac:MenuDidPopUp",
169
- MenuWillSendActionToItem: "mac:MenuWillSendActionToItem",
170
- MenuDidSendActionToItem: "mac:MenuDidSendActionToItem",
171
- WebViewDidStartProvisionalNavigation: "mac:WebViewDidStartProvisionalNavigation",
172
- WebViewDidReceiveServerRedirectForProvisionalNavigation: "mac:WebViewDidReceiveServerRedirectForProvisionalNavigation",
173
- WebViewDidFinishNavigation: "mac:WebViewDidFinishNavigation",
174
- WebViewDidCommitNavigation: "mac:WebViewDidCommitNavigation",
175
- WindowFileDraggingEntered: "mac:WindowFileDraggingEntered",
176
- WindowFileDraggingPerformed: "mac:WindowFileDraggingPerformed",
177
- WindowFileDraggingExited: "mac:WindowFileDraggingExited",
178
- WindowShow: "mac:WindowShow",
179
- WindowHide: "mac:WindowHide",
177
+ WindowZoomIn: "mac:WindowZoomIn!",
178
+ WindowZoomOut: "mac:WindowZoomOut!",
179
+ WindowZoomReset: "mac:WindowZoomReset!",
180
180
  },
181
181
  Linux: {
182
+ ApplicationStartup: "linux:ApplicationStartup",
182
183
  SystemThemeChanged: "linux:SystemThemeChanged",
183
- WindowLoadChanged: "linux:WindowLoadChanged",
184
184
  WindowDeleteEvent: "linux:WindowDeleteEvent",
185
185
  WindowDidMove: "linux:WindowDidMove",
186
186
  WindowDidResize: "linux:WindowDidResize",
187
187
  WindowFocusIn: "linux:WindowFocusIn",
188
188
  WindowFocusOut: "linux:WindowFocusOut",
189
- ApplicationStartup: "linux:ApplicationStartup",
189
+ WindowLoadChanged: "linux:WindowLoadChanged",
190
190
  },
191
191
  Common: {
192
+ ApplicationOpenedWithFile: "common:ApplicationOpenedWithFile",
192
193
  ApplicationStarted: "common:ApplicationStarted",
193
- WindowMaximise: "common:WindowMaximise",
194
- WindowUnMaximise: "common:WindowUnMaximise",
194
+ ThemeChanged: "common:ThemeChanged",
195
+ WindowClosing: "common:WindowClosing",
196
+ WindowDidMove: "common:WindowDidMove",
197
+ WindowDidResize: "common:WindowDidResize",
198
+ WindowDPIChanged: "common:WindowDPIChanged",
199
+ WindowFilesDropped: "common:WindowFilesDropped",
200
+ WindowFocus: "common:WindowFocus",
195
201
  WindowFullscreen: "common:WindowFullscreen",
196
- WindowUnFullscreen: "common:WindowUnFullscreen",
197
- WindowRestore: "common:WindowRestore",
202
+ WindowHide: "common:WindowHide",
203
+ WindowLostFocus: "common:WindowLostFocus",
204
+ WindowMaximise: "common:WindowMaximise",
198
205
  WindowMinimise: "common:WindowMinimise",
206
+ WindowRestore: "common:WindowRestore",
207
+ WindowRuntimeReady: "common:WindowRuntimeReady",
208
+ WindowShow: "common:WindowShow",
209
+ WindowUnFullscreen: "common:WindowUnFullscreen",
210
+ WindowUnMaximise: "common:WindowUnMaximise",
199
211
  WindowUnMinimise: "common:WindowUnMinimise",
200
- WindowClosing: "common:WindowClosing",
201
212
  WindowZoom: "common:WindowZoom",
202
213
  WindowZoomIn: "common:WindowZoomIn",
203
214
  WindowZoomOut: "common:WindowZoomOut",
204
215
  WindowZoomReset: "common:WindowZoomReset",
205
- WindowFocus: "common:WindowFocus",
206
- WindowLostFocus: "common:WindowLostFocus",
207
- WindowShow: "common:WindowShow",
208
- WindowHide: "common:WindowHide",
209
- WindowDPIChanged: "common:WindowDPIChanged",
210
- WindowFilesDropped: "common:WindowFilesDropped",
211
- WindowRuntimeReady: "common:WindowRuntimeReady",
212
- ThemeChanged: "common:ThemeChanged",
213
- WindowDidMove: "common:WindowDidMove",
214
- WindowDidResize: "common:WindowDidResize",
215
- ApplicationOpenedWithFile: "common:ApplicationOpenedWithFile",
216
216
  },
217
217
  };
package/types/calls.d.ts CHANGED
@@ -8,12 +8,12 @@ export function Call(options: any): any;
8
8
  /**
9
9
  * Executes a method by name.
10
10
  *
11
- * @param {string} name - The name of the method in the format 'package.struct.method'.
11
+ * @param {string} methodName - The name of the method in the format 'package.struct.method'.
12
12
  * @param {...*} args - The arguments to pass to the method.
13
13
  * @throws {Error} If the name is not a string or is not in the correct format.
14
14
  * @returns {*} The result of the method execution.
15
15
  */
16
- export function ByName(name: string, ...args: any[]): any;
16
+ export function ByName(methodName: string, ...args: any[]): any;
17
17
  /**
18
18
  * Calls a method by its ID with the specified arguments.
19
19
  *
package/types/create.d.ts CHANGED
@@ -5,41 +5,48 @@
5
5
  * @returns {T}
6
6
  */
7
7
  export function Any<T>(source: any): T;
8
+ /**
9
+ * ByteSlice is a creation function that replaces
10
+ * null strings with empty strings.
11
+ * @param {any} source
12
+ * @returns {string}
13
+ */
14
+ export function ByteSlice(source: any): string;
8
15
  /**
9
16
  * Array takes a creation function for an arbitrary type
10
17
  * and returns an in-place creation function for an array
11
18
  * whose elements are of that type.
12
19
  * @template T
13
- * @param {(any) => T} element
14
- * @returns {(any) => T[]}
20
+ * @param {(source: any) => T} element
21
+ * @returns {(source: any) => T[]}
15
22
  */
16
- export function Array<T>(element: (any: any) => T): (any: any) => T[];
23
+ export function Array<T>(element: (source: any) => T): (source: any) => T[];
17
24
  /**
18
25
  * Map takes creation functions for two arbitrary types
19
26
  * and returns an in-place creation function for an object
20
27
  * whose keys and values are of those types.
21
28
  * @template K, V
22
- * @param {(any) => K} key
23
- * @param {(any) => V} value
24
- * @returns {(any) => { [_: K]: V }}
29
+ * @param {(source: any) => K} key
30
+ * @param {(source: any) => V} value
31
+ * @returns {(source: any) => { [_: K]: V }}
25
32
  */
26
- export function Map<K, V>(key: (any: any) => K, value: (any: any) => V): (any: any) => {};
33
+ export function Map<K, V>(key: (source: any) => K, value: (source: any) => V): (source: any) => {};
27
34
  /**
28
35
  * Nullable takes a creation function for an arbitrary type
29
36
  * and returns a creation function for a nullable value of that type.
30
37
  * @template T
31
- * @param {(any) => T} element
32
- * @returns {(any) => (T | null)}
38
+ * @param {(source: any) => T} element
39
+ * @returns {(source: any) => (T | null)}
33
40
  */
34
- export function Nullable<T>(element: (any: any) => T): (any: any) => T;
41
+ export function Nullable<T>(element: (source: any) => T): (source: any) => T;
35
42
  /**
36
43
  * Struct takes an object mapping field names to creation functions
37
44
  * and returns an in-place creation function for a struct.
38
- * @template {{ [_: string]: ((any) => any) }} T
45
+ * @template {{ [_: string]: ((source: any) => any) }} T
39
46
  * @template {{ [Key in keyof T]?: ReturnType<T[Key]> }} U
40
47
  * @param {T} createField
41
- * @returns {(any) => U}
48
+ * @returns {(source: any) => U}
42
49
  */
43
50
  export function Struct<T extends {
44
- [_: string]: (any: any) => any;
45
- }, U extends { [Key in keyof T]?: ReturnType<T[Key]>; }>(createField: T): (any: any) => U;
51
+ [_: string]: (source: any) => any;
52
+ }, U extends { [Key in keyof T]?: ReturnType<T[Key]>; }>(createField: T): (source: any) => U;
@@ -1,50 +1,50 @@
1
1
 
2
2
  export declare const EventTypes: {
3
3
  Windows: {
4
- SystemThemeChanged: string,
4
+ APMPowerSettingChange: string,
5
5
  APMPowerStatusChange: string,
6
- APMSuspend: string,
7
6
  APMResumeAutomatic: string,
8
7
  APMResumeSuspend: string,
9
- APMPowerSettingChange: string,
8
+ APMSuspend: string,
10
9
  ApplicationStarted: string,
10
+ SystemThemeChanged: string,
11
11
  WebViewNavigationCompleted: string,
12
- WindowInactive: string,
13
12
  WindowActive: string,
13
+ WindowBackgroundErase: string,
14
14
  WindowClickActive: string,
15
- WindowMaximise: string,
16
- WindowUnMaximise: string,
17
- WindowFullscreen: string,
18
- WindowUnFullscreen: string,
19
- WindowRestore: string,
20
- WindowMinimise: string,
21
- WindowUnMinimise: string,
22
15
  WindowClosing: string,
23
- WindowSetFocus: string,
24
- WindowKillFocus: string,
16
+ WindowDidMove: string,
17
+ WindowDidResize: string,
18
+ WindowDPIChanged: string,
25
19
  WindowDragDrop: string,
26
20
  WindowDragEnter: string,
27
21
  WindowDragLeave: string,
28
22
  WindowDragOver: string,
29
- WindowDidMove: string,
30
- WindowDidResize: string,
31
- WindowShow: string,
32
- WindowHide: string,
33
- WindowStartMove: string,
34
23
  WindowEndMove: string,
35
- WindowStartResize: string,
36
24
  WindowEndResize: string,
25
+ WindowFullscreen: string,
26
+ WindowHide: string,
27
+ WindowInactive: string,
37
28
  WindowKeyDown: string,
38
29
  WindowKeyUp: string,
39
- WindowZOrderChanged: string,
40
- WindowPaint: string,
41
- WindowBackgroundErase: string,
30
+ WindowKillFocus: string,
31
+ WindowMaximise: string,
32
+ WindowMinimise: string,
42
33
  WindowNonClientHit: string,
43
34
  WindowNonClientMouseDown: string,
44
- WindowNonClientMouseUp: string,
45
- WindowNonClientMouseMove: string,
46
35
  WindowNonClientMouseLeave: string,
47
- WindowDPIChanged: string,
36
+ WindowNonClientMouseMove: string,
37
+ WindowNonClientMouseUp: string,
38
+ WindowPaint: string,
39
+ WindowRestore: string,
40
+ WindowSetFocus: string,
41
+ WindowShow: string,
42
+ WindowStartMove: string,
43
+ WindowStartResize: string,
44
+ WindowUnFullscreen: string,
45
+ WindowUnMaximise: string,
46
+ WindowUnMinimise: string,
47
+ WindowZOrderChanged: string,
48
48
  },
49
49
  Mac: {
50
50
  ApplicationDidBecomeActive: string,
@@ -55,11 +55,13 @@ export declare const EventTypes: {
55
55
  ApplicationDidChangeScreenParameters: string,
56
56
  ApplicationDidChangeStatusBarFrame: string,
57
57
  ApplicationDidChangeStatusBarOrientation: string,
58
+ ApplicationDidChangeTheme: string,
58
59
  ApplicationDidFinishLaunching: string,
59
60
  ApplicationDidHide: string,
60
61
  ApplicationDidResignActiveNotification: string,
61
62
  ApplicationDidUnhide: string,
62
63
  ApplicationDidUpdate: string,
64
+ ApplicationShouldHandleReopen: string,
63
65
  ApplicationWillBecomeActive: string,
64
66
  ApplicationWillFinishLaunching: string,
65
67
  ApplicationWillHide: string,
@@ -67,8 +69,33 @@ export declare const EventTypes: {
67
69
  ApplicationWillTerminate: string,
68
70
  ApplicationWillUnhide: string,
69
71
  ApplicationWillUpdate: string,
70
- ApplicationDidChangeTheme: string,
71
- ApplicationShouldHandleReopen: string,
72
+ MenuDidAddItem: string,
73
+ MenuDidBeginTracking: string,
74
+ MenuDidClose: string,
75
+ MenuDidDisplayItem: string,
76
+ MenuDidEndTracking: string,
77
+ MenuDidHighlightItem: string,
78
+ MenuDidOpen: string,
79
+ MenuDidPopUp: string,
80
+ MenuDidRemoveItem: string,
81
+ MenuDidSendAction: string,
82
+ MenuDidSendActionToItem: string,
83
+ MenuDidUpdate: string,
84
+ MenuWillAddItem: string,
85
+ MenuWillBeginTracking: string,
86
+ MenuWillDisplayItem: string,
87
+ MenuWillEndTracking: string,
88
+ MenuWillHighlightItem: string,
89
+ MenuWillOpen: string,
90
+ MenuWillPopUp: string,
91
+ MenuWillRemoveItem: string,
92
+ MenuWillSendAction: string,
93
+ MenuWillSendActionToItem: string,
94
+ MenuWillUpdate: string,
95
+ WebViewDidCommitNavigation: string,
96
+ WebViewDidFinishNavigation: string,
97
+ WebViewDidReceiveServerRedirectForProvisionalNavigation: string,
98
+ WebViewDidStartProvisionalNavigation: string,
72
99
  WindowDidBecomeKey: string,
73
100
  WindowDidBecomeMain: string,
74
101
  WindowDidBeginSheet: string,
@@ -92,12 +119,6 @@ export declare const EventTypes: {
92
119
  WindowDidDeminiaturize: string,
93
120
  WindowDidEndSheet: string,
94
121
  WindowDidEnterFullScreen: string,
95
- WindowMaximise: string,
96
- WindowUnMaximise: string,
97
- WindowDidZoom: string,
98
- WindowZoomIn: string,
99
- WindowZoomOut: string,
100
- WindowZoomReset: string,
101
122
  WindowDidEnterVersionBrowser: string,
102
123
  WindowDidExitFullScreen: string,
103
124
  WindowDidExitVersionBrowser: string,
@@ -117,7 +138,15 @@ export declare const EventTypes: {
117
138
  WindowDidUpdateShadow: string,
118
139
  WindowDidUpdateTitle: string,
119
140
  WindowDidUpdateToolbar: string,
141
+ WindowDidZoom: string,
142
+ WindowFileDraggingEntered: string,
143
+ WindowFileDraggingExited: string,
144
+ WindowFileDraggingPerformed: string,
145
+ WindowHide: string,
146
+ WindowMaximize: string,
120
147
  WindowShouldClose: string,
148
+ WindowShow: string,
149
+ WindowUnMaximise: string,
121
150
  WindowWillBecomeKey: string,
122
151
  WindowWillBecomeMain: string,
123
152
  WindowWillBeginSheet: string,
@@ -145,73 +174,44 @@ export declare const EventTypes: {
145
174
  WindowWillUpdateToolbar: string,
146
175
  WindowWillUpdateVisibility: string,
147
176
  WindowWillUseStandardFrame: string,
148
- MenuWillOpen: string,
149
- MenuDidOpen: string,
150
- MenuDidClose: string,
151
- MenuWillSendAction: string,
152
- MenuDidSendAction: string,
153
- MenuWillHighlightItem: string,
154
- MenuDidHighlightItem: string,
155
- MenuWillDisplayItem: string,
156
- MenuDidDisplayItem: string,
157
- MenuWillAddItem: string,
158
- MenuDidAddItem: string,
159
- MenuWillRemoveItem: string,
160
- MenuDidRemoveItem: string,
161
- MenuWillBeginTracking: string,
162
- MenuDidBeginTracking: string,
163
- MenuWillEndTracking: string,
164
- MenuDidEndTracking: string,
165
- MenuWillUpdate: string,
166
- MenuDidUpdate: string,
167
- MenuWillPopUp: string,
168
- MenuDidPopUp: string,
169
- MenuWillSendActionToItem: string,
170
- MenuDidSendActionToItem: string,
171
- WebViewDidStartProvisionalNavigation: string,
172
- WebViewDidReceiveServerRedirectForProvisionalNavigation: string,
173
- WebViewDidFinishNavigation: string,
174
- WebViewDidCommitNavigation: string,
175
- WindowFileDraggingEntered: string,
176
- WindowFileDraggingPerformed: string,
177
- WindowFileDraggingExited: string,
178
- WindowShow: string,
179
- WindowHide: string,
177
+ WindowZoomIn: string,
178
+ WindowZoomOut: string,
179
+ WindowZoomReset: string,
180
180
  },
181
181
  Linux: {
182
+ ApplicationStartup: string,
182
183
  SystemThemeChanged: string,
183
- WindowLoadChanged: string,
184
184
  WindowDeleteEvent: string,
185
185
  WindowDidMove: string,
186
186
  WindowDidResize: string,
187
187
  WindowFocusIn: string,
188
188
  WindowFocusOut: string,
189
- ApplicationStartup: string,
189
+ WindowLoadChanged: string,
190
190
  },
191
191
  Common: {
192
+ ApplicationOpenedWithFile: string,
192
193
  ApplicationStarted: string,
193
- WindowMaximise: string,
194
- WindowUnMaximise: string,
194
+ ThemeChanged: string,
195
+ WindowClosing: string,
196
+ WindowDidMove: string,
197
+ WindowDidResize: string,
198
+ WindowDPIChanged: string,
199
+ WindowFilesDropped: string,
200
+ WindowFocus: string,
195
201
  WindowFullscreen: string,
196
- WindowUnFullscreen: string,
197
- WindowRestore: string,
202
+ WindowHide: string,
203
+ WindowLostFocus: string,
204
+ WindowMaximise: string,
198
205
  WindowMinimise: string,
206
+ WindowRestore: string,
207
+ WindowRuntimeReady: string,
208
+ WindowShow: string,
209
+ WindowUnFullscreen: string,
210
+ WindowUnMaximise: string,
199
211
  WindowUnMinimise: string,
200
- WindowClosing: string,
201
212
  WindowZoom: string,
202
213
  WindowZoomIn: string,
203
214
  WindowZoomOut: string,
204
215
  WindowZoomReset: string,
205
- WindowFocus: string,
206
- WindowLostFocus: string,
207
- WindowShow: string,
208
- WindowHide: string,
209
- WindowDPIChanged: string,
210
- WindowFilesDropped: string,
211
- WindowRuntimeReady: string,
212
- ThemeChanged: string,
213
- WindowDidMove: string,
214
- WindowDidResize: string,
215
- ApplicationOpenedWithFile: string,
216
216
  },
217
217
  };