Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
9090e83
refactor(packages/ui-video-conf/src/VideoConfPopup): export component…
tassoevan Jul 3, 2026
c85378a
refactor(packages/ui-voip/src/components): export component props types
tassoevan Jul 3, 2026
fced35b
refactor(packages/ui-voip/src/components/Actions): export component p…
tassoevan Jul 3, 2026
b67669e
refactor(packages/ui-voip/src/components/Cards): export component pro…
tassoevan Jul 3, 2026
a556745
refactor(packages/ui-voip/src/components/Cards/PeerCard): export comp…
tassoevan Jul 3, 2026
c2e8a11
refactor(packages/ui-voip/src/components/Cards/StreamCard): export co…
tassoevan Jul 3, 2026
10e0adb
refactor(packages/ui-voip/src/components/Keypad): export component pr…
tassoevan Jul 3, 2026
988e96d
refactor(packages/ui-voip/src/components/PeerInfo): export component …
tassoevan Jul 3, 2026
f8c3dd3
refactor(packages/ui-voip/src/components/Widget): export component pr…
tassoevan Jul 3, 2026
2dd98b2
refactor(packages/ui-voip/src/providers): export component props types
tassoevan Jul 3, 2026
8b72353
refactor(packages/ui-voip/src/views): export component props types
tassoevan Jul 3, 2026
55330eb
refactor(packages/ui-voip/src/views/CallHistoryContextualbar): export…
tassoevan Jul 3, 2026
f78097a
refactor(packages/ui-voip/src/views/MediaCallHistoryTable): export co…
tassoevan Jul 3, 2026
3e6ded3
refactor(packages/ui-voip/src/views/MediaCallRoomSection): export com…
tassoevan Jul 3, 2026
4f956ff
refactor(packages/ui-voip/src/views/PermissionFlow): export component…
tassoevan Jul 3, 2026
81bdaaf
refactor(packages/web-ui-registration/src): export component props types
tassoevan Jul 3, 2026
684301e
refactor(packages/web-ui-registration/src/components): export compone…
tassoevan Jul 3, 2026
6962574
refactor(packages/web-ui-registration/src/template): export component…
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 @@ -16,7 +16,7 @@ export const VideoConfPopupContainer = styled('div', ({ position: _position, ...
border-radius: 0.25rem;
`;

type VideoConfPopupProps = {
export type VideoConfPopupProps = {
children: ReactNode;
position?: number;
} & HTMLAttributes<HTMLElement>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ const backdropStyle = css`
}
`;

const VideoConfPopupBackdrop = ({ children }: { children: ReactNode }) => (
export type VideoConfPopupBackdropProps = { children: ReactNode };

const VideoConfPopupBackdrop = ({ children }: VideoConfPopupBackdropProps) => (
<Box m={40} zIndex={99} className={backdropStyle}>
{children}
</Box>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Box } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';

const VideoConfPopupContent = ({ children }: { children: ReactNode }) => (
export type VideoConfPopupContentProps = { children: ReactNode };

const VideoConfPopupContent = ({ children }: VideoConfPopupContentProps) => (
<Box display='flex' flexDirection='column' mbs={8}>
{children}
</Box>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Box } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';

const VideoConfPopupHeader = ({ children }: { children: ReactNode }) => (
export type VideoConfPopupHeaderProps = { children: ReactNode };

const VideoConfPopupHeader = ({ children }: VideoConfPopupHeaderProps) => (
<Box display='flex' minHeight='x28' justifyContent='space-between'>
{children}
</Box>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Box } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';

const VideoConfPopupIcon = ({ children }: { children: ReactNode }) => (
export type VideoConfPopupIconProps = { children: ReactNode };

const VideoConfPopupIcon = ({ children }: VideoConfPopupIconProps) => (
<Box display='flex' flexShrink={0} alignItems='center' size='x18' overflow='hidden' justifyContent='center'>
{children}
</Box>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';

type VideoConfPopupInfoProps = {
export type VideoConfPopupInfoProps = {
avatar?: ReactNode;
icon?: ReactNode;
children: ReactNode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import VideoConfPopupContent from './VideoConfPopupContent';
import VideoConfPopupFooter from './VideoConfPopupFooter';
import VideoConfPopupHeader from './VideoConfPopupHeader';

type VideoConfPopupSkeletonProps = Omit<ComponentProps<typeof VideoConfPopup>, 'children'>;
export type VideoConfPopupSkeletonProps = Omit<ComponentProps<typeof VideoConfPopup>, 'children'>;

const VideoConfPopupSkeleton = (props: VideoConfPopupSkeletonProps) => (
<VideoConfPopup aria-label='Loading' {...props}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Box, Throbber } from '@rocket.chat/fuselage';

type VideoConfPopupTitleProps = {
export type VideoConfPopupTitleProps = {
text: string;
counter?: boolean;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/ActionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Keys } from '@rocket.chat/icons';
import type { ComponentProps } from 'react';
import { forwardRef } from 'react';

type ActionButtonProps = {
export type ActionButtonProps = {
label: string;
icon: Keys;
disabled?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/Actions/ActionStrip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ReactNode } from 'react';

export const ACTION_STRIP_TOTAL_HEIGHT = 52;

type ActionStripProps = {
export type ActionStripProps = {
children: ReactNode;
leftSlot?: ReactNode;
rightSlot?: ReactNode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Button } from '@rocket.chat/fuselage';
import { useTranslation } from 'react-i18next';

type ActionToggleChatProps = {
export type ActionToggleChatProps = {
pressed: boolean;
onClick: () => void;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Box, Icon, FramedIcon } from '@rocket.chat/fuselage';

import type { CallHistoryExternalContact } from '../definitions';

type CallHistoryExternalUserProps = {
export type CallHistoryExternalUserProps = {
contact: CallHistoryExternalContact;
showIcon?: boolean;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useMemo } from 'react';

import type { CallHistoryInternalContact } from '../definitions';

type CallHistoryInternalUserProps = {
export type CallHistoryInternalUserProps = {
contact: CallHistoryInternalContact;
};

Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/CallHistoryUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import CallHistoryInternalUser from './CallHistoryInternalUser';
import CallHistoryUnknownUser from './CallHistoryUnknownUser';
import { isCallHistoryExternalContact, isCallHistoryInternalContact, type CallHistoryContact } from '../definitions';

type CallHistoryUserProps = {
export type CallHistoryUserProps = {
contact: CallHistoryContact;
};

Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/Cards/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const CARD_MARGIN = 2;
export const CARD_TOTAL_HEIGHT = CARD_HEIGHT + CARD_MARGIN * 2;
export const CARD_TOTAL_WIDTH = CARD_MAX_WIDTH + CARD_MARGIN * 2;

type CardProps = {
export type CardProps = {
children: ReactNode;
title?: string;
maxWidth?: string | number;
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/Cards/CardList.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';

type CardListProps = {
export type CardListProps = {
children: ReactNode;
shouldWrapCards?: boolean;
direction?: 'row' | 'column';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ReactNode } from 'react';
import CardList from './CardList';
import CardListPinned from './CardListPinned';

type CardListContainerProps = {
export type CardListContainerProps = {
children: ReactNode;
focusedCard?: ReactNode;
shouldWrapCards?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/Cards/CardListPinned.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { CSSProperties, ReactNode } from 'react';
import { CARD_MARGIN, CARD_MIN_WIDTH } from './Card';
import CardListContainer from './CardList';

type CardListPinnedProps = {
export type CardListPinnedProps = {
children: ReactNode;
focusedCard: ReactNode;
flexDirection?: CSSProperties['flexDirection'];
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/Cards/CardListSection.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';

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

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

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

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

type PeerCardProps = {
export type PeerCardProps = {
displayName: string;
avatarUrl?: string;
muted: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon } from '@rocket.chat/fuselage';

import CardSlot from '../CardSlot';

type PeerCardSlotProps = {
export type PeerCardSlotProps = {
muted: boolean;
held: boolean;
displayName: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import StreamCardOpenInRoomButton from './StreamCardOpenInRoom';
import StreamCardPin from './StreamCardPin';
import StreamCardStopSharingButton from './StreamCardStopSharingButton';

type StreamCardProps = {
export type StreamCardProps = {
children: ReactNode;
own?: boolean;
onClickFocusStream?: () => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next';

import CardSlotContainer from '../CardSlot';

type StreamCardOpenInRoomButtonProps = {
export type StreamCardOpenInRoomButtonProps = {
onClick: () => void;
showOnHover?: boolean;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next';
import CardSlotContainer from '../CardSlot';
import type { SlotPosition } from '../CardSlot';

type CardSlotPinProps = {
export type CardSlotPinProps = {
onClick: () => void;
focused?: boolean;
position?: SlotPosition;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next';

import CardSlotContainer from '../CardSlot';

type CardSlotStopSharingProps = {
export type CardSlotStopSharingProps = {
onClick: () => void;
showOnHover?: boolean;
};
Expand Down
6 changes: 4 additions & 2 deletions packages/ui-voip/src/components/DevicePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ActionButton } from '.';
import { useMediaCallView } from '../context/MediaCallViewContext';
import { useDevicePermissionPrompt2, stopTracks } from '../hooks/useDevicePermissionPrompt';

type DevicePickerButtonProps = {
export type DevicePickerButtonProps = {
secondary?: boolean;
small?: boolean;
} & Omit<ComponentProps<typeof ActionButton>, 'label' | 'icon'>;
Expand All @@ -35,8 +35,10 @@ const getDefaultDeviceItem = (label: string, type: 'input' | 'output') => ({
id: `default-${type}`,
});

export type DevicePickerProps = { secondary?: boolean; className?: string };

// eslint-disable-next-line react/no-multi-comp
const DevicePicker = ({ secondary = false, className }: { secondary?: boolean; className?: string }) => {
const DevicePicker = ({ secondary = false, className }: DevicePickerProps) => {
const { t } = useTranslation();

const { onDeviceChange } = useMediaCallView();
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/Keypad/Key.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { css } from '@rocket.chat/css-in-js';
import { Box, Button } from '@rocket.chat/fuselage';
import { useTranslation } from 'react-i18next';

type KeyProps = {
export type KeyProps = {
primaryKey: string;
alternativeKey?: string;
longPressKey?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/Keypad/Keypad.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Box } from '@rocket.chat/fuselage';

import Key from './Key';

type KeypadProps = {
export type KeypadProps = {
onKeyPress(key: string): void;
};

Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/PeerAutocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type PeerAutocompleteOptions = {
avatarUrl?: string;
};

type PeerAutocompleteProps = {
export type PeerAutocompleteProps = {
options: PeerAutocompleteOptions[];
onChangeValue: (value: string | string[]) => void;
onChangeFilter: (filter: string) => void;
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/PeerInfo/InternalUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Avatar, Box, Icon, StatusBullet } from '@rocket.chat/fuselage';

import type { Slot } from './useInfoSlots';

type InternalUserProps = {
export type InternalUserProps = {
displayName: string;
status?: UserStatus;
avatarUrl?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/PeerInfo/PhoneNumber.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Box, Icon } from '@rocket.chat/fuselage';

type PhoneNumberProps = {
export type PhoneNumberProps = {
number: string;
};

Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/Timer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box } from '@rocket.chat/fuselage';
import { useEffect, useState } from 'react';

type VoipTimerProps = { startAt?: Date };
export type VoipTimerProps = { startAt?: Date };

const VoipTimer = ({ startAt }: VoipTimerProps) => {
const [start] = useState(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/ToggleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, IconButton } from '@rocket.chat/fuselage';
import type { Keys } from '@rocket.chat/icons';
import type { ComponentProps } from 'react';

type ToggleButtonProps = {
export type ToggleButtonProps = {
label: string; // label should not change due to a11y constraints
icons: [defaultIcon: Keys, pressedIcon: Keys];
titles: [defaultTitle: string, pressedTitle: string]; // Titles might change though
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/Widget/Widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const WidgetBase = styled('div')`
overflow: hidden;
`;

type WidgetProps = {
export type WidgetProps = {
children: ReactNode;
restorePosition?: LastKnownPosition | null;
onChangePosition?: (position: LastKnownPosition | null) => void;
Expand Down
4 changes: 3 additions & 1 deletion packages/ui-voip/src/components/Widget/WidgetContent.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Box } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';

const WidgetContent = ({ children }: { children: ReactNode }) => (
export type WidgetContentProps = { children: ReactNode };

const WidgetContent = ({ children }: WidgetContentProps) => (
<Box is='section' mb={4} mi={12} flexGrow={1}>
{children}
</Box>
Expand Down
4 changes: 3 additions & 1 deletion packages/ui-voip/src/components/Widget/WidgetFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Box } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';

const WidgetFooter = ({ children }: { children: ReactNode }) => (
export type WidgetFooterProps = { children: ReactNode };

const WidgetFooter = ({ children }: WidgetFooterProps) => (
<Box is='footer' p={12} bg='surface-light' mbs={4}>
{children}
</Box>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/Widget/WidgetHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ReactNode } from 'react';
import { VisuallyHidden } from 'react-aria';
import { useTranslation } from 'react-i18next';

type WidgetHeaderProps = {
export type WidgetHeaderProps = {
title: ReactNode;
children: ReactNode;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/components/Widget/WidgetInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type Slot = {
icon?: IconNames;
};

type WidgetInfoProps = {
export type WidgetInfoProps = {
slots?: Slot[];
variant?: 'default' | 'card-content';
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { useMediaSessionInstance } from './useMediaSessionInstance';
import { MediaCallInstanceContext } from '../context/MediaCallInstanceContext';
import type { Signals } from '../context/MediaCallInstanceContext';

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

Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/providers/MediaCallProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import MediaCallViewProvider from './MediaCallViewProvider';
import { MediaCallWidget } from '../views';
import MediaCallPopout from '../views/MediaCallPopout';

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

Expand Down
2 changes: 1 addition & 1 deletion packages/ui-voip/src/providers/MediaCallViewProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { stopTracks, useDevicePermissionPrompt2, PermissionRequestCancelledCallR
import { isValidTone, useTonePlayer } from '../hooks/useTonePlayer';
import TransferModal from '../views/TransferModal';

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

Expand Down
Loading
Loading