decky-frontend-lib
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -7,4 +7,5 @@ export * from './Button'; | ||
export * from './Slider'; | ||
export * from './SteamSpinner'; | ||
export * from './Spinner'; | ||
export * from './static-classes'; | ||
export * from './Toggle'; |
@@ -7,4 +7,5 @@ export * from './Button'; | ||
export * from './Slider'; | ||
export * from './SteamSpinner'; | ||
export * from './Spinner'; | ||
export * from './static-classes'; | ||
export * from './Toggle'; |
@@ -1,2 +0,3 @@ | ||
import { FC } from 'react'; | ||
import { FC, ReactNode } from 'react'; | ||
export declare const showContextMenu: (children: ReactNode, parent?: EventTarget) => void; | ||
interface MenuProps { | ||
@@ -3,0 +4,0 @@ label: string; |
import { findModuleChild } from '../webpack'; | ||
export const showContextMenu = findModuleChild((m) => { | ||
if (typeof m !== 'object') | ||
return undefined; | ||
for (let prop in m) { | ||
if (typeof m[prop] === 'function' && m[prop].toString().includes('stopPropagation))')) { | ||
return m[prop]; | ||
} | ||
} | ||
}); | ||
export const Menu = findModuleChild((m) => { | ||
@@ -3,0 +12,0 @@ if (typeof m !== 'object') |
@@ -1,2 +0,10 @@ | ||
import { ReactNode } from 'react'; | ||
export declare const showModal: (children: ReactNode, parent: EventTarget) => void; | ||
import { FC, ReactNode } from 'react'; | ||
export declare const showModal: (children: ReactNode, parent?: EventTarget) => void; | ||
interface ModalRootProps { | ||
onMiddleButton?(): void; | ||
onCancel?(): void; | ||
onOK?(): void; | ||
bAllowFullSize?: boolean; | ||
} | ||
export declare const ModalRoot: FC<ModalRootProps>; | ||
export {}; |
import { findModuleChild } from '../webpack'; | ||
// TODO: there is another argument, figure out what it does | ||
export const showModal = findModuleChild((m) => { | ||
@@ -6,3 +7,3 @@ if (typeof m !== 'object') | ||
for (let prop in m) { | ||
if (typeof m[prop] === 'function' && m[prop].toString().includes('stopPropagation))')) { | ||
if (typeof m[prop] === 'function' && m[prop].toString().includes('bHideMainWindowForPopouts:!0')) { | ||
return m[prop]; | ||
@@ -12,1 +13,10 @@ } | ||
}); | ||
export const ModalRoot = findModuleChild(m => { | ||
if (typeof m !== "object") | ||
return undefined; | ||
for (let prop in m) { | ||
if (!m[prop]?.prototype?.OK && m[prop]?.prototype?.Cancel && m[prop]?.prototype?.render) { | ||
return m[prop]; | ||
} | ||
} | ||
}); |
import { IconsModule } from '../webpack'; | ||
// interface ButtonProps { | ||
// label?: string; | ||
// description?: string; | ||
// layout?: 'below'; | ||
// onClick?(e: MouseEvent): void; | ||
// disabled?: boolean; | ||
// bottomSeparator?: boolean; | ||
// } | ||
// TODO type this and other icons? | ||
export const Spinner = Object.values(IconsModule).find((mod) => mod?.toString && /Spinner\)}\),.\.createElement\(\"path\",{d:\"M18 /.test(mod.toString())); |
{ | ||
"name": "decky-frontend-lib", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A library for building decky plugins", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -7,4 +7,5 @@ export * from './Button'; | ||
export * from './Slider'; | ||
export * from './SteamSpinner'; | ||
export * from './Spinner'; | ||
export * from './static-classes'; | ||
export * from './Toggle'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
48553
865