Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
c12eebf
refactor(apps/meteor/client/components/RoomIcon/OmnichannelRoomIcon):…
tassoevan Jul 3, 2026
490df38
refactor(apps/meteor/client/components/RoomIcon/OmnichannelRoomIcon/p…
tassoevan Jul 3, 2026
9d2730e
refactor(apps/meteor/client/components/Sidebar): export component pro…
tassoevan Jul 3, 2026
9e3bbac
refactor(apps/meteor/client/components/SidebarToggler): export compon…
tassoevan Jul 3, 2026
b2efa1c
refactor(apps/meteor/client/components/TwoFactorModal): export compon…
tassoevan Jul 3, 2026
164008d
refactor(apps/meteor/client/components/UserAndRoomAutoCompleteMultipl…
tassoevan Jul 3, 2026
42decfd
refactor(apps/meteor/client/components/UserAutoCompleteMultiple): exp…
tassoevan Jul 3, 2026
23be3ac
refactor(apps/meteor/client/components/UserCard): export component pr…
tassoevan Jul 3, 2026
853a80d
refactor(apps/meteor/client/components/UserInfo): export component pr…
tassoevan Jul 3, 2026
8e6f07f
refactor(apps/meteor/client/components/UserStatus): export component …
tassoevan Jul 3, 2026
585ff3b
refactor(apps/meteor/client/components/UserStatusText): export compon…
tassoevan Jul 3, 2026
262d206
refactor(apps/meteor/client/components/Wizard): export component prop…
tassoevan Jul 3, 2026
bffc8c4
refactor(apps/meteor/client/hooks): export component props types
tassoevan Jul 3, 2026
c0ca2bd
refactor(apps/meteor/client/navbar/NavBarControls): export component …
tassoevan Jul 3, 2026
0550831
refactor(apps/meteor/client/navbar/NavBarOmnichannelGroup): export co…
tassoevan Jul 3, 2026
7d821ce
refactor(apps/meteor/client/navbar/NavBarPagesGroup): export componen…
tassoevan Jul 3, 2026
6247a9c
refactor(apps/meteor/client/navbar/NavBarPagesGroup/actions): export …
tassoevan Jul 3, 2026
e3b011a
refactor(apps/meteor/client/navbar/NavBarSearch): export component pr…
tassoevan Jul 3, 2026
f3e75e5
refactor(apps/meteor/client/navbar/NavBarSettingsToolbar): export com…
tassoevan Jul 3, 2026
611811d
refactor(apps/meteor/client/navbar/NavBarSettingsToolbar/UserMenu): e…
tassoevan Jul 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { ComponentProps } from 'react';

import { useOmnichannelRoomIcon } from './context/OmnichannelRoomIconContext';

type OmnichannelAppSourceRoomIconProps = {
export type OmnichannelAppSourceRoomIconProps = {
source: IOmnichannelSourceFromApp;
color: ComponentProps<typeof Box>['color'];
size: ComponentProps<typeof Icon>['size'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const iconMap = {
other: 'headset',
} as const;

type OmnichannelCoreSourceRoomIconProps = {
export type OmnichannelCoreSourceRoomIconProps = {
source: IOmnichannelSource;
color: ComponentProps<typeof Icon>['color'];
size: ComponentProps<typeof Icon>['size'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const colors = {
disabled: 'annotation',
} as const;

type OmnichannelRoomIconProps = {
export type OmnichannelRoomIconProps = {
source: IOmnichannelSource;
color?: ComponentProps<typeof Icon>['color'];
status?: UserStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import OmnichannelRoomIconManager from '../lib/OmnichannelRoomIconManager';

let icons = Array.from(OmnichannelRoomIconManager.icons.values());

type OmnichannelRoomIconProviderProps = {
export type OmnichannelRoomIconProviderProps = {
children?: ReactNode;
};

Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/components/Sidebar/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Box } from '@rocket.chat/fuselage';
import { CustomScrollbars } from '@rocket.chat/ui-client';
import type { ComponentPropsWithoutRef } from 'react';

type ContentProps = ComponentPropsWithoutRef<typeof CustomScrollbars>;
export type ContentProps = ComponentPropsWithoutRef<typeof CustomScrollbars>;

const Content = ({ children, ...props }: ContentProps) => (
<Box display='flex' flexDirection='column' flexGrow={1} flexShrink={1} overflow='hidden'>
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/components/Sidebar/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Box, IconButton } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';
import { useTranslation } from 'react-i18next';

type HeaderProps = {
export type HeaderProps = {
children?: ReactNode;
title?: ReactNode;
onClose?: () => void;
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/components/Sidebar/ListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type ListItemConditionalProps =
gap?: boolean;
};

type ListItemProps = ListItemCommonProps & ListItemConditionalProps;
export type ListItemProps = ListItemCommonProps & ListItemConditionalProps;

const ListItem = ({ icon, text, input, children, gap, ...props }: ListItemProps) => (
<Option {...props}>
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Sidebar as FuselageSidebar } from '@rocket.chat/fuselage';
import type { ComponentPropsWithoutRef } from 'react';

type SidebarProps = ComponentPropsWithoutRef<typeof FuselageSidebar>;
export type SidebarProps = ComponentPropsWithoutRef<typeof FuselageSidebar>;

const Sidebar = (props: SidebarProps) => <FuselageSidebar {...props} role='navigation' display='flex' flexDirection='column' h='full' />;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Box, SidebarItem } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';
import { memo } from 'react';

type SidebarGenericItemProps = {
export type SidebarGenericItemProps = {
href?: string;
active?: boolean;
featured?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import SidebarNavigationItem from './SidebarNavigationItem';
import type { SidebarItem } from '../../lib/createSidebarItems';
import { isSidebarItem } from '../../lib/createSidebarItems';

type SidebarItemsAssemblerProps = {
export type SidebarItemsAssemblerProps = {
items: SidebarItem[];
currentPath?: string;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { memo } from 'react';

import SidebarGenericItem from './SidebarGenericItem';

type SidebarNavigationItemProps = {
export type SidebarNavigationItemProps = {
permissionGranted?: (() => boolean) | boolean;
pathSection: string;
icon?: IconName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { css } from '@rocket.chat/css-in-js';
import { Box, Badge } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';

type SidebarTogglerBadgeProps = {
export type SidebarTogglerBadgeProps = {
children?: ReactNode;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next';

import SidebarTogglerBadge from './SidebarTogglerBadge';

type SideBarTogglerButtonProps = {
export type SideBarTogglerButtonProps = {
pressed?: boolean;
badge?: ReactNode;
onClick: () => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useTranslation } from 'react-i18next';
import type { OnConfirm } from './TwoFactorModal';
import { Method } from './TwoFactorModal';

type TwoFactorEmailModalProps = {
export type TwoFactorEmailModalProps = {
onConfirm: OnConfirm;
onClose: () => void;
invalidAttempt?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export enum Method {

export type OnConfirm = (code: string, method: Method) => void | Promise<void>;

type TwoFactorModalProps = {
export type TwoFactorModalProps = {
onConfirm: OnConfirm;
onClose: () => void;
invalidAttempt?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useTranslation } from 'react-i18next';
import type { OnConfirm } from './TwoFactorModal';
import { Method } from './TwoFactorModal';

type TwoFactorPasswordModalProps = {
export type TwoFactorPasswordModalProps = {
onConfirm: OnConfirm;
onClose: () => void;
invalidAttempt?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useTranslation } from 'react-i18next';
import type { OnConfirm } from './TwoFactorModal';
import { Method } from './TwoFactorModal';

type TwoFactorTotpModalProps = {
export type TwoFactorTotpModalProps = {
onConfirm: OnConfirm;
onClose: () => void;
onDismiss?: () => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { memo, useMemo, useState } from 'react';
import { roomCoordinator } from '../../lib/rooms/roomCoordinator';
import { Rooms } from '../../stores';

type UserAndRoomAutoCompleteMultipleProps = Omit<ComponentProps<typeof AutoComplete>, 'filter'> & {
export type UserAndRoomAutoCompleteMultipleProps = Omit<ComponentProps<typeof AutoComplete>, 'filter'> & {
limit?: number;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import AutocompleteOptions, { OptionsContext } from './UserAutoCompleteMultipleO
import UserAvatarChip from './UserAvatarChip';
import { usersQueryKeys } from '../../lib/queryKeys';

type UserAutoCompleteMultipleProps = {
export type UserAutoCompleteMultipleProps = {
onChange: (value: Array<string>) => void;
value: Array<string> | undefined;
placeholder?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useMemo } from 'react';
import type { UserLabel } from './UserAutoCompleteMultipleOptions';
import { normalizeUsername } from '../../../lib/utils/normalizeUsername';

type UserAutoCompleteMultipleOptionProps = {
export type UserAutoCompleteMultipleOptionProps = {
label: UserLabel;
value: string | number;
selected?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { UserAvatar } from '@rocket.chat/ui-avatar';
import { useUserDisplayName } from '@rocket.chat/ui-client';
import type { ComponentProps } from 'react';

type UserAvatarChipProps = ComponentProps<typeof Chip> & {
export type UserAvatarChipProps = ComponentProps<typeof Chip> & {
federated?: boolean;
username: string;
name?: string;
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/components/UserCard/UserCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const clampStyle = css`
word-break: break-word;
`;

type UserCardProps = {
export type UserCardProps = {
user?: {
nickname?: string;
name?: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IconButton } from '@rocket.chat/fuselage';
import type { ComponentProps } from 'react';

type UserCardActionProps = ComponentProps<typeof IconButton>;
export type UserCardActionProps = ComponentProps<typeof IconButton>;

const UserCardAction = ({ label, icon, ...props }: UserCardActionProps) => <IconButton icon={icon} small title={label} {...props} />;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ButtonGroup } from '@rocket.chat/fuselage';
import type { ComponentProps } from 'react';
import { useRef } from 'react';

type UserCardActionsProps = ComponentProps<typeof ButtonGroup>;
export type UserCardActionsProps = ComponentProps<typeof ButtonGroup>;

const UserCardActions = (props: UserCardActionsProps) => {
const ref = useRef<HTMLDivElement>(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Box } from '@rocket.chat/fuselage';
import type { ComponentProps } from 'react';
import { useRef } from 'react';

type UserCardDialogProps = AriaDialogProps & ComponentProps<typeof Box>;
export type UserCardDialogProps = AriaDialogProps & ComponentProps<typeof Box>;

const UserCardDialog = (props: UserCardDialogProps) => {
const ref = useRef(null);
Expand Down
4 changes: 3 additions & 1 deletion apps/meteor/client/components/UserCard/UserCardRole.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Box, Tag } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';

const UserCardRole = ({ children }: { children: ReactNode }) => (
export type UserCardRoleProps = { children: ReactNode };

const UserCardRole = ({ children }: UserCardRoleProps) => (
<Box m={2} fontScale='c2'>
<Tag>{children}</Tag>
</Box>
Expand Down
4 changes: 3 additions & 1 deletion apps/meteor/client/components/UserCard/UserCardRoles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import type { ReactNode } from 'react';

import UserCardInfo from './UserCardInfo';

const UserCardRoles = ({ children }: { children: ReactNode }) => (
export type UserCardRolesProps = { children: ReactNode };

const UserCardRoles = ({ children }: UserCardRolesProps) => (
<Box m='neg-x2'>
<UserCardInfo flexWrap='wrap' display='flex' flexShrink={0}>
{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ReactNode, ComponentProps } from 'react';

import * as UserStatus from '../UserStatus';

type UserCardUsernameProps = ComponentProps<typeof Box> & {
export type UserCardUsernameProps = ComponentProps<typeof Box> & {
name: ReactNode;
status: ReactNode;
};
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/components/UserInfo/UserInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type UserInfoDataProps = Serialized<
>
>;

type UserInfoProps = UserInfoDataProps & {
export type UserInfoProps = UserInfoDataProps & {
status: ReactNode;
customStatus?: ReactNode;
email?: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Tag } from '@rocket.chat/fuselage';

type UserInfoABACAttributeProps = {
export type UserInfoABACAttributeProps = {
attribute: string;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Box, Margins } from '@rocket.chat/fuselage';

import UserInfoABACAttribute from './UserInfoABACAttribute';

type UserInfoABACAttributesProps = {
export type UserInfoABACAttributesProps = {
abacAttributes: IAbacAttributeDefinition[];
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Button, IconButton } from '@rocket.chat/fuselage';
import type { Keys as IconName } from '@rocket.chat/icons';
import type { ComponentProps } from 'react';

type UserInfoActionProps = {
export type UserInfoActionProps = {
icon: IconName;
} & ComponentProps<typeof Button>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { ComponentProps, ReactNode } from 'react';

import { UserCardUsername } from '../UserCard';

type UserInfoUsernameProps = {
export type UserInfoUsernameProps = {
username: IUser['username'];
status: ReactNode;
} & ComponentProps<typeof Box>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useUserPresence } from '@rocket.chat/ui-contexts';
import type { ComponentProps } from 'react';
import { memo } from 'react';

type ReactiveUserStatusProps = {
export type ReactiveUserStatusProps = {
uid: IUser['_id'];
} & ComponentProps<typeof UserStatus.UserStatus>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { memo } from 'react';

import UserStatusText from './UserStatusText';

type ReactiveUserStatusTextProps = {
export type ReactiveUserStatusTextProps = {
uid: IUser['_id'];
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const STATUS_LABEL_KEYS: Record<UserStatus, string> = {
[UserStatus.DISABLED]: 'Disabled',
};

type UserStatusTextProps = {
export type UserStatusTextProps = {
status?: UserStatus;
statusText?: string;
statusExpiresAt?: Date | string;
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/components/Wizard/WizardActions.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box, ButtonGroup } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';

type WizardActionsProps = {
export type WizardActionsProps = {
children: ReactNode;
};

Expand Down
4 changes: 3 additions & 1 deletion apps/meteor/client/hooks/useUserStatusTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { useCallback, useContext, useMemo } from 'react';

import { UserStatusText } from '../components/UserStatusText';

const UserStatusTooltipContent = ({ uid }: { uid: string }) => {
export type UserStatusTooltipContentProps = { uid: string };

const UserStatusTooltipContent = ({ uid }: UserStatusTooltipContentProps) => {
const presence = useUserPresence(uid);

if (!presence) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next';

import { useOmnichannelEnabled } from '../../views/omnichannel/hooks/useOmnichannelEnabled';

type NavBarControlsMenuProps = Omit<HTMLAttributes<HTMLElement>, 'is'> & {
export type NavBarControlsMenuProps = Omit<HTMLAttributes<HTMLElement>, 'is'> & {
omnichannelItems: GenericMenuItemProps[];
isPressed: boolean;
callItem?: GenericMenuItemProps;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { HTMLAttributes } from 'react';

import { useOmnichannelContactAction } from './hooks/useOmnichannelContactAction';

type NavBarItemOmnichannelContactProps = Omit<HTMLAttributes<HTMLElement>, 'is'>;
export type NavBarItemOmnichannelContactProps = Omit<HTMLAttributes<HTMLElement>, 'is'>;

const NavBarItemOmnichannelContact = (props: NavBarItemOmnichannelContactProps) => {
const { icon, isPressed, title, handleGoToContactCenter } = useOmnichannelContactAction();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { HTMLAttributes } from 'react';

import { useOmnichannelLivechatToggle } from './hooks/useOmnichannelLivechatToggle';

type NavBarItemOmnichannelLivechatToggleProps = Omit<HTMLAttributes<HTMLElement>, 'is'>;
export type NavBarItemOmnichannelLivechatToggleProps = Omit<HTMLAttributes<HTMLElement>, 'is'>;

const NavBarItemOmnichannelLivechatToggle = (props: NavBarItemOmnichannelLivechatToggleProps) => {
const { handleAvailableStatusChange, title, icon, isSuccess } = useOmnichannelLivechatToggle();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { HTMLAttributes } from 'react';

import { useOmnichannelQueueAction } from './hooks/useOmnichannelQueueAction';

type NavBarItemOmnichannelQueueProps = Omit<HTMLAttributes<HTMLElement>, 'is'>;
export type NavBarItemOmnichannelQueueProps = Omit<HTMLAttributes<HTMLElement>, 'is'>;

const NavBarItemOmnichannelQueue = (props: NavBarItemOmnichannelQueueProps) => {
const { isEnabled, title, icon, isPressed, handleGoToQueue } = useOmnichannelQueueAction();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useStableCallback } from '@rocket.chat/fuselage-hooks';
import { useRouter, useCurrentRoutePath } from '@rocket.chat/ui-contexts';
import type { HTMLAttributes } from 'react';

type NavBarItemDirectoryPageProps = Omit<HTMLAttributes<HTMLElement>, 'is'>;
export type NavBarItemDirectoryPageProps = Omit<HTMLAttributes<HTMLElement>, 'is'>;

const NavBarItemDirectoryPage = (props: NavBarItemDirectoryPageProps) => {
const router = useRouter();
Expand Down
Loading
Loading