decky-frontend-lib
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -1,4 +0,4 @@ | ||
import { VFC } from 'react'; | ||
import { VFC, ReactNode } from 'react'; | ||
import { ItemProps } from './Item'; | ||
export interface ProgressBarItem extends ItemProps { | ||
export interface ProgressBarItemProps extends ItemProps { | ||
indeterminate?: boolean; | ||
@@ -9,2 +9,14 @@ nTransitionSec?: number; | ||
} | ||
export declare const ProgressBarItem: VFC<ProgressBarItem>; | ||
export interface ProgressBarProps { | ||
indeterminate?: boolean; | ||
nTransitionSec?: number; | ||
nProgress?: number; | ||
focusable?: boolean; | ||
} | ||
export interface ProgressBarWithInfoProps extends ProgressBarProps { | ||
sTimeRemaining?: ReactNode; | ||
sOperationText?: ReactNode; | ||
} | ||
export declare const ProgressBar: VFC<ProgressBarProps>; | ||
export declare const ProgressBarWithInfo: VFC<ProgressBarWithInfoProps>; | ||
export declare const ProgressBarItem: VFC<ProgressBarItemProps>; |
import { findModuleChild } from '../webpack'; | ||
export const ProgressBar = findModuleChild((m) => { | ||
if (typeof m !== 'object') | ||
return undefined; | ||
for (let prop in m) { | ||
if (m[prop]?.toString()?.includes('.ProgressBar,"standard"==')) | ||
return m[prop]; | ||
} | ||
}); | ||
export const ProgressBarWithInfo = findModuleChild((m) => { | ||
if (typeof m !== 'object') | ||
return undefined; | ||
for (let prop in m) { | ||
if (m[prop]?.toString()?.includes('.ProgressBarFieldStatus},')) | ||
return m[prop]; | ||
} | ||
}); | ||
export const ProgressBarItem = findModuleChild((m) => { | ||
@@ -3,0 +19,0 @@ if (typeof m !== 'object') |
{ | ||
"name": "decky-frontend-lib", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A library for building decky plugins", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78568
1675