Skip to content

Commit 080bf0f

Browse files
committed
refactor: Bump all frontend dependencies
1 parent 1c62fb6 commit 080bf0f

14 files changed

Lines changed: 2594 additions & 1679 deletions

File tree

custom_components/scene_presets/frontend/scene_presets_panel.js

Lines changed: 18 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/App.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import {PresetApplyPage} from "./pages/PresetApplyPage";
33
import {Category, Preset} from "./types";
44
import {useSessionStorage} from "./hooks/useSessionStorage";
55

6-
declare global {
6+
declare module "react" {
77
namespace JSX {
88
interface IntrinsicElements {
99
["ha-app-layout"]: any;
1010
["app-header"]: any;
11-
["app-toolbar"]: any
12-
["ha-menu-button"]: any
11+
["app-toolbar"]: any;
12+
["ha-menu-button"]: any;
1313
["ha-entity-toggle"]: any;
1414
["ha-top-app-bar-fixed"]: any;
1515
["ha-selector"]: any;
@@ -30,7 +30,7 @@ export const App : React.FunctionComponent<{
3030
}> = ({
3131
hass,
3232
narrow,
33-
}): JSX.Element => {
33+
}): React.JSX.Element => {
3434
const [categories, setCategories] = useSessionStorage<Array<Category>>("scene_presets_categories",[]);
3535
const [presets, setPresets] = useSessionStorage<Array<Preset>>("scene_presets_presets",[]);
3636

js/components/DynamicSceneTile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const DynamicSceneTile :React.FunctionComponent<{
1515
transition,
1616
imgSrc,
1717
onClick,
18-
}): JSX.Element => {
18+
}): React.JSX.Element => {
1919
return (
2020
<div
2121
className={"tile"}

js/components/PresetTile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const PresetTile :React.FunctionComponent<{
1717

1818
onFavClick,
1919
isFav
20-
}): JSX.Element => {
20+
}): React.JSX.Element => {
2121
// These two variables are _somehow_ required because without the change in key, the icon won't change even though we get rerendered ??
2222
const favedIcon = <HaIconButton
2323
key={"id_fav"}

js/components/hass/building_blocks/HaDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface HaDialogProps {
88
}
99

1010
class HaDialog extends Component<HaDialogProps> {
11-
private elementRef: React.RefObject<HTMLInputElement>;
11+
private elementRef: React.RefObject<HTMLInputElement | null>;
1212

1313
constructor(props: HaDialogProps) {
1414
super(props);

js/components/hass/building_blocks/HaIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface HaIconProps {
77
}
88

99
class HaIcon extends Component<HaIconProps> {
10-
private elementRef: React.RefObject<HTMLInputElement>;
10+
private elementRef: React.RefObject<HTMLInputElement | null>;
1111
private icon: string;
1212
private size: number;
1313

js/components/hass/building_blocks/HaIconButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface HaIconButtonProps {
1010
}
1111

1212
class HaIconButton extends Component<HaIconButtonProps> {
13-
private elementRef: React.RefObject<HTMLInputElement>;
13+
private elementRef: React.RefObject<HTMLInputElement | null>;
1414
private icon: string;
1515
private size: number;
1616
private iconSize: number;

js/components/hass/building_blocks/HaSwitch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface HaSwitchProps {
66
}
77

88
class HaSwitch extends Component<HaSwitchProps> {
9-
private elementRef: React.RefObject<HTMLInputElement>;
9+
private elementRef: React.RefObject<HTMLInputElement | null>;
1010

1111
constructor(props: HaSwitchProps) {
1212
super(props);

js/components/hass/building_blocks/MwcButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface MwcButtonProps {
77
}
88

99
class MwcButton extends Component<MwcButtonProps> {
10-
private elementRef: React.RefObject<HTMLInputElement>;
10+
private elementRef: React.RefObject<HTMLInputElement | null>;
1111
private label: string;
1212
private slot: string | undefined;
1313

js/components/hass/selectors/HaSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface HaSelectorProps {
88
}
99

1010
abstract class HaSelector<P> extends Component<P & HaSelectorProps> {
11-
private elementRef: React.RefObject<HTMLElement>;
11+
private elementRef: React.RefObject<HTMLElement | null>;
1212

1313
constructor(props: P & HaSelectorProps) {
1414
super(props);

0 commit comments

Comments
 (0)