Compare commits

...

5 Commits

Author SHA1 Message Date
semantic-release-bot
9a728611f4 chore(release): 1.2.2 [CI SKIP] 2022-07-25 19:30:30 +00:00
AAGaming
97997adfaf fix(Modal): add more props to typings 2022-07-25 15:29:38 -04:00
semantic-release-bot
279069ee34 chore(release): 1.2.1 [CI SKIP] 2022-07-13 01:07:46 +00:00
AAGaming
944a9024ff fix(ProgressBar): extend correct prop type 2022-07-12 21:06:46 -04:00
AAGaming
0a2220b4b4 chore(ProgressBar): formatting 2022-07-12 20:45:56 -04:00
5 changed files with 24 additions and 6 deletions

View File

@@ -1,3 +1,17 @@
## [1.2.2](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v1.2.1...v1.2.2) (2022-07-25)
### Bug Fixes
* **Modal:** add more props to typings ([97997ad](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/97997adfaf1a68ef436279e6e48f34f5eaa9531c))
## [1.2.1](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v1.2.0...v1.2.1) (2022-07-13)
### Bug Fixes
* **ProgressBar:** extend correct prop type ([944a902](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/944a9024ff20f0b596869564d014d7dd73e74254))
# [1.2.0](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v1.1.0...v1.2.0) (2022-07-13) # [1.2.0](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v1.1.0...v1.2.0) (2022-07-13)

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "decky-frontend-lib", "name": "decky-frontend-lib",
"version": "1.2.0", "version": "1.2.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "decky-frontend-lib", "name": "decky-frontend-lib",
"version": "1.2.0", "version": "1.2.2",
"hasInstallScript": true, "hasInstallScript": true,
"license": "GPL-2.0-or-later", "license": "GPL-2.0-or-later",
"devDependencies": { "devDependencies": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "decky-frontend-lib", "name": "decky-frontend-lib",
"version": "1.2.0", "version": "1.2.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",

View File

@@ -16,7 +16,13 @@ export interface ModalRootProps {
onMiddleButton?(): void; onMiddleButton?(): void;
onCancel?(): void; onCancel?(): void;
onOK?(): void; onOK?(): void;
onEscKeypress?(): void;
className?: string;
modalClassName?: string;
bAllowFullSize?: boolean; bAllowFullSize?: boolean;
bDestructiveWarning?: boolean;
bDisableBackgroundDismiss?: boolean;
bHideCloseIcon?: boolean;
} }
export const ModalRoot = findModuleChild((m) => { export const ModalRoot = findModuleChild((m) => {

View File

@@ -10,7 +10,6 @@ export interface ProgressBarItemProps extends ItemProps {
focusable?: boolean; focusable?: boolean;
} }
export interface ProgressBarProps { export interface ProgressBarProps {
indeterminate?: boolean; indeterminate?: boolean;
nTransitionSec?: number; nTransitionSec?: number;
@@ -18,7 +17,7 @@ export interface ProgressBarProps {
focusable?: boolean; focusable?: boolean;
} }
export interface ProgressBarWithInfoProps extends ProgressBarProps { export interface ProgressBarWithInfoProps extends ProgressBarItemProps {
sTimeRemaining?: ReactNode; sTimeRemaining?: ReactNode;
sOperationText?: ReactNode; sOperationText?: ReactNode;
} }
@@ -37,7 +36,6 @@ export const ProgressBarWithInfo = findModuleChild((m) => {
} }
}) as VFC<ProgressBarWithInfoProps>; }) as VFC<ProgressBarWithInfoProps>;
export const ProgressBarItem = findModuleChild((m) => { export const ProgressBarItem = findModuleChild((m) => {
if (typeof m !== 'object') return undefined; if (typeof m !== 'object') return undefined;
for (let prop in m) { for (let prop in m) {