@decky/ui 4.9.2 → 4.10.1

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 (184) hide show
  1. package/dist/components/Menu.js +5 -3
  2. package/dist/globals/SteamClient.d.ts +1 -304
  3. package/dist/globals/steam-client/App.d.ts +880 -0
  4. package/dist/globals/steam-client/App.js +320 -0
  5. package/dist/globals/steam-client/Auth.d.ts +57 -0
  6. package/dist/globals/steam-client/Auth.js +19 -0
  7. package/dist/globals/steam-client/Broadcast.d.ts +22 -0
  8. package/dist/globals/steam-client/Broadcast.js +1 -0
  9. package/dist/globals/steam-client/Browser.d.ts +45 -0
  10. package/dist/globals/steam-client/Browser.js +17 -0
  11. package/dist/globals/steam-client/ClientNotifications.d.ts +20 -0
  12. package/dist/globals/steam-client/ClientNotifications.js +6 -0
  13. package/dist/globals/steam-client/Cloud.d.ts +4 -0
  14. package/dist/globals/steam-client/Cloud.js +1 -0
  15. package/dist/globals/steam-client/CommunityItems.d.ts +5 -0
  16. package/dist/globals/steam-client/CommunityItems.js +1 -0
  17. package/dist/globals/steam-client/Console.d.ts +11 -0
  18. package/dist/globals/steam-client/Console.js +1 -0
  19. package/dist/globals/steam-client/Customization.d.ts +8 -0
  20. package/dist/globals/steam-client/Customization.js +1 -0
  21. package/dist/globals/steam-client/Downloads.d.ts +63 -0
  22. package/dist/globals/steam-client/Downloads.js +1 -0
  23. package/dist/globals/steam-client/FamilySharing.d.ts +20 -0
  24. package/dist/globals/steam-client/FamilySharing.js +1 -0
  25. package/dist/globals/steam-client/FriendSettings.d.ts +49 -0
  26. package/dist/globals/steam-client/FriendSettings.js +6 -0
  27. package/dist/globals/steam-client/Friends.d.ts +27 -0
  28. package/dist/globals/steam-client/Friends.js +1 -0
  29. package/dist/globals/steam-client/GameNotes.d.ts +41 -0
  30. package/dist/globals/steam-client/GameNotes.js +1 -0
  31. package/dist/globals/steam-client/GameRecording.d.ts +20 -0
  32. package/dist/globals/steam-client/GameRecording.js +1 -0
  33. package/dist/globals/steam-client/GameSessions.d.ts +26 -0
  34. package/dist/globals/steam-client/GameSessions.js +1 -0
  35. package/dist/globals/steam-client/Input.d.ts +421 -0
  36. package/dist/globals/steam-client/Input.js +170 -0
  37. package/dist/globals/steam-client/InstallFolder.d.ts +57 -0
  38. package/dist/globals/steam-client/InstallFolder.js +1 -0
  39. package/dist/globals/steam-client/Installs.d.ts +60 -0
  40. package/dist/globals/steam-client/Installs.js +20 -0
  41. package/dist/globals/steam-client/Messaging.d.ts +5 -0
  42. package/dist/globals/steam-client/Messaging.js +1 -0
  43. package/dist/globals/steam-client/Music.d.ts +36 -0
  44. package/dist/globals/steam-client/Music.js +14 -0
  45. package/dist/globals/steam-client/Notifications.d.ts +260 -0
  46. package/dist/globals/steam-client/Notifications.js +73 -0
  47. package/dist/globals/steam-client/OpenVR.d.ts +85 -0
  48. package/dist/globals/steam-client/OpenVR.js +16 -0
  49. package/dist/globals/steam-client/Overlay.d.ts +58 -0
  50. package/dist/globals/steam-client/Overlay.js +18 -0
  51. package/dist/globals/steam-client/Parental.d.ts +69 -0
  52. package/dist/globals/steam-client/Parental.js +19 -0
  53. package/dist/globals/steam-client/RemotePlay.d.ts +225 -0
  54. package/dist/globals/steam-client/RemotePlay.js +71 -0
  55. package/dist/globals/steam-client/Screenshots.d.ts +47 -0
  56. package/dist/globals/steam-client/Screenshots.js +8 -0
  57. package/dist/globals/steam-client/ServerBrowser.d.ts +117 -0
  58. package/dist/globals/steam-client/ServerBrowser.js +26 -0
  59. package/dist/globals/steam-client/Settings.d.ts +398 -0
  60. package/dist/globals/steam-client/Settings.js +96 -0
  61. package/dist/globals/steam-client/SharedConnection.d.ts +22 -0
  62. package/dist/globals/steam-client/SharedConnection.js +1 -0
  63. package/dist/globals/steam-client/Stats.d.ts +4 -0
  64. package/dist/globals/steam-client/Stats.js +1 -0
  65. package/dist/globals/steam-client/SteamChina.d.ts +3 -0
  66. package/dist/globals/steam-client/SteamChina.js +1 -0
  67. package/dist/globals/steam-client/Storage.d.ts +8 -0
  68. package/dist/globals/steam-client/Storage.js +1 -0
  69. package/dist/globals/steam-client/Streaming.d.ts +15 -0
  70. package/dist/globals/steam-client/Streaming.js +1 -0
  71. package/dist/globals/steam-client/UI.d.ts +44 -0
  72. package/dist/globals/steam-client/UI.js +12 -0
  73. package/dist/globals/steam-client/URL.d.ts +16 -0
  74. package/dist/globals/steam-client/URL.js +1 -0
  75. package/dist/globals/steam-client/Updates.d.ts +68 -0
  76. package/dist/globals/steam-client/Updates.js +34 -0
  77. package/dist/globals/steam-client/User.d.ts +130 -0
  78. package/dist/globals/steam-client/User.js +33 -0
  79. package/dist/globals/steam-client/WebChat.d.ts +60 -0
  80. package/dist/globals/steam-client/WebChat.js +6 -0
  81. package/dist/globals/steam-client/WebUITransport.d.ts +11 -0
  82. package/dist/globals/steam-client/WebUITransport.js +1 -0
  83. package/dist/globals/steam-client/Window.d.ts +66 -0
  84. package/dist/globals/steam-client/Window.js +6 -0
  85. package/dist/globals/steam-client/browser-view/BrowserViewPopup.d.ts +124 -0
  86. package/dist/globals/steam-client/browser-view/BrowserViewPopup.js +35 -0
  87. package/dist/globals/steam-client/browser-view/index.d.ts +20 -0
  88. package/dist/globals/steam-client/browser-view/index.js +1 -0
  89. package/dist/globals/steam-client/index.d.ts +89 -0
  90. package/dist/globals/steam-client/index.js +1 -0
  91. package/dist/globals/steam-client/shared.d.ts +166 -0
  92. package/dist/globals/steam-client/shared.js +146 -0
  93. package/dist/globals/steam-client/system/Audio.d.ts +42 -0
  94. package/dist/globals/steam-client/system/Audio.js +1 -0
  95. package/dist/globals/steam-client/system/AudioDevice.d.ts +92 -0
  96. package/dist/globals/steam-client/system/AudioDevice.js +33 -0
  97. package/dist/globals/steam-client/system/Bluetooth.d.ts +47 -0
  98. package/dist/globals/steam-client/system/Bluetooth.js +15 -0
  99. package/dist/globals/steam-client/system/Devkit.d.ts +7 -0
  100. package/dist/globals/steam-client/system/Devkit.js +1 -0
  101. package/dist/globals/steam-client/system/Display.d.ts +10 -0
  102. package/dist/globals/steam-client/system/Display.js +1 -0
  103. package/dist/globals/steam-client/system/DisplayManager.d.ts +9 -0
  104. package/dist/globals/steam-client/system/DisplayManager.js +1 -0
  105. package/dist/globals/steam-client/system/Dock.d.ts +19 -0
  106. package/dist/globals/steam-client/system/Dock.js +1 -0
  107. package/dist/globals/steam-client/system/Perf.d.ts +159 -0
  108. package/dist/globals/steam-client/system/Perf.js +53 -0
  109. package/dist/globals/steam-client/system/Report.d.ts +13 -0
  110. package/dist/globals/steam-client/system/Report.js +1 -0
  111. package/dist/globals/steam-client/system/UI.d.ts +28 -0
  112. package/dist/globals/steam-client/system/UI.js +1 -0
  113. package/dist/globals/steam-client/system/index.d.ts +243 -0
  114. package/dist/globals/steam-client/system/index.js +111 -0
  115. package/dist/globals/steam-client/system/network/Device.d.ts +10 -0
  116. package/dist/globals/steam-client/system/network/Device.js +1 -0
  117. package/dist/globals/steam-client/system/network/index.d.ts +312 -0
  118. package/dist/globals/steam-client/system/network/index.js +55 -0
  119. package/dist/globals/stores.d.ts +26 -13
  120. package/dist/modules/Router.d.ts +2 -39
  121. package/dist/modules/Router.js +0 -39
  122. package/package.json +1 -1
  123. package/src/components/Menu.ts +7 -8
  124. package/src/globals/SteamClient.ts +4 -320
  125. package/src/globals/steam-client/App.ts +1749 -0
  126. package/src/globals/steam-client/Auth.ts +105 -0
  127. package/src/globals/steam-client/Broadcast.ts +56 -0
  128. package/src/globals/steam-client/Browser.ts +91 -0
  129. package/src/globals/steam-client/ClientNotifications.ts +39 -0
  130. package/src/globals/steam-client/Cloud.ts +14 -0
  131. package/src/globals/steam-client/CommunityItems.ts +24 -0
  132. package/src/globals/steam-client/Console.ts +43 -0
  133. package/src/globals/steam-client/Customization.ts +12 -0
  134. package/src/globals/steam-client/Downloads.ts +175 -0
  135. package/src/globals/steam-client/FamilySharing.ts +30 -0
  136. package/src/globals/steam-client/FriendSettings.ts +80 -0
  137. package/src/globals/steam-client/Friends.ts +70 -0
  138. package/src/globals/steam-client/GameNotes.ts +73 -0
  139. package/src/globals/steam-client/GameRecording.ts +29 -0
  140. package/src/globals/steam-client/GameSessions.ts +59 -0
  141. package/src/globals/steam-client/Input.ts +762 -0
  142. package/src/globals/steam-client/InstallFolder.ts +167 -0
  143. package/src/globals/steam-client/Installs.ts +131 -0
  144. package/src/globals/steam-client/Messaging.ts +20 -0
  145. package/src/globals/steam-client/Music.ts +99 -0
  146. package/src/globals/steam-client/Notifications.ts +333 -0
  147. package/src/globals/steam-client/OpenVR.ts +122 -0
  148. package/src/globals/steam-client/Overlay.ts +172 -0
  149. package/src/globals/steam-client/Parental.ts +129 -0
  150. package/src/globals/steam-client/RemotePlay.ts +342 -0
  151. package/src/globals/steam-client/Screenshots.ts +149 -0
  152. package/src/globals/steam-client/ServerBrowser.ts +372 -0
  153. package/src/globals/steam-client/Settings.ts +663 -0
  154. package/src/globals/steam-client/SharedConnection.ts +43 -0
  155. package/src/globals/steam-client/Stats.ts +10 -0
  156. package/src/globals/steam-client/SteamChina.ts +3 -0
  157. package/src/globals/steam-client/Storage.ts +24 -0
  158. package/src/globals/steam-client/Streaming.ts +59 -0
  159. package/src/globals/steam-client/UI.ts +90 -0
  160. package/src/globals/steam-client/URL.ts +174 -0
  161. package/src/globals/steam-client/Updates.ts +101 -0
  162. package/src/globals/steam-client/User.ts +266 -0
  163. package/src/globals/steam-client/WebChat.ts +164 -0
  164. package/src/globals/steam-client/WebUITransport.ts +21 -0
  165. package/src/globals/steam-client/Window.ts +235 -0
  166. package/src/globals/steam-client/browser-view/BrowserViewPopup.ts +393 -0
  167. package/src/globals/steam-client/browser-view/index.ts +54 -0
  168. package/src/globals/steam-client/index.ts +90 -0
  169. package/src/globals/steam-client/shared.ts +262 -0
  170. package/src/globals/steam-client/system/Audio.ts +202 -0
  171. package/src/globals/steam-client/system/AudioDevice.ts +116 -0
  172. package/src/globals/steam-client/system/Bluetooth.ts +171 -0
  173. package/src/globals/steam-client/system/Devkit.ts +11 -0
  174. package/src/globals/steam-client/system/Display.ts +15 -0
  175. package/src/globals/steam-client/system/DisplayManager.ts +16 -0
  176. package/src/globals/steam-client/system/Dock.ts +34 -0
  177. package/src/globals/steam-client/system/Perf.ts +194 -0
  178. package/src/globals/steam-client/system/Report.ts +39 -0
  179. package/src/globals/steam-client/system/UI.ts +38 -0
  180. package/src/globals/steam-client/system/index.ts +390 -0
  181. package/src/globals/steam-client/system/network/Device.ts +17 -0
  182. package/src/globals/steam-client/system/network/index.ts +403 -0
  183. package/src/globals/stores.ts +30 -13
  184. package/src/modules/Router.ts +2 -40
