@decky/ui 4.11.3 → 4.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Dropdown.d.ts +1 -0
- package/dist/components/Dropdown.js +3 -1
- package/dist/components/ErrorBoundary.js +1 -1
- package/dist/components/Field.js +1 -1
- package/dist/components/Item.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/{Dropdown.ts → Dropdown.tsx} +3 -1
- package/src/components/ErrorBoundary.ts +1 -1
- package/src/components/Field.ts +2 -1
- package/src/components/Item.ts +1 -0
|
@@ -28,4 +28,5 @@ export interface DropdownProps {
|
|
|
28
28
|
export declare const Dropdown: FC<DropdownProps>;
|
|
29
29
|
export interface DropdownItemProps extends DropdownProps, ItemProps {
|
|
30
30
|
}
|
|
31
|
+
export declare const DropdownItemInternal: FC<DropdownItemProps>;
|
|
31
32
|
export declare const DropdownItem: FC<DropdownItemProps>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { CommonUIModule } from '../webpack';
|
|
2
3
|
import { createPropListRegex } from '../utils';
|
|
3
4
|
export const Dropdown = Object.values(CommonUIModule).find((mod) => mod?.prototype?.SetSelectedOption && mod?.prototype?.BuildMenu);
|
|
4
5
|
const dropdownItemRegex = createPropListRegex(["dropDownControlRef", "description"], false);
|
|
5
|
-
export const
|
|
6
|
+
export const DropdownItemInternal = Object.values(CommonUIModule).find((mod) => mod?.toString && dropdownItemRegex.test(mod.toString()));
|
|
7
|
+
export const DropdownItem = ((args) => _jsx(DropdownItemInternal, { childrenContainerWidth: "min", ...args }));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { findModuleExport } from "../webpack";
|
|
2
|
-
export const ErrorBoundary = findModuleExport((e) => e
|
|
2
|
+
export const ErrorBoundary = findModuleExport((e) => e?.prototype?.Reset && e?.prototype?.componentDidCatch && e.prototype?.render?.toString().includes("lastErrorKey"));
|
package/dist/components/Field.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { findModuleExport } from '../webpack';
|
|
2
|
-
export const Field = findModuleExport((e) => e?.render?.toString()
|
|
2
|
+
export const Field = findModuleExport((e) => (e?.toString()?.includes('().Field') && e?.toString()?.includes('"shift-children-below"')) || e?.render?.toString()?.includes('"shift-children-below"'));
|
|
@@ -1 +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.
|
|
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.tsx","../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.ts","../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
|
@@ -42,6 +42,8 @@ export const Dropdown = Object.values(CommonUIModule).find(
|
|
|
42
42
|
export interface DropdownItemProps extends DropdownProps, ItemProps {}
|
|
43
43
|
|
|
44
44
|
const dropdownItemRegex = createPropListRegex(["dropDownControlRef", "description"], false);
|
|
45
|
-
export const
|
|
45
|
+
export const DropdownItemInternal = Object.values(CommonUIModule).find((mod: any) =>
|
|
46
46
|
mod?.toString && dropdownItemRegex.test(mod.toString()),
|
|
47
47
|
) as FC<DropdownItemProps>;
|
|
48
|
+
|
|
49
|
+
export const DropdownItem = ((args: DropdownItemProps) => <DropdownItemInternal childrenContainerWidth="min" {...args}/>) as FC<DropdownItemProps>;
|
|
@@ -2,5 +2,5 @@ import { FC, PropsWithChildren } from "react";
|
|
|
2
2
|
import { findModuleExport } from "../webpack";
|
|
3
3
|
|
|
4
4
|
export const ErrorBoundary = findModuleExport(
|
|
5
|
-
(e) => e
|
|
5
|
+
(e) => e?.prototype?.Reset && e?.prototype?.componentDidCatch && e.prototype?.render?.toString().includes("lastErrorKey"),
|
|
6
6
|
) as FC<PropsWithChildren>; // Actually a class but @types/react is broken lol
|
package/src/components/Field.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface FieldProps extends FooterLegendProps {
|
|
|
24
24
|
onClick?: (e: CustomEvent | MouseEvent) => void;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
// new || old
|
|
28
|
+
export const Field = findModuleExport((e: Export) => (e?.toString()?.includes('().Field') && e?.toString()?.includes('"shift-children-below"')) || e?.render?.toString()?.includes('"shift-children-below"')) as FC<
|
|
28
29
|
FieldProps & RefAttributes<HTMLDivElement>
|
|
29
30
|
>;
|
package/src/components/Item.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface ItemProps {
|
|
|
7
7
|
layout?: 'below' | 'inline';
|
|
8
8
|
icon?: ReactNode;
|
|
9
9
|
bottomSeparator?: 'standard' | 'thick' | 'none';
|
|
10
|
+
childrenContainerWidth?: 'min' | 'max' | 'fixed'; // Does not work with layout==='below'
|
|
10
11
|
indentLevel?: number;
|
|
11
12
|
tooltip?: string;
|
|
12
13
|
highlightOnFocus?: boolean;
|