decky-frontend-lib
Advanced tools
Comparing version 0.9.1 to 0.10.0
@@ -1,5 +0,10 @@ | ||
import { ReactNode, VFC } from "react"; | ||
export interface FocusableProps { | ||
import { HTMLAttributes, ReactNode, VFC } from "react"; | ||
export interface FocusableProps extends HTMLAttributes<HTMLDivElement> { | ||
children: ReactNode; | ||
"flow-children"?: string; | ||
focusClassName?: string; | ||
focusWithinClassName?: string; | ||
onActivate?: () => void; | ||
onCancel?: () => void; | ||
} | ||
export declare const HorizontalFocus: VFC<FocusableProps>; | ||
export declare const Focusable: VFC<FocusableProps>; |
import { findModuleChild } from "../webpack"; | ||
export const HorizontalFocus = findModuleChild(m => { | ||
if (typeof m !== "object") | ||
export const Focusable = findModuleChild((m) => { | ||
if (typeof m !== 'object') | ||
return undefined; | ||
for (let prop in m) { | ||
if (m[prop]?.toString()?.includes('"children","alignItems","spacing"')) { | ||
if (m[prop]?.render?.toString()?.includes('["flow-children","onActivate","onCancel","focusClassName",')) | ||
return m[prop]; | ||
} | ||
} | ||
}); |
{ | ||
"name": "decky-frontend-lib", | ||
"version": "0.9.1", | ||
"version": "0.10.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
68715
1413