@decky/ui 4.2.0 → 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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ErrorBoundary:
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare const ErrorBoundary: FC<{
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
|
-
}
|
|
4
|
+
}>;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import { FC, SVGAttributes } from 'react';
|
|
2
|
-
|
|
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
|
-
import {
|
|
1
|
+
import { FC, PropsWithChildren } from "react";
|
|
2
2
|
import { findModuleExport } from "../webpack";
|
|
3
3
|
|
|
4
4
|
export const ErrorBoundary = findModuleExport(
|
|
5
5
|
(e) => e.InstallErrorReportingStore && e?.prototype?.Reset && e?.prototype?.componentDidCatch,
|
|
6
|
-
) as
|
|
6
|
+
) as FC<PropsWithChildren>; // Actually a class but @types/react is broken lol
|
|
@@ -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>;
|