mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-24 03:48:48 +02:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d9150c2556 | ||
|
|
cd0635e94f | ||
|
|
443c7850d7 | ||
|
|
d24136ecb6 |
14
CHANGELOG.md
14
CHANGELOG.md
@@ -1,3 +1,17 @@
|
|||||||
|
## [3.16.2](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v3.16.1...v3.16.2) (2022-12-11)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **Marquee:** replace default export with named export ([cd0635e](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/cd0635e94f98499f9f5fc24a7fd4b93efe7dfc38))
|
||||||
|
|
||||||
|
## [3.16.1](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v3.16.0...v3.16.1) (2022-12-11)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **FooterLegend:** change description types to ReactNode ([#62](https://github.com/SteamDeckHomebrew/decky-frontend-lib/issues/62)) ([d24136e](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/d24136ecb6b0c5239b68723e8f92a4822aa7b590))
|
||||||
|
|
||||||
# [3.16.0](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v3.15.0...v3.16.0) (2022-12-11)
|
# [3.16.0](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v3.15.0...v3.16.0) (2022-12-11)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "decky-frontend-lib",
|
"name": "decky-frontend-lib",
|
||||||
"version": "3.16.0",
|
"version": "3.16.2",
|
||||||
"description": "A library for building decky plugins",
|
"description": "A library for building decky plugins",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import { ReactNode } from 'react';
|
||||||
|
|
||||||
export enum GamepadButton {
|
export enum GamepadButton {
|
||||||
INVALID,
|
INVALID,
|
||||||
OK,
|
OK,
|
||||||
@@ -42,16 +44,16 @@ export interface GamepadEventDetail {
|
|||||||
source: number;
|
source: number;
|
||||||
}
|
}
|
||||||
export declare type ActionDescriptionMap = {
|
export declare type ActionDescriptionMap = {
|
||||||
[key in GamepadButton]?: string
|
[key in GamepadButton]?: ReactNode
|
||||||
}
|
}
|
||||||
export declare type GamepadEvent = CustomEvent<GamepadEventDetail>;
|
export declare type GamepadEvent = CustomEvent<GamepadEventDetail>;
|
||||||
export interface FooterLegendProps {
|
export interface FooterLegendProps {
|
||||||
actionDescriptionMap?: ActionDescriptionMap;
|
actionDescriptionMap?: ActionDescriptionMap;
|
||||||
onOKActionDescription?: string;
|
onOKActionDescription?: ReactNode;
|
||||||
onCancelActionDescription?: string;
|
onCancelActionDescription?: ReactNode;
|
||||||
onSecondaryActionDescription?: string;
|
onSecondaryActionDescription?: ReactNode;
|
||||||
onOptionsActionDescription?: string;
|
onOptionsActionDescription?: ReactNode;
|
||||||
onMenuActionDescription?: string;
|
onMenuActionDescription?: ReactNode;
|
||||||
onButtonDown?: (evt: GamepadEvent) => void;
|
onButtonDown?: (evt: GamepadEvent) => void;
|
||||||
onButtonUp?: (evt: GamepadEvent) => void;
|
onButtonUp?: (evt: GamepadEvent) => void;
|
||||||
onOKButton?: (evt: GamepadEvent) => void;
|
onOKButton?: (evt: GamepadEvent) => void;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { FC, CSSProperties } from 'react';
|
import { CSSProperties, FC } from 'react';
|
||||||
|
|
||||||
import { findModuleChild } from '../webpack';
|
import { findModuleChild } from '../webpack';
|
||||||
|
|
||||||
export interface MarqueeProps {
|
export interface MarqueeProps {
|
||||||
@@ -14,7 +15,7 @@ export interface MarqueeProps {
|
|||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Marquee: FC<MarqueeProps> = findModuleChild((m) => {
|
export const Marquee: FC<MarqueeProps> = findModuleChild((m) => {
|
||||||
if (typeof m !== 'object') return;
|
if (typeof m !== 'object') return;
|
||||||
for (const prop in m) {
|
for (const prop in m) {
|
||||||
if (m[prop]?.toString && m[prop].toString().includes('.Marquee') && m[prop].toString().includes('--fade-length')) {
|
if (m[prop]?.toString && m[prop].toString().includes('.Marquee') && m[prop].toString().includes('--fade-length')) {
|
||||||
@@ -23,5 +24,3 @@ const Marquee: FC<MarqueeProps> = findModuleChild((m) => {
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
});
|
});
|
||||||
|
|
||||||
export default Marquee;
|
|
||||||
|
|||||||
Reference in New Issue
Block a user