@decky/ui 4.15.1 → 4.16.0

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 (167) hide show
  1. package/dist/components/Dropdown.d.ts +2 -2
  2. package/dist/components/FooterLegend.d.ts +8 -2
  3. package/dist/components/FooterLegend.js +7 -0
  4. package/dist/components/Menu.d.ts +5 -9
  5. package/dist/components/Modal.d.ts +3 -2
  6. package/dist/globals/index.d.ts +25 -2
  7. package/dist/globals/index.js +1 -2
  8. package/dist/globals/shared/cm.d.ts +112 -0
  9. package/dist/globals/shared/enums.d.ts +80 -0
  10. package/dist/globals/shared/enums.js +85 -0
  11. package/dist/globals/shared/history.d.ts +12 -0
  12. package/dist/globals/shared/history.js +1 -0
  13. package/dist/globals/shared/index.d.ts +5 -0
  14. package/dist/globals/shared/index.js +5 -0
  15. package/dist/globals/shared/interfaces.d.ts +54 -0
  16. package/dist/globals/shared/interfaces.js +1 -0
  17. package/dist/globals/shared/navigation.d.ts +14 -0
  18. package/dist/globals/shared/navigation.js +10 -0
  19. package/dist/globals/shared/steamid.d.ts +36 -0
  20. package/dist/globals/shared/steamid.js +15 -0
  21. package/dist/globals/shared/storage.d.ts +27 -0
  22. package/dist/globals/shared/storage.js +11 -0
  23. package/dist/globals/steam-client/App.d.ts +1 -1
  24. package/dist/globals/steam-client/Auth.d.ts +1 -1
  25. package/dist/globals/steam-client/ClientNotifications.d.ts +1 -1
  26. package/dist/globals/steam-client/Overlay.d.ts +2 -1
  27. package/dist/globals/steam-client/Settings.d.ts +1 -1
  28. package/dist/globals/steam-client/SharedConnection.d.ts +2 -1
  29. package/dist/globals/steam-client/UI.d.ts +14 -3
  30. package/dist/globals/steam-client/UI.js +11 -0
  31. package/dist/globals/steam-client/User.d.ts +13 -0
  32. package/dist/globals/steam-client/User.js +7 -0
  33. package/dist/globals/steam-client/WebChat.d.ts +3 -2
  34. package/dist/globals/steam-client/shared.d.ts +0 -29
  35. package/dist/globals/steam-client/shared.js +0 -24
  36. package/dist/globals/stores/app.d.ts +35 -0
  37. package/dist/globals/stores/app.js +1 -0
  38. package/dist/globals/stores/appdetailsstore.d.ts +86 -0
  39. package/dist/globals/stores/appdetailsstore.js +1 -0
  40. package/dist/globals/stores/appinfostore.d.ts +56 -0
  41. package/dist/globals/stores/appinfostore.js +1 -0
  42. package/dist/globals/stores/appstore.d.ts +77 -0
  43. package/dist/globals/stores/appstore.js +1 -0
  44. package/dist/globals/stores/badgestore.d.ts +52 -0
  45. package/dist/globals/stores/badgestore.js +1 -0
  46. package/dist/globals/stores/collectionstore.d.ts +313 -0
  47. package/dist/globals/stores/collectionstore.js +143 -0
  48. package/dist/globals/stores/consolestore.d.ts +20 -0
  49. package/dist/globals/stores/consolestore.js +1 -0
  50. package/dist/globals/stores/focusnavcontroller.d.ts +383 -0
  51. package/dist/globals/stores/focusnavcontroller.js +29 -0
  52. package/dist/globals/stores/friendstore/clanstore.d.ts +75 -0
  53. package/dist/globals/stores/friendstore/clanstore.js +19 -0
  54. package/dist/globals/stores/friendstore/friendchat.d.ts +374 -0
  55. package/dist/globals/stores/friendstore/friendchat.js +56 -0
  56. package/dist/globals/stores/friendstore/friendgroupstore.d.ts +98 -0
  57. package/dist/globals/stores/friendstore/friendgroupstore.js +8 -0
  58. package/dist/globals/stores/friendstore/friendingamenotificationstore.d.ts +2 -0
  59. package/dist/globals/stores/friendstore/friendingamenotificationstore.js +1 -0
  60. package/dist/globals/stores/friendstore/friendslistfavoritesstore.d.ts +22 -0
  61. package/dist/globals/stores/friendstore/friendslistfavoritesstore.js +1 -0
  62. package/dist/globals/stores/friendstore/friendsuifriendstore.d.ts +125 -0
  63. package/dist/globals/stores/friendstore/friendsuifriendstore.js +1 -0
  64. package/dist/globals/stores/friendstore/index.d.ts +25 -0
  65. package/dist/globals/stores/friendstore/index.js +1 -0
  66. package/dist/globals/stores/friendstore/shared.d.ts +207 -0
  67. package/dist/globals/stores/friendstore/shared.js +41 -0
  68. package/dist/globals/stores/gamerecordingstore.d.ts +263 -0
  69. package/dist/globals/stores/gamerecordingstore.js +1 -0
  70. package/dist/globals/stores/index.d.ts +18 -0
  71. package/dist/globals/stores/index.js +18 -0
  72. package/dist/globals/stores/libraryuistore.d.ts +179 -0
  73. package/dist/globals/stores/libraryuistore.js +56 -0
  74. package/dist/globals/stores/localizationmanager.d.ts +18 -0
  75. package/dist/globals/stores/localizationmanager.js +1 -0
  76. package/dist/globals/stores/mainwindowbrowsermanager.d.ts +62 -0
  77. package/dist/globals/stores/mainwindowbrowsermanager.js +1 -0
  78. package/dist/globals/stores/notificationstore.d.ts +242 -0
  79. package/dist/globals/stores/notificationstore.js +20 -0
  80. package/dist/globals/stores/popupmanager.d.ts +128 -0
  81. package/dist/globals/stores/popupmanager.js +1 -0
  82. package/dist/globals/stores/securitystore.d.ts +35 -0
  83. package/dist/globals/stores/securitystore.js +1 -0
  84. package/dist/globals/stores/settingsstore.d.ts +86 -0
  85. package/dist/globals/stores/settingsstore.js +19 -0
  86. package/dist/globals/stores/steamuistore/gamepadbrowserview.d.ts +143 -0
  87. package/dist/globals/stores/steamuistore/gamepadbrowserview.js +9 -0
  88. package/dist/globals/stores/steamuistore/gamepaduiaudio.d.ts +36 -0
  89. package/dist/globals/stores/steamuistore/gamepaduiaudio.js +1 -0
  90. package/dist/globals/stores/steamuistore/index.d.ts +129 -0
  91. package/dist/globals/stores/steamuistore/index.js +11 -0
  92. package/dist/globals/stores/steamuistore/menu.d.ts +39 -0
  93. package/dist/globals/stores/steamuistore/menu.js +19 -0
  94. package/dist/globals/stores/steamuistore/window.d.ts +206 -0
  95. package/dist/globals/stores/steamuistore/window.js +6 -0
  96. package/dist/globals/stores/storeitemcache.d.ts +319 -0
  97. package/dist/globals/stores/storeitemcache.js +17 -0
  98. package/dist/globals/stores/urlstore.d.ts +57 -0
  99. package/dist/globals/stores/urlstore.js +1 -0
  100. package/dist/modules/Router.d.ts +5 -58
  101. package/dist/modules/Router.js +2 -20
  102. package/dist/tsconfig.tsbuildinfo +1 -1
  103. package/dist/utils/index.d.ts +0 -1
  104. package/package.json +1 -1
  105. package/src/components/Dropdown.tsx +2 -2
  106. package/src/components/FooterLegend.ts +10 -2
  107. package/src/components/Menu.ts +11 -21
  108. package/src/components/Modal.ts +40 -8
  109. package/src/globals/index.ts +45 -2
  110. package/src/globals/shared/cm.ts +158 -0
  111. package/src/globals/shared/enums.ts +97 -0
  112. package/src/globals/shared/history.ts +15 -0
  113. package/src/globals/shared/index.ts +5 -0
  114. package/src/globals/shared/interfaces.ts +147 -0
  115. package/src/globals/shared/navigation.ts +15 -0
  116. package/src/globals/shared/steamid.ts +49 -0
  117. package/src/globals/shared/storage.ts +62 -0
  118. package/src/globals/steam-client/App.ts +2 -2
  119. package/src/globals/steam-client/Auth.ts +2 -2
  120. package/src/globals/steam-client/ClientNotifications.ts +1 -1
  121. package/src/globals/steam-client/Overlay.ts +2 -1
  122. package/src/globals/steam-client/Settings.ts +1 -1
  123. package/src/globals/steam-client/SharedConnection.ts +2 -1
  124. package/src/globals/steam-client/UI.ts +15 -6
  125. package/src/globals/steam-client/User.ts +20 -0
  126. package/src/globals/steam-client/WebChat.ts +3 -2
  127. package/src/globals/steam-client/shared.ts +0 -69
  128. package/src/globals/stores/app.ts +102 -0
  129. package/src/globals/stores/appdetailsstore.ts +235 -0
  130. package/src/globals/stores/appinfostore.ts +65 -0
  131. package/src/globals/stores/appstore.ts +166 -0
  132. package/src/globals/stores/badgestore.ts +87 -0
  133. package/src/globals/stores/collectionstore.ts +544 -0
  134. package/src/globals/stores/consolestore.ts +54 -0
  135. package/src/globals/stores/focusnavcontroller.ts +522 -0
  136. package/src/globals/stores/friendstore/clanstore.ts +89 -0
  137. package/src/globals/stores/friendstore/friendchat.ts +646 -0
  138. package/src/globals/stores/friendstore/friendgroupstore.ts +187 -0
  139. package/src/globals/stores/friendstore/friendingamenotificationstore.ts +1 -0
  140. package/src/globals/stores/friendstore/friendslistfavoritesstore.ts +37 -0
  141. package/src/globals/stores/friendstore/friendsuifriendstore.ts +274 -0
  142. package/src/globals/stores/friendstore/index.ts +58 -0
  143. package/src/globals/stores/friendstore/shared.ts +318 -0
  144. package/src/globals/stores/gamerecordingstore.ts +367 -0
  145. package/src/globals/stores/index.ts +18 -0
  146. package/src/globals/stores/libraryuistore.ts +395 -0
  147. package/src/globals/stores/localizationmanager.ts +56 -0
  148. package/src/globals/stores/mainwindowbrowsermanager.ts +135 -0
  149. package/src/globals/stores/notificationstore.ts +298 -0
  150. package/src/globals/stores/popupmanager.ts +352 -0
  151. package/src/globals/stores/securitystore.ts +36 -0
  152. package/src/globals/stores/settingsstore.ts +134 -0
  153. package/src/globals/stores/steamuistore/gamepadbrowserview.ts +172 -0
  154. package/src/globals/stores/steamuistore/gamepaduiaudio.ts +117 -0
  155. package/src/globals/stores/steamuistore/index.ts +212 -0
  156. package/src/globals/stores/steamuistore/menu.ts +89 -0
  157. package/src/globals/stores/steamuistore/window.ts +466 -0
  158. package/src/globals/stores/storeitemcache.ts +347 -0
  159. package/src/globals/stores/urlstore.ts +150 -0
  160. package/src/modules/Router.ts +11 -77
  161. package/src/utils/index.ts +0 -1
  162. package/dist/globals/SteamClient.d.ts +0 -5
  163. package/dist/globals/SteamClient.js +0 -1
  164. package/dist/globals/stores.d.ts +0 -70
  165. package/src/globals/SteamClient.ts +0 -6
  166. package/src/globals/stores.ts +0 -74
  167. /package/dist/globals/{stores.js → shared/cm.js} +0 -0
