From 1c79bbb1ae56df3fb4901338d463ed94804ffce9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:28:23 +0000 Subject: [PATCH] Update dependency typescript to v5.4.5 (#12422) * Update dependency typescript to v5.4.5 * Fix types Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> --- package.json | 2 +- src/accessibility/context_menu/ContextMenuButton.tsx | 3 ++- .../context_menu/ContextMenuTooltipButton.tsx | 3 ++- src/accessibility/roving/RovingAccessibleButton.tsx | 2 ++ .../roving/RovingAccessibleTooltipButton.tsx | 2 ++ src/components/views/elements/AccessibleTooltipButton.tsx | 3 ++- .../views/settings/devices/DeviceExpandDetailsButton.tsx | 2 +- src/components/views/spaces/SpaceTreeLevel.tsx | 2 +- yarn.lock | 8 ++++---- 9 files changed, 17 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index f854cb3e1a..44cfc253ac 100644 --- a/package.json +++ b/package.json @@ -223,7 +223,7 @@ "stylelint-config-standard": "^36.0.0", "stylelint-scss": "^6.0.0", "ts-node": "^10.9.1", - "typescript": "5.4.3" + "typescript": "5.4.5" }, "peerDependencies": { "postcss": "^8.4.19", diff --git a/src/accessibility/context_menu/ContextMenuButton.tsx b/src/accessibility/context_menu/ContextMenuButton.tsx index 8f6113dbd2..35dd986f8e 100644 --- a/src/accessibility/context_menu/ContextMenuButton.tsx +++ b/src/accessibility/context_menu/ContextMenuButton.tsx @@ -28,12 +28,13 @@ type Props = ComponentProps export const ContextMenuButton = forwardRef(function ( - { label, isExpanded, children, onClick, onContextMenu, ...props }: Props, + { label, isExpanded, children, onClick, onContextMenu, element, ...props }: Props, ref: Ref, ) { return ( = ComponentProps export const ContextMenuTooltipButton = forwardRef(function ( - { isExpanded, children, onClick, onContextMenu, ...props }: Props, + { isExpanded, children, onClick, onContextMenu, element, ...props }: Props, ref: Ref, ) { return ( ({ onFocus, onMouseOver, focusOnMouseOver, + element, ...props }: Props): JSX.Element => { const [onFocusInternal, isActive, ref] = useRovingTabIndex(inputRef); return ( { onFocusInternal(); onFocus?.(event); diff --git a/src/accessibility/roving/RovingAccessibleTooltipButton.tsx b/src/accessibility/roving/RovingAccessibleTooltipButton.tsx index 6594f2782e..76927c1773 100644 --- a/src/accessibility/roving/RovingAccessibleTooltipButton.tsx +++ b/src/accessibility/roving/RovingAccessibleTooltipButton.tsx @@ -28,12 +28,14 @@ type Props = Omit({ inputRef, onFocus, + element, ...props }: Props): JSX.Element => { const [onFocusInternal, isActive, ref] = useRovingTabIndex(inputRef); return ( { onFocusInternal(); onFocus?.(event); diff --git a/src/components/views/elements/AccessibleTooltipButton.tsx b/src/components/views/elements/AccessibleTooltipButton.tsx index 4bb5d6efff..759643da1c 100644 --- a/src/components/views/elements/AccessibleTooltipButton.tsx +++ b/src/components/views/elements/AccessibleTooltipButton.tsx @@ -64,7 +64,7 @@ type Props = ComponentProps( - { title, tooltip, children, forceHide, alignment, onHideTooltip, tooltipClassName, ...props }: Props, + { title, tooltip, children, forceHide, alignment, onHideTooltip, tooltipClassName, element, ...props }: Props, ref: Ref, ) { const [hover, setHover] = useState(false); @@ -100,6 +100,7 @@ const AccessibleTooltipButton = forwardRef(function = Omit< ComponentProps>, - "aria-label" | "title" | "kind" | "className" | "onClick" + "aria-label" | "title" | "kind" | "className" | "onClick" | "element" > & { isExpanded: boolean; onClick: () => void; diff --git a/src/components/views/spaces/SpaceTreeLevel.tsx b/src/components/views/spaces/SpaceTreeLevel.tsx index 6b43399c28..d654330025 100644 --- a/src/components/views/spaces/SpaceTreeLevel.tsx +++ b/src/components/views/spaces/SpaceTreeLevel.tsx @@ -51,7 +51,7 @@ import { KeyBindingAction } from "../../../accessibility/KeyboardShortcuts"; type ButtonProps = Omit< ComponentProps>, - "title" | "onClick" | "size" + "title" | "onClick" | "size" | "element" > & { space?: Room; spaceKey?: SpaceKey; diff --git a/yarn.lock b/yarn.lock index d930dce08d..90f020dc32 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9243,10 +9243,10 @@ typed-array-length@^1.0.4, typed-array-length@^1.0.5: is-typed-array "^1.1.13" possible-typed-array-names "^1.0.0" -typescript@5.4.3: - version "5.4.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.3.tgz#5c6fedd4c87bee01cd7a528a30145521f8e0feff" - integrity sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg== +typescript@5.4.5: + version "5.4.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" + integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== ua-parser-js@^1.0.2: version "1.0.37"