mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-24 11:58:48 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93c59d8026 | ||
|
|
0f9fb5a3b8 |
@@ -1,3 +1,10 @@
|
|||||||
|
## [4.7.3](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v4.7.2...v4.7.3) (2024-10-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **components:** fix missing components on oct 2 2024 beta ([0f9fb5a](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/0f9fb5a3b8ef4f9978025a28323ab080fb0e7a4c))
|
||||||
|
|
||||||
## [4.7.2](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v4.7.1...v4.7.2) (2024-09-16)
|
## [4.7.2](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v4.7.1...v4.7.2) (2024-09-16)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@decky/ui",
|
"name": "@decky/ui",
|
||||||
"version": "4.7.2",
|
"version": "4.7.3",
|
||||||
"description": "A library for interacting with the Steam frontend in Decky plugins and elsewhere.",
|
"description": "A library for interacting with the Steam frontend in Decky plugins and elsewhere.",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|||||||
@@ -28,9 +28,12 @@ export const DialogCheckbox = Object.values(
|
|||||||
}),
|
}),
|
||||||
).find(
|
).find(
|
||||||
(m: any) =>
|
(m: any) =>
|
||||||
m.contextType &&
|
|
||||||
m.prototype?.render.toString().includes('fallback:') &&
|
|
||||||
m?.prototype?.SetChecked &&
|
m?.prototype?.SetChecked &&
|
||||||
m?.prototype?.Toggle &&
|
m?.prototype?.Toggle &&
|
||||||
m?.prototype?.GetPanelElementProps,
|
m?.prototype?.GetPanelElementProps &&
|
||||||
|
// beta || stable as of oct 2 2024
|
||||||
|
(m?.prototype?.render?.toString().includes('="DialogCheckbox"') || (
|
||||||
|
m.contextType &&
|
||||||
|
m.prototype?.render.toString().includes('fallback:')
|
||||||
|
))
|
||||||
) as FC<DialogCheckboxProps>;
|
) as FC<DialogCheckboxProps>;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { FC, ReactNode } from 'react';
|
import { FC, ReactNode } from 'react';
|
||||||
|
|
||||||
import { findSP } from '../utils';
|
import { findSP } from '../utils';
|
||||||
import { Export, findModule, findModuleByExport, findModuleExport } from '../webpack';
|
import { Export, findModule, findModuleDetailsByExport, findModuleExport } from '../webpack';
|
||||||
|
|
||||||
// All of the popout options + strTitle are related. Proper usage is not yet known...
|
// All of the popout options + strTitle are related. Proper usage is not yet known...
|
||||||
export interface ShowModalProps {
|
export interface ShowModalProps {
|
||||||
@@ -105,7 +105,7 @@ interface SimpleModalProps {
|
|||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
const ModalModule = findModuleByExport((e: Export) => e?.toString().includes('.ModalPosition,fallback:'), 5);
|
const [ModalModule, _ModalPosition] = findModuleDetailsByExport((e: Export) => e?.toString().includes('.ModalPosition'), 5)
|
||||||
|
|
||||||
const ModalModuleProps = ModalModule ? Object.values(ModalModule) : [];
|
const ModalModuleProps = ModalModule ? Object.values(ModalModule) : [];
|
||||||
|
|
||||||
@@ -114,6 +114,4 @@ export const SimpleModal = ModalModuleProps.find((prop) => {
|
|||||||
return string?.includes('.ShowPortalModal()') && string?.includes('.OnElementReadyCallbacks.Register(');
|
return string?.includes('.ShowPortalModal()') && string?.includes('.OnElementReadyCallbacks.Register(');
|
||||||
}) as FC<SimpleModalProps>;
|
}) as FC<SimpleModalProps>;
|
||||||
|
|
||||||
export const ModalPosition = ModalModuleProps.find((prop) =>
|
export const ModalPosition = _ModalPosition as FC<SimpleModalProps>;
|
||||||
prop?.toString().includes('.ModalPosition,fallback:'),
|
|
||||||
) as FC<SimpleModalProps>;
|
|
||||||
|
|||||||
@@ -29,5 +29,6 @@ export interface SliderFieldProps extends ItemProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const SliderField = Object.values(CommonUIModule).find((mod: any) =>
|
export const SliderField = Object.values(CommonUIModule).find((mod: any) =>
|
||||||
mod?.toString()?.includes('SliderField,fallback'),
|
// stable || beta as of oct 2 2024
|
||||||
|
mod?.toString()?.includes('SliderField,fallback') || mod?.toString()?.includes("SliderField\",")
|
||||||
) as FC<SliderFieldProps>;
|
) as FC<SliderFieldProps>;
|
||||||
|
|||||||
@@ -11,5 +11,6 @@ export interface ToggleFieldProps extends ItemProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const ToggleField = Object.values(CommonUIModule).find((mod: any) =>
|
export const ToggleField = Object.values(CommonUIModule).find((mod: any) =>
|
||||||
mod?.render?.toString()?.includes('ToggleField,fallback'),
|
// stable || beta as of oct 2 2024
|
||||||
|
mod?.render?.toString()?.includes('ToggleField,fallback') || mod?.render?.toString()?.includes("ToggleField\",")
|
||||||
) as FC<ToggleFieldProps>;
|
) as FC<ToggleFieldProps>;
|
||||||
|
|||||||
Reference in New Issue
Block a user