@@ -0,0 +1,18 @@
1
+ export * from './app';
2
+ export * from './appdetailsstore';
3
+ export * from './appstore';
4
+ export * from './badgestore';
5
+ export * from './collectionstore';
6
+ export * from './consolestore';
7
+ export * from './focusnavcontroller';
8
+ export * from './friendstore';
9
+ export * from './gamerecordingstore';
10
+ export * from './libraryuistore';
11
+ export * from './localizationmanager';
12
+ export * from './mainwindowbrowsermanager';
13
+ export * from './notificationstore';
14
+ export * from './popupmanager';
15
+ export * from './securitystore';
16
+ export * from './settingsstore';
17
+ export * from './steamuistore';
18
+ export * from './urlstore';
@@ -0,0 +1,18 @@
1
+ export * from './app';
2
+ export * from './appdetailsstore';
3
+ export * from './appstore';
4
+ export * from './badgestore';
5
+ export * from './collectionstore';
6
+ export * from './consolestore';
7
+ export * from './focusnavcontroller';
8
+ export * from './friendstore';
9
+ export * from './gamerecordingstore';
10
+ export * from './libraryuistore';
11
+ export * from './localizationmanager';
12
+ export * from './mainwindowbrowsermanager';
13
+ export * from './notificationstore';
14
+ export * from './popupmanager';
15
+ export * from './securitystore';
16
+ export * from './settingsstore';
17
+ export * from './steamuistore';
18
+ export * from './urlstore';
@@ -0,0 +1,179 @@
1
+ import type { CSteamID } from '../shared';
2
+ import type { CMInterface } from '../shared/cm';
3
+ import type { CUserLocalStorage } from '../shared/storage';
4
+ import type { EAppType } from '../steam-client/App';
5
+ import type { CCollection, CCollectionBase, CCollectionFilterBase, CDynamicCollectionFilter, FilterOptionByIndex_t, FilterSpec_t } from './collectionstore';
6
+ import type { SteamUIWindowInstance } from './steamuistore/window';
7
+ import type { CStoreItem } from './storeitemcache';
8
+ declare enum EGameListView {
9
+ kNormal = 1,
10
+ kSingleCollection = 10,
11
+ kSearchResults = 11
12
+ }
13
+ export declare enum EAppPropertiesSection {
14
+ General = "general",
15
+ Compatibility = "compatibility",
16
+ Updates = "updates",
17
+ LocalFiles = "localfiles",
18
+ Language = "language",
19
+ Betas = "betas",
20
+ Controller = "controller",
21
+ Shortcut = "shortcut",
22
+ Dlc = "dlc",
23
+ Workshop = "workshop",
24
+ Feedback = "feedback"
25
+ }
26
+ export declare enum EControllerConfiguratorSection {
27
+ Main = "Main",
28
+ Summary = "Summary",
29
+ Preview = "Preview",
30
+ ActionSets = "ActionSets",
31
+ Buttons = "Buttons",
32
+ Triggers = "Triggers",
33
+ Sticks = "Sticks",
34
+ Touchpads = "Touchpads",
35
+ Gyroscopes = "Gyroscopes",
36
+ VirtualMenus = "VirtualMenus",
37
+ ChooseBinding = "ChooseBinding"
38
+ }
39
+ export declare enum ESettingsZooSection {
40
+ Dropdowns = "Dropdowns",
41
+ Modals = "Modals",
42
+ Buttons = "Buttons",
43
+ Sliders = "Sliders",
44
+ Toggles = "Toggles",
45
+ OtherControls = "Misc",
46
+ Glyphs = "Glyphs",
47
+ SVG = "SVG",
48
+ Input = "Input",
49
+ Type = "Type"
50
+ }
51
+ export declare enum ESettingsZooDevSection {
52
+ DeveloperOptions = "DeveloperOptions",
53
+ VRDeveloperOptions = "VRDeveloperOptions",
54
+ AppSpotlight = "AppSpotlight",
55
+ PlayNext = "PlayNext",
56
+ Notifications = "Notifications",
57
+ Share = "Share"
58
+ }
59
+ interface GameListSelection_t {
60
+ nAppId: number;
61
+ strCollectionId: string;
62
+ }
63
+ interface LibraryState_t {
64
+ bGroupedByCollection: boolean;
65
+ bGroupBySharedLibraries: boolean;
66
+ bSortedByRecent: boolean;
67
+ collectionFilter: FilterSpec_t;
68
+ collectionFilterGamepad: FilterSpec_t;
69
+ currentSelection: GameListSelection_t;
70
+ eGameListView: EGameListView;
71
+ mapCollapsedState: Record<string, boolean>;
72
+ nVersion: number;
73
+ }
74
+ interface NavigateLibraryArgsMap_t {
75
+ collection: number;
76
+ details: string;
77
+ downloads: undefined;
78
+ 'dynamic-collection': any;
79
+ event: string;
80
+ games: undefined;
81
+ library: undefined;
82
+ media: undefined;
83
+ recent: undefined;
84
+ 'shared-apps': any;
85
+ view: 'all' | 'all-collections' | 'games' | 'installed' | 'login' | 'recent' | 'software' | 'soundtracks' | 'tools' | 'videos';
86
+ appproperties: string;
87
+ apprunning: undefined;
88
+ controllerconfigurator: string;
89
+ gamepadapiosk: undefined;
90
+ search: undefined;
91
+ settings: 'general' | 'display' | 'internet' | 'bluetooth' | 'audio' | 'storage' | 'system' | 'internal' | 'developer' | 'controller' | 'downloads' | 'remoteplay' | 'library' | 'family';
92
+ settingszoo: ESettingsZooSection | ESettingsZooDevSection;
93
+ }
94
+ export interface CLibraryUIStore {
95
+ m_RecentGamesFirstApp: number;
96
+ m_bGameListGroupedByCollection: boolean;
97
+ m_bGameListGroupedBySharedLibraries: boolean;
98
+ m_bGameListSortedByRecent: boolean;
99
+ m_bIsCollectionEditorOpen: boolean;
100
+ m_bIsCollectionRenameOpen: boolean;
101
+ m_bIsSearchByTypePaneOpen: boolean;
102
+ m_cm: CMInterface;
103
+ m_collectionsAppFilter: CCollectionFilterBase;
104
+ m_collectionsAppFilterGamepad: CCollectionFilterBase;
105
+ m_currentAppFilter: CCollectionFilterBase;
106
+ m_eSelectedGameListView: EGameListView;
107
+ m_gameListSelection: GameListSelection_t;
108
+ m_latchedMostRecentApp: number;
109
+ m_localStorage: CUserLocalStorage;
110
+ m_mapLibrarySectionCollapseState: Map<string, boolean>;
111
+ m_setClientSuggestionIds: Set<number>;
112
+ m_setStoreSuggestionIds: Set<number>;
113
+ m_setStoreSuggestions: CStoreItem[];
114
+ BIsSearchByTypeActive(): boolean;
115
+ BIsSearchByTypePaneOpen(): boolean;
116
+ BIsSuggestionVisible(appid: number): boolean;
117
+ BIsTextSearchActive(): boolean;
118
+ CleanupCollapseStateMap(): void;
119
+ CollapseAll(): void;
120
+ EnsureLargeMode(): void;
121
+ ExitSearch(): void;
122
+ ExpandAll(): void;
123
+ ExpandOrCollapseAll(collapse: boolean): void;
124
+ FetchSearchSuggestions(query: string): Promise<void>;
125
+ GetActiveWindowInstance(): SteamUIWindowInstance;
126
+ GetCollectionList(): Array<CCollectionBase | CCollection>;
127
+ GetRecentGamesFirstApp(): number;
128
+ GetVisibleCollections(): Array<CCollectionBase | CCollection>;
129
+ InitializeAppFilter(state: LibraryState_t, param1?: boolean): CCollectionFilterBase;
130
+ IsCollapsed(collectionId: string): boolean;
131
+ IsGamepadUIWindowActive(wnd?: SteamUIWindowInstance): boolean;
132
+ NavigateForward(): void;
133
+ NavigateLibrary<K extends keyof NavigateLibraryArgsMap_t>(wnd: SteamUIWindowInstance | null, key: K, value?: NavigateLibraryArgsMap_t[K]): void;
134
+ NavigateToCollectionSaveDialog(param0: string): void;
135
+ NavigateToSharedAppsDesktopUI(json: string): void;
136
+ PreserveNavigation(): void;
137
+ ResetSearch(): void;
138
+ RestoreNavigation(): void;
139
+ SaveLocalState(): Promise<void>;
140
+ SelectCollectionsAppFilterOption<K extends keyof FilterOptionByIndex_t>(group: K, option: FilterOptionByIndex_t[K], value: boolean): Promise<void>;
141
+ SelectGameListView(param0: EGameListView, collectionId: string): void;
142
+ SelectGamepadCollectionsAppFilterOption<K extends keyof FilterOptionByIndex_t>(group: K, option: FilterOptionByIndex_t[K], value: boolean): Promise<void>;
143
+ SetCollectionEditorOpen(value: boolean): void;
144
+ SetCollectionRenameOpen(value: boolean): void;
145
+ SetGameListGroupedByCollection(value: boolean): void;
146
+ SetGameListGroupedBySharedLibrary(value: boolean): void;
147
+ SetGameListSelection(strCollectionId: string, nAppId: number): Promise<void>;
148
+ SetGameListSortedByRecent(value: boolean): void;
149
+ SetIsCollapsed(collectionId: string, value: boolean): void;
150
+ SetMultiSelectHooksForGameListSelection(): void;
151
+ SetRecentGamesFirstApp(appid: number): void;
152
+ SetSearchByTypePaneOpen(value: boolean): void;
153
+ SetSearchText(query: string): Promise<void>;
154
+ ShowCollectionViewWithAppTypes(...appTypes: EAppType[]): void;
155
+ ShowDurationControlDialog(callbacks: {
156
+ ConfirmContinue: () => void;
157
+ Cancel: () => void;
158
+ } | null): void;
159
+ ShowSharedAppsInLibrary(filter: CDynamicCollectionFilter, steamIds: number[]): void;
160
+ StartSearchByType(filter: CCollectionFilterBase): void;
161
+ toggleCollapsed(collectionId: string): void;
162
+ UpdateGameListSelection(): void;
163
+ get bIsGameListGroupedByCollection(): boolean;
164
+ get bIsGameListGroupedBySharedLibraries(): boolean;
165
+ get bIsGameListSortedByRecent(): boolean;
166
+ get clientSearchSuggestionIds(): Set<number>;
167
+ get collectionsAppFilter(): CCollectionFilterBase;
168
+ get collectionsAppFilterGamepad(): CCollectionFilterBase;
169
+ get currentAppFilter(): CCollectionFilterBase;
170
+ get currentCollectionID(): string;
171
+ get currentGameListSelection(): GameListSelection_t;
172
+ get currentUserSteamID(): CSteamID;
173
+ get isCollectionEditorOpen(): boolean;
174
+ get isCollectionRenameOpen(): boolean;
175
+ get searchSuggestionIds(): Set<number>;
176
+ get searchSuggestions(): CStoreItem[];
177
+ get selectedGameListView(): EGameListView;
178
+ }
179
+ export {};
@@ -0,0 +1,56 @@
1
+ var EGameListView;
2
+ (function (EGameListView) {
3
+ EGameListView[EGameListView["kNormal"] = 1] = "kNormal";
4
+ EGameListView[EGameListView["kSingleCollection"] = 10] = "kSingleCollection";
5
+ EGameListView[EGameListView["kSearchResults"] = 11] = "kSearchResults";
6
+ })(EGameListView || (EGameListView = {}));
7
+ export var EAppPropertiesSection;
8
+ (function (EAppPropertiesSection) {
9
+ EAppPropertiesSection["General"] = "general";
10
+ EAppPropertiesSection["Compatibility"] = "compatibility";
11
+ EAppPropertiesSection["Updates"] = "updates";
12
+ EAppPropertiesSection["LocalFiles"] = "localfiles";
13
+ EAppPropertiesSection["Language"] = "language";
14
+ EAppPropertiesSection["Betas"] = "betas";
15
+ EAppPropertiesSection["Controller"] = "controller";
16
+ EAppPropertiesSection["Shortcut"] = "shortcut";
17
+ EAppPropertiesSection["Dlc"] = "dlc";
18
+ EAppPropertiesSection["Workshop"] = "workshop";
19
+ EAppPropertiesSection["Feedback"] = "feedback";
20
+ })(EAppPropertiesSection || (EAppPropertiesSection = {}));
21
+ export var EControllerConfiguratorSection;
22
+ (function (EControllerConfiguratorSection) {
23
+ EControllerConfiguratorSection["Main"] = "Main";
24
+ EControllerConfiguratorSection["Summary"] = "Summary";
25
+ EControllerConfiguratorSection["Preview"] = "Preview";
26
+ EControllerConfiguratorSection["ActionSets"] = "ActionSets";
27
+ EControllerConfiguratorSection["Buttons"] = "Buttons";
28
+ EControllerConfiguratorSection["Triggers"] = "Triggers";
29
+ EControllerConfiguratorSection["Sticks"] = "Sticks";
30
+ EControllerConfiguratorSection["Touchpads"] = "Touchpads";
31
+ EControllerConfiguratorSection["Gyroscopes"] = "Gyroscopes";
32
+ EControllerConfiguratorSection["VirtualMenus"] = "VirtualMenus";
33
+ EControllerConfiguratorSection["ChooseBinding"] = "ChooseBinding";
34
+ })(EControllerConfiguratorSection || (EControllerConfiguratorSection = {}));
35
+ export var ESettingsZooSection;
36
+ (function (ESettingsZooSection) {
37
+ ESettingsZooSection["Dropdowns"] = "Dropdowns";
38
+ ESettingsZooSection["Modals"] = "Modals";
39
+ ESettingsZooSection["Buttons"] = "Buttons";
40
+ ESettingsZooSection["Sliders"] = "Sliders";
41
+ ESettingsZooSection["Toggles"] = "Toggles";
42
+ ESettingsZooSection["OtherControls"] = "Misc";
43
+ ESettingsZooSection["Glyphs"] = "Glyphs";
44
+ ESettingsZooSection["SVG"] = "SVG";
45
+ ESettingsZooSection["Input"] = "Input";
46
+ ESettingsZooSection["Type"] = "Type";
47
+ })(ESettingsZooSection || (ESettingsZooSection = {}));
48
+ export var ESettingsZooDevSection;
49
+ (function (ESettingsZooDevSection) {
50
+ ESettingsZooDevSection["DeveloperOptions"] = "DeveloperOptions";
51
+ ESettingsZooDevSection["VRDeveloperOptions"] = "VRDeveloperOptions";
52
+ ESettingsZooDevSection["AppSpotlight"] = "AppSpotlight";
53
+ ESettingsZooDevSection["PlayNext"] = "PlayNext";
54
+ ESettingsZooDevSection["Notifications"] = "Notifications";
55
+ ESettingsZooDevSection["Share"] = "Share";
56
+ })(ESettingsZooDevSection || (ESettingsZooDevSection = {}));
@@ -0,0 +1,18 @@
1
+ import type { ESteamRealm } from '../shared/enums';
2
+ import type { CCallbackList } from '../shared/interfaces';
3
+ import type { ELanguage } from '../steam-client/Settings';
4
+ export interface CLocalizationManager {
5
+ m_cbkTokensChanged: CCallbackList;
6
+ m_mapFallbackTokens: Map<string, string>;
7
+ m_mapTokens: Map<string, string>;
8
+ m_rgLocalesToUse: string[];
9
+ AddTokens(dict: Record<string, string>, fallback?: Record<string, string>): void;
10
+ BLooksLikeToken(value: string): boolean;
11
+ GetELanguageFallbackOrder(realm?: ESteamRealm): ELanguage[];
12
+ GetPreferredLocales(): string[];
13
+ GetTokensChangedCallbackList(): CCallbackList;
14
+ LocalizeString(token: string, failSilently?: boolean): string;
15
+ LocalizeIfToken(token: string, failSilently?: boolean): string;
16
+ LocalizeStringFromFallback(token: string): string;
17
+ SetPreferredLocales(locales: string[]): void;
18
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,62 @@
1
+ import type { Action, Location } from '../shared/history';
2
+ import type { CCallbackList } from '../shared/interfaces';
3
+ import type { BrowserViewHistory, BrowserViewPageSecurity, BrowserViewPopup } from '../steam-client/browser-view/BrowserViewPopup';
4
+ type SteamBrowserTab_t = 'community' | 'store' | 'me';
5
+ type SteamBrowserTabs_t = {
6
+ [key in SteamBrowserTab_t]: string;
7
+ };
8
+ export interface SteamBrowserHistoryState {
9
+ bExternal?: boolean;
10
+ strURL?: string;
11
+ }
12
+ interface TabbedBrowserWebPageRequest {
13
+ requestid: number;
14
+ strLastURL: string;
15
+ strTitle: string;
16
+ strURL: string;
17
+ }
18
+ interface CTabbedBrowserStore {
19
+ m_cbWebPageRequestsChanged: CCallbackList;
20
+ m_nActiveWebpageRequestID: number;
21
+ m_nWebPageRequestID: number;
22
+ m_rgWebPageRequests: TabbedBrowserWebPageRequest[];
23
+ AddWebPageRequest(url?: string, param1?: boolean): void;
24
+ GetWebPageRequestsChangedCallbackList(): CCallbackList;
25
+ RemoveAllRequests(): void;
26
+ RemoveWebPageRequest(requestId: number): boolean;
27
+ ReorderWebPageRequest(param0: number, param1: number): void;
28
+ Set(activeWebpageRequestId: number, webPageRequestId: number, webPageRequests: TabbedBrowserWebPageRequest[]): void;
29
+ UpdateWebPageRequest(requestId?: number, url?: string, title?: string): boolean;
30
+ }
31
+ export interface CMainWindowBrowserManager {
32
+ m_URL: string;
33
+ m_URLRequested: string;
34
+ m_bExpectImportantReplace: boolean;
35
+ m_bLoading: boolean;
36
+ m_bRouterChangeTroggeredBySync: boolean;
37
+ m_browser: BrowserViewPopup;
38
+ m_browserHistory: BrowserViewHistory;
39
+ m_history: any;
40
+ m_lastActiveTab: SteamBrowserTab_t;
41
+ m_lastActiveTabURLs: SteamBrowserTabs_t;
42
+ m_lastLocation: Location<SteamBrowserHistoryState>;
43
+ m_loadErrorCode: number | null;
44
+ m_loadErrorDesc: string | null;
45
+ m_loadErrorURL: string | null;
46
+ m_pageSecurity: BrowserViewPageSecurity | null;
47
+ m_rootTabURLs: SteamBrowserTabs_t;
48
+ m_strTitle: string;
49
+ m_tabbedBrowserStore: CTabbedBrowserStore;
50
+ m_tsWaitingForBrowserChange: number | undefined;
51
+ ActivateTab(tab: SteamBrowserTab_t): void;
52
+ BIsWaitingForHistoryCallback(): boolean;
53
+ GetLastActiveTab(): SteamBrowserTab_t;
54
+ GetTabForURL(url: string): SteamBrowserTab_t | 'ignore' | 'maintain';
55
+ LoadURL(url: string): void;
56
+ Reload(): void;
57
+ ShowURL(url: string, state: SteamBrowserHistoryState): void;
58
+ SyncWithNewBrowserHistory(entry: BrowserViewHistory): void;
59
+ SyncWithNewRouterEvent(location: Location<SteamBrowserHistoryState>, action: Action): void;
60
+ UpdateActiveTab(url: string): void;
61
+ }
62
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,242 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ESteamUISound } from '../shared/enums';
3
+ import type { CCallbackList } from '../shared/interfaces';
4
+ import { EClientNotificationType } from '../steam-client/Notifications';
5
+ import type { EParentalFeature } from '../steam-client/Parental';
6
+ import type { EACState } from '../steam-client/system';
7
+ export declare enum EBroadcastPermission {
8
+ k_EBroadcastPermissionDisabled = 0,
9
+ k_EBroadcastPermissionFriendsApprove = 1,
10
+ k_EBroadcastPermissionFriendsAllowed = 2,
11
+ k_EBroadcastPermissionPublic = 3,
12
+ k_EBroadcastPermissionSubscribers = 4
13
+ }
14
+ export declare enum ESteamNotificationSource {
15
+ Client = 0,
16
+ Server = 1
17
+ }
18
+ export declare enum ESteamNotificationAction {
19
+ New = 0,
20
+ Update = 1,
21
+ Remove = 2
22
+ }
23
+ interface SteamNotificationData {
24
+ bCritical: boolean;
25
+ body: string;
26
+ duration: number;
27
+ logo: ReactNode;
28
+ onClick: () => void;
29
+ playSound: boolean;
30
+ showNewIndicator: boolean;
31
+ showToast: boolean;
32
+ sound: ESteamUISound;
33
+ timestamp: Date;
34
+ title: string;
35
+ }
36
+ type RequiredProcessNotifArgs = Record<EClientNotificationType, Record<string, any>> & {
37
+ [EClientNotificationType.Invalid]: {};
38
+ [EClientNotificationType.DownloadComplete]: {};
39
+ [EClientNotificationType.FriendInvite]: {};
40
+ [EClientNotificationType.FriendInGame]: {};
41
+ [EClientNotificationType.FriendOnline]: {};
42
+ [EClientNotificationType.Achievement]: {
43
+ achieved(): boolean;
44
+ };
45
+ [EClientNotificationType.LowBattery]: {};
46
+ [EClientNotificationType.SystemUpdate]: {};
47
+ [EClientNotificationType.FriendMessage]: {};
48
+ [EClientNotificationType.GroupChatMessage]: {
49
+ tag(): string;
50
+ };
51
+ [EClientNotificationType.FriendInviteRollup]: {};
52
+ [EClientNotificationType.FamilySharingDeviceAuthorizationChanged]: {};
53
+ [EClientNotificationType.FamilySharingStopPlaying]: {};
54
+ [EClientNotificationType.FamilySharingLibraryAvailable]: {};
55
+ [EClientNotificationType.Screenshot]: {};
56
+ [EClientNotificationType.CloudSyncFailure]: {};
57
+ [EClientNotificationType.CloudSyncConflict]: {};
58
+ [EClientNotificationType.IncomingVoiceChat]: {};
59
+ [EClientNotificationType.ClaimSteamDeckRewards]: {};
60
+ [EClientNotificationType.GiftReceived]: {};
61
+ [EClientNotificationType.ItemAnnouncement]: {};
62
+ [EClientNotificationType.HardwareSurvey]: {};
63
+ [EClientNotificationType.LowDiskSpace]: {};
64
+ [EClientNotificationType.BatteryTemperature]: {};
65
+ [EClientNotificationType.DockUnsupportedFirmware]: {};
66
+ [EClientNotificationType.PeerContentUpload]: {};
67
+ [EClientNotificationType.CannotReadControllerGuideButton]: {};
68
+ [EClientNotificationType.Comment]: {};
69
+ [EClientNotificationType.Wishlist]: {};
70
+ [EClientNotificationType.TradeOffer]: {};
71
+ [EClientNotificationType.AsyncGame]: {};
72
+ [EClientNotificationType.General]: {};
73
+ [EClientNotificationType.HelpRequest]: {};
74
+ [EClientNotificationType.OverlaySplashScreen]: {};
75
+ [EClientNotificationType.BroadcastAvailableToWatch]: {};
76
+ [EClientNotificationType.TimedTrialRemaining]: {};
77
+ [EClientNotificationType.LoginRefresh]: {};
78
+ [EClientNotificationType.MajorSale]: {};
79
+ [EClientNotificationType.TimerExpired]: {};
80
+ [EClientNotificationType.ModeratorMsg]: {};
81
+ [EClientNotificationType.SteamInputActionSetChanged]: {};
82
+ [EClientNotificationType.RemoteClientConnection]: {};
83
+ [EClientNotificationType.RemoteClientStartStream]: {};
84
+ [EClientNotificationType.StreamingClientConnection]: {};
85
+ [EClientNotificationType.FamilyInvite]: {};
86
+ [EClientNotificationType.PlaytimeWarning]: {};
87
+ [EClientNotificationType.FamilyPurchaseRequest]: {};
88
+ [EClientNotificationType.FamilyPurchaseRequestResponse]: {};
89
+ [EClientNotificationType.ParentalFeatureRequest]: {};
90
+ [EClientNotificationType.ParentalPlaytimeRequest]: {};
91
+ [EClientNotificationType.GameRecordingError]: {};
92
+ [EClientNotificationType.ParentalFeatureResponse]: {};
93
+ [EClientNotificationType.ParentalPlaytimeResponse]: {};
94
+ [EClientNotificationType.RequestedGameAdded]: {};
95
+ [EClientNotificationType.ClipDownloaded]: {};
96
+ [EClientNotificationType.GameRecordingStart]: {};
97
+ [EClientNotificationType.GameRecordingStop]: {};
98
+ [EClientNotificationType.GameRecordingUserMarkerAdded]: {};
99
+ [EClientNotificationType.GameRecordingInstantClip]: {};
100
+ };
101
+ export interface SteamNotification<T extends EClientNotificationType = EClientNotificationType> {
102
+ bNewIndicator: boolean;
103
+ data: SteamNotificationData;
104
+ eSource: ESteamNotificationSource;
105
+ eType: T;
106
+ nToastDurationMS: number;
107
+ notificationID: number;
108
+ rtCreated: number;
109
+ }
110
+ export interface TrayNotification {
111
+ eType: EClientNotificationType;
112
+ notifications: SteamNotification[];
113
+ }
114
+ export interface NotificationTarget {
115
+ eFeature: EParentalFeature;
116
+ fnNotificationResolved: () => void;
117
+ fnShowModal: () => void;
118
+ fnTray: (target: NotificationTarget, notificationsInTray: TrayNotification[]) => void;
119
+ nRemoveFromTraySec: number;
120
+ toastDurationMS: number;
121
+ type: EClientNotificationType;
122
+ }
123
+ export interface CNotificationStore {
124
+ m_LastSystemUpdateNotification: Pick<SteamNotification, 'eType' | 'rtCreated'> | null;
125
+ m_bCheckBatteryAfterResume: boolean;
126
+ m_bShowClientItemAnnouncementToasts: boolean;
127
+ m_bShowedHighBatteryTempNotification: boolean;
128
+ m_bShowedLowBatteryTempNotification: boolean;
129
+ m_bShowedRefreshLogin: boolean;
130
+ m_bTestNotifications: boolean;
131
+ m_cbkCurrentToast: CCallbackList<[TrayNotification[]]>;
132
+ m_cbkNotificationTray: CCallbackList<[TrayNotification[]]>;
133
+ m_hPendingToastTimer: number;
134
+ m_hTrayRemoveTimer: number;
135
+ m_iLastBatteryLevelNotification: number;
136
+ m_mapAppOverlayToasts: Map<number, SteamNotification[]>;
137
+ m_mapToastLastShown: Map<number, Map<string, number>>;
138
+ m_nNextTestNotificationID: number;
139
+ m_nUnviewedNotifications: number;
140
+ m_rgContextsRenderingToasts: number[];
141
+ m_rgNotificationToasts: SteamNotification[];
142
+ m_rgNotificationTray: TrayNotification[];
143
+ m_rgPendingToasts: SteamNotification[];
144
+ m_rtNextTrayRemove: number;
145
+ m_setContextsRenderingToasts: Set<any>;
146
+ AddAppOverlayNotification(appId: number, notificationId: number, type: EClientNotificationType, param3: any, notificationResolvedCallback: () => void): void;
147
+ AddBroadcastAvailableToWatch(appId: number, permission: EBroadcastPermission): void;
148
+ AddOverlaySplashScreen(appId: number): void;
149
+ AddTimedTrialRemaining(appid: number, icon: string, offline: boolean, allowedSeconds: number, playedSeconds?: number): void;
150
+ AppOverlayRunning(appId: number, value: boolean): void;
151
+ BAnyContextRenderingToasts(): boolean;
152
+ BAnyToastDisplayAlone(toasts: SteamNotification[]): boolean;
153
+ BContextRenderingToasts(e: any): boolean;
154
+ BIsToastRateLimited(e: number, t: any, r: number): boolean;
155
+ BIsUserInGame(): boolean;
156
+ BNextToastDisplayAlone(appId: number): boolean;
157
+ BShowToast(e: any, t: any): boolean;
158
+ BSkipSystemUpdateNotification(type: EClientNotificationType): boolean;
159
+ ChooseSound(data: SteamNotificationData, t: any): any | null;
160
+ ClearAllToastNotifications(): void;
161
+ ClearRemoveFromTrayTimer(): void;
162
+ Dev_SendTestNotifications(): void;
163
+ DispatchNextToast(): void;
164
+ DoScreenshotNotification(screenshotHandle: number, description: string): void;
165
+ ExpireToast(toast: SteamNotification): void;
166
+ GetCurrentAppOverlayNotification(appId: number): SteamNotification;
167
+ GetCurrentToastNotification(): SteamNotification | null;
168
+ GetNotificationTargets(): Record<EClientNotificationType, SteamNotification>;
169
+ GetNotificationsInTray(): [CNotificationStore['m_rgNotificationTray'], CNotificationStore['m_cbkNotificationTray']];
170
+ IncomingVoiceChat(steamId: number, show: boolean): void;
171
+ LoadServerToastRequiredData(steamId: number): boolean;
172
+ MarkNotificationRead(notificationId: number): void;
173
+ NotifyClaimSteamDeckRewards(): void;
174
+ NotifyLowDiskSpace(folderIndex: number): void;
175
+ NotifyTimerExpired(appId: number): void;
176
+ OnBatteryLevelChange(flLevel: number, eACState: EACState, bHasBattery: boolean): void;
177
+ OnBatteryTemperatureChange(temperature: number): void;
178
+ OnNewNotificationReceived(notification: SteamNotification): void;
179
+ OnNotification(notificationIndex: number, type: EClientNotificationType, data: ArrayBuffer): void;
180
+ OnNotificationUpdateReceived(toast: SteamNotification, action: ESteamNotificationAction): void;
181
+ OnScreenshotStarted(): void;
182
+ PendingLoginRefresh(showedRefreshLogin: boolean): void;
183
+ PlayNotificationSound(toast: SteamNotification): void;
184
+ PopNextToastNotification(appId: number): SteamNotification;
185
+ ProcessNotification<T extends EClientNotificationType>(target: NotificationTarget, notification: SteamNotification<T> & RequiredProcessNotifArgs[T], action: ESteamNotificationAction): void;
186
+ RemoveFromToastsWhere(callback: (toast: SteamNotification) => void): void;
187
+ RemoveFromTrayWhere(callback: (toast: SteamNotification) => void): void;
188
+ RemoveScreenshotNotification(screenshotHandle: number): void;
189
+ RunDebugTestsWhenServicesReady(e: boolean): void;
190
+ ScheduleRemoveFromTray(delaySeconds: number): void;
191
+ SendPendingServerToasts(): void;
192
+ SetContextRenderingToast(context: any, add: boolean): void;
193
+ Viewed(): void;
194
+ TestAchievement(appId: number, showProgress: boolean): void;
195
+ TestAsyncGame(appId: number): void;
196
+ TestCloudSyncConflict(appId: number): void;
197
+ TestCloudSyncFailure(appId: number): void;
198
+ TestComment(): void;
199
+ TestDownloadComplete(appId: number): void;
200
+ TestFamilyInvite(steamId: number): void;
201
+ TestFamilyPurchaseRequest(steamId: number): void;
202
+ TestFamilyPurchaseRequestResponse(steamId: number): void;
203
+ TestFamilySharing(): void;
204
+ TestFriendIngame(gameName: string, steamId: number): void;
205
+ TestFriendInvite(steamId: number): void;
206
+ TestFriendInviteRollup(newInviteCount: number): void;
207
+ TestFriendMessage(steamId: number, messageBody: string): void;
208
+ TestFriendOnline(steamId: number): void;
209
+ TestGRE(): void;
210
+ TestGRUM(): void;
211
+ TestGameRecordingInstantClip(): void;
212
+ TestGeneralAnnouncement(): void;
213
+ TestGift(steamId: number): void;
214
+ TestGroupChatMention(steamId: number, messageBody: string): void;
215
+ TestGroupChatMessage(steamId: number, messageBody: string): void;
216
+ TestHardwareSurvey(): void;
217
+ TestHelpRequest(): void;
218
+ TestIncomingVoiceChat(): void;
219
+ TestItemAnnouncement(steamId: number): Promise<void>;
220
+ TestLowBatteryNotification(percentage: number): void;
221
+ TestMajorSale(): void;
222
+ TestModeratorMessage(): void;
223
+ TestParentalFeatureRequest(steamId: number): void;
224
+ TestParentalFeatureResponse(steamId: number): void;
225
+ TestParentalPlaytimeRequest(steamId: number): void;
226
+ TestParentalPlaytimeResponse(steamId: number): void;
227
+ TestPlaytestInvite(): void;
228
+ TestPlaytimeWarning(): void;
229
+ TestReadControllerGuide(): void;
230
+ TestRemoteClientConnection(): void;
231
+ TestRemoteClientStartStream(): void;
232
+ TestRequestedGameAdded(steamid64?: string): void;
233
+ TestScreenshot(): void;
234
+ TestSteamInputActionSetChanged(): void;
235
+ TestStreamingClientConnection(): void;
236
+ TestSystemUpdate(notificationType: 1 | 2): void;
237
+ TestTradeOffer(): void;
238
+ TestTradeReversal(): void;
239
+ TestUnsupportedDock(): void;
240
+ TestWishlist(appId: number): void;
241
+ }
242
+ export {};
@@ -0,0 +1,20 @@
1
+ import { EClientNotificationType } from '../steam-client/Notifications';
2
+ export var EBroadcastPermission;
3
+ (function (EBroadcastPermission) {
4
+ EBroadcastPermission[EBroadcastPermission["k_EBroadcastPermissionDisabled"] = 0] = "k_EBroadcastPermissionDisabled";
5
+ EBroadcastPermission[EBroadcastPermission["k_EBroadcastPermissionFriendsApprove"] = 1] = "k_EBroadcastPermissionFriendsApprove";
6
+ EBroadcastPermission[EBroadcastPermission["k_EBroadcastPermissionFriendsAllowed"] = 2] = "k_EBroadcastPermissionFriendsAllowed";
7
+ EBroadcastPermission[EBroadcastPermission["k_EBroadcastPermissionPublic"] = 3] = "k_EBroadcastPermissionPublic";
8
+ EBroadcastPermission[EBroadcastPermission["k_EBroadcastPermissionSubscribers"] = 4] = "k_EBroadcastPermissionSubscribers";
9
+ })(EBroadcastPermission || (EBroadcastPermission = {}));
10
+ export var ESteamNotificationSource;
11
+ (function (ESteamNotificationSource) {
12
+ ESteamNotificationSource[ESteamNotificationSource["Client"] = 0] = "Client";
13
+ ESteamNotificationSource[ESteamNotificationSource["Server"] = 1] = "Server";
14
+ })(ESteamNotificationSource || (ESteamNotificationSource = {}));
15
+ export var ESteamNotificationAction;
16
+ (function (ESteamNotificationAction) {
17
+ ESteamNotificationAction[ESteamNotificationAction["New"] = 0] = "New";
18
+ ESteamNotificationAction[ESteamNotificationAction["Update"] = 1] = "Update";
19
+ ESteamNotificationAction[ESteamNotificationAction["Remove"] = 2] = "Remove";
20
+ })(ESteamNotificationAction || (ESteamNotificationAction = {}));