Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
40ed1f9
Create CallWithChatCompositeIcons type. Move ControlBarButtonBadgeIco…
JamesBurnside Feb 23, 2022
b565c88
fix stable build
JamesBurnside Feb 23, 2022
0524338
update gh action to have -v param in build cmd
JamesBurnside Feb 23, 2022
863d1e0
Update beta API files
github-actions[bot] Feb 23, 2022
a0193ab
Change files
JamesBurnside Feb 23, 2022
b4000ab
Merge branch 'jaburnsi/add-callwithchat-icon-interface' of https://gi…
JamesBurnside Feb 23, 2022
c3190f8
remove erroneous comment
JamesBurnside Feb 23, 2022
2610045
typeguard icon usage in composites
JamesBurnside Feb 23, 2022
8301d28
Fix rest of Icon usage in react-composites folder
JamesBurnside Feb 23, 2022
4465a97
remove unused imports
JamesBurnside Feb 23, 2022
997b295
update api.md files
JamesBurnside Feb 23, 2022
7ccf995
update comment
JamesBurnside Feb 23, 2022
26f5ab7
Merge remote-tracking branch 'origin/main' into jaburnsi/add-callwith…
JamesBurnside Feb 23, 2022
4891d82
remove duplicate interface after merge
JamesBurnside Feb 23, 2022
95efbfa
Merge branch 'jaburnsi/add-callwithchat-icon-interface' into jaburnsi…
JamesBurnside Feb 23, 2022
df33462
Add eslint rule
JamesBurnside Feb 23, 2022
4f4a1f0
update api files
JamesBurnside Feb 23, 2022
2aca988
fix stable build
JamesBurnside Feb 23, 2022
60a0bdd
Merge remote-tracking branch 'origin/jaburnsi/add-callwithchat-icon-i…
JamesBurnside Feb 23, 2022
f2fa9d1
fix stable build
JamesBurnside Feb 23, 2022
49a6e2b
update api files
JamesBurnside Feb 23, 2022
f94b33b
sort alphabetically
JamesBurnside Feb 23, 2022
75b1619
Merge remote-tracking branch 'origin/main' into jaburnsi/add-callwith…
JamesBurnside Feb 23, 2022
11e3343
Merge remote-tracking branch 'origin/jaburnsi/add-callwithchat-icon-i…
JamesBurnside Feb 23, 2022
bb6b232
update api files
JamesBurnside Feb 24, 2022
f854b78
Merge remote-tracking branch 'origin/main' into jaburnsi/typeguard-ic…
JamesBurnside Feb 25, 2022
837afa0
Change files
JamesBurnside Feb 25, 2022
d03c40f
Add link as customizable icon
JamesBurnside Feb 25, 2022
d4aa8ed
update api files
JamesBurnside Feb 25, 2022
b0e1960
fix stable build
JamesBurnside Feb 28, 2022
bc96b79
Merge remote-tracking branch 'origin/main' into jaburnsi/typeguard-ic…
JamesBurnside Feb 28, 2022
13ed807
fix stable build after merge from main
JamesBurnside Feb 28, 2022
cf61156
Prprabhu/rework icons (#1560)
prprabhu-ms Feb 28, 2022
e326773
Merge remote-tracking branch 'origin/main' into jaburnsi/typeguard-ic…
JamesBurnside Feb 28, 2022
4874136
update with new format
JamesBurnside Feb 28, 2022
8a1e068
build fix
JamesBurnside Feb 28, 2022
540eaa9
Merge branch 'main' into jaburnsi/typeguard-icon-usage-in-composites
JamesBurnside Feb 28, 2022
a31af6b
use unused import
JamesBurnside Mar 1, 2022
935de57
Merge branch 'jaburnsi/typeguard-icon-usage-in-composites' of https:/…
JamesBurnside Mar 1, 2022
0fcb27d
Merge branch 'main' into jaburnsi/typeguard-icon-usage-in-composites
JamesBurnside Mar 1, 2022
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
2 changes: 1 addition & 1 deletion .github/workflows/update-api-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
if: ${{ matrix.flavor == 'stable' }}
run: rush switch-flavor:stable
- name: Build NPM Package
run: rush build -t @azure/communication-react
run: rush build -v -t @azure/communication-react
id: buildapifiles
- name: Check for API file changes
# If API files changed, they cause the build step to "fail" due to warnings
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Create CallWithChatCompositeIcons type. Move ControlBarButtonBadgeIcon out of CallCompositeIcons",
"packageName": "@internal/react-composites",
"email": "2684369+JamesBurnside@users.noreply.github.com",
"dependentChangeType": "patch"
}
13 changes: 11 additions & 2 deletions packages/communication-react/review/communication-react.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -589,13 +589,16 @@ export interface CallWithChatClientState extends Pick<CallAdapterClientState, 'd
// @beta
export const CallWithChatComposite: (props: CallWithChatCompositeProps) => JSX.Element;

