@decky/ui 4.2.1 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,7 @@
1
- import { FC, SVGAttributes } from 'react';
2
- export declare const SteamSpinner: FC<SVGAttributes<SVGElement>>;
1
+ import { FC, ReactNode, SVGAttributes } from 'react';
2
+ interface SteamSpinnerProps {
3
+ children?: ReactNode;
4
+ background?: "transparent";
5
+ }
6
+ export declare const SteamSpinner: FC<SVGAttributes<SVGElement> & SteamSpinnerProps>;
7
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decky/ui",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "A library for interacting with the Steam frontend in Decky plugins and elsewhere.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,7 +1,12 @@
1
- import { FC, SVGAttributes } from 'react';
1
+ import { FC, ReactNode, SVGAttributes } from 'react';
2
2
 
3
3
  import { Export, findModuleExport } from '../webpack';
4
4
 
5
+ interface SteamSpinnerProps {
6
+ children?: ReactNode;
7
+ background?: "transparent"; // defaults to black seemingly, but only "transparent" is checked against
8
+ }
9
+
5
10
  export const SteamSpinner = findModuleExport(
6
11
  (e: Export) => e?.toString?.()?.includes('Steam Spinner') && e?.toString?.()?.includes('src'),
7
- ) as FC<SVGAttributes<SVGElement>>;
12
+ ) as FC<SVGAttributes<SVGElement> & SteamSpinnerProps>;