@@ -0,0 +1,393 @@
1
+ import {ETouchGesture} from '../Browser';
2
+ import { BrowserView } from '.';
3
+
4
+ export interface BrowserViewPopup {
5
+ /**
6
+ * Blur the popup contents.
7
+ * @param enabled Is the blur enabled?
8
+ * @param useBackgroundColor
9
+ * @param blur
10
+ */
11
+ AddGlass(enabled: boolean, useBackgroundColor: boolean, blur: boolean): void;
12
+
13
+ /**
14
+ * @returns `true` if you can go backward in history.
15
+ */
16
+ CanGoBackward(): boolean;
17
+
18
+ /**
19
+ * @returns `true` if you can go forward in history.
20
+ */
21
+ CanGoForward(): boolean;
22
+
23
+ // alert() i assume
24
+ DialogResponse(param0: boolean): void;
25
+
26
+ EnableSteamInput(): void;
27
+
28
+ /**
29
+ * Find a string in the page.
30
+ * @param input The string to find.
31
+ * @param param1
32
+ * @param previous `true` for previous match, `false` for next match.
33
+ */
34
+ FindInPage(input: string, param1: boolean, previous: boolean): void;
35
+
36
+ /**
37
+ * Get the current popup position. Only updates when using {@link SetBounds}!
38
+ * @returns the window position.
39
+ */
40
+ GetBounds(): BrowserViewBounds;
41
+
42
+ /**
43
+ * Go back in history.
44
+ */
45
+ GoBack(): void;
46
+
47
+ /**
48
+ * Go forward in history.
49
+ */
50
+ GoForward(): void;
51
+
52
+ /**
53
+ * @param command See {@link BrowserViewContextMenu.custom_commands}.
54
+ */
55
+ HandleContextMenuCommand(command: number, param2: BrowserViewContextMenu): void;
56
+
57
+ /**
58
+ * Load the specified URL.
59
+ * @param url The URL to go to.
60
+ */
61
+ LoadURL(url: string): void;
62
+
63
+ NotifyUserActivation(): void;
64
+
65
+ /**
66
+ * Paste the current clipboard selection.
67
+ */
68
+ Paste(): void;
69
+
70
+ /**
71
+ * @returns a boolean indicating whether the operation was successful. Will
72
+ * always be `false` if there are no listeners created by
73
+ * {@link BrowserView.RegisterForMessageFromParent}.
74
+ */
75
+ PostMessage(message: string, args: string): boolean;
76
+
77
+ /**
78
+ * Reload the page.
79
+ */
80
+ Reload(): void;
81
+
82
+ /**
83
+ * Load the specified URL, but don't save history.
84
+ * @param url The URL to go to.
85
+ */
86
+ ReplaceURL(url: string): void;
87
+
88
+ /**
89
+ * Define blocked protocols, like https, etc.
90
+ * @param protocols The protocols to block, separated by a semicolon.
91
+ */
92
+ SetBlockedProtocols(protocols: string): void;
93
+
94
+ /**
95
+ * Sets the browser window position.
96
+ * @param x Browser window X position.
97
+ * @param y Browser window Y position.
98
+ * @param width Browser window width.
99
+ * @param height Browser window height.
100
+ */
101
+ SetBounds(x: number, y: number, width: number, height: number): void;
102
+
103
+ /**
104
+ * Sets the browser window focus state.
105
+ * @param value Is the window focused?
106
+ */
107
+ SetFocus(value: boolean): void;
108
+
109
+ SetName(browserName: string): void;
110
+
111
+ /**
112
+ * Registers a callback to be called when a context menu is shown.
113
+ * @param callback The callback function to be called.
114
+ */
115
+ SetShowContextMenuCallback(callback: (data: BrowserViewContextMenu) => void): void;
116
+
117
+ /**
118
+ * Registers a callback to be called when a steam:// URL is loaded.
119
+ */
120
+ SetSteamURLCallback(callback: (url: string) => void): void;
121
+
122
+ /**
123
+ * @todo unconfirmed
124
+ */
125
+ SetTouchGesturesToCancel(gestures: ETouchGesture[]): void;
126
+
127
+ SetVRKeyboardVisibility(value: boolean): void;
128
+
129
+ SetVisible(value: boolean): void;
130
+
131
+ SetWindowStackingOrder(value: EWindowStackingOrder): void;
132
+
133
+ /**
134
+ * Stop the 'find in page' function.
135
+ */
136
+ StopFindInPage(): void;
137
+
138
+ /**
139
+ * Stop listening for an event.
140
+ * @param event The event to stop listening to.
141
+ * @param callback The callback function to be called.
142
+ */
143
+ off<K extends keyof BrowserViewEventMap>(event: K, callback: BrowserViewEventMap[K]): void;
144
+
145
+ /**
146
+ * Start listening for an event.
147
+ * @param event The event to start listening to.
148
+ * @param callback The callback function to be called.
149
+ */
150
+ on<K extends keyof BrowserViewEventMap>(event: K, callback: BrowserViewEventMap[K]): void;
151
+ }
152
+
153
+ interface BrowserViewEventMap {
154
+ /**
155
+ * Fires when an `alert()` dialog appears.
156
+ */
157
+ 'alert-dialog': (message: string) => void;
158
+
159
+ /**
160
+ * Fires when the browser is about to get destroyed.
161
+ */
162
+ 'before-close': () => void;
163
+
164
+ /**
165
+ * Fires when a URL gets blocked.
166
+ * @todo not SetBlockedProtocols, maybe only steam links
167
+ */
168
+ 'blocked-request': (blockedURL: string) => void;
169
+
170
+ /**
171
+ * Fires when {@link BrowserViewPopup.CanGoBackward} or
172
+ * {@link BrowserViewPopup.CanGoForward} state changes.
173
+ */
174
+ 'can-go-back-forward-changed': (
175
+ canGoBackward: boolean,
176
+ canGoForward: boolean,
177
+ ) => void;
178
+
179
+ /**
180
+ * Fires when a `confirm()` dialog appears.
181
+ */
182
+ 'confirm-dialog': (message: string) => void;
183
+
184
+ /**
185
+ * Fires when the browser's favicon changes.
186
+ */
187
+ 'favicon-urls-changed': (faviconURLs: string[]) => void;
188
+
189
+ /**
190
+ * Fires when 'Find in page' gets its results.
191
+ */
192
+ 'find-in-page-results': (results: number, activeResultIndex: number) => void;
193
+
194
+ /**
195
+ * Fires when the page finishes loading.
196
+ */
197
+ 'finished-request': (currentURL: string, previousURL: string) => void;
198
+
199
+ /**
200
+ * Fires when the browser goes focused or vice versa.
201
+ */
202
+ 'focus-changed': (focused: boolean) => void;
203
+
204
+ /**
205
+ * Fires when the browser goes fullscreen or vice versa.
206
+ */
207
+ 'full-screen': (fullscreen: boolean) => void;
208
+
209
+ /**
210
+ * Fires when history changes occur.
211
+ */
212
+ 'history-changed': (history: BrowserViewHistory) => void;
213
+
214
+ /**
215
+ * Fires when the URL fails to load.
216
+ */
217
+ 'load-error': (
218
+ errorCode: number,
219
+ errorURL: string,
220
+ errorDescription: string,
221
+ ) => void;
222
+
223
+ /**
224
+ * Fires when a message gets sent with {@link BrowserView.PostMessageToParent}.
225
+ */
226
+ 'message': (message: string, args: string, currentURL: string) => void;
227
+
228
+ 'new-tab': (url: string, param1: boolean) => void;
229
+
230
+ /**
231
+ * Fires when a node gets focused.
232
+ */
233
+ 'node-has-focus': (
234
+ /**
235
+ * Same as {@link Element.tagName}, but the value is the element's ID when exists.
236
+ */
237
+ elementIdOrTagName: string,
238
+ /**
239
+ * Same as {@link Element.tagName}.
240
+ */
241
+ elementTag: string,
242
+ /**
243
+ * The `type` attribute of an `<input>` element.
244
+ */
245
+ inputType: string,
246
+ /**
247
+ * @todo Localization token that doesn't seem to exist? (#Web_FormSubmit)
248
+ */
249
+ token: string,
250
+ param4: boolean,
251
+ ) => void;
252
+
253
+ 'page-security': (url: string, pageSecurity: BrowserViewPageSecurity) => void;
254
+
255
+ /**
256
+ * Fires when the page's `<title>` changes.
257
+ */
258
+ 'set-title': (title: string) => void;
259
+
260
+ /**
261
+ * Fires when the page starts loading.
262
+ */
263
+ 'start-loading': (url: string, param1: boolean) => void;
264
+
265
+ /**
266
+ * Fires when the page starts loading.
267
+ */
268
+ 'start-request': (url: string) => void;
269
+
270
+ /**
271
+ * Fires when "Find in page" gets toggled.
272
+ */
273
+ 'toggle-find-in-page': () => void;
274
+ }
275
+
276
+ export interface BrowserViewBounds {
277
+ x: number;
278
+ y: number;
279
+ width: number;
280
+ height: number;
281
+ }
282
+
283
+ export interface BrowserViewContextMenu {
284
+ /**
285
+ * Mouse X position inside the browser view.
286
+ */
287
+ coord_x: number;
288
+
289
+ /**
290
+ * Mouse Y position inside the browser view.
291
+ */
292
+ coord_y: number;
293
+
294
+ custom_commands: BrowserViewContextMenuCustomCommand[];
295
+
296
+ /**
297
+ * Bitmask representing edit state. Appears on editable elements like `<input>`, etc.
298
+ * @see {@link EBrowserViewContextMenuEditFlag}
299
+ */
300
+ edit_state_flags?: number;
301
+
302
+ /**
303
+ * The misspelled word the cursor is on. Appears on an editable element with text.
304
+ */
305
+ misspelled_word?: string;
306
+
307
+ /**
308
+ * Browser page URL.
309
+ * @todo Appears when there is selected text?
310
+ */
311
+ link_url?: string;
312
+
313
+ /**
314
+ * Browser page URL.
315
+ */
316
+ page_url: string;
317
+
318
+ /**
319
+ * Selected text. Appears when there is selected text.
320
+ */
321
+ selection_text?: string;
322
+
323
+ /**
324
+ * Bitmask representing context menu type.
325
+ * @see {@link EBrowserViewContextMenuTypeFlag}
326
+ */
327
+ type_flags: number;
328
+
329
+ /**
330
+ * Browser page URL.
331
+ * @todo Appears when there is selected text?
332
+ */
333
+ unfiltered_link_url?: string;
334
+ }
335
+
336
+ export interface BrowserViewContextMenuCustomCommand {
337
+ id: number;
338
+ label: string;
339
+ }
340
+
341
+ export enum EBrowserViewContextMenuTypeFlag {
342
+ None,
343
+ Page = 1 << 0,
344
+ Frame = 1 << 1,
345
+ Link = 1 << 2,
346
+ Media = 1 << 3,
347
+ Selection = 1 << 4,
348
+ Editable = 1 << 5,
349
+ }
350
+
351
+ export enum EBrowserViewContextMenuEditFlag {
352
+ None,
353
+ CanUndo = 1 << 0,
354
+ CanRedo = 1 << 1,
355
+ CanCut = 1 << 2,
356
+ CanCopy = 1 << 3,
357
+ CanPaste = 1 << 4,
358
+ CanDelete = 1 << 5,
359
+ CanSelectAll = 1 << 6,
360
+ CanTranslate = 1 << 7,
361
+ }
362
+
363
+ export enum EBrowserViewContextMenuCommand {
364
+ Close = -1,
365
+ OpenDevTools = 26500,
366
+ CloseDevTools,
367
+ InspectElement,
368
+ OpenLinkInNewTab,
369
+ }
370
+
371
+ export enum EWindowStackingOrder {
372
+ Bottom,
373
+ Top,
374
+ }
375
+
376
+ export interface BrowserViewHistory {
377
+ index: number;
378
+ entries: BrowserViewHistoryEntry[];
379
+ }
380
+
381
+ export interface BrowserViewHistoryEntry {
382
+ url: string;
383
+ }
384
+
385
+ export interface BrowserViewPageSecurity {
386
+ bHasCertError: boolean;
387
+ bIsEVCert: boolean;
388
+ bIsSecure: boolean;
389
+ certExpiry: number;
390
+ certName: string;
391
+ issuerName: string;
392
+ nCertBits: number;
393
+ }
@@ -0,0 +1,54 @@
1
+ import { Unregisterable } from "../shared";
2
+ import {BrowserViewPopup} from "./BrowserViewPopup";
3
+
4
+ export interface BrowserView {
5
+ /**
6
+ * @note Not available on a created BrowserView.
7
+ */
8
+ Create(options?: BrowserViewCreateOptions): BrowserViewPopup;
9
+
10
+ /**
11
+ * Like {@link Create}, but:
12
+ *
13
+ * - Lets you create a BrowserView with
14
+ * `window.open()` instead, while still letting you control the BrowserView
15
+ * the same way.
16
+ *
17
+ * @note Not available on a created BrowserView.
18
+ */
19
+ CreatePopup(options?: BrowserViewCreateOptions): {
20
+ /**
21
+ * URL to use with `window.open()`.
22
+ */
23
+ strCreateURL: string;
24
+ browserView: BrowserViewPopup;
25
+ };
26
+
27
+ /**
28
+ * @note Not available on a created BrowserView.
29
+ */
30
+ Destroy(browserView: BrowserViewPopup): void;
31
+
32
+ /**
33
+ * @note Only works on a created BrowserView.
34
+ */
35
+ PostMessageToParent(message: string, args: string): void;
36
+
37
+ /**
38
+ * Register a callback to be called when a message gets sent with
39
+ * {@link BrowserViewPopup.PostMessage}.
40
+ *
41
+ * @note Only available on a created BrowserView.
42
+ */
43
+ RegisterForMessageFromParent(callback: (message: string, args: string) => void): Unregisterable;
44
+ }
45
+
46
+ export interface BrowserViewCreateOptions {
47
+ bOnlyAllowTrustedPopups?: boolean;
48
+ parentPopupBrowserID?: number;
49
+ /** Initial URL to load. */
50
+ strInitialURL?: string;
51
+ strUserAgentIdentifier?: string;
52
+ strUserAgentOverride?: string;
53
+ strVROverlayKey?: string;
54
+ }
@@ -0,0 +1,90 @@
1
+ import { Apps } from "./App";
2
+ import {Auth} from "./Auth";
3
+ import {Broadcast} from "./Broadcast";
4
+ import {Browser} from "./Browser";
5
+ import {BrowserView} from "./browser-view";
6
+ import {ClientNotifications} from "./ClientNotifications";
7
+ import {Cloud} from "./Cloud";
8
+ import {CommunityItems} from "./CommunityItems";
9
+ import {Console} from "./Console";
10
+ import {Customization} from "./Customization";
11
+ import {Downloads} from "./Downloads";
12
+ import {FamilySharing} from "./FamilySharing";
13
+ import {FriendSettings} from "./FriendSettings";
14
+ import {Friends} from "./Friends";
15
+ import {GameNotes} from "./GameNotes";
16
+ import {GameRecording} from "./GameRecording";
17
+ import {GameSessions} from "./GameSessions";
18
+ import {Input} from "./Input";
19
+ import {InstallFolder} from "./InstallFolder";
20
+ import {Installs} from "./Installs";
21
+ import {Messaging} from "./Messaging";
22
+ import {Music} from "./Music";
23
+ import {Notifications} from "./Notifications";
24
+ import {OpenVR} from "./OpenVR";
25
+ import {Overlay} from "./Overlay";
26
+ import {Storage} from "./Storage";
27
+ import {Parental} from "./Parental";
28
+ import {RemotePlay} from "./RemotePlay";
29
+ import {ServerBrowser} from "./ServerBrowser";
30
+ import {Screenshots} from "./Screenshots";
31
+ import {Settings} from "./Settings";
32
+ import {SharedConnection} from "./SharedConnection";
33
+ import {Stats} from "./Stats";
34
+ import {SteamChina} from "./SteamChina";
35
+ import {Streaming} from "./Streaming";
36
+ import {System} from "./system";
37
+ import {UI} from "./UI";
38
+ import {Updates} from "./Updates";
39
+ import {User} from "./User";
40
+ import {WebChat} from "./WebChat";
41
+ import {WebUITransport} from "./WebUITransport";
42
+ import {Window} from "./Window";
43
+
44
+ export interface SteamClient {
45
+ Apps: Apps;
46
+ Auth: Auth;
47
+ Broadcast: Broadcast;
48
+ Browser: Browser;
49
+ BrowserView: BrowserView;
50
+ ClientNotifications: ClientNotifications;
51
+ Cloud: Cloud;
52
+ CommunityItems: CommunityItems;
53
+ Console: Console;
54
+ Customization: Customization;
55
+ Downloads: Downloads;
56
+ FamilySharing: FamilySharing;
57
+ Friends: Friends;
58
+ FriendSettings: FriendSettings;
59
+ GameNotes: GameNotes;
60
+ GameRecording: GameRecording;
61
+ GameSessions: GameSessions;
62
+ Input: Input;
63
+ InstallFolder: InstallFolder;
64
+ Installs: Installs;
65
+ MachineStorage: Storage;
66
+ Messaging: Messaging;
67
+ Music: Music;
68
+ Notifications: Notifications;
69
+ OpenVR: OpenVR;
70
+ Overlay: Overlay;
71
+ Parental: Parental;
72
+ RemotePlay: RemotePlay;
73
+ RoamingStorage: Storage;
74
+ Screenshots: Screenshots;
75
+ ServerBrowser: ServerBrowser;
76
+ Settings: Settings;
77
+ SharedConnection: SharedConnection;
78
+ Stats: Stats;
79
+ SteamChina: SteamChina;
80
+ Storage: Storage;
81
+ Streaming: Streaming;
82
+ System: System;
83
+ UI: UI;
84
+ URL: URL;
85
+ Updates: Updates;
86
+ User: User;
87
+ WebChat: WebChat;
88
+ WebUITransport: WebUITransport;
89
+ Window: Window;
90
+ }