// @beta
export type CallWithChatCompositeIcons = Partial<Pick<CompositeIcons, 'ControlBarButtonBadgeIcon' | 'ChevronLeft' | 'ControlButtonCameraOff' | 'ControlButtonCameraOn' | 'ControlButtonEndCall' | 'ControlButtonMicOff' | 'ControlButtonMicOn' | 'ControlButtonOptions' | 'ControlButtonScreenShareStart' | 'ControlButtonScreenShareStop' | 'ErrorBarCallCameraAccessDenied' | 'ErrorBarCallCameraAlreadyInUse' | 'ErrorBarCallLocalVideoFreeze' | 'ErrorBarCallMacOsCameraAccessDenied' | 'ErrorBarCallMacOsMicrophoneAccessDenied' | 'ErrorBarCallMicrophoneAccessDenied' | 'ErrorBarCallMicrophoneMutedBySystem' | 'ErrorBarCallNetworkQualityLow' | 'ErrorBarCallNoMicrophoneFound' | 'ErrorBarCallNoSpeakerFound' | 'HorizontalGalleryLeftButton' | 'HorizontalGalleryRightButton' | 'LobbyScreenConnectingToCall' | 'LobbyScreenWaitingToBeAdmitted' | 'LocalDeviceSettingsCamera' | 'LocalDeviceSettingsMic' | 'LocalDeviceSettingsSpeaker' | 'LocalPreviewPlaceholder' | 'Muted' | 'NetworkReconnectIcon' | 'NoticePageAccessDeniedTeamsMeeting' | 'NoticePageJoinCallFailedDueToNoNetwork' | 'NoticePageLeftCall' | 'NoticePageRemovedFromCall' | 'OptionsCamera' | 'OptionsMic' | 'OptionsSpeaker' | 'ParticipantItemMicOff' | 'ParticipantItemOptions' | 'ParticipantItemOptionsHovered' | 'ParticipantItemScreenShareStart' | 'VideoTileMicOff' | 'LocalCameraSwitch' | 'MessageDelivered' | 'MessageFailed' | 'MessageSeen' | 'MessageSending' | 'MessageEdit' | 'MessageRemove' | 'ParticipantItemOptions' | 'ParticipantItemOptionsHovered' | 'SendBoxSend' | 'SendBoxSendHovered' | 'EditBoxCancel' | 'EditBoxSubmit' | /* @conditional-compile-remove-from(stable): FILE_SHARING */ 'SendBoxAttachFile'>>;

// @beta
export type CallWithChatCompositeOptions = {
callControls?: boolean | CallWithChatControlOptions;
};

