Update npm non-major dependencies (#31516)
* Update npm non-major dependencies * Run prettier 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>
This commit is contained in:
@@ -12,8 +12,10 @@ import { ReleaseAnnouncement as ReleaseAnnouncementCompound } from "@vector-im/c
|
||||
import { ReleaseAnnouncementStore, type Feature } from "../../stores/ReleaseAnnouncementStore";
|
||||
import { useIsReleaseAnnouncementOpen } from "../../hooks/useIsReleaseAnnouncementOpen";
|
||||
|
||||
interface ReleaseAnnouncementProps
|
||||
extends Omit<ComponentProps<typeof ReleaseAnnouncementCompound>, "open" | "onClick"> {
|
||||
interface ReleaseAnnouncementProps extends Omit<
|
||||
ComponentProps<typeof ReleaseAnnouncementCompound>,
|
||||
"open" | "onClick"
|
||||
> {
|
||||
feature: Feature;
|
||||
}
|
||||
|
||||
|
||||
@@ -187,8 +187,8 @@ export default class RoomStatusBar extends React.PureComponent<IProps, IState> {
|
||||
// if it's a resource limit exceeded error: those are shown in the top bar.
|
||||
const errorIsMauError = Boolean(
|
||||
this.state.syncStateData &&
|
||||
this.state.syncStateData.error &&
|
||||
this.state.syncStateData.error.name === "M_RESOURCE_LIMIT_EXCEEDED",
|
||||
this.state.syncStateData.error &&
|
||||
this.state.syncStateData.error.name === "M_RESOURCE_LIMIT_EXCEEDED",
|
||||
);
|
||||
return this.state.syncState === "ERROR" && !errorIsMauError;
|
||||
}
|
||||
|
||||
@@ -22,8 +22,10 @@ export type ListContext<Context> = {
|
||||
context: Context;
|
||||
};
|
||||
|
||||
export interface IListViewProps<Item, Context>
|
||||
extends Omit<VirtuosoProps<Item, ListContext<Context>>, "data" | "itemContent" | "context"> {
|
||||
export interface IListViewProps<Item, Context> extends Omit<
|
||||
VirtuosoProps<Item, ListContext<Context>>,
|
||||
"data" | "itemContent" | "context"
|
||||
> {
|
||||
/**
|
||||
* The array of items to display in the virtualized list.
|
||||
* Each item will be passed to getItemComponent for rendering.
|
||||
|
||||
@@ -34,8 +34,10 @@ type DialogAesthetics = Partial<{
|
||||
};
|
||||
}>;
|
||||
|
||||
export interface InteractiveAuthDialogProps<T = unknown>
|
||||
extends Pick<InteractiveAuthProps<T>, "makeRequest" | "authData"> {
|
||||
export interface InteractiveAuthDialogProps<T = unknown> extends Pick<
|
||||
InteractiveAuthProps<T>,
|
||||
"makeRequest" | "authData"
|
||||
> {
|
||||
// matrix client to use for UI auth requests
|
||||
matrixClient: MatrixClient;
|
||||
|
||||
|
||||
@@ -177,12 +177,10 @@ class RoomSettingsDialog extends React.Component<IProps, IState> {
|
||||
RoomSettingsTab.Notifications,
|
||||
_td("notifications|enable_prompt_toast_title"),
|
||||
"mx_RoomSettingsDialog_notificationsIcon",
|
||||
(
|
||||
<NotificationSettingsTab
|
||||
roomId={this.state.room.roomId}
|
||||
closeSettingsFn={() => this.props.onFinished(true)}
|
||||
/>
|
||||
),
|
||||
<NotificationSettingsTab
|
||||
roomId={this.state.room.roomId}
|
||||
closeSettingsFn={() => this.props.onFinished(true)}
|
||||
/>,
|
||||
"RoomSettingsNotifications",
|
||||
),
|
||||
);
|
||||
@@ -214,12 +212,10 @@ class RoomSettingsDialog extends React.Component<IProps, IState> {
|
||||
RoomSettingsTab.Advanced,
|
||||
_td("common|advanced"),
|
||||
"mx_RoomSettingsDialog_warningIcon",
|
||||
(
|
||||
<AdvancedRoomSettingsTab
|
||||
room={this.state.room}
|
||||
closeSettingsFn={() => this.props.onFinished(true)}
|
||||
/>
|
||||
),
|
||||
<AdvancedRoomSettingsTab
|
||||
room={this.state.room}
|
||||
closeSettingsFn={() => this.props.onFinished(true)}
|
||||
/>,
|
||||
"RoomSettingsAdvanced",
|
||||
),
|
||||
);
|
||||
|
||||
@@ -46,22 +46,21 @@ import { TextualEventViewModel } from "../viewmodels/event-tiles/TextualEventVie
|
||||
import { ElementCallEventType } from "../call-types";
|
||||
|
||||
// Subset of EventTile's IProps plus some mixins
|
||||
export interface EventTileTypeProps
|
||||
extends Pick<
|
||||
EventTileProps,
|
||||
| "mxEvent"
|
||||
| "highlights"
|
||||
| "highlightLink"
|
||||
| "showUrlPreview"
|
||||
| "forExport"
|
||||
| "getRelationsForEvent"
|
||||
| "editState"
|
||||
| "replacingEventId"
|
||||
| "permalinkCreator"
|
||||
| "callEventGrouper"
|
||||
| "isSeeingThroughMessageHiddenForModeration"
|
||||
| "inhibitInteraction"
|
||||
> {
|
||||
export interface EventTileTypeProps extends Pick<
|
||||
EventTileProps,
|
||||
| "mxEvent"
|
||||
| "highlights"
|
||||
| "highlightLink"
|
||||
| "showUrlPreview"
|
||||
| "forExport"
|
||||
| "getRelationsForEvent"
|
||||
| "editState"
|
||||
| "replacingEventId"
|
||||
| "permalinkCreator"
|
||||
| "callEventGrouper"
|
||||
| "isSeeingThroughMessageHiddenForModeration"
|
||||
| "inhibitInteraction"
|
||||
> {
|
||||
ref?: React.RefObject<any>; // `any` because it's effectively impossible to convince TS of a reasonable type
|
||||
maxImageHeight?: number; // pixels
|
||||
overrideBodyTypes?: Record<string, React.ComponentType<IBodyProps>>;
|
||||
|
||||
Reference in New Issue
Block a user