@decky/ui 4.10.4 → 4.10.6
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.
|
@@ -11,7 +11,10 @@ const MappedDialogDivs = new Map(Object.values(CommonDialogDivs).map((m) => {
|
|
|
11
11
|
return [null, null];
|
|
12
12
|
}
|
|
13
13
|
}));
|
|
14
|
-
export const DialogHeader = MappedDialogDivs.get('DialogHeader')
|
|
14
|
+
export const DialogHeader = (MappedDialogDivs.get('DialogHeader') || Object.values(CommonUIModule).find((component) => {
|
|
15
|
+
const str = component?.render?.toString?.();
|
|
16
|
+
return str?.includes("role:\"heading\"") && str.includes(")(\"DialogHeader\",");
|
|
17
|
+
}));
|
|
15
18
|
export const DialogSubHeader = MappedDialogDivs.get('DialogSubHeader');
|
|
16
19
|
export const DialogFooter = MappedDialogDivs.get('DialogFooter');
|
|
17
20
|
export const DialogLabel = MappedDialogDivs.get('DialogLabel');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["../src/class-mapper.ts","../src/index.ts","../src/logger.ts","../src/webpack.ts","../src/components/Button.ts","../src/components/ButtonItem.ts","../src/components/Carousel.ts","../src/components/ControlsList.ts","../src/components/Dialog.ts","../src/components/DialogCheckbox.ts","../src/components/Dropdown.ts","../src/components/ErrorBoundary.ts","../src/components/Field.ts","../src/components/FocusRing.ts","../src/components/Focusable.ts","../src/components/FooterLegend.ts","../src/components/Item.ts","../src/components/Marquee.ts","../src/components/Menu.ts","../src/components/Modal.ts","../src/components/Panel.ts","../src/components/ProgressBar.ts","../src/components/Scroll.ts","../src/components/SidebarNavigation.ts","../src/components/SliderField.ts","../src/components/Spinner.ts","../src/components/SteamSpinner.ts","../src/components/Tabs.tsx","../src/components/TextField.ts","../src/components/Toggle.ts","../src/components/ToggleField.ts","../src/components/index.ts","../src/custom-components/ColorPickerModal.tsx","../src/custom-components/ReorderableList.tsx","../src/custom-components/SuspensefulImage.tsx","../src/custom-components/index.ts","../src/custom-hooks/index.ts","../src/custom-hooks/useQuickAccessVisible.ts","../src/deck-hooks/index.ts","../src/deck-hooks/useParams.ts","../src/globals/SteamClient.ts","../src/globals/index.ts","../src/globals/stores.ts","../src/globals/steam-client/App.ts","../src/globals/steam-client/Auth.ts","../src/globals/steam-client/Broadcast.ts","../src/globals/steam-client/Browser.ts","../src/globals/steam-client/ClientNotifications.ts","../src/globals/steam-client/Cloud.ts","../src/globals/steam-client/CommunityItems.ts","../src/globals/steam-client/Console.ts","../src/globals/steam-client/Customization.ts","../src/globals/steam-client/Downloads.ts","../src/globals/steam-client/FamilySharing.ts","../src/globals/steam-client/FriendSettings.ts","../src/globals/steam-client/Friends.ts","../src/globals/steam-client/GameNotes.ts","../src/globals/steam-client/GameRecording.ts","../src/globals/steam-client/GameSessions.ts","../src/globals/steam-client/Input.ts","../src/globals/steam-client/InstallFolder.ts","../src/globals/steam-client/Installs.ts","../src/globals/steam-client/Messaging.ts","../src/globals/steam-client/Music.ts","../src/globals/steam-client/Notifications.ts","../src/globals/steam-client/OpenVR.ts","../src/globals/steam-client/Overlay.ts","../src/globals/steam-client/Parental.ts","../src/globals/steam-client/RemotePlay.ts","../src/globals/steam-client/Screenshots.ts","../src/globals/steam-client/ServerBrowser.ts","../src/globals/steam-client/Settings.ts","../src/globals/steam-client/SharedConnection.ts","../src/globals/steam-client/Stats.ts","../src/globals/steam-client/SteamChina.ts","../src/globals/steam-client/Storage.ts","../src/globals/steam-client/Streaming.ts","../src/globals/steam-client/UI.ts","../src/globals/steam-client/URL.ts","../src/globals/steam-client/Updates.ts","../src/globals/steam-client/User.ts","../src/globals/steam-client/WebChat.ts","../src/globals/steam-client/WebUITransport.ts","../src/globals/steam-client/Window.ts","../src/globals/steam-client/index.ts","../src/globals/steam-client/shared.ts","../src/globals/steam-client/browser-view/BrowserViewPopup.ts","../src/globals/steam-client/browser-view/index.ts","../src/globals/steam-client/system/Audio.ts","../src/globals/steam-client/system/AudioDevice.ts","../src/globals/steam-client/system/Bluetooth.ts","../src/globals/steam-client/system/Devkit.ts","../src/globals/steam-client/system/Display.ts","../src/globals/steam-client/system/DisplayManager.ts","../src/globals/steam-client/system/Dock.ts","../src/globals/steam-client/system/Perf.ts","../src/globals/steam-client/system/Report.ts","../src/globals/steam-client/system/UI.ts","../src/globals/steam-client/system/index.ts","../src/globals/steam-client/system/network/Device.ts","../src/globals/steam-client/system/network/index.ts","../src/modules/Router.ts","../src/modules/index.ts","../src/utils/index.ts","../src/utils/patcher.ts","../src/utils/static-classes.ts","../src/utils/react/fc.ts","../src/utils/react/react.ts","../src/utils/react/treepatcher.ts"],"version":"5.9.2"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decky/ui",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.6",
|
|
4
4
|
"description": "A library for interacting with the Steam frontend in Decky plugins and elsewhere.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -41,30 +41,30 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@commitlint/cli": "^19.
|
|
45
|
-
"@commitlint/config-conventional": "^19.
|
|
46
|
-
"@commitlint/cz-commitlint": "^19.
|
|
44
|
+
"@commitlint/cli": "^19.8.1",
|
|
45
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
46
|
+
"@commitlint/cz-commitlint": "^19.8.1",
|
|
47
47
|
"@semantic-release/changelog": "^6.0.3",
|
|
48
48
|
"@semantic-release/git": "^10.0.1",
|
|
49
|
-
"@types/jest": "^29.5.
|
|
49
|
+
"@types/jest": "^29.5.14",
|
|
50
50
|
"@types/react": "18.3.3",
|
|
51
51
|
"@types/react-dom": "18.3.0",
|
|
52
52
|
"@types/react-router": "5.1.20",
|
|
53
|
-
"commitizen": "^4.3.
|
|
54
|
-
"husky": "^9.
|
|
53
|
+
"commitizen": "^4.3.1",
|
|
54
|
+
"husky": "^9.1.7",
|
|
55
55
|
"import-sort-style-module": "^6.0.0",
|
|
56
56
|
"jest": "^29.7.0",
|
|
57
57
|
"minimist": "^1.2.8",
|
|
58
|
-
"prettier": "^3.
|
|
58
|
+
"prettier": "^3.6.2",
|
|
59
59
|
"prettier-plugin-import-sort": "^0.0.7",
|
|
60
|
-
"semantic-release": "^24.
|
|
60
|
+
"semantic-release": "^24.2.7",
|
|
61
61
|
"shx": "^0.3.4",
|
|
62
|
-
"ts-jest": "^29.1
|
|
62
|
+
"ts-jest": "^29.4.1",
|
|
63
63
|
"typedoc": "^0.25.13",
|
|
64
|
-
"typedoc-plugin-mdn-links": "^3.
|
|
64
|
+
"typedoc-plugin-mdn-links": "^3.3.8",
|
|
65
65
|
"typedoc-plugin-missing-exports": "^2.3.0",
|
|
66
66
|
"typedoc-wikijs-theme": "^1.0.5",
|
|
67
|
-
"typescript": "^5.
|
|
67
|
+
"typescript": "^5.9.2"
|
|
68
68
|
},
|
|
69
69
|
"pnpm": {
|
|
70
70
|
"peerDependencyRules": {
|
package/src/components/Dialog.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, FC, ReactNode, RefAttributes } from 'react';
|
|
2
2
|
|
|
3
|
-
import { CommonUIModule } from '../webpack';
|
|
3
|
+
import { CommonUIModule, Module } from '../webpack';
|
|
4
4
|
import { FooterLegendProps } from './FooterLegend';
|
|
5
5
|
|
|
6
6
|
export interface DialogCommonProps extends RefAttributes<HTMLDivElement> {
|
|
@@ -68,7 +68,12 @@ const MappedDialogDivs = new Map(
|
|
|
68
68
|
}),
|
|
69
69
|
);
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
// Old | New
|
|
72
|
+
export const DialogHeader = (MappedDialogDivs.get('DialogHeader') || Object.values(CommonUIModule).find((component: Module) => {
|
|
73
|
+
const str = component?.render?.toString?.();
|
|
74
|
+
return str?.includes("role:\"heading\"") && str.includes(")(\"DialogHeader\",");
|
|
75
|
+
})) as FC<DialogCommonProps>;
|
|
76
|
+
|
|
72
77
|
export const DialogSubHeader = MappedDialogDivs.get('DialogSubHeader') as FC<DialogCommonProps>;
|
|
73
78
|
export const DialogFooter = MappedDialogDivs.get('DialogFooter') as FC<DialogCommonProps>;
|
|
74
79
|
export const DialogLabel = MappedDialogDivs.get('DialogLabel') as FC<DialogCommonProps>;
|