// @beta
export interface CallWithChatCompositeProps extends BaseCompositeProps<CallCompositeIcons & ChatCompositeIcons> {
export interface CallWithChatCompositeProps extends BaseCompositeProps<CallWithChatCompositeIcons> {
// (undocumented)
callWithChatAdapter: CallWithChatAdapter;
fluentTheme?: PartialTheme | Theme;
Expand Down Expand Up @@ -752,7 +755,7 @@ export type ChatCompositeClientState = {
};

// @public
export type ChatCompositeIcons = Partial<Pick<CompositeIcons, 'MessageDelivered' | 'MessageFailed' | 'MessageSeen' | 'MessageSending' | 'MessageEdit' | 'MessageRemove' | 'ParticipantItemOptions' | 'ParticipantItemOptionsHovered' | 'SendBoxSend' | 'SendBoxSendHovered' | 'EditBoxCancel' | 'EditBoxSubmit' | /* @conditional-compile-remove-from(stable): FILE_SHARING */ 'SendBoxAttachFile'>>;
export type ChatCompositeIcons = Partial<Pick<CompositeIcons, 'MessageDelivered' | 'MessageFailed' | 'MessageSeen' | 'MessageSending' | 'MessageEdit' | 'MessageRemove' | 'ParticipantItemOptions' | 'ParticipantItemOptionsHovered' | 'SendBoxSend' | 'SendBoxSendHovered' | 'EditBoxCancel' | 'EditBoxSubmit' | /* @conditional-compile-remove-from(stable): FILE_SHARING */ 'SendBoxAttachFile' | /* @conditional-compile-remove-from(stable): FILE_SHARING */ 'Download' | /* @conditional-compile-remove-from(stable): FILE_SHARING */ 'Cancel'>>;

// @public
export type ChatCompositeOptions = {
Expand Down Expand Up @@ -1018,6 +1021,9 @@ export const COMPOSITE_LOCALE_ZH_TW: CompositeLocale;

// @public
export const COMPOSITE_ONLY_ICONS: {
Cancel: JSX.Element;
ChevronLeft: JSX.Element;
Download: JSX.Element;
LobbyScreenConnectingToCall: JSX.Element;
LobbyScreenWaitingToBeAdmitted: JSX.Element;
LocalDeviceSettingsCamera: JSX.Element;
Expand Down Expand Up @@ -1216,6 +1222,9 @@ export const DEFAULT_COMPONENT_ICONS: {

// @public
export const DEFAULT_COMPOSITE_ICONS: {
Cancel: JSX.Element;
ChevronLeft: JSX.Element;
Download: JSX.Element;
LobbyScreenConnectingToCall: JSX.Element;
LobbyScreenWaitingToBeAdmitted: JSX.Element;
LocalDeviceSettingsCamera: JSX.Element;
Expand Down
13 changes: 11 additions & 2 deletions packages/react-composites/review/react-composites.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,16 @@ export interface CallWithChatClientState extends Pick<CallAdapterClientState, 'd
// @beta
export const CallWithChatComposite: (props: CallWithChatCompositeProps) => JSX.Element;

// @beta
export type CallWithChatCompositeIcons = Partial<Pick<CompositeIcons, 'ControlBarButtonBadgeIcon' | 'ChevronLeft' | 'ControlButtonCameraOff' | 'ControlButtonCameraOn' | 'ControlButtonEndCall' | 'ControlButtonMicOff' | 'ControlButtonMicOn' | 'ControlButtonOptions' | 'ControlButtonScreenShareStart' | 'ControlButtonScreenShareStop' | 'ErrorBarCallCameraAccessDenied' | 'ErrorBarCallCameraAlreadyInUse' | 'ErrorBarCallLocalVideoFreeze' | 'ErrorBarCallMacOsCameraAccessDenied' | 'ErrorBarCallMacOsMicrophoneAccessDenied' | 'ErrorBarCallMicrophoneAccessDenied' | 'ErrorBarCallMicrophoneMutedBySystem' | 'ErrorBarCallNetworkQualityLow' | 'ErrorBarCallNoMicrophoneFound' | 'ErrorBarCallNoSpeakerFound' | 'HorizontalGalleryLeftButton' | 'HorizontalGalleryRightButton' | 'LobbyScreenConnectingToCall' | 'LobbyScreenWaitingToBeAdmitted' | 'LocalDeviceSettingsCamera' | 'LocalDeviceSettingsMic' | 'LocalDeviceSettingsSpeaker' | 'LocalPreviewPlaceholder' | 'Muted' | 'NetworkReconnectIcon' | 'NoticePageAccessDeniedTeamsMeeting' | 'NoticePageJoinCallFailedDueToNoNetwork' | 'NoticePageLeftCall' | 'NoticePageRemovedFromCall' | 'OptionsCamera' | 'OptionsMic' | 'OptionsSpeaker' | 'ParticipantItemMicOff' | 'ParticipantItemOptions' | 'ParticipantItemOptionsHovered' | 'ParticipantItemScreenShareStart' | 'VideoTileMicOff' | 'LocalCameraSwitch' | 'MessageDelivered' | 'MessageFailed' | 'MessageSeen' | 'MessageSending' | 'MessageEdit' | 'MessageRemove' | 'ParticipantItemOptions' | 'ParticipantItemOptionsHovered' | 'SendBoxSend' | 'SendBoxSendHovered' | 'EditBoxCancel' | 'EditBoxSubmit' | /* @conditional-compile-remove-from(stable): FILE_SHARING */ 'SendBoxAttachFile'>>;

// @beta
export type CallWithChatCompositeOptions = {
callControls?: boolean | CallWithChatControlOptions;
};

// @beta
export interface CallWithChatCompositeProps extends BaseCompositeProps<CallCompositeIcons & ChatCompositeIcons> {
export interface CallWithChatCompositeProps extends BaseCompositeProps<CallWithChatCompositeIcons> {
// (undocumented)
callWithChatAdapter: CallWithChatAdapter;
fluentTheme?: PartialTheme | Theme;
Expand Down Expand Up @@ -484,7 +487,7 @@ export type ChatCompositeClientState = {
};

// @public
export type ChatCompositeIcons = Partial<Pick<CompositeIcons, 'MessageDelivered' | 'MessageFailed' | 'MessageSeen' | 'MessageSending' | 'MessageEdit' | 'MessageRemove' | 'ParticipantItemOptions' | 'ParticipantItemOptionsHovered' | 'SendBoxSend' | 'SendBoxSendHovered' | 'EditBoxCancel' | 'EditBoxSubmit' | /* @conditional-compile-remove-from(stable): FILE_SHARING */ 'SendBoxAttachFile'>>;
export type ChatCompositeIcons = Partial<Pick<CompositeIcons, 'MessageDelivered' | 'MessageFailed' | 'MessageSeen' | 'MessageSending' | 'MessageEdit' | 'MessageRemove' | 'ParticipantItemOptions' | 'ParticipantItemOptionsHovered' | 'SendBoxSend' | 'SendBoxSendHovered' | 'EditBoxCancel' | 'EditBoxSubmit' | /* @conditional-compile-remove-from(stable): FILE_SHARING */ 'SendBoxAttachFile' | /* @conditional-compile-remove-from(stable): FILE_SHARING */ 'Download' | /* @conditional-compile-remove-from(stable): FILE_SHARING */ 'Cancel'>>;

// @public
export type ChatCompositeOptions = {
Expand Down Expand Up @@ -552,6 +555,9 @@ export const COMPOSITE_LOCALE_ZH_TW: CompositeLocale;

// @public
export const COMPOSITE_ONLY_ICONS: {
Cancel: JSX.Element;
ChevronLeft: JSX.Element;
Download: JSX.Element;
LobbyScreenConnectingToCall: JSX.Element;
LobbyScreenWaitingToBeAdmitted: JSX.Element;
LocalDeviceSettingsCamera: JSX.Element;
Expand Down Expand Up @@ -623,6 +629,9 @@ export interface CustomCallControlButtonProps extends ControlBarButtonProps {

// @public
export const DEFAULT_COMPOSITE_ICONS: {
Cancel: JSX.Element;
ChevronLeft: JSX.Element;
Download: JSX.Element;
LobbyScreenConnectingToCall: JSX.Element;
LobbyScreenWaitingToBeAdmitted: JSX.Element;
LocalDeviceSettingsCamera: JSX.Element;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT license.

import { AudioDeviceInfo, VideoDeviceInfo } from '@azure/communication-calling';
import { Dropdown, Icon, IDropdownOption, Label, mergeStyles, Stack } from '@fluentui/react';
import { Dropdown, IDropdownOption, Label, mergeStyles, Stack } from '@fluentui/react';
import { useTheme, VideoStreamOptions } from '@internal/react-components';
import React from 'react';
import { CallCompositeIcon } from '../../common/icons';
import { useLocale } from '../../localization';
import {
dropDownStyles,
Expand Down Expand Up @@ -33,11 +34,11 @@ const getDropDownList = (list: Array<VideoDeviceInfo | AudioDeviceInfo>): IDropd

const getOptionIcon = (type: iconType): JSX.Element | undefined => {
if (type === 'Camera') {
return <Icon iconName="LocalDeviceSettingsCamera" className={optionIconStyles} />;
return <CallCompositeIcon iconName="LocalDeviceSettingsCamera" className={optionIconStyles} />;
} else if (type === 'Microphone') {
return <Icon iconName="LocalDeviceSettingsMic" className={optionIconStyles} />;
return <CallCompositeIcon iconName="LocalDeviceSettingsMic" className={optionIconStyles} />;
} else if (type === 'Speaker') {
return <Icon iconName="LocalDeviceSettingsSpeaker" className={optionIconStyles} />;
return <CallCompositeIcon iconName="LocalDeviceSettingsSpeaker" className={optionIconStyles} />;
} else {
return undefined;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { Icon, mergeStyles, Stack, Text } from '@fluentui/react';
import { mergeStyles, Stack, Text } from '@fluentui/react';
import {
CameraButton,
ControlBar,
Expand All @@ -12,6 +12,7 @@ import {
VideoTile
} from '@internal/react-components';
import React, { useCallback } from 'react';
import { CallCompositeIcon } from '../../common/icons';
import { useLocale } from '../../localization';
import { useAdapter } from '../adapter/CallAdapterProvider';
import { usePropsFor } from '../hooks/usePropsFor';
Expand Down Expand Up @@ -61,7 +62,7 @@ export const LocalPreview = (props: LocalPreviewProps): JSX.Element => {
tokens={{ childrenGap: '0.25rem' }}
>
<Stack.Item align="center">
<Icon
<CallCompositeIcon
iconName="LocalPreviewPlaceholder"
className={mergeStyles(cameraOffLabelStyle, { color: theme.palette.neutralTertiary })}
/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { Icon, IStyle, ITheme, mergeStyles, Stack, Text, useTheme } from '@fluentui/react';
import { IStyle, ITheme, mergeStyles, Stack, Text, useTheme } from '@fluentui/react';
import React from 'react';
import { CallCompositeIcon } from '../../common/icons';
import { useLocale } from '../../localization';

/**
Expand All @@ -26,7 +27,7 @@ export function MutedNotification(props: MutedNotificationProps): JSX.Element {
return (
<Stack horizontal horizontalAlign="center">
<Stack horizontal className={mergeStyles(stackStyle(theme))}>
<Icon iconName="Muted" className={mergeStyles(iconStyle(theme))} />
<CallCompositeIcon iconName="Muted" className={mergeStyles(iconStyle(theme))} />
<Text className={mergeStyles(textStyle(theme))} aria-live={'polite'}>
{locale.strings.call.mutedMessage}
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import React from 'react';
import { VideoGalleryStream, useTheme } from '@internal/react-components';
import { ExpandedLocalVideoTile } from './ExpandedLocalVideoTile';
import { Icon, mergeStyles, Stack, Text } from '@fluentui/react';
import { mergeStyles, Stack, Text } from '@fluentui/react';
import { useLocale } from '../../localization';
import {
containerStyle,
Expand All @@ -14,6 +14,7 @@ import {
} from '../styles/NetworkReconnectTile.styles';
import { useHandlers } from '../hooks/useHandlers';
import { useLocalVideoStartTrigger } from './MediaGallery';
import { CallCompositeIcon } from '../../common/icons';

/**
* @private
Expand Down Expand Up @@ -42,7 +43,7 @@ export const NetworkReconnectTile = (props: NetworkReconnectTileProps): JSX.Elem
overlayContent={
<Stack verticalFill horizontalAlign="center" verticalAlign="center" className={mergeStyles(containerStyle)}>
<Stack horizontal className={mergeStyles(titleContainerStyle)}>
<Icon iconName="NetworkReconnectIcon" className={mergeStyles(titleStyle)} />
<CallCompositeIcon iconName="NetworkReconnectIcon" className={mergeStyles(titleStyle)} />
<Text className={mergeStyles(titleStyle(palette, isVideoReady))} aria-live={'polite'}>
{strings.networkReconnectTitle}
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { reduceCallControlsForMobile } from '../utils';
import { CallControlOptions } from '../types/CallControlOptions';
import { CallCompositeStrings } from '../Strings';
import { useLocale } from '../../localization';
import { Icon } from '@fluentui/react';
import { useLocalVideoStartTrigger } from '../components/MediaGallery';
import { CallCompositeIcon } from '../../common/icons';

/**
* @private
Expand Down Expand Up @@ -87,11 +87,11 @@ const overlayProps = (strings: CallCompositeStrings, inLobby: boolean): LobbyOve
const overlayPropsConnectingToCall = (strings: CallCompositeStrings, inLobby: boolean): LobbyOverlayProps => ({
title: strings.lobbyScreenConnectingToCallTitle,
moreDetails: strings.lobbyScreenConnectingToCallMoreDetails,
overlayIcon: <Icon iconName="LobbyScreenConnectingToCall" />
overlayIcon: <CallCompositeIcon iconName="LobbyScreenConnectingToCall" />
});

const overlayPropsWaitingToBeAdmitted = (strings: CallCompositeStrings, inLobby: boolean): LobbyOverlayProps => ({
title: strings.lobbyScreenWaitingToBeAdmittedTitle,
moreDetails: strings.lobbyScreenWaitingToBeAdmittedMoreDetails,
overlayIcon: <Icon iconName="LobbyScreenWaitingToBeAdmitted" />
overlayIcon: <CallCompositeIcon iconName="LobbyScreenWaitingToBeAdmitted" />
});
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

import React from 'react';
import { Icon, mergeStyles, Stack, Text } from '@fluentui/react';
import { mergeStyles, Stack, Text } from '@fluentui/react';
import {
containerStyle,
moreDetailsStyles,
Expand All @@ -12,12 +12,13 @@ import {
} from '../styles/NoticePage.styles';
import { useAdapter } from '../adapter/CallAdapterProvider';
import { StartCallButton } from '../components/StartCallButton';
import { CallCompositeIcon, CallCompositeIcons } from '../../common/icons';

/**
* @private
*/
export interface NoticePageProps {
iconName: string;
iconName: keyof CallCompositeIcons;
title: string;
moreDetails?: string;
dataUiId: string;
Expand All @@ -33,7 +34,7 @@ export function NoticePage(props: NoticePageProps): JSX.Element {
return (
<Stack verticalFill verticalAlign="center" horizontalAlign="center" data-ui-id={props.dataUiId}>
<Stack className={mergeStyles(containerStyle)} tokens={containerItemGap}>
{props.iconName && <Icon iconName={props.iconName} />}
{props.iconName && <CallCompositeIcon iconName={props.iconName} />}
<Text className={mergeStyles(titleStyles)}>{props.title}</Text>
<Text className={mergeStyles(moreDetailsStyles)}>{props.moreDetails}</Text>
<Stack styles={rejoinCallButtonContainerStyles}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { CallWithChatBackedChatAdapter } from './adapter/CallWithChatBackedChatA
import { CallAdapter } from '../CallComposite';
import { ChatCompositeProps } from '../ChatComposite';
import { BaseProvider, BaseCompositeProps } from '../common/BaseComposite';
import { CallCompositeIcons, ChatCompositeIcons } from '../common/icons';
import { CallWithChatCompositeIcons } from '../common/icons';
import { AvatarPersonaDataCallback } from '../common/AvatarPersona';
import { ChatAdapterProvider } from '../ChatComposite/adapter/ChatAdapterProvider';
import { CallWithChatAdapterState } from './state/CallWithChatAdapterState';
Expand All @@ -31,7 +31,7 @@ import { PreparedMoreDrawer } from './PreparedMoreDrawer';
*
* @beta
*/
export interface CallWithChatCompositeProps extends BaseCompositeProps<CallCompositeIcons & ChatCompositeIcons> {
export interface CallWithChatCompositeProps extends BaseCompositeProps<CallWithChatCompositeIcons> {
callWithChatAdapter: CallWithChatAdapter;
/**
* Fluent theme for the composite.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { concatStyleSets, DefaultButton, Icon, Stack } from '@fluentui/react';
import { concatStyleSets, DefaultButton, Stack } from '@fluentui/react';
import { useTheme } from '@internal/react-components';
import React, { useMemo } from 'react';
import { CallWithChatCompositeIcon } from '../common/icons';
import {
paneBodyContainer,
scrollableContainer,
Expand Down Expand Up @@ -55,7 +56,7 @@ export const MobilePane = (props: {
<DefaultButton
onClick={props.onClose}
styles={mobilePaneBackButtonStyles}
onRenderIcon={() => <Icon iconName="ChevronLeft" />}
onRenderIcon={() => <CallWithChatCompositeIcon iconName="ChevronLeft" />}
></DefaultButton>
<DefaultButton
onClick={props.onChatButtonClicked}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// Licensed under the MIT license.

import React from 'react';
import { Icon, IIconStyles, IStackStyles, ITheme, memoizeFunction, Stack, useTheme, Text } from '@fluentui/react';
import { IIconStyles, IStackStyles, ITheme, memoizeFunction, Stack, useTheme, Text } from '@fluentui/react';
import { CallWithChatCompositeIcon } from '../common/icons';

/**
* @private
Expand Down Expand Up @@ -32,7 +33,7 @@ export const NotificationIcon = (props: NotificationIconProps): JSX.Element => {

return (
<Stack horizontalAlign="center" verticalAlign="center" styles={notificationIconContainerStyles}>
<Icon styles={notificationIconStyles(theme)} iconName="ControlBarButtonBadgeIcon" />
<CallWithChatCompositeIcon styles={notificationIconStyles(theme)} iconName="ControlBarButtonBadgeIcon" />
{renderNumber(chatMessagesCount)}
</Stack>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { Icon } from '@fluentui/react';
import {
FileCard,
FileCardGroup,
Expand All @@ -12,6 +11,7 @@ import {
} from './file-sharing';
import React from 'react';
import { ChatMessage } from '@internal/react-components';
import { ChatCompositeIcon } from '../common/icons';

/**
* @beta
Expand Down Expand Up @@ -48,7 +48,7 @@ export const FileDownloadCards = (props: FileDownloadCards): JSX.Element => {
fileName={truncatedFileName(file.name, truncateLength)}
key={file.name}
fileExtension={extension(file.name)}
actionIcon={<Icon iconName="Download" />}
actionIcon={<ChatCompositeIcon iconName="Download" />}
actionHandler={() => {
props.downloadHandler && props.downloadHandler(userId, file);
!props.downloadHandler && window.open(file.url, '_blank', 'noopener,noreferrer');
Expand Down
Loading